@builder.io/sdk-react 4.2.1 → 4.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 +17 -17
- package/lib/browser/blocks-exports.mjs +759 -742
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-4cf669a1.cjs → server-entry-06504dba.cjs} +1 -1
- package/lib/browser/{server-entry-5e98a993.js → server-entry-074665de.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-4bab42b1.cjs → accordion-0768e15a.cjs} +1 -1
- package/lib/edge/{accordion-a8a363e4.js → accordion-d3831f48.js} +1 -1
- package/lib/edge/{blocks-e1f5b0d0.js → blocks-0269007e.js} +105 -106
- package/lib/edge/{blocks-d07d0261.cjs → blocks-2af1d7c9.cjs} +10 -10
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-6734c0bb.cjs → button-050f4fef.cjs} +1 -1
- package/lib/edge/{button-bbcadacf.js → button-a478ff1a.js} +2 -2
- package/lib/edge/{columns-cf3081c6.js → columns-0b3181f1.js} +3 -3
- package/lib/edge/{columns-821cba14.cjs → columns-25375990.cjs} +1 -1
- package/lib/edge/{content-variants-a704e35c.js → content-variants-0dd65b50.js} +426 -415
- package/lib/edge/content-variants-4cab7215.cjs +302 -0
- package/lib/edge/{custom-code-8fcaa31e.cjs → custom-code-eb5aedd2.cjs} +1 -1
- package/lib/edge/{custom-code-f6c30129.js → custom-code-f7a0f1c1.js} +1 -1
- package/lib/edge/{embed-666d3cc4.cjs → embed-69114c35.cjs} +1 -1
- package/lib/edge/{embed-3c0b5564.js → embed-e4979560.js} +1 -1
- package/lib/edge/{form-8b068721.js → form-30fba682.js} +24 -21
- package/lib/edge/form-7b4bd399.cjs +1 -0
- package/lib/edge/{get-class-prop-name-d6d821d6.js → get-class-prop-name-770bdff2.js} +1 -1
- package/lib/edge/{get-class-prop-name-2869a960.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
- package/lib/edge/{img-dfbd4080.js → img-3bb375bf.js} +1 -1
- package/lib/edge/{img-b04b9b6d.cjs → img-ddf74e12.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-d31d6451.cjs → input-a6caf021.cjs} +1 -1
- package/lib/edge/{input-665ef328.js → input-e4a9fe0b.js} +1 -1
- package/lib/edge/{personalization-container-e784836e.js → personalization-container-64f3cd71.js} +4 -4
- package/lib/edge/{personalization-container-d12566e8.cjs → personalization-container-f7030f08.cjs} +1 -1
- package/lib/edge/{select-c3085265.cjs → select-c217566c.cjs} +1 -1
- package/lib/edge/{select-5fe49bd4.js → select-c59c9ac6.js} +1 -1
- package/lib/edge/{server-entry-acf5ce7d.cjs → server-entry-67200cf1.cjs} +1 -1
- package/lib/edge/{server-entry-c9d5300f.js → server-entry-fb5f2b80.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-a17ee2d7.js → slot-26ec2911.js} +3 -3
- package/lib/edge/{slot-cbbbb02e.cjs → slot-ccd946e2.cjs} +1 -1
- package/lib/edge/{symbol-9f960685.js → symbol-10cb2f77.js} +26 -23
- package/lib/edge/symbol-4548e942.cjs +1 -0
- package/lib/edge/tabs-82a9170c.cjs +1 -0
- package/lib/edge/{tabs-26ac5b2f.js → tabs-f9110171.js} +24 -23
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +919 -902
- 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-48724189.js → server-entry-83d3751d.js} +1 -1
- package/lib/node/{server-entry-562c0663.cjs → server-entry-d40e4b66.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-3b6199a0.cjs → setIvm-0a5b2ba2.cjs} +1 -1
- package/lib/node/{setIvm-a7aba6d2.js → setIvm-596668c3.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-fdc70f22.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cbe0ef14.cjs → should-force-browser-runtime-in-node-5b9e373d.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/symbol/symbol.types.d.ts +1 -2
- package/types/components/awaiter.d.ts +1 -11
- package/types/components/awaiter.types.d.ts +7 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/content-variants-ec180883.cjs +0 -302
- package/lib/edge/form-51f639ab.cjs +0 -1
- package/lib/edge/symbol-b56b5675.cjs +0 -1
- package/lib/edge/tabs-bf6643d7.cjs +0 -1
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { lazy as C, useRef as
|
|
3
|
-
import { TARGET as F, isBrowser as
|
|
4
|
-
import { Video as
|
|
5
|
-
import { triggerAnimation as
|
|
6
|
-
function
|
|
7
|
-
function r(
|
|
8
|
-
return typeof
|
|
1
|
+
import { jsx as S, jsxs as H, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as C, useRef as Y, useState as k, useEffect as N } from "react";
|
|
3
|
+
import { TARGET as F, isBrowser as L, isEditing as $, isPreviewing as ue, setupBrowserForEditing as ve, createRegisterComponentMessage as xe, getDefaultCanTrack as j, getCookieSync as Se, _track as ne, fetchOneEntry as Te, createEditorListener as Ie, logFetch as ke, serializeIncludingFunctions as ae, logger as Ce, handleABTestingSync as we } from "./server-entry-fb5f2b80.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 de, fastClone as _e, InlinedStyles as ce, ComponentsContext as Le, Blocks as Ue } from "./blocks-0269007e.js";
|
|
6
|
+
function tn(e, t, n, o) {
|
|
7
|
+
function r(m) {
|
|
8
|
+
return typeof m == "string";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return typeof
|
|
10
|
+
function l(m) {
|
|
11
|
+
return typeof m == "number";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function a(m, g) {
|
|
14
14
|
return (() => {
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
if (
|
|
15
|
+
const T = g.property, A = g.operator;
|
|
16
|
+
let s = g.value;
|
|
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
|
-
if (Array.isArray(
|
|
20
|
-
return
|
|
21
|
-
property:
|
|
22
|
-
operator:
|
|
23
|
-
value:
|
|
24
|
-
})) : !!
|
|
25
|
-
property:
|
|
26
|
-
operator:
|
|
27
|
-
value:
|
|
19
|
+
if (Array.isArray(s))
|
|
20
|
+
return A === "isNot" ? s.every((D) => a(m, {
|
|
21
|
+
property: T,
|
|
22
|
+
operator: A,
|
|
23
|
+
value: D
|
|
24
|
+
})) : !!s.find((D) => a(m, {
|
|
25
|
+
property: T,
|
|
26
|
+
operator: A,
|
|
27
|
+
value: D
|
|
28
28
|
}));
|
|
29
|
-
const
|
|
30
|
-
if (Array.isArray(
|
|
31
|
-
return
|
|
32
|
-
switch (
|
|
29
|
+
const d = m[T];
|
|
30
|
+
if (Array.isArray(d))
|
|
31
|
+
return d.includes(s);
|
|
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
|
|
44
|
+
return l(d) && l(s) && d > s;
|
|
45
45
|
case "lessThan":
|
|
46
|
-
return
|
|
46
|
+
return l(d) && l(s) && d < s;
|
|
47
47
|
case "greaterThanOrEqualTo":
|
|
48
|
-
return
|
|
48
|
+
return l(d) && l(s) && d >= s;
|
|
49
49
|
case "lessThanOrEqualTo":
|
|
50
|
-
return
|
|
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
|
-
const
|
|
63
|
+
const Be = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
64
64
|
if (!navigator.cookieEnabled) {
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
@@ -105,7 +105,7 @@ const $e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
105
105
|
thisScript.remove();
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
}`,
|
|
108
|
+
}`, He = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
109
109
|
function isString(val) {
|
|
110
110
|
return typeof val === 'string';
|
|
111
111
|
}
|
|
@@ -183,7 +183,7 @@ const $e = `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,54 +221,54 @@ const $e = `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 :
|
|
224
|
+
}`, qe = "default", je = "filterWithCustomTargeting", me = "builderIoPersonalization", pe = "updateVisibilityStylesScript", fe = ["react", "vue", "svelte", "qwik"], Me = ["vue", "svelte", "qwik"];
|
|
225
|
+
function nn(e, t) {
|
|
226
|
+
return !(e && e.length > 0) || !t ? !1 : Me.includes(F) ? !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
|
|
236
|
-
const
|
|
235
|
+
var a;
|
|
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
|
};
|
|
250
250
|
}
|
|
251
|
-
return
|
|
251
|
+
return l;
|
|
252
252
|
}
|
|
253
|
-
if (
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
253
|
+
if (L()) {
|
|
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
|
-
return
|
|
265
|
+
return l;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
window.${
|
|
269
|
-
window.${
|
|
270
|
-
window.${
|
|
271
|
-
`,
|
|
267
|
+
const Ke = () => `
|
|
268
|
+
window.${je} = ${He}
|
|
269
|
+
window.${me} = ${Be}
|
|
270
|
+
window.${pe} = ${Oe}
|
|
271
|
+
`, ge = F === "react", on = (e, t, n) => `window.${me}(${JSON.stringify(e)}, "${t}", ${ge}${n ? `, "${n}"` : ""})`, rn = (e, t, n) => `window.${pe}(${JSON.stringify(e)}, "${t}", ${ge}${n ? `, "${n}"` : ""})`, K = {
|
|
272
272
|
"@type": "@builder.io/sdk:Element",
|
|
273
273
|
layerName: "Accordion item title",
|
|
274
274
|
responsiveStyles: {
|
|
@@ -297,7 +297,7 @@ const qe = () => `
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
}]
|
|
300
|
-
},
|
|
300
|
+
}, z = {
|
|
301
301
|
"@type": "@builder.io/sdk:Element",
|
|
302
302
|
layerName: "Accordion item detail",
|
|
303
303
|
responsiveStyles: {
|
|
@@ -328,7 +328,7 @@ const qe = () => `
|
|
|
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 qe = () => `
|
|
|
345
345
|
name: "title",
|
|
346
346
|
type: "uiBlocks",
|
|
347
347
|
hideFromUI: !0,
|
|
348
|
-
defaultValue: [
|
|
348
|
+
defaultValue: [K]
|
|
349
349
|
}, {
|
|
350
350
|
name: "detail",
|
|
351
351
|
type: "uiBlocks",
|
|
352
352
|
hideFromUI: !0,
|
|
353
|
-
defaultValue: [
|
|
353
|
+
defaultValue: [z]
|
|
354
354
|
}],
|
|
355
355
|
defaultValue: [{
|
|
356
|
-
title: [
|
|
357
|
-
detail: [
|
|
356
|
+
title: [K],
|
|
357
|
+
detail: [z]
|
|
358
358
|
}, {
|
|
359
|
-
title: [
|
|
360
|
-
detail: [
|
|
359
|
+
title: [K],
|
|
360
|
+
detail: [z]
|
|
361
361
|
}],
|
|
362
362
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
363
363
|
}, {
|
|
@@ -392,7 +392,7 @@ const qe = () => `
|
|
|
392
392
|
builderComponents: !0,
|
|
393
393
|
builderLinkComponent: !0
|
|
394
394
|
}
|
|
395
|
-
},
|
|
395
|
+
}, Je = C(() => import("./accordion-d3831f48.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 qe = () => `
|
|
|
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 qe = () => `
|
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
const n = e.get("columns");
|
|
610
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((
|
|
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 qe = () => `
|
|
|
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
|
+
}, G = ["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 qe = () => `
|
|
|
656
656
|
name: "image",
|
|
657
657
|
type: "file",
|
|
658
658
|
bubble: !0,
|
|
659
|
-
allowedFileTypes:
|
|
659
|
+
allowedFileTypes: G,
|
|
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((
|
|
666
|
-
const
|
|
667
|
-
let
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
},
|
|
671
|
-
console.warn("Image load failed",
|
|
672
|
-
}),
|
|
673
|
-
|
|
674
|
-
},
|
|
664
|
+
function n(a, i = 6e4) {
|
|
665
|
+
return new Promise((u, m) => {
|
|
666
|
+
const g = document.createElement("img");
|
|
667
|
+
let R = !1;
|
|
668
|
+
g.onload = () => {
|
|
669
|
+
R = !0, u(g);
|
|
670
|
+
}, g.addEventListener("error", (T) => {
|
|
671
|
+
console.warn("Image load failed", T.error), m(T.error);
|
|
672
|
+
}), g.src = a, setTimeout(() => {
|
|
673
|
+
R || m(new Error("Image load timed out"));
|
|
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
|
-
const r = e.get("image"),
|
|
681
|
-
if (fetch(r).then((
|
|
682
|
-
|
|
683
|
-
}), r && (!
|
|
684
|
-
return n(r).then((
|
|
685
|
-
const
|
|
686
|
-
e.get("image") === r && (!
|
|
680
|
+
const r = e.get("image"), l = e.get("aspectRatio");
|
|
681
|
+
if (fetch(r).then((a) => a.blob()).then((a) => {
|
|
682
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
683
|
+
}), r && (!l || l === 0.7041))
|
|
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 qe = () => `
|
|
|
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 qe = () => `
|
|
|
789
789
|
defaultValue: []
|
|
790
790
|
}]
|
|
791
791
|
}]
|
|
792
|
-
},
|
|
792
|
+
}, tt = C(() => import("./personalization-container-64f3cd71.js")), nt = {
|
|
793
793
|
name: "Core:Section",
|
|
794
794
|
static: !0,
|
|
795
795
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -828,7 +828,7 @@ const qe = () => `
|
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
}]
|
|
831
|
-
},
|
|
831
|
+
}, at = {
|
|
832
832
|
name: "Slot",
|
|
833
833
|
isRSC: !0,
|
|
834
834
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -845,7 +845,7 @@ const qe = () => `
|
|
|
845
845
|
builderContext: !0,
|
|
846
846
|
builderComponents: !0
|
|
847
847
|
}
|
|
848
|
-
},
|
|
848
|
+
}, it = C(() => import("./slot-26ec2911.js")), ot = {
|
|
849
849
|
name: "Symbol",
|
|
850
850
|
noWrap: !0,
|
|
851
851
|
static: !0,
|
|
@@ -884,7 +884,7 @@ const qe = () => `
|
|
|
884
884
|
builderComponents: !0,
|
|
885
885
|
builderLinkComponent: !0
|
|
886
886
|
}
|
|
887
|
-
},
|
|
887
|
+
}, J = {
|
|
888
888
|
"@type": "@builder.io/sdk:Element",
|
|
889
889
|
responsiveStyles: {
|
|
890
890
|
large: {
|
|
@@ -906,7 +906,7 @@ const qe = () => `
|
|
|
906
906
|
text: "New tab"
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
},
|
|
909
|
+
}, Q = {
|
|
910
910
|
"@type": "@builder.io/sdk:Element",
|
|
911
911
|
responsiveStyles: {
|
|
912
912
|
large: {
|
|
@@ -922,7 +922,7 @@ const qe = () => `
|
|
|
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 qe = () => `
|
|
|
932
932
|
name: "label",
|
|
933
933
|
type: "uiBlocks",
|
|
934
934
|
hideFromUI: !0,
|
|
935
|
-
defaultValue: [
|
|
935
|
+
defaultValue: [J]
|
|
936
936
|
}, {
|
|
937
937
|
name: "content",
|
|
938
938
|
type: "uiBlocks",
|
|
939
939
|
hideFromUI: !0,
|
|
940
|
-
defaultValue: [
|
|
940
|
+
defaultValue: [Q]
|
|
941
941
|
}],
|
|
942
942
|
defaultValue: [{
|
|
943
943
|
label: [{
|
|
944
|
-
...
|
|
944
|
+
...J,
|
|
945
945
|
component: {
|
|
946
946
|
name: "Text",
|
|
947
947
|
options: {
|
|
@@ -950,7 +950,7 @@ const qe = () => `
|
|
|
950
950
|
}
|
|
951
951
|
}],
|
|
952
952
|
content: [{
|
|
953
|
-
...
|
|
953
|
+
...Q,
|
|
954
954
|
component: {
|
|
955
955
|
name: "Text",
|
|
956
956
|
options: {
|
|
@@ -960,7 +960,7 @@ const qe = () => `
|
|
|
960
960
|
}]
|
|
961
961
|
}, {
|
|
962
962
|
label: [{
|
|
963
|
-
...
|
|
963
|
+
...J,
|
|
964
964
|
component: {
|
|
965
965
|
name: "Text",
|
|
966
966
|
options: {
|
|
@@ -969,7 +969,7 @@ const qe = () => `
|
|
|
969
969
|
}
|
|
970
970
|
}],
|
|
971
971
|
content: [{
|
|
972
|
-
...
|
|
972
|
+
...Q,
|
|
973
973
|
component: {
|
|
974
974
|
name: "Text",
|
|
975
975
|
options: {
|
|
@@ -1025,7 +1025,7 @@ const qe = () => `
|
|
|
1025
1025
|
builderComponents: !0,
|
|
1026
1026
|
builderLinkComponent: !0
|
|
1027
1027
|
}
|
|
1028
|
-
},
|
|
1028
|
+
}, lt = C(() => import("./tabs-f9110171.js")), st = {
|
|
1029
1029
|
shouldReceiveBuilderProps: {},
|
|
1030
1030
|
name: "Text",
|
|
1031
1031
|
static: !0,
|
|
@@ -1044,7 +1044,7 @@ const qe = () => `
|
|
|
1044
1044
|
height: "auto",
|
|
1045
1045
|
textAlign: "center"
|
|
1046
1046
|
}
|
|
1047
|
-
},
|
|
1047
|
+
}, ut = {
|
|
1048
1048
|
name: "Custom Code",
|
|
1049
1049
|
static: !0,
|
|
1050
1050
|
requiredPermissions: ["editCode"],
|
|
@@ -1066,7 +1066,7 @@ const qe = () => `
|
|
|
1066
1066
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1067
1067
|
advanced: !0
|
|
1068
1068
|
}]
|
|
1069
|
-
},
|
|
1069
|
+
}, dt = C(() => import("./custom-code-f7a0f1c1.js")), ct = {
|
|
1070
1070
|
name: "Embed",
|
|
1071
1071
|
static: !0,
|
|
1072
1072
|
inputs: [{
|
|
@@ -1081,7 +1081,7 @@ const qe = () => `
|
|
|
1081
1081
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1082
1082
|
hideFromUI: !0
|
|
1083
1083
|
}]
|
|
1084
|
-
},
|
|
1084
|
+
}, mt = C(() => import("./embed-e4979560.js")), pt = {
|
|
1085
1085
|
name: "Form:Form",
|
|
1086
1086
|
// editableTags: ['builder-form-error']
|
|
1087
1087
|
defaults: {
|
|
@@ -1318,7 +1318,7 @@ const qe = () => `
|
|
|
1318
1318
|
builderComponents: !0,
|
|
1319
1319
|
builderLinkComponent: !0
|
|
1320
1320
|
}
|
|
1321
|
-
},
|
|
1321
|
+
}, ft = C(() => import("./form-30fba682.js")), gt = {
|
|
1322
1322
|
name: "Form:Input",
|
|
1323
1323
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
1324
1324
|
inputs: [
|
|
@@ -1369,7 +1369,7 @@ const qe = () => `
|
|
|
1369
1369
|
borderStyle: "solid",
|
|
1370
1370
|
borderColor: "#ccc"
|
|
1371
1371
|
}
|
|
1372
|
-
},
|
|
1372
|
+
}, ht = C(() => import("./input-e4a9fe0b.js")), bt = {
|
|
1373
1373
|
name: "Form:Select",
|
|
1374
1374
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
1375
1375
|
defaultStyles: {
|
|
@@ -1411,7 +1411,7 @@ const qe = () => `
|
|
|
1411
1411
|
}],
|
|
1412
1412
|
static: !0,
|
|
1413
1413
|
noWrap: !0
|
|
1414
|
-
},
|
|
1414
|
+
}, yt = C(() => import("./select-c59c9ac6.js")), vt = {
|
|
1415
1415
|
name: "Form:SubmitButton",
|
|
1416
1416
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
1417
1417
|
defaultStyles: {
|
|
@@ -1436,7 +1436,7 @@ const qe = () => `
|
|
|
1436
1436
|
// that only shows if advanced setting is flipped
|
|
1437
1437
|
// TODO: defaultChildren
|
|
1438
1438
|
// canHaveChildren: true,
|
|
1439
|
-
},
|
|
1439
|
+
}, xt = C(() => import("./submit-button-b48361a7.js")), St = {
|
|
1440
1440
|
name: "Form:TextArea",
|
|
1441
1441
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
1442
1442
|
inputs: [{
|
|
@@ -1472,7 +1472,7 @@ const qe = () => `
|
|
|
1472
1472
|
},
|
|
1473
1473
|
static: !0,
|
|
1474
1474
|
noWrap: !0
|
|
1475
|
-
},
|
|
1475
|
+
}, Tt = C(() => import("./textarea-d29025e9.js")), It = {
|
|
1476
1476
|
// friendlyName?
|
|
1477
1477
|
name: "Raw:Img",
|
|
1478
1478
|
hideFromInsertMenu: !0,
|
|
@@ -1481,12 +1481,12 @@ const qe = () => `
|
|
|
1481
1481
|
name: "image",
|
|
1482
1482
|
bubble: !0,
|
|
1483
1483
|
type: "file",
|
|
1484
|
-
allowedFileTypes:
|
|
1484
|
+
allowedFileTypes: G,
|
|
1485
1485
|
required: !0
|
|
1486
1486
|
}],
|
|
1487
1487
|
noWrap: !0,
|
|
1488
1488
|
static: !0
|
|
1489
|
-
},
|
|
1489
|
+
}, kt = C(() => import("./img-3bb375bf.js")), Ct = {
|
|
1490
1490
|
name: "Video",
|
|
1491
1491
|
canHaveChildren: !0,
|
|
1492
1492
|
defaultStyles: {
|
|
@@ -1497,14 +1497,14 @@ const qe = () => `
|
|
|
1497
1497
|
inputs: [{
|
|
1498
1498
|
name: "video",
|
|
1499
1499
|
type: "file",
|
|
1500
|
-
allowedFileTypes:
|
|
1500
|
+
allowedFileTypes: Xe,
|
|
1501
1501
|
bubble: !0,
|
|
1502
1502
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
1503
1503
|
required: !0
|
|
1504
1504
|
}, {
|
|
1505
1505
|
name: "posterImage",
|
|
1506
1506
|
type: "file",
|
|
1507
|
-
allowedFileTypes:
|
|
1507
|
+
allowedFileTypes: G,
|
|
1508
1508
|
helperText: "Image to show before the video plays"
|
|
1509
1509
|
}, {
|
|
1510
1510
|
name: "autoPlay",
|
|
@@ -1570,67 +1570,67 @@ const qe = () => `
|
|
|
1570
1570
|
shouldReceiveBuilderProps: {
|
|
1571
1571
|
builderBlock: !0
|
|
1572
1572
|
}
|
|
1573
|
-
},
|
|
1574
|
-
component: rt,
|
|
1575
|
-
...ot
|
|
1576
|
-
}, {
|
|
1577
|
-
component: lt,
|
|
1578
|
-
...st
|
|
1579
|
-
}, {
|
|
1573
|
+
}, wt = () => [{
|
|
1580
1574
|
component: dt,
|
|
1581
1575
|
...ut
|
|
1582
1576
|
}, {
|
|
1583
1577
|
component: mt,
|
|
1584
1578
|
...ct
|
|
1585
|
-
}, {
|
|
1586
|
-
component: ht,
|
|
1587
|
-
...gt
|
|
1588
1579
|
}, {
|
|
1589
1580
|
component: ft,
|
|
1590
1581
|
...pt
|
|
1591
1582
|
}, {
|
|
1592
|
-
component:
|
|
1593
|
-
...
|
|
1583
|
+
component: ht,
|
|
1584
|
+
...gt
|
|
1594
1585
|
}, {
|
|
1595
1586
|
component: xt,
|
|
1596
1587
|
...vt
|
|
1597
1588
|
}, {
|
|
1598
|
-
component:
|
|
1599
|
-
...
|
|
1600
|
-
}], ee = () => [{
|
|
1601
|
-
component: ke,
|
|
1602
|
-
...Me
|
|
1589
|
+
component: yt,
|
|
1590
|
+
...bt
|
|
1603
1591
|
}, {
|
|
1604
|
-
component:
|
|
1605
|
-
...
|
|
1592
|
+
component: Tt,
|
|
1593
|
+
...St
|
|
1606
1594
|
}, {
|
|
1607
|
-
component:
|
|
1608
|
-
...
|
|
1595
|
+
component: kt,
|
|
1596
|
+
...It
|
|
1609
1597
|
}, {
|
|
1610
1598
|
component: Ve,
|
|
1599
|
+
...Ct
|
|
1600
|
+
}], ie = () => [{
|
|
1601
|
+
component: Ee,
|
|
1611
1602
|
...Qe
|
|
1612
1603
|
}, {
|
|
1613
|
-
component:
|
|
1614
|
-
...
|
|
1604
|
+
component: Re,
|
|
1605
|
+
...Ye
|
|
1606
|
+
}, {
|
|
1607
|
+
component: Ae,
|
|
1608
|
+
...Ge
|
|
1615
1609
|
}, {
|
|
1616
|
-
component:
|
|
1610
|
+
component: De,
|
|
1617
1611
|
...Ze
|
|
1618
1612
|
}, {
|
|
1619
|
-
component:
|
|
1620
|
-
...
|
|
1613
|
+
component: Pe,
|
|
1614
|
+
...nt
|
|
1621
1615
|
}, {
|
|
1622
|
-
component:
|
|
1623
|
-
...
|
|
1624
|
-
},
|
|
1625
|
-
component:
|
|
1626
|
-
...
|
|
1616
|
+
component: it,
|
|
1617
|
+
...at
|
|
1618
|
+
}, {
|
|
1619
|
+
component: Fe,
|
|
1620
|
+
...ot
|
|
1621
|
+
}, {
|
|
1622
|
+
component: We,
|
|
1623
|
+
...st
|
|
1624
|
+
}, ...fe.includes(F) ? [{
|
|
1625
|
+
component: tt,
|
|
1626
|
+
...et
|
|
1627
1627
|
}] : [], {
|
|
1628
|
-
component:
|
|
1629
|
-
...
|
|
1628
|
+
component: lt,
|
|
1629
|
+
...rt
|
|
1630
1630
|
}, {
|
|
1631
|
-
component:
|
|
1632
|
-
...
|
|
1633
|
-
}, ...
|
|
1631
|
+
component: Je,
|
|
1632
|
+
...ze
|
|
1633
|
+
}, ...wt()], Vt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
1634
1634
|
function getAndSetVariantId() {
|
|
1635
1635
|
function setCookie(name, value, days) {
|
|
1636
1636
|
let expires = '';
|
|
@@ -1689,7 +1689,7 @@ const qe = () => `
|
|
|
1689
1689
|
}).join('');
|
|
1690
1690
|
styleEl.innerHTML = newStyleStr;
|
|
1691
1691
|
}
|
|
1692
|
-
}`,
|
|
1692
|
+
}`, Et = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1693
1693
|
if (!navigator.cookieEnabled) {
|
|
1694
1694
|
return;
|
|
1695
1695
|
}
|
|
@@ -1723,27 +1723,27 @@ const qe = () => `
|
|
|
1723
1723
|
thisScriptEl?.remove();
|
|
1724
1724
|
}
|
|
1725
1725
|
return;
|
|
1726
|
-
}`,
|
|
1726
|
+
}`, he = "builderIoAbTest", be = "builderIoRenderContent", O = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
1727
1727
|
...t,
|
|
1728
1728
|
testVariationId: t.id,
|
|
1729
1729
|
id: e == null ? void 0 : e.id
|
|
1730
|
-
})),
|
|
1730
|
+
})), Rt = ({
|
|
1731
1731
|
canTrack: e,
|
|
1732
1732
|
content: t
|
|
1733
|
-
}) => !(!(
|
|
1734
|
-
window.${
|
|
1735
|
-
window.${
|
|
1736
|
-
`,
|
|
1737
|
-
window.${
|
|
1738
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
1739
|
-
)`,
|
|
1733
|
+
}) => !(!(O(t).length > 0) || !e || L()), At = (e) => e === "react" || e === "reactNative", Dt = F === "angular", ye = At(F), Pt = () => `
|
|
1734
|
+
window.${he} = ${Vt}
|
|
1735
|
+
window.${be} = ${Et}
|
|
1736
|
+
`, Ft = (e, t) => `
|
|
1737
|
+
window.${he}(
|
|
1738
|
+
"${t}",${JSON.stringify(e)}, ${ye}, ${Dt}
|
|
1739
|
+
)`, Wt = ({
|
|
1740
1740
|
contentId: e,
|
|
1741
1741
|
variationId: t
|
|
1742
|
-
}) => `window.${
|
|
1743
|
-
"${t}", "${e}", ${
|
|
1742
|
+
}) => `window.${be}(
|
|
1743
|
+
"${t}", "${e}", ${ye}
|
|
1744
1744
|
)`;
|
|
1745
1745
|
function q(e) {
|
|
1746
|
-
return /* @__PURE__ */
|
|
1746
|
+
return /* @__PURE__ */ S(
|
|
1747
1747
|
"script",
|
|
1748
1748
|
{
|
|
1749
1749
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -1752,10 +1752,10 @@ function q(e) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
);
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function oe(e) {
|
|
1756
1756
|
return Math.round(e * 1e3) / 1e3;
|
|
1757
1757
|
}
|
|
1758
|
-
const
|
|
1758
|
+
const Nt = (e, t, n = !0) => {
|
|
1759
1759
|
if (!(e instanceof HTMLElement))
|
|
1760
1760
|
return null;
|
|
1761
1761
|
let o = n ? e : e.parentElement;
|
|
@@ -1766,37 +1766,37 @@ const Dt = (e, t, n = !0) => {
|
|
|
1766
1766
|
return o;
|
|
1767
1767
|
} while (o = o.parentElement);
|
|
1768
1768
|
return null;
|
|
1769
|
-
},
|
|
1769
|
+
}, $t = (e) => Nt(e, (t) => {
|
|
1770
1770
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1771
1771
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1772
|
-
}),
|
|
1772
|
+
}), re = ({
|
|
1773
1773
|
event: e,
|
|
1774
1774
|
target: t
|
|
1775
1775
|
}) => {
|
|
1776
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top,
|
|
1776
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, l = oe(o / n.width), a = oe(r / n.height);
|
|
1777
1777
|
return {
|
|
1778
|
-
x:
|
|
1779
|
-
y:
|
|
1778
|
+
x: l,
|
|
1779
|
+
y: a
|
|
1780
1780
|
};
|
|
1781
|
-
},
|
|
1782
|
-
const t = e.target, n = t &&
|
|
1781
|
+
}, _t = (e) => {
|
|
1782
|
+
const t = e.target, n = t && $t(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1783
1783
|
return {
|
|
1784
1784
|
targetBuilderElement: o || void 0,
|
|
1785
1785
|
metadata: {
|
|
1786
|
-
targetOffset: t ?
|
|
1786
|
+
targetOffset: t ? re({
|
|
1787
1787
|
event: e,
|
|
1788
1788
|
target: t
|
|
1789
1789
|
}) : void 0,
|
|
1790
|
-
builderTargetOffset: n ?
|
|
1790
|
+
builderTargetOffset: n ? re({
|
|
1791
1791
|
event: e,
|
|
1792
1792
|
target: n
|
|
1793
1793
|
}) : void 0,
|
|
1794
1794
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
1795
1795
|
}
|
|
1796
1796
|
};
|
|
1797
|
-
},
|
|
1798
|
-
var
|
|
1799
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (
|
|
1797
|
+
}, Lt = ["svelte", "qwik", "vue"], le = () => Lt.includes(F) && ($() || ue()), Ut = (e) => {
|
|
1798
|
+
var l, a;
|
|
1799
|
+
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;
|
|
1800
1800
|
let r = "";
|
|
1801
1801
|
if (o && t && n && (r += `
|
|
1802
1802
|
@font-face {
|
|
@@ -1806,29 +1806,29 @@ font-display: fallback;
|
|
|
1806
1806
|
font-weight: 400;
|
|
1807
1807
|
}
|
|
1808
1808
|
`.trim()), e.files)
|
|
1809
|
-
for (const
|
|
1810
|
-
if (!(String(Number(
|
|
1809
|
+
for (const i in e.files) {
|
|
1810
|
+
if (!(String(Number(i)) === i))
|
|
1811
1811
|
continue;
|
|
1812
|
-
const
|
|
1813
|
-
|
|
1812
|
+
const m = e.files[i];
|
|
1813
|
+
m && m !== o && (r += `
|
|
1814
1814
|
@font-face {
|
|
1815
1815
|
font-family: "${t}";
|
|
1816
|
-
src: url('${
|
|
1816
|
+
src: url('${m}') format('woff2');
|
|
1817
1817
|
font-display: fallback;
|
|
1818
|
-
font-weight: ${
|
|
1818
|
+
font-weight: ${i};
|
|
1819
1819
|
}
|
|
1820
1820
|
`.trim());
|
|
1821
1821
|
}
|
|
1822
1822
|
return r;
|
|
1823
|
-
},
|
|
1823
|
+
}, Bt = ({
|
|
1824
1824
|
customFonts: e
|
|
1825
1825
|
}) => {
|
|
1826
1826
|
var t;
|
|
1827
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
1828
|
-
},
|
|
1827
|
+
return ((t = e == null ? void 0 : e.map((n) => Ut(n))) == null ? void 0 : t.join(" ")) || "";
|
|
1828
|
+
}, Ht = ({
|
|
1829
1829
|
cssCode: e,
|
|
1830
1830
|
contentId: t
|
|
1831
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
1831
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ot = `
|
|
1832
1832
|
.builder-button {
|
|
1833
1833
|
all: unset;
|
|
1834
1834
|
}
|
|
@@ -1845,24 +1845,25 @@ font-weight: ${a};
|
|
|
1845
1845
|
text-align: inherit;
|
|
1846
1846
|
font-family: inherit;
|
|
1847
1847
|
}
|
|
1848
|
-
`,
|
|
1849
|
-
function
|
|
1850
|
-
var
|
|
1851
|
-
const t =
|
|
1852
|
-
|
|
1853
|
-
|
|
1848
|
+
`, qt = (e) => e ? "" : Ot, jt = (e) => `variant-${e}`;
|
|
1849
|
+
function Mt(e) {
|
|
1850
|
+
var Z, ee, te;
|
|
1851
|
+
const t = Y(null);
|
|
1852
|
+
k(() => !1);
|
|
1853
|
+
const [n, o] = k(() => null), [r, l] = k(() => "");
|
|
1854
|
+
function a(c) {
|
|
1854
1855
|
var h, b;
|
|
1855
1856
|
const p = {
|
|
1856
1857
|
...e.builderContextSignal.rootState,
|
|
1857
1858
|
...c
|
|
1858
1859
|
};
|
|
1859
|
-
e.builderContextSignal.rootSetState ? (b = (h = e.builderContextSignal).rootSetState) == null || b.call(h, p) : e.setBuilderContextSignal((
|
|
1860
|
-
...
|
|
1860
|
+
e.builderContextSignal.rootSetState ? (b = (h = e.builderContextSignal).rootSetState) == null || b.call(h, p) : e.setBuilderContextSignal((f) => ({
|
|
1861
|
+
...f,
|
|
1861
1862
|
rootState: p
|
|
1862
1863
|
}));
|
|
1863
1864
|
}
|
|
1864
|
-
function
|
|
1865
|
-
var h, b,
|
|
1865
|
+
function i(c) {
|
|
1866
|
+
var h, b, f, v, P;
|
|
1866
1867
|
const p = {
|
|
1867
1868
|
...e.builderContextSignal.content,
|
|
1868
1869
|
...c,
|
|
@@ -1873,7 +1874,7 @@ function Ht(e) {
|
|
|
1873
1874
|
meta: {
|
|
1874
1875
|
...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
|
|
1875
1876
|
...c == null ? void 0 : c.meta,
|
|
1876
|
-
breakpoints: ((
|
|
1877
|
+
breakpoints: ((f = c == null ? void 0 : c.meta) == null ? void 0 : f.breakpoints) || ((P = (v = e.builderContextSignal.content) == null ? void 0 : v.meta) == null ? void 0 : P.breakpoints)
|
|
1877
1878
|
}
|
|
1878
1879
|
};
|
|
1879
1880
|
e.setBuilderContextSignal((_) => ({
|
|
@@ -1881,118 +1882,120 @@ function Ht(e) {
|
|
|
1881
1882
|
content: p
|
|
1882
1883
|
}));
|
|
1883
1884
|
}
|
|
1884
|
-
function
|
|
1885
|
+
function u() {
|
|
1885
1886
|
return e.showContent ? {} : {
|
|
1886
1887
|
hidden: !0,
|
|
1887
1888
|
"aria-hidden": !0
|
|
1888
1889
|
};
|
|
1889
1890
|
}
|
|
1890
|
-
const [
|
|
1891
|
+
const [m, g] = k(
|
|
1891
1892
|
() => e.contentWrapper || "div"
|
|
1892
1893
|
);
|
|
1893
|
-
function
|
|
1894
|
-
return
|
|
1894
|
+
function R(c) {
|
|
1895
|
+
return Ie({
|
|
1895
1896
|
model: e.model,
|
|
1896
1897
|
trustedHosts: e.trustedHosts,
|
|
1897
1898
|
callbacks: {
|
|
1898
1899
|
configureSdk: (p) => {
|
|
1899
|
-
var
|
|
1900
|
+
var f;
|
|
1900
1901
|
const { breakpoints: h, contentId: b } = p;
|
|
1901
|
-
!b || b !== ((
|
|
1902
|
+
!b || b !== ((f = e.builderContextSignal.content) == null ? void 0 : f.id) || h && i({
|
|
1902
1903
|
meta: {
|
|
1903
1904
|
breakpoints: h
|
|
1904
1905
|
}
|
|
1905
1906
|
});
|
|
1906
1907
|
},
|
|
1907
1908
|
animation: (p) => {
|
|
1908
|
-
|
|
1909
|
+
$e(p);
|
|
1909
1910
|
},
|
|
1910
1911
|
contentUpdate: (p) => {
|
|
1911
|
-
|
|
1912
|
+
i(p);
|
|
1912
1913
|
},
|
|
1913
1914
|
stateUpdate: (p) => {
|
|
1914
|
-
|
|
1915
|
+
a(p);
|
|
1915
1916
|
}
|
|
1916
1917
|
}
|
|
1917
1918
|
})(c);
|
|
1918
1919
|
}
|
|
1919
|
-
const [
|
|
1920
|
-
function
|
|
1920
|
+
const [T, A] = k(() => ({})), [s, d] = k(() => ({})), [D, U] = k(() => !1);
|
|
1921
|
+
function I(c) {
|
|
1921
1922
|
var p, h;
|
|
1922
1923
|
if (e.builderContextSignal.content) {
|
|
1923
|
-
const b = (p = e.builderContextSignal.content) == null ? void 0 : p.testVariationId,
|
|
1924
|
-
|
|
1924
|
+
const b = (p = e.builderContextSignal.content) == null ? void 0 : p.testVariationId, f = (h = e.builderContextSignal.content) == null ? void 0 : h.id;
|
|
1925
|
+
ne({
|
|
1925
1926
|
apiHost: e.apiHost,
|
|
1926
1927
|
type: "click",
|
|
1927
|
-
canTrack:
|
|
1928
|
-
contentId:
|
|
1928
|
+
canTrack: j(e.canTrack),
|
|
1929
|
+
contentId: f,
|
|
1929
1930
|
apiKey: e.apiKey,
|
|
1930
|
-
variationId: b !==
|
|
1931
|
-
...
|
|
1932
|
-
unique: !
|
|
1931
|
+
variationId: b !== f ? b : void 0,
|
|
1932
|
+
..._t(c),
|
|
1933
|
+
unique: !D
|
|
1933
1934
|
});
|
|
1934
1935
|
}
|
|
1935
|
-
|
|
1936
|
+
D || U(!0);
|
|
1936
1937
|
}
|
|
1937
|
-
function
|
|
1938
|
+
function w() {
|
|
1938
1939
|
var p, h, b;
|
|
1939
1940
|
const c = (b = (h = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : h.httpRequests) != null ? b : {};
|
|
1940
1941
|
Object.entries(c).forEach(
|
|
1941
|
-
([
|
|
1942
|
-
if (!
|
|
1942
|
+
([f, v]) => {
|
|
1943
|
+
if (!v)
|
|
1943
1944
|
return;
|
|
1944
|
-
const
|
|
1945
|
-
if (
|
|
1945
|
+
const P = typeof v == "object" && v["@type"] === "@builder.io/core:Request";
|
|
1946
|
+
if (s[f] || T[f] && !$())
|
|
1946
1947
|
return;
|
|
1947
|
-
const _ =
|
|
1948
|
-
|
|
1949
|
-
const
|
|
1948
|
+
const _ = P ? v.request.url : v;
|
|
1949
|
+
s[f] = !0;
|
|
1950
|
+
const x = _.replace(
|
|
1950
1951
|
/{{([^}]+)}}/g,
|
|
1951
|
-
(
|
|
1952
|
-
|
|
1953
|
-
code:
|
|
1952
|
+
(E, B) => String(
|
|
1953
|
+
de({
|
|
1954
|
+
code: B,
|
|
1954
1955
|
context: e.context || {},
|
|
1955
1956
|
localState: void 0,
|
|
1956
1957
|
rootState: e.builderContextSignal.rootState,
|
|
1957
1958
|
rootSetState: e.builderContextSignal.rootSetState
|
|
1958
1959
|
})
|
|
1959
1960
|
)
|
|
1960
|
-
), y =
|
|
1961
|
-
url:
|
|
1962
|
-
method:
|
|
1963
|
-
headers:
|
|
1964
|
-
body:
|
|
1961
|
+
), y = P ? {
|
|
1962
|
+
url: x,
|
|
1963
|
+
method: v.request.method,
|
|
1964
|
+
headers: v.request.headers,
|
|
1965
|
+
body: v.request.body
|
|
1965
1966
|
} : {
|
|
1966
|
-
url:
|
|
1967
|
+
url: x,
|
|
1967
1968
|
method: "GET"
|
|
1968
1969
|
};
|
|
1969
|
-
|
|
1970
|
+
ke(JSON.stringify(y));
|
|
1971
|
+
const W = {
|
|
1970
1972
|
method: y.method,
|
|
1971
1973
|
headers: y.headers,
|
|
1972
1974
|
body: y.body
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1975
|
+
};
|
|
1976
|
+
y.method === "GET" && delete W.body, fetch(y.url, W).then((E) => E.json()).then((E) => {
|
|
1977
|
+
a({
|
|
1978
|
+
[f]: E
|
|
1979
|
+
}), T[f] = !0;
|
|
1980
|
+
}).catch((E) => {
|
|
1978
1981
|
console.error(
|
|
1979
1982
|
"error fetching dynamic data",
|
|
1980
|
-
JSON.stringify(
|
|
1981
|
-
|
|
1983
|
+
JSON.stringify(v),
|
|
1984
|
+
E
|
|
1982
1985
|
);
|
|
1983
1986
|
}).finally(() => {
|
|
1984
|
-
|
|
1987
|
+
s[f] = !1;
|
|
1985
1988
|
});
|
|
1986
1989
|
}
|
|
1987
1990
|
);
|
|
1988
1991
|
}
|
|
1989
|
-
function
|
|
1990
|
-
|
|
1992
|
+
function V() {
|
|
1993
|
+
$() && window.dispatchEvent(
|
|
1991
1994
|
new CustomEvent(
|
|
1992
1995
|
"builder:component:stateChange",
|
|
1993
1996
|
{
|
|
1994
1997
|
detail: {
|
|
1995
|
-
state:
|
|
1998
|
+
state: _e(e.builderContextSignal.rootState),
|
|
1996
1999
|
ref: {
|
|
1997
2000
|
name: e.model
|
|
1998
2001
|
}
|
|
@@ -2001,11 +2004,11 @@ function Ht(e) {
|
|
|
2001
2004
|
)
|
|
2002
2005
|
);
|
|
2003
2006
|
}
|
|
2004
|
-
const
|
|
2005
|
-
return
|
|
2006
|
-
var c, p, h, b,
|
|
2007
|
-
if (
|
|
2008
|
-
|
|
2007
|
+
const X = Y(!1);
|
|
2008
|
+
return X.current || (w(), V(), X.current = !0), N(() => {
|
|
2009
|
+
var c, p, h, b, f;
|
|
2010
|
+
if (L()) {
|
|
2011
|
+
$() && !e.isNestedRender && (window.addEventListener("message", R), ve({
|
|
2009
2012
|
...e.locale ? {
|
|
2010
2013
|
locale: e.locale
|
|
2011
2014
|
} : {},
|
|
@@ -2019,98 +2022,106 @@ function Ht(e) {
|
|
|
2019
2022
|
apiKey: e.apiKey
|
|
2020
2023
|
}), Object.values(
|
|
2021
2024
|
e.builderContextSignal.componentInfos
|
|
2022
|
-
).forEach((
|
|
2023
|
-
var y,
|
|
2024
|
-
if (!((y =
|
|
2025
|
-
const
|
|
2026
|
-
(
|
|
2025
|
+
).forEach((x) => {
|
|
2026
|
+
var y, W;
|
|
2027
|
+
if (!((y = x.models) != null && y.length) || x.models.includes(e.model)) {
|
|
2028
|
+
const E = xe(x);
|
|
2029
|
+
(W = window.parent) == null || W.postMessage(E, "*");
|
|
2027
2030
|
}
|
|
2028
2031
|
}), window.addEventListener(
|
|
2029
2032
|
"builder:component:stateChangeListenerActivated",
|
|
2030
|
-
|
|
2033
|
+
V
|
|
2031
2034
|
));
|
|
2032
|
-
const
|
|
2035
|
+
const v = e.builderContextSignal.content && j(e.canTrack), P = Se({
|
|
2033
2036
|
name: `builder.tests.${(p = e.builderContextSignal.content) == null ? void 0 : p.id}`,
|
|
2034
2037
|
canTrack: !0
|
|
2035
2038
|
}), _ = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId;
|
|
2036
|
-
if (
|
|
2037
|
-
const
|
|
2038
|
-
|
|
2039
|
+
if (v && _ === P) {
|
|
2040
|
+
const x = (b = e.builderContextSignal.content) == null ? void 0 : b.id, y = e.apiKey;
|
|
2041
|
+
ne({
|
|
2039
2042
|
apiHost: e.apiHost,
|
|
2040
2043
|
type: "impression",
|
|
2041
2044
|
canTrack: !0,
|
|
2042
|
-
contentId:
|
|
2045
|
+
contentId: x,
|
|
2043
2046
|
apiKey: y,
|
|
2044
|
-
variationId:
|
|
2047
|
+
variationId: P !== x ? P : void 0
|
|
2045
2048
|
});
|
|
2046
2049
|
}
|
|
2047
|
-
if (
|
|
2048
|
-
const
|
|
2050
|
+
if (ue() && !$()) {
|
|
2051
|
+
const x = new URL(location.href).searchParams, y = x.get("builder.preview"), W = x.get(
|
|
2049
2052
|
`builder.overrides.${y}`
|
|
2050
|
-
),
|
|
2051
|
-
(y === "BUILDER_STUDIO" || y === e.model &&
|
|
2053
|
+
), E = x.get("apiKey") || x.get("builder.space");
|
|
2054
|
+
(y === "BUILDER_STUDIO" || y === e.model && E === e.apiKey && (!e.content || W === e.content.id)) && Te({
|
|
2052
2055
|
model: e.model,
|
|
2053
2056
|
apiKey: e.apiKey,
|
|
2054
2057
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
2055
|
-
...y === "BUILDER_STUDIO" && ((
|
|
2058
|
+
...y === "BUILDER_STUDIO" && ((f = e.context) != null && f.symbolId) ? {
|
|
2056
2059
|
query: {
|
|
2057
2060
|
id: e.context.symbolId
|
|
2058
2061
|
}
|
|
2059
2062
|
} : {}
|
|
2060
|
-
}).then((
|
|
2061
|
-
|
|
2063
|
+
}).then((B) => {
|
|
2064
|
+
B && i(B);
|
|
2062
2065
|
});
|
|
2063
2066
|
}
|
|
2064
2067
|
}
|
|
2065
|
-
}, []),
|
|
2066
|
-
e.content &&
|
|
2067
|
-
}, [e.content]),
|
|
2068
|
-
|
|
2069
|
-
}, [e.builderContextSignal.rootState]),
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
}
|
|
2075
|
-
}, [e.
|
|
2076
|
-
|
|
2068
|
+
}, []), N(() => {
|
|
2069
|
+
e.content && i(e.content);
|
|
2070
|
+
}, [e.content]), N(() => {
|
|
2071
|
+
V();
|
|
2072
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
2073
|
+
if (e.data) {
|
|
2074
|
+
if (n === e.data)
|
|
2075
|
+
return;
|
|
2076
|
+
a(e.data), o(e.data);
|
|
2077
|
+
}
|
|
2078
|
+
}, [e.data]), N(() => {
|
|
2079
|
+
if (e.locale) {
|
|
2080
|
+
if (r === e.locale)
|
|
2081
|
+
return;
|
|
2082
|
+
a({
|
|
2083
|
+
locale: e.locale
|
|
2084
|
+
}), l(e.locale);
|
|
2085
|
+
}
|
|
2086
|
+
}, [e.locale]), N(() => () => {
|
|
2087
|
+
L() && (window.removeEventListener("message", R), window.removeEventListener(
|
|
2077
2088
|
"builder:component:stateChangeListenerActivated",
|
|
2078
|
-
|
|
2089
|
+
V
|
|
2079
2090
|
));
|
|
2080
|
-
}, []), /* @__PURE__ */
|
|
2081
|
-
|
|
2091
|
+
}, []), /* @__PURE__ */ S(Ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || le() ? /* @__PURE__ */ S(
|
|
2092
|
+
m,
|
|
2082
2093
|
{
|
|
2083
2094
|
ref: t,
|
|
2084
|
-
onClick: (c) =>
|
|
2085
|
-
"builder-content-id": (
|
|
2095
|
+
onClick: (c) => I(c),
|
|
2096
|
+
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2086
2097
|
"builder-model": e.model,
|
|
2087
|
-
className:
|
|
2088
|
-
((
|
|
2098
|
+
className: jt(
|
|
2099
|
+
((ee = e.content) == null ? void 0 : ee.testVariationId) || ((te = e.content) == null ? void 0 : te.id)
|
|
2089
2100
|
),
|
|
2090
2101
|
style: {
|
|
2091
|
-
display: !e.builderContextSignal.content &&
|
|
2102
|
+
display: !e.builderContextSignal.content && le() ? "none" : void 0
|
|
2092
2103
|
},
|
|
2093
|
-
...
|
|
2104
|
+
...u(),
|
|
2094
2105
|
...e.contentWrapperProps,
|
|
2095
2106
|
children: e.children
|
|
2096
2107
|
}
|
|
2097
2108
|
) : null });
|
|
2098
2109
|
}
|
|
2099
|
-
function
|
|
2100
|
-
const [t, n] =
|
|
2110
|
+
function Kt(e) {
|
|
2111
|
+
const [t, n] = k(
|
|
2101
2112
|
() => `
|
|
2102
|
-
${
|
|
2113
|
+
${Ht({
|
|
2103
2114
|
cssCode: e.cssCode,
|
|
2104
2115
|
contentId: e.contentId
|
|
2105
2116
|
})}
|
|
2106
|
-
${
|
|
2117
|
+
${Bt({
|
|
2107
2118
|
customFonts: e.customFonts
|
|
2108
2119
|
})}
|
|
2109
|
-
${
|
|
2120
|
+
${qt(e.isNestedRender)}
|
|
2110
2121
|
`.trim()
|
|
2111
2122
|
);
|
|
2112
|
-
return /* @__PURE__ */
|
|
2113
|
-
|
|
2123
|
+
return /* @__PURE__ */ S(
|
|
2124
|
+
ce,
|
|
2114
2125
|
{
|
|
2115
2126
|
id: "builderio-content",
|
|
2116
2127
|
styles: t,
|
|
@@ -2118,15 +2129,15 @@ ${Ut(e.isNestedRender)}
|
|
|
2118
2129
|
}
|
|
2119
2130
|
);
|
|
2120
2131
|
}
|
|
2121
|
-
const
|
|
2132
|
+
const zt = ({
|
|
2122
2133
|
content: e,
|
|
2123
2134
|
data: t,
|
|
2124
2135
|
locale: n
|
|
2125
2136
|
}) => {
|
|
2126
|
-
var
|
|
2127
|
-
const o = {}, r = ((
|
|
2128
|
-
return (
|
|
2129
|
-
|
|
2137
|
+
var l, a, i;
|
|
2138
|
+
const o = {}, r = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
|
|
2139
|
+
return (i = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || i.forEach((u) => {
|
|
2140
|
+
u.name && u.defaultValue !== void 0 && (o[u.name] = u.defaultValue);
|
|
2130
2141
|
}), {
|
|
2131
2142
|
...o,
|
|
2132
2143
|
...r,
|
|
@@ -2135,7 +2146,7 @@ const Ot = ({
|
|
|
2135
2146
|
locale: n
|
|
2136
2147
|
} : {}
|
|
2137
2148
|
};
|
|
2138
|
-
},
|
|
2149
|
+
}, Jt = ({
|
|
2139
2150
|
content: e,
|
|
2140
2151
|
data: t
|
|
2141
2152
|
}) => e ? {
|
|
@@ -2146,46 +2157,46 @@ const Ot = ({
|
|
|
2146
2157
|
},
|
|
2147
2158
|
meta: e == null ? void 0 : e.meta
|
|
2148
2159
|
} : void 0;
|
|
2149
|
-
function
|
|
2150
|
-
var
|
|
2151
|
-
const [t, n] =
|
|
2160
|
+
function se(e) {
|
|
2161
|
+
var m, g, R, T, A, s, d, D, U;
|
|
2162
|
+
const [t, n] = k(
|
|
2152
2163
|
() => {
|
|
2153
|
-
var
|
|
2154
|
-
return
|
|
2164
|
+
var I, w;
|
|
2165
|
+
return Wt({
|
|
2155
2166
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2156
|
-
variationId: (
|
|
2167
|
+
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
2157
2168
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2158
|
-
contentId: (
|
|
2169
|
+
contentId: (w = e.content) == null ? void 0 : w.id
|
|
2159
2170
|
});
|
|
2160
2171
|
}
|
|
2161
2172
|
);
|
|
2162
|
-
function o(
|
|
2163
|
-
|
|
2164
|
-
...
|
|
2165
|
-
rootState:
|
|
2173
|
+
function o(I) {
|
|
2174
|
+
i((w) => ({
|
|
2175
|
+
...w,
|
|
2176
|
+
rootState: I
|
|
2166
2177
|
}));
|
|
2167
2178
|
}
|
|
2168
|
-
const [r,
|
|
2179
|
+
const [r, l] = k(
|
|
2169
2180
|
() => [
|
|
2170
|
-
...
|
|
2181
|
+
...ie(),
|
|
2171
2182
|
...e.customComponents || []
|
|
2172
2183
|
].reduce(
|
|
2173
|
-
(
|
|
2174
|
-
...
|
|
2175
|
-
[
|
|
2176
|
-
component:
|
|
2177
|
-
...
|
|
2184
|
+
(I, { component: w, ...V }) => ({
|
|
2185
|
+
...I,
|
|
2186
|
+
[V.name]: {
|
|
2187
|
+
component: w,
|
|
2188
|
+
...ae(V)
|
|
2178
2189
|
}
|
|
2179
2190
|
}),
|
|
2180
2191
|
{}
|
|
2181
2192
|
)
|
|
2182
|
-
), [
|
|
2183
|
-
content:
|
|
2193
|
+
), [a, i] = k(() => ({
|
|
2194
|
+
content: Jt({
|
|
2184
2195
|
content: e.content,
|
|
2185
2196
|
data: e.data
|
|
2186
2197
|
}),
|
|
2187
2198
|
localState: void 0,
|
|
2188
|
-
rootState:
|
|
2199
|
+
rootState: zt({
|
|
2189
2200
|
content: e.content,
|
|
2190
2201
|
data: e.data,
|
|
2191
2202
|
locale: e.locale
|
|
@@ -2196,12 +2207,12 @@ function ie(e) {
|
|
|
2196
2207
|
apiKey: e.apiKey,
|
|
2197
2208
|
apiVersion: e.apiVersion,
|
|
2198
2209
|
componentInfos: [
|
|
2199
|
-
...
|
|
2210
|
+
...ie(),
|
|
2200
2211
|
...e.customComponents || []
|
|
2201
2212
|
].reduce(
|
|
2202
|
-
(
|
|
2203
|
-
...
|
|
2204
|
-
[
|
|
2213
|
+
(I, { component: w, ...V }) => ({
|
|
2214
|
+
...I,
|
|
2215
|
+
[V.name]: ae(V)
|
|
2205
2216
|
}),
|
|
2206
2217
|
{}
|
|
2207
2218
|
),
|
|
@@ -2210,31 +2221,31 @@ function ie(e) {
|
|
|
2210
2221
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
2211
2222
|
nonce: e.nonce || "",
|
|
2212
2223
|
model: e.model
|
|
2213
|
-
})),
|
|
2214
|
-
if (!
|
|
2215
|
-
e.apiKey ||
|
|
2224
|
+
})), u = Y(!1);
|
|
2225
|
+
if (!u.current) {
|
|
2226
|
+
e.apiKey || Ce.error(
|
|
2216
2227
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2217
2228
|
);
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2220
|
-
code:
|
|
2229
|
+
const I = (g = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : g.jsCode;
|
|
2230
|
+
I && de({
|
|
2231
|
+
code: I,
|
|
2221
2232
|
context: e.context || {},
|
|
2222
2233
|
localState: void 0,
|
|
2223
|
-
rootState:
|
|
2224
|
-
rootSetState: (
|
|
2225
|
-
Object.assign(
|
|
2234
|
+
rootState: a.rootState,
|
|
2235
|
+
rootSetState: (w) => {
|
|
2236
|
+
Object.assign(a.rootState, w);
|
|
2226
2237
|
},
|
|
2227
2238
|
isExpression: !1
|
|
2228
|
-
}),
|
|
2239
|
+
}), u.current = !0;
|
|
2229
2240
|
}
|
|
2230
|
-
return /* @__PURE__ */
|
|
2231
|
-
|
|
2241
|
+
return /* @__PURE__ */ S(
|
|
2242
|
+
Le.Provider,
|
|
2232
2243
|
{
|
|
2233
2244
|
value: {
|
|
2234
2245
|
registeredComponents: r
|
|
2235
2246
|
},
|
|
2236
|
-
children: /* @__PURE__ */
|
|
2237
|
-
|
|
2247
|
+
children: /* @__PURE__ */ H(
|
|
2248
|
+
Mt,
|
|
2238
2249
|
{
|
|
2239
2250
|
apiHost: e.apiHost,
|
|
2240
2251
|
nonce: e.nonce,
|
|
@@ -2247,14 +2258,14 @@ function ie(e) {
|
|
|
2247
2258
|
locale: e.locale,
|
|
2248
2259
|
enrich: e.enrich,
|
|
2249
2260
|
showContent: e.showContent,
|
|
2250
|
-
builderContextSignal:
|
|
2261
|
+
builderContextSignal: a,
|
|
2251
2262
|
contentWrapper: e.contentWrapper,
|
|
2252
2263
|
contentWrapperProps: e.contentWrapperProps,
|
|
2253
2264
|
trustedHosts: e.trustedHosts,
|
|
2254
2265
|
isNestedRender: e.isNestedRender,
|
|
2255
|
-
setBuilderContextSignal:
|
|
2266
|
+
setBuilderContextSignal: i,
|
|
2256
2267
|
children: [
|
|
2257
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
2268
|
+
e.isSsrAbTest ? /* @__PURE__ */ S(
|
|
2258
2269
|
q,
|
|
2259
2270
|
{
|
|
2260
2271
|
id: "builderio-variant-visibility",
|
|
@@ -2262,21 +2273,21 @@ function ie(e) {
|
|
|
2262
2273
|
nonce: e.nonce || ""
|
|
2263
2274
|
}
|
|
2264
2275
|
) : null,
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
|
|
2276
|
+
/* @__PURE__ */ S(
|
|
2277
|
+
Kt,
|
|
2267
2278
|
{
|
|
2268
2279
|
nonce: e.nonce || "",
|
|
2269
2280
|
isNestedRender: e.isNestedRender,
|
|
2270
|
-
contentId: (
|
|
2271
|
-
cssCode: (
|
|
2272
|
-
customFonts: (
|
|
2281
|
+
contentId: (R = a.content) == null ? void 0 : R.id,
|
|
2282
|
+
cssCode: (A = (T = a.content) == null ? void 0 : T.data) == null ? void 0 : A.cssCode,
|
|
2283
|
+
customFonts: (d = (s = a.content) == null ? void 0 : s.data) == null ? void 0 : d.customFonts
|
|
2273
2284
|
}
|
|
2274
2285
|
),
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
|
|
2286
|
+
/* @__PURE__ */ S(
|
|
2287
|
+
Ue,
|
|
2277
2288
|
{
|
|
2278
|
-
blocks: (
|
|
2279
|
-
context:
|
|
2289
|
+
blocks: (U = (D = a.content) == null ? void 0 : D.data) == null ? void 0 : U.blocks,
|
|
2290
|
+
context: a,
|
|
2280
2291
|
registeredComponents: r,
|
|
2281
2292
|
linkComponent: e.linkComponent
|
|
2282
2293
|
}
|
|
@@ -2287,67 +2298,67 @@ function ie(e) {
|
|
|
2287
2298
|
}
|
|
2288
2299
|
);
|
|
2289
2300
|
}
|
|
2290
|
-
function
|
|
2291
|
-
var
|
|
2292
|
-
const [t, n] =
|
|
2293
|
-
() =>
|
|
2294
|
-
canTrack:
|
|
2301
|
+
function Qt(e) {
|
|
2302
|
+
var a;
|
|
2303
|
+
const [t, n] = k(
|
|
2304
|
+
() => Rt({
|
|
2305
|
+
canTrack: j(e.canTrack),
|
|
2295
2306
|
content: e.content
|
|
2296
2307
|
})
|
|
2297
2308
|
);
|
|
2298
2309
|
function o() {
|
|
2299
|
-
var
|
|
2300
|
-
return
|
|
2301
|
-
|
|
2302
|
-
id:
|
|
2303
|
-
testRatio:
|
|
2310
|
+
var i;
|
|
2311
|
+
return Ft(
|
|
2312
|
+
O(e.content).map((u) => ({
|
|
2313
|
+
id: u.testVariationId,
|
|
2314
|
+
testRatio: u.testRatio
|
|
2304
2315
|
})),
|
|
2305
|
-
((
|
|
2316
|
+
((i = e.content) == null ? void 0 : i.id) || ""
|
|
2306
2317
|
);
|
|
2307
2318
|
}
|
|
2308
2319
|
function r() {
|
|
2309
|
-
return
|
|
2320
|
+
return O(e.content).map((i) => `.variant-${i.testVariationId} { display: none; } `).join("");
|
|
2310
2321
|
}
|
|
2311
|
-
function
|
|
2312
|
-
var
|
|
2322
|
+
function l() {
|
|
2323
|
+
var i;
|
|
2313
2324
|
return t ? {
|
|
2314
2325
|
...e.content,
|
|
2315
|
-
testVariationId: (
|
|
2316
|
-
} :
|
|
2326
|
+
testVariationId: (i = e.content) == null ? void 0 : i.id
|
|
2327
|
+
} : we({
|
|
2317
2328
|
item: e.content,
|
|
2318
|
-
canTrack:
|
|
2329
|
+
canTrack: j(e.canTrack)
|
|
2319
2330
|
});
|
|
2320
2331
|
}
|
|
2321
|
-
return
|
|
2322
|
-
}, []), /* @__PURE__ */
|
|
2323
|
-
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */
|
|
2324
|
-
/* @__PURE__ */
|
|
2332
|
+
return N(() => {
|
|
2333
|
+
}, []), /* @__PURE__ */ H(M, { children: [
|
|
2334
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ H(M, { children: [
|
|
2335
|
+
/* @__PURE__ */ S(
|
|
2325
2336
|
q,
|
|
2326
2337
|
{
|
|
2327
2338
|
id: "builderio-init-variants-fns",
|
|
2328
|
-
scriptStr:
|
|
2339
|
+
scriptStr: Pt(),
|
|
2329
2340
|
nonce: e.nonce || ""
|
|
2330
2341
|
}
|
|
2331
2342
|
),
|
|
2332
|
-
|
|
2343
|
+
fe.includes(F) ? /* @__PURE__ */ S(
|
|
2333
2344
|
q,
|
|
2334
2345
|
{
|
|
2335
2346
|
id: "builderio-init-personalization-variants-fns",
|
|
2336
2347
|
nonce: e.nonce || "",
|
|
2337
|
-
scriptStr:
|
|
2348
|
+
scriptStr: Ke()
|
|
2338
2349
|
}
|
|
2339
2350
|
) : null
|
|
2340
2351
|
] }) : null,
|
|
2341
|
-
t ? /* @__PURE__ */
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
|
|
2352
|
+
t ? /* @__PURE__ */ H(M, { children: [
|
|
2353
|
+
/* @__PURE__ */ S(
|
|
2354
|
+
ce,
|
|
2344
2355
|
{
|
|
2345
2356
|
id: "builderio-variants",
|
|
2346
2357
|
styles: r(),
|
|
2347
2358
|
nonce: e.nonce || ""
|
|
2348
2359
|
}
|
|
2349
2360
|
),
|
|
2350
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ S(
|
|
2351
2362
|
q,
|
|
2352
2363
|
{
|
|
2353
2364
|
id: "builderio-variants-visibility",
|
|
@@ -2355,13 +2366,13 @@ function Mt(e) {
|
|
|
2355
2366
|
nonce: e.nonce || ""
|
|
2356
2367
|
}
|
|
2357
2368
|
),
|
|
2358
|
-
(
|
|
2359
|
-
|
|
2369
|
+
(a = O(e.content)) == null ? void 0 : a.map((i) => /* @__PURE__ */ S(
|
|
2370
|
+
se,
|
|
2360
2371
|
{
|
|
2361
2372
|
apiHost: e.apiHost,
|
|
2362
2373
|
isNestedRender: e.isNestedRender,
|
|
2363
2374
|
nonce: e.nonce,
|
|
2364
|
-
content:
|
|
2375
|
+
content: i,
|
|
2365
2376
|
showContent: !1,
|
|
2366
2377
|
model: e.model,
|
|
2367
2378
|
data: e.data,
|
|
@@ -2380,16 +2391,16 @@ function Mt(e) {
|
|
|
2380
2391
|
contentWrapperProps: e.contentWrapperProps,
|
|
2381
2392
|
trustedHosts: e.trustedHosts
|
|
2382
2393
|
},
|
|
2383
|
-
|
|
2394
|
+
i.testVariationId
|
|
2384
2395
|
))
|
|
2385
2396
|
] }) : null,
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
|
|
2397
|
+
/* @__PURE__ */ S(
|
|
2398
|
+
se,
|
|
2388
2399
|
{
|
|
2389
2400
|
apiHost: e.apiHost,
|
|
2390
2401
|
nonce: e.nonce,
|
|
2391
2402
|
isNestedRender: e.isNestedRender,
|
|
2392
|
-
content:
|
|
2403
|
+
content: l(),
|
|
2393
2404
|
showContent: !0,
|
|
2394
2405
|
model: e.model,
|
|
2395
2406
|
data: e.data,
|
|
@@ -2411,18 +2422,18 @@ function Mt(e) {
|
|
|
2411
2422
|
)
|
|
2412
2423
|
] });
|
|
2413
2424
|
}
|
|
2414
|
-
const
|
|
2425
|
+
const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2415
2426
|
__proto__: null,
|
|
2416
|
-
default:
|
|
2427
|
+
default: Qt
|
|
2417
2428
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2418
2429
|
export {
|
|
2419
|
-
|
|
2430
|
+
qe as DEFAULT_INDEX,
|
|
2420
2431
|
q as InlinedScript,
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2432
|
+
Me as SDKS_REQUIRING_RESET_APPROACH,
|
|
2433
|
+
nn as checkShouldRenderVariants,
|
|
2434
|
+
ln as contentVariants,
|
|
2435
|
+
tn as filterWithCustomTargeting,
|
|
2436
|
+
an as getBlocksToRender,
|
|
2437
|
+
on as getPersonalizationScript,
|
|
2438
|
+
rn as getUpdateVisibilityStylesScript
|
|
2428
2439
|
};
|