@builder.io/sdk-react-nextjs 0.16.8 → 0.16.9
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 +20 -20
- package/lib/browser/blocks-exports.mjs +295 -284
- 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/{node/server-entry-89b4c0d0.cjs → browser/server-entry-ed0910dd.cjs} +1 -1
- package/lib/browser/{server-entry-30b63436.js → server-entry-ff1eb217.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +28 -28
- package/lib/edge/blocks-exports.mjs +599 -588
- 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/{browser/server-entry-89b4c0d0.cjs → edge/server-entry-ed0910dd.cjs} +1 -1
- package/lib/{node/server-entry-30b63436.js → edge/server-entry-ff1eb217.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +292 -281
- 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-60abefbd.cjs → node-runtime-3b9a05b3.cjs} +1 -1
- package/lib/node/{node-runtime-c36924d7.js → node-runtime-606c2607.js} +1 -1
- package/lib/{edge/server-entry-89b4c0d0.cjs → node/server-entry-ed0910dd.cjs} +1 -1
- package/lib/{edge/server-entry-30b63436.js → node/server-entry-ff1eb217.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/blocks/slot/slot.d.ts +2 -2
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/blocks/slot/slot.d.ts +2 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var ee = (e, t, n) => (
|
|
5
|
-
import { jsx as l, Fragment as
|
|
6
|
-
import { TARGET as $, checkIsDefined as K, logger as Y, isBrowser as z, isPreviewing as
|
|
7
|
-
import { getFunctionArguments as
|
|
2
|
+
var Ve = Object.defineProperty;
|
|
3
|
+
var $e = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ee = (e, t, n) => ($e(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as T, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as $, checkIsDefined as K, logger as Y, isBrowser as z, isPreviewing as ke, isEditing as V, init as Fe, getDefaultCanTrack as q, _track as ue, createEditorListener as Le, fetch as Oe, registerInsertMenu as De, setupBrowserForEditing as _e, createRegisterComponentMessage as He, fetchOneEntry as Ce, serializeIncludingFunctions as me, handleABTestingSync as je } from "./server-entry-ff1eb217.js";
|
|
7
|
+
import { getFunctionArguments as Ue, runInNode as Me, parseCode as Ke, getBuilderGlobals as ze, set as qe, fastClone as oe } from "./node-runtime-606c2607.js";
|
|
8
8
|
import "lru-cache";
|
|
9
|
-
import { useRef as J, useEffect as R, useState as N, createContext as
|
|
10
|
-
import { useRouter as
|
|
11
|
-
const
|
|
9
|
+
import { useRef as J, useEffect as R, useState as N, createContext as Ye } from "react";
|
|
10
|
+
import { useRouter as Je } from "next/navigation";
|
|
11
|
+
const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ge = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
|
|
12
12
|
function ae(e) {
|
|
13
|
-
return /* @__PURE__ */ l(
|
|
13
|
+
return /* @__PURE__ */ l(T, { children: Ge(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
14
14
|
}
|
|
15
15
|
const H = () => {
|
|
16
16
|
switch ($) {
|
|
@@ -26,7 +26,7 @@ const H = () => {
|
|
|
26
26
|
return "class";
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function Xe(e) {
|
|
30
30
|
function t() {
|
|
31
31
|
return {
|
|
32
32
|
...e.attributes,
|
|
@@ -50,20 +50,20 @@ function Ge(e) {
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ze(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
|
-
function
|
|
60
|
+
function et(e, ...t) {
|
|
61
61
|
const n = Object.assign({}, e);
|
|
62
62
|
for (const i of t)
|
|
63
63
|
delete n[i];
|
|
64
64
|
return n;
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const tt = ({
|
|
67
67
|
code: e,
|
|
68
68
|
builder: t,
|
|
69
69
|
context: n,
|
|
@@ -72,11 +72,11 @@ const et = ({
|
|
|
72
72
|
rootSetState: a,
|
|
73
73
|
rootState: r
|
|
74
74
|
}) => {
|
|
75
|
-
const s =
|
|
75
|
+
const s = Ue({
|
|
76
76
|
builder: t,
|
|
77
77
|
context: n,
|
|
78
78
|
event: i,
|
|
79
|
-
state:
|
|
79
|
+
state: Ie({
|
|
80
80
|
rootState: r,
|
|
81
81
|
localState: o,
|
|
82
82
|
rootSetState: a
|
|
@@ -84,7 +84,7 @@ const et = ({
|
|
|
84
84
|
});
|
|
85
85
|
return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
|
|
86
86
|
};
|
|
87
|
-
function
|
|
87
|
+
function Ie({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
@@ -94,7 +94,7 @@ function Ce({
|
|
|
94
94
|
if (t && o in t)
|
|
95
95
|
return t[o];
|
|
96
96
|
const a = i[o];
|
|
97
|
-
return typeof a == "object" && a !== null ?
|
|
97
|
+
return typeof a == "object" && a !== null ? Ie({
|
|
98
98
|
rootState: a,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
@@ -109,17 +109,17 @@ function Ce({
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function nt() {
|
|
113
113
|
var e;
|
|
114
114
|
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
116
|
+
const it = () => {
|
|
117
117
|
var i;
|
|
118
|
-
if (!
|
|
118
|
+
if (!nt())
|
|
119
119
|
return !1;
|
|
120
120
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
121
121
|
return e && t && !n ? (Y.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;
|
|
122
|
-
},
|
|
122
|
+
}, ot = (e) => z() || it() ? tt(e) : Me(e), at = !0, A = class A {
|
|
123
123
|
static getCacheKey(t) {
|
|
124
124
|
return JSON.stringify({
|
|
125
125
|
...t,
|
|
@@ -152,23 +152,23 @@ function O({
|
|
|
152
152
|
if (e === "")
|
|
153
153
|
return;
|
|
154
154
|
const c = {
|
|
155
|
-
code:
|
|
155
|
+
code: Ke(e, {
|
|
156
156
|
isExpression: r
|
|
157
157
|
}),
|
|
158
|
-
builder:
|
|
158
|
+
builder: ze(),
|
|
159
159
|
context: t,
|
|
160
160
|
event: a,
|
|
161
161
|
rootSetState: o,
|
|
162
162
|
rootState: i,
|
|
163
163
|
localState: n
|
|
164
164
|
};
|
|
165
|
-
if (s && !
|
|
165
|
+
if (s && !at) {
|
|
166
166
|
const d = L.getCacheKey(c), u = L.getCachedValue(d);
|
|
167
167
|
if (u)
|
|
168
168
|
return u.value;
|
|
169
169
|
}
|
|
170
170
|
try {
|
|
171
|
-
const d =
|
|
171
|
+
const d = ot(c);
|
|
172
172
|
if (s) {
|
|
173
173
|
const u = L.getCacheKey(c);
|
|
174
174
|
L.setCachedValue(u, d);
|
|
@@ -193,8 +193,8 @@ function ne(e) {
|
|
|
193
193
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
|
|
194
194
|
return t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
196
|
+
const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), ct = (e) => {
|
|
197
|
+
if (rt) {
|
|
198
198
|
const t = oe(e);
|
|
199
199
|
return {
|
|
200
200
|
...t,
|
|
@@ -206,7 +206,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
} else {
|
|
209
|
-
const t = ne(
|
|
209
|
+
const t = ne(et(e, "children", "meta"));
|
|
210
210
|
return {
|
|
211
211
|
...t,
|
|
212
212
|
properties: {
|
|
@@ -219,7 +219,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
|
|
|
219
219
|
meta: e.meta
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, lt = ({
|
|
223
223
|
block: e,
|
|
224
224
|
context: t,
|
|
225
225
|
localState: n,
|
|
@@ -228,7 +228,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
|
|
|
228
228
|
}) => {
|
|
229
229
|
if (!e.bindings)
|
|
230
230
|
return e;
|
|
231
|
-
const a =
|
|
231
|
+
const a = ct(e);
|
|
232
232
|
for (const r in e.bindings) {
|
|
233
233
|
const s = e.bindings[r], c = O({
|
|
234
234
|
code: s,
|
|
@@ -238,11 +238,11 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
|
|
|
238
238
|
context: t,
|
|
239
239
|
enableCache: !0
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
qe(a, r, c);
|
|
242
242
|
}
|
|
243
243
|
return a;
|
|
244
244
|
};
|
|
245
|
-
function
|
|
245
|
+
function st({
|
|
246
246
|
block: e,
|
|
247
247
|
context: t,
|
|
248
248
|
shouldEvaluateBindings: n,
|
|
@@ -251,7 +251,7 @@ function lt({
|
|
|
251
251
|
rootSetState: a
|
|
252
252
|
}) {
|
|
253
253
|
const r = e;
|
|
254
|
-
return n ?
|
|
254
|
+
return n ? lt({
|
|
255
255
|
block: r,
|
|
256
256
|
localState: i,
|
|
257
257
|
rootState: o,
|
|
@@ -259,42 +259,42 @@ function lt({
|
|
|
259
259
|
context: t
|
|
260
260
|
}) : r;
|
|
261
261
|
}
|
|
262
|
-
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "",
|
|
262
|
+
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]) => {
|
|
263
263
|
if (typeof i == "string")
|
|
264
264
|
return `${re(n)}: ${i};`;
|
|
265
|
-
}).filter(K),
|
|
265
|
+
}).filter(K), dt = (e) => we(e).join(`
|
|
266
266
|
`), U = ({
|
|
267
267
|
mediaQuery: e,
|
|
268
268
|
className: t,
|
|
269
269
|
styles: n
|
|
270
270
|
}) => {
|
|
271
271
|
const i = `.${t} {
|
|
272
|
-
${
|
|
272
|
+
${dt(n)}
|
|
273
273
|
}`;
|
|
274
274
|
return e ? `${e} {
|
|
275
275
|
${i}
|
|
276
276
|
}` : i;
|
|
277
277
|
};
|
|
278
|
-
function
|
|
278
|
+
function ut({
|
|
279
279
|
style: e
|
|
280
280
|
}) {
|
|
281
281
|
return e;
|
|
282
282
|
}
|
|
283
|
-
const
|
|
283
|
+
const mt = ({
|
|
284
284
|
block: e,
|
|
285
285
|
context: t
|
|
286
|
-
}) =>
|
|
286
|
+
}) => Te(ut({
|
|
287
287
|
style: e.style || {},
|
|
288
288
|
context: t,
|
|
289
289
|
block: e
|
|
290
290
|
}));
|
|
291
|
-
function
|
|
291
|
+
function Te(e) {
|
|
292
292
|
switch ($) {
|
|
293
293
|
case "svelte":
|
|
294
294
|
case "vue":
|
|
295
295
|
case "solid":
|
|
296
296
|
case "angular":
|
|
297
|
-
return
|
|
297
|
+
return we(e).join(" ");
|
|
298
298
|
case "qwik":
|
|
299
299
|
case "reactNative":
|
|
300
300
|
case "react":
|
|
@@ -302,7 +302,7 @@ function we(e) {
|
|
|
302
302
|
return e;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
const
|
|
305
|
+
const ft = ({
|
|
306
306
|
block: e,
|
|
307
307
|
registeredComponents: t
|
|
308
308
|
}) => {
|
|
@@ -316,7 +316,7 @@ const mt = ({
|
|
|
316
316
|
console.warn(`
|
|
317
317
|
Could not find a registered component named "${n}".
|
|
318
318
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
319
|
-
},
|
|
319
|
+
}, ht = ({
|
|
320
320
|
block: e,
|
|
321
321
|
context: t
|
|
322
322
|
}) => {
|
|
@@ -350,27 +350,27 @@ const mt = ({
|
|
|
350
350
|
},
|
|
351
351
|
block: i
|
|
352
352
|
}));
|
|
353
|
-
},
|
|
353
|
+
}, gt = (e, t) => {
|
|
354
354
|
var n;
|
|
355
355
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
356
356
|
builderLinkComponent: t
|
|
357
357
|
} : {};
|
|
358
|
-
},
|
|
358
|
+
}, bt = (e, t) => {
|
|
359
359
|
var n;
|
|
360
360
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
361
361
|
builderComponents: t
|
|
362
362
|
} : {};
|
|
363
|
-
},
|
|
363
|
+
}, yt = (e, t) => {
|
|
364
364
|
var n;
|
|
365
365
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
366
366
|
builderBlock: t
|
|
367
367
|
} : {};
|
|
368
|
-
},
|
|
368
|
+
}, pt = (e, t) => {
|
|
369
369
|
var n;
|
|
370
370
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
371
371
|
builderContext: t
|
|
372
372
|
} : {};
|
|
373
|
-
},
|
|
373
|
+
}, Re = {
|
|
374
374
|
small: {
|
|
375
375
|
min: 320,
|
|
376
376
|
default: 321,
|
|
@@ -386,11 +386,11 @@ const mt = ({
|
|
|
386
386
|
default: 991,
|
|
387
387
|
max: 1200
|
|
388
388
|
}
|
|
389
|
-
}, fe = (e, t =
|
|
389
|
+
}, fe = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Ee = ({
|
|
390
390
|
small: e,
|
|
391
391
|
medium: t
|
|
392
392
|
}) => {
|
|
393
|
-
const n = oe(
|
|
393
|
+
const n = oe(Re);
|
|
394
394
|
if (!e || !t)
|
|
395
395
|
return n;
|
|
396
396
|
const i = Math.floor(e / 2);
|
|
@@ -423,57 +423,57 @@ function Q(e) {
|
|
|
423
423
|
}
|
|
424
424
|
);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function vt(e) {
|
|
427
427
|
const t = function() {
|
|
428
428
|
const o = e.block;
|
|
429
429
|
return K(o.hide) ? !o.hide : K(o.show) ? o.show : !0;
|
|
430
430
|
}, n = function() {
|
|
431
|
-
var
|
|
432
|
-
const o = e.block, a = o.responsiveStyles, r = e.context.content, s =
|
|
433
|
-
((
|
|
431
|
+
var b, y, I;
|
|
432
|
+
const o = e.block, a = o.responsiveStyles, r = e.context.content, s = Ee(
|
|
433
|
+
((b = r == null ? void 0 : r.meta) == null ? void 0 : b.breakpoints) || {}
|
|
434
434
|
), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, u = a == null ? void 0 : a.small, m = o.id;
|
|
435
435
|
if (!m)
|
|
436
436
|
return "";
|
|
437
|
-
const
|
|
437
|
+
const p = c ? U({
|
|
438
438
|
className: m,
|
|
439
439
|
styles: c
|
|
440
|
-
}) : "",
|
|
440
|
+
}) : "", v = d ? U({
|
|
441
441
|
className: m,
|
|
442
442
|
styles: d,
|
|
443
443
|
mediaQuery: fe(
|
|
444
444
|
"medium",
|
|
445
445
|
s
|
|
446
446
|
)
|
|
447
|
-
}) : "",
|
|
447
|
+
}) : "", S = u ? U({
|
|
448
448
|
className: m,
|
|
449
449
|
styles: u,
|
|
450
450
|
mediaQuery: fe(
|
|
451
451
|
"small",
|
|
452
452
|
s
|
|
453
453
|
)
|
|
454
|
-
}) : "",
|
|
455
|
-
let
|
|
456
|
-
if (
|
|
457
|
-
const E = ((
|
|
458
|
-
|
|
454
|
+
}) : "", f = o.animations && o.animations.find((E) => E.trigger === "hover");
|
|
455
|
+
let C = "";
|
|
456
|
+
if (f) {
|
|
457
|
+
const E = ((I = (y = f.steps) == null ? void 0 : y[1]) == null ? void 0 : I.styles) || {};
|
|
458
|
+
C = U({
|
|
459
459
|
className: `${m}:hover`,
|
|
460
460
|
styles: {
|
|
461
461
|
...E,
|
|
462
|
-
transition: `all ${
|
|
463
|
-
|
|
462
|
+
transition: `all ${f.duration}s ${re(
|
|
463
|
+
f.easing
|
|
464
464
|
)}`,
|
|
465
|
-
transitionDelay:
|
|
465
|
+
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
466
466
|
}
|
|
467
467
|
}) || "";
|
|
468
468
|
}
|
|
469
469
|
return [
|
|
470
|
-
|
|
470
|
+
p,
|
|
471
|
+
v,
|
|
471
472
|
S,
|
|
472
|
-
|
|
473
|
-
T
|
|
473
|
+
C
|
|
474
474
|
].join(" ");
|
|
475
475
|
};
|
|
476
|
-
return /* @__PURE__ */ l(
|
|
476
|
+
return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
477
477
|
Q,
|
|
478
478
|
{
|
|
479
479
|
id: "builderio-block",
|
|
@@ -482,10 +482,10 @@ function pt(e) {
|
|
|
482
482
|
}
|
|
483
483
|
) }) : null });
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function xt(e) {
|
|
486
486
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
487
487
|
}
|
|
488
|
-
const
|
|
488
|
+
const St = (e) => `on${xt(e)}`, kt = (e, t) => (n) => O({
|
|
489
489
|
code: e,
|
|
490
490
|
context: t.context,
|
|
491
491
|
localState: t.localState,
|
|
@@ -495,14 +495,14 @@ const xt = (e) => `on${vt(e)}`, St = (e, t) => (n) => O({
|
|
|
495
495
|
isExpression: !1,
|
|
496
496
|
enableCache: !0
|
|
497
497
|
});
|
|
498
|
-
function
|
|
498
|
+
function Pe(e) {
|
|
499
499
|
var i;
|
|
500
500
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
501
501
|
for (const o in n) {
|
|
502
502
|
if (!n.hasOwnProperty(o))
|
|
503
503
|
continue;
|
|
504
504
|
const a = n[o];
|
|
505
|
-
let r =
|
|
505
|
+
let r = St(o);
|
|
506
506
|
if (e.stripPrefix)
|
|
507
507
|
switch ($) {
|
|
508
508
|
case "vue":
|
|
@@ -512,16 +512,16 @@ function Ee(e) {
|
|
|
512
512
|
r = r.replace("on:", "");
|
|
513
513
|
break;
|
|
514
514
|
}
|
|
515
|
-
t[r] =
|
|
515
|
+
t[r] = kt(a, e);
|
|
516
516
|
}
|
|
517
517
|
return t;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Ct({
|
|
520
520
|
properties: e
|
|
521
521
|
}) {
|
|
522
522
|
return e;
|
|
523
523
|
}
|
|
524
|
-
const
|
|
524
|
+
const It = (e) => ({
|
|
525
525
|
href: e.href
|
|
526
526
|
});
|
|
527
527
|
function ce({
|
|
@@ -530,22 +530,22 @@ function ce({
|
|
|
530
530
|
}) {
|
|
531
531
|
var i;
|
|
532
532
|
const n = {
|
|
533
|
-
...
|
|
533
|
+
...It(e),
|
|
534
534
|
...e.properties,
|
|
535
535
|
"builder-id": e.id,
|
|
536
|
-
style:
|
|
536
|
+
style: mt({
|
|
537
537
|
block: e,
|
|
538
538
|
context: t
|
|
539
539
|
}),
|
|
540
540
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
541
541
|
};
|
|
542
|
-
return
|
|
542
|
+
return Ct({
|
|
543
543
|
properties: n,
|
|
544
544
|
context: t,
|
|
545
545
|
block: e
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function wt(e) {
|
|
549
549
|
return /* @__PURE__ */ l(
|
|
550
550
|
ae,
|
|
551
551
|
{
|
|
@@ -554,7 +554,7 @@ function It(e) {
|
|
|
554
554
|
block: e.block,
|
|
555
555
|
context: e.context
|
|
556
556
|
}),
|
|
557
|
-
actionAttributes:
|
|
557
|
+
actionAttributes: Pe({
|
|
558
558
|
block: e.block,
|
|
559
559
|
rootState: e.context.rootState,
|
|
560
560
|
rootSetState: e.context.rootSetState,
|
|
@@ -566,14 +566,14 @@ function It(e) {
|
|
|
566
566
|
}
|
|
567
567
|
);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Tt(e) {
|
|
570
570
|
function t() {
|
|
571
571
|
return e.includeBlockProps ? {
|
|
572
572
|
...ce({
|
|
573
573
|
block: e.block,
|
|
574
574
|
context: e.context
|
|
575
575
|
}),
|
|
576
|
-
...
|
|
576
|
+
...Pe({
|
|
577
577
|
block: e.block,
|
|
578
578
|
rootState: e.context.rootState,
|
|
579
579
|
rootSetState: e.context.rootSetState,
|
|
@@ -584,7 +584,7 @@ function wt(e) {
|
|
|
584
584
|
}
|
|
585
585
|
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
586
586
|
}
|
|
587
|
-
const
|
|
587
|
+
const Rt = ({
|
|
588
588
|
componentOptions: e,
|
|
589
589
|
builderBlock: t,
|
|
590
590
|
context: n,
|
|
@@ -616,11 +616,11 @@ const Tt = ({
|
|
|
616
616
|
};
|
|
617
617
|
function he(e) {
|
|
618
618
|
var n;
|
|
619
|
-
const t = e.isInteractive ?
|
|
620
|
-
return /* @__PURE__ */ l(
|
|
619
|
+
const t = e.isInteractive ? Tt : e.componentRef;
|
|
620
|
+
return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
621
621
|
t,
|
|
622
622
|
{
|
|
623
|
-
...
|
|
623
|
+
...Rt({
|
|
624
624
|
componentOptions: e.componentOptions,
|
|
625
625
|
builderBlock: e.builderBlock,
|
|
626
626
|
context: e.context,
|
|
@@ -643,7 +643,7 @@ function he(e) {
|
|
|
643
643
|
}
|
|
644
644
|
) }) : null });
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function ge(e) {
|
|
647
647
|
const t = e.repeatContext;
|
|
648
648
|
return /* @__PURE__ */ l(
|
|
649
649
|
G,
|
|
@@ -656,9 +656,9 @@ function Rt(e) {
|
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
658
|
function G(e) {
|
|
659
|
-
var d, u, m;
|
|
659
|
+
var d, u, m, p;
|
|
660
660
|
const t = function() {
|
|
661
|
-
return
|
|
661
|
+
return ht({
|
|
662
662
|
block: e.block,
|
|
663
663
|
context: e.context
|
|
664
664
|
});
|
|
@@ -666,10 +666,10 @@ function G(e) {
|
|
|
666
666
|
value: null,
|
|
667
667
|
update: !1
|
|
668
668
|
}, i = function() {
|
|
669
|
-
var
|
|
670
|
-
if (n.value && !n.update && !
|
|
669
|
+
var f;
|
|
670
|
+
if (n.value && !n.update && !ke())
|
|
671
671
|
return n.value;
|
|
672
|
-
const S = (
|
|
672
|
+
const S = (f = e.block.repeat) != null && f.collection ? e.block : st({
|
|
673
673
|
block: e.block,
|
|
674
674
|
localState: e.context.localState,
|
|
675
675
|
rootState: e.context.rootState,
|
|
@@ -679,33 +679,33 @@ function G(e) {
|
|
|
679
679
|
});
|
|
680
680
|
return n.value = S, n.update = !1, S;
|
|
681
681
|
}, o = function() {
|
|
682
|
-
return
|
|
682
|
+
return ft({
|
|
683
683
|
block: i(),
|
|
684
684
|
registeredComponents: e.registeredComponents
|
|
685
685
|
});
|
|
686
686
|
}, a = function() {
|
|
687
|
-
var
|
|
688
|
-
return e.block.tagName === "a" || ((
|
|
687
|
+
var f;
|
|
688
|
+
return e.block.tagName === "a" || ((f = i().properties) == null ? void 0 : f.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
689
689
|
}, r = function() {
|
|
690
|
-
var
|
|
691
|
-
if ((
|
|
692
|
-
return !!((
|
|
690
|
+
var C, b;
|
|
691
|
+
if ((C = e.block.repeat) != null && C.collection)
|
|
692
|
+
return !!((b = t()) != null && b.length);
|
|
693
693
|
const S = "hide" in i() ? i().hide : !1;
|
|
694
694
|
return ("show" in i() ? i().show : !0) && !S;
|
|
695
695
|
}, s = function() {
|
|
696
|
-
var
|
|
697
|
-
return !((
|
|
696
|
+
var f, C;
|
|
697
|
+
return !((f = o()) != null && f.component) && !t() ? (C = i().children) != null ? C : [] : [];
|
|
698
698
|
}, c = function() {
|
|
699
|
-
var S,
|
|
699
|
+
var S, f, C, b;
|
|
700
700
|
return {
|
|
701
701
|
blockChildren: (S = i().children) != null ? S : [],
|
|
702
|
-
componentRef: (
|
|
702
|
+
componentRef: (f = o()) == null ? void 0 : f.component,
|
|
703
703
|
componentOptions: {
|
|
704
|
-
...
|
|
705
|
-
...
|
|
706
|
-
...
|
|
707
|
-
...
|
|
708
|
-
...
|
|
704
|
+
...Ze(i()),
|
|
705
|
+
...yt(o(), i()),
|
|
706
|
+
...pt(o(), e.context),
|
|
707
|
+
...gt(o(), e.linkComponent),
|
|
708
|
+
...bt(
|
|
709
709
|
o(),
|
|
710
710
|
e.registeredComponents
|
|
711
711
|
)
|
|
@@ -714,13 +714,22 @@ function G(e) {
|
|
|
714
714
|
linkComponent: e.linkComponent,
|
|
715
715
|
registeredComponents: e.registeredComponents,
|
|
716
716
|
builderBlock: i(),
|
|
717
|
-
includeBlockProps: ((
|
|
718
|
-
isInteractive: !((
|
|
717
|
+
includeBlockProps: ((C = o()) == null ? void 0 : C.noWrap) === !0,
|
|
718
|
+
isInteractive: !((b = o()) != null && b.isRSC && $ === "rsc")
|
|
719
719
|
};
|
|
720
720
|
};
|
|
721
|
-
return /* @__PURE__ */ l(
|
|
722
|
-
/* @__PURE__ */ l(
|
|
723
|
-
(d = o()) != null && d.noWrap ? /* @__PURE__ */ l(
|
|
721
|
+
return /* @__PURE__ */ l(T, { children: r() ? /* @__PURE__ */ P(T, { children: [
|
|
722
|
+
/* @__PURE__ */ l(vt, { block: i(), context: e.context }),
|
|
723
|
+
(d = o()) != null && d.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (p = t()) == null ? void 0 : p.map((v, S) => /* @__PURE__ */ l(
|
|
724
|
+
ge,
|
|
725
|
+
{
|
|
726
|
+
repeatContext: v.context,
|
|
727
|
+
block: v.block,
|
|
728
|
+
registeredComponents: e.registeredComponents,
|
|
729
|
+
linkComponent: e.linkComponent
|
|
730
|
+
},
|
|
731
|
+
S
|
|
732
|
+
)) }) : /* @__PURE__ */ l(
|
|
724
733
|
he,
|
|
725
734
|
{
|
|
726
735
|
componentRef: c().componentRef,
|
|
@@ -733,17 +742,17 @@ function G(e) {
|
|
|
733
742
|
includeBlockProps: c().includeBlockProps,
|
|
734
743
|
isInteractive: c().isInteractive
|
|
735
744
|
}
|
|
736
|
-
)
|
|
737
|
-
|
|
745
|
+
) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((v, S) => /* @__PURE__ */ l(
|
|
746
|
+
ge,
|
|
738
747
|
{
|
|
739
|
-
repeatContext:
|
|
740
|
-
block:
|
|
748
|
+
repeatContext: v.context,
|
|
749
|
+
block: v.block,
|
|
741
750
|
registeredComponents: e.registeredComponents,
|
|
742
751
|
linkComponent: e.linkComponent
|
|
743
752
|
},
|
|
744
753
|
S
|
|
745
754
|
)) }) : /* @__PURE__ */ P(
|
|
746
|
-
|
|
755
|
+
wt,
|
|
747
756
|
{
|
|
748
757
|
Wrapper: a(),
|
|
749
758
|
block: i(),
|
|
@@ -763,15 +772,15 @@ function G(e) {
|
|
|
763
772
|
isInteractive: c().isInteractive
|
|
764
773
|
}
|
|
765
774
|
),
|
|
766
|
-
(u = s()) == null ? void 0 : u.map((
|
|
775
|
+
(u = s()) == null ? void 0 : u.map((v) => /* @__PURE__ */ l(
|
|
767
776
|
G,
|
|
768
777
|
{
|
|
769
|
-
block:
|
|
778
|
+
block: v,
|
|
770
779
|
registeredComponents: e.registeredComponents,
|
|
771
780
|
linkComponent: e.linkComponent,
|
|
772
781
|
context: e.context
|
|
773
782
|
},
|
|
774
|
-
|
|
783
|
+
v.id
|
|
775
784
|
))
|
|
776
785
|
]
|
|
777
786
|
}
|
|
@@ -811,7 +820,7 @@ function Et(e) {
|
|
|
811
820
|
));
|
|
812
821
|
}
|
|
813
822
|
return R(() => {
|
|
814
|
-
}, []), /* @__PURE__ */ P(
|
|
823
|
+
}, []), /* @__PURE__ */ P(T, { children: [
|
|
815
824
|
/* @__PURE__ */ l(
|
|
816
825
|
e.BlocksWrapper,
|
|
817
826
|
{
|
|
@@ -845,7 +854,7 @@ function le(e) {
|
|
|
845
854
|
styleProp: e.styleProp,
|
|
846
855
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
847
856
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
848
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
857
|
+
children: e.blocks ? /* @__PURE__ */ l(T, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
849
858
|
G,
|
|
850
859
|
{
|
|
851
860
|
block: o,
|
|
@@ -860,25 +869,25 @@ function le(e) {
|
|
|
860
869
|
}
|
|
861
870
|
const Pt = (e) => `builder-columns ${e}-breakpoints`;
|
|
862
871
|
function Bt(e) {
|
|
863
|
-
var
|
|
872
|
+
var f, C;
|
|
864
873
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(y) {
|
|
865
874
|
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
866
875
|
}, a = function(y) {
|
|
867
|
-
var
|
|
868
|
-
return ((
|
|
876
|
+
var I;
|
|
877
|
+
return ((I = n[y]) == null ? void 0 : I.width) || 100 / n.length;
|
|
869
878
|
}, r = function(y) {
|
|
870
|
-
const
|
|
871
|
-
return `calc(${
|
|
879
|
+
const I = a(y), E = t * (n.length - 1) * (I / 100);
|
|
880
|
+
return `calc(${I}% - ${E}px)`;
|
|
872
881
|
}, s = function({
|
|
873
882
|
stackedStyle: y,
|
|
874
|
-
desktopStyle:
|
|
883
|
+
desktopStyle: I
|
|
875
884
|
}) {
|
|
876
|
-
return i === "tablet" ? y :
|
|
885
|
+
return i === "tablet" ? y : I;
|
|
877
886
|
}, c = function({
|
|
878
887
|
stackedStyle: y,
|
|
879
|
-
desktopStyle:
|
|
888
|
+
desktopStyle: I
|
|
880
889
|
}) {
|
|
881
|
-
return i === "never" ?
|
|
890
|
+
return i === "never" ? I : y;
|
|
882
891
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", u = function() {
|
|
883
892
|
return {
|
|
884
893
|
"--flex-dir": d,
|
|
@@ -888,7 +897,7 @@ function Bt(e) {
|
|
|
888
897
|
})
|
|
889
898
|
};
|
|
890
899
|
}, m = function(y) {
|
|
891
|
-
const
|
|
900
|
+
const I = y === 0 ? 0 : t, E = r(y), W = `${I}px`, D = "100%", _ = 0;
|
|
892
901
|
return {
|
|
893
902
|
...{
|
|
894
903
|
display: "flex",
|
|
@@ -914,15 +923,15 @@ function Bt(e) {
|
|
|
914
923
|
desktopStyle: W
|
|
915
924
|
})
|
|
916
925
|
};
|
|
917
|
-
},
|
|
926
|
+
}, p = function(y) {
|
|
918
927
|
var E, W;
|
|
919
|
-
return
|
|
928
|
+
return Ee(
|
|
920
929
|
((W = (E = e.builderContext.content) == null ? void 0 : E.meta) == null ? void 0 : W.breakpoints) || {}
|
|
921
930
|
)[y].max;
|
|
922
|
-
},
|
|
931
|
+
}, v = function() {
|
|
923
932
|
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
924
933
|
return `
|
|
925
|
-
@media (max-width: ${
|
|
934
|
+
@media (max-width: ${p("medium")}px) {
|
|
926
935
|
.${e.builderBlock.id}-breakpoints {
|
|
927
936
|
flex-direction: var(--flex-dir-tablet);
|
|
928
937
|
align-items: stretch;
|
|
@@ -934,7 +943,7 @@ function Bt(e) {
|
|
|
934
943
|
}
|
|
935
944
|
}
|
|
936
945
|
|
|
937
|
-
@media (max-width: ${
|
|
946
|
+
@media (max-width: ${p("small")}px) {
|
|
938
947
|
.${e.builderBlock.id}-breakpoints {
|
|
939
948
|
flex-direction: var(--flex-dir);
|
|
940
949
|
align-items: stretch;
|
|
@@ -946,36 +955,36 @@ function Bt(e) {
|
|
|
946
955
|
}
|
|
947
956
|
},
|
|
948
957
|
`;
|
|
949
|
-
},
|
|
958
|
+
}, S = function(y, I) {
|
|
950
959
|
return {
|
|
951
960
|
...y.link ? {
|
|
952
961
|
href: y.link
|
|
953
962
|
} : {},
|
|
954
963
|
[H()]: "builder-column",
|
|
955
|
-
style:
|
|
964
|
+
style: Te(m(I))
|
|
956
965
|
};
|
|
957
966
|
};
|
|
958
|
-
return /* @__PURE__ */ P(
|
|
967
|
+
return /* @__PURE__ */ P(T, { children: [
|
|
959
968
|
/* @__PURE__ */ P(
|
|
960
969
|
"div",
|
|
961
970
|
{
|
|
962
|
-
className: Pt((
|
|
971
|
+
className: Pt((f = e.builderBlock) == null ? void 0 : f.id) + " div-2cd13691",
|
|
963
972
|
style: u(),
|
|
964
973
|
children: [
|
|
965
974
|
/* @__PURE__ */ l(
|
|
966
975
|
Q,
|
|
967
976
|
{
|
|
968
977
|
id: "builderio-columns",
|
|
969
|
-
styles:
|
|
978
|
+
styles: v(),
|
|
970
979
|
nonce: e.builderContext.nonce
|
|
971
980
|
}
|
|
972
981
|
),
|
|
973
|
-
(
|
|
982
|
+
(C = e.columns) == null ? void 0 : C.map((b, y) => /* @__PURE__ */ l(
|
|
974
983
|
ae,
|
|
975
984
|
{
|
|
976
|
-
TagName: o(
|
|
985
|
+
TagName: o(b),
|
|
977
986
|
actionAttributes: {},
|
|
978
|
-
attributes:
|
|
987
|
+
attributes: S(b, y),
|
|
979
988
|
children: /* @__PURE__ */ l(
|
|
980
989
|
le,
|
|
981
990
|
{
|
|
@@ -987,7 +996,7 @@ function Bt(e) {
|
|
|
987
996
|
context: e.builderContext,
|
|
988
997
|
registeredComponents: e.builderComponents,
|
|
989
998
|
linkComponent: e.builderLinkComponent,
|
|
990
|
-
blocks:
|
|
999
|
+
blocks: b.blocks
|
|
991
1000
|
}
|
|
992
1001
|
)
|
|
993
1002
|
},
|
|
@@ -1005,7 +1014,7 @@ function Bt(e) {
|
|
|
1005
1014
|
function Wt(e) {
|
|
1006
1015
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1007
1016
|
}
|
|
1008
|
-
function
|
|
1017
|
+
function be(e) {
|
|
1009
1018
|
return e.replace(/http(s)?:/, "");
|
|
1010
1019
|
}
|
|
1011
1020
|
function At(e = "", t, n) {
|
|
@@ -1016,11 +1025,11 @@ function Nt(e, t) {
|
|
|
1016
1025
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1017
1026
|
return e;
|
|
1018
1027
|
if (t === "master")
|
|
1019
|
-
return
|
|
1028
|
+
return be(e);
|
|
1020
1029
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1021
1030
|
if (n) {
|
|
1022
1031
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1023
|
-
return
|
|
1032
|
+
return be(`${i[0]}_${a}${o}`);
|
|
1024
1033
|
}
|
|
1025
1034
|
return null;
|
|
1026
1035
|
}
|
|
@@ -1038,14 +1047,14 @@ function te(e) {
|
|
|
1038
1047
|
function Vt(e) {
|
|
1039
1048
|
var o, a, r, s, c, d;
|
|
1040
1049
|
function t() {
|
|
1041
|
-
var
|
|
1050
|
+
var p;
|
|
1042
1051
|
const m = e.image || e.src;
|
|
1043
1052
|
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
1044
1053
|
// images, otherwise you can supply this prop manually
|
|
1045
1054
|
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
1046
1055
|
return e.srcset;
|
|
1047
1056
|
if (!e.noWebp) {
|
|
1048
|
-
if (e.srcset && ((
|
|
1057
|
+
if (e.srcset && ((p = e.image) != null && p.includes("builder.io/api/v1/image"))) {
|
|
1049
1058
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1050
1059
|
return console.debug("Removed given srcset"), te(m);
|
|
1051
1060
|
} else if (e.image && !e.srcset)
|
|
@@ -1068,8 +1077,8 @@ function Vt(e) {
|
|
|
1068
1077
|
return e.aspectRatio ? u : void 0;
|
|
1069
1078
|
}
|
|
1070
1079
|
return R(() => {
|
|
1071
|
-
}, []), /* @__PURE__ */ P(
|
|
1072
|
-
/* @__PURE__ */ P(
|
|
1080
|
+
}, []), /* @__PURE__ */ P(T, { children: [
|
|
1081
|
+
/* @__PURE__ */ P(T, { children: [
|
|
1073
1082
|
/* @__PURE__ */ P("picture", { children: [
|
|
1074
1083
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1075
1084
|
/* @__PURE__ */ l(
|
|
@@ -1100,7 +1109,7 @@ function Vt(e) {
|
|
|
1100
1109
|
}
|
|
1101
1110
|
}
|
|
1102
1111
|
) : null,
|
|
1103
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1112
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
|
|
1104
1113
|
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
1105
1114
|
] }),
|
|
1106
1115
|
/* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
|
|
@@ -1418,8 +1427,8 @@ const Ft = {
|
|
|
1418
1427
|
let m = !1;
|
|
1419
1428
|
u.onload = () => {
|
|
1420
1429
|
m = !0, c(u);
|
|
1421
|
-
}, u.addEventListener("error", (
|
|
1422
|
-
console.warn("Image load failed",
|
|
1430
|
+
}, u.addEventListener("error", (p) => {
|
|
1431
|
+
console.warn("Image load failed", p.error), d(p.error);
|
|
1423
1432
|
}), u.src = r, setTimeout(() => {
|
|
1424
1433
|
m || d(new Error("Image load timed out"));
|
|
1425
1434
|
}, s);
|
|
@@ -1553,7 +1562,8 @@ const Ft = {
|
|
|
1553
1562
|
defaultValue: "children"
|
|
1554
1563
|
}],
|
|
1555
1564
|
shouldReceiveBuilderProps: {
|
|
1556
|
-
builderContext: !0
|
|
1565
|
+
builderContext: !0,
|
|
1566
|
+
builderComponents: !0
|
|
1557
1567
|
}
|
|
1558
1568
|
};
|
|
1559
1569
|
function jt(e) {
|
|
@@ -1573,6 +1583,7 @@ function jt(e) {
|
|
|
1573
1583
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1574
1584
|
path: `symbol.data.${e.name}`,
|
|
1575
1585
|
context: e.builderContext,
|
|
1586
|
+
registeredComponents: e.builderComponents,
|
|
1576
1587
|
blocks: (i = e.builderContext.rootState) == null ? void 0 : i[e.name]
|
|
1577
1588
|
}
|
|
1578
1589
|
)
|
|
@@ -1759,13 +1770,13 @@ function Gt(e) {
|
|
|
1759
1770
|
const m = d[u];
|
|
1760
1771
|
if (m.src && !n.includes(m.src)) {
|
|
1761
1772
|
n.push(m.src);
|
|
1762
|
-
const
|
|
1763
|
-
|
|
1773
|
+
const p = document.createElement("script");
|
|
1774
|
+
p.async = !0, p.src = m.src, document.head.appendChild(p);
|
|
1764
1775
|
} else if (Qt(m) && !o.includes(m.innerText))
|
|
1765
1776
|
try {
|
|
1766
1777
|
o.push(m.innerText), new Function(m.innerText)();
|
|
1767
|
-
} catch (
|
|
1768
|
-
console.warn("`Embed`: Error running script:",
|
|
1778
|
+
} catch (p) {
|
|
1779
|
+
console.warn("`Embed`: Error running script:", p);
|
|
1769
1780
|
}
|
|
1770
1781
|
}
|
|
1771
1782
|
}
|
|
@@ -2008,8 +2019,8 @@ const nn = () => [{
|
|
|
2008
2019
|
}, {
|
|
2009
2020
|
component: tn,
|
|
2010
2021
|
...en
|
|
2011
|
-
}],
|
|
2012
|
-
component:
|
|
2022
|
+
}], ye = () => [{
|
|
2023
|
+
component: Xe,
|
|
2013
2024
|
...Ft
|
|
2014
2025
|
}, {
|
|
2015
2026
|
component: Bt,
|
|
@@ -2122,24 +2133,24 @@ const nn = () => [{
|
|
|
2122
2133
|
thisScriptEl?.remove();
|
|
2123
2134
|
}
|
|
2124
2135
|
return;
|
|
2125
|
-
}`,
|
|
2136
|
+
}`, Be = "builderIoAbTest", We = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2126
2137
|
...t,
|
|
2127
2138
|
testVariationId: t.id,
|
|
2128
2139
|
id: e == null ? void 0 : e.id
|
|
2129
2140
|
})), rn = ({
|
|
2130
2141
|
canTrack: e,
|
|
2131
2142
|
content: t
|
|
2132
|
-
}) => !(!(M(t).length > 0) || !e || z()), cn = (e) => e === "react" || e === "reactNative",
|
|
2133
|
-
window.${
|
|
2134
|
-
window.${
|
|
2143
|
+
}) => !(!(M(t).length > 0) || !e || z()), cn = (e) => e === "react" || e === "reactNative", Ae = cn($), ln = () => `
|
|
2144
|
+
window.${Be} = ${on}
|
|
2145
|
+
window.${We} = ${an}
|
|
2135
2146
|
`, sn = (e, t) => `
|
|
2136
|
-
window.${
|
|
2137
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2147
|
+
window.${Be}(
|
|
2148
|
+
"${t}",${JSON.stringify(e)}, ${Ae}
|
|
2138
2149
|
)`, dn = ({
|
|
2139
2150
|
contentId: e,
|
|
2140
2151
|
variationId: t
|
|
2141
|
-
}) => `window.${
|
|
2142
|
-
"${t}", "${e}", ${
|
|
2152
|
+
}) => `window.${We}(
|
|
2153
|
+
"${t}", "${e}", ${Ae}
|
|
2143
2154
|
)`;
|
|
2144
2155
|
function ie(e) {
|
|
2145
2156
|
return /* @__PURE__ */ l(
|
|
@@ -2151,7 +2162,7 @@ function ie(e) {
|
|
|
2151
2162
|
}
|
|
2152
2163
|
);
|
|
2153
2164
|
}
|
|
2154
|
-
const un =
|
|
2165
|
+
const un = Ye({
|
|
2155
2166
|
content: null,
|
|
2156
2167
|
context: {},
|
|
2157
2168
|
localState: void 0,
|
|
@@ -2166,7 +2177,7 @@ const un = qe({
|
|
|
2166
2177
|
BlocksWrapperProps: {},
|
|
2167
2178
|
nonce: ""
|
|
2168
2179
|
});
|
|
2169
|
-
function
|
|
2180
|
+
function pe(e) {
|
|
2170
2181
|
return Math.round(e * 1e3) / 1e3;
|
|
2171
2182
|
}
|
|
2172
2183
|
const mn = (e, t, n = !0) => {
|
|
@@ -2183,11 +2194,11 @@ const mn = (e, t, n = !0) => {
|
|
|
2183
2194
|
}, fn = (e) => mn(e, (t) => {
|
|
2184
2195
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2185
2196
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2186
|
-
}),
|
|
2197
|
+
}), ve = ({
|
|
2187
2198
|
event: e,
|
|
2188
2199
|
target: t
|
|
2189
2200
|
}) => {
|
|
2190
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
2201
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
|
|
2191
2202
|
return {
|
|
2192
2203
|
x: a,
|
|
2193
2204
|
y: r
|
|
@@ -2197,11 +2208,11 @@ const mn = (e, t, n = !0) => {
|
|
|
2197
2208
|
return {
|
|
2198
2209
|
targetBuilderElement: i || void 0,
|
|
2199
2210
|
metadata: {
|
|
2200
|
-
targetOffset: t ?
|
|
2211
|
+
targetOffset: t ? ve({
|
|
2201
2212
|
event: e,
|
|
2202
2213
|
target: t
|
|
2203
2214
|
}) : void 0,
|
|
2204
|
-
builderTargetOffset: n ?
|
|
2215
|
+
builderTargetOffset: n ? ve({
|
|
2205
2216
|
event: e,
|
|
2206
2217
|
target: n
|
|
2207
2218
|
}) : void 0,
|
|
@@ -2213,9 +2224,9 @@ async function gn({
|
|
|
2213
2224
|
key: e,
|
|
2214
2225
|
value: t
|
|
2215
2226
|
}) {
|
|
2216
|
-
return
|
|
2227
|
+
return Fe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2217
2228
|
}
|
|
2218
|
-
function
|
|
2229
|
+
function xe(e, ...t) {
|
|
2219
2230
|
const n = Object(e);
|
|
2220
2231
|
for (let i = 1; i < arguments.length; i++) {
|
|
2221
2232
|
const o = arguments[i];
|
|
@@ -2248,8 +2259,8 @@ function vn(e) {
|
|
|
2248
2259
|
return;
|
|
2249
2260
|
}
|
|
2250
2261
|
Array.from(t).forEach((n) => {
|
|
2251
|
-
yn(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
2252
|
-
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
2262
|
+
yn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2263
|
+
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), xe(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2253
2264
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2254
2265
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2255
2266
|
});
|
|
@@ -2310,27 +2321,27 @@ font-weight: ${s};
|
|
|
2310
2321
|
function Tn(e) {
|
|
2311
2322
|
var W, D, _, X, Z, se, de;
|
|
2312
2323
|
const t = J(null);
|
|
2313
|
-
function n(
|
|
2314
|
-
var
|
|
2324
|
+
function n(g) {
|
|
2325
|
+
var x, k;
|
|
2315
2326
|
const h = {
|
|
2316
2327
|
...e.builderContextSignal.rootState,
|
|
2317
|
-
...
|
|
2328
|
+
...g
|
|
2318
2329
|
};
|
|
2319
|
-
e.builderContextSignal.rootSetState ? (
|
|
2330
|
+
e.builderContextSignal.rootSetState ? (k = (x = e.builderContextSignal).rootSetState) == null || k.call(x, h) : e.builderContextSignal.rootState = h;
|
|
2320
2331
|
}
|
|
2321
|
-
function i(
|
|
2322
|
-
var
|
|
2332
|
+
function i(g) {
|
|
2333
|
+
var x, k, w, B, j;
|
|
2323
2334
|
const h = {
|
|
2324
2335
|
...e.builderContextSignal.content,
|
|
2325
|
-
...
|
|
2336
|
+
...g,
|
|
2326
2337
|
data: {
|
|
2327
|
-
...(
|
|
2328
|
-
...
|
|
2338
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
|
|
2339
|
+
...g == null ? void 0 : g.data
|
|
2329
2340
|
},
|
|
2330
2341
|
meta: {
|
|
2331
|
-
...(
|
|
2332
|
-
...
|
|
2333
|
-
breakpoints: ((
|
|
2342
|
+
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
2343
|
+
...g == null ? void 0 : g.meta,
|
|
2344
|
+
breakpoints: ((w = g == null ? void 0 : g.meta) == null ? void 0 : w.breakpoints) || ((j = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : j.breakpoints)
|
|
2334
2345
|
}
|
|
2335
2346
|
};
|
|
2336
2347
|
gn({
|
|
@@ -2349,17 +2360,17 @@ function Tn(e) {
|
|
|
2349
2360
|
const [a, r] = N(
|
|
2350
2361
|
() => e.contentWrapper || "div"
|
|
2351
2362
|
);
|
|
2352
|
-
function s(
|
|
2353
|
-
return
|
|
2363
|
+
function s(g) {
|
|
2364
|
+
return Le({
|
|
2354
2365
|
model: e.model,
|
|
2355
2366
|
trustedHosts: e.trustedHosts,
|
|
2356
2367
|
callbacks: {
|
|
2357
2368
|
configureSdk: (h) => {
|
|
2358
|
-
var
|
|
2359
|
-
const { breakpoints:
|
|
2360
|
-
!
|
|
2369
|
+
var w;
|
|
2370
|
+
const { breakpoints: x, contentId: k } = h;
|
|
2371
|
+
!k || k !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || x && i({
|
|
2361
2372
|
meta: {
|
|
2362
|
-
breakpoints:
|
|
2373
|
+
breakpoints: x
|
|
2363
2374
|
}
|
|
2364
2375
|
});
|
|
2365
2376
|
},
|
|
@@ -2370,13 +2381,13 @@ function Tn(e) {
|
|
|
2370
2381
|
i(h);
|
|
2371
2382
|
}
|
|
2372
2383
|
}
|
|
2373
|
-
})(
|
|
2384
|
+
})(g);
|
|
2374
2385
|
}
|
|
2375
2386
|
function c() {
|
|
2376
|
-
var h,
|
|
2377
|
-
const
|
|
2378
|
-
|
|
2379
|
-
code:
|
|
2387
|
+
var h, x;
|
|
2388
|
+
const g = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.jsCode;
|
|
2389
|
+
g && O({
|
|
2390
|
+
code: g,
|
|
2380
2391
|
context: e.context || {},
|
|
2381
2392
|
localState: void 0,
|
|
2382
2393
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2387,35 +2398,35 @@ function Tn(e) {
|
|
|
2387
2398
|
enableCache: !1
|
|
2388
2399
|
});
|
|
2389
2400
|
}
|
|
2390
|
-
const [d, u] = N(() => ({})), [m,
|
|
2391
|
-
function g
|
|
2392
|
-
var h,
|
|
2401
|
+
const [d, u] = N(() => ({})), [m, p] = N(() => ({})), [v, S] = N(() => !1);
|
|
2402
|
+
function f(g) {
|
|
2403
|
+
var h, x;
|
|
2393
2404
|
if (e.builderContextSignal.content) {
|
|
2394
|
-
const
|
|
2405
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, w = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
|
|
2395
2406
|
ue({
|
|
2396
2407
|
type: "click",
|
|
2397
2408
|
canTrack: q(e.canTrack),
|
|
2398
|
-
contentId:
|
|
2409
|
+
contentId: w,
|
|
2399
2410
|
apiKey: e.apiKey,
|
|
2400
|
-
variationId:
|
|
2401
|
-
...hn(
|
|
2402
|
-
unique: !
|
|
2411
|
+
variationId: k !== w ? k : void 0,
|
|
2412
|
+
...hn(g),
|
|
2413
|
+
unique: !v
|
|
2403
2414
|
});
|
|
2404
2415
|
}
|
|
2405
|
-
|
|
2416
|
+
v || S(!0);
|
|
2406
2417
|
}
|
|
2407
|
-
function
|
|
2408
|
-
var h,
|
|
2409
|
-
const
|
|
2410
|
-
Object.entries(
|
|
2411
|
-
if (!B || m[
|
|
2418
|
+
function C() {
|
|
2419
|
+
var h, x, k;
|
|
2420
|
+
const g = (k = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.httpRequests) != null ? k : {};
|
|
2421
|
+
Object.entries(g).forEach(([w, B]) => {
|
|
2422
|
+
if (!B || m[w] || d[w] && !V())
|
|
2412
2423
|
return;
|
|
2413
|
-
m[
|
|
2424
|
+
m[w] = !0;
|
|
2414
2425
|
const j = B.replace(
|
|
2415
2426
|
/{{([^}]+)}}/g,
|
|
2416
|
-
(F,
|
|
2427
|
+
(F, Ne) => String(
|
|
2417
2428
|
O({
|
|
2418
|
-
code:
|
|
2429
|
+
code: Ne,
|
|
2419
2430
|
context: e.context || {},
|
|
2420
2431
|
localState: void 0,
|
|
2421
2432
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2424,18 +2435,18 @@ function Tn(e) {
|
|
|
2424
2435
|
})
|
|
2425
2436
|
)
|
|
2426
2437
|
);
|
|
2427
|
-
|
|
2438
|
+
Oe(j).then((F) => F.json()).then((F) => {
|
|
2428
2439
|
n({
|
|
2429
|
-
[
|
|
2430
|
-
}), d[
|
|
2440
|
+
[w]: F
|
|
2441
|
+
}), d[w] = !0;
|
|
2431
2442
|
}).catch((F) => {
|
|
2432
2443
|
console.error("error fetching dynamic data", B, F);
|
|
2433
2444
|
}).finally(() => {
|
|
2434
|
-
m[
|
|
2445
|
+
m[w] = !1;
|
|
2435
2446
|
});
|
|
2436
2447
|
});
|
|
2437
2448
|
}
|
|
2438
|
-
function
|
|
2449
|
+
function b() {
|
|
2439
2450
|
V() && window.dispatchEvent(
|
|
2440
2451
|
new CustomEvent(
|
|
2441
2452
|
"builder:component:stateChange",
|
|
@@ -2450,8 +2461,8 @@ function Tn(e) {
|
|
|
2450
2461
|
)
|
|
2451
2462
|
);
|
|
2452
2463
|
}
|
|
2453
|
-
function y(
|
|
2454
|
-
window.addEventListener("message", s),
|
|
2464
|
+
function y(g) {
|
|
2465
|
+
window.addEventListener("message", s), De(), _e({
|
|
2455
2466
|
...e.locale ? {
|
|
2456
2467
|
locale: e.locale
|
|
2457
2468
|
} : {},
|
|
@@ -2464,19 +2475,19 @@ function Tn(e) {
|
|
|
2464
2475
|
}), Object.values(
|
|
2465
2476
|
e.builderContextSignal.componentInfos
|
|
2466
2477
|
).forEach((h) => {
|
|
2467
|
-
var
|
|
2468
|
-
const
|
|
2469
|
-
(
|
|
2478
|
+
var k;
|
|
2479
|
+
const x = He(h);
|
|
2480
|
+
(k = window.parent) == null || k.postMessage(x, "*");
|
|
2470
2481
|
}), window.addEventListener(
|
|
2471
2482
|
"builder:component:stateChangeListenerActivated",
|
|
2472
|
-
|
|
2483
|
+
b
|
|
2473
2484
|
);
|
|
2474
2485
|
}
|
|
2475
|
-
function
|
|
2476
|
-
const h = new URL(location.href).searchParams,
|
|
2477
|
-
`builder.overrides.${
|
|
2478
|
-
),
|
|
2479
|
-
|
|
2486
|
+
function I(g) {
|
|
2487
|
+
const h = new URL(location.href).searchParams, x = h.get("builder.preview"), k = h.get(
|
|
2488
|
+
`builder.overrides.${x}`
|
|
2489
|
+
), w = h.get("apiKey") || h.get("builder.space");
|
|
2490
|
+
x === e.model && w === e.apiKey && (!e.content || k === e.content.id) && Ce({
|
|
2480
2491
|
model: e.model,
|
|
2481
2492
|
apiKey: e.apiKey,
|
|
2482
2493
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -2484,10 +2495,10 @@ function Tn(e) {
|
|
|
2484
2495
|
B && i(B);
|
|
2485
2496
|
});
|
|
2486
2497
|
}
|
|
2487
|
-
const E =
|
|
2498
|
+
const E = Je();
|
|
2488
2499
|
return R(() => {
|
|
2489
|
-
var
|
|
2490
|
-
return (
|
|
2500
|
+
var g;
|
|
2501
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2491
2502
|
"initeditingbldr",
|
|
2492
2503
|
y
|
|
2493
2504
|
), () => {
|
|
@@ -2498,43 +2509,43 @@ function Tn(e) {
|
|
|
2498
2509
|
);
|
|
2499
2510
|
};
|
|
2500
2511
|
}, []), R(() => {
|
|
2501
|
-
var
|
|
2502
|
-
return (
|
|
2512
|
+
var g;
|
|
2513
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2503
2514
|
"initpreviewingbldr",
|
|
2504
|
-
|
|
2515
|
+
I
|
|
2505
2516
|
), () => {
|
|
2506
2517
|
var h;
|
|
2507
2518
|
return (h = t.current) == null ? void 0 : h.removeEventListener(
|
|
2508
2519
|
"initpreviewingbldr",
|
|
2509
|
-
|
|
2520
|
+
I
|
|
2510
2521
|
);
|
|
2511
2522
|
};
|
|
2512
2523
|
}, []), R(() => {
|
|
2513
|
-
var
|
|
2524
|
+
var g, h;
|
|
2514
2525
|
if (z()) {
|
|
2515
2526
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2516
|
-
const
|
|
2527
|
+
const k = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, w = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
|
|
2517
2528
|
ue({
|
|
2518
2529
|
type: "impression",
|
|
2519
2530
|
canTrack: !0,
|
|
2520
|
-
contentId:
|
|
2531
|
+
contentId: w,
|
|
2521
2532
|
apiKey: B,
|
|
2522
|
-
variationId:
|
|
2533
|
+
variationId: k !== w ? k : void 0
|
|
2523
2534
|
});
|
|
2524
2535
|
}
|
|
2525
|
-
|
|
2536
|
+
ke() && V();
|
|
2526
2537
|
}
|
|
2527
2538
|
}, []), R(() => {
|
|
2528
2539
|
e.apiKey || Y.error(
|
|
2529
2540
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2530
|
-
), c(),
|
|
2541
|
+
), c(), C(), b();
|
|
2531
2542
|
}, []), R(() => {
|
|
2532
2543
|
}, [e.content]), R(() => {
|
|
2533
2544
|
c();
|
|
2534
2545
|
}, [(D = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : D.jsCode]), R(() => {
|
|
2535
|
-
|
|
2546
|
+
C();
|
|
2536
2547
|
}, [(X = (_ = e.builderContextSignal.content) == null ? void 0 : _.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2537
|
-
|
|
2548
|
+
b();
|
|
2538
2549
|
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2539
2550
|
e.data && n(e.data);
|
|
2540
2551
|
}, [e.data]), R(() => {
|
|
@@ -2544,13 +2555,13 @@ function Tn(e) {
|
|
|
2544
2555
|
}, [e.locale]), R(() => () => {
|
|
2545
2556
|
z() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
2546
2557
|
"builder:component:stateChangeListenerActivated",
|
|
2547
|
-
|
|
2558
|
+
b
|
|
2548
2559
|
));
|
|
2549
2560
|
}, []), /* @__PURE__ */ l(un.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
2550
2561
|
a,
|
|
2551
2562
|
{
|
|
2552
2563
|
ref: t,
|
|
2553
|
-
onClick: (
|
|
2564
|
+
onClick: (g) => f(g),
|
|
2554
2565
|
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2555
2566
|
"builder-model": e.model,
|
|
2556
2567
|
...o(),
|
|
@@ -2610,22 +2621,22 @@ const En = ({
|
|
|
2610
2621
|
},
|
|
2611
2622
|
meta: e == null ? void 0 : e.meta
|
|
2612
2623
|
} : void 0;
|
|
2613
|
-
function
|
|
2614
|
-
var o, a, r, s, c, d, u, m,
|
|
2624
|
+
function Se(e) {
|
|
2625
|
+
var o, a, r, s, c, d, u, m, p, v, S;
|
|
2615
2626
|
const t = dn({
|
|
2616
2627
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2617
2628
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2618
2629
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2619
2630
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
2620
2631
|
}), n = [
|
|
2621
|
-
...
|
|
2622
|
-
...((r = e.customComponents) == null ? void 0 : r.filter(({ models:
|
|
2632
|
+
...ye(),
|
|
2633
|
+
...((r = e.customComponents) == null ? void 0 : r.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
2623
2634
|
].reduce(
|
|
2624
|
-
(
|
|
2625
|
-
...
|
|
2626
|
-
[
|
|
2627
|
-
component:
|
|
2628
|
-
...me(
|
|
2635
|
+
(f, { component: C, ...b }) => ({
|
|
2636
|
+
...f,
|
|
2637
|
+
[b.name]: {
|
|
2638
|
+
component: C,
|
|
2639
|
+
...me(b)
|
|
2629
2640
|
}
|
|
2630
2641
|
}),
|
|
2631
2642
|
{}
|
|
@@ -2646,12 +2657,12 @@ function xe(e) {
|
|
|
2646
2657
|
apiKey: e.apiKey,
|
|
2647
2658
|
apiVersion: e.apiVersion,
|
|
2648
2659
|
componentInfos: [
|
|
2649
|
-
...
|
|
2650
|
-
...((s = e.customComponents) == null ? void 0 : s.filter(({ models:
|
|
2660
|
+
...ye(),
|
|
2661
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
2651
2662
|
].reduce(
|
|
2652
|
-
(
|
|
2653
|
-
...
|
|
2654
|
-
[
|
|
2663
|
+
(f, { component: C, ...b }) => ({
|
|
2664
|
+
...f,
|
|
2665
|
+
[b.name]: me(b)
|
|
2655
2666
|
}),
|
|
2656
2667
|
{}
|
|
2657
2668
|
),
|
|
@@ -2693,13 +2704,13 @@ function xe(e) {
|
|
|
2693
2704
|
isNestedRender: e.isNestedRender,
|
|
2694
2705
|
contentId: (c = i.content) == null ? void 0 : c.id,
|
|
2695
2706
|
cssCode: (u = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
|
|
2696
|
-
customFonts: (
|
|
2707
|
+
customFonts: (p = (m = i.content) == null ? void 0 : m.data) == null ? void 0 : p.customFonts
|
|
2697
2708
|
}
|
|
2698
2709
|
),
|
|
2699
2710
|
/* @__PURE__ */ l(
|
|
2700
2711
|
le,
|
|
2701
2712
|
{
|
|
2702
|
-
blocks: (
|
|
2713
|
+
blocks: (S = (v = i.content) == null ? void 0 : v.data) == null ? void 0 : S.blocks,
|
|
2703
2714
|
context: i,
|
|
2704
2715
|
registeredComponents: n,
|
|
2705
2716
|
linkComponent: e.linkComponent
|
|
@@ -2730,12 +2741,12 @@ function Bn(e) {
|
|
|
2730
2741
|
return t ? {
|
|
2731
2742
|
...e.content,
|
|
2732
2743
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
2733
|
-
} :
|
|
2744
|
+
} : je({
|
|
2734
2745
|
item: e.content,
|
|
2735
2746
|
canTrack: q(e.canTrack)
|
|
2736
2747
|
});
|
|
2737
2748
|
};
|
|
2738
|
-
return /* @__PURE__ */ P(
|
|
2749
|
+
return /* @__PURE__ */ P(T, { children: [
|
|
2739
2750
|
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
2740
2751
|
ie,
|
|
2741
2752
|
{
|
|
@@ -2744,7 +2755,7 @@ function Bn(e) {
|
|
|
2744
2755
|
nonce: e.nonce || ""
|
|
2745
2756
|
}
|
|
2746
2757
|
) : null,
|
|
2747
|
-
t ? /* @__PURE__ */ P(
|
|
2758
|
+
t ? /* @__PURE__ */ P(T, { children: [
|
|
2748
2759
|
/* @__PURE__ */ l(
|
|
2749
2760
|
Q,
|
|
2750
2761
|
{
|
|
@@ -2762,7 +2773,7 @@ function Bn(e) {
|
|
|
2762
2773
|
}
|
|
2763
2774
|
),
|
|
2764
2775
|
(a = M(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
2765
|
-
|
|
2776
|
+
Se,
|
|
2766
2777
|
{
|
|
2767
2778
|
isNestedRender: e.isNestedRender,
|
|
2768
2779
|
nonce: e.nonce,
|
|
@@ -2789,7 +2800,7 @@ function Bn(e) {
|
|
|
2789
2800
|
))
|
|
2790
2801
|
] }) : null,
|
|
2791
2802
|
/* @__PURE__ */ l(
|
|
2792
|
-
|
|
2803
|
+
Se,
|
|
2793
2804
|
{
|
|
2794
2805
|
nonce: e.nonce,
|
|
2795
2806
|
isNestedRender: e.isNestedRender,
|
|
@@ -2821,7 +2832,7 @@ const Wn = async ({
|
|
|
2821
2832
|
}) => {
|
|
2822
2833
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2823
2834
|
(e != null && e.apiKey))
|
|
2824
|
-
return
|
|
2835
|
+
return Ce({
|
|
2825
2836
|
model: t.model,
|
|
2826
2837
|
apiKey: e.apiKey,
|
|
2827
2838
|
apiVersion: e.apiVersion,
|
|
@@ -2841,12 +2852,12 @@ async function An(e) {
|
|
|
2841
2852
|
}, n = function() {
|
|
2842
2853
|
return "div";
|
|
2843
2854
|
}, i = function() {
|
|
2844
|
-
var m,
|
|
2855
|
+
var m, p;
|
|
2845
2856
|
return [
|
|
2846
2857
|
e.attributes[H()],
|
|
2847
2858
|
"builder-symbol",
|
|
2848
2859
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
2849
|
-
(
|
|
2860
|
+
(p = e.symbol) != null && p.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2850
2861
|
].filter(Boolean).join(" ");
|
|
2851
2862
|
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Wn({
|
|
2852
2863
|
symbol: e.symbol,
|
|
@@ -2881,7 +2892,7 @@ async function An(e) {
|
|
|
2881
2892
|
export {
|
|
2882
2893
|
le as Blocks,
|
|
2883
2894
|
un as BuilderContext,
|
|
2884
|
-
|
|
2895
|
+
Xe as Button,
|
|
2885
2896
|
Bt as Columns,
|
|
2886
2897
|
Bn as Content,
|
|
2887
2898
|
Wt as Fragment,
|