@builder.io/sdk-react 4.1.3 → 4.2.1
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 +8 -8
- package/lib/browser/blocks-exports.mjs +289 -265
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +6 -5
- package/lib/browser/server-entry-4cf669a1.cjs +2 -0
- package/lib/browser/{server-entry-4da1a296.js → server-entry-5e98a993.js} +24 -13
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +7 -6
- package/lib/edge/{accordion-78ee648e.cjs → accordion-4bab42b1.cjs} +1 -1
- package/lib/edge/{accordion-1784524c.js → accordion-a8a363e4.js} +1 -1
- package/lib/edge/{blocks-14702bfa.cjs → blocks-d07d0261.cjs} +1 -1
- package/lib/edge/{blocks-f5fb0ce5.js → blocks-e1f5b0d0.js} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-290c53b5.cjs → button-6734c0bb.cjs} +1 -1
- package/lib/edge/{button-21ceeedc.js → button-bbcadacf.js} +2 -2
- package/lib/edge/{columns-b7aced60.cjs → columns-821cba14.cjs} +1 -1
- package/lib/edge/{columns-1068516d.js → columns-cf3081c6.js} +3 -3
- package/lib/edge/{content-variants-90878d85.js → content-variants-a704e35c.js} +172 -150
- package/lib/edge/{content-variants-a264ddef.cjs → content-variants-ec180883.cjs} +6 -6
- package/lib/edge/{custom-code-2c87d654.cjs → custom-code-8fcaa31e.cjs} +1 -1
- package/lib/edge/{custom-code-4fa9e701.js → custom-code-f6c30129.js} +1 -1
- package/lib/edge/{embed-80b047e6.js → embed-3c0b5564.js} +1 -1
- package/lib/edge/{embed-d5d20b9d.cjs → embed-666d3cc4.cjs} +1 -1
- package/lib/edge/form-51f639ab.cjs +1 -0
- package/lib/edge/{form-539b46dc.js → form-8b068721.js} +9 -7
- package/lib/edge/{get-class-prop-name-57633f13.cjs → get-class-prop-name-2869a960.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-7e842f9c.js → get-class-prop-name-d6d821d6.js} +1 -1
- package/lib/edge/{img-36b77f7e.cjs → img-b04b9b6d.cjs} +1 -1
- package/lib/edge/{img-e2d845d3.js → img-dfbd4080.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -3
- package/lib/edge/{input-4b7d5309.js → input-665ef328.js} +1 -1
- package/lib/edge/{input-ad09fe4d.cjs → input-d31d6451.cjs} +1 -1
- package/lib/edge/{personalization-container-8dcdbc56.cjs → personalization-container-d12566e8.cjs} +1 -1
- package/lib/edge/{personalization-container-6a8723bf.js → personalization-container-e784836e.js} +4 -4
- package/lib/edge/{select-2c39366d.js → select-5fe49bd4.js} +1 -1
- package/lib/edge/{select-427609f7.cjs → select-c3085265.cjs} +1 -1
- package/lib/edge/server-entry-acf5ce7d.cjs +2 -0
- package/lib/edge/{server-entry-6e9f2e70.js → server-entry-c9d5300f.js} +22 -11
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +7 -6
- package/lib/edge/{slot-74827ed2.js → slot-a17ee2d7.js} +3 -3
- package/lib/edge/{slot-780e168e.cjs → slot-cbbbb02e.cjs} +1 -1
- package/lib/edge/{symbol-8573a705.js → symbol-9f960685.js} +2 -2
- package/lib/edge/{symbol-c79c9cb2.cjs → symbol-b56b5675.cjs} +1 -1
- package/lib/edge/{tabs-90d614d8.js → tabs-26ac5b2f.js} +3 -3
- package/lib/edge/{tabs-706f56bf.cjs → tabs-bf6643d7.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +14 -14
- package/lib/node/blocks-exports.mjs +292 -268
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -5
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-6d89489d.js → server-entry-48724189.js} +24 -13
- package/lib/node/server-entry-562c0663.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +7 -6
- package/lib/node/{setIvm-4d2ae811.cjs → setIvm-3b6199a0.cjs} +1 -1
- package/lib/node/{setIvm-96d70b3f.js → setIvm-a7aba6d2.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-f668d799.cjs → should-force-browser-runtime-in-node-cbe0ef14.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-4d8646f7.js → should-force-browser-runtime-in-node-fdc70f22.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/register.d.ts +18 -0
- package/types/server-index.d.ts +1 -1
- package/lib/browser/server-entry-2443e405.cjs +0 -2
- package/lib/edge/form-3e4c4ae4.cjs +0 -1
- package/lib/edge/server-entry-9c867b01.cjs +0 -2
- package/lib/node/server-entry-dd2d010e.cjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as Hi } from "./server-entry-
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
2
|
+
import { TARGET as O, isEditing as L, isBrowser as M, getUserAttributes as ct, checkIsDefined as ae, logger as J, isPreviewing as se, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Fe, setupBrowserForEditing as ut, createRegisterComponentMessage as dt, getCookieSync as mt, _track as Te, fetchOneEntry as Le, createEditorListener as ft, serializeIncludingFunctions as Ie, handleABTestingSync as ht } from "./server-entry-5e98a993.js";
|
|
3
|
+
import { setClientUserAttributes as Hi } from "./server-entry-5e98a993.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
|
|
5
5
|
import * as gt from "react";
|
|
6
6
|
import { createContext as _e, useEffect as V, useState as C, useRef as H, useContext as we, createElement as Ue } from "react";
|
|
7
7
|
const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), yt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
|
|
@@ -9,7 +9,7 @@ function ye(e) {
|
|
|
9
9
|
return /* @__PURE__ */ s(R, { children: yt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
11
|
const z = () => {
|
|
12
|
-
switch (
|
|
12
|
+
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
15
15
|
case "rsc":
|
|
@@ -272,7 +272,7 @@ function be(e) {
|
|
|
272
272
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
275
|
+
const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) => {
|
|
276
276
|
if (Wt) {
|
|
277
277
|
const t = ve(e);
|
|
278
278
|
return {
|
|
@@ -320,7 +320,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
320
320
|
}
|
|
321
321
|
return o;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function Ot({
|
|
324
324
|
block: e,
|
|
325
325
|
context: t,
|
|
326
326
|
localState: n,
|
|
@@ -337,7 +337,7 @@ function Ft({
|
|
|
337
337
|
}), o = Nt(o, i.locale), o;
|
|
338
338
|
}
|
|
339
339
|
const ce = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
-
function
|
|
340
|
+
function Ft(e, t, n = {}) {
|
|
341
341
|
let i, r, o, a = null, l = 0;
|
|
342
342
|
const c = function() {
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
|
|
@@ -416,7 +416,7 @@ function Ut(e) {
|
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
417
|
})) : e.repeat && i && !r && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const a =
|
|
419
|
+
const a = Ft(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(f) {
|
|
@@ -465,7 +465,7 @@ const qt = ({
|
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
467
|
function Ye(e) {
|
|
468
|
-
switch (
|
|
468
|
+
switch (O) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
@@ -624,7 +624,7 @@ function Yt(e) {
|
|
|
624
624
|
return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
|
-
var k, A, T,
|
|
627
|
+
var k, A, T, w, h;
|
|
628
628
|
const i = e.block, r = i.responsiveStyles, o = e.context.content, a = et(
|
|
629
629
|
((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
|
|
630
630
|
), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
|
|
@@ -640,7 +640,7 @@ function Yt(e) {
|
|
|
640
640
|
"medium",
|
|
641
641
|
a
|
|
642
642
|
)
|
|
643
|
-
}) : "",
|
|
643
|
+
}) : "", g = f ? Y({
|
|
644
644
|
className: m,
|
|
645
645
|
styles: f,
|
|
646
646
|
mediaQuery: de(
|
|
@@ -657,7 +657,7 @@ function Yt(e) {
|
|
|
657
657
|
}) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
658
658
|
let S = "";
|
|
659
659
|
if (y) {
|
|
660
|
-
const x = ((
|
|
660
|
+
const x = ((h = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : h.styles) || {};
|
|
661
661
|
S = Y({
|
|
662
662
|
className: `${m}:hover`,
|
|
663
663
|
styles: {
|
|
@@ -672,7 +672,7 @@ function Yt(e) {
|
|
|
672
672
|
return [
|
|
673
673
|
v,
|
|
674
674
|
d,
|
|
675
|
-
|
|
675
|
+
g,
|
|
676
676
|
p,
|
|
677
677
|
S
|
|
678
678
|
].join(" ");
|
|
@@ -707,7 +707,7 @@ function tt(e) {
|
|
|
707
707
|
const o = n[r];
|
|
708
708
|
let a = Zt(r);
|
|
709
709
|
if (e.stripPrefix)
|
|
710
|
-
switch (
|
|
710
|
+
switch (O) {
|
|
711
711
|
case "vue":
|
|
712
712
|
a = a.replace("v-on:", "");
|
|
713
713
|
break;
|
|
@@ -896,10 +896,10 @@ function ue(e) {
|
|
|
896
896
|
update: !1
|
|
897
897
|
}));
|
|
898
898
|
function r() {
|
|
899
|
-
var
|
|
899
|
+
var g;
|
|
900
900
|
if (n.value && !n.update && !se())
|
|
901
901
|
return n.value;
|
|
902
|
-
const d = (
|
|
902
|
+
const d = (g = e.block.repeat) != null && g.collection ? e.block : Ot({
|
|
903
903
|
block: e.block,
|
|
904
904
|
localState: e.context.localState,
|
|
905
905
|
rootState: e.context.rootState,
|
|
@@ -916,8 +916,8 @@ function ue(e) {
|
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
918
|
function a() {
|
|
919
|
-
var
|
|
920
|
-
return e.block.tagName === "a" || ((
|
|
919
|
+
var g;
|
|
920
|
+
return e.block.tagName === "a" || ((g = r().properties) == null ? void 0 : g.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
921
921
|
}
|
|
922
922
|
function l() {
|
|
923
923
|
var p, y;
|
|
@@ -927,14 +927,14 @@ function ue(e) {
|
|
|
927
927
|
return ("show" in r() ? r().show : !0) && !d;
|
|
928
928
|
}
|
|
929
929
|
function c() {
|
|
930
|
-
var
|
|
931
|
-
return !((
|
|
930
|
+
var g, p;
|
|
931
|
+
return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (p = r().children) != null ? p : [] : [];
|
|
932
932
|
}
|
|
933
933
|
function u() {
|
|
934
|
-
var d,
|
|
934
|
+
var d, g, p, y;
|
|
935
935
|
return {
|
|
936
936
|
blockChildren: (d = r().children) != null ? d : [],
|
|
937
|
-
componentRef: (
|
|
937
|
+
componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
|
|
938
938
|
componentOptions: {
|
|
939
939
|
...Rt(r(), e.context),
|
|
940
940
|
...Gt(o(), r()),
|
|
@@ -951,22 +951,22 @@ function ue(e) {
|
|
|
951
951
|
registeredComponents: e.registeredComponents,
|
|
952
952
|
builderBlock: r(),
|
|
953
953
|
includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
|
|
954
|
-
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC &&
|
|
954
|
+
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && O === "rsc")
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
957
|
return V(() => {
|
|
958
|
-
const d = r().id,
|
|
959
|
-
|
|
960
|
-
|
|
958
|
+
const d = r().id, g = r().animations;
|
|
959
|
+
g && d && Lt(
|
|
960
|
+
g.map((p) => ({
|
|
961
961
|
...p,
|
|
962
962
|
elementId: d
|
|
963
963
|
}))
|
|
964
964
|
);
|
|
965
965
|
}, []), V(() => {
|
|
966
966
|
n.update = !0;
|
|
967
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
967
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
|
|
968
968
|
/* @__PURE__ */ s(Yt, { block: r(), context: e.context }),
|
|
969
|
-
(f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d,
|
|
969
|
+
(f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, g) => /* @__PURE__ */ s(
|
|
970
970
|
Ve,
|
|
971
971
|
{
|
|
972
972
|
repeatContext: d.context,
|
|
@@ -974,7 +974,7 @@ function ue(e) {
|
|
|
974
974
|
registeredComponents: e.registeredComponents,
|
|
975
975
|
linkComponent: e.linkComponent
|
|
976
976
|
},
|
|
977
|
-
Re(
|
|
977
|
+
Re(g)
|
|
978
978
|
)) }) : /* @__PURE__ */ s(
|
|
979
979
|
Pe,
|
|
980
980
|
{
|
|
@@ -988,7 +988,7 @@ function ue(e) {
|
|
|
988
988
|
includeBlockProps: u().includeBlockProps,
|
|
989
989
|
isInteractive: u().isInteractive
|
|
990
990
|
}
|
|
991
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d,
|
|
991
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, g) => /* @__PURE__ */ s(
|
|
992
992
|
Ve,
|
|
993
993
|
{
|
|
994
994
|
repeatContext: d.context,
|
|
@@ -996,8 +996,8 @@ function ue(e) {
|
|
|
996
996
|
registeredComponents: e.registeredComponents,
|
|
997
997
|
linkComponent: e.linkComponent
|
|
998
998
|
},
|
|
999
|
-
Re(
|
|
1000
|
-
)) }) : /* @__PURE__ */
|
|
999
|
+
Re(g)
|
|
1000
|
+
)) }) : /* @__PURE__ */ $(
|
|
1001
1001
|
rn,
|
|
1002
1002
|
{
|
|
1003
1003
|
Wrapper: a(),
|
|
@@ -1078,7 +1078,7 @@ function sn(e) {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
return V(() => {
|
|
1080
1080
|
}, []), V(() => {
|
|
1081
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1081
|
+
}, [e.blocks]), /* @__PURE__ */ $(R, { children: [
|
|
1082
1082
|
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
|
|
1083
1083
|
display: flex;
|
|
1084
1084
|
flex-direction: column;
|
|
@@ -1101,10 +1101,10 @@ function sn(e) {
|
|
|
1101
1101
|
)
|
|
1102
1102
|
] });
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function U(e) {
|
|
1105
1105
|
var i, r, o;
|
|
1106
1106
|
const t = we(pe), n = we(He);
|
|
1107
|
-
return /* @__PURE__ */
|
|
1107
|
+
return /* @__PURE__ */ $(
|
|
1108
1108
|
sn,
|
|
1109
1109
|
{
|
|
1110
1110
|
blocks: e.blocks,
|
|
@@ -1132,7 +1132,7 @@ function _(e) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
const cn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1134
1134
|
function un(e) {
|
|
1135
|
-
var
|
|
1135
|
+
var g, p;
|
|
1136
1136
|
function t() {
|
|
1137
1137
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1138
1138
|
}
|
|
@@ -1178,7 +1178,7 @@ function un(e) {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
1180
|
function b(y) {
|
|
1181
|
-
const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%",
|
|
1181
|
+
const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", w = 0;
|
|
1182
1182
|
return {
|
|
1183
1183
|
...{
|
|
1184
1184
|
display: "flex",
|
|
@@ -1192,7 +1192,7 @@ function un(e) {
|
|
|
1192
1192
|
desktopStyle: k
|
|
1193
1193
|
}),
|
|
1194
1194
|
"--column-margin-left-mobile": c({
|
|
1195
|
-
stackedStyle:
|
|
1195
|
+
stackedStyle: w,
|
|
1196
1196
|
desktopStyle: A
|
|
1197
1197
|
}),
|
|
1198
1198
|
"--column-width-tablet": l({
|
|
@@ -1200,7 +1200,7 @@ function un(e) {
|
|
|
1200
1200
|
desktopStyle: k
|
|
1201
1201
|
}),
|
|
1202
1202
|
"--column-margin-left-tablet": l({
|
|
1203
|
-
stackedStyle:
|
|
1203
|
+
stackedStyle: w,
|
|
1204
1204
|
desktopStyle: A
|
|
1205
1205
|
})
|
|
1206
1206
|
};
|
|
@@ -1248,16 +1248,16 @@ function un(e) {
|
|
|
1248
1248
|
style: Ye(b(S))
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
|
-
return /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ $(R, { children: [
|
|
1252
1252
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1253
1253
|
display: flex;
|
|
1254
1254
|
line-height: normal;
|
|
1255
1255
|
height: 100%;
|
|
1256
1256
|
}` }),
|
|
1257
|
-
/* @__PURE__ */
|
|
1257
|
+
/* @__PURE__ */ $(
|
|
1258
1258
|
"div",
|
|
1259
1259
|
{
|
|
1260
|
-
className: cn((
|
|
1260
|
+
className: cn((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
|
|
1261
1261
|
style: f(),
|
|
1262
1262
|
children: [
|
|
1263
1263
|
/* @__PURE__ */ s(
|
|
@@ -1275,7 +1275,7 @@ function un(e) {
|
|
|
1275
1275
|
actionAttributes: {},
|
|
1276
1276
|
attributes: d(y, S),
|
|
1277
1277
|
children: /* @__PURE__ */ s(
|
|
1278
|
-
|
|
1278
|
+
U,
|
|
1279
1279
|
{
|
|
1280
1280
|
path: `columns.${S}.blocks`,
|
|
1281
1281
|
parent: e.builderBlock.id,
|
|
@@ -1362,7 +1362,7 @@ function hn(e) {
|
|
|
1362
1362
|
return e.aspectRatio ? f : void 0;
|
|
1363
1363
|
}
|
|
1364
1364
|
return V(() => {
|
|
1365
|
-
}, []), /* @__PURE__ */
|
|
1365
|
+
}, []), /* @__PURE__ */ $(R, { children: [
|
|
1366
1366
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1367
1367
|
opacity: 1;
|
|
1368
1368
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1380,8 +1380,8 @@ function hn(e) {
|
|
|
1380
1380
|
width: 100%;
|
|
1381
1381
|
height: 100%;
|
|
1382
1382
|
}` }),
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */
|
|
1383
|
+
/* @__PURE__ */ $(R, { children: [
|
|
1384
|
+
/* @__PURE__ */ $("picture", { children: [
|
|
1385
1385
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1386
1386
|
/* @__PURE__ */ s(
|
|
1387
1387
|
"img",
|
|
@@ -1461,28 +1461,28 @@ function bn(e, t, n, i) {
|
|
|
1461
1461
|
operator: v,
|
|
1462
1462
|
value: p
|
|
1463
1463
|
}));
|
|
1464
|
-
const
|
|
1465
|
-
if (Array.isArray(
|
|
1466
|
-
return
|
|
1464
|
+
const g = u[m];
|
|
1465
|
+
if (Array.isArray(g))
|
|
1466
|
+
return g.includes(d);
|
|
1467
1467
|
switch (v) {
|
|
1468
1468
|
case "is":
|
|
1469
|
-
return
|
|
1469
|
+
return g === d;
|
|
1470
1470
|
case "isNot":
|
|
1471
|
-
return
|
|
1471
|
+
return g !== d;
|
|
1472
1472
|
case "contains":
|
|
1473
|
-
return (r(
|
|
1473
|
+
return (r(g) || Array.isArray(g)) && g.includes(String(d));
|
|
1474
1474
|
case "startsWith":
|
|
1475
|
-
return r(
|
|
1475
|
+
return r(g) && g.startsWith(String(d));
|
|
1476
1476
|
case "endsWith":
|
|
1477
|
-
return r(
|
|
1477
|
+
return r(g) && g.endsWith(String(d));
|
|
1478
1478
|
case "greaterThan":
|
|
1479
|
-
return o(
|
|
1479
|
+
return o(g) && o(d) && g > d;
|
|
1480
1480
|
case "lessThan":
|
|
1481
|
-
return o(
|
|
1481
|
+
return o(g) && o(d) && g < d;
|
|
1482
1482
|
case "greaterThanOrEqualTo":
|
|
1483
|
-
return o(
|
|
1483
|
+
return o(g) && o(d) && g >= d;
|
|
1484
1484
|
case "lessThanOrEqualTo":
|
|
1485
|
-
return o(
|
|
1485
|
+
return o(g) && o(d) && g <= d;
|
|
1486
1486
|
default:
|
|
1487
1487
|
return !1;
|
|
1488
1488
|
}
|
|
@@ -1658,7 +1658,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1658
1658
|
}
|
|
1659
1659
|
}`, ie = "default", xn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", rt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
|
|
1660
1660
|
function Sn(e, t) {
|
|
1661
|
-
return !(e && e.length > 0) || !t ? !1 : re.includes(
|
|
1661
|
+
return !(e && e.length > 0) || !t ? !1 : re.includes(O) ? !0 : !M();
|
|
1662
1662
|
}
|
|
1663
1663
|
function kn({
|
|
1664
1664
|
variants: e,
|
|
@@ -1703,7 +1703,7 @@ const Cn = () => `
|
|
|
1703
1703
|
window.${xn} = ${pn}
|
|
1704
1704
|
window.${nt} = ${yn}
|
|
1705
1705
|
window.${it} = ${vn}
|
|
1706
|
-
`, ot =
|
|
1706
|
+
`, ot = O === "react", Tn = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, me = {
|
|
1707
1707
|
"@type": "@builder.io/sdk:Element",
|
|
1708
1708
|
layerName: "Accordion item title",
|
|
1709
1709
|
responsiveStyles: {
|
|
@@ -1856,7 +1856,7 @@ function En(e) {
|
|
|
1856
1856
|
cursor: "pointer"
|
|
1857
1857
|
};
|
|
1858
1858
|
return Object.fromEntries(
|
|
1859
|
-
Object.entries(v).filter(([d,
|
|
1859
|
+
Object.entries(v).filter(([d, g]) => g !== void 0)
|
|
1860
1860
|
);
|
|
1861
1861
|
}
|
|
1862
1862
|
function a(m) {
|
|
@@ -1906,7 +1906,7 @@ function En(e) {
|
|
|
1906
1906
|
function f(m) {
|
|
1907
1907
|
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1908
1908
|
}
|
|
1909
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */
|
|
1909
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(gt.Fragment, { children: [
|
|
1910
1910
|
/* @__PURE__ */ s(
|
|
1911
1911
|
"div",
|
|
1912
1912
|
{
|
|
@@ -1921,7 +1921,7 @@ function En(e) {
|
|
|
1921
1921
|
"data-index": v,
|
|
1922
1922
|
onClick: (d) => f(v),
|
|
1923
1923
|
children: /* @__PURE__ */ s(
|
|
1924
|
-
|
|
1924
|
+
U,
|
|
1925
1925
|
{
|
|
1926
1926
|
blocks: m.title,
|
|
1927
1927
|
path: `items.${v}.title`,
|
|
@@ -1939,7 +1939,7 @@ function En(e) {
|
|
|
1939
1939
|
className: l(v),
|
|
1940
1940
|
style: u(),
|
|
1941
1941
|
children: /* @__PURE__ */ s(
|
|
1942
|
-
|
|
1942
|
+
U,
|
|
1943
1943
|
{
|
|
1944
1944
|
blocks: m.detail,
|
|
1945
1945
|
path: `items.${v}.detail`,
|
|
@@ -2362,33 +2362,33 @@ function j(e) {
|
|
|
2362
2362
|
);
|
|
2363
2363
|
}
|
|
2364
2364
|
function Wn(e) {
|
|
2365
|
-
var S, k, A, T,
|
|
2365
|
+
var S, k, A, T, w, h, x, E, N, F, _, P, D;
|
|
2366
2366
|
const t = H(null), [n, i] = C(
|
|
2367
2367
|
() => Ce.getUserAttributes()
|
|
2368
2368
|
), [r, o] = C(
|
|
2369
2369
|
() => {
|
|
2370
|
-
var
|
|
2370
|
+
var I, B, W;
|
|
2371
2371
|
return Tn(
|
|
2372
2372
|
e.variants,
|
|
2373
|
-
((
|
|
2374
|
-
(
|
|
2373
|
+
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2374
|
+
(W = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : W.locale
|
|
2375
2375
|
);
|
|
2376
2376
|
}
|
|
2377
2377
|
), [a, l] = C(
|
|
2378
2378
|
() => {
|
|
2379
|
-
var
|
|
2379
|
+
var I, B, W;
|
|
2380
2380
|
return In(
|
|
2381
2381
|
e.variants,
|
|
2382
|
-
((
|
|
2383
|
-
(
|
|
2382
|
+
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2383
|
+
(W = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : W.locale
|
|
2384
2384
|
);
|
|
2385
2385
|
}
|
|
2386
2386
|
), [c, u] = C(() => []), [f, b] = C(
|
|
2387
2387
|
() => {
|
|
2388
|
-
var
|
|
2388
|
+
var I;
|
|
2389
2389
|
return Sn(
|
|
2390
2390
|
e.variants,
|
|
2391
|
-
Z((
|
|
2391
|
+
Z((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2392
2392
|
);
|
|
2393
2393
|
}
|
|
2394
2394
|
), [m, v] = C(() => !1);
|
|
@@ -2398,57 +2398,57 @@ function Wn(e) {
|
|
|
2398
2398
|
[z()]: `builder-personalization-container ${e.attributes[z()] || ""}`
|
|
2399
2399
|
};
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2402
|
-
return (e.variants || []).filter((
|
|
2403
|
-
var B,
|
|
2401
|
+
function g() {
|
|
2402
|
+
return (e.variants || []).filter((I) => {
|
|
2403
|
+
var B, W, K, q;
|
|
2404
2404
|
return bn(
|
|
2405
2405
|
{
|
|
2406
|
-
...(
|
|
2406
|
+
...(W = (B = e.builderContext) == null ? void 0 : B.rootState) != null && W.locale ? {
|
|
2407
2407
|
locale: (q = (K = e.builderContext) == null ? void 0 : K.rootState) == null ? void 0 : q.locale
|
|
2408
2408
|
} : {},
|
|
2409
2409
|
...n
|
|
2410
2410
|
},
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2411
|
+
I.query,
|
|
2412
|
+
I.startDate,
|
|
2413
|
+
I.endDate
|
|
2414
2414
|
);
|
|
2415
2415
|
});
|
|
2416
2416
|
}
|
|
2417
2417
|
function p() {
|
|
2418
|
-
var
|
|
2418
|
+
var I;
|
|
2419
2419
|
return kn({
|
|
2420
2420
|
variants: e.variants,
|
|
2421
|
-
fallbackBlocks: (
|
|
2421
|
+
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2422
2422
|
isHydrated: m,
|
|
2423
|
-
filteredVariants:
|
|
2423
|
+
filteredVariants: g(),
|
|
2424
2424
|
previewingIndex: e.previewingIndex
|
|
2425
2425
|
});
|
|
2426
2426
|
}
|
|
2427
2427
|
function y() {
|
|
2428
2428
|
return (e.variants || []).map(
|
|
2429
|
-
(
|
|
2430
|
-
var
|
|
2431
|
-
return `div[data-variant-id="${(
|
|
2429
|
+
(I, B) => {
|
|
2430
|
+
var W;
|
|
2431
|
+
return `div[data-variant-id="${(W = e.builderBlock) == null ? void 0 : W.id}-${B}"] { display: none !important; } `;
|
|
2432
2432
|
}
|
|
2433
2433
|
).join("");
|
|
2434
2434
|
}
|
|
2435
2435
|
return V(() => {
|
|
2436
2436
|
var B;
|
|
2437
2437
|
v(!0);
|
|
2438
|
-
const
|
|
2439
|
-
(
|
|
2440
|
-
i(
|
|
2438
|
+
const I = Ce.subscribeOnUserAttributesChange(
|
|
2439
|
+
(W) => {
|
|
2440
|
+
i(W);
|
|
2441
2441
|
},
|
|
2442
2442
|
{
|
|
2443
|
-
fireImmediately:
|
|
2443
|
+
fireImmediately: O === "qwik"
|
|
2444
2444
|
}
|
|
2445
2445
|
);
|
|
2446
2446
|
if (!(L() || se())) {
|
|
2447
|
-
const
|
|
2447
|
+
const W = g()[0];
|
|
2448
2448
|
t.current && (t.current.dispatchEvent(
|
|
2449
2449
|
new CustomEvent("builder.variantLoaded", {
|
|
2450
2450
|
detail: {
|
|
2451
|
-
variant:
|
|
2451
|
+
variant: W || ie,
|
|
2452
2452
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2453
2453
|
},
|
|
2454
2454
|
bubbles: !0
|
|
@@ -2459,7 +2459,7 @@ function Wn(e) {
|
|
|
2459
2459
|
te.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2460
2460
|
new CustomEvent("builder.variantDisplayed", {
|
|
2461
2461
|
detail: {
|
|
2462
|
-
variant:
|
|
2462
|
+
variant: W || ie,
|
|
2463
2463
|
content: (Q = e.builderContext) == null ? void 0 : Q.content
|
|
2464
2464
|
},
|
|
2465
2465
|
bubbles: !0
|
|
@@ -2468,12 +2468,12 @@ function Wn(e) {
|
|
|
2468
2468
|
});
|
|
2469
2469
|
}).observe(t.current));
|
|
2470
2470
|
}
|
|
2471
|
-
c.push(
|
|
2471
|
+
c.push(I);
|
|
2472
2472
|
}, []), V(() => () => {
|
|
2473
|
-
c.forEach((
|
|
2474
|
-
}, []), /* @__PURE__ */
|
|
2475
|
-
m && re.includes(
|
|
2476
|
-
|
|
2473
|
+
c.forEach((I) => I());
|
|
2474
|
+
}, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
|
|
2475
|
+
m && re.includes(O) ? /* @__PURE__ */ s(
|
|
2476
|
+
U,
|
|
2477
2477
|
{
|
|
2478
2478
|
blocks: p().blocks,
|
|
2479
2479
|
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
@@ -2486,36 +2486,36 @@ function Wn(e) {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
2488
|
) : null,
|
|
2489
|
-
!m && re.includes(
|
|
2490
|
-
f ? /* @__PURE__ */
|
|
2489
|
+
!m && re.includes(O) || !re.includes(O) ? /* @__PURE__ */ $(R, { children: [
|
|
2490
|
+
f ? /* @__PURE__ */ $(R, { children: [
|
|
2491
2491
|
/* @__PURE__ */ s(
|
|
2492
2492
|
ee,
|
|
2493
2493
|
{
|
|
2494
2494
|
nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
|
|
2495
2495
|
styles: y(),
|
|
2496
|
-
id: `variants-styles-${(
|
|
2496
|
+
id: `variants-styles-${(w = e.builderBlock) == null ? void 0 : w.id}`
|
|
2497
2497
|
}
|
|
2498
2498
|
),
|
|
2499
2499
|
/* @__PURE__ */ s(
|
|
2500
2500
|
j,
|
|
2501
2501
|
{
|
|
2502
|
-
nonce: ((
|
|
2502
|
+
nonce: ((h = e.builderContext) == null ? void 0 : h.nonce) || "",
|
|
2503
2503
|
scriptStr: a,
|
|
2504
2504
|
id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2505
2505
|
}
|
|
2506
2506
|
),
|
|
2507
|
-
(
|
|
2508
|
-
var
|
|
2507
|
+
(E = e.variants) == null ? void 0 : E.map((I, B) => {
|
|
2508
|
+
var W, K, q, te, Q, ke;
|
|
2509
2509
|
return /* @__PURE__ */ s(
|
|
2510
|
-
|
|
2510
|
+
U,
|
|
2511
2511
|
{
|
|
2512
2512
|
BlocksWrapperProps: {
|
|
2513
|
-
...(
|
|
2513
|
+
...(W = e.builderContext) == null ? void 0 : W.BlocksWrapperProps,
|
|
2514
2514
|
"aria-hidden": !0,
|
|
2515
2515
|
hidden: !0,
|
|
2516
2516
|
"data-variant-id": `${(K = e.builderBlock) == null ? void 0 : K.id}-${B}`
|
|
2517
2517
|
},
|
|
2518
|
-
blocks:
|
|
2518
|
+
blocks: I.blocks,
|
|
2519
2519
|
parent: (q = e.builderBlock) == null ? void 0 : q.id,
|
|
2520
2520
|
path: `component.options.variants.${B}.blocks`,
|
|
2521
2521
|
context: e.builderContext,
|
|
@@ -2534,23 +2534,23 @@ function Wn(e) {
|
|
|
2534
2534
|
})
|
|
2535
2535
|
] }) : null,
|
|
2536
2536
|
/* @__PURE__ */ s(
|
|
2537
|
-
|
|
2537
|
+
U,
|
|
2538
2538
|
{
|
|
2539
2539
|
blocks: p().blocks,
|
|
2540
|
-
parent: (
|
|
2540
|
+
parent: (N = e.builderBlock) == null ? void 0 : N.id,
|
|
2541
2541
|
path: p().path,
|
|
2542
2542
|
context: e.builderContext,
|
|
2543
2543
|
registeredComponents: e.builderComponents,
|
|
2544
2544
|
BlocksWrapperProps: {
|
|
2545
|
-
...(
|
|
2546
|
-
"data-variant-id": `${(
|
|
2545
|
+
...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
|
|
2546
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${p().index}`
|
|
2547
2547
|
},
|
|
2548
2548
|
children: f ? /* @__PURE__ */ s(
|
|
2549
2549
|
j,
|
|
2550
2550
|
{
|
|
2551
2551
|
nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
|
|
2552
2552
|
scriptStr: r,
|
|
2553
|
-
id: `variants-script-${(
|
|
2553
|
+
id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${ie}`
|
|
2554
2554
|
}
|
|
2555
2555
|
) : null
|
|
2556
2556
|
}
|
|
@@ -2615,7 +2615,7 @@ const $n = {
|
|
|
2615
2615
|
builderComponents: !0
|
|
2616
2616
|
}
|
|
2617
2617
|
};
|
|
2618
|
-
function
|
|
2618
|
+
function On(e) {
|
|
2619
2619
|
var t, n, i;
|
|
2620
2620
|
return /* @__PURE__ */ s(
|
|
2621
2621
|
"div",
|
|
@@ -2627,7 +2627,7 @@ function Fn(e) {
|
|
|
2627
2627
|
"builder-slot": e.name
|
|
2628
2628
|
},
|
|
2629
2629
|
children: /* @__PURE__ */ s(
|
|
2630
|
-
|
|
2630
|
+
U,
|
|
2631
2631
|
{
|
|
2632
2632
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2633
2633
|
path: `symbol.data.${e.name}`,
|
|
@@ -2639,7 +2639,7 @@ function Fn(e) {
|
|
|
2639
2639
|
}
|
|
2640
2640
|
);
|
|
2641
2641
|
}
|
|
2642
|
-
const
|
|
2642
|
+
const Fn = {
|
|
2643
2643
|
name: "Symbol",
|
|
2644
2644
|
noWrap: !0,
|
|
2645
2645
|
static: !0,
|
|
@@ -2831,7 +2831,7 @@ function _n(e) {
|
|
|
2831
2831
|
function r(a) {
|
|
2832
2832
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2833
2833
|
}
|
|
2834
|
-
return /* @__PURE__ */
|
|
2834
|
+
return /* @__PURE__ */ $("div", { children: [
|
|
2835
2835
|
/* @__PURE__ */ s(
|
|
2836
2836
|
"div",
|
|
2837
2837
|
{
|
|
@@ -2851,7 +2851,7 @@ function _n(e) {
|
|
|
2851
2851
|
},
|
|
2852
2852
|
onClick: (c) => r(l),
|
|
2853
2853
|
children: /* @__PURE__ */ s(
|
|
2854
|
-
|
|
2854
|
+
U,
|
|
2855
2855
|
{
|
|
2856
2856
|
parent: e.builderBlock.id,
|
|
2857
2857
|
path: `tabs.${l}.label`,
|
|
@@ -2867,7 +2867,7 @@ function _n(e) {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
),
|
|
2869
2869
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2870
|
-
|
|
2870
|
+
U,
|
|
2871
2871
|
{
|
|
2872
2872
|
parent: e.builderBlock.id,
|
|
2873
2873
|
path: `tabs.${t}.content`,
|
|
@@ -3293,77 +3293,79 @@ function Xn(e) {
|
|
|
3293
3293
|
return;
|
|
3294
3294
|
}
|
|
3295
3295
|
b.preventDefault();
|
|
3296
|
-
const d = b.currentTarget || b.target,
|
|
3296
|
+
const d = b.currentTarget || b.target, g = e.customHeaders || {};
|
|
3297
3297
|
let p;
|
|
3298
|
-
const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((
|
|
3298
|
+
const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((h) => !!h.name).filter(
|
|
3299
|
+
(h) => !!h.name && (h.type !== "radio" || h.checked)
|
|
3300
|
+
).map((h) => {
|
|
3299
3301
|
let x;
|
|
3300
|
-
const
|
|
3301
|
-
if (
|
|
3302
|
-
if (
|
|
3303
|
-
if (
|
|
3304
|
-
return x =
|
|
3305
|
-
key:
|
|
3302
|
+
const E = h.name;
|
|
3303
|
+
if (h instanceof HTMLInputElement)
|
|
3304
|
+
if (h.type === "radio") {
|
|
3305
|
+
if (h.checked)
|
|
3306
|
+
return x = h.value, {
|
|
3307
|
+
key: E,
|
|
3306
3308
|
value: x
|
|
3307
3309
|
};
|
|
3308
|
-
} else if (
|
|
3309
|
-
x =
|
|
3310
|
-
else if (
|
|
3311
|
-
const
|
|
3312
|
-
isNaN(
|
|
3310
|
+
} else if (h.type === "checkbox")
|
|
3311
|
+
x = h.checked;
|
|
3312
|
+
else if (h.type === "number" || h.type === "range") {
|
|
3313
|
+
const N = h.valueAsNumber;
|
|
3314
|
+
isNaN(N) || (x = N);
|
|
3313
3315
|
} else
|
|
3314
|
-
|
|
3316
|
+
h.type === "file" ? x = h.files : x = h.value;
|
|
3315
3317
|
else
|
|
3316
|
-
x =
|
|
3318
|
+
x = h.value;
|
|
3317
3319
|
return {
|
|
3318
|
-
key:
|
|
3320
|
+
key: E,
|
|
3319
3321
|
value: x
|
|
3320
3322
|
};
|
|
3321
3323
|
});
|
|
3322
3324
|
let k = e.contentType;
|
|
3323
|
-
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value:
|
|
3324
|
-
(
|
|
3325
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: h }) => {
|
|
3326
|
+
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (k = "multipart/form-data");
|
|
3325
3327
|
}), k !== "application/json")
|
|
3326
3328
|
p = y;
|
|
3327
3329
|
else {
|
|
3328
|
-
const
|
|
3329
|
-
Array.from(S).forEach(({ value: x, key:
|
|
3330
|
-
ze(
|
|
3331
|
-
}), p = JSON.stringify(
|
|
3330
|
+
const h = {};
|
|
3331
|
+
Array.from(S).forEach(({ value: x, key: E }) => {
|
|
3332
|
+
ze(h, E, x);
|
|
3333
|
+
}), p = JSON.stringify(h);
|
|
3332
3334
|
}
|
|
3333
|
-
k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (
|
|
3335
|
+
k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = k));
|
|
3334
3336
|
const A = new CustomEvent("presubmit", { detail: { body: p } });
|
|
3335
3337
|
if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
|
|
3336
3338
|
return;
|
|
3337
3339
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3338
|
-
const
|
|
3339
|
-
console.error(
|
|
3340
|
+
const h = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3341
|
+
console.error(h), i("error"), c({ formErrorMessage: h });
|
|
3340
3342
|
return;
|
|
3341
3343
|
}
|
|
3342
3344
|
const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3343
3345
|
e.sendSubmissionsToEmail || ""
|
|
3344
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3345
|
-
|
|
3346
|
-
async (
|
|
3347
|
-
var
|
|
3346
|
+
)}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
|
|
3347
|
+
Fe(w), fetch(w, { body: p, headers: g, method: e.method || "post" }).then(
|
|
3348
|
+
async (h) => {
|
|
3349
|
+
var N, F;
|
|
3348
3350
|
let x;
|
|
3349
|
-
const
|
|
3350
|
-
if (
|
|
3351
|
-
const
|
|
3352
|
-
detail: { error: x, status:
|
|
3351
|
+
const E = h.headers.get("content-type");
|
|
3352
|
+
if (E && E.indexOf("application/json") !== -1 ? x = await h.json() : x = await h.text(), !h.ok) {
|
|
3353
|
+
const _ = new CustomEvent("submit:error", {
|
|
3354
|
+
detail: { error: x, status: h.status }
|
|
3353
3355
|
});
|
|
3354
|
-
if ((
|
|
3356
|
+
if ((N = t.current) != null && N.nativeElement && ((F = t.current) == null || F.nativeElement.dispatchEvent(_), _.defaultPrevented))
|
|
3355
3357
|
return;
|
|
3356
3358
|
o(x), i("error");
|
|
3357
3359
|
let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3358
3360
|
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3359
3361
|
return;
|
|
3360
3362
|
}
|
|
3361
|
-
if (o(x), i(
|
|
3362
|
-
const
|
|
3363
|
-
detail: { res:
|
|
3363
|
+
if (o(x), i(h.ok ? "success" : "error"), h.ok) {
|
|
3364
|
+
const _ = new CustomEvent("submit:success", {
|
|
3365
|
+
detail: { res: h, body: x }
|
|
3364
3366
|
});
|
|
3365
3367
|
if (t.current) {
|
|
3366
|
-
if (t.current.dispatchEvent(
|
|
3368
|
+
if (t.current.dispatchEvent(_), _.defaultPrevented)
|
|
3367
3369
|
return;
|
|
3368
3370
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3369
3371
|
}
|
|
@@ -3377,20 +3379,20 @@ function Xn(e) {
|
|
|
3377
3379
|
location.href = e.successUrl;
|
|
3378
3380
|
}
|
|
3379
3381
|
},
|
|
3380
|
-
(
|
|
3382
|
+
(h) => {
|
|
3381
3383
|
const x = new CustomEvent("submit:error", {
|
|
3382
|
-
detail: { error:
|
|
3384
|
+
detail: { error: h }
|
|
3383
3385
|
});
|
|
3384
|
-
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(
|
|
3386
|
+
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(h), i("error"));
|
|
3385
3387
|
}
|
|
3386
3388
|
);
|
|
3387
3389
|
}
|
|
3388
3390
|
}
|
|
3389
|
-
return /* @__PURE__ */
|
|
3391
|
+
return /* @__PURE__ */ $(R, { children: [
|
|
3390
3392
|
" ",
|
|
3391
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3393
|
+
/* @__PURE__ */ s("style", { children: ".pre-26f6d56a { padding: 10px; color: red; text-align: center; }" }),
|
|
3392
3394
|
" ",
|
|
3393
|
-
/* @__PURE__ */
|
|
3395
|
+
/* @__PURE__ */ $(
|
|
3394
3396
|
"form",
|
|
3395
3397
|
{
|
|
3396
3398
|
validate: e.validate,
|
|
@@ -3403,7 +3405,7 @@ function Xn(e) {
|
|
|
3403
3405
|
children: [
|
|
3404
3406
|
e.children,
|
|
3405
3407
|
u() === "error" ? /* @__PURE__ */ s(
|
|
3406
|
-
|
|
3408
|
+
U,
|
|
3407
3409
|
{
|
|
3408
3410
|
path: "errorMessage",
|
|
3409
3411
|
blocks: e.errorMessage,
|
|
@@ -3411,16 +3413,16 @@ function Xn(e) {
|
|
|
3411
3413
|
}
|
|
3412
3414
|
) : null,
|
|
3413
3415
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
3414
|
-
|
|
3416
|
+
U,
|
|
3415
3417
|
{
|
|
3416
3418
|
path: "sendingMessage",
|
|
3417
3419
|
blocks: e.sendingMessage,
|
|
3418
3420
|
context: e.builderContext
|
|
3419
3421
|
}
|
|
3420
3422
|
) : null,
|
|
3421
|
-
u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-
|
|
3423
|
+
u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-26f6d56a", children: JSON.stringify(r, null, 2) }) : null,
|
|
3422
3424
|
u() === "success" ? /* @__PURE__ */ s(
|
|
3423
|
-
|
|
3425
|
+
U,
|
|
3424
3426
|
{
|
|
3425
3427
|
path: "successMessage",
|
|
3426
3428
|
blocks: e.successMessage,
|
|
@@ -3791,10 +3793,10 @@ function ui(e) {
|
|
|
3791
3793
|
return V(() => {
|
|
3792
3794
|
if (e.lazyLoad) {
|
|
3793
3795
|
const v = new IntersectionObserver(function(d) {
|
|
3794
|
-
d.forEach(function(
|
|
3795
|
-
if (!
|
|
3796
|
+
d.forEach(function(g) {
|
|
3797
|
+
if (!g.isIntersecting)
|
|
3796
3798
|
return;
|
|
3797
|
-
const p =
|
|
3799
|
+
const p = g.target;
|
|
3798
3800
|
try {
|
|
3799
3801
|
Array.from(p.children).filter(
|
|
3800
3802
|
(y) => y instanceof HTMLElement && y.tagName === "SOURCE"
|
|
@@ -3811,7 +3813,7 @@ function ui(e) {
|
|
|
3811
3813
|
}
|
|
3812
3814
|
}, []), V(() => () => {
|
|
3813
3815
|
r && r.disconnect();
|
|
3814
|
-
}, []), /* @__PURE__ */
|
|
3816
|
+
}, []), /* @__PURE__ */ $(
|
|
3815
3817
|
"div",
|
|
3816
3818
|
{
|
|
3817
3819
|
style: {
|
|
@@ -3938,15 +3940,15 @@ const di = () => [{
|
|
|
3938
3940
|
component: gn,
|
|
3939
3941
|
...$n
|
|
3940
3942
|
}, {
|
|
3941
|
-
component:
|
|
3943
|
+
component: On,
|
|
3942
3944
|
...Dn
|
|
3943
3945
|
}, {
|
|
3944
3946
|
component: Di,
|
|
3945
|
-
...
|
|
3947
|
+
...Fn
|
|
3946
3948
|
}, {
|
|
3947
3949
|
component: Hn,
|
|
3948
3950
|
...Un
|
|
3949
|
-
}, ...rt.includes(
|
|
3951
|
+
}, ...rt.includes(O) ? [{
|
|
3950
3952
|
component: Wn,
|
|
3951
3953
|
...Nn
|
|
3952
3954
|
}] : [], {
|
|
@@ -4055,7 +4057,7 @@ const di = () => [{
|
|
|
4055
4057
|
})), hi = ({
|
|
4056
4058
|
canTrack: e,
|
|
4057
4059
|
content: t
|
|
4058
|
-
}) => !(!(oe(t).length > 0) || !e || M()), gi = (e) => e === "react" || e === "reactNative", bi =
|
|
4060
|
+
}) => !(!(oe(t).length > 0) || !e || M()), gi = (e) => e === "react" || e === "reactNative", bi = O === "angular", st = gi(O), yi = () => `
|
|
4059
4061
|
window.${at} = ${mi}
|
|
4060
4062
|
window.${lt} = ${fi}
|
|
4061
4063
|
`, pi = (e, t) => `
|
|
@@ -4109,7 +4111,7 @@ const xi = (e, t, n = !0) => {
|
|
|
4109
4111
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4110
4112
|
}
|
|
4111
4113
|
};
|
|
4112
|
-
}, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(
|
|
4114
|
+
}, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (L() || se()), Ti = (e) => {
|
|
4113
4115
|
var o, a;
|
|
4114
4116
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
4115
4117
|
let r = "";
|
|
@@ -4166,34 +4168,34 @@ function Vi(e) {
|
|
|
4166
4168
|
const t = H(null);
|
|
4167
4169
|
C(() => !1);
|
|
4168
4170
|
function n(T) {
|
|
4169
|
-
var
|
|
4170
|
-
const
|
|
4171
|
+
var h, x;
|
|
4172
|
+
const w = {
|
|
4171
4173
|
...e.builderContextSignal.rootState,
|
|
4172
4174
|
...T
|
|
4173
4175
|
};
|
|
4174
|
-
e.builderContextSignal.rootSetState ? (x = (
|
|
4175
|
-
...
|
|
4176
|
-
rootState:
|
|
4176
|
+
e.builderContextSignal.rootSetState ? (x = (h = e.builderContextSignal).rootSetState) == null || x.call(h, w) : e.setBuilderContextSignal((E) => ({
|
|
4177
|
+
...E,
|
|
4178
|
+
rootState: w
|
|
4177
4179
|
}));
|
|
4178
4180
|
}
|
|
4179
4181
|
function i(T) {
|
|
4180
|
-
var
|
|
4181
|
-
const
|
|
4182
|
+
var h, x, E, N, F;
|
|
4183
|
+
const w = {
|
|
4182
4184
|
...e.builderContextSignal.content,
|
|
4183
4185
|
...T,
|
|
4184
4186
|
data: {
|
|
4185
|
-
...(
|
|
4187
|
+
...(h = e.builderContextSignal.content) == null ? void 0 : h.data,
|
|
4186
4188
|
...T == null ? void 0 : T.data
|
|
4187
4189
|
},
|
|
4188
4190
|
meta: {
|
|
4189
4191
|
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
4190
4192
|
...T == null ? void 0 : T.meta,
|
|
4191
|
-
breakpoints: ((
|
|
4193
|
+
breakpoints: ((E = T == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || ((F = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : F.breakpoints)
|
|
4192
4194
|
}
|
|
4193
4195
|
};
|
|
4194
|
-
e.setBuilderContextSignal((
|
|
4195
|
-
|
|
4196
|
-
content:
|
|
4196
|
+
e.setBuilderContextSignal((_) => ({
|
|
4197
|
+
..._,
|
|
4198
|
+
content: w
|
|
4197
4199
|
}));
|
|
4198
4200
|
}
|
|
4199
4201
|
function r() {
|
|
@@ -4210,74 +4212,96 @@ function Vi(e) {
|
|
|
4210
4212
|
model: e.model,
|
|
4211
4213
|
trustedHosts: e.trustedHosts,
|
|
4212
4214
|
callbacks: {
|
|
4213
|
-
configureSdk: (
|
|
4214
|
-
var
|
|
4215
|
-
const { breakpoints:
|
|
4216
|
-
!x || x !== ((
|
|
4215
|
+
configureSdk: (w) => {
|
|
4216
|
+
var E;
|
|
4217
|
+
const { breakpoints: h, contentId: x } = w;
|
|
4218
|
+
!x || x !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || h && i({
|
|
4217
4219
|
meta: {
|
|
4218
|
-
breakpoints:
|
|
4220
|
+
breakpoints: h
|
|
4219
4221
|
}
|
|
4220
4222
|
});
|
|
4221
4223
|
},
|
|
4222
|
-
animation: (
|
|
4223
|
-
Ge(
|
|
4224
|
+
animation: (w) => {
|
|
4225
|
+
Ge(w);
|
|
4224
4226
|
},
|
|
4225
|
-
contentUpdate: (
|
|
4226
|
-
i(
|
|
4227
|
+
contentUpdate: (w) => {
|
|
4228
|
+
i(w);
|
|
4227
4229
|
},
|
|
4228
|
-
stateUpdate: (
|
|
4229
|
-
n(
|
|
4230
|
+
stateUpdate: (w) => {
|
|
4231
|
+
n(w);
|
|
4230
4232
|
}
|
|
4231
4233
|
}
|
|
4232
4234
|
})(T);
|
|
4233
4235
|
}
|
|
4234
4236
|
const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
|
|
4235
4237
|
function d(T) {
|
|
4236
|
-
var
|
|
4238
|
+
var w, h;
|
|
4237
4239
|
if (e.builderContextSignal.content) {
|
|
4238
|
-
const x = (
|
|
4240
|
+
const x = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, E = (h = e.builderContextSignal.content) == null ? void 0 : h.id;
|
|
4239
4241
|
Te({
|
|
4240
4242
|
apiHost: e.apiHost,
|
|
4241
4243
|
type: "click",
|
|
4242
4244
|
canTrack: Z(e.canTrack),
|
|
4243
|
-
contentId:
|
|
4245
|
+
contentId: E,
|
|
4244
4246
|
apiKey: e.apiKey,
|
|
4245
|
-
variationId: x !==
|
|
4247
|
+
variationId: x !== E ? x : void 0,
|
|
4246
4248
|
...ki(T),
|
|
4247
4249
|
unique: !m
|
|
4248
4250
|
});
|
|
4249
4251
|
}
|
|
4250
4252
|
m || v(!0);
|
|
4251
4253
|
}
|
|
4252
|
-
function
|
|
4253
|
-
var
|
|
4254
|
-
const T = (x = (
|
|
4255
|
-
Object.entries(T).forEach(
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4254
|
+
function g() {
|
|
4255
|
+
var w, h, x;
|
|
4256
|
+
const T = (x = (h = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : h.httpRequests) != null ? x : {};
|
|
4257
|
+
Object.entries(T).forEach(
|
|
4258
|
+
([E, N]) => {
|
|
4259
|
+
if (!N)
|
|
4260
|
+
return;
|
|
4261
|
+
const F = typeof N == "object" && N["@type"] === "@builder.io/core:Request";
|
|
4262
|
+
if (f[E] || c[E] && !L())
|
|
4263
|
+
return;
|
|
4264
|
+
const _ = F ? N.request.url : N;
|
|
4265
|
+
f[E] = !0;
|
|
4266
|
+
const P = _.replace(
|
|
4267
|
+
/{{([^}]+)}}/g,
|
|
4268
|
+
(I, B) => String(
|
|
4269
|
+
G({
|
|
4270
|
+
code: B,
|
|
4271
|
+
context: e.context || {},
|
|
4272
|
+
localState: void 0,
|
|
4273
|
+
rootState: e.builderContextSignal.rootState,
|
|
4274
|
+
rootSetState: e.builderContextSignal.rootSetState
|
|
4275
|
+
})
|
|
4276
|
+
)
|
|
4277
|
+
), D = F ? {
|
|
4278
|
+
url: P,
|
|
4279
|
+
method: N.request.method,
|
|
4280
|
+
headers: N.request.headers,
|
|
4281
|
+
body: N.request.body
|
|
4282
|
+
} : {
|
|
4283
|
+
url: P,
|
|
4284
|
+
method: "GET"
|
|
4285
|
+
};
|
|
4286
|
+
Fe(JSON.stringify(D)), fetch(D.url, {
|
|
4287
|
+
method: D.method,
|
|
4288
|
+
headers: D.headers,
|
|
4289
|
+
body: D.body
|
|
4290
|
+
}).then((I) => I.json()).then((I) => {
|
|
4291
|
+
n({
|
|
4292
|
+
[E]: I
|
|
4293
|
+
}), c[E] = !0;
|
|
4294
|
+
}).catch((I) => {
|
|
4295
|
+
console.error(
|
|
4296
|
+
"error fetching dynamic data",
|
|
4297
|
+
JSON.stringify(N),
|
|
4298
|
+
I
|
|
4299
|
+
);
|
|
4300
|
+
}).finally(() => {
|
|
4301
|
+
f[E] = !1;
|
|
4302
|
+
});
|
|
4303
|
+
}
|
|
4304
|
+
);
|
|
4281
4305
|
}
|
|
4282
4306
|
function p() {
|
|
4283
4307
|
L() && window.dispatchEvent(
|
|
@@ -4295,8 +4319,8 @@ function Vi(e) {
|
|
|
4295
4319
|
);
|
|
4296
4320
|
}
|
|
4297
4321
|
const y = H(!1);
|
|
4298
|
-
return y.current || (
|
|
4299
|
-
var T,
|
|
4322
|
+
return y.current || (g(), p(), y.current = !0), V(() => {
|
|
4323
|
+
var T, w, h, x, E;
|
|
4300
4324
|
if (M()) {
|
|
4301
4325
|
L() && !e.isNestedRender && (window.addEventListener("message", l), ut({
|
|
4302
4326
|
...e.locale ? {
|
|
@@ -4313,45 +4337,45 @@ function Vi(e) {
|
|
|
4313
4337
|
}), Object.values(
|
|
4314
4338
|
e.builderContextSignal.componentInfos
|
|
4315
4339
|
).forEach((P) => {
|
|
4316
|
-
var
|
|
4317
|
-
if (!((
|
|
4340
|
+
var D, I;
|
|
4341
|
+
if (!((D = P.models) != null && D.length) || P.models.includes(e.model)) {
|
|
4318
4342
|
const B = dt(P);
|
|
4319
|
-
(
|
|
4343
|
+
(I = window.parent) == null || I.postMessage(B, "*");
|
|
4320
4344
|
}
|
|
4321
4345
|
}), window.addEventListener(
|
|
4322
4346
|
"builder:component:stateChangeListenerActivated",
|
|
4323
4347
|
p
|
|
4324
4348
|
));
|
|
4325
|
-
const
|
|
4326
|
-
name: `builder.tests.${(
|
|
4349
|
+
const N = e.builderContextSignal.content && Z(e.canTrack), F = mt({
|
|
4350
|
+
name: `builder.tests.${(w = e.builderContextSignal.content) == null ? void 0 : w.id}`,
|
|
4327
4351
|
canTrack: !0
|
|
4328
|
-
}),
|
|
4329
|
-
if (
|
|
4330
|
-
const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id,
|
|
4352
|
+
}), _ = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId;
|
|
4353
|
+
if (N && _ === F) {
|
|
4354
|
+
const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, D = e.apiKey;
|
|
4331
4355
|
Te({
|
|
4332
4356
|
apiHost: e.apiHost,
|
|
4333
4357
|
type: "impression",
|
|
4334
4358
|
canTrack: !0,
|
|
4335
4359
|
contentId: P,
|
|
4336
|
-
apiKey:
|
|
4337
|
-
variationId:
|
|
4360
|
+
apiKey: D,
|
|
4361
|
+
variationId: F !== P ? F : void 0
|
|
4338
4362
|
});
|
|
4339
4363
|
}
|
|
4340
4364
|
if (se() && !L()) {
|
|
4341
|
-
const P = new URL(location.href).searchParams,
|
|
4342
|
-
`builder.overrides.${
|
|
4365
|
+
const P = new URL(location.href).searchParams, D = P.get("builder.preview"), I = P.get(
|
|
4366
|
+
`builder.overrides.${D}`
|
|
4343
4367
|
), B = P.get("apiKey") || P.get("builder.space");
|
|
4344
|
-
(
|
|
4368
|
+
(D === "BUILDER_STUDIO" || D === e.model && B === e.apiKey && (!e.content || I === e.content.id)) && Le({
|
|
4345
4369
|
model: e.model,
|
|
4346
4370
|
apiKey: e.apiKey,
|
|
4347
4371
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4348
|
-
...
|
|
4372
|
+
...D === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
|
|
4349
4373
|
query: {
|
|
4350
4374
|
id: e.context.symbolId
|
|
4351
4375
|
}
|
|
4352
4376
|
} : {}
|
|
4353
|
-
}).then((
|
|
4354
|
-
|
|
4377
|
+
}).then((W) => {
|
|
4378
|
+
W && i(W);
|
|
4355
4379
|
});
|
|
4356
4380
|
}
|
|
4357
4381
|
}
|
|
@@ -4439,8 +4463,8 @@ const Bi = ({
|
|
|
4439
4463
|
},
|
|
4440
4464
|
meta: e == null ? void 0 : e.meta
|
|
4441
4465
|
} : void 0;
|
|
4442
|
-
function
|
|
4443
|
-
var u, f, b, m, v, d,
|
|
4466
|
+
function Oe(e) {
|
|
4467
|
+
var u, f, b, m, v, d, g, p, y;
|
|
4444
4468
|
const [t, n] = C(
|
|
4445
4469
|
() => {
|
|
4446
4470
|
var S, k;
|
|
@@ -4526,7 +4550,7 @@ function Fe(e) {
|
|
|
4526
4550
|
value: {
|
|
4527
4551
|
registeredComponents: r
|
|
4528
4552
|
},
|
|
4529
|
-
children: /* @__PURE__ */
|
|
4553
|
+
children: /* @__PURE__ */ $(
|
|
4530
4554
|
Vi,
|
|
4531
4555
|
{
|
|
4532
4556
|
apiHost: e.apiHost,
|
|
@@ -4562,11 +4586,11 @@ function Fe(e) {
|
|
|
4562
4586
|
isNestedRender: e.isNestedRender,
|
|
4563
4587
|
contentId: (b = a.content) == null ? void 0 : b.id,
|
|
4564
4588
|
cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
4565
|
-
customFonts: (
|
|
4589
|
+
customFonts: (g = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : g.customFonts
|
|
4566
4590
|
}
|
|
4567
4591
|
),
|
|
4568
4592
|
/* @__PURE__ */ s(
|
|
4569
|
-
|
|
4593
|
+
U,
|
|
4570
4594
|
{
|
|
4571
4595
|
blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
|
|
4572
4596
|
context: a,
|
|
@@ -4612,8 +4636,8 @@ function Wi(e) {
|
|
|
4612
4636
|
});
|
|
4613
4637
|
}
|
|
4614
4638
|
return V(() => {
|
|
4615
|
-
}, []), /* @__PURE__ */
|
|
4616
|
-
!e.isNestedRender &&
|
|
4639
|
+
}, []), /* @__PURE__ */ $(R, { children: [
|
|
4640
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
|
|
4617
4641
|
/* @__PURE__ */ s(
|
|
4618
4642
|
j,
|
|
4619
4643
|
{
|
|
@@ -4622,7 +4646,7 @@ function Wi(e) {
|
|
|
4622
4646
|
nonce: e.nonce || ""
|
|
4623
4647
|
}
|
|
4624
4648
|
),
|
|
4625
|
-
rt.includes(
|
|
4649
|
+
rt.includes(O) ? /* @__PURE__ */ s(
|
|
4626
4650
|
j,
|
|
4627
4651
|
{
|
|
4628
4652
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -4631,7 +4655,7 @@ function Wi(e) {
|
|
|
4631
4655
|
}
|
|
4632
4656
|
) : null
|
|
4633
4657
|
] }) : null,
|
|
4634
|
-
t ? /* @__PURE__ */
|
|
4658
|
+
t ? /* @__PURE__ */ $(R, { children: [
|
|
4635
4659
|
/* @__PURE__ */ s(
|
|
4636
4660
|
ee,
|
|
4637
4661
|
{
|
|
@@ -4649,7 +4673,7 @@ function Wi(e) {
|
|
|
4649
4673
|
}
|
|
4650
4674
|
),
|
|
4651
4675
|
(a = oe(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
4652
|
-
|
|
4676
|
+
Oe,
|
|
4653
4677
|
{
|
|
4654
4678
|
apiHost: e.apiHost,
|
|
4655
4679
|
isNestedRender: e.isNestedRender,
|
|
@@ -4677,7 +4701,7 @@ function Wi(e) {
|
|
|
4677
4701
|
))
|
|
4678
4702
|
] }) : null,
|
|
4679
4703
|
/* @__PURE__ */ s(
|
|
4680
|
-
|
|
4704
|
+
Oe,
|
|
4681
4705
|
{
|
|
4682
4706
|
apiHost: e.apiHost,
|
|
4683
4707
|
nonce: e.nonce,
|
|
@@ -4732,12 +4756,12 @@ function Di(e) {
|
|
|
4732
4756
|
return "div";
|
|
4733
4757
|
}
|
|
4734
4758
|
function i() {
|
|
4735
|
-
var d,
|
|
4759
|
+
var d, g;
|
|
4736
4760
|
return [
|
|
4737
4761
|
e.attributes[z()],
|
|
4738
4762
|
"builder-symbol",
|
|
4739
4763
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
4740
|
-
(
|
|
4764
|
+
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4741
4765
|
].filter(Boolean).join(" ");
|
|
4742
4766
|
}
|
|
4743
4767
|
const [r, o] = C(() => {
|
|
@@ -4752,9 +4776,9 @@ function Di(e) {
|
|
|
4752
4776
|
r && a === ((d = e.symbol) == null ? void 0 : d.entry) || $i({
|
|
4753
4777
|
symbol: e.symbol,
|
|
4754
4778
|
builderContextValue: e.builderContext
|
|
4755
|
-
}).then((
|
|
4779
|
+
}).then((g) => {
|
|
4756
4780
|
var p;
|
|
4757
|
-
|
|
4781
|
+
g && (o(g), l((p = e.symbol) == null ? void 0 : p.entry));
|
|
4758
4782
|
});
|
|
4759
4783
|
}
|
|
4760
4784
|
return V(() => {
|
|
@@ -4787,7 +4811,7 @@ function Di(e) {
|
|
|
4787
4811
|
) });
|
|
4788
4812
|
}
|
|
4789
4813
|
export {
|
|
4790
|
-
|
|
4814
|
+
U as Blocks,
|
|
4791
4815
|
pe as BuilderContext,
|
|
4792
4816
|
pt as Button,
|
|
4793
4817
|
un as Columns,
|