@builder.io/sdk-react 5.1.1 → 5.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 +14 -14
- package/lib/browser/blocks-exports.mjs +289 -286
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-a3b5302c.js → server-entry-2aabcfc5.js} +1 -1
- package/lib/browser/{server-entry-85aa99e6.cjs → server-entry-56a43424.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-83f68de4.js → accordion-7a8559d1.js} +1 -1
- package/lib/edge/{accordion-1e467b30.cjs → accordion-b8a726ee.cjs} +1 -1
- package/lib/edge/{blocks-6b821501.js → blocks-12590d6b.js} +50 -47
- package/lib/edge/{blocks-4d57d38f.cjs → blocks-58f7d3bf.cjs} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-52af8a54.js → button-8c1d414f.js} +2 -2
- package/lib/edge/{button-b2eb1d64.cjs → button-c68ea03d.cjs} +1 -1
- package/lib/edge/{columns-8eb66fad.cjs → columns-5bad599a.cjs} +1 -1
- package/lib/edge/{columns-e0489b50.js → columns-ea10971b.js} +3 -3
- package/lib/edge/{content-variants-6c1ee307.cjs → content-variants-1ea2cc45.cjs} +2 -2
- package/lib/edge/{content-variants-5003144d.js → content-variants-8052ce9b.js} +12 -12
- package/lib/edge/{custom-code-bc787526.cjs → custom-code-126854d0.cjs} +1 -1
- package/lib/edge/{custom-code-4e76fc0d.js → custom-code-29bcd3c1.js} +1 -1
- package/lib/edge/{embed-8ef248c5.cjs → embed-2986e15c.cjs} +1 -1
- package/lib/edge/{embed-fd344d6d.js → embed-51ea3559.js} +1 -1
- package/lib/edge/{form-107c9eae.cjs → form-0e910fbf.cjs} +1 -1
- package/lib/edge/{form-4efa40a5.js → form-75a443ad.js} +3 -3
- package/lib/edge/{get-class-prop-name-e6f7321f.js → get-class-prop-name-1e9476bb.js} +1 -1
- package/lib/edge/{get-class-prop-name-2c2513e9.cjs → get-class-prop-name-db97ef04.cjs} +1 -1
- package/lib/edge/{img-a32b0723.js → img-71d8f85a.js} +2 -2
- package/lib/edge/{img-ab241f22.cjs → img-d73b746e.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-c48fe23a.js → input-1aeefc8e.js} +1 -1
- package/lib/edge/{input-ada30ffb.cjs → input-c8886579.cjs} +1 -1
- package/lib/edge/{personalization-container-ad7cf89c.js → personalization-container-13aa06c8.js} +4 -4
- package/lib/edge/{personalization-container-375a1501.cjs → personalization-container-9daeb712.cjs} +1 -1
- package/lib/edge/{select-879c52dd.cjs → select-8a79d8dd.cjs} +1 -1
- package/lib/edge/{select-a49d819c.js → select-d6a5369f.js} +1 -1
- package/lib/edge/{server-entry-68d59577.js → server-entry-77646307.js} +1 -1
- package/lib/edge/{server-entry-560732da.cjs → server-entry-a1d12fab.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-005d6258.js → slot-110c36af.js} +3 -3
- package/lib/edge/{slot-5da991d1.cjs → slot-215396be.cjs} +1 -1
- package/lib/edge/symbol-5e7704f0.cjs +1 -0
- package/lib/edge/symbol-cb47c30e.js +93 -0
- package/lib/edge/{tabs-69a36a5c.js → tabs-4a754007.js} +3 -3
- package/lib/edge/{tabs-96367bf5.cjs → tabs-dddcc4d9.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +11 -11
- package/lib/node/blocks-exports.mjs +291 -288
- 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-fc7f08d8.js → server-entry-683f926c.js} +1 -1
- package/lib/node/{server-entry-2529c06e.cjs → server-entry-ef0a9bc1.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-b97cfb8b.cjs → setIvm-4b6c067d.cjs} +1 -1
- package/lib/node/{setIvm-41d8b067.js → setIvm-bcaed0e9.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-fc5c3a06.js → should-force-browser-runtime-in-node-8b51c95e.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1d85a066.cjs → should-force-browser-runtime-in-node-92af2305.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/types/blocks/symbol/symbol.types.d.ts +2 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/symbol-155906ed.js +0 -93
- package/lib/edge/symbol-7e6ac72e.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, _track as ye, checkIsDefined as ae, logger as Q, isPreviewing as le, userAttributesService as Ie, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as bt } from "./server-entry-
|
|
3
|
-
import { setClientUserAttributes as Mi } from "./server-entry-
|
|
2
|
+
import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, _track as ye, checkIsDefined as ae, logger as Q, isPreviewing as le, userAttributesService as Ie, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as bt } from "./server-entry-2aabcfc5.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-2aabcfc5.js";
|
|
4
4
|
import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
|
|
5
5
|
import * as gt from "react";
|
|
6
6
|
import { createContext as Ue, useEffect as B, useState as k, useContext as pe, useRef as z, createElement as He } from "react";
|
|
@@ -437,8 +437,8 @@ function Ht(e) {
|
|
|
437
437
|
leading: !1
|
|
438
438
|
});
|
|
439
439
|
function l(h) {
|
|
440
|
-
const g = h.getBoundingClientRect(), u = window.innerHeight,
|
|
441
|
-
return g.bottom >
|
|
440
|
+
const g = h.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
|
|
441
|
+
return g.bottom > m && g.top < u - m;
|
|
442
442
|
}
|
|
443
443
|
const c = e.steps[0].styles;
|
|
444
444
|
function d() {
|
|
@@ -732,11 +732,14 @@ const ln = ({
|
|
|
732
732
|
} : l;
|
|
733
733
|
};
|
|
734
734
|
function Pe(e) {
|
|
735
|
-
var
|
|
735
|
+
var r;
|
|
736
736
|
k(() => !1);
|
|
737
737
|
const [t, n] = k(
|
|
738
738
|
() => e.isInteractive ? on : e.componentRef
|
|
739
739
|
);
|
|
740
|
+
function i() {
|
|
741
|
+
return e.componentRef ? e.blockChildren : [];
|
|
742
|
+
}
|
|
740
743
|
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
741
744
|
t,
|
|
742
745
|
{
|
|
@@ -750,16 +753,16 @@ function Pe(e) {
|
|
|
750
753
|
isInteractive: e.isInteractive,
|
|
751
754
|
contextValue: e.context
|
|
752
755
|
}),
|
|
753
|
-
children:
|
|
756
|
+
children: (r = i()) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
754
757
|
ue,
|
|
755
758
|
{
|
|
756
|
-
block:
|
|
759
|
+
block: a,
|
|
757
760
|
context: e.context,
|
|
758
761
|
registeredComponents: e.registeredComponents,
|
|
759
762
|
linkComponent: e.linkComponent
|
|
760
763
|
},
|
|
761
|
-
|
|
762
|
-
))
|
|
764
|
+
a.id
|
|
765
|
+
))
|
|
763
766
|
}
|
|
764
767
|
) }) : null });
|
|
765
768
|
}
|
|
@@ -859,51 +862,51 @@ function Ae(e) {
|
|
|
859
862
|
), l = !!((U = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
|
|
860
863
|
if (!u)
|
|
861
864
|
return "";
|
|
862
|
-
const
|
|
865
|
+
const S = c ? X({
|
|
863
866
|
className: u,
|
|
864
867
|
styles: c
|
|
865
|
-
}) : "",
|
|
868
|
+
}) : "", m = d ? X({
|
|
866
869
|
className: u,
|
|
867
870
|
styles: d,
|
|
868
871
|
mediaQuery: de(
|
|
869
872
|
"medium",
|
|
870
873
|
o
|
|
871
874
|
)
|
|
872
|
-
}) : "",
|
|
875
|
+
}) : "", b = h ? X({
|
|
873
876
|
className: u,
|
|
874
877
|
styles: h,
|
|
875
878
|
mediaQuery: de(
|
|
876
879
|
"small",
|
|
877
880
|
o
|
|
878
881
|
)
|
|
879
|
-
}) : "",
|
|
882
|
+
}) : "", p = g && l ? X({
|
|
880
883
|
className: u,
|
|
881
884
|
styles: g,
|
|
882
885
|
mediaQuery: de(
|
|
883
886
|
"xsmall",
|
|
884
887
|
o
|
|
885
888
|
)
|
|
886
|
-
}) : "",
|
|
887
|
-
let
|
|
888
|
-
if (
|
|
889
|
-
const
|
|
890
|
-
|
|
889
|
+
}) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
890
|
+
let v = "";
|
|
891
|
+
if (f) {
|
|
892
|
+
const y = ((q = (H = f.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
893
|
+
v = X({
|
|
891
894
|
className: `${u}:hover`,
|
|
892
895
|
styles: {
|
|
893
|
-
...
|
|
894
|
-
transition: `all ${
|
|
895
|
-
|
|
896
|
+
...y,
|
|
897
|
+
transition: `all ${f.duration}s ${ce(
|
|
898
|
+
f.easing
|
|
896
899
|
)}`,
|
|
897
|
-
transitionDelay:
|
|
900
|
+
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
898
901
|
}
|
|
899
902
|
}) || "";
|
|
900
903
|
}
|
|
901
904
|
return [
|
|
902
|
-
|
|
903
|
-
f,
|
|
905
|
+
S,
|
|
904
906
|
m,
|
|
905
|
-
|
|
906
|
-
|
|
907
|
+
b,
|
|
908
|
+
p,
|
|
909
|
+
v
|
|
907
910
|
].join(" ");
|
|
908
911
|
}
|
|
909
912
|
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
@@ -922,7 +925,7 @@ function sn(e) {
|
|
|
922
925
|
}, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) });
|
|
923
926
|
}
|
|
924
927
|
function ue(e) {
|
|
925
|
-
var h, g, u,
|
|
928
|
+
var h, g, u, S;
|
|
926
929
|
function t() {
|
|
927
930
|
return Kt({
|
|
928
931
|
block: e.block,
|
|
@@ -934,17 +937,17 @@ function ue(e) {
|
|
|
934
937
|
update: !1
|
|
935
938
|
}));
|
|
936
939
|
function r() {
|
|
937
|
-
var
|
|
940
|
+
var b;
|
|
938
941
|
if (n.value && !n.update && !le())
|
|
939
942
|
return n.value;
|
|
940
|
-
const
|
|
943
|
+
const m = (b = e.block.repeat) != null && b.collection ? e.block : Ft({
|
|
941
944
|
block: e.block,
|
|
942
945
|
localState: e.context.localState,
|
|
943
946
|
rootState: e.context.rootState,
|
|
944
947
|
rootSetState: e.context.rootSetState,
|
|
945
948
|
context: e.context.context
|
|
946
949
|
});
|
|
947
|
-
return n.value =
|
|
950
|
+
return n.value = m, n.update = !1, m;
|
|
948
951
|
}
|
|
949
952
|
function a() {
|
|
950
953
|
return zt({
|
|
@@ -954,25 +957,25 @@ function ue(e) {
|
|
|
954
957
|
});
|
|
955
958
|
}
|
|
956
959
|
function o() {
|
|
957
|
-
var
|
|
958
|
-
return e.block.tagName === "a" || ((
|
|
960
|
+
var b;
|
|
961
|
+
return e.block.tagName === "a" || ((b = r().properties) == null ? void 0 : b.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
959
962
|
}
|
|
960
963
|
function l() {
|
|
961
|
-
var
|
|
962
|
-
if ((
|
|
963
|
-
return !!((
|
|
964
|
-
const
|
|
965
|
-
return ("show" in r() ? r().show : !0) && !
|
|
964
|
+
var p, f;
|
|
965
|
+
if ((p = e.block.repeat) != null && p.collection)
|
|
966
|
+
return !!((f = t == null ? void 0 : t()) != null && f.length);
|
|
967
|
+
const m = "hide" in r() ? r().hide : !1;
|
|
968
|
+
return ("show" in r() ? r().show : !0) && !m;
|
|
966
969
|
}
|
|
967
970
|
function c() {
|
|
968
|
-
var
|
|
969
|
-
return !((
|
|
971
|
+
var b, p;
|
|
972
|
+
return !((b = a == null ? void 0 : a()) != null && b.component) && !t() ? (p = r().children) != null ? p : [] : [];
|
|
970
973
|
}
|
|
971
974
|
function d() {
|
|
972
|
-
var
|
|
975
|
+
var m, b, p, f;
|
|
973
976
|
return {
|
|
974
|
-
blockChildren: (
|
|
975
|
-
componentRef: (
|
|
977
|
+
blockChildren: (m = r().children) != null ? m : [],
|
|
978
|
+
componentRef: (b = a == null ? void 0 : a()) == null ? void 0 : b.component,
|
|
976
979
|
componentOptions: {
|
|
977
980
|
...Pt(r(), e.context),
|
|
978
981
|
...Qt(a(), r()),
|
|
@@ -988,16 +991,16 @@ function ue(e) {
|
|
|
988
991
|
linkComponent: e.linkComponent,
|
|
989
992
|
registeredComponents: e.registeredComponents,
|
|
990
993
|
builderBlock: r(),
|
|
991
|
-
includeBlockProps: ((
|
|
992
|
-
isInteractive: !((
|
|
994
|
+
includeBlockProps: ((p = a == null ? void 0 : a()) == null ? void 0 : p.noWrap) === !0,
|
|
995
|
+
isInteractive: !((f = a == null ? void 0 : a()) != null && f.isRSC && O === "rsc")
|
|
993
996
|
};
|
|
994
997
|
}
|
|
995
998
|
return B(() => {
|
|
996
|
-
const
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
...
|
|
1000
|
-
elementId:
|
|
999
|
+
const m = r().id, b = r().animations;
|
|
1000
|
+
b && m && _t(
|
|
1001
|
+
b.map((p) => ({
|
|
1002
|
+
...p,
|
|
1003
|
+
elementId: m
|
|
1001
1004
|
}))
|
|
1002
1005
|
);
|
|
1003
1006
|
}, []), B(() => {
|
|
@@ -1011,15 +1014,15 @@ function ue(e) {
|
|
|
1011
1014
|
id: e.block.id
|
|
1012
1015
|
}
|
|
1013
1016
|
),
|
|
1014
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (
|
|
1017
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (S = t()) == null ? void 0 : S.map((m, b) => /* @__PURE__ */ s(
|
|
1015
1018
|
Ve,
|
|
1016
1019
|
{
|
|
1017
|
-
repeatContext:
|
|
1018
|
-
block:
|
|
1020
|
+
repeatContext: m.context,
|
|
1021
|
+
block: m.block,
|
|
1019
1022
|
registeredComponents: e.registeredComponents,
|
|
1020
1023
|
linkComponent: e.linkComponent
|
|
1021
1024
|
},
|
|
1022
|
-
Re(
|
|
1025
|
+
Re(b)
|
|
1023
1026
|
)) }) : /* @__PURE__ */ s(
|
|
1024
1027
|
Pe,
|
|
1025
1028
|
{
|
|
@@ -1033,15 +1036,15 @@ function ue(e) {
|
|
|
1033
1036
|
includeBlockProps: d().includeBlockProps,
|
|
1034
1037
|
isInteractive: d().isInteractive
|
|
1035
1038
|
}
|
|
1036
|
-
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((
|
|
1039
|
+
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
|
|
1037
1040
|
Ve,
|
|
1038
1041
|
{
|
|
1039
|
-
repeatContext:
|
|
1040
|
-
block:
|
|
1042
|
+
repeatContext: m.context,
|
|
1043
|
+
block: m.block,
|
|
1041
1044
|
registeredComponents: e.registeredComponents,
|
|
1042
1045
|
linkComponent: e.linkComponent
|
|
1043
1046
|
},
|
|
1044
|
-
Re(
|
|
1047
|
+
Re(b)
|
|
1045
1048
|
)) }) : /* @__PURE__ */ D(
|
|
1046
1049
|
rn,
|
|
1047
1050
|
{
|
|
@@ -1063,15 +1066,15 @@ function ue(e) {
|
|
|
1063
1066
|
isInteractive: d().isInteractive
|
|
1064
1067
|
}
|
|
1065
1068
|
),
|
|
1066
|
-
(g = c()) == null ? void 0 : g.map((
|
|
1069
|
+
(g = c()) == null ? void 0 : g.map((m) => /* @__PURE__ */ s(
|
|
1067
1070
|
ue,
|
|
1068
1071
|
{
|
|
1069
|
-
block:
|
|
1072
|
+
block: m,
|
|
1070
1073
|
registeredComponents: e.registeredComponents,
|
|
1071
1074
|
linkComponent: e.linkComponent,
|
|
1072
1075
|
context: e.context
|
|
1073
1076
|
},
|
|
1074
|
-
|
|
1077
|
+
m.id
|
|
1075
1078
|
))
|
|
1076
1079
|
]
|
|
1077
1080
|
}
|
|
@@ -1177,7 +1180,7 @@ function M(e) {
|
|
|
1177
1180
|
}
|
|
1178
1181
|
const un = (e) => `builder-columns ${e}-breakpoints`;
|
|
1179
1182
|
function dn(e) {
|
|
1180
|
-
var
|
|
1183
|
+
var b, p;
|
|
1181
1184
|
function t() {
|
|
1182
1185
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1183
1186
|
}
|
|
@@ -1187,28 +1190,28 @@ function dn(e) {
|
|
|
1187
1190
|
function i() {
|
|
1188
1191
|
return e.stackColumnsAt || "tablet";
|
|
1189
1192
|
}
|
|
1190
|
-
function r(
|
|
1191
|
-
return
|
|
1193
|
+
function r(f) {
|
|
1194
|
+
return f.link ? e.builderLinkComponent || "a" : "div";
|
|
1192
1195
|
}
|
|
1193
|
-
function a(
|
|
1194
|
-
var
|
|
1195
|
-
return ((
|
|
1196
|
+
function a(f) {
|
|
1197
|
+
var v;
|
|
1198
|
+
return ((v = n()[f]) == null ? void 0 : v.width) || 100 / n().length;
|
|
1196
1199
|
}
|
|
1197
|
-
function o(
|
|
1198
|
-
const
|
|
1199
|
-
return `calc(${
|
|
1200
|
+
function o(f) {
|
|
1201
|
+
const v = a(f), T = t() * (n().length - 1) * (v / 100);
|
|
1202
|
+
return `calc(${v}% - ${T}px)`;
|
|
1200
1203
|
}
|
|
1201
1204
|
function l({
|
|
1202
|
-
stackedStyle:
|
|
1203
|
-
desktopStyle:
|
|
1205
|
+
stackedStyle: f,
|
|
1206
|
+
desktopStyle: v
|
|
1204
1207
|
}) {
|
|
1205
|
-
return i() === "tablet" ?
|
|
1208
|
+
return i() === "tablet" ? f : v;
|
|
1206
1209
|
}
|
|
1207
1210
|
function c({
|
|
1208
|
-
stackedStyle:
|
|
1209
|
-
desktopStyle:
|
|
1211
|
+
stackedStyle: f,
|
|
1212
|
+
desktopStyle: v
|
|
1210
1213
|
}) {
|
|
1211
|
-
return i() === "never" ?
|
|
1214
|
+
return i() === "never" ? v : f;
|
|
1212
1215
|
}
|
|
1213
1216
|
function d() {
|
|
1214
1217
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1222,8 +1225,8 @@ function dn(e) {
|
|
|
1222
1225
|
})
|
|
1223
1226
|
};
|
|
1224
1227
|
}
|
|
1225
|
-
function g(
|
|
1226
|
-
const
|
|
1228
|
+
function g(f) {
|
|
1229
|
+
const v = f === 0 ? 0 : t(), T = o(f), E = `${v}px`, U = "100%", H = 0;
|
|
1227
1230
|
return {
|
|
1228
1231
|
...{
|
|
1229
1232
|
display: "flex",
|
|
@@ -1250,14 +1253,14 @@ function dn(e) {
|
|
|
1250
1253
|
})
|
|
1251
1254
|
};
|
|
1252
1255
|
}
|
|
1253
|
-
function u(
|
|
1256
|
+
function u(f) {
|
|
1254
1257
|
var T, E;
|
|
1255
1258
|
return nt(
|
|
1256
1259
|
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1257
|
-
)[
|
|
1260
|
+
)[f].max;
|
|
1258
1261
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const
|
|
1262
|
+
function S() {
|
|
1263
|
+
const f = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1261
1264
|
return `
|
|
1262
1265
|
@media (max-width: ${u("medium")}px) {
|
|
1263
1266
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1265,7 +1268,7 @@ function dn(e) {
|
|
|
1265
1268
|
align-items: stretch;
|
|
1266
1269
|
}
|
|
1267
1270
|
|
|
1268
|
-
${
|
|
1271
|
+
${f} {
|
|
1269
1272
|
width: var(--column-width-tablet) !important;
|
|
1270
1273
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1271
1274
|
}
|
|
@@ -1277,20 +1280,20 @@ function dn(e) {
|
|
|
1277
1280
|
align-items: stretch;
|
|
1278
1281
|
}
|
|
1279
1282
|
|
|
1280
|
-
${
|
|
1283
|
+
${f} {
|
|
1281
1284
|
width: var(--column-width-mobile) !important;
|
|
1282
1285
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1283
1286
|
}
|
|
1284
1287
|
},
|
|
1285
1288
|
`;
|
|
1286
1289
|
}
|
|
1287
|
-
function f
|
|
1290
|
+
function m(f, v) {
|
|
1288
1291
|
return {
|
|
1289
|
-
...
|
|
1290
|
-
href:
|
|
1292
|
+
...f.link ? {
|
|
1293
|
+
href: f.link
|
|
1291
1294
|
} : {},
|
|
1292
1295
|
[K()]: "builder-column",
|
|
1293
|
-
style: Xe(g(
|
|
1296
|
+
style: Xe(g(v))
|
|
1294
1297
|
};
|
|
1295
1298
|
}
|
|
1296
1299
|
return /* @__PURE__ */ D(w, { children: [
|
|
@@ -1302,39 +1305,39 @@ function dn(e) {
|
|
|
1302
1305
|
/* @__PURE__ */ D(
|
|
1303
1306
|
"div",
|
|
1304
1307
|
{
|
|
1305
|
-
className: un((
|
|
1308
|
+
className: un((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
|
|
1306
1309
|
style: h(),
|
|
1307
1310
|
children: [
|
|
1308
1311
|
/* @__PURE__ */ s(
|
|
1309
1312
|
te,
|
|
1310
1313
|
{
|
|
1311
1314
|
id: "builderio-columns",
|
|
1312
|
-
styles:
|
|
1315
|
+
styles: S(),
|
|
1313
1316
|
nonce: e.builderContext.nonce
|
|
1314
1317
|
}
|
|
1315
1318
|
),
|
|
1316
|
-
(
|
|
1319
|
+
(p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
|
|
1317
1320
|
xe,
|
|
1318
1321
|
{
|
|
1319
|
-
TagName: r(
|
|
1322
|
+
TagName: r(f),
|
|
1320
1323
|
actionAttributes: {},
|
|
1321
|
-
attributes: f
|
|
1324
|
+
attributes: m(f, v),
|
|
1322
1325
|
children: /* @__PURE__ */ s(
|
|
1323
1326
|
M,
|
|
1324
1327
|
{
|
|
1325
|
-
path: `columns.${
|
|
1328
|
+
path: `columns.${v}.blocks`,
|
|
1326
1329
|
parent: e.builderBlock.id,
|
|
1327
1330
|
context: e.builderContext,
|
|
1328
1331
|
registeredComponents: e.builderComponents,
|
|
1329
1332
|
linkComponent: e.builderLinkComponent,
|
|
1330
|
-
blocks:
|
|
1333
|
+
blocks: f.blocks,
|
|
1331
1334
|
styleProp: {
|
|
1332
1335
|
flexGrow: "1"
|
|
1333
1336
|
}
|
|
1334
1337
|
}
|
|
1335
1338
|
)
|
|
1336
1339
|
},
|
|
1337
|
-
|
|
1340
|
+
v
|
|
1338
1341
|
))
|
|
1339
1342
|
]
|
|
1340
1343
|
}
|
|
@@ -1492,42 +1495,42 @@ function yn(e, t, n, i) {
|
|
|
1492
1495
|
}
|
|
1493
1496
|
function o(d, h) {
|
|
1494
1497
|
return (() => {
|
|
1495
|
-
const u = h.property,
|
|
1496
|
-
let
|
|
1497
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (
|
|
1498
|
+
const u = h.property, S = h.operator;
|
|
1499
|
+
let m = h.value;
|
|
1500
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (m = h.value.slice(0, -1)), !(u && S))
|
|
1498
1501
|
return !0;
|
|
1499
|
-
if (Array.isArray(
|
|
1500
|
-
return
|
|
1502
|
+
if (Array.isArray(m))
|
|
1503
|
+
return S === "isNot" ? m.every((p) => o(d, {
|
|
1501
1504
|
property: u,
|
|
1502
|
-
operator:
|
|
1503
|
-
value:
|
|
1504
|
-
})) : !!
|
|
1505
|
+
operator: S,
|
|
1506
|
+
value: p
|
|
1507
|
+
})) : !!m.find((p) => o(d, {
|
|
1505
1508
|
property: u,
|
|
1506
|
-
operator:
|
|
1507
|
-
value:
|
|
1509
|
+
operator: S,
|
|
1510
|
+
value: p
|
|
1508
1511
|
}));
|
|
1509
|
-
const
|
|
1510
|
-
if (Array.isArray(
|
|
1511
|
-
return
|
|
1512
|
-
switch (
|
|
1512
|
+
const b = d[u];
|
|
1513
|
+
if (Array.isArray(b))
|
|
1514
|
+
return b.includes(m);
|
|
1515
|
+
switch (S) {
|
|
1513
1516
|
case "is":
|
|
1514
|
-
return
|
|
1517
|
+
return b === m;
|
|
1515
1518
|
case "isNot":
|
|
1516
|
-
return
|
|
1519
|
+
return b !== m;
|
|
1517
1520
|
case "contains":
|
|
1518
|
-
return (r(
|
|
1521
|
+
return (r(b) || Array.isArray(b)) && b.includes(String(m));
|
|
1519
1522
|
case "startsWith":
|
|
1520
|
-
return r(
|
|
1523
|
+
return r(b) && b.startsWith(String(m));
|
|
1521
1524
|
case "endsWith":
|
|
1522
|
-
return r(
|
|
1525
|
+
return r(b) && b.endsWith(String(m));
|
|
1523
1526
|
case "greaterThan":
|
|
1524
|
-
return a(
|
|
1527
|
+
return a(b) && a(m) && b > m;
|
|
1525
1528
|
case "lessThan":
|
|
1526
|
-
return a(
|
|
1529
|
+
return a(b) && a(m) && b < m;
|
|
1527
1530
|
case "greaterThanOrEqualTo":
|
|
1528
|
-
return a(
|
|
1531
|
+
return a(b) && a(m) && b >= m;
|
|
1529
1532
|
case "lessThanOrEqualTo":
|
|
1530
|
-
return a(
|
|
1533
|
+
return a(b) && a(m) && b <= m;
|
|
1531
1534
|
default:
|
|
1532
1535
|
return !1;
|
|
1533
1536
|
}
|
|
@@ -1892,7 +1895,7 @@ function Rn(e) {
|
|
|
1892
1895
|
};
|
|
1893
1896
|
}
|
|
1894
1897
|
function a() {
|
|
1895
|
-
const
|
|
1898
|
+
const S = {
|
|
1896
1899
|
...{
|
|
1897
1900
|
display: "flex",
|
|
1898
1901
|
flexDirection: "column"
|
|
@@ -1901,7 +1904,7 @@ function Rn(e) {
|
|
|
1901
1904
|
cursor: "pointer"
|
|
1902
1905
|
};
|
|
1903
1906
|
return Object.fromEntries(
|
|
1904
|
-
Object.entries(
|
|
1907
|
+
Object.entries(S).filter(([m, b]) => b !== void 0)
|
|
1905
1908
|
);
|
|
1906
1909
|
}
|
|
1907
1910
|
function o(u) {
|
|
@@ -1913,23 +1916,23 @@ function Rn(e) {
|
|
|
1913
1916
|
function c() {
|
|
1914
1917
|
let u = null;
|
|
1915
1918
|
if (e.grid && t.length && document) {
|
|
1916
|
-
const
|
|
1917
|
-
let
|
|
1918
|
-
`.builder-accordion-title[data-index="${
|
|
1919
|
+
const m = t[0];
|
|
1920
|
+
let p = document.querySelector(
|
|
1921
|
+
`.builder-accordion-title[data-index="${m}"]`
|
|
1919
1922
|
);
|
|
1920
|
-
if (u =
|
|
1921
|
-
let
|
|
1922
|
-
for (;
|
|
1923
|
-
if (
|
|
1924
|
-
if (
|
|
1923
|
+
if (u = m, p) {
|
|
1924
|
+
let f = p.getBoundingClientRect();
|
|
1925
|
+
for (; p = p && p.nextElementSibling; )
|
|
1926
|
+
if (p) {
|
|
1927
|
+
if (p.classList.contains("builder-accordion-detail"))
|
|
1925
1928
|
continue;
|
|
1926
|
-
const
|
|
1927
|
-
if (
|
|
1929
|
+
const v = p.getBoundingClientRect();
|
|
1930
|
+
if (v.left > f.left) {
|
|
1928
1931
|
const T = parseInt(
|
|
1929
|
-
|
|
1932
|
+
p.getAttribute("data-index") || "",
|
|
1930
1933
|
10
|
|
1931
1934
|
);
|
|
1932
|
-
isNaN(T) || (
|
|
1935
|
+
isNaN(T) || (f = v, u = T);
|
|
1933
1936
|
} else
|
|
1934
1937
|
break;
|
|
1935
1938
|
}
|
|
@@ -1945,31 +1948,31 @@ function Rn(e) {
|
|
|
1945
1948
|
}
|
|
1946
1949
|
};
|
|
1947
1950
|
return Object.fromEntries(
|
|
1948
|
-
Object.entries(u).filter(([
|
|
1951
|
+
Object.entries(u).filter(([S, m]) => m !== void 0)
|
|
1949
1952
|
);
|
|
1950
1953
|
}
|
|
1951
1954
|
function h(u) {
|
|
1952
|
-
t.includes(u) ? n(i() ? [] : t.filter((
|
|
1955
|
+
t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
|
|
1953
1956
|
}
|
|
1954
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u,
|
|
1957
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, S) => /* @__PURE__ */ D(gt.Fragment, { children: [
|
|
1955
1958
|
/* @__PURE__ */ s(
|
|
1956
1959
|
"div",
|
|
1957
1960
|
{
|
|
1958
|
-
className: o(
|
|
1961
|
+
className: o(S),
|
|
1959
1962
|
style: {
|
|
1960
1963
|
...a(),
|
|
1961
1964
|
...e.grid && {
|
|
1962
1965
|
width: e.gridRowWidth,
|
|
1963
|
-
order: c() !== null ? Ne(
|
|
1966
|
+
order: c() !== null ? Ne(S) : Ne(S + 1)
|
|
1964
1967
|
}
|
|
1965
1968
|
},
|
|
1966
|
-
"data-index":
|
|
1967
|
-
onClick: (
|
|
1969
|
+
"data-index": S,
|
|
1970
|
+
onClick: (m) => h(S),
|
|
1968
1971
|
children: /* @__PURE__ */ s(
|
|
1969
1972
|
M,
|
|
1970
1973
|
{
|
|
1971
1974
|
blocks: u.title,
|
|
1972
|
-
path: `items.${
|
|
1975
|
+
path: `items.${S}.title`,
|
|
1973
1976
|
parent: e.builderBlock.id,
|
|
1974
1977
|
context: e.builderContext,
|
|
1975
1978
|
registeredComponents: e.builderComponents,
|
|
@@ -1978,16 +1981,16 @@ function Rn(e) {
|
|
|
1978
1981
|
)
|
|
1979
1982
|
}
|
|
1980
1983
|
),
|
|
1981
|
-
t.includes(
|
|
1984
|
+
t.includes(S) ? /* @__PURE__ */ s(
|
|
1982
1985
|
"div",
|
|
1983
1986
|
{
|
|
1984
|
-
className: l(
|
|
1987
|
+
className: l(S),
|
|
1985
1988
|
style: d(),
|
|
1986
1989
|
children: /* @__PURE__ */ s(
|
|
1987
1990
|
M,
|
|
1988
1991
|
{
|
|
1989
1992
|
blocks: u.detail,
|
|
1990
|
-
path: `items.${
|
|
1993
|
+
path: `items.${S}.detail`,
|
|
1991
1994
|
parent: e.builderBlock.id,
|
|
1992
1995
|
context: e.builderContext,
|
|
1993
1996
|
registeredComponents: e.builderComponents,
|
|
@@ -1996,7 +1999,7 @@ function Rn(e) {
|
|
|
1996
1999
|
)
|
|
1997
2000
|
}
|
|
1998
2001
|
) : null
|
|
1999
|
-
] },
|
|
2002
|
+
] }, S)) });
|
|
2000
2003
|
}
|
|
2001
2004
|
const Pn = {
|
|
2002
2005
|
name: "Core:Button",
|
|
@@ -2407,7 +2410,7 @@ function G(e) {
|
|
|
2407
2410
|
);
|
|
2408
2411
|
}
|
|
2409
2412
|
function $n(e) {
|
|
2410
|
-
var
|
|
2413
|
+
var v, T, E, U, H, q, y, x, V, A, W, R, P;
|
|
2411
2414
|
const t = z(null), [n, i] = k(
|
|
2412
2415
|
() => Ie.getUserAttributes()
|
|
2413
2416
|
), [r, a] = k(
|
|
@@ -2436,14 +2439,14 @@ function $n(e) {
|
|
|
2436
2439
|
ee((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2437
2440
|
);
|
|
2438
2441
|
}
|
|
2439
|
-
), [u,
|
|
2440
|
-
function
|
|
2442
|
+
), [u, S] = k(() => !1);
|
|
2443
|
+
function m() {
|
|
2441
2444
|
return {
|
|
2442
2445
|
...e.attributes,
|
|
2443
2446
|
[K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
|
|
2444
2447
|
};
|
|
2445
2448
|
}
|
|
2446
|
-
function
|
|
2449
|
+
function b() {
|
|
2447
2450
|
return (e.variants || []).filter((I) => {
|
|
2448
2451
|
var N, C, $, F;
|
|
2449
2452
|
return yn(
|
|
@@ -2459,17 +2462,17 @@ function $n(e) {
|
|
|
2459
2462
|
);
|
|
2460
2463
|
});
|
|
2461
2464
|
}
|
|
2462
|
-
function
|
|
2465
|
+
function p() {
|
|
2463
2466
|
var I;
|
|
2464
2467
|
return Cn({
|
|
2465
2468
|
variants: e.variants,
|
|
2466
2469
|
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2467
2470
|
isHydrated: u,
|
|
2468
|
-
filteredVariants:
|
|
2471
|
+
filteredVariants: b(),
|
|
2469
2472
|
previewingIndex: e.previewingIndex
|
|
2470
2473
|
});
|
|
2471
2474
|
}
|
|
2472
|
-
function
|
|
2475
|
+
function f() {
|
|
2473
2476
|
return (e.variants || []).map(
|
|
2474
2477
|
(I, N) => {
|
|
2475
2478
|
var C;
|
|
@@ -2479,7 +2482,7 @@ function $n(e) {
|
|
|
2479
2482
|
}
|
|
2480
2483
|
return B(() => {
|
|
2481
2484
|
var N;
|
|
2482
|
-
|
|
2485
|
+
S(!0);
|
|
2483
2486
|
const I = Ie.subscribeOnUserAttributesChange(
|
|
2484
2487
|
(C) => {
|
|
2485
2488
|
i(C);
|
|
@@ -2489,7 +2492,7 @@ function $n(e) {
|
|
|
2489
2492
|
}
|
|
2490
2493
|
);
|
|
2491
2494
|
if (!(_() || le())) {
|
|
2492
|
-
const C =
|
|
2495
|
+
const C = b()[0];
|
|
2493
2496
|
t.current && (t.current.dispatchEvent(
|
|
2494
2497
|
new CustomEvent("builder.variantLoaded", {
|
|
2495
2498
|
detail: {
|
|
@@ -2516,18 +2519,18 @@ function $n(e) {
|
|
|
2516
2519
|
c.push(I);
|
|
2517
2520
|
}, []), B(() => () => {
|
|
2518
2521
|
c.forEach((I) => I());
|
|
2519
|
-
}, []), /* @__PURE__ */ D("div", { ref: t, ...
|
|
2522
|
+
}, []), /* @__PURE__ */ D("div", { ref: t, ...m(), children: [
|
|
2520
2523
|
u && ie.includes(O) ? /* @__PURE__ */ s(
|
|
2521
2524
|
M,
|
|
2522
2525
|
{
|
|
2523
|
-
blocks:
|
|
2524
|
-
parent: (
|
|
2525
|
-
path:
|
|
2526
|
+
blocks: p().blocks,
|
|
2527
|
+
parent: (v = e.builderBlock) == null ? void 0 : v.id,
|
|
2528
|
+
path: p().path,
|
|
2526
2529
|
context: e.builderContext,
|
|
2527
2530
|
registeredComponents: e.builderComponents,
|
|
2528
2531
|
BlocksWrapperProps: {
|
|
2529
2532
|
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2530
|
-
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${
|
|
2533
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${p().index}`
|
|
2531
2534
|
}
|
|
2532
2535
|
}
|
|
2533
2536
|
) : null,
|
|
@@ -2537,7 +2540,7 @@ function $n(e) {
|
|
|
2537
2540
|
te,
|
|
2538
2541
|
{
|
|
2539
2542
|
nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
|
|
2540
|
-
styles:
|
|
2543
|
+
styles: f(),
|
|
2541
2544
|
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2542
2545
|
}
|
|
2543
2546
|
),
|
|
@@ -2546,10 +2549,10 @@ function $n(e) {
|
|
|
2546
2549
|
{
|
|
2547
2550
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2548
2551
|
scriptStr: o,
|
|
2549
|
-
id: `variants-visibility-script-${(
|
|
2552
|
+
id: `variants-visibility-script-${(y = e.builderBlock) == null ? void 0 : y.id}`
|
|
2550
2553
|
}
|
|
2551
2554
|
),
|
|
2552
|
-
(
|
|
2555
|
+
(x = e.variants) == null ? void 0 : x.map((I, N) => {
|
|
2553
2556
|
var C, $, F, L, j, Te;
|
|
2554
2557
|
return /* @__PURE__ */ s(
|
|
2555
2558
|
M,
|
|
@@ -2581,14 +2584,14 @@ function $n(e) {
|
|
|
2581
2584
|
/* @__PURE__ */ s(
|
|
2582
2585
|
M,
|
|
2583
2586
|
{
|
|
2584
|
-
blocks:
|
|
2587
|
+
blocks: p().blocks,
|
|
2585
2588
|
parent: (V = e.builderBlock) == null ? void 0 : V.id,
|
|
2586
|
-
path:
|
|
2589
|
+
path: p().path,
|
|
2587
2590
|
context: e.builderContext,
|
|
2588
2591
|
registeredComponents: e.builderComponents,
|
|
2589
2592
|
BlocksWrapperProps: {
|
|
2590
2593
|
...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
|
|
2591
|
-
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${
|
|
2594
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
|
|
2592
2595
|
},
|
|
2593
2596
|
children: h ? /* @__PURE__ */ s(
|
|
2594
2597
|
G,
|
|
@@ -3317,12 +3320,12 @@ const Qn = {
|
|
|
3317
3320
|
function Zn(e) {
|
|
3318
3321
|
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
|
|
3319
3322
|
function c(u) {
|
|
3320
|
-
var
|
|
3321
|
-
const
|
|
3323
|
+
var m, b;
|
|
3324
|
+
const S = {
|
|
3322
3325
|
...e.builderContext.rootState,
|
|
3323
3326
|
...u
|
|
3324
3327
|
};
|
|
3325
|
-
e.builderContext.rootSetState ? (
|
|
3328
|
+
e.builderContext.rootSetState ? (b = (m = e.builderContext).rootSetState) == null || b.call(m, S) : e.builderContext.rootState = S;
|
|
3326
3329
|
}
|
|
3327
3330
|
function d() {
|
|
3328
3331
|
return _() && e.previewState || n;
|
|
@@ -3331,86 +3334,86 @@ function Zn(e) {
|
|
|
3331
3334
|
return JSON.stringify(u, null, 2);
|
|
3332
3335
|
}
|
|
3333
3336
|
function g(u) {
|
|
3334
|
-
var
|
|
3335
|
-
const
|
|
3337
|
+
var m;
|
|
3338
|
+
const S = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3336
3339
|
if (e.sendSubmissionsTo === "zapier")
|
|
3337
3340
|
u.preventDefault();
|
|
3338
|
-
else if (
|
|
3341
|
+
else if (S) {
|
|
3339
3342
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3340
3343
|
u.preventDefault();
|
|
3341
3344
|
return;
|
|
3342
3345
|
}
|
|
3343
3346
|
u.preventDefault();
|
|
3344
|
-
const
|
|
3345
|
-
let
|
|
3346
|
-
const
|
|
3347
|
-
(
|
|
3348
|
-
).map((
|
|
3349
|
-
let
|
|
3350
|
-
const V =
|
|
3351
|
-
if (
|
|
3352
|
-
if (
|
|
3353
|
-
if (
|
|
3354
|
-
return
|
|
3347
|
+
const b = u.currentTarget || u.target, p = e.customHeaders || {};
|
|
3348
|
+
let f;
|
|
3349
|
+
const v = new FormData(b), T = Array.from(b.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).filter(
|
|
3350
|
+
(y) => !!y.name && (y.type !== "radio" || y.checked)
|
|
3351
|
+
).map((y) => {
|
|
3352
|
+
let x;
|
|
3353
|
+
const V = y.name;
|
|
3354
|
+
if (y instanceof HTMLInputElement)
|
|
3355
|
+
if (y.type === "radio") {
|
|
3356
|
+
if (y.checked)
|
|
3357
|
+
return x = y.value, {
|
|
3355
3358
|
key: V,
|
|
3356
|
-
value:
|
|
3359
|
+
value: x
|
|
3357
3360
|
};
|
|
3358
|
-
} else if (
|
|
3359
|
-
|
|
3360
|
-
else if (
|
|
3361
|
-
const A =
|
|
3362
|
-
isNaN(A) || (
|
|
3361
|
+
} else if (y.type === "checkbox")
|
|
3362
|
+
x = y.checked;
|
|
3363
|
+
else if (y.type === "number" || y.type === "range") {
|
|
3364
|
+
const A = y.valueAsNumber;
|
|
3365
|
+
isNaN(A) || (x = A);
|
|
3363
3366
|
} else
|
|
3364
|
-
|
|
3367
|
+
y.type === "file" ? x = y.files : x = y.value;
|
|
3365
3368
|
else
|
|
3366
|
-
|
|
3369
|
+
x = y.value;
|
|
3367
3370
|
return {
|
|
3368
3371
|
key: V,
|
|
3369
|
-
value:
|
|
3372
|
+
value: x
|
|
3370
3373
|
};
|
|
3371
3374
|
});
|
|
3372
3375
|
let E = e.contentType;
|
|
3373
|
-
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value:
|
|
3374
|
-
(
|
|
3376
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
|
|
3377
|
+
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (E = "multipart/form-data");
|
|
3375
3378
|
}), E !== "application/json")
|
|
3376
|
-
|
|
3379
|
+
f = v;
|
|
3377
3380
|
else {
|
|
3378
|
-
const
|
|
3379
|
-
Array.from(T).forEach(({ value:
|
|
3380
|
-
Ke(
|
|
3381
|
-
}),
|
|
3381
|
+
const y = {};
|
|
3382
|
+
Array.from(T).forEach(({ value: x, key: V }) => {
|
|
3383
|
+
Ke(y, V, x);
|
|
3384
|
+
}), f = JSON.stringify(y);
|
|
3382
3385
|
}
|
|
3383
|
-
E && E !== "multipart/form-data" && (
|
|
3384
|
-
const U = new CustomEvent("presubmit", { detail: { body:
|
|
3386
|
+
E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
|
|
3387
|
+
const U = new CustomEvent("presubmit", { detail: { body: f } });
|
|
3385
3388
|
if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
|
|
3386
3389
|
return;
|
|
3387
3390
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3388
|
-
const
|
|
3389
|
-
console.error(
|
|
3391
|
+
const y = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3392
|
+
console.error(y), i("error"), c({ formErrorMessage: y });
|
|
3390
3393
|
return;
|
|
3391
3394
|
}
|
|
3392
3395
|
const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3393
3396
|
e.sendSubmissionsToEmail || ""
|
|
3394
3397
|
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3395
|
-
Le(q), fetch(q, { body:
|
|
3396
|
-
async (
|
|
3398
|
+
Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
|
|
3399
|
+
async (y) => {
|
|
3397
3400
|
var A, W;
|
|
3398
|
-
let
|
|
3399
|
-
const V =
|
|
3400
|
-
if (V && V.indexOf("application/json") !== -1 ?
|
|
3401
|
+
let x;
|
|
3402
|
+
const V = y.headers.get("content-type");
|
|
3403
|
+
if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
|
|
3401
3404
|
const R = new CustomEvent("submit:error", {
|
|
3402
|
-
detail: { error:
|
|
3405
|
+
detail: { error: x, status: y.status }
|
|
3403
3406
|
});
|
|
3404
3407
|
if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3405
3408
|
return;
|
|
3406
|
-
a(
|
|
3407
|
-
let P = e.errorMessagePath ? qe(
|
|
3409
|
+
a(x), i("error");
|
|
3410
|
+
let P = e.errorMessagePath ? qe(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3408
3411
|
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3409
3412
|
return;
|
|
3410
3413
|
}
|
|
3411
|
-
if (a(
|
|
3414
|
+
if (a(x), i(y.ok ? "success" : "error"), y.ok) {
|
|
3412
3415
|
const R = new CustomEvent("submit:success", {
|
|
3413
|
-
detail: { res:
|
|
3416
|
+
detail: { res: y, body: x }
|
|
3414
3417
|
});
|
|
3415
3418
|
if (t.current) {
|
|
3416
3419
|
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
@@ -3427,11 +3430,11 @@ function Zn(e) {
|
|
|
3427
3430
|
location.href = e.successUrl;
|
|
3428
3431
|
}
|
|
3429
3432
|
},
|
|
3430
|
-
(
|
|
3431
|
-
const
|
|
3432
|
-
detail: { error:
|
|
3433
|
+
(y) => {
|
|
3434
|
+
const x = new CustomEvent("submit:error", {
|
|
3435
|
+
detail: { error: y }
|
|
3433
3436
|
});
|
|
3434
|
-
t.current && (t.current.dispatchEvent(
|
|
3437
|
+
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (a(y), i("error"));
|
|
3435
3438
|
}
|
|
3436
3439
|
);
|
|
3437
3440
|
}
|
|
@@ -3875,24 +3878,24 @@ function di(e) {
|
|
|
3875
3878
|
});
|
|
3876
3879
|
return B(() => {
|
|
3877
3880
|
if (e.lazyLoad) {
|
|
3878
|
-
const
|
|
3879
|
-
|
|
3880
|
-
if (!
|
|
3881
|
+
const S = new IntersectionObserver(function(m) {
|
|
3882
|
+
m.forEach(function(b) {
|
|
3883
|
+
if (!b.isIntersecting)
|
|
3881
3884
|
return;
|
|
3882
|
-
const
|
|
3885
|
+
const p = b.target;
|
|
3883
3886
|
try {
|
|
3884
|
-
Array.from(
|
|
3885
|
-
(
|
|
3886
|
-
).forEach((
|
|
3887
|
-
const
|
|
3888
|
-
|
|
3889
|
-
}),
|
|
3890
|
-
} catch (
|
|
3891
|
-
console.error("Error loading lazy video:",
|
|
3887
|
+
Array.from(p.children).filter(
|
|
3888
|
+
(f) => f instanceof HTMLElement && f.tagName === "SOURCE"
|
|
3889
|
+
).forEach((f) => {
|
|
3890
|
+
const v = f.dataset.src;
|
|
3891
|
+
v && (f.src = v);
|
|
3892
|
+
}), p.load(), S.unobserve(p);
|
|
3893
|
+
} catch (f) {
|
|
3894
|
+
console.error("Error loading lazy video:", f);
|
|
3892
3895
|
}
|
|
3893
3896
|
});
|
|
3894
3897
|
});
|
|
3895
|
-
t.current &&
|
|
3898
|
+
t.current && S.observe(t.current), a(S);
|
|
3896
3899
|
}
|
|
3897
3900
|
}, []), B(() => () => {
|
|
3898
3901
|
r && r.disconnect();
|
|
@@ -4247,17 +4250,17 @@ font-weight: ${l};
|
|
|
4247
4250
|
}
|
|
4248
4251
|
`, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
|
|
4249
4252
|
function Ai(e) {
|
|
4250
|
-
var H, q,
|
|
4253
|
+
var H, q, y;
|
|
4251
4254
|
const t = z(null);
|
|
4252
4255
|
k(() => !1), k(
|
|
4253
4256
|
() => e.builderContextSignal
|
|
4254
4257
|
);
|
|
4255
4258
|
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4256
|
-
function o(
|
|
4259
|
+
function o(x, V) {
|
|
4257
4260
|
var W, R;
|
|
4258
4261
|
const A = {
|
|
4259
4262
|
...e.builderContextSignal.rootState,
|
|
4260
|
-
...
|
|
4263
|
+
...x
|
|
4261
4264
|
};
|
|
4262
4265
|
e.builderContextSignal.rootSetState ? (R = (W = e.builderContextSignal).rootSetState) == null || R.call(W, A) : e.setBuilderContextSignal((P) => ({
|
|
4263
4266
|
...P,
|
|
@@ -4267,19 +4270,19 @@ function Ai(e) {
|
|
|
4267
4270
|
rootState: A
|
|
4268
4271
|
}));
|
|
4269
4272
|
}
|
|
4270
|
-
function l(
|
|
4273
|
+
function l(x, V) {
|
|
4271
4274
|
var W, R, P, I, N;
|
|
4272
4275
|
const A = {
|
|
4273
4276
|
...e.builderContextSignal.content,
|
|
4274
|
-
...
|
|
4277
|
+
...x,
|
|
4275
4278
|
data: {
|
|
4276
4279
|
...(W = e.builderContextSignal.content) == null ? void 0 : W.data,
|
|
4277
|
-
...
|
|
4280
|
+
...x == null ? void 0 : x.data
|
|
4278
4281
|
},
|
|
4279
4282
|
meta: {
|
|
4280
4283
|
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4281
|
-
...
|
|
4282
|
-
breakpoints: ((P =
|
|
4284
|
+
...x == null ? void 0 : x.meta,
|
|
4285
|
+
breakpoints: ((P = x == null ? void 0 : x.meta) == null ? void 0 : P.breakpoints) || ((N = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : N.breakpoints)
|
|
4283
4286
|
}
|
|
4284
4287
|
};
|
|
4285
4288
|
e.setBuilderContextSignal((C) => ({
|
|
@@ -4296,7 +4299,7 @@ function Ai(e) {
|
|
|
4296
4299
|
const [d, h] = k(
|
|
4297
4300
|
() => e.contentWrapper || "div"
|
|
4298
4301
|
);
|
|
4299
|
-
function g(
|
|
4302
|
+
function g(x) {
|
|
4300
4303
|
return ht({
|
|
4301
4304
|
model: e.model,
|
|
4302
4305
|
trustedHosts: e.trustedHosts,
|
|
@@ -4320,10 +4323,10 @@ function Ai(e) {
|
|
|
4320
4323
|
o(V);
|
|
4321
4324
|
}
|
|
4322
4325
|
}
|
|
4323
|
-
})(
|
|
4326
|
+
})(x);
|
|
4324
4327
|
}
|
|
4325
|
-
const [u,
|
|
4326
|
-
function
|
|
4328
|
+
const [u, S] = k(() => ({})), [m, b] = k(() => ({})), [p, f] = k(() => !1);
|
|
4329
|
+
function v(x) {
|
|
4327
4330
|
var V, A;
|
|
4328
4331
|
if (e.builderContextSignal.content) {
|
|
4329
4332
|
const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
@@ -4334,24 +4337,24 @@ function Ai(e) {
|
|
|
4334
4337
|
contentId: R,
|
|
4335
4338
|
apiKey: e.apiKey,
|
|
4336
4339
|
variationId: W !== R ? W : void 0,
|
|
4337
|
-
...Ci(
|
|
4338
|
-
unique: !
|
|
4340
|
+
...Ci(x),
|
|
4341
|
+
unique: !p
|
|
4339
4342
|
});
|
|
4340
4343
|
}
|
|
4341
|
-
|
|
4344
|
+
p || f(!0);
|
|
4342
4345
|
}
|
|
4343
4346
|
function T() {
|
|
4344
4347
|
var V, A, W;
|
|
4345
|
-
const
|
|
4346
|
-
Object.entries(
|
|
4348
|
+
const x = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
|
|
4349
|
+
Object.entries(x).forEach(
|
|
4347
4350
|
([R, P]) => {
|
|
4348
4351
|
if (!P)
|
|
4349
4352
|
return;
|
|
4350
4353
|
const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
|
|
4351
|
-
if (
|
|
4354
|
+
if (m[R] || u[R] && !_())
|
|
4352
4355
|
return;
|
|
4353
4356
|
const N = I ? P.request.url : P;
|
|
4354
|
-
|
|
4357
|
+
m[R] = !0;
|
|
4355
4358
|
const C = N.replace(
|
|
4356
4359
|
/{{([^}]+)}}/g,
|
|
4357
4360
|
(L, j) => String(
|
|
@@ -4389,7 +4392,7 @@ function Ai(e) {
|
|
|
4389
4392
|
L
|
|
4390
4393
|
);
|
|
4391
4394
|
}).finally(() => {
|
|
4392
|
-
|
|
4395
|
+
m[R] = !1;
|
|
4393
4396
|
});
|
|
4394
4397
|
}
|
|
4395
4398
|
);
|
|
@@ -4411,7 +4414,7 @@ function Ai(e) {
|
|
|
4411
4414
|
}
|
|
4412
4415
|
const U = z(!1);
|
|
4413
4416
|
return U.current || (T(), E(), U.current = !0), B(() => {
|
|
4414
|
-
var
|
|
4417
|
+
var x, V, A, W, R;
|
|
4415
4418
|
if (J()) {
|
|
4416
4419
|
_() && !e.isNestedRender && (window.addEventListener("message", g), dt({
|
|
4417
4420
|
...e.locale ? {
|
|
@@ -4423,7 +4426,7 @@ function Ai(e) {
|
|
|
4423
4426
|
...e.trustedHosts ? {
|
|
4424
4427
|
trustedHosts: e.trustedHosts
|
|
4425
4428
|
} : {},
|
|
4426
|
-
modelName: (
|
|
4429
|
+
modelName: (x = e.model) != null ? x : "",
|
|
4427
4430
|
apiKey: e.apiKey
|
|
4428
4431
|
}), Object.values(
|
|
4429
4432
|
e.builderContextSignal.componentInfos
|
|
@@ -4497,11 +4500,11 @@ function Ai(e) {
|
|
|
4497
4500
|
d,
|
|
4498
4501
|
{
|
|
4499
4502
|
ref: t,
|
|
4500
|
-
onClick: (
|
|
4503
|
+
onClick: (x) => v(x),
|
|
4501
4504
|
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4502
4505
|
"builder-model": e.model,
|
|
4503
4506
|
className: Vi(
|
|
4504
|
-
((q = e.content) == null ? void 0 : q.testVariationId) || ((
|
|
4507
|
+
((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
4505
4508
|
),
|
|
4506
4509
|
style: {
|
|
4507
4510
|
display: !e.builderContextSignal.content && Oe() ? "none" : void 0
|
|
@@ -4563,22 +4566,22 @@ const Ni = ({
|
|
|
4563
4566
|
meta: e == null ? void 0 : e.meta
|
|
4564
4567
|
} : void 0;
|
|
4565
4568
|
function Fe(e) {
|
|
4566
|
-
var d, h, g, u,
|
|
4569
|
+
var d, h, g, u, S, m, b, p, f;
|
|
4567
4570
|
const [t, n] = k(
|
|
4568
4571
|
() => {
|
|
4569
|
-
var
|
|
4572
|
+
var v, T;
|
|
4570
4573
|
return xi({
|
|
4571
4574
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4572
|
-
variationId: (
|
|
4575
|
+
variationId: (v = e.content) == null ? void 0 : v.testVariationId,
|
|
4573
4576
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4574
4577
|
contentId: (T = e.content) == null ? void 0 : T.id
|
|
4575
4578
|
});
|
|
4576
4579
|
}
|
|
4577
4580
|
);
|
|
4578
|
-
function i(
|
|
4581
|
+
function i(v) {
|
|
4579
4582
|
l((T) => ({
|
|
4580
4583
|
...T,
|
|
4581
|
-
rootState:
|
|
4584
|
+
rootState: v
|
|
4582
4585
|
}));
|
|
4583
4586
|
}
|
|
4584
4587
|
const [r, a] = k(
|
|
@@ -4586,8 +4589,8 @@ function Fe(e) {
|
|
|
4586
4589
|
...We(),
|
|
4587
4590
|
...e.customComponents || []
|
|
4588
4591
|
].reduce(
|
|
4589
|
-
(
|
|
4590
|
-
...
|
|
4592
|
+
(v, { component: T, ...E }) => ({
|
|
4593
|
+
...v,
|
|
4591
4594
|
[E.name]: {
|
|
4592
4595
|
component: T,
|
|
4593
4596
|
...we(E)
|
|
@@ -4615,8 +4618,8 @@ function Fe(e) {
|
|
|
4615
4618
|
...We(),
|
|
4616
4619
|
...e.customComponents || []
|
|
4617
4620
|
].reduce(
|
|
4618
|
-
(
|
|
4619
|
-
...
|
|
4621
|
+
(v, { component: T, ...E }) => ({
|
|
4622
|
+
...v,
|
|
4620
4623
|
[E.name]: we(E)
|
|
4621
4624
|
}),
|
|
4622
4625
|
{}
|
|
@@ -4631,9 +4634,9 @@ function Fe(e) {
|
|
|
4631
4634
|
e.apiKey || Q.error(
|
|
4632
4635
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4633
4636
|
);
|
|
4634
|
-
const
|
|
4635
|
-
|
|
4636
|
-
code:
|
|
4637
|
+
const v = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4638
|
+
v && Y({
|
|
4639
|
+
code: v,
|
|
4637
4640
|
context: e.context || {},
|
|
4638
4641
|
localState: void 0,
|
|
4639
4642
|
rootState: o.rootState,
|
|
@@ -4685,14 +4688,14 @@ function Fe(e) {
|
|
|
4685
4688
|
nonce: e.nonce || "",
|
|
4686
4689
|
isNestedRender: e.isNestedRender,
|
|
4687
4690
|
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4688
|
-
cssCode: (
|
|
4689
|
-
customFonts: (
|
|
4691
|
+
cssCode: (S = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : S.cssCode,
|
|
4692
|
+
customFonts: (b = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
|
|
4690
4693
|
}
|
|
4691
4694
|
),
|
|
4692
4695
|
/* @__PURE__ */ s(
|
|
4693
4696
|
M,
|
|
4694
4697
|
{
|
|
4695
|
-
blocks: (
|
|
4698
|
+
blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
|
|
4696
4699
|
context: o,
|
|
4697
4700
|
registeredComponents: r,
|
|
4698
4701
|
linkComponent: e.linkComponent
|
|
@@ -4836,7 +4839,7 @@ const Di = async ({
|
|
|
4836
4839
|
(e != null && e.apiKey))
|
|
4837
4840
|
return _e({
|
|
4838
4841
|
model: t.model,
|
|
4839
|
-
apiKey: e.apiKey,
|
|
4842
|
+
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
4840
4843
|
apiVersion: e.apiVersion,
|
|
4841
4844
|
...(t == null ? void 0 : t.entry) && {
|
|
4842
4845
|
query: {
|
|
@@ -4848,7 +4851,7 @@ const Di = async ({
|
|
|
4848
4851
|
});
|
|
4849
4852
|
};
|
|
4850
4853
|
function Oi(e) {
|
|
4851
|
-
var h, g, u,
|
|
4854
|
+
var h, g, u, S, m, b, p;
|
|
4852
4855
|
function t() {
|
|
4853
4856
|
return "div";
|
|
4854
4857
|
}
|
|
@@ -4859,29 +4862,29 @@ function Oi(e) {
|
|
|
4859
4862
|
return Object.values(e.builderComponents);
|
|
4860
4863
|
}
|
|
4861
4864
|
function r() {
|
|
4862
|
-
var
|
|
4865
|
+
var f, v;
|
|
4863
4866
|
return [
|
|
4864
4867
|
e.attributes[K()],
|
|
4865
4868
|
"builder-symbol",
|
|
4866
|
-
(
|
|
4867
|
-
(
|
|
4869
|
+
(f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
|
|
4870
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4868
4871
|
].filter(Boolean).join(" ");
|
|
4869
4872
|
}
|
|
4870
4873
|
const [a, o] = k(() => {
|
|
4871
|
-
var
|
|
4872
|
-
return (
|
|
4874
|
+
var f;
|
|
4875
|
+
return (f = e.symbol) == null ? void 0 : f.content;
|
|
4873
4876
|
}), [l, c] = k(() => {
|
|
4874
|
-
var
|
|
4875
|
-
return (
|
|
4877
|
+
var f;
|
|
4878
|
+
return (f = e.symbol) == null ? void 0 : f.entry;
|
|
4876
4879
|
});
|
|
4877
4880
|
function d() {
|
|
4878
|
-
var
|
|
4879
|
-
a && l === ((
|
|
4881
|
+
var f;
|
|
4882
|
+
a && l === ((f = e.symbol) == null ? void 0 : f.entry) || Di({
|
|
4880
4883
|
symbol: e.symbol,
|
|
4881
4884
|
builderContextValue: e.builderContext
|
|
4882
|
-
}).then((
|
|
4883
|
-
var
|
|
4884
|
-
|
|
4885
|
+
}).then((v) => {
|
|
4886
|
+
var T;
|
|
4887
|
+
v && (o(v), c((T = e.symbol) == null ? void 0 : T.entry));
|
|
4885
4888
|
});
|
|
4886
4889
|
}
|
|
4887
4890
|
return B(() => {
|
|
@@ -4893,19 +4896,19 @@ function Oi(e) {
|
|
|
4893
4896
|
nonce: e.builderContext.nonce,
|
|
4894
4897
|
isNestedRender: !0,
|
|
4895
4898
|
apiVersion: e.builderContext.apiVersion,
|
|
4896
|
-
apiKey: e.builderContext.apiKey,
|
|
4899
|
+
apiKey: (h = e.symbol) != null && h.global && ((g = e.symbol) != null && g.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
4897
4900
|
context: {
|
|
4898
4901
|
...e.builderContext.context,
|
|
4899
|
-
symbolId: (
|
|
4902
|
+
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
4900
4903
|
},
|
|
4901
4904
|
customComponents: i(),
|
|
4902
4905
|
data: {
|
|
4903
|
-
...(
|
|
4906
|
+
...(S = e.symbol) == null ? void 0 : S.data,
|
|
4904
4907
|
...e.builderContext.localState,
|
|
4905
|
-
...(
|
|
4908
|
+
...(m = a == null ? void 0 : a.data) == null ? void 0 : m.state
|
|
4906
4909
|
},
|
|
4907
4910
|
canTrack: e.builderContext.canTrack,
|
|
4908
|
-
model: (
|
|
4911
|
+
model: (p = (b = e.symbol) == null ? void 0 : b.model) != null ? p : "",
|
|
4909
4912
|
content: a,
|
|
4910
4913
|
linkComponent: e.builderLinkComponent,
|
|
4911
4914
|
blocksWrapper: t(),
|