@builder.io/sdk-react 5.2.0 → 5.2.2
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 +62 -32
- package/lib/browser/blocks-exports.mjs +475 -438
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-1549d863.cjs → server-entry-44ac782f.cjs} +1 -1
- package/lib/browser/{server-entry-81390e9b.js → server-entry-aff2c5ee.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-90d607ca.js → accordion-3144e69e.js} +1 -1
- package/lib/edge/{accordion-ba377db1.cjs → accordion-8b1afed8.cjs} +1 -1
- package/lib/edge/{blocks-49400750.cjs → blocks-5b2c456f.cjs} +2 -2
- package/lib/edge/{blocks-482bd303.js → blocks-817f9485.js} +50 -47
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-1dd20b20.cjs → button-ac5a0022.cjs} +1 -1
- package/lib/edge/{button-76b09bda.js → button-cfe682cf.js} +2 -2
- package/lib/edge/{columns-89f6f5b7.js → columns-1de197aa.js} +3 -3
- package/lib/edge/{columns-ed698360.cjs → columns-e400b435.cjs} +1 -1
- package/lib/edge/{content-variants-98b86c90.cjs → content-variants-7113e9cf.cjs} +53 -23
- package/lib/edge/{content-variants-6e54d1d8.js → content-variants-c6ff157f.js} +335 -301
- package/lib/edge/{custom-code-3387f2ee.js → custom-code-143b5a84.js} +1 -1
- package/lib/edge/{custom-code-62511fce.cjs → custom-code-7616d00a.cjs} +1 -1
- package/lib/edge/{embed-e24c574a.js → embed-e6116e90.js} +1 -1
- package/lib/edge/{embed-54bfd2b5.cjs → embed-f68db9ab.cjs} +1 -1
- package/lib/edge/{form-5c77fb87.cjs → form-3b66981f.cjs} +1 -1
- package/lib/edge/{form-b3b23e9b.js → form-bbe1e30e.js} +3 -3
- package/lib/edge/{get-class-prop-name-3347a655.cjs → get-class-prop-name-13da1e6d.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-2e01e11c.js → get-class-prop-name-541f7abc.js} +1 -1
- package/lib/edge/{img-d900f0a6.js → img-89400807.js} +2 -2
- package/lib/edge/{img-8430be52.cjs → img-e4fe298b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-6b9d2f0d.js → input-4b0e20ac.js} +1 -1
- package/lib/edge/{input-e522b3f8.cjs → input-9fd73d5f.cjs} +1 -1
- package/lib/edge/{personalization-container-9469f576.cjs → personalization-container-adbe238a.cjs} +1 -1
- package/lib/edge/{personalization-container-42afbf21.js → personalization-container-d4bfb7a9.js} +4 -4
- package/lib/edge/{select-e1a9f4c9.js → select-53fe8822.js} +1 -1
- package/lib/edge/{select-38371935.cjs → select-93ec2e99.cjs} +1 -1
- package/lib/edge/{server-entry-954fe774.js → server-entry-17b8ed52.js} +1 -1
- package/lib/edge/{server-entry-a2bf7e77.cjs → server-entry-92cd5eeb.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-562ee3ff.cjs → slot-1d00a5ae.cjs} +1 -1
- package/lib/edge/{slot-cc86bcca.js → slot-31cbb5b2.js} +3 -3
- package/lib/edge/{symbol-099ae199.cjs → symbol-84c1857b.cjs} +1 -1
- package/lib/edge/{symbol-6224d576.js → symbol-9aca7157.js} +2 -2
- package/lib/edge/{tabs-e1cf9ee7.cjs → tabs-a7d93c37.cjs} +1 -1
- package/lib/edge/{tabs-51cb7107.js → tabs-f8858f81.js} +3 -3
- package/lib/node/blocks-exports.cjs +60 -30
- package/lib/node/blocks-exports.mjs +542 -505
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-1c10e3d9.cjs → server-entry-99ae937a.cjs} +1 -1
- package/lib/node/{server-entry-85c98f9a.js → server-entry-c3bc01a9.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-a5e6d580.cjs → setIvm-4dccb8f3.cjs} +1 -1
- package/lib/node/{setIvm-ed61fc8c.js → setIvm-f74f2921.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-36ea59a2.cjs → should-force-browser-runtime-in-node-131d268b.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-03c2678b.js → should-force-browser-runtime-in-node-1af30e6f.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/helpers.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { jsx as S, jsxs as
|
|
2
|
-
import { lazy as C, useRef as
|
|
3
|
-
import { TARGET as
|
|
4
|
-
import { Video as
|
|
5
|
-
import { triggerAnimation as $e, evaluate as
|
|
6
|
-
function
|
|
1
|
+
import { jsx as S, jsxs as J, Fragment as te } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as C, useRef as Q, useState as k, useEffect as W } from "react";
|
|
3
|
+
import { TARGET as F, isBrowser as L, isEditing as $, isPreviewing as ue, setupBrowserForEditing as xe, createRegisterComponentMessage as Se, getDefaultCanTrack as q, getCookieSync as Te, _track as ne, fetchOneEntry as Ie, createEditorListener as ke, logFetch as Ce, serializeIncludingFunctions as ie, logger as we, handleABTestingSync as Ve } from "./server-entry-17b8ed52.js";
|
|
4
|
+
import { Video as Ee, Button as Re, Columns as Ae, Fragment as De, Image as Pe, Section as Fe, Symbol as We, Text as Ne, BuilderContext as _e } from "./blocks-exports.mjs";
|
|
5
|
+
import { triggerAnimation as $e, evaluate as ce, fastClone as Le, InlinedStyles as me, ComponentsContext as Oe, Blocks as Be } from "./blocks-817f9485.js";
|
|
6
|
+
function nn(e, t, n, o) {
|
|
7
7
|
function r(m) {
|
|
8
8
|
return typeof m == "string";
|
|
9
9
|
}
|
|
10
10
|
function l(m) {
|
|
11
11
|
return typeof m == "number";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function i(m, g) {
|
|
14
14
|
return (() => {
|
|
15
15
|
const T = g.property, A = g.operator;
|
|
16
16
|
let s = g.value;
|
|
17
17
|
if (g && g.property === "urlPath" && g.value && typeof g.value == "string" && g.value !== "/" && g.value.endsWith("/") && (s = g.value.slice(0, -1)), !(T && A))
|
|
18
18
|
return !0;
|
|
19
19
|
if (Array.isArray(s))
|
|
20
|
-
return A === "isNot" ? s.every((D) =>
|
|
20
|
+
return A === "isNot" ? s.every((D) => i(m, {
|
|
21
21
|
property: T,
|
|
22
22
|
operator: A,
|
|
23
23
|
value: D
|
|
24
|
-
})) : !!s.find((D) =>
|
|
24
|
+
})) : !!s.find((D) => i(m, {
|
|
25
25
|
property: T,
|
|
26
26
|
operator: A,
|
|
27
27
|
value: D
|
|
28
28
|
}));
|
|
29
|
-
const
|
|
30
|
-
if (Array.isArray(
|
|
31
|
-
return
|
|
29
|
+
const u = m[T];
|
|
30
|
+
if (Array.isArray(u))
|
|
31
|
+
return u.includes(s);
|
|
32
32
|
switch (A) {
|
|
33
33
|
case "is":
|
|
34
|
-
return
|
|
34
|
+
return u === s;
|
|
35
35
|
case "isNot":
|
|
36
|
-
return
|
|
36
|
+
return u !== s;
|
|
37
37
|
case "contains":
|
|
38
|
-
return (r(
|
|
38
|
+
return (r(u) || Array.isArray(u)) && u.includes(String(s));
|
|
39
39
|
case "startsWith":
|
|
40
|
-
return r(
|
|
40
|
+
return r(u) && u.startsWith(String(s));
|
|
41
41
|
case "endsWith":
|
|
42
|
-
return r(
|
|
42
|
+
return r(u) && u.endsWith(String(s));
|
|
43
43
|
case "greaterThan":
|
|
44
|
-
return l(
|
|
44
|
+
return l(u) && l(s) && u > s;
|
|
45
45
|
case "lessThan":
|
|
46
|
-
return l(
|
|
46
|
+
return l(u) && l(s) && u < s;
|
|
47
47
|
case "greaterThanOrEqualTo":
|
|
48
|
-
return l(
|
|
48
|
+
return l(u) && l(s) && u >= s;
|
|
49
49
|
case "lessThanOrEqualTo":
|
|
50
|
-
return l(
|
|
50
|
+
return l(u) && l(s) && u <= s;
|
|
51
51
|
default:
|
|
52
52
|
return !1;
|
|
53
53
|
}
|
|
54
54
|
})();
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const a = {
|
|
57
57
|
query: t,
|
|
58
58
|
startDate: n,
|
|
59
59
|
endDate: o
|
|
60
|
-
},
|
|
61
|
-
return
|
|
60
|
+
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
61
|
+
return a.startDate && new Date(a.startDate) > d || a.endDate && new Date(a.endDate) < d ? !1 : !a.query || !a.query.length ? !0 : a.query.every((m) => i(e, m));
|
|
62
62
|
}
|
|
63
63
|
const Ue = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
64
64
|
if (!navigator.cookieEnabled) {
|
|
@@ -183,7 +183,7 @@ const Ue = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
183
183
|
return item.query.every(filter => {
|
|
184
184
|
return objectMatchesQuery(userAttributes, filter);
|
|
185
185
|
});
|
|
186
|
-
}`,
|
|
186
|
+
}`, qe = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
187
187
|
function getCookie(name) {
|
|
188
188
|
const nameEQ = name + '=';
|
|
189
189
|
const ca = document.cookie.split(';');
|
|
@@ -221,29 +221,29 @@ const Ue = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
221
221
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
}`,
|
|
225
|
-
function
|
|
226
|
-
return !(e && e.length > 0) || !t ? !1 : Me.includes(
|
|
224
|
+
}`, Ke = "default", je = "filterWithCustomTargeting", pe = "builderIoPersonalization", fe = "updateVisibilityStylesScript", ge = ["react", "vue", "svelte", "qwik"], Me = ["vue", "svelte", "qwik"];
|
|
225
|
+
function an(e, t) {
|
|
226
|
+
return !(e && e.length > 0) || !t ? !1 : Me.includes(F) ? !0 : !L();
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function on({
|
|
229
229
|
variants: e,
|
|
230
230
|
previewingIndex: t,
|
|
231
231
|
isHydrated: n,
|
|
232
232
|
filteredVariants: o,
|
|
233
233
|
fallbackBlocks: r
|
|
234
234
|
}) {
|
|
235
|
-
var
|
|
235
|
+
var i;
|
|
236
236
|
const l = {
|
|
237
237
|
blocks: r != null ? r : [],
|
|
238
238
|
path: "this.children",
|
|
239
|
-
index:
|
|
239
|
+
index: Ke
|
|
240
240
|
};
|
|
241
|
-
if (n &&
|
|
242
|
-
if (typeof t == "number" && t < ((
|
|
243
|
-
const
|
|
244
|
-
if (
|
|
241
|
+
if (n && $()) {
|
|
242
|
+
if (typeof t == "number" && t < ((i = e == null ? void 0 : e.length) != null ? i : 0)) {
|
|
243
|
+
const a = e == null ? void 0 : e[t];
|
|
244
|
+
if (a)
|
|
245
245
|
return {
|
|
246
|
-
blocks:
|
|
246
|
+
blocks: a.blocks,
|
|
247
247
|
path: `variants.${t}.blocks`,
|
|
248
248
|
index: t
|
|
249
249
|
};
|
|
@@ -251,24 +251,24 @@ function an({
|
|
|
251
251
|
return l;
|
|
252
252
|
}
|
|
253
253
|
if (L()) {
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
254
|
+
const a = o == null ? void 0 : o[0];
|
|
255
|
+
if (a && e) {
|
|
256
|
+
const d = e.indexOf(a);
|
|
257
|
+
if (d !== -1)
|
|
258
258
|
return {
|
|
259
|
-
blocks:
|
|
260
|
-
path: `variants.${
|
|
261
|
-
index:
|
|
259
|
+
blocks: a.blocks,
|
|
260
|
+
path: `variants.${d}.blocks`,
|
|
261
|
+
index: d
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
return l;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
267
|
+
const ze = () => `
|
|
268
268
|
window.${je} = ${He}
|
|
269
|
-
window.${
|
|
270
|
-
window.${
|
|
271
|
-
`,
|
|
269
|
+
window.${pe} = ${Ue}
|
|
270
|
+
window.${fe} = ${qe}
|
|
271
|
+
`, he = F === "react", rn = (e, t, n) => `window.${pe}(${JSON.stringify(e)}, "${t}", ${he}${n ? `, "${n}"` : ""})`, ln = (e, t, n) => `window.${fe}(${JSON.stringify(e)}, "${t}", ${he}${n ? `, "${n}"` : ""})`, K = {
|
|
272
272
|
"@type": "@builder.io/sdk:Element",
|
|
273
273
|
layerName: "Accordion item title",
|
|
274
274
|
responsiveStyles: {
|
|
@@ -297,7 +297,7 @@ const Ke = () => `
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
}]
|
|
300
|
-
},
|
|
300
|
+
}, j = {
|
|
301
301
|
"@type": "@builder.io/sdk:Element",
|
|
302
302
|
layerName: "Accordion item detail",
|
|
303
303
|
responsiveStyles: {
|
|
@@ -328,7 +328,7 @@ const Ke = () => `
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}]
|
|
331
|
-
},
|
|
331
|
+
}, Je = {
|
|
332
332
|
name: "Builder:Accordion",
|
|
333
333
|
canHaveChildren: !0,
|
|
334
334
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -350,14 +350,14 @@ const Ke = () => `
|
|
|
350
350
|
name: "detail",
|
|
351
351
|
type: "uiBlocks",
|
|
352
352
|
hideFromUI: !0,
|
|
353
|
-
defaultValue: [
|
|
353
|
+
defaultValue: [j]
|
|
354
354
|
}],
|
|
355
355
|
defaultValue: [{
|
|
356
356
|
title: [K],
|
|
357
|
-
detail: [
|
|
357
|
+
detail: [j]
|
|
358
358
|
}, {
|
|
359
359
|
title: [K],
|
|
360
|
-
detail: [
|
|
360
|
+
detail: [j]
|
|
361
361
|
}],
|
|
362
362
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
363
363
|
}, {
|
|
@@ -392,7 +392,7 @@ const Ke = () => `
|
|
|
392
392
|
builderComponents: !0,
|
|
393
393
|
builderLinkComponent: !0
|
|
394
394
|
}
|
|
395
|
-
},
|
|
395
|
+
}, Qe = C(() => import("./accordion-3144e69e.js")), Ye = {
|
|
396
396
|
name: "Core:Button",
|
|
397
397
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
398
398
|
defaultStyles: {
|
|
@@ -428,7 +428,7 @@ const Ke = () => `
|
|
|
428
428
|
shouldReceiveBuilderProps: {
|
|
429
429
|
builderLinkComponent: !0
|
|
430
430
|
}
|
|
431
|
-
},
|
|
431
|
+
}, Ge = {
|
|
432
432
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
433
433
|
name: "Columns",
|
|
434
434
|
isRSC: !0,
|
|
@@ -607,7 +607,7 @@ const Ke = () => `
|
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
const n = e.get("columns");
|
|
610
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((
|
|
610
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((a, d) => a + d.get("width"), 0) !== 100) && t();
|
|
611
611
|
}
|
|
612
612
|
}, {
|
|
613
613
|
name: "space",
|
|
@@ -635,13 +635,13 @@ const Ke = () => `
|
|
|
635
635
|
builderComponents: !0,
|
|
636
636
|
builderLinkComponent: !0
|
|
637
637
|
}
|
|
638
|
-
},
|
|
638
|
+
}, Xe = {
|
|
639
639
|
name: "Fragment",
|
|
640
640
|
static: !0,
|
|
641
641
|
hidden: !0,
|
|
642
642
|
canHaveChildren: !0,
|
|
643
643
|
noWrap: !0
|
|
644
|
-
},
|
|
644
|
+
}, Y = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Ze = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], et = {
|
|
645
645
|
name: "Image",
|
|
646
646
|
static: !0,
|
|
647
647
|
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",
|
|
@@ -656,34 +656,34 @@ const Ke = () => `
|
|
|
656
656
|
name: "image",
|
|
657
657
|
type: "file",
|
|
658
658
|
bubble: !0,
|
|
659
|
-
allowedFileTypes:
|
|
659
|
+
allowedFileTypes: Y,
|
|
660
660
|
required: !0,
|
|
661
661
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
662
662
|
onChange: (e) => {
|
|
663
663
|
e.delete("srcset"), e.delete("noWebp");
|
|
664
|
-
function n(
|
|
665
|
-
return new Promise((
|
|
664
|
+
function n(i, a = 6e4) {
|
|
665
|
+
return new Promise((d, m) => {
|
|
666
666
|
const g = document.createElement("img");
|
|
667
667
|
let R = !1;
|
|
668
668
|
g.onload = () => {
|
|
669
|
-
R = !0,
|
|
669
|
+
R = !0, d(g);
|
|
670
670
|
}, g.addEventListener("error", (T) => {
|
|
671
671
|
console.warn("Image load failed", T.error), m(T.error);
|
|
672
|
-
}), g.src =
|
|
672
|
+
}), g.src = i, setTimeout(() => {
|
|
673
673
|
R || m(new Error("Image load timed out"));
|
|
674
|
-
},
|
|
674
|
+
}, a);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
function o(
|
|
678
|
-
return Math.round(
|
|
677
|
+
function o(i) {
|
|
678
|
+
return Math.round(i * 1e3) / 1e3;
|
|
679
679
|
}
|
|
680
680
|
const r = e.get("image"), l = e.get("aspectRatio");
|
|
681
|
-
if (fetch(r).then((
|
|
682
|
-
|
|
681
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
682
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
683
683
|
}), r && (!l || l === 0.7041))
|
|
684
|
-
return n(r).then((
|
|
685
|
-
const
|
|
686
|
-
e.get("image") === r && (!
|
|
684
|
+
return n(r).then((i) => {
|
|
685
|
+
const a = e.get("aspectRatio");
|
|
686
|
+
e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
689
|
}, {
|
|
@@ -753,7 +753,7 @@ const Ke = () => `
|
|
|
753
753
|
shouldReceiveBuilderProps: {
|
|
754
754
|
builderBlock: !0
|
|
755
755
|
}
|
|
756
|
-
},
|
|
756
|
+
}, tt = {
|
|
757
757
|
name: "PersonalizationContainer",
|
|
758
758
|
shouldReceiveBuilderProps: {
|
|
759
759
|
builderBlock: !0,
|
|
@@ -789,7 +789,7 @@ const Ke = () => `
|
|
|
789
789
|
defaultValue: []
|
|
790
790
|
}]
|
|
791
791
|
}]
|
|
792
|
-
},
|
|
792
|
+
}, nt = C(() => import("./personalization-container-d4bfb7a9.js")), it = {
|
|
793
793
|
name: "Core:Section",
|
|
794
794
|
static: !0,
|
|
795
795
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -845,7 +845,7 @@ const Ke = () => `
|
|
|
845
845
|
builderContext: !0,
|
|
846
846
|
builderComponents: !0
|
|
847
847
|
}
|
|
848
|
-
},
|
|
848
|
+
}, ot = C(() => import("./slot-31cbb5b2.js")), rt = {
|
|
849
849
|
name: "Symbol",
|
|
850
850
|
noWrap: !0,
|
|
851
851
|
static: !0,
|
|
@@ -884,7 +884,7 @@ const Ke = () => `
|
|
|
884
884
|
builderComponents: !0,
|
|
885
885
|
builderLinkComponent: !0
|
|
886
886
|
}
|
|
887
|
-
},
|
|
887
|
+
}, M = {
|
|
888
888
|
"@type": "@builder.io/sdk:Element",
|
|
889
889
|
responsiveStyles: {
|
|
890
890
|
large: {
|
|
@@ -906,7 +906,7 @@ const Ke = () => `
|
|
|
906
906
|
text: "New tab"
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
},
|
|
909
|
+
}, z = {
|
|
910
910
|
"@type": "@builder.io/sdk:Element",
|
|
911
911
|
responsiveStyles: {
|
|
912
912
|
large: {
|
|
@@ -922,7 +922,7 @@ const Ke = () => `
|
|
|
922
922
|
text: "New tab content "
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
},
|
|
925
|
+
}, lt = {
|
|
926
926
|
name: "Builder: Tabs",
|
|
927
927
|
inputs: [{
|
|
928
928
|
name: "tabs",
|
|
@@ -932,16 +932,16 @@ const Ke = () => `
|
|
|
932
932
|
name: "label",
|
|
933
933
|
type: "uiBlocks",
|
|
934
934
|
hideFromUI: !0,
|
|
935
|
-
defaultValue: [
|
|
935
|
+
defaultValue: [M]
|
|
936
936
|
}, {
|
|
937
937
|
name: "content",
|
|
938
938
|
type: "uiBlocks",
|
|
939
939
|
hideFromUI: !0,
|
|
940
|
-
defaultValue: [
|
|
940
|
+
defaultValue: [z]
|
|
941
941
|
}],
|
|
942
942
|
defaultValue: [{
|
|
943
943
|
label: [{
|
|
944
|
-
...
|
|
944
|
+
...M,
|
|
945
945
|
component: {
|
|
946
946
|
name: "Text",
|
|
947
947
|
options: {
|
|
@@ -950,7 +950,7 @@ const Ke = () => `
|
|
|
950
950
|
}
|
|
951
951
|
}],
|
|
952
952
|
content: [{
|
|
953
|
-
...
|
|
953
|
+
...z,
|
|
954
954
|
component: {
|
|
955
955
|
name: "Text",
|
|
956
956
|
options: {
|
|
@@ -960,7 +960,7 @@ const Ke = () => `
|
|
|
960
960
|
}]
|
|
961
961
|
}, {
|
|
962
962
|
label: [{
|
|
963
|
-
...
|
|
963
|
+
...M,
|
|
964
964
|
component: {
|
|
965
965
|
name: "Text",
|
|
966
966
|
options: {
|
|
@@ -969,7 +969,7 @@ const Ke = () => `
|
|
|
969
969
|
}
|
|
970
970
|
}],
|
|
971
971
|
content: [{
|
|
972
|
-
...
|
|
972
|
+
...z,
|
|
973
973
|
component: {
|
|
974
974
|
name: "Text",
|
|
975
975
|
options: {
|
|
@@ -1025,7 +1025,7 @@ const Ke = () => `
|
|
|
1025
1025
|
builderComponents: !0,
|
|
1026
1026
|
builderLinkComponent: !0
|
|
1027
1027
|
}
|
|
1028
|
-
},
|
|
1028
|
+
}, st = C(() => import("./tabs-f8858f81.js")), dt = {
|
|
1029
1029
|
shouldReceiveBuilderProps: {},
|
|
1030
1030
|
name: "Text",
|
|
1031
1031
|
static: !0,
|
|
@@ -1065,7 +1065,7 @@ const Ke = () => `
|
|
|
1065
1065
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1066
1066
|
advanced: !0
|
|
1067
1067
|
}]
|
|
1068
|
-
},
|
|
1068
|
+
}, ct = C(() => import("./custom-code-143b5a84.js")), mt = {
|
|
1069
1069
|
name: "Embed",
|
|
1070
1070
|
static: !0,
|
|
1071
1071
|
inputs: [{
|
|
@@ -1080,7 +1080,7 @@ const Ke = () => `
|
|
|
1080
1080
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1081
1081
|
hideFromUI: !0
|
|
1082
1082
|
}]
|
|
1083
|
-
},
|
|
1083
|
+
}, pt = C(() => import("./embed-e6116e90.js")), ft = {
|
|
1084
1084
|
name: "Form:Form",
|
|
1085
1085
|
// editableTags: ['builder-form-error']
|
|
1086
1086
|
defaults: {
|
|
@@ -1317,7 +1317,7 @@ const Ke = () => `
|
|
|
1317
1317
|
builderComponents: !0,
|
|
1318
1318
|
builderLinkComponent: !0
|
|
1319
1319
|
}
|
|
1320
|
-
},
|
|
1320
|
+
}, gt = C(() => import("./form-bbe1e30e.js")), ht = {
|
|
1321
1321
|
name: "Form:Input",
|
|
1322
1322
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
1323
1323
|
inputs: [
|
|
@@ -1368,7 +1368,7 @@ const Ke = () => `
|
|
|
1368
1368
|
borderStyle: "solid",
|
|
1369
1369
|
borderColor: "#ccc"
|
|
1370
1370
|
}
|
|
1371
|
-
},
|
|
1371
|
+
}, bt = C(() => import("./input-4b0e20ac.js")), yt = {
|
|
1372
1372
|
name: "Form:Select",
|
|
1373
1373
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
1374
1374
|
defaultStyles: {
|
|
@@ -1410,7 +1410,7 @@ const Ke = () => `
|
|
|
1410
1410
|
}],
|
|
1411
1411
|
static: !0,
|
|
1412
1412
|
noWrap: !0
|
|
1413
|
-
},
|
|
1413
|
+
}, vt = C(() => import("./select-53fe8822.js")), xt = {
|
|
1414
1414
|
name: "Form:SubmitButton",
|
|
1415
1415
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
1416
1416
|
defaultStyles: {
|
|
@@ -1435,7 +1435,7 @@ const Ke = () => `
|
|
|
1435
1435
|
// that only shows if advanced setting is flipped
|
|
1436
1436
|
// TODO: defaultChildren
|
|
1437
1437
|
// canHaveChildren: true,
|
|
1438
|
-
},
|
|
1438
|
+
}, St = C(() => import("./submit-button-b48361a7.js")), Tt = {
|
|
1439
1439
|
name: "Form:TextArea",
|
|
1440
1440
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
1441
1441
|
inputs: [{
|
|
@@ -1471,7 +1471,7 @@ const Ke = () => `
|
|
|
1471
1471
|
},
|
|
1472
1472
|
static: !0,
|
|
1473
1473
|
noWrap: !0
|
|
1474
|
-
},
|
|
1474
|
+
}, It = C(() => import("./textarea-d29025e9.js")), kt = {
|
|
1475
1475
|
name: "Raw:Img",
|
|
1476
1476
|
hideFromInsertMenu: !0,
|
|
1477
1477
|
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",
|
|
@@ -1479,7 +1479,7 @@ const Ke = () => `
|
|
|
1479
1479
|
name: "image",
|
|
1480
1480
|
bubble: !0,
|
|
1481
1481
|
type: "file",
|
|
1482
|
-
allowedFileTypes:
|
|
1482
|
+
allowedFileTypes: Y,
|
|
1483
1483
|
required: !0
|
|
1484
1484
|
}, {
|
|
1485
1485
|
name: "backgroundSize",
|
|
@@ -1515,7 +1515,7 @@ const Ke = () => `
|
|
|
1515
1515
|
defaultValue: 0.7041
|
|
1516
1516
|
}],
|
|
1517
1517
|
noWrap: !0
|
|
1518
|
-
},
|
|
1518
|
+
}, Ct = C(() => import("./img-89400807.js")), wt = {
|
|
1519
1519
|
name: "Video",
|
|
1520
1520
|
canHaveChildren: !0,
|
|
1521
1521
|
defaultStyles: {
|
|
@@ -1526,14 +1526,14 @@ const Ke = () => `
|
|
|
1526
1526
|
inputs: [{
|
|
1527
1527
|
name: "video",
|
|
1528
1528
|
type: "file",
|
|
1529
|
-
allowedFileTypes:
|
|
1529
|
+
allowedFileTypes: Ze,
|
|
1530
1530
|
bubble: !0,
|
|
1531
1531
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
1532
1532
|
required: !0
|
|
1533
1533
|
}, {
|
|
1534
1534
|
name: "posterImage",
|
|
1535
1535
|
type: "file",
|
|
1536
|
-
allowedFileTypes:
|
|
1536
|
+
allowedFileTypes: Y,
|
|
1537
1537
|
helperText: "Image to show before the video plays"
|
|
1538
1538
|
}, {
|
|
1539
1539
|
name: "autoPlay",
|
|
@@ -1599,37 +1599,34 @@ const Ke = () => `
|
|
|
1599
1599
|
shouldReceiveBuilderProps: {
|
|
1600
1600
|
builderBlock: !0
|
|
1601
1601
|
}
|
|
1602
|
-
},
|
|
1603
|
-
component:
|
|
1602
|
+
}, Vt = () => [{
|
|
1603
|
+
component: ct,
|
|
1604
1604
|
...ut
|
|
1605
1605
|
}, {
|
|
1606
|
-
component:
|
|
1607
|
-
...
|
|
1606
|
+
component: pt,
|
|
1607
|
+
...mt
|
|
1608
1608
|
}, {
|
|
1609
|
-
component:
|
|
1610
|
-
...
|
|
1609
|
+
component: gt,
|
|
1610
|
+
...ft
|
|
1611
1611
|
}, {
|
|
1612
|
-
component:
|
|
1613
|
-
...
|
|
1612
|
+
component: bt,
|
|
1613
|
+
...ht
|
|
1614
1614
|
}, {
|
|
1615
|
-
component:
|
|
1616
|
-
...
|
|
1615
|
+
component: St,
|
|
1616
|
+
...xt
|
|
1617
1617
|
}, {
|
|
1618
|
-
component:
|
|
1619
|
-
...
|
|
1618
|
+
component: vt,
|
|
1619
|
+
...yt
|
|
1620
1620
|
}, {
|
|
1621
|
-
component:
|
|
1622
|
-
...
|
|
1621
|
+
component: It,
|
|
1622
|
+
...Tt
|
|
1623
1623
|
}, {
|
|
1624
|
-
component:
|
|
1625
|
-
...
|
|
1624
|
+
component: Ct,
|
|
1625
|
+
...kt
|
|
1626
1626
|
}, {
|
|
1627
|
-
component: Ve,
|
|
1628
|
-
...Ct
|
|
1629
|
-
}], ie = () => [{
|
|
1630
1627
|
component: Ee,
|
|
1631
|
-
...
|
|
1632
|
-
}, {
|
|
1628
|
+
...wt
|
|
1629
|
+
}], ae = () => [{
|
|
1633
1630
|
component: Re,
|
|
1634
1631
|
...Ye
|
|
1635
1632
|
}, {
|
|
@@ -1637,29 +1634,32 @@ const Ke = () => `
|
|
|
1637
1634
|
...Ge
|
|
1638
1635
|
}, {
|
|
1639
1636
|
component: De,
|
|
1640
|
-
...
|
|
1637
|
+
...Xe
|
|
1641
1638
|
}, {
|
|
1642
1639
|
component: Pe,
|
|
1643
|
-
...
|
|
1644
|
-
}, {
|
|
1645
|
-
component: it,
|
|
1646
|
-
...at
|
|
1640
|
+
...et
|
|
1647
1641
|
}, {
|
|
1648
1642
|
component: Fe,
|
|
1649
|
-
...
|
|
1643
|
+
...it
|
|
1644
|
+
}, {
|
|
1645
|
+
component: ot,
|
|
1646
|
+
...at
|
|
1650
1647
|
}, {
|
|
1651
1648
|
component: We,
|
|
1652
|
-
...st
|
|
1653
|
-
}, ...fe.includes(W) ? [{
|
|
1654
|
-
component: tt,
|
|
1655
|
-
...et
|
|
1656
|
-
}] : [], {
|
|
1657
|
-
component: lt,
|
|
1658
1649
|
...rt
|
|
1659
1650
|
}, {
|
|
1660
|
-
component:
|
|
1661
|
-
...
|
|
1662
|
-
}, ...
|
|
1651
|
+
component: Ne,
|
|
1652
|
+
...dt
|
|
1653
|
+
}, ...ge.includes(F) ? [{
|
|
1654
|
+
component: nt,
|
|
1655
|
+
...tt
|
|
1656
|
+
}] : [], {
|
|
1657
|
+
component: st,
|
|
1658
|
+
...lt
|
|
1659
|
+
}, {
|
|
1660
|
+
component: Qe,
|
|
1661
|
+
...Je
|
|
1662
|
+
}, ...Vt()], Et = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
1663
1663
|
function getAndSetVariantId() {
|
|
1664
1664
|
function setCookie(name, value, days) {
|
|
1665
1665
|
let expires = '';
|
|
@@ -1718,7 +1718,7 @@ const Ke = () => `
|
|
|
1718
1718
|
}).join('');
|
|
1719
1719
|
styleEl.innerHTML = newStyleStr;
|
|
1720
1720
|
}
|
|
1721
|
-
}`,
|
|
1721
|
+
}`, Rt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1722
1722
|
if (!navigator.cookieEnabled) {
|
|
1723
1723
|
return;
|
|
1724
1724
|
}
|
|
@@ -1752,26 +1752,56 @@ const Ke = () => `
|
|
|
1752
1752
|
thisScriptEl?.remove();
|
|
1753
1753
|
}
|
|
1754
1754
|
return;
|
|
1755
|
-
}`,
|
|
1755
|
+
}`, be = "builderIoAbTest", ye = "builderIoRenderContent", U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
1756
1756
|
...t,
|
|
1757
1757
|
testVariationId: t.id,
|
|
1758
1758
|
id: e == null ? void 0 : e.id
|
|
1759
|
-
})),
|
|
1759
|
+
})), At = ({
|
|
1760
1760
|
canTrack: e,
|
|
1761
1761
|
content: t
|
|
1762
|
-
}) => !(!(
|
|
1763
|
-
|
|
1762
|
+
}) => !(!(U(t).length > 0) || !e || L()), Dt = (e) => e === "react" || e === "reactNative", Pt = F === "angular", ve = Dt(F), oe = (e, t) => `
|
|
1763
|
+
(function() {
|
|
1764
|
+
var selector = 'script[data-id="${e}"]';
|
|
1765
|
+
var scriptKey = '__builderioScriptInitialized_${e}';
|
|
1766
|
+
var observerKey = '__builderioScriptObserver_${e}';
|
|
1767
|
+
|
|
1768
|
+
// Synchronously remove any duplicates already in the DOM
|
|
1769
|
+
var existing = document.querySelectorAll(selector);
|
|
1770
|
+
existing.forEach(function(script, index) {
|
|
1771
|
+
if (index > 0) {
|
|
1772
|
+
script.parentNode && script.parentNode.removeChild(script);
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
|
|
1776
|
+
// Watch for duplicates added later (e.g. RSC streaming chunks)
|
|
1777
|
+
if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
|
|
1778
|
+
window[observerKey] = new MutationObserver(function() {
|
|
1779
|
+
var all = document.querySelectorAll(selector);
|
|
1780
|
+
for (var i = 1; i < all.length; i++) {
|
|
1781
|
+
all[i].parentNode && all[i].parentNode.removeChild(all[i]);
|
|
1782
|
+
}
|
|
1783
|
+
});
|
|
1784
|
+
window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
if (!window[scriptKey]) {
|
|
1788
|
+
window[scriptKey] = true;
|
|
1789
|
+
${t}
|
|
1790
|
+
}
|
|
1791
|
+
})();
|
|
1792
|
+
`, Ft = () => `
|
|
1764
1793
|
window.${be} = ${Et}
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1794
|
+
window.${ye} = ${Rt}
|
|
1795
|
+
`, Wt = (e, t) => `
|
|
1796
|
+
window.${be}(
|
|
1797
|
+
"${t}",${JSON.stringify(e)}, ${ve}, ${Pt}
|
|
1798
|
+
)`, Nt = ({
|
|
1769
1799
|
contentId: e,
|
|
1770
1800
|
variationId: t
|
|
1771
|
-
}) => `window.${
|
|
1772
|
-
"${t}", "${e}", ${
|
|
1801
|
+
}) => `window.${ye}(
|
|
1802
|
+
"${t}", "${e}", ${ve}
|
|
1773
1803
|
)`;
|
|
1774
|
-
function
|
|
1804
|
+
function H(e) {
|
|
1775
1805
|
return /* @__PURE__ */ S(
|
|
1776
1806
|
"script",
|
|
1777
1807
|
{
|
|
@@ -1781,10 +1811,10 @@ function q(e) {
|
|
|
1781
1811
|
}
|
|
1782
1812
|
);
|
|
1783
1813
|
}
|
|
1784
|
-
function
|
|
1814
|
+
function re(e) {
|
|
1785
1815
|
return Math.round(e * 1e3) / 1e3;
|
|
1786
1816
|
}
|
|
1787
|
-
const
|
|
1817
|
+
const _t = (e, t, n = !0) => {
|
|
1788
1818
|
if (!(e instanceof HTMLElement))
|
|
1789
1819
|
return null;
|
|
1790
1820
|
let o = n ? e : e.parentElement;
|
|
@@ -1795,37 +1825,37 @@ const Nt = (e, t, n = !0) => {
|
|
|
1795
1825
|
return o;
|
|
1796
1826
|
} while (o = o.parentElement);
|
|
1797
1827
|
return null;
|
|
1798
|
-
}, $t = (e) =>
|
|
1828
|
+
}, $t = (e) => _t(e, (t) => {
|
|
1799
1829
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1800
1830
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1801
|
-
}),
|
|
1831
|
+
}), le = ({
|
|
1802
1832
|
event: e,
|
|
1803
1833
|
target: t
|
|
1804
1834
|
}) => {
|
|
1805
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, l =
|
|
1835
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, l = re(o / n.width), i = re(r / n.height);
|
|
1806
1836
|
return {
|
|
1807
1837
|
x: l,
|
|
1808
|
-
y:
|
|
1838
|
+
y: i
|
|
1809
1839
|
};
|
|
1810
|
-
},
|
|
1840
|
+
}, Lt = (e) => {
|
|
1811
1841
|
const t = e.target, n = t && $t(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1812
1842
|
return {
|
|
1813
1843
|
targetBuilderElement: o || void 0,
|
|
1814
1844
|
metadata: {
|
|
1815
|
-
targetOffset: t ?
|
|
1845
|
+
targetOffset: t ? le({
|
|
1816
1846
|
event: e,
|
|
1817
1847
|
target: t
|
|
1818
1848
|
}) : void 0,
|
|
1819
|
-
builderTargetOffset: n ?
|
|
1849
|
+
builderTargetOffset: n ? le({
|
|
1820
1850
|
event: e,
|
|
1821
1851
|
target: n
|
|
1822
1852
|
}) : void 0,
|
|
1823
1853
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
1824
1854
|
}
|
|
1825
1855
|
};
|
|
1826
|
-
},
|
|
1827
|
-
var l,
|
|
1828
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (
|
|
1856
|
+
}, Ot = ["svelte", "qwik", "vue"], se = () => Ot.includes(F) && ($() || ue()), Bt = (e) => {
|
|
1857
|
+
var l, i;
|
|
1858
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
|
|
1829
1859
|
let r = "";
|
|
1830
1860
|
if (o && t && n && (r += `
|
|
1831
1861
|
@font-face {
|
|
@@ -1835,16 +1865,16 @@ font-display: fallback;
|
|
|
1835
1865
|
font-weight: 400;
|
|
1836
1866
|
}
|
|
1837
1867
|
`.trim()), e.files)
|
|
1838
|
-
for (const
|
|
1839
|
-
if (!(String(Number(
|
|
1868
|
+
for (const a in e.files) {
|
|
1869
|
+
if (!(String(Number(a)) === a))
|
|
1840
1870
|
continue;
|
|
1841
|
-
const m = e.files[
|
|
1871
|
+
const m = e.files[a];
|
|
1842
1872
|
m && m !== o && (r += `
|
|
1843
1873
|
@font-face {
|
|
1844
1874
|
font-family: "${t}";
|
|
1845
1875
|
src: url('${m}') format('woff2');
|
|
1846
1876
|
font-display: fallback;
|
|
1847
|
-
font-weight: ${
|
|
1877
|
+
font-weight: ${a};
|
|
1848
1878
|
}
|
|
1849
1879
|
`.trim());
|
|
1850
1880
|
}
|
|
@@ -1857,7 +1887,7 @@ font-weight: ${i};
|
|
|
1857
1887
|
}, Ht = ({
|
|
1858
1888
|
cssCode: e,
|
|
1859
1889
|
contentId: t
|
|
1860
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
1890
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", qt = `
|
|
1861
1891
|
.builder-button {
|
|
1862
1892
|
all: unset;
|
|
1863
1893
|
}
|
|
@@ -1874,15 +1904,15 @@ font-weight: ${i};
|
|
|
1874
1904
|
text-align: inherit;
|
|
1875
1905
|
font-family: inherit;
|
|
1876
1906
|
}
|
|
1877
|
-
`,
|
|
1907
|
+
`, Kt = (e) => e ? "" : qt, jt = (e) => `variant-${e}`;
|
|
1878
1908
|
function Mt(e) {
|
|
1879
|
-
var Z, ee
|
|
1880
|
-
const t =
|
|
1909
|
+
var X, Z, ee;
|
|
1910
|
+
const t = Q(null);
|
|
1881
1911
|
k(() => !1), k(
|
|
1882
1912
|
() => e.builderContextSignal
|
|
1883
1913
|
);
|
|
1884
1914
|
const [n, o] = k(() => null), [r, l] = k(() => "");
|
|
1885
|
-
function
|
|
1915
|
+
function i(c, h) {
|
|
1886
1916
|
var y, p;
|
|
1887
1917
|
const f = {
|
|
1888
1918
|
...e.builderContextSignal.rootState,
|
|
@@ -1896,8 +1926,8 @@ function Mt(e) {
|
|
|
1896
1926
|
rootState: f
|
|
1897
1927
|
}));
|
|
1898
1928
|
}
|
|
1899
|
-
function
|
|
1900
|
-
var y, p, b, P,
|
|
1929
|
+
function a(c, h) {
|
|
1930
|
+
var y, p, b, P, _;
|
|
1901
1931
|
const f = {
|
|
1902
1932
|
...e.builderContextSignal.content,
|
|
1903
1933
|
...c,
|
|
@@ -1908,7 +1938,7 @@ function Mt(e) {
|
|
|
1908
1938
|
meta: {
|
|
1909
1939
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
1910
1940
|
...c == null ? void 0 : c.meta,
|
|
1911
|
-
breakpoints: ((b = c == null ? void 0 : c.meta) == null ? void 0 : b.breakpoints) || ((
|
|
1941
|
+
breakpoints: ((b = c == null ? void 0 : c.meta) == null ? void 0 : b.breakpoints) || ((_ = (P = e.builderContextSignal.content) == null ? void 0 : P.meta) == null ? void 0 : _.breakpoints)
|
|
1912
1942
|
}
|
|
1913
1943
|
};
|
|
1914
1944
|
e.setBuilderContextSignal((v) => ({
|
|
@@ -1916,7 +1946,7 @@ function Mt(e) {
|
|
|
1916
1946
|
content: f
|
|
1917
1947
|
}));
|
|
1918
1948
|
}
|
|
1919
|
-
function
|
|
1949
|
+
function d() {
|
|
1920
1950
|
return e.showContent ? {} : {
|
|
1921
1951
|
hidden: !0,
|
|
1922
1952
|
"aria-hidden": !0
|
|
@@ -1926,14 +1956,14 @@ function Mt(e) {
|
|
|
1926
1956
|
() => e.contentWrapper || "div"
|
|
1927
1957
|
);
|
|
1928
1958
|
function R(c) {
|
|
1929
|
-
return
|
|
1959
|
+
return ke({
|
|
1930
1960
|
model: e.model,
|
|
1931
1961
|
trustedHosts: e.trustedHosts,
|
|
1932
1962
|
callbacks: {
|
|
1933
1963
|
configureSdk: (h) => {
|
|
1934
1964
|
var p;
|
|
1935
1965
|
const { breakpoints: f, contentId: y } = h;
|
|
1936
|
-
!y || y !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || f &&
|
|
1966
|
+
!y || y !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || f && a({
|
|
1937
1967
|
meta: {
|
|
1938
1968
|
breakpoints: f
|
|
1939
1969
|
}
|
|
@@ -1943,15 +1973,15 @@ function Mt(e) {
|
|
|
1943
1973
|
$e(h);
|
|
1944
1974
|
},
|
|
1945
1975
|
contentUpdate: (h, f) => {
|
|
1946
|
-
|
|
1976
|
+
a(h);
|
|
1947
1977
|
},
|
|
1948
1978
|
stateUpdate: (h, f) => {
|
|
1949
|
-
|
|
1979
|
+
i(h);
|
|
1950
1980
|
}
|
|
1951
1981
|
}
|
|
1952
1982
|
})(c);
|
|
1953
1983
|
}
|
|
1954
|
-
const [T, A] = k(() => ({})), [s,
|
|
1984
|
+
const [T, A] = k(() => ({})), [s, u] = k(() => ({})), [D, O] = k(() => !1);
|
|
1955
1985
|
function I(c) {
|
|
1956
1986
|
var h, f;
|
|
1957
1987
|
if (e.builderContextSignal.content) {
|
|
@@ -1959,15 +1989,15 @@ function Mt(e) {
|
|
|
1959
1989
|
ne({
|
|
1960
1990
|
apiHost: e.apiHost,
|
|
1961
1991
|
type: "click",
|
|
1962
|
-
canTrack:
|
|
1992
|
+
canTrack: q(e.canTrack),
|
|
1963
1993
|
contentId: p,
|
|
1964
1994
|
apiKey: e.apiKey,
|
|
1965
1995
|
variationId: y !== p ? y : void 0,
|
|
1966
|
-
...
|
|
1996
|
+
...Lt(c),
|
|
1967
1997
|
unique: !D
|
|
1968
1998
|
});
|
|
1969
1999
|
}
|
|
1970
|
-
D ||
|
|
2000
|
+
D || O(!0);
|
|
1971
2001
|
}
|
|
1972
2002
|
function w() {
|
|
1973
2003
|
var h, f, y;
|
|
@@ -1977,15 +2007,15 @@ function Mt(e) {
|
|
|
1977
2007
|
if (!b)
|
|
1978
2008
|
return;
|
|
1979
2009
|
const P = typeof b == "object" && b["@type"] === "@builder.io/core:Request";
|
|
1980
|
-
if (s[p] || T[p] &&
|
|
2010
|
+
if (s[p] || T[p] && !$())
|
|
1981
2011
|
return;
|
|
1982
|
-
const
|
|
2012
|
+
const _ = P ? b.request.url : b;
|
|
1983
2013
|
s[p] = !0;
|
|
1984
|
-
const v =
|
|
2014
|
+
const v = _.replace(
|
|
1985
2015
|
/{{([^}]+)}}/g,
|
|
1986
|
-
(E,
|
|
1987
|
-
|
|
1988
|
-
code:
|
|
2016
|
+
(E, B) => String(
|
|
2017
|
+
ce({
|
|
2018
|
+
code: B,
|
|
1989
2019
|
context: e.context || {},
|
|
1990
2020
|
localState: void 0,
|
|
1991
2021
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2001,14 +2031,14 @@ function Mt(e) {
|
|
|
2001
2031
|
url: v,
|
|
2002
2032
|
method: "GET"
|
|
2003
2033
|
};
|
|
2004
|
-
|
|
2034
|
+
Ce(JSON.stringify(x));
|
|
2005
2035
|
const N = {
|
|
2006
2036
|
method: x.method,
|
|
2007
2037
|
headers: x.headers,
|
|
2008
2038
|
body: x.body
|
|
2009
2039
|
};
|
|
2010
2040
|
x.method === "GET" && delete N.body, fetch(x.url, N).then((E) => E.json()).then((E) => {
|
|
2011
|
-
|
|
2041
|
+
i({
|
|
2012
2042
|
[p]: E
|
|
2013
2043
|
}), T[p] = !0;
|
|
2014
2044
|
}).catch((E) => {
|
|
@@ -2024,12 +2054,12 @@ function Mt(e) {
|
|
|
2024
2054
|
);
|
|
2025
2055
|
}
|
|
2026
2056
|
function V() {
|
|
2027
|
-
|
|
2057
|
+
$() && window.dispatchEvent(
|
|
2028
2058
|
new CustomEvent(
|
|
2029
2059
|
"builder:component:stateChange",
|
|
2030
2060
|
{
|
|
2031
2061
|
detail: {
|
|
2032
|
-
state:
|
|
2062
|
+
state: Le(e.builderContextSignal.rootState),
|
|
2033
2063
|
ref: {
|
|
2034
2064
|
name: e.model
|
|
2035
2065
|
}
|
|
@@ -2038,11 +2068,11 @@ function Mt(e) {
|
|
|
2038
2068
|
)
|
|
2039
2069
|
);
|
|
2040
2070
|
}
|
|
2041
|
-
const
|
|
2042
|
-
return
|
|
2071
|
+
const G = Q(!1);
|
|
2072
|
+
return G.current || (w(), V(), G.current = !0), W(() => {
|
|
2043
2073
|
var c, h, f, y, p;
|
|
2044
2074
|
if (L()) {
|
|
2045
|
-
|
|
2075
|
+
$() && !e.isNestedRender && (window.addEventListener("message", R), xe({
|
|
2046
2076
|
...e.locale ? {
|
|
2047
2077
|
locale: e.locale
|
|
2048
2078
|
} : {},
|
|
@@ -2059,18 +2089,18 @@ function Mt(e) {
|
|
|
2059
2089
|
).forEach((v) => {
|
|
2060
2090
|
var x, N;
|
|
2061
2091
|
if (!((x = v.models) != null && x.length) || v.models.includes(e.model)) {
|
|
2062
|
-
const E =
|
|
2092
|
+
const E = Se(v);
|
|
2063
2093
|
(N = window.parent) == null || N.postMessage(E, "*");
|
|
2064
2094
|
}
|
|
2065
2095
|
}), window.addEventListener(
|
|
2066
2096
|
"builder:component:stateChangeListenerActivated",
|
|
2067
2097
|
V
|
|
2068
2098
|
));
|
|
2069
|
-
const b = e.builderContextSignal.content &&
|
|
2099
|
+
const b = e.builderContextSignal.content && q(e.canTrack), P = Te({
|
|
2070
2100
|
name: `builder.tests.${(h = e.builderContextSignal.content) == null ? void 0 : h.id}`,
|
|
2071
2101
|
canTrack: !0
|
|
2072
|
-
}),
|
|
2073
|
-
if (b &&
|
|
2102
|
+
}), _ = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId;
|
|
2103
|
+
if (b && _ === P) {
|
|
2074
2104
|
const v = (y = e.builderContextSignal.content) == null ? void 0 : y.id, x = e.apiKey;
|
|
2075
2105
|
ne({
|
|
2076
2106
|
apiHost: e.apiHost,
|
|
@@ -2081,11 +2111,11 @@ function Mt(e) {
|
|
|
2081
2111
|
variationId: P !== v ? P : void 0
|
|
2082
2112
|
});
|
|
2083
2113
|
}
|
|
2084
|
-
if (ue() &&
|
|
2114
|
+
if (ue() && !$()) {
|
|
2085
2115
|
const v = new URL(location.href).searchParams, x = v.get("builder.preview"), N = v.get(
|
|
2086
2116
|
`builder.overrides.${x}`
|
|
2087
2117
|
), E = v.get("apiKey") || v.get("builder.space");
|
|
2088
|
-
(x === "BUILDER_STUDIO" || x === e.model && E === e.apiKey && (!e.content || N === e.content.id)) &&
|
|
2118
|
+
(x === "BUILDER_STUDIO" || x === e.model && E === e.apiKey && (!e.content || N === e.content.id)) && Ie({
|
|
2089
2119
|
model: e.model,
|
|
2090
2120
|
apiKey: e.apiKey,
|
|
2091
2121
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -2094,54 +2124,54 @@ function Mt(e) {
|
|
|
2094
2124
|
id: e.context.symbolId
|
|
2095
2125
|
}
|
|
2096
2126
|
} : {}
|
|
2097
|
-
}).then((
|
|
2098
|
-
|
|
2127
|
+
}).then((B) => {
|
|
2128
|
+
B && a(B);
|
|
2099
2129
|
});
|
|
2100
2130
|
}
|
|
2101
2131
|
}
|
|
2102
|
-
}, []),
|
|
2103
|
-
e.content &&
|
|
2104
|
-
}, [e.content]),
|
|
2132
|
+
}, []), W(() => {
|
|
2133
|
+
e.content && a(e.content);
|
|
2134
|
+
}, [e.content]), W(() => {
|
|
2105
2135
|
V();
|
|
2106
|
-
}, [e.builderContextSignal.rootState]),
|
|
2136
|
+
}, [e.builderContextSignal.rootState]), W(() => {
|
|
2107
2137
|
if (e.data) {
|
|
2108
2138
|
if (n === e.data)
|
|
2109
2139
|
return;
|
|
2110
|
-
|
|
2140
|
+
i(e.data), o(e.data);
|
|
2111
2141
|
}
|
|
2112
|
-
}, [e.data]),
|
|
2142
|
+
}, [e.data]), W(() => {
|
|
2113
2143
|
if (e.locale) {
|
|
2114
2144
|
if (r === e.locale)
|
|
2115
2145
|
return;
|
|
2116
|
-
|
|
2146
|
+
i({
|
|
2117
2147
|
locale: e.locale
|
|
2118
2148
|
}), l(e.locale);
|
|
2119
2149
|
}
|
|
2120
|
-
}, [e.locale]),
|
|
2150
|
+
}, [e.locale]), W(() => () => {
|
|
2121
2151
|
L() && (window.removeEventListener("message", R), window.removeEventListener(
|
|
2122
2152
|
"builder:component:stateChangeListenerActivated",
|
|
2123
2153
|
V
|
|
2124
2154
|
));
|
|
2125
|
-
}, []), /* @__PURE__ */ S(
|
|
2155
|
+
}, []), /* @__PURE__ */ S(_e.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || se() ? /* @__PURE__ */ S(
|
|
2126
2156
|
m,
|
|
2127
2157
|
{
|
|
2128
2158
|
ref: t,
|
|
2129
2159
|
onClick: (c) => I(c),
|
|
2130
|
-
"builder-content-id": (
|
|
2160
|
+
"builder-content-id": (X = e.builderContextSignal.content) == null ? void 0 : X.id,
|
|
2131
2161
|
"builder-model": e.model,
|
|
2132
2162
|
className: jt(
|
|
2133
|
-
((
|
|
2163
|
+
((Z = e.content) == null ? void 0 : Z.testVariationId) || ((ee = e.content) == null ? void 0 : ee.id)
|
|
2134
2164
|
),
|
|
2135
2165
|
style: {
|
|
2136
|
-
display: !e.builderContextSignal.content &&
|
|
2166
|
+
display: !e.builderContextSignal.content && se() ? "none" : void 0
|
|
2137
2167
|
},
|
|
2138
|
-
...
|
|
2168
|
+
...d(),
|
|
2139
2169
|
...e.contentWrapperProps,
|
|
2140
2170
|
children: e.children
|
|
2141
2171
|
}
|
|
2142
2172
|
) : null });
|
|
2143
2173
|
}
|
|
2144
|
-
function
|
|
2174
|
+
function zt(e) {
|
|
2145
2175
|
const [t, n] = k(
|
|
2146
2176
|
() => `
|
|
2147
2177
|
${Ht({
|
|
@@ -2151,11 +2181,11 @@ ${Ht({
|
|
|
2151
2181
|
${Ut({
|
|
2152
2182
|
customFonts: e.customFonts
|
|
2153
2183
|
})}
|
|
2154
|
-
${
|
|
2184
|
+
${Kt(e.isNestedRender)}
|
|
2155
2185
|
`.trim()
|
|
2156
2186
|
);
|
|
2157
2187
|
return /* @__PURE__ */ S(
|
|
2158
|
-
|
|
2188
|
+
me,
|
|
2159
2189
|
{
|
|
2160
2190
|
id: "builderio-content",
|
|
2161
2191
|
styles: t,
|
|
@@ -2163,15 +2193,15 @@ ${qt(e.isNestedRender)}
|
|
|
2163
2193
|
}
|
|
2164
2194
|
);
|
|
2165
2195
|
}
|
|
2166
|
-
const
|
|
2196
|
+
const Jt = ({
|
|
2167
2197
|
content: e,
|
|
2168
2198
|
data: t,
|
|
2169
2199
|
locale: n
|
|
2170
2200
|
}) => {
|
|
2171
|
-
var l,
|
|
2201
|
+
var l, i, a;
|
|
2172
2202
|
const o = {}, r = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
|
|
2173
|
-
return (
|
|
2174
|
-
|
|
2203
|
+
return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((d) => {
|
|
2204
|
+
d.name && d.defaultValue !== void 0 && (o[d.name] = d.defaultValue);
|
|
2175
2205
|
}), {
|
|
2176
2206
|
...o,
|
|
2177
2207
|
...r,
|
|
@@ -2180,7 +2210,7 @@ const zt = ({
|
|
|
2180
2210
|
locale: n
|
|
2181
2211
|
} : {}
|
|
2182
2212
|
};
|
|
2183
|
-
},
|
|
2213
|
+
}, Qt = ({
|
|
2184
2214
|
content: e,
|
|
2185
2215
|
data: t
|
|
2186
2216
|
}) => e ? {
|
|
@@ -2191,12 +2221,12 @@ const zt = ({
|
|
|
2191
2221
|
},
|
|
2192
2222
|
meta: e == null ? void 0 : e.meta
|
|
2193
2223
|
} : void 0;
|
|
2194
|
-
function
|
|
2195
|
-
var m, g, R, T, A, s,
|
|
2224
|
+
function de(e) {
|
|
2225
|
+
var m, g, R, T, A, s, u, D, O;
|
|
2196
2226
|
const [t, n] = k(
|
|
2197
2227
|
() => {
|
|
2198
2228
|
var I, w;
|
|
2199
|
-
return
|
|
2229
|
+
return Nt({
|
|
2200
2230
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2201
2231
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
2202
2232
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2205,32 +2235,32 @@ function se(e) {
|
|
|
2205
2235
|
}
|
|
2206
2236
|
);
|
|
2207
2237
|
function o(I) {
|
|
2208
|
-
|
|
2238
|
+
a((w) => ({
|
|
2209
2239
|
...w,
|
|
2210
2240
|
rootState: I
|
|
2211
2241
|
}));
|
|
2212
2242
|
}
|
|
2213
2243
|
const [r, l] = k(
|
|
2214
2244
|
() => [
|
|
2215
|
-
...
|
|
2245
|
+
...ae(),
|
|
2216
2246
|
...e.customComponents || []
|
|
2217
2247
|
].reduce(
|
|
2218
2248
|
(I, { component: w, ...V }) => ({
|
|
2219
2249
|
...I,
|
|
2220
2250
|
[V.name]: {
|
|
2221
2251
|
component: w,
|
|
2222
|
-
...
|
|
2252
|
+
...ie(V)
|
|
2223
2253
|
}
|
|
2224
2254
|
}),
|
|
2225
2255
|
{}
|
|
2226
2256
|
)
|
|
2227
|
-
), [
|
|
2228
|
-
content:
|
|
2257
|
+
), [i, a] = k(() => ({
|
|
2258
|
+
content: Qt({
|
|
2229
2259
|
content: e.content,
|
|
2230
2260
|
data: e.data
|
|
2231
2261
|
}),
|
|
2232
2262
|
localState: void 0,
|
|
2233
|
-
rootState:
|
|
2263
|
+
rootState: Jt({
|
|
2234
2264
|
content: e.content,
|
|
2235
2265
|
data: e.data,
|
|
2236
2266
|
locale: e.locale
|
|
@@ -2241,12 +2271,12 @@ function se(e) {
|
|
|
2241
2271
|
apiKey: e.apiKey,
|
|
2242
2272
|
apiVersion: e.apiVersion,
|
|
2243
2273
|
componentInfos: [
|
|
2244
|
-
...
|
|
2274
|
+
...ae(),
|
|
2245
2275
|
...e.customComponents || []
|
|
2246
2276
|
].reduce(
|
|
2247
2277
|
(I, { component: w, ...V }) => ({
|
|
2248
2278
|
...I,
|
|
2249
|
-
[V.name]:
|
|
2279
|
+
[V.name]: ie(V)
|
|
2250
2280
|
}),
|
|
2251
2281
|
{}
|
|
2252
2282
|
),
|
|
@@ -2255,31 +2285,31 @@ function se(e) {
|
|
|
2255
2285
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
2256
2286
|
nonce: e.nonce || "",
|
|
2257
2287
|
model: e.model
|
|
2258
|
-
})),
|
|
2259
|
-
if (!
|
|
2260
|
-
e.apiKey ||
|
|
2288
|
+
})), d = Q(!1);
|
|
2289
|
+
if (!d.current) {
|
|
2290
|
+
e.apiKey || we.error(
|
|
2261
2291
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2262
2292
|
);
|
|
2263
|
-
const I = (g = (m =
|
|
2264
|
-
I &&
|
|
2293
|
+
const I = (g = (m = i.content) == null ? void 0 : m.data) == null ? void 0 : g.jsCode;
|
|
2294
|
+
I && ce({
|
|
2265
2295
|
code: I,
|
|
2266
2296
|
context: e.context || {},
|
|
2267
2297
|
localState: void 0,
|
|
2268
|
-
rootState:
|
|
2298
|
+
rootState: i.rootState,
|
|
2269
2299
|
rootSetState: (w) => {
|
|
2270
|
-
Object.assign(
|
|
2300
|
+
Object.assign(i.rootState, w);
|
|
2271
2301
|
},
|
|
2272
2302
|
isExpression: !1
|
|
2273
|
-
}),
|
|
2303
|
+
}), d.current = !0;
|
|
2274
2304
|
}
|
|
2275
|
-
return
|
|
2305
|
+
return W(() => {
|
|
2276
2306
|
}, [e.content, e.data, e.locale]), /* @__PURE__ */ S(
|
|
2277
|
-
|
|
2307
|
+
Oe.Provider,
|
|
2278
2308
|
{
|
|
2279
2309
|
value: {
|
|
2280
2310
|
registeredComponents: r
|
|
2281
2311
|
},
|
|
2282
|
-
children: /* @__PURE__ */
|
|
2312
|
+
children: /* @__PURE__ */ J(
|
|
2283
2313
|
Mt,
|
|
2284
2314
|
{
|
|
2285
2315
|
apiHost: e.apiHost,
|
|
@@ -2293,15 +2323,15 @@ function se(e) {
|
|
|
2293
2323
|
locale: e.locale,
|
|
2294
2324
|
enrich: e.enrich,
|
|
2295
2325
|
showContent: e.showContent,
|
|
2296
|
-
builderContextSignal:
|
|
2326
|
+
builderContextSignal: i,
|
|
2297
2327
|
contentWrapper: e.contentWrapper,
|
|
2298
2328
|
contentWrapperProps: e.contentWrapperProps,
|
|
2299
2329
|
trustedHosts: e.trustedHosts,
|
|
2300
2330
|
isNestedRender: e.isNestedRender,
|
|
2301
|
-
setBuilderContextSignal:
|
|
2331
|
+
setBuilderContextSignal: a,
|
|
2302
2332
|
children: [
|
|
2303
2333
|
e.isSsrAbTest ? /* @__PURE__ */ S(
|
|
2304
|
-
|
|
2334
|
+
H,
|
|
2305
2335
|
{
|
|
2306
2336
|
id: "builderio-variant-visibility",
|
|
2307
2337
|
scriptStr: t,
|
|
@@ -2309,20 +2339,20 @@ function se(e) {
|
|
|
2309
2339
|
}
|
|
2310
2340
|
) : null,
|
|
2311
2341
|
/* @__PURE__ */ S(
|
|
2312
|
-
|
|
2342
|
+
zt,
|
|
2313
2343
|
{
|
|
2314
2344
|
nonce: e.nonce || "",
|
|
2315
2345
|
isNestedRender: e.isNestedRender,
|
|
2316
|
-
contentId: (R =
|
|
2317
|
-
cssCode: (A = (T =
|
|
2318
|
-
customFonts: (
|
|
2346
|
+
contentId: (R = i.content) == null ? void 0 : R.id,
|
|
2347
|
+
cssCode: (A = (T = i.content) == null ? void 0 : T.data) == null ? void 0 : A.cssCode,
|
|
2348
|
+
customFonts: (u = (s = i.content) == null ? void 0 : s.data) == null ? void 0 : u.customFonts
|
|
2319
2349
|
}
|
|
2320
2350
|
),
|
|
2321
2351
|
/* @__PURE__ */ S(
|
|
2322
2352
|
Be,
|
|
2323
2353
|
{
|
|
2324
|
-
blocks: (
|
|
2325
|
-
context:
|
|
2354
|
+
blocks: (O = (D = i.content) == null ? void 0 : D.data) == null ? void 0 : O.blocks,
|
|
2355
|
+
context: i,
|
|
2326
2356
|
registeredComponents: r,
|
|
2327
2357
|
linkComponent: e.linkComponent
|
|
2328
2358
|
}
|
|
@@ -2333,60 +2363,64 @@ function se(e) {
|
|
|
2333
2363
|
}
|
|
2334
2364
|
);
|
|
2335
2365
|
}
|
|
2336
|
-
function
|
|
2337
|
-
var
|
|
2366
|
+
function Yt(e) {
|
|
2367
|
+
var i;
|
|
2338
2368
|
const [t, n] = k(
|
|
2339
|
-
() =>
|
|
2340
|
-
canTrack:
|
|
2369
|
+
() => At({
|
|
2370
|
+
canTrack: q(e.canTrack),
|
|
2341
2371
|
content: e.content
|
|
2342
2372
|
})
|
|
2343
2373
|
);
|
|
2344
2374
|
function o() {
|
|
2345
|
-
var
|
|
2346
|
-
return
|
|
2347
|
-
|
|
2348
|
-
id:
|
|
2349
|
-
testRatio:
|
|
2375
|
+
var a;
|
|
2376
|
+
return Wt(
|
|
2377
|
+
U(e.content).map((d) => ({
|
|
2378
|
+
id: d.testVariationId,
|
|
2379
|
+
testRatio: d.testRatio
|
|
2350
2380
|
})),
|
|
2351
|
-
((
|
|
2381
|
+
((a = e.content) == null ? void 0 : a.id) || ""
|
|
2352
2382
|
);
|
|
2353
2383
|
}
|
|
2354
2384
|
function r() {
|
|
2355
|
-
return
|
|
2385
|
+
return U(e.content).map((a) => `.variant-${a.testVariationId} { display: none; } `).join("");
|
|
2356
2386
|
}
|
|
2357
2387
|
function l() {
|
|
2358
|
-
var
|
|
2388
|
+
var a;
|
|
2359
2389
|
return t ? {
|
|
2360
2390
|
...e.content,
|
|
2361
|
-
testVariationId: (
|
|
2362
|
-
} :
|
|
2391
|
+
testVariationId: (a = e.content) == null ? void 0 : a.id
|
|
2392
|
+
} : Ve({
|
|
2363
2393
|
item: e.content,
|
|
2364
|
-
canTrack:
|
|
2394
|
+
canTrack: q(e.canTrack)
|
|
2365
2395
|
});
|
|
2366
2396
|
}
|
|
2367
|
-
return
|
|
2368
|
-
}, []), /* @__PURE__ */
|
|
2369
|
-
!e.isNestedRender &&
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2397
|
+
return W(() => {
|
|
2398
|
+
}, []), /* @__PURE__ */ J(te, { children: [
|
|
2399
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ S(
|
|
2400
|
+
H,
|
|
2401
|
+
{
|
|
2402
|
+
id: "builderio-init-variants-fns",
|
|
2403
|
+
scriptStr: oe(
|
|
2404
|
+
"builderio-init-variants-fns",
|
|
2405
|
+
Ft()
|
|
2406
|
+
),
|
|
2407
|
+
nonce: e.nonce || ""
|
|
2408
|
+
}
|
|
2409
|
+
) : null,
|
|
2410
|
+
!e.isNestedRender && F !== "reactNative" && ge.includes(F) ? /* @__PURE__ */ S(
|
|
2411
|
+
H,
|
|
2412
|
+
{
|
|
2413
|
+
id: "builderio-init-personalization-variants-fns",
|
|
2414
|
+
nonce: e.nonce || "",
|
|
2415
|
+
scriptStr: oe(
|
|
2416
|
+
"builderio-init-personalization-variants-fns",
|
|
2417
|
+
ze()
|
|
2418
|
+
)
|
|
2419
|
+
}
|
|
2420
|
+
) : null,
|
|
2421
|
+
t ? /* @__PURE__ */ J(te, { children: [
|
|
2388
2422
|
/* @__PURE__ */ S(
|
|
2389
|
-
|
|
2423
|
+
me,
|
|
2390
2424
|
{
|
|
2391
2425
|
id: "builderio-variants",
|
|
2392
2426
|
styles: r(),
|
|
@@ -2394,20 +2428,20 @@ function Qt(e) {
|
|
|
2394
2428
|
}
|
|
2395
2429
|
),
|
|
2396
2430
|
/* @__PURE__ */ S(
|
|
2397
|
-
|
|
2431
|
+
H,
|
|
2398
2432
|
{
|
|
2399
2433
|
id: "builderio-variants-visibility",
|
|
2400
2434
|
scriptStr: o(),
|
|
2401
2435
|
nonce: e.nonce || ""
|
|
2402
2436
|
}
|
|
2403
2437
|
),
|
|
2404
|
-
(
|
|
2405
|
-
|
|
2438
|
+
(i = U(e.content)) == null ? void 0 : i.map((a) => /* @__PURE__ */ S(
|
|
2439
|
+
de,
|
|
2406
2440
|
{
|
|
2407
2441
|
apiHost: e.apiHost,
|
|
2408
2442
|
isNestedRender: e.isNestedRender,
|
|
2409
2443
|
nonce: e.nonce,
|
|
2410
|
-
content:
|
|
2444
|
+
content: a,
|
|
2411
2445
|
showContent: !1,
|
|
2412
2446
|
model: e.model,
|
|
2413
2447
|
data: e.data,
|
|
@@ -2426,11 +2460,11 @@ function Qt(e) {
|
|
|
2426
2460
|
contentWrapperProps: e.contentWrapperProps,
|
|
2427
2461
|
trustedHosts: e.trustedHosts
|
|
2428
2462
|
},
|
|
2429
|
-
|
|
2463
|
+
a.testVariationId
|
|
2430
2464
|
))
|
|
2431
2465
|
] }) : null,
|
|
2432
2466
|
/* @__PURE__ */ S(
|
|
2433
|
-
|
|
2467
|
+
de,
|
|
2434
2468
|
{
|
|
2435
2469
|
apiHost: e.apiHost,
|
|
2436
2470
|
nonce: e.nonce,
|
|
@@ -2457,18 +2491,18 @@ function Qt(e) {
|
|
|
2457
2491
|
)
|
|
2458
2492
|
] });
|
|
2459
2493
|
}
|
|
2460
|
-
const
|
|
2494
|
+
const sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2461
2495
|
__proto__: null,
|
|
2462
|
-
default:
|
|
2496
|
+
default: Yt
|
|
2463
2497
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2464
2498
|
export {
|
|
2465
|
-
|
|
2466
|
-
|
|
2499
|
+
Ke as DEFAULT_INDEX,
|
|
2500
|
+
H as InlinedScript,
|
|
2467
2501
|
Me as SDKS_REQUIRING_RESET_APPROACH,
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2502
|
+
an as checkShouldRenderVariants,
|
|
2503
|
+
sn as contentVariants,
|
|
2504
|
+
nn as filterWithCustomTargeting,
|
|
2505
|
+
on as getBlocksToRender,
|
|
2506
|
+
rn as getPersonalizationScript,
|
|
2507
|
+
ln as getUpdateVisibilityStylesScript
|
|
2474
2508
|
};
|