@builder.io/sdk-react 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +14 -14
- package/lib/browser/blocks-exports.mjs +224 -217
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-29c5c31c.cjs → server-entry-419c051e.cjs} +1 -1
- package/lib/browser/{server-entry-f9067095.js → server-entry-825b4408.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-6ad2cec7.cjs → accordion-4f96554c.cjs} +1 -1
- package/lib/edge/{accordion-4a70912d.js → accordion-ca081054.js} +1 -1
- package/lib/edge/{blocks-0bd38a83.cjs → blocks-078044bc.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-fedde8d2.js → blocks-f55c7d3e.js} +2 -2
- package/lib/edge/{button-af35e8de.js → button-41169061.js} +2 -2
- package/lib/edge/{button-f6426eff.cjs → button-5d140f8e.cjs} +1 -1
- package/lib/edge/{columns-f607250b.cjs → columns-354bf349.cjs} +1 -1
- package/lib/edge/{columns-1065c0ae.js → columns-f8916a18.js} +3 -3
- package/lib/edge/{content-variants-3d57a82f.js → content-variants-71ee0c76.js} +230 -225
- package/lib/edge/{content-variants-773afb9f.cjs → content-variants-89a9389a.cjs} +8 -8
- package/lib/edge/{form-0a58d0e4.js → form-ac2f2a0e.js} +3 -3
- package/lib/edge/{form-5762c22a.cjs → form-f2d2c2bf.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-268b0f61.js → get-class-prop-name-a677d7a5.js} +1 -1
- package/lib/edge/{get-class-prop-name-3061c329.cjs → get-class-prop-name-a9b4959e.cjs} +1 -1
- package/lib/edge/image-344ddbb0.cjs +17 -0
- package/lib/edge/{image-68451fc8.js → image-e3fcd611.js} +24 -22
- package/lib/edge/{img-252c9967.js → img-8fc26395.js} +1 -1
- package/lib/edge/{img-59bb70c7.cjs → img-b91cb4fd.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-7ae243e2.js → input-549f090e.js} +1 -1
- package/lib/edge/{input-2163d4dc.cjs → input-ec7c695a.cjs} +1 -1
- package/lib/edge/{select-39231177.cjs → select-3ffa9294.cjs} +1 -1
- package/lib/edge/{select-cfa0eb8e.js → select-6a5a28ac.js} +1 -1
- package/lib/edge/{server-entry-4750de9c.cjs → server-entry-966ac144.cjs} +1 -1
- package/lib/edge/{server-entry-681e8e79.js → server-entry-d2020acf.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7c61542f.js → slot-40de071b.js} +3 -3
- package/lib/edge/{slot-69da8c56.cjs → slot-8b27e15e.cjs} +1 -1
- package/lib/edge/{symbol-bd999a19.cjs → symbol-76e76298.cjs} +1 -1
- package/lib/edge/{symbol-4a8a6cda.js → symbol-e6515a5f.js} +2 -2
- package/lib/edge/{tabs-3d0e242e.cjs → tabs-9c5af0ec.cjs} +1 -1
- package/lib/edge/{tabs-c3ff0c70.js → tabs-b75be82d.js} +3 -3
- package/lib/node/blocks-exports.cjs +12 -12
- package/lib/node/blocks-exports.mjs +225 -218
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-3bfd8465.cjs → node-runtime-0e37d6f7.cjs} +1 -1
- package/lib/node/{node-runtime-78262e65.js → node-runtime-0f3a5df1.js} +1 -1
- package/lib/node/{server-entry-5f9f100f.js → server-entry-5ebd1c9b.js} +1 -1
- package/lib/node/{server-entry-63058f3f.cjs → server-entry-8002325b.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/image-ea37781b.cjs +0 -17
|
@@ -3,9 +3,9 @@ var He = Object.defineProperty;
|
|
|
3
3
|
var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ie = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-
|
|
7
|
-
import { createContext as we, useState as
|
|
8
|
-
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Ee } from "./node-runtime-
|
|
6
|
+
import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-5ebd1c9b.js";
|
|
7
|
+
import { createContext as we, useState as T, useEffect as V, useContext as be, useRef as ee, createElement as Re } from "react";
|
|
8
|
+
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Ee } from "./node-runtime-0f3a5df1.js";
|
|
9
9
|
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
10
10
|
function ue(e) {
|
|
11
11
|
return /* @__PURE__ */ s(R, { children: it(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
@@ -320,8 +320,8 @@ function ht(e) {
|
|
|
320
320
|
leading: !1
|
|
321
321
|
});
|
|
322
322
|
function r(f) {
|
|
323
|
-
const d = f.getBoundingClientRect(), m = window.innerHeight,
|
|
324
|
-
return d.bottom >
|
|
323
|
+
const d = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
|
|
324
|
+
return d.bottom > y && d.top < m - y;
|
|
325
325
|
}
|
|
326
326
|
const c = e.steps[0].styles;
|
|
327
327
|
function u() {
|
|
@@ -520,7 +520,7 @@ function Tt(e) {
|
|
|
520
520
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
521
521
|
}
|
|
522
522
|
function n() {
|
|
523
|
-
var
|
|
523
|
+
var p, B, E;
|
|
524
524
|
const i = X({
|
|
525
525
|
block: e.block,
|
|
526
526
|
localState: e.context.localState,
|
|
@@ -529,7 +529,7 @@ function Tt(e) {
|
|
|
529
529
|
context: e.context.context,
|
|
530
530
|
shouldEvaluateBindings: !0
|
|
531
531
|
}), o = i.responsiveStyles, l = e.context.content, a = De(
|
|
532
|
-
((
|
|
532
|
+
((p = l == null ? void 0 : l.meta) == null ? void 0 : p.breakpoints) || {}
|
|
533
533
|
), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
534
534
|
if (!f)
|
|
535
535
|
return "";
|
|
@@ -550,18 +550,18 @@ function Tt(e) {
|
|
|
550
550
|
"small",
|
|
551
551
|
a
|
|
552
552
|
)
|
|
553
|
-
}) : "",
|
|
554
|
-
let
|
|
555
|
-
if (
|
|
556
|
-
const A = ((
|
|
557
|
-
|
|
553
|
+
}) : "", y = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
554
|
+
let C = "";
|
|
555
|
+
if (y) {
|
|
556
|
+
const A = ((E = (B = y.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
|
|
557
|
+
C = _({
|
|
558
558
|
className: `${f}:hover`,
|
|
559
559
|
styles: {
|
|
560
560
|
...A,
|
|
561
|
-
transition: `all ${
|
|
562
|
-
|
|
561
|
+
transition: `all ${y.duration}s ${te(
|
|
562
|
+
y.easing
|
|
563
563
|
)}`,
|
|
564
|
-
transitionDelay:
|
|
564
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
565
565
|
}
|
|
566
566
|
}) || "";
|
|
567
567
|
}
|
|
@@ -569,7 +569,7 @@ function Tt(e) {
|
|
|
569
569
|
d,
|
|
570
570
|
m,
|
|
571
571
|
g,
|
|
572
|
-
|
|
572
|
+
C
|
|
573
573
|
].join(" ");
|
|
574
574
|
}
|
|
575
575
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
@@ -715,7 +715,7 @@ const At = ({
|
|
|
715
715
|
};
|
|
716
716
|
function ye(e) {
|
|
717
717
|
var i;
|
|
718
|
-
const [t, n] =
|
|
718
|
+
const [t, n] = T(
|
|
719
719
|
() => e.isInteractive ? Vt : e.componentRef
|
|
720
720
|
);
|
|
721
721
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
@@ -745,7 +745,7 @@ function ye(e) {
|
|
|
745
745
|
) }) : null });
|
|
746
746
|
}
|
|
747
747
|
function Nt(e) {
|
|
748
|
-
const [t, n] =
|
|
748
|
+
const [t, n] = T(() => e.repeatContext);
|
|
749
749
|
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
750
750
|
z,
|
|
751
751
|
{
|
|
@@ -787,9 +787,9 @@ function z(e) {
|
|
|
787
787
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
788
788
|
}
|
|
789
789
|
function l() {
|
|
790
|
-
var g,
|
|
790
|
+
var g, y;
|
|
791
791
|
if ((g = e.block.repeat) != null && g.collection)
|
|
792
|
-
return !!((
|
|
792
|
+
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
793
793
|
const d = "hide" in i() ? i().hide : !1;
|
|
794
794
|
return ("show" in i() ? i().show : !0) && !d;
|
|
795
795
|
}
|
|
@@ -798,7 +798,7 @@ function z(e) {
|
|
|
798
798
|
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
799
799
|
}
|
|
800
800
|
function r() {
|
|
801
|
-
var d, m, g,
|
|
801
|
+
var d, m, g, y;
|
|
802
802
|
return {
|
|
803
803
|
blockChildren: (d = i().children) != null ? d : [],
|
|
804
804
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
@@ -817,10 +817,10 @@ function z(e) {
|
|
|
817
817
|
registeredComponents: e.registeredComponents,
|
|
818
818
|
builderBlock: i(),
|
|
819
819
|
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
820
|
-
isInteractive: !((
|
|
820
|
+
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
|
-
return
|
|
823
|
+
return V(() => {
|
|
824
824
|
const d = i().id, m = i().animations;
|
|
825
825
|
m && d && mt(
|
|
826
826
|
m.map((g) => ({
|
|
@@ -969,9 +969,9 @@ function D(e) {
|
|
|
969
969
|
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
970
970
|
function $t(e) {
|
|
971
971
|
var A, O;
|
|
972
|
-
const [t, n] =
|
|
972
|
+
const [t, n] = T(
|
|
973
973
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
974
|
-
), [i, o] =
|
|
974
|
+
), [i, o] = T(() => e.columns || []), [l, a] = T(
|
|
975
975
|
() => e.stackColumnsAt || "tablet"
|
|
976
976
|
);
|
|
977
977
|
function r(S) {
|
|
@@ -997,10 +997,10 @@ function $t(e) {
|
|
|
997
997
|
}) {
|
|
998
998
|
return l === "never" ? w : S;
|
|
999
999
|
}
|
|
1000
|
-
const [m, g] =
|
|
1000
|
+
const [m, g] = T(
|
|
1001
1001
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1002
1002
|
);
|
|
1003
|
-
function
|
|
1003
|
+
function y() {
|
|
1004
1004
|
return {
|
|
1005
1005
|
"--flex-dir": m,
|
|
1006
1006
|
"--flex-dir-tablet": f({
|
|
@@ -1009,8 +1009,8 @@ function $t(e) {
|
|
|
1009
1009
|
})
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%",
|
|
1012
|
+
function C(S) {
|
|
1013
|
+
const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", x = 0;
|
|
1014
1014
|
return {
|
|
1015
1015
|
...{
|
|
1016
1016
|
display: "flex",
|
|
@@ -1024,7 +1024,7 @@ function $t(e) {
|
|
|
1024
1024
|
desktopStyle: N
|
|
1025
1025
|
}),
|
|
1026
1026
|
"--column-margin-left-mobile": d({
|
|
1027
|
-
stackedStyle:
|
|
1027
|
+
stackedStyle: x,
|
|
1028
1028
|
desktopStyle: b
|
|
1029
1029
|
}),
|
|
1030
1030
|
"--column-width-tablet": f({
|
|
@@ -1032,20 +1032,20 @@ function $t(e) {
|
|
|
1032
1032
|
desktopStyle: N
|
|
1033
1033
|
}),
|
|
1034
1034
|
"--column-margin-left-tablet": f({
|
|
1035
|
-
stackedStyle:
|
|
1035
|
+
stackedStyle: x,
|
|
1036
1036
|
desktopStyle: b
|
|
1037
1037
|
})
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function p(S) {
|
|
1041
1041
|
var N, b;
|
|
1042
1042
|
return De(
|
|
1043
1043
|
((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1044
1044
|
)[S].max;
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function B() {
|
|
1047
1047
|
return `
|
|
1048
|
-
@media (max-width: ${
|
|
1048
|
+
@media (max-width: ${p("medium")}px) {
|
|
1049
1049
|
.${e.builderBlock.id}-breakpoints {
|
|
1050
1050
|
flex-direction: var(--flex-dir-tablet);
|
|
1051
1051
|
align-items: stretch;
|
|
@@ -1057,7 +1057,7 @@ function $t(e) {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
@media (max-width: ${
|
|
1060
|
+
@media (max-width: ${p("small")}px) {
|
|
1061
1061
|
.${e.builderBlock.id}-breakpoints {
|
|
1062
1062
|
flex-direction: var(--flex-dir);
|
|
1063
1063
|
align-items: stretch;
|
|
@@ -1070,13 +1070,13 @@ function $t(e) {
|
|
|
1070
1070
|
},
|
|
1071
1071
|
`;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function E(S, w) {
|
|
1074
1074
|
return {
|
|
1075
1075
|
...S.link ? {
|
|
1076
1076
|
href: S.link
|
|
1077
1077
|
} : {},
|
|
1078
1078
|
[H()]: "builder-column",
|
|
1079
|
-
style: Fe(
|
|
1079
|
+
style: Fe(C(w))
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
1082
|
return /* @__PURE__ */ P(R, { children: [
|
|
@@ -1084,13 +1084,13 @@ function $t(e) {
|
|
|
1084
1084
|
"div",
|
|
1085
1085
|
{
|
|
1086
1086
|
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
|
|
1087
|
-
style:
|
|
1087
|
+
style: y(),
|
|
1088
1088
|
children: [
|
|
1089
1089
|
/* @__PURE__ */ s(
|
|
1090
1090
|
ne,
|
|
1091
1091
|
{
|
|
1092
1092
|
id: "builderio-columns",
|
|
1093
|
-
styles:
|
|
1093
|
+
styles: B(),
|
|
1094
1094
|
nonce: e.builderContext.nonce
|
|
1095
1095
|
}
|
|
1096
1096
|
),
|
|
@@ -1099,7 +1099,7 @@ function $t(e) {
|
|
|
1099
1099
|
{
|
|
1100
1100
|
TagName: r(S),
|
|
1101
1101
|
actionAttributes: {},
|
|
1102
|
-
attributes:
|
|
1102
|
+
attributes: E(S, w),
|
|
1103
1103
|
children: /* @__PURE__ */ s(
|
|
1104
1104
|
D,
|
|
1105
1105
|
{
|
|
@@ -1168,12 +1168,14 @@ function jt(e) {
|
|
|
1168
1168
|
// images, otherwise you can supply this prop manually
|
|
1169
1169
|
!(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
|
|
1170
1170
|
return e.srcset;
|
|
1171
|
-
if (e.
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1174
|
-
|
|
1171
|
+
if (!e.noWebp) {
|
|
1172
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1173
|
+
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1174
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1175
|
+
} else if (e.image && !e.srcset)
|
|
1176
|
+
return oe(d);
|
|
1175
1177
|
return oe(d);
|
|
1176
|
-
|
|
1178
|
+
}
|
|
1177
1179
|
}
|
|
1178
1180
|
function n() {
|
|
1179
1181
|
var f;
|
|
@@ -1205,7 +1207,7 @@ function jt(e) {
|
|
|
1205
1207
|
objectFit: e.backgroundSize || "cover",
|
|
1206
1208
|
...i()
|
|
1207
1209
|
},
|
|
1208
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1210
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
|
|
1209
1211
|
src: e.image,
|
|
1210
1212
|
srcSet: t(),
|
|
1211
1213
|
sizes: e.sizes
|
|
@@ -1215,23 +1217,23 @@ function jt(e) {
|
|
|
1215
1217
|
e.aspectRatio && !((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1216
1218
|
"div",
|
|
1217
1219
|
{
|
|
1218
|
-
className: "builder-image-sizer div-
|
|
1220
|
+
className: "builder-image-sizer div-56bbd606",
|
|
1219
1221
|
style: {
|
|
1220
1222
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1221
1223
|
}
|
|
1222
1224
|
}
|
|
1223
1225
|
) : null,
|
|
1224
1226
|
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1225
|
-
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-
|
|
1227
|
+
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-56bbd606-2", children: e.children }) : null
|
|
1226
1228
|
] }),
|
|
1227
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1229
|
+
/* @__PURE__ */ s("style", { children: `.img-56bbd606 {
|
|
1228
1230
|
opacity: 1;
|
|
1229
1231
|
transition: opacity 0.2s ease-in-out;
|
|
1230
|
-
}.div-
|
|
1232
|
+
}.div-56bbd606 {
|
|
1231
1233
|
width: 100%;
|
|
1232
1234
|
pointer-events: none;
|
|
1233
1235
|
font-size: 0;
|
|
1234
|
-
}.div-
|
|
1236
|
+
}.div-56bbd606-2 {
|
|
1235
1237
|
display: flex;
|
|
1236
1238
|
flex-direction: column;
|
|
1237
1239
|
align-items: stretch;
|
|
@@ -1391,7 +1393,7 @@ const ae = {
|
|
|
1391
1393
|
}, ve = (e) => e.toString();
|
|
1392
1394
|
function Ht(e) {
|
|
1393
1395
|
var d;
|
|
1394
|
-
const [t, n] =
|
|
1396
|
+
const [t, n] = T(() => []);
|
|
1395
1397
|
function i() {
|
|
1396
1398
|
return !!(e.grid || e.oneAtATime);
|
|
1397
1399
|
}
|
|
@@ -1417,7 +1419,7 @@ function Ht(e) {
|
|
|
1417
1419
|
cursor: "pointer"
|
|
1418
1420
|
};
|
|
1419
1421
|
return Object.fromEntries(
|
|
1420
|
-
Object.entries(g).filter(([
|
|
1422
|
+
Object.entries(g).filter(([y, C]) => C !== void 0)
|
|
1421
1423
|
);
|
|
1422
1424
|
}
|
|
1423
1425
|
function a(m) {
|
|
@@ -1429,23 +1431,23 @@ function Ht(e) {
|
|
|
1429
1431
|
function c() {
|
|
1430
1432
|
let m = null;
|
|
1431
1433
|
if (e.grid && t.length && document) {
|
|
1432
|
-
const
|
|
1433
|
-
let
|
|
1434
|
-
`.builder-accordion-title[data-index="${
|
|
1434
|
+
const y = t[0];
|
|
1435
|
+
let p = document.querySelector(
|
|
1436
|
+
`.builder-accordion-title[data-index="${y}"]`
|
|
1435
1437
|
);
|
|
1436
|
-
if (m =
|
|
1437
|
-
let
|
|
1438
|
-
for (;
|
|
1439
|
-
if (
|
|
1440
|
-
if (
|
|
1438
|
+
if (m = y, p) {
|
|
1439
|
+
let B = p.getBoundingClientRect();
|
|
1440
|
+
for (; p = p && p.nextElementSibling; )
|
|
1441
|
+
if (p) {
|
|
1442
|
+
if (p.classList.contains("builder-accordion-detail"))
|
|
1441
1443
|
continue;
|
|
1442
|
-
const
|
|
1443
|
-
if (
|
|
1444
|
+
const E = p.getBoundingClientRect();
|
|
1445
|
+
if (E.left > B.left) {
|
|
1444
1446
|
const A = parseInt(
|
|
1445
|
-
|
|
1447
|
+
p.getAttribute("data-index") || "",
|
|
1446
1448
|
10
|
|
1447
1449
|
);
|
|
1448
|
-
isNaN(A) || (
|
|
1450
|
+
isNaN(A) || (B = E, m = A);
|
|
1449
1451
|
} else
|
|
1450
1452
|
break;
|
|
1451
1453
|
}
|
|
@@ -1461,7 +1463,7 @@ function Ht(e) {
|
|
|
1461
1463
|
}
|
|
1462
1464
|
};
|
|
1463
1465
|
return Object.fromEntries(
|
|
1464
|
-
Object.entries(m).filter(([g,
|
|
1466
|
+
Object.entries(m).filter(([g, y]) => y !== void 0)
|
|
1465
1467
|
);
|
|
1466
1468
|
}
|
|
1467
1469
|
function f(m) {
|
|
@@ -1478,7 +1480,7 @@ function Ht(e) {
|
|
|
1478
1480
|
order: c() !== null ? ve(g) : ve(g + 1)
|
|
1479
1481
|
},
|
|
1480
1482
|
"data-index": g,
|
|
1481
|
-
onClick: (
|
|
1483
|
+
onClick: (y) => f(g),
|
|
1482
1484
|
children: /* @__PURE__ */ s(
|
|
1483
1485
|
D,
|
|
1484
1486
|
{
|
|
@@ -2131,7 +2133,7 @@ const Qt = {
|
|
|
2131
2133
|
};
|
|
2132
2134
|
function Zt(e) {
|
|
2133
2135
|
var l;
|
|
2134
|
-
const [t, n] =
|
|
2136
|
+
const [t, n] = T(
|
|
2135
2137
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2136
2138
|
);
|
|
2137
2139
|
function i(a) {
|
|
@@ -2247,8 +2249,8 @@ const nn = {
|
|
|
2247
2249
|
}]
|
|
2248
2250
|
};
|
|
2249
2251
|
function on(e) {
|
|
2250
|
-
const t = ee(null), [n, i] =
|
|
2251
|
-
return
|
|
2252
|
+
const t = ee(null), [n, i] = T(() => []), [o, l] = T(() => []);
|
|
2253
|
+
return V(() => {
|
|
2252
2254
|
var r;
|
|
2253
2255
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
2254
2256
|
return;
|
|
@@ -2301,7 +2303,7 @@ const an = {
|
|
|
2301
2303
|
}]
|
|
2302
2304
|
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2303
2305
|
function sn(e) {
|
|
2304
|
-
const t = ee(null), [n, i] =
|
|
2306
|
+
const t = ee(null), [n, i] = T(() => []), [o, l] = T(() => []), [a, r] = T(() => !1);
|
|
2305
2307
|
function c() {
|
|
2306
2308
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2307
2309
|
return;
|
|
@@ -2320,7 +2322,7 @@ function sn(e) {
|
|
|
2320
2322
|
}
|
|
2321
2323
|
}
|
|
2322
2324
|
}
|
|
2323
|
-
return
|
|
2325
|
+
return V(() => {
|
|
2324
2326
|
t.current && !a && (r(!0), c());
|
|
2325
2327
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2326
2328
|
"div",
|
|
@@ -2577,39 +2579,39 @@ const cn = {
|
|
|
2577
2579
|
};
|
|
2578
2580
|
function fn(e) {
|
|
2579
2581
|
var d, m;
|
|
2580
|
-
const t = ee(null), [n, i] =
|
|
2582
|
+
const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, l] = T(() => null), [a, r] = T(() => "");
|
|
2581
2583
|
function c(g) {
|
|
2582
|
-
var
|
|
2583
|
-
const
|
|
2584
|
+
var C, p;
|
|
2585
|
+
const y = {
|
|
2584
2586
|
...e.builderContext.rootState,
|
|
2585
2587
|
...g
|
|
2586
2588
|
};
|
|
2587
|
-
e.builderContext.rootSetState ? (
|
|
2589
|
+
e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
|
|
2588
2590
|
}
|
|
2589
2591
|
function u() {
|
|
2590
2592
|
return $() && e.previewState || n;
|
|
2591
2593
|
}
|
|
2592
2594
|
function f(g) {
|
|
2593
|
-
var
|
|
2594
|
-
const
|
|
2595
|
+
var C;
|
|
2596
|
+
const y = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2595
2597
|
if (e.sendSubmissionsTo === "zapier")
|
|
2596
2598
|
g.preventDefault();
|
|
2597
|
-
else if (
|
|
2599
|
+
else if (y) {
|
|
2598
2600
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2599
2601
|
g.preventDefault();
|
|
2600
2602
|
return;
|
|
2601
2603
|
}
|
|
2602
2604
|
g.preventDefault();
|
|
2603
|
-
const
|
|
2604
|
-
let
|
|
2605
|
-
const A = new FormData(
|
|
2605
|
+
const p = g.currentTarget || g.target, B = e.customHeaders || {};
|
|
2606
|
+
let E;
|
|
2607
|
+
const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2606
2608
|
let h;
|
|
2607
|
-
const
|
|
2609
|
+
const x = b.name;
|
|
2608
2610
|
if (b instanceof HTMLInputElement)
|
|
2609
2611
|
if (b.type === "radio") {
|
|
2610
2612
|
if (b.checked)
|
|
2611
2613
|
return h = b.name, {
|
|
2612
|
-
key:
|
|
2614
|
+
key: x,
|
|
2613
2615
|
value: h
|
|
2614
2616
|
};
|
|
2615
2617
|
} else if (b.type === "checkbox")
|
|
@@ -2622,7 +2624,7 @@ function fn(e) {
|
|
|
2622
2624
|
else
|
|
2623
2625
|
h = b.value;
|
|
2624
2626
|
return {
|
|
2625
|
-
key:
|
|
2627
|
+
key: x,
|
|
2626
2628
|
value: h
|
|
2627
2629
|
};
|
|
2628
2630
|
});
|
|
@@ -2630,15 +2632,15 @@ function fn(e) {
|
|
|
2630
2632
|
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2631
2633
|
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
|
|
2632
2634
|
}), S !== "application/json")
|
|
2633
|
-
|
|
2635
|
+
E = A;
|
|
2634
2636
|
else {
|
|
2635
2637
|
const b = {};
|
|
2636
|
-
Array.from(O).forEach(({ value: h, key:
|
|
2637
|
-
Ee(b,
|
|
2638
|
-
}),
|
|
2638
|
+
Array.from(O).forEach(({ value: h, key: x }) => {
|
|
2639
|
+
Ee(b, x, h);
|
|
2640
|
+
}), E = JSON.stringify(b);
|
|
2639
2641
|
}
|
|
2640
|
-
S && S !== "multipart/form-data" && (
|
|
2641
|
-
const w = new CustomEvent("presubmit", { detail: { body:
|
|
2642
|
+
S && S !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = S));
|
|
2643
|
+
const w = new CustomEvent("presubmit", { detail: { body: E } });
|
|
2642
2644
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2643
2645
|
return;
|
|
2644
2646
|
i("sending");
|
|
@@ -2647,12 +2649,12 @@ function fn(e) {
|
|
|
2647
2649
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2648
2650
|
fetch(
|
|
2649
2651
|
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2650
|
-
{ body:
|
|
2652
|
+
{ body: E, headers: B, method: e.method || "post" }
|
|
2651
2653
|
).then(
|
|
2652
2654
|
async (b) => {
|
|
2653
2655
|
let h;
|
|
2654
|
-
const
|
|
2655
|
-
if (
|
|
2656
|
+
const x = b.headers.get("content-type");
|
|
2657
|
+
if (x && x.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2656
2658
|
let v = mn(h, e.errorMessagePath);
|
|
2657
2659
|
v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
|
|
2658
2660
|
}
|
|
@@ -2697,7 +2699,7 @@ function fn(e) {
|
|
|
2697
2699
|
onSubmit: (g) => f(g),
|
|
2698
2700
|
...e.attributes,
|
|
2699
2701
|
children: [
|
|
2700
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g,
|
|
2702
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
|
|
2701
2703
|
z,
|
|
2702
2704
|
{
|
|
2703
2705
|
block: g,
|
|
@@ -2705,7 +2707,7 @@ function fn(e) {
|
|
|
2705
2707
|
registeredComponents: e.builderComponents,
|
|
2706
2708
|
linkComponent: e.builderLinkComponent
|
|
2707
2709
|
},
|
|
2708
|
-
`form-block-${
|
|
2710
|
+
`form-block-${y}`
|
|
2709
2711
|
)) }) : null,
|
|
2710
2712
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2711
2713
|
D,
|
|
@@ -3431,22 +3433,22 @@ font-weight: ${r};
|
|
|
3431
3433
|
}
|
|
3432
3434
|
`, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
|
|
3433
3435
|
function Hn(e) {
|
|
3434
|
-
var
|
|
3436
|
+
var E, A, O, S, w, N, b;
|
|
3435
3437
|
const t = ee(null);
|
|
3436
3438
|
function n(h) {
|
|
3437
3439
|
var v, k;
|
|
3438
|
-
const
|
|
3440
|
+
const x = {
|
|
3439
3441
|
...e.builderContextSignal.rootState,
|
|
3440
3442
|
...h
|
|
3441
3443
|
};
|
|
3442
|
-
e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v,
|
|
3443
|
-
...
|
|
3444
|
-
rootState:
|
|
3444
|
+
e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, x) : e.setBuilderContextSignal((I) => ({
|
|
3445
|
+
...I,
|
|
3446
|
+
rootState: x
|
|
3445
3447
|
}));
|
|
3446
3448
|
}
|
|
3447
3449
|
function i(h) {
|
|
3448
|
-
var v, k,
|
|
3449
|
-
const
|
|
3450
|
+
var v, k, I, W, j;
|
|
3451
|
+
const x = {
|
|
3450
3452
|
...e.builderContextSignal.content,
|
|
3451
3453
|
...h,
|
|
3452
3454
|
data: {
|
|
@@ -3456,12 +3458,12 @@ function Hn(e) {
|
|
|
3456
3458
|
meta: {
|
|
3457
3459
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3458
3460
|
...h == null ? void 0 : h.meta,
|
|
3459
|
-
breakpoints: ((
|
|
3461
|
+
breakpoints: ((I = h == null ? void 0 : h.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
|
|
3460
3462
|
}
|
|
3461
3463
|
};
|
|
3462
3464
|
e.setBuilderContextSignal((F) => ({
|
|
3463
3465
|
...F,
|
|
3464
|
-
content:
|
|
3466
|
+
content: x
|
|
3465
3467
|
}));
|
|
3466
3468
|
}
|
|
3467
3469
|
function o() {
|
|
@@ -3470,7 +3472,7 @@ function Hn(e) {
|
|
|
3470
3472
|
"aria-hidden": !0
|
|
3471
3473
|
};
|
|
3472
3474
|
}
|
|
3473
|
-
const [l, a] =
|
|
3475
|
+
const [l, a] = T(
|
|
3474
3476
|
() => e.contentWrapper || "div"
|
|
3475
3477
|
);
|
|
3476
3478
|
function r(h) {
|
|
@@ -3478,27 +3480,27 @@ function Hn(e) {
|
|
|
3478
3480
|
model: e.model,
|
|
3479
3481
|
trustedHosts: e.trustedHosts,
|
|
3480
3482
|
callbacks: {
|
|
3481
|
-
configureSdk: (
|
|
3482
|
-
var
|
|
3483
|
-
const { breakpoints: v, contentId: k } =
|
|
3484
|
-
!k || k !== ((
|
|
3483
|
+
configureSdk: (x) => {
|
|
3484
|
+
var I;
|
|
3485
|
+
const { breakpoints: v, contentId: k } = x;
|
|
3486
|
+
!k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || v && i({
|
|
3485
3487
|
meta: {
|
|
3486
3488
|
breakpoints: v
|
|
3487
3489
|
}
|
|
3488
3490
|
});
|
|
3489
3491
|
},
|
|
3490
|
-
animation: (
|
|
3491
|
-
Ne(
|
|
3492
|
+
animation: (x) => {
|
|
3493
|
+
Ne(x);
|
|
3492
3494
|
},
|
|
3493
|
-
contentUpdate: (
|
|
3494
|
-
i(
|
|
3495
|
+
contentUpdate: (x) => {
|
|
3496
|
+
i(x);
|
|
3495
3497
|
}
|
|
3496
3498
|
}
|
|
3497
3499
|
})(h);
|
|
3498
3500
|
}
|
|
3499
3501
|
function c() {
|
|
3500
|
-
var
|
|
3501
|
-
const h = (v = (
|
|
3502
|
+
var x, v;
|
|
3503
|
+
const h = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.jsCode;
|
|
3502
3504
|
h && q({
|
|
3503
3505
|
code: h,
|
|
3504
3506
|
context: e.context || {},
|
|
@@ -3511,30 +3513,30 @@ function Hn(e) {
|
|
|
3511
3513
|
enableCache: !1
|
|
3512
3514
|
});
|
|
3513
3515
|
}
|
|
3514
|
-
const [u, f] =
|
|
3515
|
-
function
|
|
3516
|
-
var
|
|
3516
|
+
const [u, f] = T(() => ({})), [d, m] = T(() => ({})), [g, y] = T(() => !1);
|
|
3517
|
+
function C(h) {
|
|
3518
|
+
var x, v;
|
|
3517
3519
|
if (e.builderContextSignal.content) {
|
|
3518
|
-
const k = (
|
|
3520
|
+
const k = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
3519
3521
|
he({
|
|
3520
3522
|
type: "click",
|
|
3521
3523
|
canTrack: Q(e.canTrack),
|
|
3522
|
-
contentId:
|
|
3524
|
+
contentId: I,
|
|
3523
3525
|
apiKey: e.apiKey,
|
|
3524
|
-
variationId: k !==
|
|
3526
|
+
variationId: k !== I ? k : void 0,
|
|
3525
3527
|
...$n(h),
|
|
3526
3528
|
unique: !g
|
|
3527
3529
|
});
|
|
3528
3530
|
}
|
|
3529
|
-
g ||
|
|
3531
|
+
g || y(!0);
|
|
3530
3532
|
}
|
|
3531
|
-
function
|
|
3532
|
-
var
|
|
3533
|
-
const h = (k = (v = (
|
|
3534
|
-
Object.entries(h).forEach(([
|
|
3535
|
-
if (!W || d[
|
|
3533
|
+
function p() {
|
|
3534
|
+
var x, v, k;
|
|
3535
|
+
const h = (k = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.httpRequests) != null ? k : {};
|
|
3536
|
+
Object.entries(h).forEach(([I, W]) => {
|
|
3537
|
+
if (!W || d[I] || u[I] && !$())
|
|
3536
3538
|
return;
|
|
3537
|
-
d[
|
|
3539
|
+
d[I] = !0;
|
|
3538
3540
|
const j = W.replace(
|
|
3539
3541
|
/{{([^}]+)}}/g,
|
|
3540
3542
|
(F, Ue) => String(
|
|
@@ -3550,16 +3552,16 @@ function Hn(e) {
|
|
|
3550
3552
|
);
|
|
3551
3553
|
Ge(j).then((F) => F.json()).then((F) => {
|
|
3552
3554
|
n({
|
|
3553
|
-
[
|
|
3554
|
-
}), u[
|
|
3555
|
+
[I]: F
|
|
3556
|
+
}), u[I] = !0;
|
|
3555
3557
|
}).catch((F) => {
|
|
3556
3558
|
console.error("error fetching dynamic data", W, F);
|
|
3557
3559
|
}).finally(() => {
|
|
3558
|
-
d[
|
|
3560
|
+
d[I] = !1;
|
|
3559
3561
|
});
|
|
3560
3562
|
});
|
|
3561
3563
|
}
|
|
3562
|
-
function
|
|
3564
|
+
function B() {
|
|
3563
3565
|
$() && window.dispatchEvent(
|
|
3564
3566
|
new CustomEvent(
|
|
3565
3567
|
"builder:component:stateChange",
|
|
@@ -3574,8 +3576,8 @@ function Hn(e) {
|
|
|
3574
3576
|
)
|
|
3575
3577
|
);
|
|
3576
3578
|
}
|
|
3577
|
-
return
|
|
3578
|
-
var h,
|
|
3579
|
+
return V(() => {
|
|
3580
|
+
var h, x;
|
|
3579
3581
|
if (G()) {
|
|
3580
3582
|
if ($() && (window.addEventListener("message", r), Ke(), ze({
|
|
3581
3583
|
...e.locale ? {
|
|
@@ -3591,26 +3593,26 @@ function Hn(e) {
|
|
|
3591
3593
|
e.builderContextSignal.componentInfos
|
|
3592
3594
|
).forEach((k) => {
|
|
3593
3595
|
var W;
|
|
3594
|
-
const
|
|
3595
|
-
(W = window.parent) == null || W.postMessage(
|
|
3596
|
+
const I = _e(k);
|
|
3597
|
+
(W = window.parent) == null || W.postMessage(I, "*");
|
|
3596
3598
|
}), window.addEventListener(
|
|
3597
3599
|
"builder:component:stateChangeListenerActivated",
|
|
3598
|
-
|
|
3600
|
+
B
|
|
3599
3601
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3600
|
-
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId,
|
|
3602
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (x = e.builderContextSignal.content) == null ? void 0 : x.id, W = e.apiKey;
|
|
3601
3603
|
he({
|
|
3602
3604
|
type: "impression",
|
|
3603
3605
|
canTrack: !0,
|
|
3604
|
-
contentId:
|
|
3606
|
+
contentId: I,
|
|
3605
3607
|
apiKey: W,
|
|
3606
|
-
variationId: k !==
|
|
3608
|
+
variationId: k !== I ? k : void 0
|
|
3607
3609
|
});
|
|
3608
3610
|
}
|
|
3609
3611
|
if (Je() && !$()) {
|
|
3610
|
-
const k = new URL(location.href).searchParams,
|
|
3611
|
-
`builder.overrides.${
|
|
3612
|
+
const k = new URL(location.href).searchParams, I = k.get("builder.preview"), W = k.get(
|
|
3613
|
+
`builder.overrides.${I}`
|
|
3612
3614
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
3613
|
-
|
|
3615
|
+
I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
|
|
3614
3616
|
model: e.model,
|
|
3615
3617
|
apiKey: e.apiKey,
|
|
3616
3618
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3619,34 +3621,34 @@ function Hn(e) {
|
|
|
3619
3621
|
});
|
|
3620
3622
|
}
|
|
3621
3623
|
}
|
|
3622
|
-
}, []),
|
|
3624
|
+
}, []), V(() => {
|
|
3623
3625
|
e.apiKey || Z.error(
|
|
3624
3626
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3625
|
-
), c(),
|
|
3626
|
-
}, []),
|
|
3627
|
+
), c(), p(), B();
|
|
3628
|
+
}, []), V(() => {
|
|
3627
3629
|
e.content && i(e.content);
|
|
3628
|
-
}, [e.content]),
|
|
3630
|
+
}, [e.content]), V(() => {
|
|
3629
3631
|
c();
|
|
3630
|
-
}, [(A = (
|
|
3631
|
-
|
|
3632
|
-
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]),
|
|
3633
|
-
|
|
3634
|
-
}, [e.builderContextSignal.rootState]),
|
|
3632
|
+
}, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), V(() => {
|
|
3633
|
+
p();
|
|
3634
|
+
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), V(() => {
|
|
3635
|
+
B();
|
|
3636
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
3635
3637
|
e.data && n(e.data);
|
|
3636
|
-
}, [e.data]),
|
|
3638
|
+
}, [e.data]), V(() => {
|
|
3637
3639
|
e.locale && n({
|
|
3638
3640
|
locale: e.locale
|
|
3639
3641
|
});
|
|
3640
|
-
}, [e.locale]),
|
|
3642
|
+
}, [e.locale]), V(() => () => {
|
|
3641
3643
|
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3642
3644
|
"builder:component:stateChangeListenerActivated",
|
|
3643
|
-
|
|
3645
|
+
B
|
|
3644
3646
|
));
|
|
3645
3647
|
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3646
3648
|
l,
|
|
3647
3649
|
{
|
|
3648
3650
|
ref: t,
|
|
3649
|
-
onClick: (h) =>
|
|
3651
|
+
onClick: (h) => C(h),
|
|
3650
3652
|
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3651
3653
|
"builder-model": e.model,
|
|
3652
3654
|
...o(),
|
|
@@ -3659,7 +3661,7 @@ function Hn(e) {
|
|
|
3659
3661
|
) : null });
|
|
3660
3662
|
}
|
|
3661
3663
|
function qn(e) {
|
|
3662
|
-
const [t, n] =
|
|
3664
|
+
const [t, n] = T(
|
|
3663
3665
|
() => `
|
|
3664
3666
|
${On({
|
|
3665
3667
|
cssCode: e.cssCode,
|
|
@@ -3709,69 +3711,75 @@ const Kn = ({
|
|
|
3709
3711
|
meta: e == null ? void 0 : e.meta
|
|
3710
3712
|
} : void 0;
|
|
3711
3713
|
function Te(e) {
|
|
3712
|
-
var c, u, f, d, m, g,
|
|
3713
|
-
const [t, n] =
|
|
3714
|
+
var c, u, f, d, m, g, y;
|
|
3715
|
+
const [t, n] = T(
|
|
3714
3716
|
() => {
|
|
3715
|
-
var
|
|
3717
|
+
var C, p;
|
|
3716
3718
|
return Nn({
|
|
3717
3719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3718
|
-
variationId: (
|
|
3720
|
+
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
3719
3721
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3720
|
-
contentId: (
|
|
3722
|
+
contentId: (p = e.content) == null ? void 0 : p.id
|
|
3721
3723
|
});
|
|
3722
3724
|
}
|
|
3723
3725
|
);
|
|
3724
|
-
function i(
|
|
3725
|
-
r((
|
|
3726
|
-
...
|
|
3727
|
-
rootState:
|
|
3726
|
+
function i(C) {
|
|
3727
|
+
r((p) => ({
|
|
3728
|
+
...p,
|
|
3729
|
+
rootState: C
|
|
3728
3730
|
}));
|
|
3729
3731
|
}
|
|
3730
|
-
const [o, l] =
|
|
3731
|
-
() =>
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3732
|
+
const [o, l] = T(
|
|
3733
|
+
() => {
|
|
3734
|
+
var C;
|
|
3735
|
+
return [
|
|
3736
|
+
...Se(),
|
|
3737
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
|
|
3738
|
+
].reduce(
|
|
3739
|
+
(p, { component: B, ...E }) => ({
|
|
3740
|
+
...p,
|
|
3741
|
+
[E.name]: {
|
|
3742
|
+
component: B,
|
|
3743
|
+
...ge(E)
|
|
3744
|
+
}
|
|
3745
|
+
}),
|
|
3746
|
+
{}
|
|
3747
|
+
);
|
|
3748
|
+
}
|
|
3749
|
+
), [a, r] = T(() => {
|
|
3750
|
+
var C;
|
|
3751
|
+
return {
|
|
3752
|
+
content: zn({
|
|
3753
|
+
content: e.content,
|
|
3754
|
+
data: e.data
|
|
3741
3755
|
}),
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
data: e.data
|
|
3748
|
-
}),
|
|
3749
|
-
localState: void 0,
|
|
3750
|
-
rootState: Kn({
|
|
3751
|
-
content: e.content,
|
|
3752
|
-
data: e.data,
|
|
3753
|
-
locale: e.locale
|
|
3754
|
-
}),
|
|
3755
|
-
rootSetState: i,
|
|
3756
|
-
context: e.context || {},
|
|
3757
|
-
canTrack: e.canTrack,
|
|
3758
|
-
apiKey: e.apiKey,
|
|
3759
|
-
apiVersion: e.apiVersion,
|
|
3760
|
-
componentInfos: [
|
|
3761
|
-
...Se(),
|
|
3762
|
-
...e.customComponents || []
|
|
3763
|
-
].reduce(
|
|
3764
|
-
(I, { component: x, ...E }) => ({
|
|
3765
|
-
...I,
|
|
3766
|
-
[E.name]: ge(E)
|
|
3756
|
+
localState: void 0,
|
|
3757
|
+
rootState: Kn({
|
|
3758
|
+
content: e.content,
|
|
3759
|
+
data: e.data,
|
|
3760
|
+
locale: e.locale
|
|
3767
3761
|
}),
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3762
|
+
rootSetState: i,
|
|
3763
|
+
context: e.context || {},
|
|
3764
|
+
canTrack: e.canTrack,
|
|
3765
|
+
apiKey: e.apiKey,
|
|
3766
|
+
apiVersion: e.apiVersion,
|
|
3767
|
+
componentInfos: [
|
|
3768
|
+
...Se(),
|
|
3769
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
|
|
3770
|
+
].reduce(
|
|
3771
|
+
(p, { component: B, ...E }) => ({
|
|
3772
|
+
...p,
|
|
3773
|
+
[E.name]: ge(E)
|
|
3774
|
+
}),
|
|
3775
|
+
{}
|
|
3776
|
+
),
|
|
3777
|
+
inheritedStyles: {},
|
|
3778
|
+
BlocksWrapper: e.blocksWrapper || "div",
|
|
3779
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3780
|
+
nonce: e.nonce || ""
|
|
3781
|
+
};
|
|
3782
|
+
});
|
|
3775
3783
|
return /* @__PURE__ */ s(
|
|
3776
3784
|
Be.Provider,
|
|
3777
3785
|
{
|
|
@@ -3818,7 +3826,7 @@ function Te(e) {
|
|
|
3818
3826
|
/* @__PURE__ */ s(
|
|
3819
3827
|
D,
|
|
3820
3828
|
{
|
|
3821
|
-
blocks: (
|
|
3829
|
+
blocks: (y = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
|
|
3822
3830
|
context: a,
|
|
3823
3831
|
registeredComponents: o,
|
|
3824
3832
|
linkComponent: e.linkComponent
|
|
@@ -3832,7 +3840,7 @@ function Te(e) {
|
|
|
3832
3840
|
}
|
|
3833
3841
|
function _n(e) {
|
|
3834
3842
|
var a;
|
|
3835
|
-
const [t, n] =
|
|
3843
|
+
const [t, n] = T(
|
|
3836
3844
|
() => Bn({
|
|
3837
3845
|
canTrack: Q(e.canTrack),
|
|
3838
3846
|
content: e.content
|
|
@@ -3861,9 +3869,8 @@ function _n(e) {
|
|
|
3861
3869
|
canTrack: Q(e.canTrack)
|
|
3862
3870
|
});
|
|
3863
3871
|
}
|
|
3864
|
-
return
|
|
3865
|
-
}, []),
|
|
3866
|
-
}), /* @__PURE__ */ P(R, { children: [
|
|
3872
|
+
return V(() => {
|
|
3873
|
+
}, []), /* @__PURE__ */ P(R, { children: [
|
|
3867
3874
|
!e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ s(
|
|
3868
3875
|
ce,
|
|
3869
3876
|
{
|
|
@@ -3979,7 +3986,7 @@ function Yn(e) {
|
|
|
3979
3986
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3980
3987
|
].filter(Boolean).join(" ");
|
|
3981
3988
|
}
|
|
3982
|
-
const [o, l] =
|
|
3989
|
+
const [o, l] = T(() => {
|
|
3983
3990
|
var d;
|
|
3984
3991
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
3985
3992
|
});
|
|
@@ -3991,8 +3998,8 @@ function Yn(e) {
|
|
|
3991
3998
|
d && l(d);
|
|
3992
3999
|
});
|
|
3993
4000
|
}
|
|
3994
|
-
return
|
|
3995
|
-
}, []),
|
|
4001
|
+
return V(() => {
|
|
4002
|
+
}, []), V(() => {
|
|
3996
4003
|
a();
|
|
3997
4004
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3998
4005
|
_n,
|