@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,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as c, Fragment 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 c, 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-86458005.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__ */ c(
|
|
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__ */ c(w, { children: qe(e.TagName) ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(w, { 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 }) }) });
|
|
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,
|
|
@@ -40,7 +40,7 @@ function Je(e) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
return /* @__PURE__ */ c(
|
|
43
|
-
|
|
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,11 +84,11 @@ const Ge = ({
|
|
|
84
84
|
rootSetState: a,
|
|
85
85
|
rootState: r
|
|
86
86
|
}) => {
|
|
87
|
-
const l =
|
|
87
|
+
const l = 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
|
|
@@ -96,7 +96,7 @@ const Ge = ({
|
|
|
96
96
|
});
|
|
97
97
|
return new Function(...l.map(([s]) => s), e)(...l.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,
|
|
@@ -164,10 +164,10 @@ function H({
|
|
|
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,
|
|
@@ -175,15 +175,15 @@ function H({
|
|
|
175
175
|
localState: n
|
|
176
176
|
};
|
|
177
177
|
if (l) {
|
|
178
|
-
const d =
|
|
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 =
|
|
183
|
+
const d = tt(s);
|
|
184
184
|
if (l) {
|
|
185
|
-
const m =
|
|
186
|
-
|
|
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
|
|
@@ -226,7 +226,7 @@ const ot = ({
|
|
|
226
226
|
context: t,
|
|
227
227
|
enableCache: !0
|
|
228
228
|
});
|
|
229
|
-
|
|
229
|
+
nt(r, l, 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":
|
|
@@ -290,7 +290,7 @@ function Te(e) {
|
|
|
290
290
|
return e;
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
const
|
|
293
|
+
const lt = ({
|
|
294
294
|
block: e,
|
|
295
295
|
context: t,
|
|
296
296
|
registeredComponents: n
|
|
@@ -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
|
+
}, ct = ({
|
|
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,7 +409,7 @@ const ct = ({
|
|
|
405
409
|
default: a + 1
|
|
406
410
|
}, n;
|
|
407
411
|
};
|
|
408
|
-
function
|
|
412
|
+
function Q(e) {
|
|
409
413
|
return /* @__PURE__ */ c(
|
|
410
414
|
"style",
|
|
411
415
|
{
|
|
@@ -414,7 +418,7 @@ function G(e) {
|
|
|
414
418
|
}
|
|
415
419
|
);
|
|
416
420
|
}
|
|
417
|
-
function
|
|
421
|
+
function ft(e) {
|
|
418
422
|
const t = function() {
|
|
419
423
|
const o = Y({
|
|
420
424
|
block: e.block,
|
|
@@ -426,7 +430,7 @@ function ht(e) {
|
|
|
426
430
|
});
|
|
427
431
|
return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
|
|
428
432
|
}, n = function() {
|
|
429
|
-
var
|
|
433
|
+
var S, b, k;
|
|
430
434
|
const o = Y({
|
|
431
435
|
block: e.block,
|
|
432
436
|
localState: e.context.localState,
|
|
@@ -434,56 +438,56 @@ function ht(e) {
|
|
|
434
438
|
rootSetState: e.context.rootSetState,
|
|
435
439
|
context: e.context.context,
|
|
436
440
|
shouldEvaluateBindings: !0
|
|
437
|
-
}), a = o.responsiveStyles, r = e.context.content, l =
|
|
438
|
-
((
|
|
441
|
+
}), a = o.responsiveStyles, r = e.context.content, l = Re(
|
|
442
|
+
((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
|
|
439
443
|
), 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
444
|
if (!u)
|
|
441
445
|
return "";
|
|
442
446
|
const h = s ? _({
|
|
443
447
|
className: u,
|
|
444
448
|
styles: s
|
|
445
|
-
}) : "",
|
|
449
|
+
}) : "", x = d ? _({
|
|
446
450
|
className: u,
|
|
447
451
|
styles: d,
|
|
448
|
-
mediaQuery:
|
|
452
|
+
mediaQuery: he(
|
|
449
453
|
"medium",
|
|
450
454
|
l
|
|
451
455
|
)
|
|
452
|
-
}) : "",
|
|
456
|
+
}) : "", I = m ? _({
|
|
453
457
|
className: u,
|
|
454
458
|
styles: m,
|
|
455
|
-
mediaQuery:
|
|
459
|
+
mediaQuery: he(
|
|
456
460
|
"small",
|
|
457
461
|
l
|
|
458
462
|
)
|
|
459
|
-
}) : "",
|
|
463
|
+
}) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
|
|
460
464
|
let A = "";
|
|
461
|
-
if (
|
|
462
|
-
const
|
|
465
|
+
if (y) {
|
|
466
|
+
const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
|
|
463
467
|
A = _({
|
|
464
468
|
className: `${u}:hover`,
|
|
465
469
|
styles: {
|
|
466
|
-
...
|
|
467
|
-
transition: `all ${
|
|
468
|
-
|
|
470
|
+
...T,
|
|
471
|
+
transition: `all ${y.duration}s ${re(
|
|
472
|
+
y.easing
|
|
469
473
|
)}`,
|
|
470
|
-
transitionDelay:
|
|
474
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
471
475
|
}
|
|
472
476
|
}) || "";
|
|
473
477
|
}
|
|
474
478
|
return [
|
|
475
479
|
h,
|
|
476
|
-
|
|
477
|
-
|
|
480
|
+
x,
|
|
481
|
+
I,
|
|
478
482
|
A
|
|
479
483
|
].join(" ");
|
|
480
484
|
};
|
|
481
|
-
return /* @__PURE__ */ c(
|
|
485
|
+
return /* @__PURE__ */ c(w, { children: n() && t() ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(Q, { id: "builderio-block", styles: n() }) }) : null });
|
|
482
486
|
}
|
|
483
|
-
function
|
|
487
|
+
function ht(e) {
|
|
484
488
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
485
489
|
}
|
|
486
|
-
const gt = (e) => `on${
|
|
490
|
+
const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => H({
|
|
487
491
|
code: e,
|
|
488
492
|
context: t.context,
|
|
489
493
|
localState: t.localState,
|
|
@@ -493,7 +497,7 @@ const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => H({
|
|
|
493
497
|
isExpression: !1,
|
|
494
498
|
enableCache: !0
|
|
495
499
|
});
|
|
496
|
-
function
|
|
500
|
+
function Ee(e) {
|
|
497
501
|
var i;
|
|
498
502
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
499
503
|
for (const o in n) {
|
|
@@ -510,7 +514,7 @@ function Be(e) {
|
|
|
510
514
|
r = r.replace("on:", "");
|
|
511
515
|
break;
|
|
512
516
|
}
|
|
513
|
-
t[r] =
|
|
517
|
+
t[r] = bt(a, e);
|
|
514
518
|
}
|
|
515
519
|
return t;
|
|
516
520
|
}
|
|
@@ -519,19 +523,19 @@ function yt({
|
|
|
519
523
|
}) {
|
|
520
524
|
return e;
|
|
521
525
|
}
|
|
522
|
-
const
|
|
526
|
+
const pt = (e) => ({
|
|
523
527
|
href: e.href
|
|
524
528
|
});
|
|
525
|
-
function
|
|
529
|
+
function le({
|
|
526
530
|
block: e,
|
|
527
531
|
context: t
|
|
528
532
|
}) {
|
|
529
533
|
var i;
|
|
530
534
|
const n = {
|
|
531
|
-
...
|
|
535
|
+
...pt(e),
|
|
532
536
|
...e.properties,
|
|
533
537
|
"builder-id": e.id,
|
|
534
|
-
style:
|
|
538
|
+
style: rt({
|
|
535
539
|
block: e,
|
|
536
540
|
context: t
|
|
537
541
|
}),
|
|
@@ -543,16 +547,16 @@ function ce({
|
|
|
543
547
|
block: e
|
|
544
548
|
});
|
|
545
549
|
}
|
|
546
|
-
function
|
|
550
|
+
function vt(e) {
|
|
547
551
|
return /* @__PURE__ */ c(
|
|
548
|
-
|
|
552
|
+
ae,
|
|
549
553
|
{
|
|
550
554
|
TagName: e.Wrapper,
|
|
551
|
-
attributes:
|
|
555
|
+
attributes: le({
|
|
552
556
|
block: e.block,
|
|
553
557
|
context: e.context
|
|
554
558
|
}),
|
|
555
|
-
actionAttributes:
|
|
559
|
+
actionAttributes: Ee({
|
|
556
560
|
block: e.block,
|
|
557
561
|
rootState: e.context.rootState,
|
|
558
562
|
rootSetState: e.context.rootSetState,
|
|
@@ -564,14 +568,14 @@ function xt(e) {
|
|
|
564
568
|
}
|
|
565
569
|
);
|
|
566
570
|
}
|
|
567
|
-
function
|
|
571
|
+
function St(e) {
|
|
568
572
|
function t() {
|
|
569
573
|
return e.includeBlockProps ? {
|
|
570
|
-
...
|
|
574
|
+
...le({
|
|
571
575
|
block: e.block,
|
|
572
576
|
context: e.context
|
|
573
577
|
}),
|
|
574
|
-
...
|
|
578
|
+
...Ee({
|
|
575
579
|
block: e.block,
|
|
576
580
|
rootState: e.context.rootState,
|
|
577
581
|
rootSetState: e.context.rootSetState,
|
|
@@ -582,7 +586,7 @@ function kt(e) {
|
|
|
582
586
|
}
|
|
583
587
|
return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
584
588
|
}
|
|
585
|
-
const
|
|
589
|
+
const xt = ({
|
|
586
590
|
componentOptions: e,
|
|
587
591
|
builderBlock: t,
|
|
588
592
|
context: n,
|
|
@@ -598,7 +602,7 @@ const St = ({
|
|
|
598
602
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
599
603
|
*/
|
|
600
604
|
...o ? {
|
|
601
|
-
attributes:
|
|
605
|
+
attributes: le({
|
|
602
606
|
block: t,
|
|
603
607
|
context: r
|
|
604
608
|
})
|
|
@@ -614,11 +618,11 @@ const St = ({
|
|
|
614
618
|
};
|
|
615
619
|
function ge(e) {
|
|
616
620
|
var n;
|
|
617
|
-
const t = e.isInteractive ?
|
|
618
|
-
return /* @__PURE__ */ c(
|
|
621
|
+
const t = e.isInteractive ? St : e.componentRef;
|
|
622
|
+
return /* @__PURE__ */ c(w, { children: e.componentRef ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(
|
|
619
623
|
t,
|
|
620
624
|
{
|
|
621
|
-
...
|
|
625
|
+
...xt({
|
|
622
626
|
componentOptions: e.componentOptions,
|
|
623
627
|
builderBlock: e.builderBlock,
|
|
624
628
|
context: e.context,
|
|
@@ -629,7 +633,7 @@ function ge(e) {
|
|
|
629
633
|
contextValue: e.context
|
|
630
634
|
}),
|
|
631
635
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
|
|
632
|
-
|
|
636
|
+
G,
|
|
633
637
|
{
|
|
634
638
|
block: i,
|
|
635
639
|
context: e.context,
|
|
@@ -641,10 +645,10 @@ function ge(e) {
|
|
|
641
645
|
}
|
|
642
646
|
) }) : null });
|
|
643
647
|
}
|
|
644
|
-
function
|
|
648
|
+
function kt(e) {
|
|
645
649
|
const t = e.repeatContext;
|
|
646
650
|
return /* @__PURE__ */ c(
|
|
647
|
-
|
|
651
|
+
G,
|
|
648
652
|
{
|
|
649
653
|
block: e.block,
|
|
650
654
|
context: t,
|
|
@@ -653,16 +657,16 @@ function Ct(e) {
|
|
|
653
657
|
}
|
|
654
658
|
);
|
|
655
659
|
}
|
|
656
|
-
function
|
|
660
|
+
function G(e) {
|
|
657
661
|
var s, d, m;
|
|
658
662
|
const t = function() {
|
|
659
|
-
return
|
|
663
|
+
return lt({
|
|
660
664
|
block: e.block,
|
|
661
665
|
context: e.context,
|
|
662
666
|
registeredComponents: e.registeredComponents
|
|
663
667
|
});
|
|
664
668
|
}, n = function() {
|
|
665
|
-
return
|
|
669
|
+
return ct({
|
|
666
670
|
block: e.block,
|
|
667
671
|
context: e.context
|
|
668
672
|
});
|
|
@@ -677,28 +681,28 @@ function X(e) {
|
|
|
677
681
|
shouldEvaluateBindings: !0
|
|
678
682
|
});
|
|
679
683
|
}, o = function() {
|
|
680
|
-
var
|
|
681
|
-
return e.block.tagName === "a" || ((
|
|
684
|
+
var x;
|
|
685
|
+
return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
682
686
|
}, a = function() {
|
|
683
|
-
var
|
|
684
|
-
if ((
|
|
685
|
-
return !!((
|
|
687
|
+
var I, y;
|
|
688
|
+
if ((I = e.block.repeat) != null && I.collection)
|
|
689
|
+
return !!((y = n()) != null && y.length);
|
|
686
690
|
const h = "hide" in i() ? i().hide : !1;
|
|
687
691
|
return ("show" in i() ? i().show : !0) && !h;
|
|
688
692
|
}, r = function() {
|
|
689
|
-
var
|
|
690
|
-
return !((
|
|
693
|
+
var x, I;
|
|
694
|
+
return !((x = t()) != null && x.component) && !n() ? (I = i().children) != null ? I : [] : [];
|
|
691
695
|
}, l = function() {
|
|
692
|
-
var h,
|
|
696
|
+
var h, x, I, y;
|
|
693
697
|
return {
|
|
694
698
|
blockChildren: (h = i().children) != null ? h : [],
|
|
695
|
-
componentRef: (
|
|
699
|
+
componentRef: (x = t()) == null ? void 0 : x.component,
|
|
696
700
|
componentOptions: {
|
|
697
|
-
...
|
|
698
|
-
...
|
|
699
|
-
...
|
|
700
|
-
...
|
|
701
|
-
...
|
|
701
|
+
...Je(i()),
|
|
702
|
+
...ut(t(), i()),
|
|
703
|
+
...mt(t(), e.context),
|
|
704
|
+
...st(t(), e.linkComponent),
|
|
705
|
+
...dt(
|
|
702
706
|
t(),
|
|
703
707
|
e.registeredComponents
|
|
704
708
|
)
|
|
@@ -707,13 +711,13 @@ function X(e) {
|
|
|
707
711
|
linkComponent: e.linkComponent,
|
|
708
712
|
registeredComponents: e.registeredComponents,
|
|
709
713
|
builderBlock: i(),
|
|
710
|
-
includeBlockProps: ((
|
|
711
|
-
isInteractive: !((
|
|
714
|
+
includeBlockProps: ((I = t()) == null ? void 0 : I.noWrap) === !0,
|
|
715
|
+
isInteractive: !((y = t()) != null && y.isRSC)
|
|
712
716
|
};
|
|
713
717
|
};
|
|
714
|
-
return /* @__PURE__ */ c(
|
|
715
|
-
/* @__PURE__ */ c(
|
|
716
|
-
(s = t()) != null && s.noWrap ? /* @__PURE__ */ c(
|
|
718
|
+
return /* @__PURE__ */ c(w, { children: a() ? /* @__PURE__ */ E(w, { children: [
|
|
719
|
+
/* @__PURE__ */ c(ft, { block: e.block, context: e.context }),
|
|
720
|
+
(s = t()) != null && s.noWrap ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(
|
|
717
721
|
ge,
|
|
718
722
|
{
|
|
719
723
|
componentRef: l().componentRef,
|
|
@@ -726,8 +730,8 @@ function X(e) {
|
|
|
726
730
|
includeBlockProps: l().includeBlockProps,
|
|
727
731
|
isInteractive: l().isInteractive
|
|
728
732
|
}
|
|
729
|
-
) }) : /* @__PURE__ */ c(
|
|
730
|
-
|
|
733
|
+
) }) : /* @__PURE__ */ c(w, { children: n() ? /* @__PURE__ */ c(w, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
|
|
734
|
+
kt,
|
|
731
735
|
{
|
|
732
736
|
repeatContext: u.context,
|
|
733
737
|
block: u.block,
|
|
@@ -735,8 +739,8 @@ function X(e) {
|
|
|
735
739
|
linkComponent: e.linkComponent
|
|
736
740
|
},
|
|
737
741
|
h
|
|
738
|
-
)) }) : /* @__PURE__ */
|
|
739
|
-
|
|
742
|
+
)) }) : /* @__PURE__ */ E(
|
|
743
|
+
vt,
|
|
740
744
|
{
|
|
741
745
|
Wrapper: o(),
|
|
742
746
|
block: i(),
|
|
@@ -757,7 +761,7 @@ function X(e) {
|
|
|
757
761
|
}
|
|
758
762
|
),
|
|
759
763
|
(d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
|
|
760
|
-
|
|
764
|
+
G,
|
|
761
765
|
{
|
|
762
766
|
block: u,
|
|
763
767
|
registeredComponents: e.registeredComponents,
|
|
@@ -771,7 +775,7 @@ function X(e) {
|
|
|
771
775
|
) })
|
|
772
776
|
] }) : null });
|
|
773
777
|
}
|
|
774
|
-
function
|
|
778
|
+
function Ct(e) {
|
|
775
779
|
function t() {
|
|
776
780
|
var o;
|
|
777
781
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -802,7 +806,7 @@ function It(e) {
|
|
|
802
806
|
"*"
|
|
803
807
|
));
|
|
804
808
|
}
|
|
805
|
-
return /* @__PURE__ */
|
|
809
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
806
810
|
/* @__PURE__ */ c(
|
|
807
811
|
e.BlocksWrapper,
|
|
808
812
|
{
|
|
@@ -824,10 +828,10 @@ function It(e) {
|
|
|
824
828
|
}` })
|
|
825
829
|
] });
|
|
826
830
|
}
|
|
827
|
-
function
|
|
831
|
+
function ce(e) {
|
|
828
832
|
var t, n, i;
|
|
829
833
|
return /* @__PURE__ */ c(
|
|
830
|
-
|
|
834
|
+
Ct,
|
|
831
835
|
{
|
|
832
836
|
blocks: e.blocks,
|
|
833
837
|
parent: e.parent,
|
|
@@ -835,8 +839,8 @@ function se(e) {
|
|
|
835
839
|
styleProp: e.styleProp,
|
|
836
840
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
837
841
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
838
|
-
children: e.blocks ? /* @__PURE__ */ c(
|
|
839
|
-
|
|
842
|
+
children: e.blocks ? /* @__PURE__ */ c(w, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
|
|
843
|
+
G,
|
|
840
844
|
{
|
|
841
845
|
block: o,
|
|
842
846
|
linkComponent: e.linkComponent,
|
|
@@ -849,26 +853,26 @@ function se(e) {
|
|
|
849
853
|
);
|
|
850
854
|
}
|
|
851
855
|
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(${
|
|
856
|
+
function It(e) {
|
|
857
|
+
var y, A;
|
|
858
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
|
|
859
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
860
|
+
}, a = function(b) {
|
|
861
|
+
var k;
|
|
862
|
+
return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
|
|
863
|
+
}, r = function(b) {
|
|
864
|
+
const k = a(b), T = t * (n.length - 1) * (k / 100);
|
|
865
|
+
return `calc(${k}% - ${T}px)`;
|
|
862
866
|
}, l = function({
|
|
863
|
-
stackedStyle:
|
|
864
|
-
desktopStyle:
|
|
867
|
+
stackedStyle: b,
|
|
868
|
+
desktopStyle: k
|
|
865
869
|
}) {
|
|
866
|
-
return i === "tablet" ?
|
|
870
|
+
return i === "tablet" ? b : k;
|
|
867
871
|
}, s = function({
|
|
868
|
-
stackedStyle:
|
|
869
|
-
desktopStyle:
|
|
872
|
+
stackedStyle: b,
|
|
873
|
+
desktopStyle: k
|
|
870
874
|
}) {
|
|
871
|
-
return i === "never" ?
|
|
875
|
+
return i === "never" ? k : b;
|
|
872
876
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
|
|
873
877
|
return {
|
|
874
878
|
"--flex-dir": d,
|
|
@@ -877,39 +881,39 @@ function Tt(e) {
|
|
|
877
881
|
desktopStyle: "row"
|
|
878
882
|
})
|
|
879
883
|
};
|
|
880
|
-
}, u = function(
|
|
881
|
-
const
|
|
884
|
+
}, u = function(b) {
|
|
885
|
+
const k = b === 0 ? 0 : t, T = r(b), B = `${k}px`, O = "100%", D = 0;
|
|
882
886
|
return {
|
|
883
887
|
...{
|
|
884
888
|
display: "flex",
|
|
885
889
|
flexDirection: "column",
|
|
886
890
|
alignItems: "stretch"
|
|
887
891
|
},
|
|
888
|
-
width:
|
|
889
|
-
["marginLeft"]:
|
|
892
|
+
width: T,
|
|
893
|
+
["marginLeft"]: B,
|
|
890
894
|
"--column-width-mobile": s({
|
|
891
895
|
stackedStyle: O,
|
|
892
|
-
desktopStyle:
|
|
896
|
+
desktopStyle: T
|
|
893
897
|
}),
|
|
894
898
|
"--column-margin-left-mobile": s({
|
|
895
899
|
stackedStyle: D,
|
|
896
|
-
desktopStyle:
|
|
900
|
+
desktopStyle: B
|
|
897
901
|
}),
|
|
898
902
|
"--column-width-tablet": l({
|
|
899
903
|
stackedStyle: O,
|
|
900
|
-
desktopStyle:
|
|
904
|
+
desktopStyle: T
|
|
901
905
|
}),
|
|
902
906
|
"--column-margin-left-tablet": l({
|
|
903
907
|
stackedStyle: D,
|
|
904
|
-
desktopStyle:
|
|
908
|
+
desktopStyle: B
|
|
905
909
|
})
|
|
906
910
|
};
|
|
907
|
-
}, h = function(
|
|
908
|
-
var
|
|
909
|
-
return
|
|
910
|
-
((
|
|
911
|
-
)[
|
|
912
|
-
},
|
|
911
|
+
}, h = function(b) {
|
|
912
|
+
var T, B;
|
|
913
|
+
return Re(
|
|
914
|
+
((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
|
|
915
|
+
)[b].max;
|
|
916
|
+
}, x = function() {
|
|
913
917
|
return `
|
|
914
918
|
@media (max-width: ${h("medium")}px) {
|
|
915
919
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -935,33 +939,33 @@ function Tt(e) {
|
|
|
935
939
|
}
|
|
936
940
|
},
|
|
937
941
|
`;
|
|
938
|
-
},
|
|
942
|
+
}, I = function(b, k) {
|
|
939
943
|
return {
|
|
940
|
-
...
|
|
941
|
-
href:
|
|
944
|
+
...b.link ? {
|
|
945
|
+
href: b.link
|
|
942
946
|
} : {},
|
|
943
947
|
[j()]: "builder-column",
|
|
944
|
-
style:
|
|
948
|
+
style: Ie(u(k))
|
|
945
949
|
};
|
|
946
950
|
};
|
|
947
|
-
return /* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
952
|
+
/* @__PURE__ */ E(
|
|
949
953
|
"div",
|
|
950
954
|
{
|
|
951
|
-
className: wt((
|
|
955
|
+
className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-1de99da7",
|
|
952
956
|
style: m(),
|
|
953
957
|
children: [
|
|
954
|
-
/* @__PURE__ */ c(
|
|
955
|
-
(A = e.columns) == null ? void 0 : A.map((
|
|
956
|
-
|
|
958
|
+
/* @__PURE__ */ c(Q, { id: "builderio-columns", styles: x() }),
|
|
959
|
+
(A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ c(
|
|
960
|
+
ae,
|
|
957
961
|
{
|
|
958
|
-
TagName: o(
|
|
962
|
+
TagName: o(S),
|
|
959
963
|
actionAttributes: {},
|
|
960
|
-
attributes:
|
|
964
|
+
attributes: I(S, b),
|
|
961
965
|
children: /* @__PURE__ */ c(
|
|
962
|
-
|
|
966
|
+
ce,
|
|
963
967
|
{
|
|
964
|
-
path: `component.options.columns.${
|
|
968
|
+
path: `component.options.columns.${b}.blocks`,
|
|
965
969
|
parent: e.builderBlock.id,
|
|
966
970
|
styleProp: {
|
|
967
971
|
flexGrow: "1"
|
|
@@ -969,55 +973,55 @@ function Tt(e) {
|
|
|
969
973
|
context: e.builderContext,
|
|
970
974
|
registeredComponents: e.builderComponents,
|
|
971
975
|
linkComponent: e.builderLinkComponent,
|
|
972
|
-
blocks:
|
|
976
|
+
blocks: S.blocks
|
|
973
977
|
}
|
|
974
978
|
)
|
|
975
979
|
},
|
|
976
|
-
|
|
980
|
+
b
|
|
977
981
|
))
|
|
978
982
|
]
|
|
979
983
|
}
|
|
980
984
|
),
|
|
981
|
-
/* @__PURE__ */ c("style", { children: `.div-
|
|
985
|
+
/* @__PURE__ */ c("style", { children: `.div-1de99da7 {
|
|
982
986
|
display: flex;
|
|
983
987
|
line-height: normal;
|
|
984
988
|
}` })
|
|
985
989
|
] });
|
|
986
990
|
}
|
|
987
|
-
function
|
|
991
|
+
function Tt(e) {
|
|
988
992
|
return /* @__PURE__ */ c("span", { children: e.children });
|
|
989
993
|
}
|
|
990
|
-
function
|
|
994
|
+
function be(e) {
|
|
991
995
|
return e.replace(/http(s)?:/, "");
|
|
992
996
|
}
|
|
993
|
-
function
|
|
997
|
+
function Rt(e = "", t, n) {
|
|
994
998
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
995
999
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
996
1000
|
}
|
|
997
|
-
function
|
|
1001
|
+
function Et(e, t) {
|
|
998
1002
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
999
1003
|
return e;
|
|
1000
1004
|
if (t === "master")
|
|
1001
|
-
return
|
|
1005
|
+
return be(e);
|
|
1002
1006
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1003
1007
|
if (n) {
|
|
1004
1008
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1005
|
-
return
|
|
1009
|
+
return be(`${i[0]}_${a}${o}`);
|
|
1006
1010
|
}
|
|
1007
1011
|
return null;
|
|
1008
1012
|
}
|
|
1009
|
-
function
|
|
1013
|
+
function te(e) {
|
|
1010
1014
|
if (!e)
|
|
1011
1015
|
return e;
|
|
1012
1016
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1013
1017
|
if (e.match(/builder\.io/)) {
|
|
1014
1018
|
let n = e;
|
|
1015
1019
|
const i = Number(e.split("?width=")[1]);
|
|
1016
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1020
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1017
1021
|
}
|
|
1018
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1022
|
+
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
1023
|
}
|
|
1020
|
-
function
|
|
1024
|
+
function Pt(e) {
|
|
1021
1025
|
var o, a, r, l, s, d;
|
|
1022
1026
|
function t() {
|
|
1023
1027
|
var h;
|
|
@@ -1028,10 +1032,10 @@ function Et(e) {
|
|
|
1028
1032
|
return e.srcset;
|
|
1029
1033
|
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1030
1034
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1031
|
-
return console.debug("Removed given srcset"),
|
|
1035
|
+
return console.debug("Removed given srcset"), te(u);
|
|
1032
1036
|
} else if (e.image && !e.srcset)
|
|
1033
|
-
return
|
|
1034
|
-
return
|
|
1037
|
+
return te(u);
|
|
1038
|
+
return te(u);
|
|
1035
1039
|
}
|
|
1036
1040
|
function n() {
|
|
1037
1041
|
var m;
|
|
@@ -1047,9 +1051,9 @@ function Et(e) {
|
|
|
1047
1051
|
};
|
|
1048
1052
|
return e.aspectRatio ? m : void 0;
|
|
1049
1053
|
}
|
|
1050
|
-
return /* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1054
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
1055
|
+
/* @__PURE__ */ E(w, { children: [
|
|
1056
|
+
/* @__PURE__ */ E("picture", { children: [
|
|
1053
1057
|
n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1054
1058
|
/* @__PURE__ */ c(
|
|
1055
1059
|
"img",
|
|
@@ -1079,7 +1083,7 @@ function Et(e) {
|
|
|
1079
1083
|
}
|
|
1080
1084
|
}
|
|
1081
1085
|
) : null,
|
|
1082
|
-
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(
|
|
1086
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(w, { children: e.children }) : null,
|
|
1083
1087
|
!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
|
|
1084
1088
|
] }),
|
|
1085
1089
|
/* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
|
|
@@ -1101,7 +1105,7 @@ function Et(e) {
|
|
|
1101
1105
|
}` })
|
|
1102
1106
|
] });
|
|
1103
1107
|
}
|
|
1104
|
-
function
|
|
1108
|
+
function Bt(e) {
|
|
1105
1109
|
return /* @__PURE__ */ c(
|
|
1106
1110
|
"section",
|
|
1107
1111
|
{
|
|
@@ -1122,7 +1126,7 @@ function Wt(e) {
|
|
|
1122
1126
|
}
|
|
1123
1127
|
);
|
|
1124
1128
|
}
|
|
1125
|
-
const
|
|
1129
|
+
const Wt = {
|
|
1126
1130
|
name: "Core:Button",
|
|
1127
1131
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1128
1132
|
defaultStyles: {
|
|
@@ -1156,12 +1160,9 @@ const Nt = {
|
|
|
1156
1160
|
static: !0,
|
|
1157
1161
|
noWrap: !0,
|
|
1158
1162
|
shouldReceiveBuilderProps: {
|
|
1159
|
-
builderBlock: !1,
|
|
1160
|
-
builderContext: !1,
|
|
1161
|
-
builderComponents: !1,
|
|
1162
1163
|
builderLinkComponent: !0
|
|
1163
1164
|
}
|
|
1164
|
-
},
|
|
1165
|
+
}, Nt = {
|
|
1165
1166
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1166
1167
|
name: "Columns",
|
|
1167
1168
|
isRSC: !0,
|
|
@@ -1368,19 +1369,13 @@ const Nt = {
|
|
|
1368
1369
|
builderComponents: !0,
|
|
1369
1370
|
builderLinkComponent: !0
|
|
1370
1371
|
}
|
|
1371
|
-
},
|
|
1372
|
-
shouldReceiveBuilderProps: {
|
|
1373
|
-
builderBlock: !1,
|
|
1374
|
-
builderContext: !1,
|
|
1375
|
-
builderComponents: !1,
|
|
1376
|
-
builderLinkComponent: !1
|
|
1377
|
-
},
|
|
1372
|
+
}, At = {
|
|
1378
1373
|
name: "Fragment",
|
|
1379
1374
|
static: !0,
|
|
1380
1375
|
hidden: !0,
|
|
1381
1376
|
canHaveChildren: !0,
|
|
1382
1377
|
noWrap: !0
|
|
1383
|
-
},
|
|
1378
|
+
}, Vt = {
|
|
1384
1379
|
name: "Image",
|
|
1385
1380
|
static: !0,
|
|
1386
1381
|
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",
|
|
@@ -1486,18 +1481,9 @@ const Nt = {
|
|
|
1486
1481
|
defaultValue: 0.7041
|
|
1487
1482
|
}],
|
|
1488
1483
|
shouldReceiveBuilderProps: {
|
|
1489
|
-
builderBlock: !0
|
|
1490
|
-
builderContext: !1,
|
|
1491
|
-
builderComponents: !1,
|
|
1492
|
-
builderLinkComponent: !1
|
|
1484
|
+
builderBlock: !0
|
|
1493
1485
|
}
|
|
1494
|
-
},
|
|
1495
|
-
shouldReceiveBuilderProps: {
|
|
1496
|
-
builderBlock: !1,
|
|
1497
|
-
builderContext: !1,
|
|
1498
|
-
builderComponents: !1,
|
|
1499
|
-
builderLinkComponent: !1
|
|
1500
|
-
},
|
|
1486
|
+
}, $t = {
|
|
1501
1487
|
name: "Core:Section",
|
|
1502
1488
|
static: !0,
|
|
1503
1489
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1550,13 +1536,10 @@ const Nt = {
|
|
|
1550
1536
|
defaultValue: "children"
|
|
1551
1537
|
}],
|
|
1552
1538
|
shouldReceiveBuilderProps: {
|
|
1553
|
-
|
|
1554
|
-
builderContext: !0,
|
|
1555
|
-
builderComponents: !1,
|
|
1556
|
-
builderLinkComponent: !1
|
|
1539
|
+
builderContext: !0
|
|
1557
1540
|
}
|
|
1558
1541
|
};
|
|
1559
|
-
function
|
|
1542
|
+
function Lt(e) {
|
|
1560
1543
|
var t, n, i;
|
|
1561
1544
|
return /* @__PURE__ */ c(
|
|
1562
1545
|
"div",
|
|
@@ -1568,7 +1551,7 @@ function Ot(e) {
|
|
|
1568
1551
|
"builder-slot": e.name
|
|
1569
1552
|
},
|
|
1570
1553
|
children: /* @__PURE__ */ c(
|
|
1571
|
-
|
|
1554
|
+
ce,
|
|
1572
1555
|
{
|
|
1573
1556
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1574
1557
|
path: `symbol.data.${e.name}`,
|
|
@@ -1579,7 +1562,7 @@ function Ot(e) {
|
|
|
1579
1562
|
}
|
|
1580
1563
|
);
|
|
1581
1564
|
}
|
|
1582
|
-
const
|
|
1565
|
+
const Ot = {
|
|
1583
1566
|
name: "Symbol",
|
|
1584
1567
|
noWrap: !0,
|
|
1585
1568
|
static: !0,
|
|
@@ -1618,12 +1601,9 @@ const Dt = {
|
|
|
1618
1601
|
builderComponents: !0,
|
|
1619
1602
|
builderLinkComponent: !0
|
|
1620
1603
|
}
|
|
1621
|
-
},
|
|
1604
|
+
}, Dt = {
|
|
1622
1605
|
shouldReceiveBuilderProps: {
|
|
1623
|
-
builderBlock: !1
|
|
1624
|
-
builderContext: !1,
|
|
1625
|
-
builderComponents: !1,
|
|
1626
|
-
builderLinkComponent: !1
|
|
1606
|
+
builderBlock: !1
|
|
1627
1607
|
},
|
|
1628
1608
|
name: "Text",
|
|
1629
1609
|
static: !0,
|
|
@@ -1643,7 +1623,7 @@ const Dt = {
|
|
|
1643
1623
|
textAlign: "center"
|
|
1644
1624
|
}
|
|
1645
1625
|
};
|
|
1646
|
-
function
|
|
1626
|
+
function jt(e) {
|
|
1647
1627
|
var t;
|
|
1648
1628
|
return /* @__PURE__ */ c(
|
|
1649
1629
|
"div",
|
|
@@ -1656,13 +1636,7 @@ function Ht(e) {
|
|
|
1656
1636
|
}
|
|
1657
1637
|
);
|
|
1658
1638
|
}
|
|
1659
|
-
const
|
|
1660
|
-
shouldReceiveBuilderProps: {
|
|
1661
|
-
builderBlock: !1,
|
|
1662
|
-
builderContext: !1,
|
|
1663
|
-
builderComponents: !1,
|
|
1664
|
-
builderLinkComponent: !1
|
|
1665
|
-
},
|
|
1639
|
+
const Ht = {
|
|
1666
1640
|
name: "Custom Code",
|
|
1667
1641
|
static: !0,
|
|
1668
1642
|
requiredPermissions: ["editCode"],
|
|
@@ -1685,9 +1659,9 @@ const Mt = {
|
|
|
1685
1659
|
advanced: !0
|
|
1686
1660
|
}]
|
|
1687
1661
|
};
|
|
1688
|
-
function
|
|
1689
|
-
const t =
|
|
1690
|
-
return
|
|
1662
|
+
function Mt(e) {
|
|
1663
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
|
|
1664
|
+
return R(() => {
|
|
1691
1665
|
var l;
|
|
1692
1666
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
1693
1667
|
return;
|
|
@@ -1723,13 +1697,7 @@ function Ut(e) {
|
|
|
1723
1697
|
}
|
|
1724
1698
|
);
|
|
1725
1699
|
}
|
|
1726
|
-
const
|
|
1727
|
-
shouldReceiveBuilderProps: {
|
|
1728
|
-
builderBlock: !1,
|
|
1729
|
-
builderContext: !1,
|
|
1730
|
-
builderComponents: !1,
|
|
1731
|
-
builderLinkComponent: !1
|
|
1732
|
-
},
|
|
1700
|
+
const Ut = {
|
|
1733
1701
|
name: "Embed",
|
|
1734
1702
|
static: !0,
|
|
1735
1703
|
inputs: [{
|
|
@@ -1744,9 +1712,9 @@ const _t = {
|
|
|
1744
1712
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1745
1713
|
hideFromUI: !0
|
|
1746
1714
|
}]
|
|
1747
|
-
},
|
|
1748
|
-
function
|
|
1749
|
-
const t =
|
|
1715
|
+
}, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
|
|
1716
|
+
function zt(e) {
|
|
1717
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, l] = N(() => !1);
|
|
1750
1718
|
function s() {
|
|
1751
1719
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1752
1720
|
return;
|
|
@@ -1757,7 +1725,7 @@ function qt(e) {
|
|
|
1757
1725
|
n.push(u.src);
|
|
1758
1726
|
const h = document.createElement("script");
|
|
1759
1727
|
h.async = !0, h.src = u.src, document.head.appendChild(h);
|
|
1760
|
-
} else if (
|
|
1728
|
+
} else if (Kt(u) && !o.includes(u.innerText))
|
|
1761
1729
|
try {
|
|
1762
1730
|
o.push(u.innerText), new Function(u.innerText)();
|
|
1763
1731
|
} catch (h) {
|
|
@@ -1765,7 +1733,7 @@ function qt(e) {
|
|
|
1765
1733
|
}
|
|
1766
1734
|
}
|
|
1767
1735
|
}
|
|
1768
|
-
return
|
|
1736
|
+
return R(() => {
|
|
1769
1737
|
t.current && !r && (l(!0), s());
|
|
1770
1738
|
}, [t.current, r]), /* @__PURE__ */ c(
|
|
1771
1739
|
"div",
|
|
@@ -1776,13 +1744,7 @@ function qt(e) {
|
|
|
1776
1744
|
}
|
|
1777
1745
|
);
|
|
1778
1746
|
}
|
|
1779
|
-
const
|
|
1780
|
-
shouldReceiveBuilderProps: {
|
|
1781
|
-
builderBlock: !1,
|
|
1782
|
-
builderContext: !1,
|
|
1783
|
-
builderComponents: !1,
|
|
1784
|
-
builderLinkComponent: !1
|
|
1785
|
-
},
|
|
1747
|
+
const qt = {
|
|
1786
1748
|
// friendlyName?
|
|
1787
1749
|
name: "Raw:Img",
|
|
1788
1750
|
hideFromInsertMenu: !0,
|
|
@@ -1797,7 +1759,7 @@ const Yt = {
|
|
|
1797
1759
|
noWrap: !0,
|
|
1798
1760
|
static: !0
|
|
1799
1761
|
};
|
|
1800
|
-
function
|
|
1762
|
+
function Yt(e) {
|
|
1801
1763
|
return /* @__PURE__ */ c(
|
|
1802
1764
|
"img",
|
|
1803
1765
|
{
|
|
@@ -1812,7 +1774,7 @@ function Jt(e) {
|
|
|
1812
1774
|
V() && e.imgSrc || "default-key"
|
|
1813
1775
|
);
|
|
1814
1776
|
}
|
|
1815
|
-
const
|
|
1777
|
+
const Jt = {
|
|
1816
1778
|
name: "Video",
|
|
1817
1779
|
canHaveChildren: !0,
|
|
1818
1780
|
defaultStyles: {
|
|
@@ -1894,13 +1856,10 @@ const Qt = {
|
|
|
1894
1856
|
advanced: !0
|
|
1895
1857
|
}],
|
|
1896
1858
|
shouldReceiveBuilderProps: {
|
|
1897
|
-
builderBlock: !0
|
|
1898
|
-
builderContext: !1,
|
|
1899
|
-
builderComponents: !1,
|
|
1900
|
-
builderLinkComponent: !1
|
|
1859
|
+
builderBlock: !0
|
|
1901
1860
|
}
|
|
1902
1861
|
};
|
|
1903
|
-
function
|
|
1862
|
+
function Qt(e) {
|
|
1904
1863
|
var i, o, a, r, l, s, d;
|
|
1905
1864
|
function t() {
|
|
1906
1865
|
return {
|
|
@@ -1926,7 +1885,7 @@ function Gt(e) {
|
|
|
1926
1885
|
...t()
|
|
1927
1886
|
};
|
|
1928
1887
|
}
|
|
1929
|
-
return /* @__PURE__ */
|
|
1888
|
+
return /* @__PURE__ */ E(
|
|
1930
1889
|
"div",
|
|
1931
1890
|
{
|
|
1932
1891
|
style: {
|
|
@@ -2001,43 +1960,43 @@ function Gt(e) {
|
|
|
2001
1960
|
}
|
|
2002
1961
|
);
|
|
2003
1962
|
}
|
|
2004
|
-
const
|
|
2005
|
-
component:
|
|
2006
|
-
...
|
|
1963
|
+
const Gt = () => [{
|
|
1964
|
+
component: Mt,
|
|
1965
|
+
...Ht
|
|
2007
1966
|
}, {
|
|
2008
|
-
component:
|
|
2009
|
-
...
|
|
1967
|
+
component: zt,
|
|
1968
|
+
...Ut
|
|
2010
1969
|
}, {
|
|
2011
|
-
component:
|
|
2012
|
-
...
|
|
1970
|
+
component: Yt,
|
|
1971
|
+
...qt
|
|
2013
1972
|
}, {
|
|
2014
|
-
component:
|
|
2015
|
-
...
|
|
1973
|
+
component: Qt,
|
|
1974
|
+
...Jt
|
|
2016
1975
|
}], ye = () => [{
|
|
2017
|
-
component:
|
|
1976
|
+
component: Ye,
|
|
1977
|
+
...Wt
|
|
1978
|
+
}, {
|
|
1979
|
+
component: It,
|
|
2018
1980
|
...Nt
|
|
2019
1981
|
}, {
|
|
2020
1982
|
component: Tt,
|
|
2021
1983
|
...At
|
|
2022
1984
|
}, {
|
|
2023
|
-
component:
|
|
1985
|
+
component: Pt,
|
|
2024
1986
|
...Vt
|
|
2025
1987
|
}, {
|
|
2026
|
-
component:
|
|
1988
|
+
component: Bt,
|
|
2027
1989
|
...$t
|
|
2028
1990
|
}, {
|
|
2029
|
-
component:
|
|
2030
|
-
...Lt
|
|
2031
|
-
}, {
|
|
2032
|
-
component: Ot,
|
|
1991
|
+
component: Lt,
|
|
2033
1992
|
...Ft
|
|
2034
1993
|
}, {
|
|
2035
|
-
component:
|
|
2036
|
-
...
|
|
1994
|
+
component: Rn,
|
|
1995
|
+
...Ot
|
|
2037
1996
|
}, {
|
|
2038
|
-
component:
|
|
2039
|
-
...
|
|
2040
|
-
}, ...
|
|
1997
|
+
component: jt,
|
|
1998
|
+
...Dt
|
|
1999
|
+
}, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2041
2000
|
function getAndSetVariantId() {
|
|
2042
2001
|
function setCookie(name, value, days) {
|
|
2043
2002
|
let expires = '';
|
|
@@ -2093,7 +2052,7 @@ const Xt = () => [{
|
|
|
2093
2052
|
}).join('');
|
|
2094
2053
|
styleEl.innerHTML = newStyleStr;
|
|
2095
2054
|
}
|
|
2096
|
-
}`,
|
|
2055
|
+
}`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2097
2056
|
if (!navigator.cookieEnabled) {
|
|
2098
2057
|
return;
|
|
2099
2058
|
}
|
|
@@ -2127,26 +2086,26 @@ const Xt = () => [{
|
|
|
2127
2086
|
thisScriptEl?.remove();
|
|
2128
2087
|
}
|
|
2129
2088
|
return;
|
|
2130
|
-
}`,
|
|
2089
|
+
}`, Pe = "builderIoAbTest", Be = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2131
2090
|
...t,
|
|
2132
2091
|
testVariationId: t.id,
|
|
2133
2092
|
id: e == null ? void 0 : e.id
|
|
2134
|
-
})),
|
|
2093
|
+
})), en = ({
|
|
2135
2094
|
canTrack: e,
|
|
2136
2095
|
content: t
|
|
2137
|
-
}) => !(!(K(t).length > 0) || !e ||
|
|
2138
|
-
window.${
|
|
2139
|
-
window.${
|
|
2140
|
-
`,
|
|
2141
|
-
window.${
|
|
2142
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2143
|
-
)`,
|
|
2096
|
+
}) => !(!(K(t).length > 0) || !e || L()), tn = (e) => e === "react" || e === "reactNative", We = tn(M), nn = () => `
|
|
2097
|
+
window.${Pe} = ${Xt}
|
|
2098
|
+
window.${Be} = ${Zt}
|
|
2099
|
+
`, on = (e, t) => `
|
|
2100
|
+
window.${Pe}(
|
|
2101
|
+
"${t}",${JSON.stringify(e)}, ${We}
|
|
2102
|
+
)`, an = ({
|
|
2144
2103
|
contentId: e,
|
|
2145
2104
|
variationId: t
|
|
2146
|
-
}) => `window.${
|
|
2147
|
-
"${t}", "${e}", ${
|
|
2105
|
+
}) => `window.${Be}(
|
|
2106
|
+
"${t}", "${e}", ${We}
|
|
2148
2107
|
)`;
|
|
2149
|
-
function
|
|
2108
|
+
function ne(e) {
|
|
2150
2109
|
return /* @__PURE__ */ c(
|
|
2151
2110
|
"script",
|
|
2152
2111
|
{
|
|
@@ -2155,7 +2114,7 @@ function ie(e) {
|
|
|
2155
2114
|
}
|
|
2156
2115
|
);
|
|
2157
2116
|
}
|
|
2158
|
-
const
|
|
2117
|
+
const rn = _e({
|
|
2159
2118
|
content: null,
|
|
2160
2119
|
context: {},
|
|
2161
2120
|
localState: void 0,
|
|
@@ -2169,10 +2128,10 @@ const ln = Ke({
|
|
|
2169
2128
|
BlocksWrapper: "div",
|
|
2170
2129
|
BlocksWrapperProps: {}
|
|
2171
2130
|
});
|
|
2172
|
-
function
|
|
2131
|
+
function pe(e) {
|
|
2173
2132
|
return Math.round(e * 1e3) / 1e3;
|
|
2174
2133
|
}
|
|
2175
|
-
const
|
|
2134
|
+
const ln = (e, t, n = !0) => {
|
|
2176
2135
|
if (!(e instanceof HTMLElement))
|
|
2177
2136
|
return null;
|
|
2178
2137
|
let i = n ? e : e.parentElement;
|
|
@@ -2183,28 +2142,28 @@ const cn = (e, t, n = !0) => {
|
|
|
2183
2142
|
return i;
|
|
2184
2143
|
} while (i = i.parentElement);
|
|
2185
2144
|
return null;
|
|
2186
|
-
},
|
|
2145
|
+
}, cn = (e) => ln(e, (t) => {
|
|
2187
2146
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2188
2147
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2189
|
-
}),
|
|
2148
|
+
}), ve = ({
|
|
2190
2149
|
event: e,
|
|
2191
2150
|
target: t
|
|
2192
2151
|
}) => {
|
|
2193
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
2152
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
|
|
2194
2153
|
return {
|
|
2195
2154
|
x: a,
|
|
2196
2155
|
y: r
|
|
2197
2156
|
};
|
|
2198
|
-
},
|
|
2199
|
-
const t = e.target, n = t &&
|
|
2157
|
+
}, sn = (e) => {
|
|
2158
|
+
const t = e.target, n = t && cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2200
2159
|
return {
|
|
2201
2160
|
targetBuilderElement: i || void 0,
|
|
2202
2161
|
metadata: {
|
|
2203
|
-
targetOffset: t ?
|
|
2162
|
+
targetOffset: t ? ve({
|
|
2204
2163
|
event: e,
|
|
2205
2164
|
target: t
|
|
2206
2165
|
}) : void 0,
|
|
2207
|
-
builderTargetOffset: n ?
|
|
2166
|
+
builderTargetOffset: n ? ve({
|
|
2208
2167
|
event: e,
|
|
2209
2168
|
target: n
|
|
2210
2169
|
}) : void 0,
|
|
@@ -2212,13 +2171,13 @@ const cn = (e, t, n = !0) => {
|
|
|
2212
2171
|
}
|
|
2213
2172
|
};
|
|
2214
2173
|
};
|
|
2215
|
-
async function
|
|
2174
|
+
async function dn({
|
|
2216
2175
|
key: e,
|
|
2217
2176
|
value: t
|
|
2218
2177
|
}) {
|
|
2219
2178
|
return Fe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2220
2179
|
}
|
|
2221
|
-
function
|
|
2180
|
+
function Se(e, ...t) {
|
|
2222
2181
|
const n = Object(e);
|
|
2223
2182
|
for (let i = 1; i < arguments.length; i++) {
|
|
2224
2183
|
const o = arguments[i];
|
|
@@ -2228,31 +2187,31 @@ function ke(e, ...t) {
|
|
|
2228
2187
|
}
|
|
2229
2188
|
return n;
|
|
2230
2189
|
}
|
|
2231
|
-
function
|
|
2190
|
+
function un(e) {
|
|
2232
2191
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2233
2192
|
}
|
|
2234
|
-
function
|
|
2235
|
-
const n =
|
|
2193
|
+
function mn(e, t) {
|
|
2194
|
+
const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
2236
2195
|
for (const l of r)
|
|
2237
2196
|
for (const s of n)
|
|
2238
2197
|
s in l || (l[s] = i[s]);
|
|
2239
2198
|
}
|
|
2240
|
-
function
|
|
2199
|
+
function fn(e) {
|
|
2241
2200
|
const t = [];
|
|
2242
2201
|
for (const n of e.steps)
|
|
2243
2202
|
for (const i in n.styles)
|
|
2244
2203
|
t.indexOf(i) === -1 && t.push(i);
|
|
2245
2204
|
return t;
|
|
2246
2205
|
}
|
|
2247
|
-
function
|
|
2206
|
+
function hn(e) {
|
|
2248
2207
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2249
2208
|
if (!t.length) {
|
|
2250
|
-
|
|
2209
|
+
un(e.elementId || e.id || "");
|
|
2251
2210
|
return;
|
|
2252
2211
|
}
|
|
2253
2212
|
Array.from(t).forEach((n) => {
|
|
2254
|
-
|
|
2255
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2213
|
+
mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Se(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2214
|
+
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
2215
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2257
2216
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2258
2217
|
});
|
|
@@ -2284,7 +2243,7 @@ font-weight: ${l};
|
|
|
2284
2243
|
`.trim());
|
|
2285
2244
|
}
|
|
2286
2245
|
return o;
|
|
2287
|
-
},
|
|
2246
|
+
}, bn = ({
|
|
2288
2247
|
customFonts: e
|
|
2289
2248
|
}) => {
|
|
2290
2249
|
var t;
|
|
@@ -2292,7 +2251,7 @@ font-weight: ${l};
|
|
|
2292
2251
|
}, yn = ({
|
|
2293
2252
|
cssCode: e,
|
|
2294
2253
|
contentId: t
|
|
2295
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2254
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
|
|
2296
2255
|
.builder-button {
|
|
2297
2256
|
all: unset;
|
|
2298
2257
|
}
|
|
@@ -2309,38 +2268,38 @@ font-weight: ${l};
|
|
|
2309
2268
|
text-align: inherit;
|
|
2310
2269
|
font-family: inherit;
|
|
2311
2270
|
}
|
|
2312
|
-
`,
|
|
2313
|
-
function
|
|
2314
|
-
var
|
|
2315
|
-
const t =
|
|
2316
|
-
function n(
|
|
2317
|
-
var
|
|
2271
|
+
`, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
|
|
2272
|
+
function xn(e) {
|
|
2273
|
+
var B, O, D, X, Z, se, de;
|
|
2274
|
+
const t = oe(null);
|
|
2275
|
+
function n(g) {
|
|
2276
|
+
var p, v;
|
|
2318
2277
|
const f = {
|
|
2319
2278
|
...e.builderContextSignal.rootState,
|
|
2320
|
-
...
|
|
2279
|
+
...g
|
|
2321
2280
|
};
|
|
2322
|
-
e.builderContextSignal.rootSetState ? (v = (
|
|
2281
|
+
e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
|
|
2323
2282
|
}
|
|
2324
|
-
function i(
|
|
2325
|
-
var
|
|
2283
|
+
function i(g) {
|
|
2284
|
+
var p, v, C, P, U;
|
|
2326
2285
|
const f = {
|
|
2327
2286
|
...e.builderContextSignal.content,
|
|
2328
|
-
...
|
|
2287
|
+
...g,
|
|
2329
2288
|
data: {
|
|
2330
|
-
...(
|
|
2331
|
-
...
|
|
2289
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
|
|
2290
|
+
...g == null ? void 0 : g.data
|
|
2332
2291
|
},
|
|
2333
2292
|
meta: {
|
|
2334
2293
|
...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
|
|
2335
|
-
...
|
|
2336
|
-
breakpoints: ((
|
|
2294
|
+
...g == null ? void 0 : g.meta,
|
|
2295
|
+
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
2296
|
}
|
|
2338
2297
|
};
|
|
2339
|
-
|
|
2298
|
+
dn({
|
|
2340
2299
|
value: f,
|
|
2341
2300
|
key: f.id
|
|
2342
2301
|
}).then(() => {
|
|
2343
|
-
|
|
2302
|
+
T.refresh();
|
|
2344
2303
|
});
|
|
2345
2304
|
}
|
|
2346
2305
|
function o() {
|
|
@@ -2352,34 +2311,34 @@ function Sn(e) {
|
|
|
2352
2311
|
const [a, r] = N(
|
|
2353
2312
|
() => e.contentWrapper || "div"
|
|
2354
2313
|
);
|
|
2355
|
-
function l(
|
|
2356
|
-
return
|
|
2314
|
+
function l(g) {
|
|
2315
|
+
return Oe({
|
|
2357
2316
|
model: e.model,
|
|
2358
2317
|
trustedHosts: e.trustedHosts,
|
|
2359
2318
|
callbacks: {
|
|
2360
2319
|
configureSdk: (f) => {
|
|
2361
|
-
var
|
|
2362
|
-
const { breakpoints:
|
|
2363
|
-
!v || v !== ((
|
|
2320
|
+
var C;
|
|
2321
|
+
const { breakpoints: p, contentId: v } = f;
|
|
2322
|
+
!v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
|
|
2364
2323
|
meta: {
|
|
2365
|
-
breakpoints:
|
|
2324
|
+
breakpoints: p
|
|
2366
2325
|
}
|
|
2367
2326
|
});
|
|
2368
2327
|
},
|
|
2369
2328
|
animation: (f) => {
|
|
2370
|
-
|
|
2329
|
+
hn(f);
|
|
2371
2330
|
},
|
|
2372
2331
|
contentUpdate: (f) => {
|
|
2373
2332
|
i(f);
|
|
2374
2333
|
}
|
|
2375
2334
|
}
|
|
2376
|
-
})(
|
|
2335
|
+
})(g);
|
|
2377
2336
|
}
|
|
2378
2337
|
function s() {
|
|
2379
|
-
var f,
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
code:
|
|
2338
|
+
var f, p;
|
|
2339
|
+
const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
|
|
2340
|
+
g && H({
|
|
2341
|
+
code: g,
|
|
2383
2342
|
context: e.context || {},
|
|
2384
2343
|
localState: void 0,
|
|
2385
2344
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2390,35 +2349,35 @@ function Sn(e) {
|
|
|
2390
2349
|
enableCache: !1
|
|
2391
2350
|
});
|
|
2392
2351
|
}
|
|
2393
|
-
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [
|
|
2394
|
-
function
|
|
2395
|
-
var f,
|
|
2352
|
+
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, I] = N(() => !1);
|
|
2353
|
+
function y(g) {
|
|
2354
|
+
var f, p;
|
|
2396
2355
|
if (e.builderContextSignal.content) {
|
|
2397
|
-
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId,
|
|
2398
|
-
|
|
2356
|
+
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
|
|
2357
|
+
ue({
|
|
2399
2358
|
type: "click",
|
|
2400
2359
|
canTrack: q(e.canTrack),
|
|
2401
|
-
contentId:
|
|
2360
|
+
contentId: C,
|
|
2402
2361
|
apiKey: e.apiKey,
|
|
2403
|
-
variationId: v !==
|
|
2404
|
-
...
|
|
2405
|
-
unique: !
|
|
2362
|
+
variationId: v !== C ? v : void 0,
|
|
2363
|
+
...sn(g),
|
|
2364
|
+
unique: !x
|
|
2406
2365
|
});
|
|
2407
2366
|
}
|
|
2408
|
-
|
|
2367
|
+
x || I(!0);
|
|
2409
2368
|
}
|
|
2410
2369
|
function A() {
|
|
2411
|
-
var f,
|
|
2412
|
-
const
|
|
2413
|
-
Object.entries(
|
|
2414
|
-
if (!
|
|
2370
|
+
var f, p, v;
|
|
2371
|
+
const g = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
|
|
2372
|
+
Object.entries(g).forEach(([C, P]) => {
|
|
2373
|
+
if (!P || u[C] || d[C] && !V())
|
|
2415
2374
|
return;
|
|
2416
|
-
u[
|
|
2417
|
-
const U =
|
|
2375
|
+
u[C] = !0;
|
|
2376
|
+
const U = P.replace(
|
|
2418
2377
|
/{{([^}]+)}}/g,
|
|
2419
|
-
($,
|
|
2378
|
+
($, Ne) => String(
|
|
2420
2379
|
H({
|
|
2421
|
-
code:
|
|
2380
|
+
code: Ne,
|
|
2422
2381
|
context: e.context || {},
|
|
2423
2382
|
localState: void 0,
|
|
2424
2383
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2427,24 +2386,24 @@ function Sn(e) {
|
|
|
2427
2386
|
})
|
|
2428
2387
|
)
|
|
2429
2388
|
);
|
|
2430
|
-
|
|
2389
|
+
De(U).then(($) => $.json()).then(($) => {
|
|
2431
2390
|
n({
|
|
2432
|
-
[
|
|
2433
|
-
}), d[
|
|
2391
|
+
[C]: $
|
|
2392
|
+
}), d[C] = !0;
|
|
2434
2393
|
}).catch(($) => {
|
|
2435
|
-
console.error("error fetching dynamic data",
|
|
2394
|
+
console.error("error fetching dynamic data", P, $);
|
|
2436
2395
|
}).finally(() => {
|
|
2437
|
-
u[
|
|
2396
|
+
u[C] = !1;
|
|
2438
2397
|
});
|
|
2439
2398
|
});
|
|
2440
2399
|
}
|
|
2441
|
-
function
|
|
2400
|
+
function S() {
|
|
2442
2401
|
V() && window.dispatchEvent(
|
|
2443
2402
|
new CustomEvent(
|
|
2444
2403
|
"builder:component:stateChange",
|
|
2445
2404
|
{
|
|
2446
2405
|
detail: {
|
|
2447
|
-
state:
|
|
2406
|
+
state: ie(e.builderContextSignal.rootState),
|
|
2448
2407
|
ref: {
|
|
2449
2408
|
name: e.model
|
|
2450
2409
|
}
|
|
@@ -2453,8 +2412,8 @@ function Sn(e) {
|
|
|
2453
2412
|
)
|
|
2454
2413
|
);
|
|
2455
2414
|
}
|
|
2456
|
-
function g
|
|
2457
|
-
window.addEventListener("message", l),
|
|
2415
|
+
function b(g) {
|
|
2416
|
+
window.addEventListener("message", l), je(), He({
|
|
2458
2417
|
...e.locale ? {
|
|
2459
2418
|
locale: e.locale
|
|
2460
2419
|
} : {},
|
|
@@ -2468,117 +2427,117 @@ function Sn(e) {
|
|
|
2468
2427
|
e.builderContextSignal.componentInfos
|
|
2469
2428
|
).forEach((f) => {
|
|
2470
2429
|
var v;
|
|
2471
|
-
const
|
|
2472
|
-
(v = window.parent) == null || v.postMessage(
|
|
2430
|
+
const p = Me(f);
|
|
2431
|
+
(v = window.parent) == null || v.postMessage(p, "*");
|
|
2473
2432
|
}), window.addEventListener(
|
|
2474
2433
|
"builder:component:stateChangeListenerActivated",
|
|
2475
|
-
|
|
2434
|
+
S
|
|
2476
2435
|
);
|
|
2477
2436
|
}
|
|
2478
|
-
function
|
|
2479
|
-
const f = new URL(location.href).searchParams,
|
|
2480
|
-
`builder.overrides.${
|
|
2481
|
-
),
|
|
2482
|
-
|
|
2437
|
+
function k(g) {
|
|
2438
|
+
const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
|
|
2439
|
+
`builder.overrides.${p}`
|
|
2440
|
+
), C = f.get("apiKey") || f.get("builder.space");
|
|
2441
|
+
p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && ke({
|
|
2483
2442
|
model: e.model,
|
|
2484
2443
|
apiKey: e.apiKey,
|
|
2485
2444
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2486
|
-
}).then((
|
|
2487
|
-
|
|
2445
|
+
}).then((P) => {
|
|
2446
|
+
P && i(P);
|
|
2488
2447
|
});
|
|
2489
2448
|
}
|
|
2490
|
-
const
|
|
2491
|
-
return
|
|
2492
|
-
var
|
|
2493
|
-
return (
|
|
2449
|
+
const T = Ke();
|
|
2450
|
+
return R(() => {
|
|
2451
|
+
var g;
|
|
2452
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2494
2453
|
"initeditingbldr",
|
|
2495
|
-
|
|
2454
|
+
b
|
|
2496
2455
|
), () => {
|
|
2497
2456
|
var f;
|
|
2498
2457
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2499
2458
|
"initeditingbldr",
|
|
2500
|
-
|
|
2459
|
+
b
|
|
2501
2460
|
);
|
|
2502
2461
|
};
|
|
2503
|
-
}, []),
|
|
2504
|
-
var
|
|
2505
|
-
return (
|
|
2462
|
+
}, []), R(() => {
|
|
2463
|
+
var g;
|
|
2464
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2506
2465
|
"initpreviewingbldr",
|
|
2507
|
-
|
|
2466
|
+
k
|
|
2508
2467
|
), () => {
|
|
2509
2468
|
var f;
|
|
2510
2469
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2511
2470
|
"initpreviewingbldr",
|
|
2512
|
-
|
|
2471
|
+
k
|
|
2513
2472
|
);
|
|
2514
2473
|
};
|
|
2515
|
-
}, []),
|
|
2516
|
-
var
|
|
2517
|
-
if (
|
|
2474
|
+
}, []), R(() => {
|
|
2475
|
+
var g, f;
|
|
2476
|
+
if (L()) {
|
|
2518
2477
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2519
|
-
const v = (
|
|
2520
|
-
|
|
2478
|
+
const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, P = e.apiKey;
|
|
2479
|
+
ue({
|
|
2521
2480
|
type: "impression",
|
|
2522
2481
|
canTrack: !0,
|
|
2523
|
-
contentId:
|
|
2524
|
-
apiKey:
|
|
2525
|
-
variationId: v !==
|
|
2482
|
+
contentId: C,
|
|
2483
|
+
apiKey: P,
|
|
2484
|
+
variationId: v !== C ? v : void 0
|
|
2526
2485
|
});
|
|
2527
2486
|
}
|
|
2528
|
-
|
|
2487
|
+
Le() && V();
|
|
2529
2488
|
}
|
|
2530
|
-
}, []),
|
|
2489
|
+
}, []), R(() => {
|
|
2531
2490
|
e.apiKey || J.error(
|
|
2532
2491
|
"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]),
|
|
2492
|
+
), s(), A(), S();
|
|
2493
|
+
}, []), R(() => {
|
|
2494
|
+
}, [e.content]), R(() => {
|
|
2536
2495
|
s();
|
|
2537
|
-
}, [(O = (
|
|
2496
|
+
}, [(O = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : O.jsCode]), R(() => {
|
|
2538
2497
|
A();
|
|
2539
|
-
}, [(
|
|
2540
|
-
|
|
2541
|
-
}, [e.builderContextSignal.rootState]),
|
|
2498
|
+
}, [(X = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2499
|
+
S();
|
|
2500
|
+
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2542
2501
|
e.data && n(e.data);
|
|
2543
|
-
}, [e.data]),
|
|
2502
|
+
}, [e.data]), R(() => {
|
|
2544
2503
|
e.locale && n({
|
|
2545
2504
|
locale: e.locale
|
|
2546
2505
|
});
|
|
2547
|
-
}, [e.locale]),
|
|
2548
|
-
|
|
2506
|
+
}, [e.locale]), R(() => () => {
|
|
2507
|
+
L() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
2549
2508
|
"builder:component:stateChangeListenerActivated",
|
|
2550
|
-
|
|
2509
|
+
S
|
|
2551
2510
|
));
|
|
2552
|
-
}, []), /* @__PURE__ */ c(
|
|
2511
|
+
}, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
|
|
2553
2512
|
a,
|
|
2554
2513
|
{
|
|
2555
2514
|
ref: t,
|
|
2556
|
-
onClick: (
|
|
2557
|
-
"builder-content-id": (
|
|
2515
|
+
onClick: (g) => y(g),
|
|
2516
|
+
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2558
2517
|
"builder-model": e.model,
|
|
2559
2518
|
...o(),
|
|
2560
2519
|
...e.contentWrapperProps,
|
|
2561
|
-
className:
|
|
2562
|
-
((
|
|
2520
|
+
className: Sn(
|
|
2521
|
+
((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
|
|
2563
2522
|
),
|
|
2564
2523
|
children: e.children
|
|
2565
2524
|
}
|
|
2566
2525
|
) : null });
|
|
2567
2526
|
}
|
|
2568
|
-
function
|
|
2527
|
+
function kn(e) {
|
|
2569
2528
|
const t = `
|
|
2570
2529
|
${yn({
|
|
2571
2530
|
cssCode: e.cssCode,
|
|
2572
2531
|
contentId: e.contentId
|
|
2573
2532
|
})}
|
|
2574
|
-
${
|
|
2533
|
+
${bn({
|
|
2575
2534
|
customFonts: e.customFonts
|
|
2576
2535
|
})}
|
|
2577
|
-
${
|
|
2536
|
+
${vn(e.isNestedRender)}
|
|
2578
2537
|
`.trim();
|
|
2579
|
-
return /* @__PURE__ */ c(
|
|
2538
|
+
return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
|
|
2580
2539
|
}
|
|
2581
|
-
const
|
|
2540
|
+
const Cn = ({
|
|
2582
2541
|
content: e,
|
|
2583
2542
|
data: t,
|
|
2584
2543
|
locale: n
|
|
@@ -2606,9 +2565,9 @@ const In = ({
|
|
|
2606
2565
|
},
|
|
2607
2566
|
meta: e == null ? void 0 : e.meta
|
|
2608
2567
|
} : void 0;
|
|
2609
|
-
function
|
|
2568
|
+
function xe(e) {
|
|
2610
2569
|
var o, a, r, l, s, d, m, u, h;
|
|
2611
|
-
const t =
|
|
2570
|
+
const t = an({
|
|
2612
2571
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2613
2572
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2614
2573
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2617,11 +2576,11 @@ function Se(e) {
|
|
|
2617
2576
|
...ye(),
|
|
2618
2577
|
...e.customComponents || []
|
|
2619
2578
|
].reduce(
|
|
2620
|
-
(
|
|
2621
|
-
...
|
|
2622
|
-
[
|
|
2623
|
-
component:
|
|
2624
|
-
...
|
|
2579
|
+
(x, { component: I, ...y }) => ({
|
|
2580
|
+
...x,
|
|
2581
|
+
[y.name]: {
|
|
2582
|
+
component: I,
|
|
2583
|
+
...me(y)
|
|
2625
2584
|
}
|
|
2626
2585
|
}),
|
|
2627
2586
|
{}
|
|
@@ -2631,7 +2590,7 @@ function Se(e) {
|
|
|
2631
2590
|
data: e.data
|
|
2632
2591
|
}),
|
|
2633
2592
|
localState: void 0,
|
|
2634
|
-
rootState:
|
|
2593
|
+
rootState: Cn({
|
|
2635
2594
|
content: e.content,
|
|
2636
2595
|
data: e.data,
|
|
2637
2596
|
locale: e.locale
|
|
@@ -2645,9 +2604,9 @@ function Se(e) {
|
|
|
2645
2604
|
...ye(),
|
|
2646
2605
|
...e.customComponents || []
|
|
2647
2606
|
].reduce(
|
|
2648
|
-
(
|
|
2649
|
-
...
|
|
2650
|
-
[
|
|
2607
|
+
(x, { component: I, ...y }) => ({
|
|
2608
|
+
...x,
|
|
2609
|
+
[y.name]: me(y)
|
|
2651
2610
|
}),
|
|
2652
2611
|
{}
|
|
2653
2612
|
),
|
|
@@ -2655,8 +2614,8 @@ function Se(e) {
|
|
|
2655
2614
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
2656
2615
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2657
2616
|
};
|
|
2658
|
-
return /* @__PURE__ */
|
|
2659
|
-
|
|
2617
|
+
return /* @__PURE__ */ E(
|
|
2618
|
+
xn,
|
|
2660
2619
|
{
|
|
2661
2620
|
content: e.content,
|
|
2662
2621
|
data: e.data,
|
|
@@ -2673,14 +2632,14 @@ function Se(e) {
|
|
|
2673
2632
|
trustedHosts: e.trustedHosts,
|
|
2674
2633
|
children: [
|
|
2675
2634
|
e.isSsrAbTest ? /* @__PURE__ */ c(
|
|
2676
|
-
|
|
2635
|
+
ne,
|
|
2677
2636
|
{
|
|
2678
2637
|
id: "builderio-variant-visibility",
|
|
2679
2638
|
scriptStr: t
|
|
2680
2639
|
}
|
|
2681
2640
|
) : null,
|
|
2682
2641
|
/* @__PURE__ */ c(
|
|
2683
|
-
|
|
2642
|
+
kn,
|
|
2684
2643
|
{
|
|
2685
2644
|
isNestedRender: e.isNestedRender,
|
|
2686
2645
|
contentId: (r = i.content) == null ? void 0 : r.id,
|
|
@@ -2689,7 +2648,7 @@ function Se(e) {
|
|
|
2689
2648
|
}
|
|
2690
2649
|
),
|
|
2691
2650
|
/* @__PURE__ */ c(
|
|
2692
|
-
|
|
2651
|
+
ce,
|
|
2693
2652
|
{
|
|
2694
2653
|
blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
|
|
2695
2654
|
context: i,
|
|
@@ -2701,14 +2660,14 @@ function Se(e) {
|
|
|
2701
2660
|
}
|
|
2702
2661
|
);
|
|
2703
2662
|
}
|
|
2704
|
-
function
|
|
2663
|
+
function In(e) {
|
|
2705
2664
|
var a;
|
|
2706
|
-
const t =
|
|
2665
|
+
const t = en({
|
|
2707
2666
|
canTrack: q(e.canTrack),
|
|
2708
2667
|
content: e.content
|
|
2709
2668
|
}), n = function() {
|
|
2710
2669
|
var l;
|
|
2711
|
-
return
|
|
2670
|
+
return on(
|
|
2712
2671
|
K(e.content).map((s) => ({
|
|
2713
2672
|
id: s.testVariationId,
|
|
2714
2673
|
testRatio: s.testRatio
|
|
@@ -2722,36 +2681,36 @@ function Tn(e) {
|
|
|
2722
2681
|
return t ? {
|
|
2723
2682
|
...e.content,
|
|
2724
2683
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
2725
|
-
} :
|
|
2684
|
+
} : Ue({
|
|
2726
2685
|
item: e.content,
|
|
2727
2686
|
canTrack: q(e.canTrack)
|
|
2728
2687
|
});
|
|
2729
2688
|
};
|
|
2730
|
-
return /* @__PURE__ */
|
|
2689
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
2731
2690
|
!e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ c(
|
|
2732
|
-
|
|
2691
|
+
ne,
|
|
2733
2692
|
{
|
|
2734
2693
|
id: "builderio-init-variants-fns",
|
|
2735
|
-
scriptStr:
|
|
2694
|
+
scriptStr: nn()
|
|
2736
2695
|
}
|
|
2737
2696
|
) : null,
|
|
2738
|
-
t ? /* @__PURE__ */
|
|
2697
|
+
t ? /* @__PURE__ */ E(w, { children: [
|
|
2739
2698
|
/* @__PURE__ */ c(
|
|
2740
|
-
|
|
2699
|
+
Q,
|
|
2741
2700
|
{
|
|
2742
2701
|
id: "builderio-variants",
|
|
2743
2702
|
styles: i()
|
|
2744
2703
|
}
|
|
2745
2704
|
),
|
|
2746
2705
|
/* @__PURE__ */ c(
|
|
2747
|
-
|
|
2706
|
+
ne,
|
|
2748
2707
|
{
|
|
2749
2708
|
id: "builderio-variants-visibility",
|
|
2750
2709
|
scriptStr: n()
|
|
2751
2710
|
}
|
|
2752
2711
|
),
|
|
2753
2712
|
(a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
|
|
2754
|
-
|
|
2713
|
+
xe,
|
|
2755
2714
|
{
|
|
2756
2715
|
isNestedRender: e.isNestedRender,
|
|
2757
2716
|
content: r,
|
|
@@ -2777,7 +2736,7 @@ function Tn(e) {
|
|
|
2777
2736
|
))
|
|
2778
2737
|
] }) : null,
|
|
2779
2738
|
/* @__PURE__ */ c(
|
|
2780
|
-
|
|
2739
|
+
xe,
|
|
2781
2740
|
{
|
|
2782
2741
|
isNestedRender: e.isNestedRender,
|
|
2783
2742
|
content: o(),
|
|
@@ -2802,13 +2761,13 @@ function Tn(e) {
|
|
|
2802
2761
|
)
|
|
2803
2762
|
] });
|
|
2804
2763
|
}
|
|
2805
|
-
const
|
|
2764
|
+
const Tn = async ({
|
|
2806
2765
|
builderContextValue: e,
|
|
2807
2766
|
symbol: t
|
|
2808
2767
|
}) => {
|
|
2809
2768
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2810
2769
|
(e != null && e.apiKey))
|
|
2811
|
-
return
|
|
2770
|
+
return ke({
|
|
2812
2771
|
model: t.model,
|
|
2813
2772
|
apiKey: e.apiKey,
|
|
2814
2773
|
apiVersion: e.apiVersion,
|
|
@@ -2821,7 +2780,7 @@ const Rn = async ({
|
|
|
2821
2780
|
J.error("Could not fetch symbol content: ", n);
|
|
2822
2781
|
});
|
|
2823
2782
|
};
|
|
2824
|
-
async function
|
|
2783
|
+
async function Rn(e) {
|
|
2825
2784
|
var a, r, l, s, d;
|
|
2826
2785
|
const t = function() {
|
|
2827
2786
|
return "div";
|
|
@@ -2835,12 +2794,12 @@ async function Pn(e) {
|
|
|
2835
2794
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
2836
2795
|
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2837
2796
|
].filter(Boolean).join(" ");
|
|
2838
|
-
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
2797
|
+
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
|
|
2839
2798
|
symbol: e.symbol,
|
|
2840
2799
|
builderContextValue: e.builderContext
|
|
2841
2800
|
});
|
|
2842
2801
|
return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
|
|
2843
|
-
|
|
2802
|
+
In,
|
|
2844
2803
|
{
|
|
2845
2804
|
isNestedRender: !0,
|
|
2846
2805
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -2865,15 +2824,15 @@ async function Pn(e) {
|
|
|
2865
2824
|
) });
|
|
2866
2825
|
}
|
|
2867
2826
|
export {
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2827
|
+
ce as Blocks,
|
|
2828
|
+
rn as BuilderContext,
|
|
2829
|
+
Ye as Button,
|
|
2830
|
+
It as Columns,
|
|
2831
|
+
In as Content,
|
|
2832
|
+
Tt as Fragment,
|
|
2833
|
+
Pt as Image,
|
|
2834
|
+
Bt as Section,
|
|
2835
|
+
Rn as Symbol,
|
|
2836
|
+
jt as Text,
|
|
2837
|
+
Qt as Video
|
|
2879
2838
|
};
|