@builder.io/sdk-react 5.2.2 → 5.2.4-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/lib/browser/blocks-exports.cjs +36 -58
- package/lib/browser/blocks-exports.mjs +453 -481
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-32fde7d6.cjs +2 -0
- package/lib/browser/{server-entry-aff2c5ee.js → server-entry-3a0f3268.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-8b1afed8.cjs → accordion-0ac4b4bc.cjs} +1 -1
- package/lib/edge/{accordion-3144e69e.js → accordion-281685a7.js} +1 -1
- package/lib/edge/{blocks-5b2c456f.cjs → blocks-2bbe2b28.cjs} +1 -1
- package/lib/edge/{blocks-817f9485.js → blocks-ae2a49a7.js} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-ac5a0022.cjs → button-23adb9d5.cjs} +1 -1
- package/lib/edge/{button-cfe682cf.js → button-feb2e4c9.js} +2 -2
- package/lib/edge/{columns-1de197aa.js → columns-2bd52875.js} +3 -3
- package/lib/edge/{columns-e400b435.cjs → columns-def305cf.cjs} +1 -1
- package/lib/edge/{content-variants-c6ff157f.js → content-variants-415eac79.js} +303 -331
- package/lib/edge/{content-variants-7113e9cf.cjs → content-variants-ec418e63.cjs} +29 -51
- package/lib/edge/{custom-code-143b5a84.js → custom-code-14d05bee.js} +1 -1
- package/lib/edge/{custom-code-7616d00a.cjs → custom-code-e11c0386.cjs} +1 -1
- package/lib/edge/{embed-e6116e90.js → embed-16e83d02.js} +1 -1
- package/lib/edge/{embed-f68db9ab.cjs → embed-f9b142c0.cjs} +1 -1
- package/lib/edge/{form-bbe1e30e.js → form-74774087.js} +3 -3
- package/lib/edge/{form-3b66981f.cjs → form-9ffabbba.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-13da1e6d.cjs → get-class-prop-name-2b1ea4eb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-541f7abc.js → get-class-prop-name-33cafbde.js} +1 -1
- package/lib/edge/{img-e4fe298b.cjs → img-1be5d2b3.cjs} +1 -1
- package/lib/edge/{img-89400807.js → img-8f36ecb0.js} +2 -2
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-4b0e20ac.js → input-11bbe245.js} +1 -1
- package/lib/edge/{input-9fd73d5f.cjs → input-8c205b02.cjs} +1 -1
- package/lib/edge/{personalization-container-adbe238a.cjs → personalization-container-22d0d6da.cjs} +1 -1
- package/lib/edge/{personalization-container-d4bfb7a9.js → personalization-container-9f86e2a4.js} +4 -4
- package/lib/edge/{select-53fe8822.js → select-badee915.js} +1 -1
- package/lib/edge/{select-93ec2e99.cjs → select-eadae9ec.cjs} +1 -1
- package/lib/edge/{server-entry-17b8ed52.js → server-entry-2c77147b.js} +1 -1
- package/lib/edge/{server-entry-92cd5eeb.cjs → server-entry-48caf9b2.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-31cbb5b2.js → slot-0eab4674.js} +3 -3
- package/lib/edge/{slot-1d00a5ae.cjs → slot-7538f944.cjs} +1 -1
- package/lib/edge/{symbol-9aca7157.js → symbol-6e406f55.js} +2 -2
- package/lib/edge/{symbol-84c1857b.cjs → symbol-c8f06cf6.cjs} +1 -1
- package/lib/edge/{tabs-f8858f81.js → tabs-60cfbeee.js} +3 -3
- package/lib/edge/{tabs-a7d93c37.cjs → tabs-7bcc75e3.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +36 -58
- package/lib/node/blocks-exports.mjs +538 -566
- 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-519cd30a.cjs +2 -0
- package/lib/node/{server-entry-c3bc01a9.js → server-entry-91bd4af2.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-4dccb8f3.cjs → setIvm-c64cc674.cjs} +1 -1
- package/lib/node/{setIvm-f74f2921.js → setIvm-f5aa8580.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-1af30e6f.js → should-force-browser-runtime-in-node-098c4aa9.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-131d268b.cjs → should-force-browser-runtime-in-node-d60cd7d1.cjs} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/helpers.d.ts +0 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/browser/server-entry-44ac782f.cjs +0 -2
- package/lib/node/server-entry-99ae937a.cjs +0 -2
|
@@ -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 Q, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as C, useRef as Y, useState as k, useEffect as F } from "react";
|
|
3
|
+
import { TARGET as W, isBrowser as L, isEditing as _, isPreviewing as me, setupBrowserForEditing as ve, createRegisterComponentMessage as xe, getDefaultCanTrack as q, getCookieSync as Se, _track as oe, fetchOneEntry as Te, createEditorListener as Ie, logFetch as ke, serializeIncludingFunctions as re, logger as Ce, handleABTestingSync as we } from "./server-entry-2c77147b.js";
|
|
4
|
+
import { Video as Ve, Button as Ee, Columns as Re, Fragment as Ae, Image as De, Section as Pe, Symbol as Fe, Text as We, BuilderContext as Ne } from "./blocks-exports.mjs";
|
|
5
|
+
import { triggerAnimation as $e, evaluate as pe, fastClone as _e, InlinedStyles as fe, ComponentsContext as Le, Blocks as Be } from "./blocks-ae2a49a7.js";
|
|
6
|
+
function tn(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 a(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) => a(m, {
|
|
21
21
|
property: T,
|
|
22
22
|
operator: A,
|
|
23
23
|
value: D
|
|
24
|
-
})) : !!s.find((D) =>
|
|
24
|
+
})) : !!s.find((D) => a(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 d = m[T];
|
|
30
|
+
if (Array.isArray(d))
|
|
31
|
+
return d.includes(s);
|
|
32
32
|
switch (A) {
|
|
33
33
|
case "is":
|
|
34
|
-
return
|
|
34
|
+
return d === s;
|
|
35
35
|
case "isNot":
|
|
36
|
-
return
|
|
36
|
+
return d !== s;
|
|
37
37
|
case "contains":
|
|
38
|
-
return (r(
|
|
38
|
+
return (r(d) || Array.isArray(d)) && d.includes(String(s));
|
|
39
39
|
case "startsWith":
|
|
40
|
-
return r(
|
|
40
|
+
return r(d) && d.startsWith(String(s));
|
|
41
41
|
case "endsWith":
|
|
42
|
-
return r(
|
|
42
|
+
return r(d) && d.endsWith(String(s));
|
|
43
43
|
case "greaterThan":
|
|
44
|
-
return l(
|
|
44
|
+
return l(d) && l(s) && d > s;
|
|
45
45
|
case "lessThan":
|
|
46
|
-
return l(
|
|
46
|
+
return l(d) && l(s) && d < s;
|
|
47
47
|
case "greaterThanOrEqualTo":
|
|
48
|
-
return l(
|
|
48
|
+
return l(d) && l(s) && d >= s;
|
|
49
49
|
case "lessThanOrEqualTo":
|
|
50
|
-
return l(
|
|
50
|
+
return l(d) && l(s) && d <= s;
|
|
51
51
|
default:
|
|
52
52
|
return !1;
|
|
53
53
|
}
|
|
54
54
|
})();
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const i = {
|
|
57
57
|
query: t,
|
|
58
58
|
startDate: n,
|
|
59
59
|
endDate: o
|
|
60
|
-
},
|
|
61
|
-
return
|
|
60
|
+
}, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
61
|
+
return i.startDate && new Date(i.startDate) > u || i.endDate && new Date(i.endDate) < u ? !1 : !i.query || !i.query.length ? !0 : i.query.every((m) => a(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
|
+
}`, Oe = `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
|
+
}`, qe = "default", je = "filterWithCustomTargeting", ge = "builderIoPersonalization", he = "updateVisibilityStylesScript", be = ["react", "vue", "svelte", "qwik"], Me = ["vue", "svelte", "qwik"];
|
|
225
|
+
function nn(e, t) {
|
|
226
|
+
return !(e && e.length > 0) || !t ? !1 : Me.includes(W) ? !0 : !L();
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function an({
|
|
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 a;
|
|
236
236
|
const l = {
|
|
237
237
|
blocks: r != null ? r : [],
|
|
238
238
|
path: "this.children",
|
|
239
|
-
index:
|
|
239
|
+
index: qe
|
|
240
240
|
};
|
|
241
|
-
if (n &&
|
|
242
|
-
if (typeof t == "number" && t < ((
|
|
243
|
-
const
|
|
244
|
-
if (
|
|
241
|
+
if (n && _()) {
|
|
242
|
+
if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
|
|
243
|
+
const i = e == null ? void 0 : e[t];
|
|
244
|
+
if (i)
|
|
245
245
|
return {
|
|
246
|
-
blocks:
|
|
246
|
+
blocks: i.blocks,
|
|
247
247
|
path: `variants.${t}.blocks`,
|
|
248
248
|
index: t
|
|
249
249
|
};
|
|
@@ -251,24 +251,24 @@ function on({
|
|
|
251
251
|
return l;
|
|
252
252
|
}
|
|
253
253
|
if (L()) {
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
254
|
+
const i = o == null ? void 0 : o[0];
|
|
255
|
+
if (i && e) {
|
|
256
|
+
const u = e.indexOf(i);
|
|
257
|
+
if (u !== -1)
|
|
258
258
|
return {
|
|
259
|
-
blocks:
|
|
260
|
-
path: `variants.${
|
|
261
|
-
index:
|
|
259
|
+
blocks: i.blocks,
|
|
260
|
+
path: `variants.${u}.blocks`,
|
|
261
|
+
index: u
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
return l;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
267
|
+
const Ke = () => `
|
|
268
268
|
window.${je} = ${He}
|
|
269
|
-
window.${
|
|
270
|
-
window.${
|
|
271
|
-
`,
|
|
269
|
+
window.${ge} = ${Ue}
|
|
270
|
+
window.${he} = ${Oe}
|
|
271
|
+
`, ye = W === "react", on = (e, t, n) => `window.${ge}(${JSON.stringify(e)}, "${t}", ${ye}${n ? `, "${n}"` : ""})`, rn = (e, t, n) => `window.${he}(${JSON.stringify(e)}, "${t}", ${ye}${n ? `, "${n}"` : ""})`, M = {
|
|
272
272
|
"@type": "@builder.io/sdk:Element",
|
|
273
273
|
layerName: "Accordion item title",
|
|
274
274
|
responsiveStyles: {
|
|
@@ -297,7 +297,7 @@ const ze = () => `
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
}]
|
|
300
|
-
},
|
|
300
|
+
}, K = {
|
|
301
301
|
"@type": "@builder.io/sdk:Element",
|
|
302
302
|
layerName: "Accordion item detail",
|
|
303
303
|
responsiveStyles: {
|
|
@@ -328,7 +328,7 @@ const ze = () => `
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}]
|
|
331
|
-
},
|
|
331
|
+
}, ze = {
|
|
332
332
|
name: "Builder:Accordion",
|
|
333
333
|
canHaveChildren: !0,
|
|
334
334
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -345,19 +345,19 @@ const ze = () => `
|
|
|
345
345
|
name: "title",
|
|
346
346
|
type: "uiBlocks",
|
|
347
347
|
hideFromUI: !0,
|
|
348
|
-
defaultValue: [
|
|
348
|
+
defaultValue: [M]
|
|
349
349
|
}, {
|
|
350
350
|
name: "detail",
|
|
351
351
|
type: "uiBlocks",
|
|
352
352
|
hideFromUI: !0,
|
|
353
|
-
defaultValue: [
|
|
353
|
+
defaultValue: [K]
|
|
354
354
|
}],
|
|
355
355
|
defaultValue: [{
|
|
356
|
-
title: [
|
|
357
|
-
detail: [
|
|
356
|
+
title: [M],
|
|
357
|
+
detail: [K]
|
|
358
358
|
}, {
|
|
359
|
-
title: [
|
|
360
|
-
detail: [
|
|
359
|
+
title: [M],
|
|
360
|
+
detail: [K]
|
|
361
361
|
}],
|
|
362
362
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
363
363
|
}, {
|
|
@@ -392,7 +392,7 @@ const ze = () => `
|
|
|
392
392
|
builderComponents: !0,
|
|
393
393
|
builderLinkComponent: !0
|
|
394
394
|
}
|
|
395
|
-
},
|
|
395
|
+
}, Je = C(() => import("./accordion-281685a7.js")), Qe = {
|
|
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 ze = () => `
|
|
|
428
428
|
shouldReceiveBuilderProps: {
|
|
429
429
|
builderLinkComponent: !0
|
|
430
430
|
}
|
|
431
|
-
},
|
|
431
|
+
}, Ye = {
|
|
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 ze = () => `
|
|
|
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((i, u) => i + u.get("width"), 0) !== 100) && t();
|
|
611
611
|
}
|
|
612
612
|
}, {
|
|
613
613
|
name: "space",
|
|
@@ -635,13 +635,13 @@ const ze = () => `
|
|
|
635
635
|
builderComponents: !0,
|
|
636
636
|
builderLinkComponent: !0
|
|
637
637
|
}
|
|
638
|
-
},
|
|
638
|
+
}, Ge = {
|
|
639
639
|
name: "Fragment",
|
|
640
640
|
static: !0,
|
|
641
641
|
hidden: !0,
|
|
642
642
|
canHaveChildren: !0,
|
|
643
643
|
noWrap: !0
|
|
644
|
-
},
|
|
644
|
+
}, Z = ["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"], Xe = ["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"], Ze = {
|
|
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 ze = () => `
|
|
|
656
656
|
name: "image",
|
|
657
657
|
type: "file",
|
|
658
658
|
bubble: !0,
|
|
659
|
-
allowedFileTypes:
|
|
659
|
+
allowedFileTypes: Z,
|
|
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(a, i = 6e4) {
|
|
665
|
+
return new Promise((u, m) => {
|
|
666
666
|
const g = document.createElement("img");
|
|
667
667
|
let R = !1;
|
|
668
668
|
g.onload = () => {
|
|
669
|
-
R = !0,
|
|
669
|
+
R = !0, u(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 = a, setTimeout(() => {
|
|
673
673
|
R || m(new Error("Image load timed out"));
|
|
674
|
-
},
|
|
674
|
+
}, i);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
function o(
|
|
678
|
-
return Math.round(
|
|
677
|
+
function o(a) {
|
|
678
|
+
return Math.round(a * 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((a) => a.blob()).then((a) => {
|
|
682
|
+
a.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((a) => {
|
|
685
|
+
const i = e.get("aspectRatio");
|
|
686
|
+
e.get("image") === r && (!i || i === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
689
|
}, {
|
|
@@ -753,7 +753,7 @@ const ze = () => `
|
|
|
753
753
|
shouldReceiveBuilderProps: {
|
|
754
754
|
builderBlock: !0
|
|
755
755
|
}
|
|
756
|
-
},
|
|
756
|
+
}, et = {
|
|
757
757
|
name: "PersonalizationContainer",
|
|
758
758
|
shouldReceiveBuilderProps: {
|
|
759
759
|
builderBlock: !0,
|
|
@@ -789,7 +789,7 @@ const ze = () => `
|
|
|
789
789
|
defaultValue: []
|
|
790
790
|
}]
|
|
791
791
|
}]
|
|
792
|
-
},
|
|
792
|
+
}, tt = C(() => import("./personalization-container-9f86e2a4.js")), nt = {
|
|
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 ze = () => `
|
|
|
845
845
|
builderContext: !0,
|
|
846
846
|
builderComponents: !0
|
|
847
847
|
}
|
|
848
|
-
},
|
|
848
|
+
}, it = C(() => import("./slot-0eab4674.js")), ot = {
|
|
849
849
|
name: "Symbol",
|
|
850
850
|
noWrap: !0,
|
|
851
851
|
static: !0,
|
|
@@ -884,7 +884,7 @@ const ze = () => `
|
|
|
884
884
|
builderComponents: !0,
|
|
885
885
|
builderLinkComponent: !0
|
|
886
886
|
}
|
|
887
|
-
},
|
|
887
|
+
}, z = {
|
|
888
888
|
"@type": "@builder.io/sdk:Element",
|
|
889
889
|
responsiveStyles: {
|
|
890
890
|
large: {
|
|
@@ -906,7 +906,7 @@ const ze = () => `
|
|
|
906
906
|
text: "New tab"
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
},
|
|
909
|
+
}, J = {
|
|
910
910
|
"@type": "@builder.io/sdk:Element",
|
|
911
911
|
responsiveStyles: {
|
|
912
912
|
large: {
|
|
@@ -922,7 +922,7 @@ const ze = () => `
|
|
|
922
922
|
text: "New tab content "
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
},
|
|
925
|
+
}, rt = {
|
|
926
926
|
name: "Builder: Tabs",
|
|
927
927
|
inputs: [{
|
|
928
928
|
name: "tabs",
|
|
@@ -932,16 +932,16 @@ const ze = () => `
|
|
|
932
932
|
name: "label",
|
|
933
933
|
type: "uiBlocks",
|
|
934
934
|
hideFromUI: !0,
|
|
935
|
-
defaultValue: [
|
|
935
|
+
defaultValue: [z]
|
|
936
936
|
}, {
|
|
937
937
|
name: "content",
|
|
938
938
|
type: "uiBlocks",
|
|
939
939
|
hideFromUI: !0,
|
|
940
|
-
defaultValue: [
|
|
940
|
+
defaultValue: [J]
|
|
941
941
|
}],
|
|
942
942
|
defaultValue: [{
|
|
943
943
|
label: [{
|
|
944
|
-
...
|
|
944
|
+
...z,
|
|
945
945
|
component: {
|
|
946
946
|
name: "Text",
|
|
947
947
|
options: {
|
|
@@ -950,7 +950,7 @@ const ze = () => `
|
|
|
950
950
|
}
|
|
951
951
|
}],
|
|
952
952
|
content: [{
|
|
953
|
-
...
|
|
953
|
+
...J,
|
|
954
954
|
component: {
|
|
955
955
|
name: "Text",
|
|
956
956
|
options: {
|
|
@@ -960,7 +960,7 @@ const ze = () => `
|
|
|
960
960
|
}]
|
|
961
961
|
}, {
|
|
962
962
|
label: [{
|
|
963
|
-
...
|
|
963
|
+
...z,
|
|
964
964
|
component: {
|
|
965
965
|
name: "Text",
|
|
966
966
|
options: {
|
|
@@ -969,7 +969,7 @@ const ze = () => `
|
|
|
969
969
|
}
|
|
970
970
|
}],
|
|
971
971
|
content: [{
|
|
972
|
-
...
|
|
972
|
+
...J,
|
|
973
973
|
component: {
|
|
974
974
|
name: "Text",
|
|
975
975
|
options: {
|
|
@@ -1025,7 +1025,7 @@ const ze = () => `
|
|
|
1025
1025
|
builderComponents: !0,
|
|
1026
1026
|
builderLinkComponent: !0
|
|
1027
1027
|
}
|
|
1028
|
-
},
|
|
1028
|
+
}, lt = C(() => import("./tabs-60cfbeee.js")), st = {
|
|
1029
1029
|
shouldReceiveBuilderProps: {},
|
|
1030
1030
|
name: "Text",
|
|
1031
1031
|
static: !0,
|
|
@@ -1065,7 +1065,7 @@ const ze = () => `
|
|
|
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
|
+
}, dt = C(() => import("./custom-code-14d05bee.js")), ct = {
|
|
1069
1069
|
name: "Embed",
|
|
1070
1070
|
static: !0,
|
|
1071
1071
|
inputs: [{
|
|
@@ -1080,7 +1080,7 @@ const ze = () => `
|
|
|
1080
1080
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1081
1081
|
hideFromUI: !0
|
|
1082
1082
|
}]
|
|
1083
|
-
},
|
|
1083
|
+
}, mt = C(() => import("./embed-16e83d02.js")), pt = {
|
|
1084
1084
|
name: "Form:Form",
|
|
1085
1085
|
// editableTags: ['builder-form-error']
|
|
1086
1086
|
defaults: {
|
|
@@ -1317,7 +1317,7 @@ const ze = () => `
|
|
|
1317
1317
|
builderComponents: !0,
|
|
1318
1318
|
builderLinkComponent: !0
|
|
1319
1319
|
}
|
|
1320
|
-
},
|
|
1320
|
+
}, ft = C(() => import("./form-74774087.js")), gt = {
|
|
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 ze = () => `
|
|
|
1368
1368
|
borderStyle: "solid",
|
|
1369
1369
|
borderColor: "#ccc"
|
|
1370
1370
|
}
|
|
1371
|
-
},
|
|
1371
|
+
}, ht = C(() => import("./input-11bbe245.js")), bt = {
|
|
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 ze = () => `
|
|
|
1410
1410
|
}],
|
|
1411
1411
|
static: !0,
|
|
1412
1412
|
noWrap: !0
|
|
1413
|
-
},
|
|
1413
|
+
}, yt = C(() => import("./select-badee915.js")), vt = {
|
|
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 ze = () => `
|
|
|
1435
1435
|
// that only shows if advanced setting is flipped
|
|
1436
1436
|
// TODO: defaultChildren
|
|
1437
1437
|
// canHaveChildren: true,
|
|
1438
|
-
},
|
|
1438
|
+
}, xt = C(() => import("./submit-button-b48361a7.js")), St = {
|
|
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 ze = () => `
|
|
|
1471
1471
|
},
|
|
1472
1472
|
static: !0,
|
|
1473
1473
|
noWrap: !0
|
|
1474
|
-
},
|
|
1474
|
+
}, Tt = C(() => import("./textarea-d29025e9.js")), It = {
|
|
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 ze = () => `
|
|
|
1479
1479
|
name: "image",
|
|
1480
1480
|
bubble: !0,
|
|
1481
1481
|
type: "file",
|
|
1482
|
-
allowedFileTypes:
|
|
1482
|
+
allowedFileTypes: Z,
|
|
1483
1483
|
required: !0
|
|
1484
1484
|
}, {
|
|
1485
1485
|
name: "backgroundSize",
|
|
@@ -1515,7 +1515,7 @@ const ze = () => `
|
|
|
1515
1515
|
defaultValue: 0.7041
|
|
1516
1516
|
}],
|
|
1517
1517
|
noWrap: !0
|
|
1518
|
-
},
|
|
1518
|
+
}, kt = C(() => import("./img-8f36ecb0.js")), Ct = {
|
|
1519
1519
|
name: "Video",
|
|
1520
1520
|
canHaveChildren: !0,
|
|
1521
1521
|
defaultStyles: {
|
|
@@ -1526,14 +1526,14 @@ const ze = () => `
|
|
|
1526
1526
|
inputs: [{
|
|
1527
1527
|
name: "video",
|
|
1528
1528
|
type: "file",
|
|
1529
|
-
allowedFileTypes:
|
|
1529
|
+
allowedFileTypes: Xe,
|
|
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: Z,
|
|
1537
1537
|
helperText: "Image to show before the video plays"
|
|
1538
1538
|
}, {
|
|
1539
1539
|
name: "autoPlay",
|
|
@@ -1599,34 +1599,37 @@ const ze = () => `
|
|
|
1599
1599
|
shouldReceiveBuilderProps: {
|
|
1600
1600
|
builderBlock: !0
|
|
1601
1601
|
}
|
|
1602
|
-
},
|
|
1603
|
-
component:
|
|
1602
|
+
}, wt = () => [{
|
|
1603
|
+
component: dt,
|
|
1604
1604
|
...ut
|
|
1605
1605
|
}, {
|
|
1606
|
-
component:
|
|
1607
|
-
...
|
|
1606
|
+
component: mt,
|
|
1607
|
+
...ct
|
|
1608
1608
|
}, {
|
|
1609
|
-
component:
|
|
1610
|
-
...
|
|
1609
|
+
component: ft,
|
|
1610
|
+
...pt
|
|
1611
1611
|
}, {
|
|
1612
|
-
component:
|
|
1613
|
-
...
|
|
1612
|
+
component: ht,
|
|
1613
|
+
...gt
|
|
1614
1614
|
}, {
|
|
1615
|
-
component:
|
|
1616
|
-
...
|
|
1615
|
+
component: xt,
|
|
1616
|
+
...vt
|
|
1617
1617
|
}, {
|
|
1618
|
-
component:
|
|
1619
|
-
...
|
|
1618
|
+
component: yt,
|
|
1619
|
+
...bt
|
|
1620
1620
|
}, {
|
|
1621
|
-
component:
|
|
1622
|
-
...
|
|
1621
|
+
component: Tt,
|
|
1622
|
+
...St
|
|
1623
1623
|
}, {
|
|
1624
|
-
component:
|
|
1625
|
-
...
|
|
1624
|
+
component: kt,
|
|
1625
|
+
...It
|
|
1626
1626
|
}, {
|
|
1627
|
+
component: Ve,
|
|
1628
|
+
...Ct
|
|
1629
|
+
}], le = () => [{
|
|
1627
1630
|
component: Ee,
|
|
1628
|
-
...
|
|
1629
|
-
}
|
|
1631
|
+
...Qe
|
|
1632
|
+
}, {
|
|
1630
1633
|
component: Re,
|
|
1631
1634
|
...Ye
|
|
1632
1635
|
}, {
|
|
@@ -1634,32 +1637,29 @@ const ze = () => `
|
|
|
1634
1637
|
...Ge
|
|
1635
1638
|
}, {
|
|
1636
1639
|
component: De,
|
|
1637
|
-
...
|
|
1640
|
+
...Ze
|
|
1638
1641
|
}, {
|
|
1639
1642
|
component: Pe,
|
|
1640
|
-
...
|
|
1641
|
-
}, {
|
|
1642
|
-
component: Fe,
|
|
1643
|
-
...it
|
|
1643
|
+
...nt
|
|
1644
1644
|
}, {
|
|
1645
|
-
component:
|
|
1645
|
+
component: it,
|
|
1646
1646
|
...at
|
|
1647
1647
|
}, {
|
|
1648
|
-
component:
|
|
1649
|
-
...
|
|
1648
|
+
component: Fe,
|
|
1649
|
+
...ot
|
|
1650
1650
|
}, {
|
|
1651
|
-
component:
|
|
1652
|
-
...
|
|
1653
|
-
}, ...
|
|
1654
|
-
component:
|
|
1655
|
-
...
|
|
1651
|
+
component: We,
|
|
1652
|
+
...st
|
|
1653
|
+
}, ...be.includes(W) ? [{
|
|
1654
|
+
component: tt,
|
|
1655
|
+
...et
|
|
1656
1656
|
}] : [], {
|
|
1657
|
-
component:
|
|
1658
|
-
...
|
|
1657
|
+
component: lt,
|
|
1658
|
+
...rt
|
|
1659
1659
|
}, {
|
|
1660
|
-
component:
|
|
1661
|
-
...
|
|
1662
|
-
}, ...
|
|
1660
|
+
component: Je,
|
|
1661
|
+
...ze
|
|
1662
|
+
}, ...wt()], Vt = `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 ze = () => `
|
|
|
1718
1718
|
}).join('');
|
|
1719
1719
|
styleEl.innerHTML = newStyleStr;
|
|
1720
1720
|
}
|
|
1721
|
-
}`,
|
|
1721
|
+
}`, Et = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1722
1722
|
if (!navigator.cookieEnabled) {
|
|
1723
1723
|
return;
|
|
1724
1724
|
}
|
|
@@ -1752,56 +1752,34 @@ const ze = () => `
|
|
|
1752
1752
|
thisScriptEl?.remove();
|
|
1753
1753
|
}
|
|
1754
1754
|
return;
|
|
1755
|
-
}`,
|
|
1755
|
+
}`, G = "builderIoAbTest", X = "builderIoRenderContent", H = (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
|
+
})), Rt = ({
|
|
1760
1760
|
canTrack: e,
|
|
1761
1761
|
content: t
|
|
1762
|
-
}) => !(!(
|
|
1762
|
+
}) => !(!(H(t).length > 0) || !e || L()), At = (e) => e === "react" || e === "reactNative", Dt = W === "angular", ee = At(W), Pt = () => `
|
|
1763
1763
|
(function() {
|
|
1764
|
-
|
|
1765
|
-
|
|
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}
|
|
1764
|
+
if (!window.${G}) {
|
|
1765
|
+
window.${G} = ${Vt};
|
|
1790
1766
|
}
|
|
1767
|
+
if (!window.${X}) {
|
|
1768
|
+
window.${X} = ${Et};
|
|
1769
|
+
}${ee ? `
|
|
1770
|
+
var thisScriptEl = document.currentScript;
|
|
1771
|
+
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
1791
1772
|
})();
|
|
1792
|
-
`, Ft = () => `
|
|
1793
|
-
window.${
|
|
1794
|
-
|
|
1795
|
-
`, Wt = (
|
|
1796
|
-
window.${be}(
|
|
1797
|
-
"${t}",${JSON.stringify(e)}, ${ve}, ${Pt}
|
|
1798
|
-
)`, Nt = ({
|
|
1773
|
+
`, Ft = (e, t) => `
|
|
1774
|
+
window.${G}(
|
|
1775
|
+
"${t}",${JSON.stringify(e)}, ${ee}, ${Dt}
|
|
1776
|
+
)`, Wt = ({
|
|
1799
1777
|
contentId: e,
|
|
1800
1778
|
variationId: t
|
|
1801
|
-
}) => `window.${
|
|
1802
|
-
"${t}", "${e}", ${
|
|
1779
|
+
}) => `window.${X}(
|
|
1780
|
+
"${t}", "${e}", ${ee}
|
|
1803
1781
|
)`;
|
|
1804
|
-
function
|
|
1782
|
+
function O(e) {
|
|
1805
1783
|
return /* @__PURE__ */ S(
|
|
1806
1784
|
"script",
|
|
1807
1785
|
{
|
|
@@ -1811,10 +1789,10 @@ function H(e) {
|
|
|
1811
1789
|
}
|
|
1812
1790
|
);
|
|
1813
1791
|
}
|
|
1814
|
-
function
|
|
1792
|
+
function se(e) {
|
|
1815
1793
|
return Math.round(e * 1e3) / 1e3;
|
|
1816
1794
|
}
|
|
1817
|
-
const
|
|
1795
|
+
const Nt = (e, t, n = !0) => {
|
|
1818
1796
|
if (!(e instanceof HTMLElement))
|
|
1819
1797
|
return null;
|
|
1820
1798
|
let o = n ? e : e.parentElement;
|
|
@@ -1825,37 +1803,37 @@ const _t = (e, t, n = !0) => {
|
|
|
1825
1803
|
return o;
|
|
1826
1804
|
} while (o = o.parentElement);
|
|
1827
1805
|
return null;
|
|
1828
|
-
}, $t = (e) =>
|
|
1806
|
+
}, $t = (e) => Nt(e, (t) => {
|
|
1829
1807
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1830
1808
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1831
|
-
}),
|
|
1809
|
+
}), ue = ({
|
|
1832
1810
|
event: e,
|
|
1833
1811
|
target: t
|
|
1834
1812
|
}) => {
|
|
1835
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, l =
|
|
1813
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, l = se(o / n.width), a = se(r / n.height);
|
|
1836
1814
|
return {
|
|
1837
1815
|
x: l,
|
|
1838
|
-
y:
|
|
1816
|
+
y: a
|
|
1839
1817
|
};
|
|
1840
|
-
},
|
|
1818
|
+
}, _t = (e) => {
|
|
1841
1819
|
const t = e.target, n = t && $t(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1842
1820
|
return {
|
|
1843
1821
|
targetBuilderElement: o || void 0,
|
|
1844
1822
|
metadata: {
|
|
1845
|
-
targetOffset: t ?
|
|
1823
|
+
targetOffset: t ? ue({
|
|
1846
1824
|
event: e,
|
|
1847
1825
|
target: t
|
|
1848
1826
|
}) : void 0,
|
|
1849
|
-
builderTargetOffset: n ?
|
|
1827
|
+
builderTargetOffset: n ? ue({
|
|
1850
1828
|
event: e,
|
|
1851
1829
|
target: n
|
|
1852
1830
|
}) : void 0,
|
|
1853
1831
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
1854
1832
|
}
|
|
1855
1833
|
};
|
|
1856
|
-
},
|
|
1857
|
-
var l,
|
|
1858
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (
|
|
1834
|
+
}, Lt = ["svelte", "qwik", "vue"], de = () => Lt.includes(W) && (_() || me()), Bt = (e) => {
|
|
1835
|
+
var l, a;
|
|
1836
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
|
|
1859
1837
|
let r = "";
|
|
1860
1838
|
if (o && t && n && (r += `
|
|
1861
1839
|
@font-face {
|
|
@@ -1865,16 +1843,16 @@ font-display: fallback;
|
|
|
1865
1843
|
font-weight: 400;
|
|
1866
1844
|
}
|
|
1867
1845
|
`.trim()), e.files)
|
|
1868
|
-
for (const
|
|
1869
|
-
if (!(String(Number(
|
|
1846
|
+
for (const i in e.files) {
|
|
1847
|
+
if (!(String(Number(i)) === i))
|
|
1870
1848
|
continue;
|
|
1871
|
-
const m = e.files[
|
|
1849
|
+
const m = e.files[i];
|
|
1872
1850
|
m && m !== o && (r += `
|
|
1873
1851
|
@font-face {
|
|
1874
1852
|
font-family: "${t}";
|
|
1875
1853
|
src: url('${m}') format('woff2');
|
|
1876
1854
|
font-display: fallback;
|
|
1877
|
-
font-weight: ${
|
|
1855
|
+
font-weight: ${i};
|
|
1878
1856
|
}
|
|
1879
1857
|
`.trim());
|
|
1880
1858
|
}
|
|
@@ -1887,7 +1865,7 @@ font-weight: ${a};
|
|
|
1887
1865
|
}, Ht = ({
|
|
1888
1866
|
cssCode: e,
|
|
1889
1867
|
contentId: t
|
|
1890
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
1868
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ot = `
|
|
1891
1869
|
.builder-button {
|
|
1892
1870
|
all: unset;
|
|
1893
1871
|
}
|
|
@@ -1904,15 +1882,15 @@ font-weight: ${a};
|
|
|
1904
1882
|
text-align: inherit;
|
|
1905
1883
|
font-family: inherit;
|
|
1906
1884
|
}
|
|
1907
|
-
`,
|
|
1885
|
+
`, qt = (e) => e ? "" : Ot, jt = (e) => `variant-${e}`;
|
|
1908
1886
|
function Mt(e) {
|
|
1909
|
-
var
|
|
1910
|
-
const t =
|
|
1887
|
+
var ne, ae, ie;
|
|
1888
|
+
const t = Y(null);
|
|
1911
1889
|
k(() => !1), k(
|
|
1912
1890
|
() => e.builderContextSignal
|
|
1913
1891
|
);
|
|
1914
1892
|
const [n, o] = k(() => null), [r, l] = k(() => "");
|
|
1915
|
-
function
|
|
1893
|
+
function a(c, h) {
|
|
1916
1894
|
var y, p;
|
|
1917
1895
|
const f = {
|
|
1918
1896
|
...e.builderContextSignal.rootState,
|
|
@@ -1926,8 +1904,8 @@ function Mt(e) {
|
|
|
1926
1904
|
rootState: f
|
|
1927
1905
|
}));
|
|
1928
1906
|
}
|
|
1929
|
-
function
|
|
1930
|
-
var y, p, b, P,
|
|
1907
|
+
function i(c, h) {
|
|
1908
|
+
var y, p, b, P, $;
|
|
1931
1909
|
const f = {
|
|
1932
1910
|
...e.builderContextSignal.content,
|
|
1933
1911
|
...c,
|
|
@@ -1938,7 +1916,7 @@ function Mt(e) {
|
|
|
1938
1916
|
meta: {
|
|
1939
1917
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
1940
1918
|
...c == null ? void 0 : c.meta,
|
|
1941
|
-
breakpoints: ((b = c == null ? void 0 : c.meta) == null ? void 0 : b.breakpoints) || ((
|
|
1919
|
+
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)
|
|
1942
1920
|
}
|
|
1943
1921
|
};
|
|
1944
1922
|
e.setBuilderContextSignal((v) => ({
|
|
@@ -1946,7 +1924,7 @@ function Mt(e) {
|
|
|
1946
1924
|
content: f
|
|
1947
1925
|
}));
|
|
1948
1926
|
}
|
|
1949
|
-
function
|
|
1927
|
+
function u() {
|
|
1950
1928
|
return e.showContent ? {} : {
|
|
1951
1929
|
hidden: !0,
|
|
1952
1930
|
"aria-hidden": !0
|
|
@@ -1956,14 +1934,14 @@ function Mt(e) {
|
|
|
1956
1934
|
() => e.contentWrapper || "div"
|
|
1957
1935
|
);
|
|
1958
1936
|
function R(c) {
|
|
1959
|
-
return
|
|
1937
|
+
return Ie({
|
|
1960
1938
|
model: e.model,
|
|
1961
1939
|
trustedHosts: e.trustedHosts,
|
|
1962
1940
|
callbacks: {
|
|
1963
1941
|
configureSdk: (h) => {
|
|
1964
1942
|
var p;
|
|
1965
1943
|
const { breakpoints: f, contentId: y } = h;
|
|
1966
|
-
!y || y !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || f &&
|
|
1944
|
+
!y || y !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || f && i({
|
|
1967
1945
|
meta: {
|
|
1968
1946
|
breakpoints: f
|
|
1969
1947
|
}
|
|
@@ -1973,31 +1951,31 @@ function Mt(e) {
|
|
|
1973
1951
|
$e(h);
|
|
1974
1952
|
},
|
|
1975
1953
|
contentUpdate: (h, f) => {
|
|
1976
|
-
|
|
1954
|
+
i(h);
|
|
1977
1955
|
},
|
|
1978
1956
|
stateUpdate: (h, f) => {
|
|
1979
|
-
|
|
1957
|
+
a(h);
|
|
1980
1958
|
}
|
|
1981
1959
|
}
|
|
1982
1960
|
})(c);
|
|
1983
1961
|
}
|
|
1984
|
-
const [T, A] = k(() => ({})), [s,
|
|
1962
|
+
const [T, A] = k(() => ({})), [s, d] = k(() => ({})), [D, B] = k(() => !1);
|
|
1985
1963
|
function I(c) {
|
|
1986
1964
|
var h, f;
|
|
1987
1965
|
if (e.builderContextSignal.content) {
|
|
1988
1966
|
const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
|
|
1989
|
-
|
|
1967
|
+
oe({
|
|
1990
1968
|
apiHost: e.apiHost,
|
|
1991
1969
|
type: "click",
|
|
1992
1970
|
canTrack: q(e.canTrack),
|
|
1993
1971
|
contentId: p,
|
|
1994
1972
|
apiKey: e.apiKey,
|
|
1995
1973
|
variationId: y !== p ? y : void 0,
|
|
1996
|
-
...
|
|
1974
|
+
..._t(c),
|
|
1997
1975
|
unique: !D
|
|
1998
1976
|
});
|
|
1999
1977
|
}
|
|
2000
|
-
D ||
|
|
1978
|
+
D || B(!0);
|
|
2001
1979
|
}
|
|
2002
1980
|
function w() {
|
|
2003
1981
|
var h, f, y;
|
|
@@ -2007,15 +1985,15 @@ function Mt(e) {
|
|
|
2007
1985
|
if (!b)
|
|
2008
1986
|
return;
|
|
2009
1987
|
const P = typeof b == "object" && b["@type"] === "@builder.io/core:Request";
|
|
2010
|
-
if (s[p] || T[p] &&
|
|
1988
|
+
if (s[p] || T[p] && !_())
|
|
2011
1989
|
return;
|
|
2012
|
-
const
|
|
1990
|
+
const $ = P ? b.request.url : b;
|
|
2013
1991
|
s[p] = !0;
|
|
2014
|
-
const v =
|
|
1992
|
+
const v = $.replace(
|
|
2015
1993
|
/{{([^}]+)}}/g,
|
|
2016
|
-
(E,
|
|
2017
|
-
|
|
2018
|
-
code:
|
|
1994
|
+
(E, U) => String(
|
|
1995
|
+
pe({
|
|
1996
|
+
code: U,
|
|
2019
1997
|
context: e.context || {},
|
|
2020
1998
|
localState: void 0,
|
|
2021
1999
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2031,14 +2009,14 @@ function Mt(e) {
|
|
|
2031
2009
|
url: v,
|
|
2032
2010
|
method: "GET"
|
|
2033
2011
|
};
|
|
2034
|
-
|
|
2012
|
+
ke(JSON.stringify(x));
|
|
2035
2013
|
const N = {
|
|
2036
2014
|
method: x.method,
|
|
2037
2015
|
headers: x.headers,
|
|
2038
2016
|
body: x.body
|
|
2039
2017
|
};
|
|
2040
2018
|
x.method === "GET" && delete N.body, fetch(x.url, N).then((E) => E.json()).then((E) => {
|
|
2041
|
-
|
|
2019
|
+
a({
|
|
2042
2020
|
[p]: E
|
|
2043
2021
|
}), T[p] = !0;
|
|
2044
2022
|
}).catch((E) => {
|
|
@@ -2054,12 +2032,12 @@ function Mt(e) {
|
|
|
2054
2032
|
);
|
|
2055
2033
|
}
|
|
2056
2034
|
function V() {
|
|
2057
|
-
|
|
2035
|
+
_() && window.dispatchEvent(
|
|
2058
2036
|
new CustomEvent(
|
|
2059
2037
|
"builder:component:stateChange",
|
|
2060
2038
|
{
|
|
2061
2039
|
detail: {
|
|
2062
|
-
state:
|
|
2040
|
+
state: _e(e.builderContextSignal.rootState),
|
|
2063
2041
|
ref: {
|
|
2064
2042
|
name: e.model
|
|
2065
2043
|
}
|
|
@@ -2068,11 +2046,11 @@ function Mt(e) {
|
|
|
2068
2046
|
)
|
|
2069
2047
|
);
|
|
2070
2048
|
}
|
|
2071
|
-
const
|
|
2072
|
-
return
|
|
2049
|
+
const te = Y(!1);
|
|
2050
|
+
return te.current || (w(), V(), te.current = !0), F(() => {
|
|
2073
2051
|
var c, h, f, y, p;
|
|
2074
2052
|
if (L()) {
|
|
2075
|
-
|
|
2053
|
+
_() && !e.isNestedRender && (window.addEventListener("message", R), ve({
|
|
2076
2054
|
...e.locale ? {
|
|
2077
2055
|
locale: e.locale
|
|
2078
2056
|
} : {},
|
|
@@ -2089,20 +2067,20 @@ function Mt(e) {
|
|
|
2089
2067
|
).forEach((v) => {
|
|
2090
2068
|
var x, N;
|
|
2091
2069
|
if (!((x = v.models) != null && x.length) || v.models.includes(e.model)) {
|
|
2092
|
-
const E =
|
|
2070
|
+
const E = xe(v);
|
|
2093
2071
|
(N = window.parent) == null || N.postMessage(E, "*");
|
|
2094
2072
|
}
|
|
2095
2073
|
}), window.addEventListener(
|
|
2096
2074
|
"builder:component:stateChangeListenerActivated",
|
|
2097
2075
|
V
|
|
2098
2076
|
));
|
|
2099
|
-
const b = e.builderContextSignal.content && q(e.canTrack), P =
|
|
2077
|
+
const b = e.builderContextSignal.content && q(e.canTrack), P = Se({
|
|
2100
2078
|
name: `builder.tests.${(h = e.builderContextSignal.content) == null ? void 0 : h.id}`,
|
|
2101
2079
|
canTrack: !0
|
|
2102
|
-
}),
|
|
2103
|
-
if (b &&
|
|
2080
|
+
}), $ = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId;
|
|
2081
|
+
if (b && $ === P) {
|
|
2104
2082
|
const v = (y = e.builderContextSignal.content) == null ? void 0 : y.id, x = e.apiKey;
|
|
2105
|
-
|
|
2083
|
+
oe({
|
|
2106
2084
|
apiHost: e.apiHost,
|
|
2107
2085
|
type: "impression",
|
|
2108
2086
|
canTrack: !0,
|
|
@@ -2111,11 +2089,11 @@ function Mt(e) {
|
|
|
2111
2089
|
variationId: P !== v ? P : void 0
|
|
2112
2090
|
});
|
|
2113
2091
|
}
|
|
2114
|
-
if (
|
|
2092
|
+
if (me() && !_()) {
|
|
2115
2093
|
const v = new URL(location.href).searchParams, x = v.get("builder.preview"), N = v.get(
|
|
2116
2094
|
`builder.overrides.${x}`
|
|
2117
2095
|
), E = v.get("apiKey") || v.get("builder.space");
|
|
2118
|
-
(x === "BUILDER_STUDIO" || x === e.model && E === e.apiKey && (!e.content || N === e.content.id)) &&
|
|
2096
|
+
(x === "BUILDER_STUDIO" || x === e.model && E === e.apiKey && (!e.content || N === e.content.id)) && Te({
|
|
2119
2097
|
model: e.model,
|
|
2120
2098
|
apiKey: e.apiKey,
|
|
2121
2099
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -2124,54 +2102,54 @@ function Mt(e) {
|
|
|
2124
2102
|
id: e.context.symbolId
|
|
2125
2103
|
}
|
|
2126
2104
|
} : {}
|
|
2127
|
-
}).then((
|
|
2128
|
-
|
|
2105
|
+
}).then((U) => {
|
|
2106
|
+
U && i(U);
|
|
2129
2107
|
});
|
|
2130
2108
|
}
|
|
2131
2109
|
}
|
|
2132
|
-
}, []),
|
|
2133
|
-
e.content &&
|
|
2134
|
-
}, [e.content]),
|
|
2110
|
+
}, []), F(() => {
|
|
2111
|
+
e.content && i(e.content);
|
|
2112
|
+
}, [e.content]), F(() => {
|
|
2135
2113
|
V();
|
|
2136
|
-
}, [e.builderContextSignal.rootState]),
|
|
2114
|
+
}, [e.builderContextSignal.rootState]), F(() => {
|
|
2137
2115
|
if (e.data) {
|
|
2138
2116
|
if (n === e.data)
|
|
2139
2117
|
return;
|
|
2140
|
-
|
|
2118
|
+
a(e.data), o(e.data);
|
|
2141
2119
|
}
|
|
2142
|
-
}, [e.data]),
|
|
2120
|
+
}, [e.data]), F(() => {
|
|
2143
2121
|
if (e.locale) {
|
|
2144
2122
|
if (r === e.locale)
|
|
2145
2123
|
return;
|
|
2146
|
-
|
|
2124
|
+
a({
|
|
2147
2125
|
locale: e.locale
|
|
2148
2126
|
}), l(e.locale);
|
|
2149
2127
|
}
|
|
2150
|
-
}, [e.locale]),
|
|
2128
|
+
}, [e.locale]), F(() => () => {
|
|
2151
2129
|
L() && (window.removeEventListener("message", R), window.removeEventListener(
|
|
2152
2130
|
"builder:component:stateChangeListenerActivated",
|
|
2153
2131
|
V
|
|
2154
2132
|
));
|
|
2155
|
-
}, []), /* @__PURE__ */ S(
|
|
2133
|
+
}, []), /* @__PURE__ */ S(Ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || de() ? /* @__PURE__ */ S(
|
|
2156
2134
|
m,
|
|
2157
2135
|
{
|
|
2158
2136
|
ref: t,
|
|
2159
2137
|
onClick: (c) => I(c),
|
|
2160
|
-
"builder-content-id": (
|
|
2138
|
+
"builder-content-id": (ne = e.builderContextSignal.content) == null ? void 0 : ne.id,
|
|
2161
2139
|
"builder-model": e.model,
|
|
2162
2140
|
className: jt(
|
|
2163
|
-
((
|
|
2141
|
+
((ae = e.content) == null ? void 0 : ae.testVariationId) || ((ie = e.content) == null ? void 0 : ie.id)
|
|
2164
2142
|
),
|
|
2165
2143
|
style: {
|
|
2166
|
-
display: !e.builderContextSignal.content &&
|
|
2144
|
+
display: !e.builderContextSignal.content && de() ? "none" : void 0
|
|
2167
2145
|
},
|
|
2168
|
-
...
|
|
2146
|
+
...u(),
|
|
2169
2147
|
...e.contentWrapperProps,
|
|
2170
2148
|
children: e.children
|
|
2171
2149
|
}
|
|
2172
2150
|
) : null });
|
|
2173
2151
|
}
|
|
2174
|
-
function
|
|
2152
|
+
function Kt(e) {
|
|
2175
2153
|
const [t, n] = k(
|
|
2176
2154
|
() => `
|
|
2177
2155
|
${Ht({
|
|
@@ -2181,11 +2159,11 @@ ${Ht({
|
|
|
2181
2159
|
${Ut({
|
|
2182
2160
|
customFonts: e.customFonts
|
|
2183
2161
|
})}
|
|
2184
|
-
${
|
|
2162
|
+
${qt(e.isNestedRender)}
|
|
2185
2163
|
`.trim()
|
|
2186
2164
|
);
|
|
2187
2165
|
return /* @__PURE__ */ S(
|
|
2188
|
-
|
|
2166
|
+
fe,
|
|
2189
2167
|
{
|
|
2190
2168
|
id: "builderio-content",
|
|
2191
2169
|
styles: t,
|
|
@@ -2193,15 +2171,15 @@ ${Kt(e.isNestedRender)}
|
|
|
2193
2171
|
}
|
|
2194
2172
|
);
|
|
2195
2173
|
}
|
|
2196
|
-
const
|
|
2174
|
+
const zt = ({
|
|
2197
2175
|
content: e,
|
|
2198
2176
|
data: t,
|
|
2199
2177
|
locale: n
|
|
2200
2178
|
}) => {
|
|
2201
|
-
var l,
|
|
2179
|
+
var l, a, i;
|
|
2202
2180
|
const o = {}, r = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
|
|
2203
|
-
return (
|
|
2204
|
-
|
|
2181
|
+
return (i = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || i.forEach((u) => {
|
|
2182
|
+
u.name && u.defaultValue !== void 0 && (o[u.name] = u.defaultValue);
|
|
2205
2183
|
}), {
|
|
2206
2184
|
...o,
|
|
2207
2185
|
...r,
|
|
@@ -2210,7 +2188,7 @@ const Jt = ({
|
|
|
2210
2188
|
locale: n
|
|
2211
2189
|
} : {}
|
|
2212
2190
|
};
|
|
2213
|
-
},
|
|
2191
|
+
}, Jt = ({
|
|
2214
2192
|
content: e,
|
|
2215
2193
|
data: t
|
|
2216
2194
|
}) => e ? {
|
|
@@ -2221,12 +2199,12 @@ const Jt = ({
|
|
|
2221
2199
|
},
|
|
2222
2200
|
meta: e == null ? void 0 : e.meta
|
|
2223
2201
|
} : void 0;
|
|
2224
|
-
function
|
|
2225
|
-
var m, g, R, T, A, s,
|
|
2202
|
+
function ce(e) {
|
|
2203
|
+
var m, g, R, T, A, s, d, D, B;
|
|
2226
2204
|
const [t, n] = k(
|
|
2227
2205
|
() => {
|
|
2228
2206
|
var I, w;
|
|
2229
|
-
return
|
|
2207
|
+
return Wt({
|
|
2230
2208
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2231
2209
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
2232
2210
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2235,32 +2213,32 @@ function de(e) {
|
|
|
2235
2213
|
}
|
|
2236
2214
|
);
|
|
2237
2215
|
function o(I) {
|
|
2238
|
-
|
|
2216
|
+
i((w) => ({
|
|
2239
2217
|
...w,
|
|
2240
2218
|
rootState: I
|
|
2241
2219
|
}));
|
|
2242
2220
|
}
|
|
2243
2221
|
const [r, l] = k(
|
|
2244
2222
|
() => [
|
|
2245
|
-
...
|
|
2223
|
+
...le(),
|
|
2246
2224
|
...e.customComponents || []
|
|
2247
2225
|
].reduce(
|
|
2248
2226
|
(I, { component: w, ...V }) => ({
|
|
2249
2227
|
...I,
|
|
2250
2228
|
[V.name]: {
|
|
2251
2229
|
component: w,
|
|
2252
|
-
...
|
|
2230
|
+
...re(V)
|
|
2253
2231
|
}
|
|
2254
2232
|
}),
|
|
2255
2233
|
{}
|
|
2256
2234
|
)
|
|
2257
|
-
), [
|
|
2258
|
-
content:
|
|
2235
|
+
), [a, i] = k(() => ({
|
|
2236
|
+
content: Jt({
|
|
2259
2237
|
content: e.content,
|
|
2260
2238
|
data: e.data
|
|
2261
2239
|
}),
|
|
2262
2240
|
localState: void 0,
|
|
2263
|
-
rootState:
|
|
2241
|
+
rootState: zt({
|
|
2264
2242
|
content: e.content,
|
|
2265
2243
|
data: e.data,
|
|
2266
2244
|
locale: e.locale
|
|
@@ -2271,12 +2249,12 @@ function de(e) {
|
|
|
2271
2249
|
apiKey: e.apiKey,
|
|
2272
2250
|
apiVersion: e.apiVersion,
|
|
2273
2251
|
componentInfos: [
|
|
2274
|
-
...
|
|
2252
|
+
...le(),
|
|
2275
2253
|
...e.customComponents || []
|
|
2276
2254
|
].reduce(
|
|
2277
2255
|
(I, { component: w, ...V }) => ({
|
|
2278
2256
|
...I,
|
|
2279
|
-
[V.name]:
|
|
2257
|
+
[V.name]: re(V)
|
|
2280
2258
|
}),
|
|
2281
2259
|
{}
|
|
2282
2260
|
),
|
|
@@ -2285,31 +2263,31 @@ function de(e) {
|
|
|
2285
2263
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
2286
2264
|
nonce: e.nonce || "",
|
|
2287
2265
|
model: e.model
|
|
2288
|
-
})),
|
|
2289
|
-
if (!
|
|
2290
|
-
e.apiKey ||
|
|
2266
|
+
})), u = Y(!1);
|
|
2267
|
+
if (!u.current) {
|
|
2268
|
+
e.apiKey || Ce.error(
|
|
2291
2269
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2292
2270
|
);
|
|
2293
|
-
const I = (g = (m =
|
|
2294
|
-
I &&
|
|
2271
|
+
const I = (g = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : g.jsCode;
|
|
2272
|
+
I && pe({
|
|
2295
2273
|
code: I,
|
|
2296
2274
|
context: e.context || {},
|
|
2297
2275
|
localState: void 0,
|
|
2298
|
-
rootState:
|
|
2276
|
+
rootState: a.rootState,
|
|
2299
2277
|
rootSetState: (w) => {
|
|
2300
|
-
Object.assign(
|
|
2278
|
+
Object.assign(a.rootState, w);
|
|
2301
2279
|
},
|
|
2302
2280
|
isExpression: !1
|
|
2303
|
-
}),
|
|
2281
|
+
}), u.current = !0;
|
|
2304
2282
|
}
|
|
2305
|
-
return
|
|
2283
|
+
return F(() => {
|
|
2306
2284
|
}, [e.content, e.data, e.locale]), /* @__PURE__ */ S(
|
|
2307
|
-
|
|
2285
|
+
Le.Provider,
|
|
2308
2286
|
{
|
|
2309
2287
|
value: {
|
|
2310
2288
|
registeredComponents: r
|
|
2311
2289
|
},
|
|
2312
|
-
children: /* @__PURE__ */
|
|
2290
|
+
children: /* @__PURE__ */ Q(
|
|
2313
2291
|
Mt,
|
|
2314
2292
|
{
|
|
2315
2293
|
apiHost: e.apiHost,
|
|
@@ -2323,15 +2301,15 @@ function de(e) {
|
|
|
2323
2301
|
locale: e.locale,
|
|
2324
2302
|
enrich: e.enrich,
|
|
2325
2303
|
showContent: e.showContent,
|
|
2326
|
-
builderContextSignal:
|
|
2304
|
+
builderContextSignal: a,
|
|
2327
2305
|
contentWrapper: e.contentWrapper,
|
|
2328
2306
|
contentWrapperProps: e.contentWrapperProps,
|
|
2329
2307
|
trustedHosts: e.trustedHosts,
|
|
2330
2308
|
isNestedRender: e.isNestedRender,
|
|
2331
|
-
setBuilderContextSignal:
|
|
2309
|
+
setBuilderContextSignal: i,
|
|
2332
2310
|
children: [
|
|
2333
2311
|
e.isSsrAbTest ? /* @__PURE__ */ S(
|
|
2334
|
-
|
|
2312
|
+
O,
|
|
2335
2313
|
{
|
|
2336
2314
|
id: "builderio-variant-visibility",
|
|
2337
2315
|
scriptStr: t,
|
|
@@ -2339,20 +2317,20 @@ function de(e) {
|
|
|
2339
2317
|
}
|
|
2340
2318
|
) : null,
|
|
2341
2319
|
/* @__PURE__ */ S(
|
|
2342
|
-
|
|
2320
|
+
Kt,
|
|
2343
2321
|
{
|
|
2344
2322
|
nonce: e.nonce || "",
|
|
2345
2323
|
isNestedRender: e.isNestedRender,
|
|
2346
|
-
contentId: (R =
|
|
2347
|
-
cssCode: (A = (T =
|
|
2348
|
-
customFonts: (
|
|
2324
|
+
contentId: (R = a.content) == null ? void 0 : R.id,
|
|
2325
|
+
cssCode: (A = (T = a.content) == null ? void 0 : T.data) == null ? void 0 : A.cssCode,
|
|
2326
|
+
customFonts: (d = (s = a.content) == null ? void 0 : s.data) == null ? void 0 : d.customFonts
|
|
2349
2327
|
}
|
|
2350
2328
|
),
|
|
2351
2329
|
/* @__PURE__ */ S(
|
|
2352
2330
|
Be,
|
|
2353
2331
|
{
|
|
2354
|
-
blocks: (
|
|
2355
|
-
context:
|
|
2332
|
+
blocks: (B = (D = a.content) == null ? void 0 : D.data) == null ? void 0 : B.blocks,
|
|
2333
|
+
context: a,
|
|
2356
2334
|
registeredComponents: r,
|
|
2357
2335
|
linkComponent: e.linkComponent
|
|
2358
2336
|
}
|
|
@@ -2363,64 +2341,58 @@ function de(e) {
|
|
|
2363
2341
|
}
|
|
2364
2342
|
);
|
|
2365
2343
|
}
|
|
2366
|
-
function
|
|
2367
|
-
var
|
|
2344
|
+
function Qt(e) {
|
|
2345
|
+
var a;
|
|
2368
2346
|
const [t, n] = k(
|
|
2369
|
-
() =>
|
|
2347
|
+
() => Rt({
|
|
2370
2348
|
canTrack: q(e.canTrack),
|
|
2371
2349
|
content: e.content
|
|
2372
2350
|
})
|
|
2373
2351
|
);
|
|
2374
2352
|
function o() {
|
|
2375
|
-
var
|
|
2376
|
-
return
|
|
2377
|
-
|
|
2378
|
-
id:
|
|
2379
|
-
testRatio:
|
|
2353
|
+
var i;
|
|
2354
|
+
return Ft(
|
|
2355
|
+
H(e.content).map((u) => ({
|
|
2356
|
+
id: u.testVariationId,
|
|
2357
|
+
testRatio: u.testRatio
|
|
2380
2358
|
})),
|
|
2381
|
-
((
|
|
2359
|
+
((i = e.content) == null ? void 0 : i.id) || ""
|
|
2382
2360
|
);
|
|
2383
2361
|
}
|
|
2384
2362
|
function r() {
|
|
2385
|
-
return
|
|
2363
|
+
return H(e.content).map((i) => `.variant-${i.testVariationId} { display: none; } `).join("");
|
|
2386
2364
|
}
|
|
2387
2365
|
function l() {
|
|
2388
|
-
var
|
|
2366
|
+
var i;
|
|
2389
2367
|
return t ? {
|
|
2390
2368
|
...e.content,
|
|
2391
|
-
testVariationId: (
|
|
2392
|
-
} :
|
|
2369
|
+
testVariationId: (i = e.content) == null ? void 0 : i.id
|
|
2370
|
+
} : we({
|
|
2393
2371
|
item: e.content,
|
|
2394
2372
|
canTrack: q(e.canTrack)
|
|
2395
2373
|
});
|
|
2396
2374
|
}
|
|
2397
|
-
return
|
|
2398
|
-
}, []), /* @__PURE__ */
|
|
2399
|
-
!e.isNestedRender &&
|
|
2400
|
-
|
|
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,
|
|
2375
|
+
return F(() => {
|
|
2376
|
+
}, []), /* @__PURE__ */ Q(j, { children: [
|
|
2377
|
+
!e.isNestedRender && W !== "reactNative" ? /* @__PURE__ */ S(j, { children: be.includes(W) ? /* @__PURE__ */ S(
|
|
2378
|
+
O,
|
|
2412
2379
|
{
|
|
2413
2380
|
id: "builderio-init-personalization-variants-fns",
|
|
2414
2381
|
nonce: e.nonce || "",
|
|
2415
|
-
scriptStr:
|
|
2416
|
-
"builderio-init-personalization-variants-fns",
|
|
2417
|
-
ze()
|
|
2418
|
-
)
|
|
2382
|
+
scriptStr: Ke()
|
|
2419
2383
|
}
|
|
2420
|
-
) : null,
|
|
2421
|
-
t ? /* @__PURE__ */
|
|
2384
|
+
) : null }) : null,
|
|
2385
|
+
t ? /* @__PURE__ */ Q(j, { children: [
|
|
2386
|
+
/* @__PURE__ */ S(
|
|
2387
|
+
O,
|
|
2388
|
+
{
|
|
2389
|
+
id: "builderio-init-variants-fns",
|
|
2390
|
+
scriptStr: Pt(),
|
|
2391
|
+
nonce: e.nonce || ""
|
|
2392
|
+
}
|
|
2393
|
+
),
|
|
2422
2394
|
/* @__PURE__ */ S(
|
|
2423
|
-
|
|
2395
|
+
fe,
|
|
2424
2396
|
{
|
|
2425
2397
|
id: "builderio-variants",
|
|
2426
2398
|
styles: r(),
|
|
@@ -2428,20 +2400,20 @@ function Yt(e) {
|
|
|
2428
2400
|
}
|
|
2429
2401
|
),
|
|
2430
2402
|
/* @__PURE__ */ S(
|
|
2431
|
-
|
|
2403
|
+
O,
|
|
2432
2404
|
{
|
|
2433
2405
|
id: "builderio-variants-visibility",
|
|
2434
2406
|
scriptStr: o(),
|
|
2435
2407
|
nonce: e.nonce || ""
|
|
2436
2408
|
}
|
|
2437
2409
|
),
|
|
2438
|
-
(
|
|
2439
|
-
|
|
2410
|
+
(a = H(e.content)) == null ? void 0 : a.map((i) => /* @__PURE__ */ S(
|
|
2411
|
+
ce,
|
|
2440
2412
|
{
|
|
2441
2413
|
apiHost: e.apiHost,
|
|
2442
2414
|
isNestedRender: e.isNestedRender,
|
|
2443
2415
|
nonce: e.nonce,
|
|
2444
|
-
content:
|
|
2416
|
+
content: i,
|
|
2445
2417
|
showContent: !1,
|
|
2446
2418
|
model: e.model,
|
|
2447
2419
|
data: e.data,
|
|
@@ -2460,11 +2432,11 @@ function Yt(e) {
|
|
|
2460
2432
|
contentWrapperProps: e.contentWrapperProps,
|
|
2461
2433
|
trustedHosts: e.trustedHosts
|
|
2462
2434
|
},
|
|
2463
|
-
|
|
2435
|
+
i.testVariationId
|
|
2464
2436
|
))
|
|
2465
2437
|
] }) : null,
|
|
2466
2438
|
/* @__PURE__ */ S(
|
|
2467
|
-
|
|
2439
|
+
ce,
|
|
2468
2440
|
{
|
|
2469
2441
|
apiHost: e.apiHost,
|
|
2470
2442
|
nonce: e.nonce,
|
|
@@ -2491,18 +2463,18 @@ function Yt(e) {
|
|
|
2491
2463
|
)
|
|
2492
2464
|
] });
|
|
2493
2465
|
}
|
|
2494
|
-
const
|
|
2466
|
+
const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2495
2467
|
__proto__: null,
|
|
2496
|
-
default:
|
|
2468
|
+
default: Qt
|
|
2497
2469
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2498
2470
|
export {
|
|
2499
|
-
|
|
2500
|
-
|
|
2471
|
+
qe as DEFAULT_INDEX,
|
|
2472
|
+
O as InlinedScript,
|
|
2501
2473
|
Me as SDKS_REQUIRING_RESET_APPROACH,
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2474
|
+
nn as checkShouldRenderVariants,
|
|
2475
|
+
ln as contentVariants,
|
|
2476
|
+
tn as filterWithCustomTargeting,
|
|
2477
|
+
an as getBlocksToRender,
|
|
2478
|
+
on as getPersonalizationScript,
|
|
2479
|
+
rn as getUpdateVisibilityStylesScript
|
|
2508
2480
|
};
|