@builder.io/sdk-react 5.1.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +11 -11
- package/lib/browser/blocks-exports.mjs +281 -281
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-85aa99e6.cjs → server-entry-1549d863.cjs} +1 -1
- package/lib/browser/{server-entry-a3b5302c.js → server-entry-81390e9b.js} +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-90d607ca.js} +1 -1
- package/lib/edge/{accordion-1e467b30.cjs → accordion-ba377db1.cjs} +1 -1
- package/lib/edge/{blocks-6b821501.js → blocks-482bd303.js} +2 -2
- package/lib/edge/{blocks-4d57d38f.cjs → blocks-49400750.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-b2eb1d64.cjs → button-1dd20b20.cjs} +1 -1
- package/lib/edge/{button-52af8a54.js → button-76b09bda.js} +2 -2
- package/lib/edge/{columns-e0489b50.js → columns-89f6f5b7.js} +3 -3
- package/lib/edge/{columns-8eb66fad.cjs → columns-ed698360.cjs} +1 -1
- package/lib/edge/{content-variants-5003144d.js → content-variants-6e54d1d8.js} +12 -12
- package/lib/edge/{content-variants-6c1ee307.cjs → content-variants-98b86c90.cjs} +2 -2
- package/lib/edge/{custom-code-4e76fc0d.js → custom-code-3387f2ee.js} +1 -1
- package/lib/edge/{custom-code-bc787526.cjs → custom-code-62511fce.cjs} +1 -1
- package/lib/edge/{embed-8ef248c5.cjs → embed-54bfd2b5.cjs} +1 -1
- package/lib/edge/{embed-fd344d6d.js → embed-e24c574a.js} +1 -1
- package/lib/edge/{form-107c9eae.cjs → form-5c77fb87.cjs} +1 -1
- package/lib/edge/{form-4efa40a5.js → form-b3b23e9b.js} +3 -3
- package/lib/edge/{get-class-prop-name-e6f7321f.js → get-class-prop-name-2e01e11c.js} +1 -1
- package/lib/edge/{get-class-prop-name-2c2513e9.cjs → get-class-prop-name-3347a655.cjs} +1 -1
- package/lib/edge/{img-ab241f22.cjs → img-8430be52.cjs} +1 -1
- package/lib/edge/{img-a32b0723.js → img-d900f0a6.js} +2 -2
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-c48fe23a.js → input-6b9d2f0d.js} +1 -1
- package/lib/edge/{input-ada30ffb.cjs → input-e522b3f8.cjs} +1 -1
- package/lib/edge/{personalization-container-ad7cf89c.js → personalization-container-42afbf21.js} +4 -4
- package/lib/edge/{personalization-container-375a1501.cjs → personalization-container-9469f576.cjs} +1 -1
- package/lib/edge/{select-879c52dd.cjs → select-38371935.cjs} +1 -1
- package/lib/edge/{select-a49d819c.js → select-e1a9f4c9.js} +1 -1
- package/lib/edge/{server-entry-68d59577.js → server-entry-954fe774.js} +1 -1
- package/lib/edge/{server-entry-560732da.cjs → server-entry-a2bf7e77.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-5da991d1.cjs → slot-562ee3ff.cjs} +1 -1
- package/lib/edge/{slot-005d6258.js → slot-cc86bcca.js} +3 -3
- package/lib/edge/symbol-099ae199.cjs +1 -0
- package/lib/edge/symbol-6224d576.js +93 -0
- package/lib/edge/{tabs-69a36a5c.js → tabs-51cb7107.js} +3 -3
- package/lib/edge/{tabs-96367bf5.cjs → tabs-e1cf9ee7.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +11 -11
- package/lib/node/blocks-exports.mjs +283 -283
- 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-2529c06e.cjs → server-entry-1c10e3d9.cjs} +1 -1
- package/lib/node/{server-entry-fc7f08d8.js → server-entry-85c98f9a.js} +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-a5e6d580.cjs} +1 -1
- package/lib/node/{setIvm-41d8b067.js → setIvm-ed61fc8c.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-03c2678b.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1d85a066.cjs → should-force-browser-runtime-in-node-36ea59a2.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-81390e9b.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-81390e9b.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() {
|
|
@@ -859,51 +859,51 @@ function Ae(e) {
|
|
|
859
859
|
), 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
860
|
if (!u)
|
|
861
861
|
return "";
|
|
862
|
-
const
|
|
862
|
+
const S = c ? X({
|
|
863
863
|
className: u,
|
|
864
864
|
styles: c
|
|
865
|
-
}) : "",
|
|
865
|
+
}) : "", m = d ? X({
|
|
866
866
|
className: u,
|
|
867
867
|
styles: d,
|
|
868
868
|
mediaQuery: de(
|
|
869
869
|
"medium",
|
|
870
870
|
o
|
|
871
871
|
)
|
|
872
|
-
}) : "",
|
|
872
|
+
}) : "", b = h ? X({
|
|
873
873
|
className: u,
|
|
874
874
|
styles: h,
|
|
875
875
|
mediaQuery: de(
|
|
876
876
|
"small",
|
|
877
877
|
o
|
|
878
878
|
)
|
|
879
|
-
}) : "",
|
|
879
|
+
}) : "", p = g && l ? X({
|
|
880
880
|
className: u,
|
|
881
881
|
styles: g,
|
|
882
882
|
mediaQuery: de(
|
|
883
883
|
"xsmall",
|
|
884
884
|
o
|
|
885
885
|
)
|
|
886
|
-
}) : "",
|
|
887
|
-
let
|
|
888
|
-
if (
|
|
889
|
-
const
|
|
890
|
-
|
|
886
|
+
}) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
887
|
+
let v = "";
|
|
888
|
+
if (f) {
|
|
889
|
+
const y = ((q = (H = f.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
890
|
+
v = X({
|
|
891
891
|
className: `${u}:hover`,
|
|
892
892
|
styles: {
|
|
893
|
-
...
|
|
894
|
-
transition: `all ${
|
|
895
|
-
|
|
893
|
+
...y,
|
|
894
|
+
transition: `all ${f.duration}s ${ce(
|
|
895
|
+
f.easing
|
|
896
896
|
)}`,
|
|
897
|
-
transitionDelay:
|
|
897
|
+
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
898
898
|
}
|
|
899
899
|
}) || "";
|
|
900
900
|
}
|
|
901
901
|
return [
|
|
902
|
-
|
|
903
|
-
f,
|
|
902
|
+
S,
|
|
904
903
|
m,
|
|
905
|
-
|
|
906
|
-
|
|
904
|
+
b,
|
|
905
|
+
p,
|
|
906
|
+
v
|
|
907
907
|
].join(" ");
|
|
908
908
|
}
|
|
909
909
|
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
@@ -922,7 +922,7 @@ function sn(e) {
|
|
|
922
922
|
}, []), /* @__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
923
|
}
|
|
924
924
|
function ue(e) {
|
|
925
|
-
var h, g, u,
|
|
925
|
+
var h, g, u, S;
|
|
926
926
|
function t() {
|
|
927
927
|
return Kt({
|
|
928
928
|
block: e.block,
|
|
@@ -934,17 +934,17 @@ function ue(e) {
|
|
|
934
934
|
update: !1
|
|
935
935
|
}));
|
|
936
936
|
function r() {
|
|
937
|
-
var
|
|
937
|
+
var b;
|
|
938
938
|
if (n.value && !n.update && !le())
|
|
939
939
|
return n.value;
|
|
940
|
-
const
|
|
940
|
+
const m = (b = e.block.repeat) != null && b.collection ? e.block : Ft({
|
|
941
941
|
block: e.block,
|
|
942
942
|
localState: e.context.localState,
|
|
943
943
|
rootState: e.context.rootState,
|
|
944
944
|
rootSetState: e.context.rootSetState,
|
|
945
945
|
context: e.context.context
|
|
946
946
|
});
|
|
947
|
-
return n.value =
|
|
947
|
+
return n.value = m, n.update = !1, m;
|
|
948
948
|
}
|
|
949
949
|
function a() {
|
|
950
950
|
return zt({
|
|
@@ -954,25 +954,25 @@ function ue(e) {
|
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
function o() {
|
|
957
|
-
var
|
|
958
|
-
return e.block.tagName === "a" || ((
|
|
957
|
+
var b;
|
|
958
|
+
return e.block.tagName === "a" || ((b = r().properties) == null ? void 0 : b.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
959
959
|
}
|
|
960
960
|
function l() {
|
|
961
|
-
var
|
|
962
|
-
if ((
|
|
963
|
-
return !!((
|
|
964
|
-
const
|
|
965
|
-
return ("show" in r() ? r().show : !0) && !
|
|
961
|
+
var p, f;
|
|
962
|
+
if ((p = e.block.repeat) != null && p.collection)
|
|
963
|
+
return !!((f = t == null ? void 0 : t()) != null && f.length);
|
|
964
|
+
const m = "hide" in r() ? r().hide : !1;
|
|
965
|
+
return ("show" in r() ? r().show : !0) && !m;
|
|
966
966
|
}
|
|
967
967
|
function c() {
|
|
968
|
-
var
|
|
969
|
-
return !((
|
|
968
|
+
var b, p;
|
|
969
|
+
return !((b = a == null ? void 0 : a()) != null && b.component) && !t() ? (p = r().children) != null ? p : [] : [];
|
|
970
970
|
}
|
|
971
971
|
function d() {
|
|
972
|
-
var
|
|
972
|
+
var m, b, p, f;
|
|
973
973
|
return {
|
|
974
|
-
blockChildren: (
|
|
975
|
-
componentRef: (
|
|
974
|
+
blockChildren: (m = r().children) != null ? m : [],
|
|
975
|
+
componentRef: (b = a == null ? void 0 : a()) == null ? void 0 : b.component,
|
|
976
976
|
componentOptions: {
|
|
977
977
|
...Pt(r(), e.context),
|
|
978
978
|
...Qt(a(), r()),
|
|
@@ -988,16 +988,16 @@ function ue(e) {
|
|
|
988
988
|
linkComponent: e.linkComponent,
|
|
989
989
|
registeredComponents: e.registeredComponents,
|
|
990
990
|
builderBlock: r(),
|
|
991
|
-
includeBlockProps: ((
|
|
992
|
-
isInteractive: !((
|
|
991
|
+
includeBlockProps: ((p = a == null ? void 0 : a()) == null ? void 0 : p.noWrap) === !0,
|
|
992
|
+
isInteractive: !((f = a == null ? void 0 : a()) != null && f.isRSC && O === "rsc")
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
995
|
return B(() => {
|
|
996
|
-
const
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
...
|
|
1000
|
-
elementId:
|
|
996
|
+
const m = r().id, b = r().animations;
|
|
997
|
+
b && m && _t(
|
|
998
|
+
b.map((p) => ({
|
|
999
|
+
...p,
|
|
1000
|
+
elementId: m
|
|
1001
1001
|
}))
|
|
1002
1002
|
);
|
|
1003
1003
|
}, []), B(() => {
|
|
@@ -1011,15 +1011,15 @@ function ue(e) {
|
|
|
1011
1011
|
id: e.block.id
|
|
1012
1012
|
}
|
|
1013
1013
|
),
|
|
1014
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (
|
|
1014
|
+
(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
1015
|
Ve,
|
|
1016
1016
|
{
|
|
1017
|
-
repeatContext:
|
|
1018
|
-
block:
|
|
1017
|
+
repeatContext: m.context,
|
|
1018
|
+
block: m.block,
|
|
1019
1019
|
registeredComponents: e.registeredComponents,
|
|
1020
1020
|
linkComponent: e.linkComponent
|
|
1021
1021
|
},
|
|
1022
|
-
Re(
|
|
1022
|
+
Re(b)
|
|
1023
1023
|
)) }) : /* @__PURE__ */ s(
|
|
1024
1024
|
Pe,
|
|
1025
1025
|
{
|
|
@@ -1033,15 +1033,15 @@ function ue(e) {
|
|
|
1033
1033
|
includeBlockProps: d().includeBlockProps,
|
|
1034
1034
|
isInteractive: d().isInteractive
|
|
1035
1035
|
}
|
|
1036
|
-
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((
|
|
1036
|
+
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
|
|
1037
1037
|
Ve,
|
|
1038
1038
|
{
|
|
1039
|
-
repeatContext:
|
|
1040
|
-
block:
|
|
1039
|
+
repeatContext: m.context,
|
|
1040
|
+
block: m.block,
|
|
1041
1041
|
registeredComponents: e.registeredComponents,
|
|
1042
1042
|
linkComponent: e.linkComponent
|
|
1043
1043
|
},
|
|
1044
|
-
Re(
|
|
1044
|
+
Re(b)
|
|
1045
1045
|
)) }) : /* @__PURE__ */ D(
|
|
1046
1046
|
rn,
|
|
1047
1047
|
{
|
|
@@ -1063,15 +1063,15 @@ function ue(e) {
|
|
|
1063
1063
|
isInteractive: d().isInteractive
|
|
1064
1064
|
}
|
|
1065
1065
|
),
|
|
1066
|
-
(g = c()) == null ? void 0 : g.map((
|
|
1066
|
+
(g = c()) == null ? void 0 : g.map((m) => /* @__PURE__ */ s(
|
|
1067
1067
|
ue,
|
|
1068
1068
|
{
|
|
1069
|
-
block:
|
|
1069
|
+
block: m,
|
|
1070
1070
|
registeredComponents: e.registeredComponents,
|
|
1071
1071
|
linkComponent: e.linkComponent,
|
|
1072
1072
|
context: e.context
|
|
1073
1073
|
},
|
|
1074
|
-
|
|
1074
|
+
m.id
|
|
1075
1075
|
))
|
|
1076
1076
|
]
|
|
1077
1077
|
}
|
|
@@ -1177,7 +1177,7 @@ function M(e) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
const un = (e) => `builder-columns ${e}-breakpoints`;
|
|
1179
1179
|
function dn(e) {
|
|
1180
|
-
var
|
|
1180
|
+
var b, p;
|
|
1181
1181
|
function t() {
|
|
1182
1182
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1183
1183
|
}
|
|
@@ -1187,28 +1187,28 @@ function dn(e) {
|
|
|
1187
1187
|
function i() {
|
|
1188
1188
|
return e.stackColumnsAt || "tablet";
|
|
1189
1189
|
}
|
|
1190
|
-
function r(
|
|
1191
|
-
return
|
|
1190
|
+
function r(f) {
|
|
1191
|
+
return f.link ? e.builderLinkComponent || "a" : "div";
|
|
1192
1192
|
}
|
|
1193
|
-
function a(
|
|
1194
|
-
var
|
|
1195
|
-
return ((
|
|
1193
|
+
function a(f) {
|
|
1194
|
+
var v;
|
|
1195
|
+
return ((v = n()[f]) == null ? void 0 : v.width) || 100 / n().length;
|
|
1196
1196
|
}
|
|
1197
|
-
function o(
|
|
1198
|
-
const
|
|
1199
|
-
return `calc(${
|
|
1197
|
+
function o(f) {
|
|
1198
|
+
const v = a(f), T = t() * (n().length - 1) * (v / 100);
|
|
1199
|
+
return `calc(${v}% - ${T}px)`;
|
|
1200
1200
|
}
|
|
1201
1201
|
function l({
|
|
1202
|
-
stackedStyle:
|
|
1203
|
-
desktopStyle:
|
|
1202
|
+
stackedStyle: f,
|
|
1203
|
+
desktopStyle: v
|
|
1204
1204
|
}) {
|
|
1205
|
-
return i() === "tablet" ?
|
|
1205
|
+
return i() === "tablet" ? f : v;
|
|
1206
1206
|
}
|
|
1207
1207
|
function c({
|
|
1208
|
-
stackedStyle:
|
|
1209
|
-
desktopStyle:
|
|
1208
|
+
stackedStyle: f,
|
|
1209
|
+
desktopStyle: v
|
|
1210
1210
|
}) {
|
|
1211
|
-
return i() === "never" ?
|
|
1211
|
+
return i() === "never" ? v : f;
|
|
1212
1212
|
}
|
|
1213
1213
|
function d() {
|
|
1214
1214
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1222,8 +1222,8 @@ function dn(e) {
|
|
|
1222
1222
|
})
|
|
1223
1223
|
};
|
|
1224
1224
|
}
|
|
1225
|
-
function g(
|
|
1226
|
-
const
|
|
1225
|
+
function g(f) {
|
|
1226
|
+
const v = f === 0 ? 0 : t(), T = o(f), E = `${v}px`, U = "100%", H = 0;
|
|
1227
1227
|
return {
|
|
1228
1228
|
...{
|
|
1229
1229
|
display: "flex",
|
|
@@ -1250,14 +1250,14 @@ function dn(e) {
|
|
|
1250
1250
|
})
|
|
1251
1251
|
};
|
|
1252
1252
|
}
|
|
1253
|
-
function u(
|
|
1253
|
+
function u(f) {
|
|
1254
1254
|
var T, E;
|
|
1255
1255
|
return nt(
|
|
1256
1256
|
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1257
|
-
)[
|
|
1257
|
+
)[f].max;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const
|
|
1259
|
+
function S() {
|
|
1260
|
+
const f = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1261
1261
|
return `
|
|
1262
1262
|
@media (max-width: ${u("medium")}px) {
|
|
1263
1263
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1265,7 +1265,7 @@ function dn(e) {
|
|
|
1265
1265
|
align-items: stretch;
|
|
1266
1266
|
}
|
|
1267
1267
|
|
|
1268
|
-
${
|
|
1268
|
+
${f} {
|
|
1269
1269
|
width: var(--column-width-tablet) !important;
|
|
1270
1270
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1271
1271
|
}
|
|
@@ -1277,20 +1277,20 @@ function dn(e) {
|
|
|
1277
1277
|
align-items: stretch;
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
|
-
${
|
|
1280
|
+
${f} {
|
|
1281
1281
|
width: var(--column-width-mobile) !important;
|
|
1282
1282
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1283
1283
|
}
|
|
1284
1284
|
},
|
|
1285
1285
|
`;
|
|
1286
1286
|
}
|
|
1287
|
-
function f
|
|
1287
|
+
function m(f, v) {
|
|
1288
1288
|
return {
|
|
1289
|
-
...
|
|
1290
|
-
href:
|
|
1289
|
+
...f.link ? {
|
|
1290
|
+
href: f.link
|
|
1291
1291
|
} : {},
|
|
1292
1292
|
[K()]: "builder-column",
|
|
1293
|
-
style: Xe(g(
|
|
1293
|
+
style: Xe(g(v))
|
|
1294
1294
|
};
|
|
1295
1295
|
}
|
|
1296
1296
|
return /* @__PURE__ */ D(w, { children: [
|
|
@@ -1302,39 +1302,39 @@ function dn(e) {
|
|
|
1302
1302
|
/* @__PURE__ */ D(
|
|
1303
1303
|
"div",
|
|
1304
1304
|
{
|
|
1305
|
-
className: un((
|
|
1305
|
+
className: un((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
|
|
1306
1306
|
style: h(),
|
|
1307
1307
|
children: [
|
|
1308
1308
|
/* @__PURE__ */ s(
|
|
1309
1309
|
te,
|
|
1310
1310
|
{
|
|
1311
1311
|
id: "builderio-columns",
|
|
1312
|
-
styles:
|
|
1312
|
+
styles: S(),
|
|
1313
1313
|
nonce: e.builderContext.nonce
|
|
1314
1314
|
}
|
|
1315
1315
|
),
|
|
1316
|
-
(
|
|
1316
|
+
(p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
|
|
1317
1317
|
xe,
|
|
1318
1318
|
{
|
|
1319
|
-
TagName: r(
|
|
1319
|
+
TagName: r(f),
|
|
1320
1320
|
actionAttributes: {},
|
|
1321
|
-
attributes: f
|
|
1321
|
+
attributes: m(f, v),
|
|
1322
1322
|
children: /* @__PURE__ */ s(
|
|
1323
1323
|
M,
|
|
1324
1324
|
{
|
|
1325
|
-
path: `columns.${
|
|
1325
|
+
path: `columns.${v}.blocks`,
|
|
1326
1326
|
parent: e.builderBlock.id,
|
|
1327
1327
|
context: e.builderContext,
|
|
1328
1328
|
registeredComponents: e.builderComponents,
|
|
1329
1329
|
linkComponent: e.builderLinkComponent,
|
|
1330
|
-
blocks:
|
|
1330
|
+
blocks: f.blocks,
|
|
1331
1331
|
styleProp: {
|
|
1332
1332
|
flexGrow: "1"
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
)
|
|
1336
1336
|
},
|
|
1337
|
-
|
|
1337
|
+
v
|
|
1338
1338
|
))
|
|
1339
1339
|
]
|
|
1340
1340
|
}
|
|
@@ -1492,42 +1492,42 @@ function yn(e, t, n, i) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
function o(d, h) {
|
|
1494
1494
|
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("/") && (
|
|
1495
|
+
const u = h.property, S = h.operator;
|
|
1496
|
+
let m = h.value;
|
|
1497
|
+
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
1498
|
return !0;
|
|
1499
|
-
if (Array.isArray(
|
|
1500
|
-
return
|
|
1499
|
+
if (Array.isArray(m))
|
|
1500
|
+
return S === "isNot" ? m.every((p) => o(d, {
|
|
1501
1501
|
property: u,
|
|
1502
|
-
operator:
|
|
1503
|
-
value:
|
|
1504
|
-
})) : !!
|
|
1502
|
+
operator: S,
|
|
1503
|
+
value: p
|
|
1504
|
+
})) : !!m.find((p) => o(d, {
|
|
1505
1505
|
property: u,
|
|
1506
|
-
operator:
|
|
1507
|
-
value:
|
|
1506
|
+
operator: S,
|
|
1507
|
+
value: p
|
|
1508
1508
|
}));
|
|
1509
|
-
const
|
|
1510
|
-
if (Array.isArray(
|
|
1511
|
-
return
|
|
1512
|
-
switch (
|
|
1509
|
+
const b = d[u];
|
|
1510
|
+
if (Array.isArray(b))
|
|
1511
|
+
return b.includes(m);
|
|
1512
|
+
switch (S) {
|
|
1513
1513
|
case "is":
|
|
1514
|
-
return
|
|
1514
|
+
return b === m;
|
|
1515
1515
|
case "isNot":
|
|
1516
|
-
return
|
|
1516
|
+
return b !== m;
|
|
1517
1517
|
case "contains":
|
|
1518
|
-
return (r(
|
|
1518
|
+
return (r(b) || Array.isArray(b)) && b.includes(String(m));
|
|
1519
1519
|
case "startsWith":
|
|
1520
|
-
return r(
|
|
1520
|
+
return r(b) && b.startsWith(String(m));
|
|
1521
1521
|
case "endsWith":
|
|
1522
|
-
return r(
|
|
1522
|
+
return r(b) && b.endsWith(String(m));
|
|
1523
1523
|
case "greaterThan":
|
|
1524
|
-
return a(
|
|
1524
|
+
return a(b) && a(m) && b > m;
|
|
1525
1525
|
case "lessThan":
|
|
1526
|
-
return a(
|
|
1526
|
+
return a(b) && a(m) && b < m;
|
|
1527
1527
|
case "greaterThanOrEqualTo":
|
|
1528
|
-
return a(
|
|
1528
|
+
return a(b) && a(m) && b >= m;
|
|
1529
1529
|
case "lessThanOrEqualTo":
|
|
1530
|
-
return a(
|
|
1530
|
+
return a(b) && a(m) && b <= m;
|
|
1531
1531
|
default:
|
|
1532
1532
|
return !1;
|
|
1533
1533
|
}
|
|
@@ -1892,7 +1892,7 @@ function Rn(e) {
|
|
|
1892
1892
|
};
|
|
1893
1893
|
}
|
|
1894
1894
|
function a() {
|
|
1895
|
-
const
|
|
1895
|
+
const S = {
|
|
1896
1896
|
...{
|
|
1897
1897
|
display: "flex",
|
|
1898
1898
|
flexDirection: "column"
|
|
@@ -1901,7 +1901,7 @@ function Rn(e) {
|
|
|
1901
1901
|
cursor: "pointer"
|
|
1902
1902
|
};
|
|
1903
1903
|
return Object.fromEntries(
|
|
1904
|
-
Object.entries(
|
|
1904
|
+
Object.entries(S).filter(([m, b]) => b !== void 0)
|
|
1905
1905
|
);
|
|
1906
1906
|
}
|
|
1907
1907
|
function o(u) {
|
|
@@ -1913,23 +1913,23 @@ function Rn(e) {
|
|
|
1913
1913
|
function c() {
|
|
1914
1914
|
let u = null;
|
|
1915
1915
|
if (e.grid && t.length && document) {
|
|
1916
|
-
const
|
|
1917
|
-
let
|
|
1918
|
-
`.builder-accordion-title[data-index="${
|
|
1916
|
+
const m = t[0];
|
|
1917
|
+
let p = document.querySelector(
|
|
1918
|
+
`.builder-accordion-title[data-index="${m}"]`
|
|
1919
1919
|
);
|
|
1920
|
-
if (u =
|
|
1921
|
-
let
|
|
1922
|
-
for (;
|
|
1923
|
-
if (
|
|
1924
|
-
if (
|
|
1920
|
+
if (u = m, p) {
|
|
1921
|
+
let f = p.getBoundingClientRect();
|
|
1922
|
+
for (; p = p && p.nextElementSibling; )
|
|
1923
|
+
if (p) {
|
|
1924
|
+
if (p.classList.contains("builder-accordion-detail"))
|
|
1925
1925
|
continue;
|
|
1926
|
-
const
|
|
1927
|
-
if (
|
|
1926
|
+
const v = p.getBoundingClientRect();
|
|
1927
|
+
if (v.left > f.left) {
|
|
1928
1928
|
const T = parseInt(
|
|
1929
|
-
|
|
1929
|
+
p.getAttribute("data-index") || "",
|
|
1930
1930
|
10
|
|
1931
1931
|
);
|
|
1932
|
-
isNaN(T) || (
|
|
1932
|
+
isNaN(T) || (f = v, u = T);
|
|
1933
1933
|
} else
|
|
1934
1934
|
break;
|
|
1935
1935
|
}
|
|
@@ -1945,31 +1945,31 @@ function Rn(e) {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
};
|
|
1947
1947
|
return Object.fromEntries(
|
|
1948
|
-
Object.entries(u).filter(([
|
|
1948
|
+
Object.entries(u).filter(([S, m]) => m !== void 0)
|
|
1949
1949
|
);
|
|
1950
1950
|
}
|
|
1951
1951
|
function h(u) {
|
|
1952
|
-
t.includes(u) ? n(i() ? [] : t.filter((
|
|
1952
|
+
t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
|
|
1953
1953
|
}
|
|
1954
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u,
|
|
1954
|
+
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
1955
|
/* @__PURE__ */ s(
|
|
1956
1956
|
"div",
|
|
1957
1957
|
{
|
|
1958
|
-
className: o(
|
|
1958
|
+
className: o(S),
|
|
1959
1959
|
style: {
|
|
1960
1960
|
...a(),
|
|
1961
1961
|
...e.grid && {
|
|
1962
1962
|
width: e.gridRowWidth,
|
|
1963
|
-
order: c() !== null ? Ne(
|
|
1963
|
+
order: c() !== null ? Ne(S) : Ne(S + 1)
|
|
1964
1964
|
}
|
|
1965
1965
|
},
|
|
1966
|
-
"data-index":
|
|
1967
|
-
onClick: (
|
|
1966
|
+
"data-index": S,
|
|
1967
|
+
onClick: (m) => h(S),
|
|
1968
1968
|
children: /* @__PURE__ */ s(
|
|
1969
1969
|
M,
|
|
1970
1970
|
{
|
|
1971
1971
|
blocks: u.title,
|
|
1972
|
-
path: `items.${
|
|
1972
|
+
path: `items.${S}.title`,
|
|
1973
1973
|
parent: e.builderBlock.id,
|
|
1974
1974
|
context: e.builderContext,
|
|
1975
1975
|
registeredComponents: e.builderComponents,
|
|
@@ -1978,16 +1978,16 @@ function Rn(e) {
|
|
|
1978
1978
|
)
|
|
1979
1979
|
}
|
|
1980
1980
|
),
|
|
1981
|
-
t.includes(
|
|
1981
|
+
t.includes(S) ? /* @__PURE__ */ s(
|
|
1982
1982
|
"div",
|
|
1983
1983
|
{
|
|
1984
|
-
className: l(
|
|
1984
|
+
className: l(S),
|
|
1985
1985
|
style: d(),
|
|
1986
1986
|
children: /* @__PURE__ */ s(
|
|
1987
1987
|
M,
|
|
1988
1988
|
{
|
|
1989
1989
|
blocks: u.detail,
|
|
1990
|
-
path: `items.${
|
|
1990
|
+
path: `items.${S}.detail`,
|
|
1991
1991
|
parent: e.builderBlock.id,
|
|
1992
1992
|
context: e.builderContext,
|
|
1993
1993
|
registeredComponents: e.builderComponents,
|
|
@@ -1996,7 +1996,7 @@ function Rn(e) {
|
|
|
1996
1996
|
)
|
|
1997
1997
|
}
|
|
1998
1998
|
) : null
|
|
1999
|
-
] },
|
|
1999
|
+
] }, S)) });
|
|
2000
2000
|
}
|
|
2001
2001
|
const Pn = {
|
|
2002
2002
|
name: "Core:Button",
|
|
@@ -2407,7 +2407,7 @@ function G(e) {
|
|
|
2407
2407
|
);
|
|
2408
2408
|
}
|
|
2409
2409
|
function $n(e) {
|
|
2410
|
-
var
|
|
2410
|
+
var v, T, E, U, H, q, y, x, V, A, W, R, P;
|
|
2411
2411
|
const t = z(null), [n, i] = k(
|
|
2412
2412
|
() => Ie.getUserAttributes()
|
|
2413
2413
|
), [r, a] = k(
|
|
@@ -2436,14 +2436,14 @@ function $n(e) {
|
|
|
2436
2436
|
ee((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2437
2437
|
);
|
|
2438
2438
|
}
|
|
2439
|
-
), [u,
|
|
2440
|
-
function
|
|
2439
|
+
), [u, S] = k(() => !1);
|
|
2440
|
+
function m() {
|
|
2441
2441
|
return {
|
|
2442
2442
|
...e.attributes,
|
|
2443
2443
|
[K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
|
|
2444
2444
|
};
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function b() {
|
|
2447
2447
|
return (e.variants || []).filter((I) => {
|
|
2448
2448
|
var N, C, $, F;
|
|
2449
2449
|
return yn(
|
|
@@ -2459,17 +2459,17 @@ function $n(e) {
|
|
|
2459
2459
|
);
|
|
2460
2460
|
});
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function p() {
|
|
2463
2463
|
var I;
|
|
2464
2464
|
return Cn({
|
|
2465
2465
|
variants: e.variants,
|
|
2466
2466
|
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2467
2467
|
isHydrated: u,
|
|
2468
|
-
filteredVariants:
|
|
2468
|
+
filteredVariants: b(),
|
|
2469
2469
|
previewingIndex: e.previewingIndex
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function f() {
|
|
2473
2473
|
return (e.variants || []).map(
|
|
2474
2474
|
(I, N) => {
|
|
2475
2475
|
var C;
|
|
@@ -2479,7 +2479,7 @@ function $n(e) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
return B(() => {
|
|
2481
2481
|
var N;
|
|
2482
|
-
|
|
2482
|
+
S(!0);
|
|
2483
2483
|
const I = Ie.subscribeOnUserAttributesChange(
|
|
2484
2484
|
(C) => {
|
|
2485
2485
|
i(C);
|
|
@@ -2489,7 +2489,7 @@ function $n(e) {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
);
|
|
2491
2491
|
if (!(_() || le())) {
|
|
2492
|
-
const C =
|
|
2492
|
+
const C = b()[0];
|
|
2493
2493
|
t.current && (t.current.dispatchEvent(
|
|
2494
2494
|
new CustomEvent("builder.variantLoaded", {
|
|
2495
2495
|
detail: {
|
|
@@ -2516,18 +2516,18 @@ function $n(e) {
|
|
|
2516
2516
|
c.push(I);
|
|
2517
2517
|
}, []), B(() => () => {
|
|
2518
2518
|
c.forEach((I) => I());
|
|
2519
|
-
}, []), /* @__PURE__ */ D("div", { ref: t, ...
|
|
2519
|
+
}, []), /* @__PURE__ */ D("div", { ref: t, ...m(), children: [
|
|
2520
2520
|
u && ie.includes(O) ? /* @__PURE__ */ s(
|
|
2521
2521
|
M,
|
|
2522
2522
|
{
|
|
2523
|
-
blocks:
|
|
2524
|
-
parent: (
|
|
2525
|
-
path:
|
|
2523
|
+
blocks: p().blocks,
|
|
2524
|
+
parent: (v = e.builderBlock) == null ? void 0 : v.id,
|
|
2525
|
+
path: p().path,
|
|
2526
2526
|
context: e.builderContext,
|
|
2527
2527
|
registeredComponents: e.builderComponents,
|
|
2528
2528
|
BlocksWrapperProps: {
|
|
2529
2529
|
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2530
|
-
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${
|
|
2530
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${p().index}`
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
2533
|
) : null,
|
|
@@ -2537,7 +2537,7 @@ function $n(e) {
|
|
|
2537
2537
|
te,
|
|
2538
2538
|
{
|
|
2539
2539
|
nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
|
|
2540
|
-
styles:
|
|
2540
|
+
styles: f(),
|
|
2541
2541
|
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2542
2542
|
}
|
|
2543
2543
|
),
|
|
@@ -2546,10 +2546,10 @@ function $n(e) {
|
|
|
2546
2546
|
{
|
|
2547
2547
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2548
2548
|
scriptStr: o,
|
|
2549
|
-
id: `variants-visibility-script-${(
|
|
2549
|
+
id: `variants-visibility-script-${(y = e.builderBlock) == null ? void 0 : y.id}`
|
|
2550
2550
|
}
|
|
2551
2551
|
),
|
|
2552
|
-
(
|
|
2552
|
+
(x = e.variants) == null ? void 0 : x.map((I, N) => {
|
|
2553
2553
|
var C, $, F, L, j, Te;
|
|
2554
2554
|
return /* @__PURE__ */ s(
|
|
2555
2555
|
M,
|
|
@@ -2581,14 +2581,14 @@ function $n(e) {
|
|
|
2581
2581
|
/* @__PURE__ */ s(
|
|
2582
2582
|
M,
|
|
2583
2583
|
{
|
|
2584
|
-
blocks:
|
|
2584
|
+
blocks: p().blocks,
|
|
2585
2585
|
parent: (V = e.builderBlock) == null ? void 0 : V.id,
|
|
2586
|
-
path:
|
|
2586
|
+
path: p().path,
|
|
2587
2587
|
context: e.builderContext,
|
|
2588
2588
|
registeredComponents: e.builderComponents,
|
|
2589
2589
|
BlocksWrapperProps: {
|
|
2590
2590
|
...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
|
|
2591
|
-
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${
|
|
2591
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
|
|
2592
2592
|
},
|
|
2593
2593
|
children: h ? /* @__PURE__ */ s(
|
|
2594
2594
|
G,
|
|
@@ -3317,12 +3317,12 @@ const Qn = {
|
|
|
3317
3317
|
function Zn(e) {
|
|
3318
3318
|
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
|
|
3319
3319
|
function c(u) {
|
|
3320
|
-
var
|
|
3321
|
-
const
|
|
3320
|
+
var m, b;
|
|
3321
|
+
const S = {
|
|
3322
3322
|
...e.builderContext.rootState,
|
|
3323
3323
|
...u
|
|
3324
3324
|
};
|
|
3325
|
-
e.builderContext.rootSetState ? (
|
|
3325
|
+
e.builderContext.rootSetState ? (b = (m = e.builderContext).rootSetState) == null || b.call(m, S) : e.builderContext.rootState = S;
|
|
3326
3326
|
}
|
|
3327
3327
|
function d() {
|
|
3328
3328
|
return _() && e.previewState || n;
|
|
@@ -3331,86 +3331,86 @@ function Zn(e) {
|
|
|
3331
3331
|
return JSON.stringify(u, null, 2);
|
|
3332
3332
|
}
|
|
3333
3333
|
function g(u) {
|
|
3334
|
-
var
|
|
3335
|
-
const
|
|
3334
|
+
var m;
|
|
3335
|
+
const S = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3336
3336
|
if (e.sendSubmissionsTo === "zapier")
|
|
3337
3337
|
u.preventDefault();
|
|
3338
|
-
else if (
|
|
3338
|
+
else if (S) {
|
|
3339
3339
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3340
3340
|
u.preventDefault();
|
|
3341
3341
|
return;
|
|
3342
3342
|
}
|
|
3343
3343
|
u.preventDefault();
|
|
3344
|
-
const
|
|
3345
|
-
let
|
|
3346
|
-
const
|
|
3347
|
-
(
|
|
3348
|
-
).map((
|
|
3349
|
-
let
|
|
3350
|
-
const V =
|
|
3351
|
-
if (
|
|
3352
|
-
if (
|
|
3353
|
-
if (
|
|
3354
|
-
return
|
|
3344
|
+
const b = u.currentTarget || u.target, p = e.customHeaders || {};
|
|
3345
|
+
let f;
|
|
3346
|
+
const v = new FormData(b), T = Array.from(b.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).filter(
|
|
3347
|
+
(y) => !!y.name && (y.type !== "radio" || y.checked)
|
|
3348
|
+
).map((y) => {
|
|
3349
|
+
let x;
|
|
3350
|
+
const V = y.name;
|
|
3351
|
+
if (y instanceof HTMLInputElement)
|
|
3352
|
+
if (y.type === "radio") {
|
|
3353
|
+
if (y.checked)
|
|
3354
|
+
return x = y.value, {
|
|
3355
3355
|
key: V,
|
|
3356
|
-
value:
|
|
3356
|
+
value: x
|
|
3357
3357
|
};
|
|
3358
|
-
} else if (
|
|
3359
|
-
|
|
3360
|
-
else if (
|
|
3361
|
-
const A =
|
|
3362
|
-
isNaN(A) || (
|
|
3358
|
+
} else if (y.type === "checkbox")
|
|
3359
|
+
x = y.checked;
|
|
3360
|
+
else if (y.type === "number" || y.type === "range") {
|
|
3361
|
+
const A = y.valueAsNumber;
|
|
3362
|
+
isNaN(A) || (x = A);
|
|
3363
3363
|
} else
|
|
3364
|
-
|
|
3364
|
+
y.type === "file" ? x = y.files : x = y.value;
|
|
3365
3365
|
else
|
|
3366
|
-
|
|
3366
|
+
x = y.value;
|
|
3367
3367
|
return {
|
|
3368
3368
|
key: V,
|
|
3369
|
-
value:
|
|
3369
|
+
value: x
|
|
3370
3370
|
};
|
|
3371
3371
|
});
|
|
3372
3372
|
let E = e.contentType;
|
|
3373
|
-
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value:
|
|
3374
|
-
(
|
|
3373
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
|
|
3374
|
+
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (E = "multipart/form-data");
|
|
3375
3375
|
}), E !== "application/json")
|
|
3376
|
-
|
|
3376
|
+
f = v;
|
|
3377
3377
|
else {
|
|
3378
|
-
const
|
|
3379
|
-
Array.from(T).forEach(({ value:
|
|
3380
|
-
Ke(
|
|
3381
|
-
}),
|
|
3378
|
+
const y = {};
|
|
3379
|
+
Array.from(T).forEach(({ value: x, key: V }) => {
|
|
3380
|
+
Ke(y, V, x);
|
|
3381
|
+
}), f = JSON.stringify(y);
|
|
3382
3382
|
}
|
|
3383
|
-
E && E !== "multipart/form-data" && (
|
|
3384
|
-
const U = new CustomEvent("presubmit", { detail: { body:
|
|
3383
|
+
E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
|
|
3384
|
+
const U = new CustomEvent("presubmit", { detail: { body: f } });
|
|
3385
3385
|
if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
|
|
3386
3386
|
return;
|
|
3387
3387
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3388
|
-
const
|
|
3389
|
-
console.error(
|
|
3388
|
+
const y = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3389
|
+
console.error(y), i("error"), c({ formErrorMessage: y });
|
|
3390
3390
|
return;
|
|
3391
3391
|
}
|
|
3392
3392
|
const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3393
3393
|
e.sendSubmissionsToEmail || ""
|
|
3394
3394
|
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3395
|
-
Le(q), fetch(q, { body:
|
|
3396
|
-
async (
|
|
3395
|
+
Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
|
|
3396
|
+
async (y) => {
|
|
3397
3397
|
var A, W;
|
|
3398
|
-
let
|
|
3399
|
-
const V =
|
|
3400
|
-
if (V && V.indexOf("application/json") !== -1 ?
|
|
3398
|
+
let x;
|
|
3399
|
+
const V = y.headers.get("content-type");
|
|
3400
|
+
if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
|
|
3401
3401
|
const R = new CustomEvent("submit:error", {
|
|
3402
|
-
detail: { error:
|
|
3402
|
+
detail: { error: x, status: y.status }
|
|
3403
3403
|
});
|
|
3404
3404
|
if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3405
3405
|
return;
|
|
3406
|
-
a(
|
|
3407
|
-
let P = e.errorMessagePath ? qe(
|
|
3406
|
+
a(x), i("error");
|
|
3407
|
+
let P = e.errorMessagePath ? qe(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3408
3408
|
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3409
3409
|
return;
|
|
3410
3410
|
}
|
|
3411
|
-
if (a(
|
|
3411
|
+
if (a(x), i(y.ok ? "success" : "error"), y.ok) {
|
|
3412
3412
|
const R = new CustomEvent("submit:success", {
|
|
3413
|
-
detail: { res:
|
|
3413
|
+
detail: { res: y, body: x }
|
|
3414
3414
|
});
|
|
3415
3415
|
if (t.current) {
|
|
3416
3416
|
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
@@ -3427,11 +3427,11 @@ function Zn(e) {
|
|
|
3427
3427
|
location.href = e.successUrl;
|
|
3428
3428
|
}
|
|
3429
3429
|
},
|
|
3430
|
-
(
|
|
3431
|
-
const
|
|
3432
|
-
detail: { error:
|
|
3430
|
+
(y) => {
|
|
3431
|
+
const x = new CustomEvent("submit:error", {
|
|
3432
|
+
detail: { error: y }
|
|
3433
3433
|
});
|
|
3434
|
-
t.current && (t.current.dispatchEvent(
|
|
3434
|
+
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (a(y), i("error"));
|
|
3435
3435
|
}
|
|
3436
3436
|
);
|
|
3437
3437
|
}
|
|
@@ -3875,24 +3875,24 @@ function di(e) {
|
|
|
3875
3875
|
});
|
|
3876
3876
|
return B(() => {
|
|
3877
3877
|
if (e.lazyLoad) {
|
|
3878
|
-
const
|
|
3879
|
-
|
|
3880
|
-
if (!
|
|
3878
|
+
const S = new IntersectionObserver(function(m) {
|
|
3879
|
+
m.forEach(function(b) {
|
|
3880
|
+
if (!b.isIntersecting)
|
|
3881
3881
|
return;
|
|
3882
|
-
const
|
|
3882
|
+
const p = b.target;
|
|
3883
3883
|
try {
|
|
3884
|
-
Array.from(
|
|
3885
|
-
(
|
|
3886
|
-
).forEach((
|
|
3887
|
-
const
|
|
3888
|
-
|
|
3889
|
-
}),
|
|
3890
|
-
} catch (
|
|
3891
|
-
console.error("Error loading lazy video:",
|
|
3884
|
+
Array.from(p.children).filter(
|
|
3885
|
+
(f) => f instanceof HTMLElement && f.tagName === "SOURCE"
|
|
3886
|
+
).forEach((f) => {
|
|
3887
|
+
const v = f.dataset.src;
|
|
3888
|
+
v && (f.src = v);
|
|
3889
|
+
}), p.load(), S.unobserve(p);
|
|
3890
|
+
} catch (f) {
|
|
3891
|
+
console.error("Error loading lazy video:", f);
|
|
3892
3892
|
}
|
|
3893
3893
|
});
|
|
3894
3894
|
});
|
|
3895
|
-
t.current &&
|
|
3895
|
+
t.current && S.observe(t.current), a(S);
|
|
3896
3896
|
}
|
|
3897
3897
|
}, []), B(() => () => {
|
|
3898
3898
|
r && r.disconnect();
|
|
@@ -4247,17 +4247,17 @@ font-weight: ${l};
|
|
|
4247
4247
|
}
|
|
4248
4248
|
`, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
|
|
4249
4249
|
function Ai(e) {
|
|
4250
|
-
var H, q,
|
|
4250
|
+
var H, q, y;
|
|
4251
4251
|
const t = z(null);
|
|
4252
4252
|
k(() => !1), k(
|
|
4253
4253
|
() => e.builderContextSignal
|
|
4254
4254
|
);
|
|
4255
4255
|
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4256
|
-
function o(
|
|
4256
|
+
function o(x, V) {
|
|
4257
4257
|
var W, R;
|
|
4258
4258
|
const A = {
|
|
4259
4259
|
...e.builderContextSignal.rootState,
|
|
4260
|
-
...
|
|
4260
|
+
...x
|
|
4261
4261
|
};
|
|
4262
4262
|
e.builderContextSignal.rootSetState ? (R = (W = e.builderContextSignal).rootSetState) == null || R.call(W, A) : e.setBuilderContextSignal((P) => ({
|
|
4263
4263
|
...P,
|
|
@@ -4267,19 +4267,19 @@ function Ai(e) {
|
|
|
4267
4267
|
rootState: A
|
|
4268
4268
|
}));
|
|
4269
4269
|
}
|
|
4270
|
-
function l(
|
|
4270
|
+
function l(x, V) {
|
|
4271
4271
|
var W, R, P, I, N;
|
|
4272
4272
|
const A = {
|
|
4273
4273
|
...e.builderContextSignal.content,
|
|
4274
|
-
...
|
|
4274
|
+
...x,
|
|
4275
4275
|
data: {
|
|
4276
4276
|
...(W = e.builderContextSignal.content) == null ? void 0 : W.data,
|
|
4277
|
-
...
|
|
4277
|
+
...x == null ? void 0 : x.data
|
|
4278
4278
|
},
|
|
4279
4279
|
meta: {
|
|
4280
4280
|
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4281
|
-
...
|
|
4282
|
-
breakpoints: ((P =
|
|
4281
|
+
...x == null ? void 0 : x.meta,
|
|
4282
|
+
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
4283
|
}
|
|
4284
4284
|
};
|
|
4285
4285
|
e.setBuilderContextSignal((C) => ({
|
|
@@ -4296,7 +4296,7 @@ function Ai(e) {
|
|
|
4296
4296
|
const [d, h] = k(
|
|
4297
4297
|
() => e.contentWrapper || "div"
|
|
4298
4298
|
);
|
|
4299
|
-
function g(
|
|
4299
|
+
function g(x) {
|
|
4300
4300
|
return ht({
|
|
4301
4301
|
model: e.model,
|
|
4302
4302
|
trustedHosts: e.trustedHosts,
|
|
@@ -4320,10 +4320,10 @@ function Ai(e) {
|
|
|
4320
4320
|
o(V);
|
|
4321
4321
|
}
|
|
4322
4322
|
}
|
|
4323
|
-
})(
|
|
4323
|
+
})(x);
|
|
4324
4324
|
}
|
|
4325
|
-
const [u,
|
|
4326
|
-
function
|
|
4325
|
+
const [u, S] = k(() => ({})), [m, b] = k(() => ({})), [p, f] = k(() => !1);
|
|
4326
|
+
function v(x) {
|
|
4327
4327
|
var V, A;
|
|
4328
4328
|
if (e.builderContextSignal.content) {
|
|
4329
4329
|
const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
@@ -4334,24 +4334,24 @@ function Ai(e) {
|
|
|
4334
4334
|
contentId: R,
|
|
4335
4335
|
apiKey: e.apiKey,
|
|
4336
4336
|
variationId: W !== R ? W : void 0,
|
|
4337
|
-
...Ci(
|
|
4338
|
-
unique: !
|
|
4337
|
+
...Ci(x),
|
|
4338
|
+
unique: !p
|
|
4339
4339
|
});
|
|
4340
4340
|
}
|
|
4341
|
-
|
|
4341
|
+
p || f(!0);
|
|
4342
4342
|
}
|
|
4343
4343
|
function T() {
|
|
4344
4344
|
var V, A, W;
|
|
4345
|
-
const
|
|
4346
|
-
Object.entries(
|
|
4345
|
+
const x = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
|
|
4346
|
+
Object.entries(x).forEach(
|
|
4347
4347
|
([R, P]) => {
|
|
4348
4348
|
if (!P)
|
|
4349
4349
|
return;
|
|
4350
4350
|
const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
|
|
4351
|
-
if (
|
|
4351
|
+
if (m[R] || u[R] && !_())
|
|
4352
4352
|
return;
|
|
4353
4353
|
const N = I ? P.request.url : P;
|
|
4354
|
-
|
|
4354
|
+
m[R] = !0;
|
|
4355
4355
|
const C = N.replace(
|
|
4356
4356
|
/{{([^}]+)}}/g,
|
|
4357
4357
|
(L, j) => String(
|
|
@@ -4389,7 +4389,7 @@ function Ai(e) {
|
|
|
4389
4389
|
L
|
|
4390
4390
|
);
|
|
4391
4391
|
}).finally(() => {
|
|
4392
|
-
|
|
4392
|
+
m[R] = !1;
|
|
4393
4393
|
});
|
|
4394
4394
|
}
|
|
4395
4395
|
);
|
|
@@ -4411,7 +4411,7 @@ function Ai(e) {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
const U = z(!1);
|
|
4413
4413
|
return U.current || (T(), E(), U.current = !0), B(() => {
|
|
4414
|
-
var
|
|
4414
|
+
var x, V, A, W, R;
|
|
4415
4415
|
if (J()) {
|
|
4416
4416
|
_() && !e.isNestedRender && (window.addEventListener("message", g), dt({
|
|
4417
4417
|
...e.locale ? {
|
|
@@ -4423,7 +4423,7 @@ function Ai(e) {
|
|
|
4423
4423
|
...e.trustedHosts ? {
|
|
4424
4424
|
trustedHosts: e.trustedHosts
|
|
4425
4425
|
} : {},
|
|
4426
|
-
modelName: (
|
|
4426
|
+
modelName: (x = e.model) != null ? x : "",
|
|
4427
4427
|
apiKey: e.apiKey
|
|
4428
4428
|
}), Object.values(
|
|
4429
4429
|
e.builderContextSignal.componentInfos
|
|
@@ -4497,11 +4497,11 @@ function Ai(e) {
|
|
|
4497
4497
|
d,
|
|
4498
4498
|
{
|
|
4499
4499
|
ref: t,
|
|
4500
|
-
onClick: (
|
|
4500
|
+
onClick: (x) => v(x),
|
|
4501
4501
|
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4502
4502
|
"builder-model": e.model,
|
|
4503
4503
|
className: Vi(
|
|
4504
|
-
((q = e.content) == null ? void 0 : q.testVariationId) || ((
|
|
4504
|
+
((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
4505
4505
|
),
|
|
4506
4506
|
style: {
|
|
4507
4507
|
display: !e.builderContextSignal.content && Oe() ? "none" : void 0
|
|
@@ -4563,22 +4563,22 @@ const Ni = ({
|
|
|
4563
4563
|
meta: e == null ? void 0 : e.meta
|
|
4564
4564
|
} : void 0;
|
|
4565
4565
|
function Fe(e) {
|
|
4566
|
-
var d, h, g, u,
|
|
4566
|
+
var d, h, g, u, S, m, b, p, f;
|
|
4567
4567
|
const [t, n] = k(
|
|
4568
4568
|
() => {
|
|
4569
|
-
var
|
|
4569
|
+
var v, T;
|
|
4570
4570
|
return xi({
|
|
4571
4571
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4572
|
-
variationId: (
|
|
4572
|
+
variationId: (v = e.content) == null ? void 0 : v.testVariationId,
|
|
4573
4573
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4574
4574
|
contentId: (T = e.content) == null ? void 0 : T.id
|
|
4575
4575
|
});
|
|
4576
4576
|
}
|
|
4577
4577
|
);
|
|
4578
|
-
function i(
|
|
4578
|
+
function i(v) {
|
|
4579
4579
|
l((T) => ({
|
|
4580
4580
|
...T,
|
|
4581
|
-
rootState:
|
|
4581
|
+
rootState: v
|
|
4582
4582
|
}));
|
|
4583
4583
|
}
|
|
4584
4584
|
const [r, a] = k(
|
|
@@ -4586,8 +4586,8 @@ function Fe(e) {
|
|
|
4586
4586
|
...We(),
|
|
4587
4587
|
...e.customComponents || []
|
|
4588
4588
|
].reduce(
|
|
4589
|
-
(
|
|
4590
|
-
...
|
|
4589
|
+
(v, { component: T, ...E }) => ({
|
|
4590
|
+
...v,
|
|
4591
4591
|
[E.name]: {
|
|
4592
4592
|
component: T,
|
|
4593
4593
|
...we(E)
|
|
@@ -4615,8 +4615,8 @@ function Fe(e) {
|
|
|
4615
4615
|
...We(),
|
|
4616
4616
|
...e.customComponents || []
|
|
4617
4617
|
].reduce(
|
|
4618
|
-
(
|
|
4619
|
-
...
|
|
4618
|
+
(v, { component: T, ...E }) => ({
|
|
4619
|
+
...v,
|
|
4620
4620
|
[E.name]: we(E)
|
|
4621
4621
|
}),
|
|
4622
4622
|
{}
|
|
@@ -4631,9 +4631,9 @@ function Fe(e) {
|
|
|
4631
4631
|
e.apiKey || Q.error(
|
|
4632
4632
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4633
4633
|
);
|
|
4634
|
-
const
|
|
4635
|
-
|
|
4636
|
-
code:
|
|
4634
|
+
const v = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4635
|
+
v && Y({
|
|
4636
|
+
code: v,
|
|
4637
4637
|
context: e.context || {},
|
|
4638
4638
|
localState: void 0,
|
|
4639
4639
|
rootState: o.rootState,
|
|
@@ -4685,14 +4685,14 @@ function Fe(e) {
|
|
|
4685
4685
|
nonce: e.nonce || "",
|
|
4686
4686
|
isNestedRender: e.isNestedRender,
|
|
4687
4687
|
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4688
|
-
cssCode: (
|
|
4689
|
-
customFonts: (
|
|
4688
|
+
cssCode: (S = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : S.cssCode,
|
|
4689
|
+
customFonts: (b = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
|
|
4690
4690
|
}
|
|
4691
4691
|
),
|
|
4692
4692
|
/* @__PURE__ */ s(
|
|
4693
4693
|
M,
|
|
4694
4694
|
{
|
|
4695
|
-
blocks: (
|
|
4695
|
+
blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
|
|
4696
4696
|
context: o,
|
|
4697
4697
|
registeredComponents: r,
|
|
4698
4698
|
linkComponent: e.linkComponent
|
|
@@ -4836,7 +4836,7 @@ const Di = async ({
|
|
|
4836
4836
|
(e != null && e.apiKey))
|
|
4837
4837
|
return _e({
|
|
4838
4838
|
model: t.model,
|
|
4839
|
-
apiKey: e.apiKey,
|
|
4839
|
+
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
4840
4840
|
apiVersion: e.apiVersion,
|
|
4841
4841
|
...(t == null ? void 0 : t.entry) && {
|
|
4842
4842
|
query: {
|
|
@@ -4848,7 +4848,7 @@ const Di = async ({
|
|
|
4848
4848
|
});
|
|
4849
4849
|
};
|
|
4850
4850
|
function Oi(e) {
|
|
4851
|
-
var h, g, u,
|
|
4851
|
+
var h, g, u, S, m, b, p;
|
|
4852
4852
|
function t() {
|
|
4853
4853
|
return "div";
|
|
4854
4854
|
}
|
|
@@ -4859,29 +4859,29 @@ function Oi(e) {
|
|
|
4859
4859
|
return Object.values(e.builderComponents);
|
|
4860
4860
|
}
|
|
4861
4861
|
function r() {
|
|
4862
|
-
var
|
|
4862
|
+
var f, v;
|
|
4863
4863
|
return [
|
|
4864
4864
|
e.attributes[K()],
|
|
4865
4865
|
"builder-symbol",
|
|
4866
|
-
(
|
|
4867
|
-
(
|
|
4866
|
+
(f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
|
|
4867
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4868
4868
|
].filter(Boolean).join(" ");
|
|
4869
4869
|
}
|
|
4870
4870
|
const [a, o] = k(() => {
|
|
4871
|
-
var
|
|
4872
|
-
return (
|
|
4871
|
+
var f;
|
|
4872
|
+
return (f = e.symbol) == null ? void 0 : f.content;
|
|
4873
4873
|
}), [l, c] = k(() => {
|
|
4874
|
-
var
|
|
4875
|
-
return (
|
|
4874
|
+
var f;
|
|
4875
|
+
return (f = e.symbol) == null ? void 0 : f.entry;
|
|
4876
4876
|
});
|
|
4877
4877
|
function d() {
|
|
4878
|
-
var
|
|
4879
|
-
a && l === ((
|
|
4878
|
+
var f;
|
|
4879
|
+
a && l === ((f = e.symbol) == null ? void 0 : f.entry) || Di({
|
|
4880
4880
|
symbol: e.symbol,
|
|
4881
4881
|
builderContextValue: e.builderContext
|
|
4882
|
-
}).then((
|
|
4883
|
-
var
|
|
4884
|
-
|
|
4882
|
+
}).then((v) => {
|
|
4883
|
+
var T;
|
|
4884
|
+
v && (o(v), c((T = e.symbol) == null ? void 0 : T.entry));
|
|
4885
4885
|
});
|
|
4886
4886
|
}
|
|
4887
4887
|
return B(() => {
|
|
@@ -4893,19 +4893,19 @@ function Oi(e) {
|
|
|
4893
4893
|
nonce: e.builderContext.nonce,
|
|
4894
4894
|
isNestedRender: !0,
|
|
4895
4895
|
apiVersion: e.builderContext.apiVersion,
|
|
4896
|
-
apiKey: e.builderContext.apiKey,
|
|
4896
|
+
apiKey: (h = e.symbol) != null && h.global && ((g = e.symbol) != null && g.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
4897
4897
|
context: {
|
|
4898
4898
|
...e.builderContext.context,
|
|
4899
|
-
symbolId: (
|
|
4899
|
+
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
4900
4900
|
},
|
|
4901
4901
|
customComponents: i(),
|
|
4902
4902
|
data: {
|
|
4903
|
-
...(
|
|
4903
|
+
...(S = e.symbol) == null ? void 0 : S.data,
|
|
4904
4904
|
...e.builderContext.localState,
|
|
4905
|
-
...(
|
|
4905
|
+
...(m = a == null ? void 0 : a.data) == null ? void 0 : m.state
|
|
4906
4906
|
},
|
|
4907
4907
|
canTrack: e.builderContext.canTrack,
|
|
4908
|
-
model: (
|
|
4908
|
+
model: (p = (b = e.symbol) == null ? void 0 : b.model) != null ? p : "",
|
|
4909
4909
|
content: a,
|
|
4910
4910
|
linkComponent: e.builderLinkComponent,
|
|
4911
4911
|
blocksWrapper: t(),
|