@builder.io/sdk-react 4.0.9 → 4.0.10
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 +9 -9
- package/lib/browser/blocks-exports.mjs +455 -440
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-6a0d3985.cjs +2 -0
- package/lib/{edge/server-entry-8dc3478a.js → browser/server-entry-a97b474c.js} +272 -265
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-b551e135.js → accordion-39aaa10f.js} +1 -1
- package/lib/edge/{accordion-e3f81e74.cjs → accordion-f19408f1.cjs} +1 -1
- package/lib/edge/{blocks-cd1feef2.js → blocks-204bcb03.js} +2 -2
- package/lib/edge/{blocks-eb6fa21f.cjs → blocks-bd4d19a4.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-5c6a9392.cjs → button-39adadab.cjs} +1 -1
- package/lib/edge/{button-f390f723.js → button-eb4a1fce.js} +2 -2
- package/lib/edge/{columns-ad17139e.cjs → columns-3954e4e2.cjs} +1 -1
- package/lib/edge/{columns-7018a027.js → columns-d3cef236.js} +3 -3
- package/lib/edge/{content-variants-c72ca81f.cjs → content-variants-0c41aa3b.cjs} +3 -3
- package/lib/edge/{content-variants-dc54ce4f.js → content-variants-68bbb30c.js} +13 -13
- package/lib/edge/{custom-code-e87af7b1.cjs → custom-code-eded3b35.cjs} +1 -1
- package/lib/edge/{custom-code-0daf1c91.js → custom-code-f8374f7b.js} +1 -1
- package/lib/edge/{embed-1dfcba43.js → embed-2b4ce9d5.js} +1 -1
- package/lib/edge/{embed-c695c98e.cjs → embed-44dee332.cjs} +1 -1
- package/lib/edge/form-1493caf1.cjs +1 -0
- package/lib/edge/form-9faf63c9.js +178 -0
- package/lib/edge/{get-class-prop-name-c479656a.cjs → get-class-prop-name-a9265175.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-5edacc3b.js → get-class-prop-name-cc48fc17.js} +1 -1
- package/lib/edge/{img-882c7222.js → img-58c08dd4.js} +1 -1
- package/lib/edge/{img-6982d6eb.cjs → img-b8d85bad.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-3d4f956b.js → input-a7c01b3a.js} +1 -1
- package/lib/edge/{input-8c7008b5.cjs → input-d988f887.cjs} +1 -1
- package/lib/edge/personalization-container-2f2bfa1b.cjs +1 -0
- package/lib/edge/{personalization-container-3a8dc18a.js → personalization-container-9ae00624.js} +35 -32
- package/lib/edge/{select-2efc7503.cjs → select-03b307f2.cjs} +1 -1
- package/lib/edge/{select-153586f8.js → select-4f03decc.js} +1 -1
- package/lib/{node/server-entry-f03c1146.js → edge/server-entry-0fe1fd76.js} +306 -303
- package/lib/edge/server-entry-e13b9b35.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-f1f7513c.cjs → slot-125b0593.cjs} +1 -1
- package/lib/edge/{slot-d268693c.js → slot-ff90c844.js} +3 -3
- package/lib/edge/{symbol-378e19ee.js → symbol-7558aa24.js} +2 -2
- package/lib/edge/{symbol-0344516c.cjs → symbol-da3ec542.cjs} +1 -1
- package/lib/edge/{tabs-4e931765.cjs → tabs-3cf7cfd3.cjs} +1 -1
- package/lib/edge/{tabs-29ff78a0.js → tabs-a9e56d82.js} +3 -3
- package/lib/node/blocks-exports.cjs +16 -16
- package/lib/node/blocks-exports.mjs +255 -240
- 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/{browser/server-entry-231f8ecd.js → node/server-entry-23f9b44b.js} +205 -199
- package/lib/node/server-entry-ceef853b.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-3761bb10.cjs → setIvm-71bce8c3.cjs} +1 -1
- package/lib/node/{setIvm-044ce9e7.js → setIvm-b29cbc40.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-f620dcdc.js → should-force-browser-runtime-in-node-5a2ea9eb.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-e760d4f2.cjs → should-force-browser-runtime-in-node-e0147364.cjs} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/no-serialize-wrapper.d.ts +1 -0
- package/types/helpers/user-attributes.d.ts +6 -2
- package/lib/browser/server-entry-bdbd3c0d.cjs +0 -2
- package/lib/edge/form-5a0c89d9.js +0 -166
- package/lib/edge/form-ba54942c.cjs +0 -1
- package/lib/edge/personalization-container-4557a50b.cjs +0 -1
- package/lib/edge/server-entry-9d269960.cjs +0 -2
- package/lib/node/server-entry-916c726c.cjs +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as qi } from "./server-entry-
|
|
2
|
+
import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as oe, isEditing as O, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, registerInsertMenu as lt, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Te, fetchOneEntry as Le, createEditorListener as dt, serializeIncludingFunctions as Ie, handleABTestingSync as mt } from "./server-entry-23f9b44b.js";
|
|
3
|
+
import { setClientUserAttributes as qi } from "./server-entry-23f9b44b.js";
|
|
4
4
|
import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
|
|
5
5
|
import * as ft from "react";
|
|
6
|
-
import { createContext as Oe, useEffect as
|
|
7
|
-
import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-
|
|
6
|
+
import { createContext as Oe, useEffect as V, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
|
|
7
|
+
import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-b29cbc40.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-5a2ea9eb.js";
|
|
9
9
|
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
10
10
|
function pe(e) {
|
|
11
11
|
return /* @__PURE__ */ s(R, { children: St(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 }) }) });
|
|
12
12
|
}
|
|
13
13
|
const j = () => {
|
|
14
|
-
switch (
|
|
14
|
+
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -210,7 +210,7 @@ function be(e) {
|
|
|
210
210
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
|
-
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
213
|
+
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) => {
|
|
214
214
|
if ($t) {
|
|
215
215
|
const t = ye(e);
|
|
216
216
|
return {
|
|
@@ -358,8 +358,8 @@ function Ut(e) {
|
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
360
|
function l(f) {
|
|
361
|
-
const
|
|
362
|
-
return
|
|
361
|
+
const b = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
|
|
362
|
+
return b.bottom > d && b.top < m - d;
|
|
363
363
|
}
|
|
364
364
|
const c = e.steps[0].styles;
|
|
365
365
|
function u() {
|
|
@@ -403,7 +403,7 @@ const qt = ({
|
|
|
403
403
|
block: e
|
|
404
404
|
}));
|
|
405
405
|
function Ge(e) {
|
|
406
|
-
switch (
|
|
406
|
+
switch (F) {
|
|
407
407
|
case "svelte":
|
|
408
408
|
case "vue":
|
|
409
409
|
case "solid":
|
|
@@ -562,10 +562,10 @@ function Yt(e) {
|
|
|
562
562
|
return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
|
-
var k,
|
|
565
|
+
var k, A, T, I, g;
|
|
566
566
|
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Xe(
|
|
567
567
|
((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
|
|
568
|
-
), l = !!((T = (
|
|
568
|
+
), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, f = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, m = i.id;
|
|
569
569
|
if (!m)
|
|
570
570
|
return "";
|
|
571
571
|
const v = c ? Q({
|
|
@@ -585,21 +585,21 @@ function Yt(e) {
|
|
|
585
585
|
"small",
|
|
586
586
|
r
|
|
587
587
|
)
|
|
588
|
-
}) : "", p =
|
|
588
|
+
}) : "", p = b && l ? Q({
|
|
589
589
|
className: m,
|
|
590
|
-
styles:
|
|
590
|
+
styles: b,
|
|
591
591
|
mediaQuery: ce(
|
|
592
592
|
"xsmall",
|
|
593
593
|
r
|
|
594
594
|
)
|
|
595
|
-
}) : "", y = i.animations && i.animations.find((
|
|
596
|
-
let
|
|
595
|
+
}) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
596
|
+
let S = "";
|
|
597
597
|
if (y) {
|
|
598
|
-
const
|
|
599
|
-
|
|
598
|
+
const x = ((g = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : g.styles) || {};
|
|
599
|
+
S = Q({
|
|
600
600
|
className: `${m}:hover`,
|
|
601
601
|
styles: {
|
|
602
|
-
...
|
|
602
|
+
...x,
|
|
603
603
|
transition: `all ${y.duration}s ${le(
|
|
604
604
|
y.easing
|
|
605
605
|
)}`,
|
|
@@ -612,7 +612,7 @@ function Yt(e) {
|
|
|
612
612
|
d,
|
|
613
613
|
h,
|
|
614
614
|
p,
|
|
615
|
-
|
|
615
|
+
S
|
|
616
616
|
].join(" ");
|
|
617
617
|
}
|
|
618
618
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
@@ -645,7 +645,7 @@ function Ze(e) {
|
|
|
645
645
|
const o = n[a];
|
|
646
646
|
let r = Zt(a);
|
|
647
647
|
if (e.stripPrefix)
|
|
648
|
-
switch (
|
|
648
|
+
switch (F) {
|
|
649
649
|
case "vue":
|
|
650
650
|
r = r.replace("v-on:", "");
|
|
651
651
|
break;
|
|
@@ -708,7 +708,7 @@ function an(e) {
|
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
710
|
function rn(e) {
|
|
711
|
-
return
|
|
711
|
+
return V(() => {
|
|
712
712
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
713
713
|
}
|
|
714
714
|
function on(e) {
|
|
@@ -732,7 +732,7 @@ function on(e) {
|
|
|
732
732
|
function n() {
|
|
733
733
|
return e.wrapperProps;
|
|
734
734
|
}
|
|
735
|
-
return
|
|
735
|
+
return V(() => {
|
|
736
736
|
}, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
737
737
|
rn,
|
|
738
738
|
{
|
|
@@ -780,7 +780,7 @@ function Re(e) {
|
|
|
780
780
|
const [t, n] = C(
|
|
781
781
|
() => e.isInteractive ? on : e.componentRef
|
|
782
782
|
);
|
|
783
|
-
return
|
|
783
|
+
return V(() => {
|
|
784
784
|
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
785
785
|
t,
|
|
786
786
|
{
|
|
@@ -809,7 +809,7 @@ function Re(e) {
|
|
|
809
809
|
}
|
|
810
810
|
function Pe(e) {
|
|
811
811
|
const [t, n] = C(() => e.repeatContext);
|
|
812
|
-
return
|
|
812
|
+
return V(() => {
|
|
813
813
|
n(e.repeatContext);
|
|
814
814
|
}, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
815
815
|
se,
|
|
@@ -822,7 +822,7 @@ function Pe(e) {
|
|
|
822
822
|
) });
|
|
823
823
|
}
|
|
824
824
|
function se(e) {
|
|
825
|
-
var f,
|
|
825
|
+
var f, b, m, v;
|
|
826
826
|
function t() {
|
|
827
827
|
return zt({
|
|
828
828
|
block: e.block,
|
|
@@ -889,10 +889,10 @@ function se(e) {
|
|
|
889
889
|
registeredComponents: e.registeredComponents,
|
|
890
890
|
builderBlock: a(),
|
|
891
891
|
includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
|
|
892
|
-
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC &&
|
|
892
|
+
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && F === "rsc")
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
return
|
|
895
|
+
return V(() => {
|
|
896
896
|
const d = a().id, h = a().animations;
|
|
897
897
|
h && d && Ot(
|
|
898
898
|
h.map((p) => ({
|
|
@@ -900,7 +900,7 @@ function se(e) {
|
|
|
900
900
|
elementId: d
|
|
901
901
|
}))
|
|
902
902
|
);
|
|
903
|
-
}, []),
|
|
903
|
+
}, []), V(() => {
|
|
904
904
|
n.update = !0;
|
|
905
905
|
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
|
|
906
906
|
/* @__PURE__ */ s(Yt, { block: a(), context: e.context }),
|
|
@@ -956,7 +956,7 @@ function se(e) {
|
|
|
956
956
|
isInteractive: u().isInteractive
|
|
957
957
|
}
|
|
958
958
|
),
|
|
959
|
-
(
|
|
959
|
+
(b = c()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
|
|
960
960
|
se,
|
|
961
961
|
{
|
|
962
962
|
block: d,
|
|
@@ -990,7 +990,7 @@ function sn(e) {
|
|
|
990
990
|
}
|
|
991
991
|
function a() {
|
|
992
992
|
var r, l;
|
|
993
|
-
|
|
993
|
+
O() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
994
994
|
{
|
|
995
995
|
type: "builder.clickEmptyBlocks",
|
|
996
996
|
data: {
|
|
@@ -1003,7 +1003,7 @@ function sn(e) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
function o() {
|
|
1005
1005
|
var r, l;
|
|
1006
|
-
|
|
1006
|
+
O() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1007
1007
|
{
|
|
1008
1008
|
type: "builder.hoverEmptyBlocks",
|
|
1009
1009
|
data: {
|
|
@@ -1014,8 +1014,8 @@ function sn(e) {
|
|
|
1014
1014
|
"*"
|
|
1015
1015
|
));
|
|
1016
1016
|
}
|
|
1017
|
-
return
|
|
1018
|
-
}, []),
|
|
1017
|
+
return V(() => {
|
|
1018
|
+
}, []), V(() => {
|
|
1019
1019
|
}, [e.blocks]), /* @__PURE__ */ $(R, { children: [
|
|
1020
1020
|
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
|
|
1021
1021
|
display: flex;
|
|
@@ -1084,24 +1084,24 @@ function un(e) {
|
|
|
1084
1084
|
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
1085
1085
|
}
|
|
1086
1086
|
function o(y) {
|
|
1087
|
-
var
|
|
1088
|
-
return ((
|
|
1087
|
+
var S;
|
|
1088
|
+
return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1089
1089
|
}
|
|
1090
1090
|
function r(y) {
|
|
1091
|
-
const
|
|
1092
|
-
return `calc(${
|
|
1091
|
+
const S = o(y), k = t() * (n().length - 1) * (S / 100);
|
|
1092
|
+
return `calc(${S}% - ${k}px)`;
|
|
1093
1093
|
}
|
|
1094
1094
|
function l({
|
|
1095
1095
|
stackedStyle: y,
|
|
1096
|
-
desktopStyle:
|
|
1096
|
+
desktopStyle: S
|
|
1097
1097
|
}) {
|
|
1098
|
-
return i() === "tablet" ? y :
|
|
1098
|
+
return i() === "tablet" ? y : S;
|
|
1099
1099
|
}
|
|
1100
1100
|
function c({
|
|
1101
1101
|
stackedStyle: y,
|
|
1102
|
-
desktopStyle:
|
|
1102
|
+
desktopStyle: S
|
|
1103
1103
|
}) {
|
|
1104
|
-
return i() === "never" ?
|
|
1104
|
+
return i() === "never" ? S : y;
|
|
1105
1105
|
}
|
|
1106
1106
|
function u() {
|
|
1107
1107
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1115,8 +1115,8 @@ function un(e) {
|
|
|
1115
1115
|
})
|
|
1116
1116
|
};
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1119
|
-
const
|
|
1118
|
+
function b(y) {
|
|
1119
|
+
const S = y === 0 ? 0 : t(), k = r(y), A = `${S}px`, T = "100%", I = 0;
|
|
1120
1120
|
return {
|
|
1121
1121
|
...{
|
|
1122
1122
|
display: "flex",
|
|
@@ -1124,14 +1124,14 @@ function un(e) {
|
|
|
1124
1124
|
alignItems: "stretch"
|
|
1125
1125
|
},
|
|
1126
1126
|
width: k,
|
|
1127
|
-
["marginLeft"]:
|
|
1127
|
+
["marginLeft"]: A,
|
|
1128
1128
|
"--column-width-mobile": c({
|
|
1129
1129
|
stackedStyle: T,
|
|
1130
1130
|
desktopStyle: k
|
|
1131
1131
|
}),
|
|
1132
1132
|
"--column-margin-left-mobile": c({
|
|
1133
1133
|
stackedStyle: I,
|
|
1134
|
-
desktopStyle:
|
|
1134
|
+
desktopStyle: A
|
|
1135
1135
|
}),
|
|
1136
1136
|
"--column-width-tablet": l({
|
|
1137
1137
|
stackedStyle: T,
|
|
@@ -1139,14 +1139,14 @@ function un(e) {
|
|
|
1139
1139
|
}),
|
|
1140
1140
|
"--column-margin-left-tablet": l({
|
|
1141
1141
|
stackedStyle: I,
|
|
1142
|
-
desktopStyle:
|
|
1142
|
+
desktopStyle: A
|
|
1143
1143
|
})
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
1146
|
function m(y) {
|
|
1147
|
-
var k,
|
|
1147
|
+
var k, A;
|
|
1148
1148
|
return Xe(
|
|
1149
|
-
((
|
|
1149
|
+
((A = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1150
1150
|
)[y].max;
|
|
1151
1151
|
}
|
|
1152
1152
|
function v() {
|
|
@@ -1177,13 +1177,13 @@ function un(e) {
|
|
|
1177
1177
|
},
|
|
1178
1178
|
`;
|
|
1179
1179
|
}
|
|
1180
|
-
function d(y,
|
|
1180
|
+
function d(y, S) {
|
|
1181
1181
|
return {
|
|
1182
1182
|
...y.link ? {
|
|
1183
1183
|
href: y.link
|
|
1184
1184
|
} : {},
|
|
1185
1185
|
[j()]: "builder-column",
|
|
1186
|
-
style: Ge(
|
|
1186
|
+
style: Ge(b(S))
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
return /* @__PURE__ */ $(R, { children: [
|
|
@@ -1206,16 +1206,16 @@ function un(e) {
|
|
|
1206
1206
|
nonce: e.builderContext.nonce
|
|
1207
1207
|
}
|
|
1208
1208
|
),
|
|
1209
|
-
(p = e.columns) == null ? void 0 : p.map((y,
|
|
1209
|
+
(p = e.columns) == null ? void 0 : p.map((y, S) => /* @__PURE__ */ s(
|
|
1210
1210
|
pe,
|
|
1211
1211
|
{
|
|
1212
1212
|
TagName: a(y),
|
|
1213
1213
|
actionAttributes: {},
|
|
1214
|
-
attributes: d(y,
|
|
1214
|
+
attributes: d(y, S),
|
|
1215
1215
|
children: /* @__PURE__ */ s(
|
|
1216
1216
|
_,
|
|
1217
1217
|
{
|
|
1218
|
-
path: `columns.${
|
|
1218
|
+
path: `columns.${S}.blocks`,
|
|
1219
1219
|
parent: e.builderBlock.id,
|
|
1220
1220
|
context: e.builderContext,
|
|
1221
1221
|
registeredComponents: e.builderComponents,
|
|
@@ -1227,7 +1227,7 @@ function un(e) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
)
|
|
1229
1229
|
},
|
|
1230
|
-
|
|
1230
|
+
S
|
|
1231
1231
|
))
|
|
1232
1232
|
]
|
|
1233
1233
|
}
|
|
@@ -1271,18 +1271,18 @@ function hn(e) {
|
|
|
1271
1271
|
var a, o, r, l, c, u;
|
|
1272
1272
|
function t() {
|
|
1273
1273
|
var m;
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1274
|
+
const b = e.image || e.src;
|
|
1275
|
+
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1276
1276
|
// images, otherwise you can supply this prop manually
|
|
1277
|
-
!(typeof
|
|
1277
|
+
!(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
|
|
1278
1278
|
return e.srcset;
|
|
1279
1279
|
if (!e.noWebp) {
|
|
1280
1280
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1281
1281
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1282
|
-
return console.debug("Removed given srcset"), ue(
|
|
1282
|
+
return console.debug("Removed given srcset"), ue(b);
|
|
1283
1283
|
} else if (e.image && !e.srcset)
|
|
1284
|
-
return ue(
|
|
1285
|
-
return ue(
|
|
1284
|
+
return ue(b);
|
|
1285
|
+
return ue(b);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
function n() {
|
|
@@ -1299,7 +1299,7 @@ function hn(e) {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
return e.aspectRatio ? f : void 0;
|
|
1301
1301
|
}
|
|
1302
|
-
return
|
|
1302
|
+
return V(() => {
|
|
1303
1303
|
}, []), /* @__PURE__ */ $(R, { children: [
|
|
1304
1304
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1305
1305
|
opacity: 1;
|
|
@@ -1594,9 +1594,9 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1594
1594
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
|
-
}`, ne = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte"], ie = ["vue", "svelte"];
|
|
1597
|
+
}`, ne = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1598
1598
|
function Sn(e, t) {
|
|
1599
|
-
return !(e && e.length > 0) || !t ? !1 : ie.includes(
|
|
1599
|
+
return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !K();
|
|
1600
1600
|
}
|
|
1601
1601
|
function kn({
|
|
1602
1602
|
variants: e,
|
|
@@ -1611,7 +1611,7 @@ function kn({
|
|
|
1611
1611
|
path: "this.children",
|
|
1612
1612
|
index: ne
|
|
1613
1613
|
};
|
|
1614
|
-
if (n &&
|
|
1614
|
+
if (n && O()) {
|
|
1615
1615
|
if (typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0)) {
|
|
1616
1616
|
const l = e == null ? void 0 : e[t];
|
|
1617
1617
|
if (l)
|
|
@@ -1641,7 +1641,7 @@ const Cn = () => `
|
|
|
1641
1641
|
window.${xn} = ${pn}
|
|
1642
1642
|
window.${et} = ${yn}
|
|
1643
1643
|
window.${tt} = ${vn}
|
|
1644
|
-
`, it =
|
|
1644
|
+
`, it = F === "react", Tn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
|
|
1645
1645
|
"@type": "@builder.io/sdk:Element",
|
|
1646
1646
|
layerName: "Accordion item title",
|
|
1647
1647
|
responsiveStyles: {
|
|
@@ -1767,7 +1767,7 @@ const Cn = () => `
|
|
|
1767
1767
|
}
|
|
1768
1768
|
}, Ae = (e) => e.toString();
|
|
1769
1769
|
function En(e) {
|
|
1770
|
-
var
|
|
1770
|
+
var b;
|
|
1771
1771
|
const [t, n] = C(() => []);
|
|
1772
1772
|
function i() {
|
|
1773
1773
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1816,13 +1816,13 @@ function En(e) {
|
|
|
1816
1816
|
if (p) {
|
|
1817
1817
|
if (p.classList.contains("builder-accordion-detail"))
|
|
1818
1818
|
continue;
|
|
1819
|
-
const
|
|
1820
|
-
if (
|
|
1819
|
+
const S = p.getBoundingClientRect();
|
|
1820
|
+
if (S.left > y.left) {
|
|
1821
1821
|
const k = parseInt(
|
|
1822
1822
|
p.getAttribute("data-index") || "",
|
|
1823
1823
|
10
|
|
1824
1824
|
);
|
|
1825
|
-
isNaN(k) || (y =
|
|
1825
|
+
isNaN(k) || (y = S, m = k);
|
|
1826
1826
|
} else
|
|
1827
1827
|
break;
|
|
1828
1828
|
}
|
|
@@ -1844,7 +1844,7 @@ function En(e) {
|
|
|
1844
1844
|
function f(m) {
|
|
1845
1845
|
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1846
1846
|
}
|
|
1847
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (
|
|
1847
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(ft.Fragment, { children: [
|
|
1848
1848
|
/* @__PURE__ */ s(
|
|
1849
1849
|
"div",
|
|
1850
1850
|
{
|
|
@@ -2163,13 +2163,13 @@ const Rn = {
|
|
|
2163
2163
|
function n(r, l = 6e4) {
|
|
2164
2164
|
return new Promise((c, u) => {
|
|
2165
2165
|
const f = document.createElement("img");
|
|
2166
|
-
let
|
|
2166
|
+
let b = !1;
|
|
2167
2167
|
f.onload = () => {
|
|
2168
|
-
|
|
2168
|
+
b = !0, c(f);
|
|
2169
2169
|
}, f.addEventListener("error", (m) => {
|
|
2170
2170
|
console.warn("Image load failed", m.error), u(m.error);
|
|
2171
2171
|
}), f.src = r, setTimeout(() => {
|
|
2172
|
-
|
|
2172
|
+
b || u(new Error("Image load timed out"));
|
|
2173
2173
|
}, l);
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
@@ -2300,7 +2300,7 @@ function q(e) {
|
|
|
2300
2300
|
);
|
|
2301
2301
|
}
|
|
2302
2302
|
function $n(e) {
|
|
2303
|
-
var
|
|
2303
|
+
var S, k, A, T, I, g, x, w, D, L, W, P, U;
|
|
2304
2304
|
const t = H(null), [n, i] = C(
|
|
2305
2305
|
() => Ce.getUserAttributes()
|
|
2306
2306
|
), [a, o] = C(
|
|
@@ -2321,7 +2321,7 @@ function $n(e) {
|
|
|
2321
2321
|
(N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
|
|
2322
2322
|
);
|
|
2323
2323
|
}
|
|
2324
|
-
), [c, u] = C(() => []), [f,
|
|
2324
|
+
), [c, u] = C(() => []), [f, b] = C(
|
|
2325
2325
|
() => {
|
|
2326
2326
|
var E;
|
|
2327
2327
|
return Sn(
|
|
@@ -2370,15 +2370,18 @@ function $n(e) {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
).join("");
|
|
2372
2372
|
}
|
|
2373
|
-
return
|
|
2373
|
+
return V(() => {
|
|
2374
2374
|
var B;
|
|
2375
2375
|
v(!0);
|
|
2376
2376
|
const E = Ce.subscribeOnUserAttributesChange(
|
|
2377
2377
|
(N) => {
|
|
2378
2378
|
i(N);
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
fireImmediately: F === "qwik"
|
|
2379
2382
|
}
|
|
2380
2383
|
);
|
|
2381
|
-
if (!(
|
|
2384
|
+
if (!(O() || oe())) {
|
|
2382
2385
|
const N = h()[0];
|
|
2383
2386
|
t.current && (t.current.dispatchEvent(
|
|
2384
2387
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -2404,24 +2407,24 @@ function $n(e) {
|
|
|
2404
2407
|
}).observe(t.current));
|
|
2405
2408
|
}
|
|
2406
2409
|
c.push(E);
|
|
2407
|
-
}, []),
|
|
2410
|
+
}, []), V(() => () => {
|
|
2408
2411
|
c.forEach((E) => E());
|
|
2409
2412
|
}, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
|
|
2410
|
-
m && ie.includes(
|
|
2413
|
+
m && ie.includes(F) ? /* @__PURE__ */ s(
|
|
2411
2414
|
_,
|
|
2412
2415
|
{
|
|
2413
2416
|
blocks: p().blocks,
|
|
2414
|
-
parent: (
|
|
2417
|
+
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2415
2418
|
path: p().path,
|
|
2416
2419
|
context: e.builderContext,
|
|
2417
2420
|
registeredComponents: e.builderComponents,
|
|
2418
2421
|
BlocksWrapperProps: {
|
|
2419
2422
|
...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
|
|
2420
|
-
"data-variant-id": `${(
|
|
2423
|
+
"data-variant-id": `${(A = e.builderBlock) == null ? void 0 : A.id}-${p().index}`
|
|
2421
2424
|
}
|
|
2422
2425
|
}
|
|
2423
2426
|
) : null,
|
|
2424
|
-
!m && ie.includes(
|
|
2427
|
+
!m && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ $(R, { children: [
|
|
2425
2428
|
f ? /* @__PURE__ */ $(R, { children: [
|
|
2426
2429
|
/* @__PURE__ */ s(
|
|
2427
2430
|
ee,
|
|
@@ -2434,9 +2437,9 @@ function $n(e) {
|
|
|
2434
2437
|
/* @__PURE__ */ s(
|
|
2435
2438
|
q,
|
|
2436
2439
|
{
|
|
2437
|
-
nonce: ((
|
|
2440
|
+
nonce: ((g = e.builderContext) == null ? void 0 : g.nonce) || "",
|
|
2438
2441
|
scriptStr: r,
|
|
2439
|
-
id: `variants-visibility-script-${(
|
|
2442
|
+
id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2440
2443
|
}
|
|
2441
2444
|
),
|
|
2442
2445
|
(w = e.variants) == null ? void 0 : w.map((E, B) => {
|
|
@@ -2472,18 +2475,18 @@ function $n(e) {
|
|
|
2472
2475
|
_,
|
|
2473
2476
|
{
|
|
2474
2477
|
blocks: p().blocks,
|
|
2475
|
-
parent: (
|
|
2478
|
+
parent: (D = e.builderBlock) == null ? void 0 : D.id,
|
|
2476
2479
|
path: p().path,
|
|
2477
2480
|
context: e.builderContext,
|
|
2478
2481
|
registeredComponents: e.builderComponents,
|
|
2479
2482
|
BlocksWrapperProps: {
|
|
2480
|
-
...(
|
|
2481
|
-
"data-variant-id": `${(
|
|
2483
|
+
...(L = e.builderContext) == null ? void 0 : L.BlocksWrapperProps,
|
|
2484
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
|
|
2482
2485
|
},
|
|
2483
2486
|
children: f ? /* @__PURE__ */ s(
|
|
2484
2487
|
q,
|
|
2485
2488
|
{
|
|
2486
|
-
nonce: ((
|
|
2489
|
+
nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
|
|
2487
2490
|
scriptStr: a,
|
|
2488
2491
|
id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ne}`
|
|
2489
2492
|
}
|
|
@@ -2883,8 +2886,8 @@ function qn(e) {
|
|
|
2883
2886
|
if (n.includes(f.src))
|
|
2884
2887
|
continue;
|
|
2885
2888
|
n.push(f.src);
|
|
2886
|
-
const
|
|
2887
|
-
|
|
2889
|
+
const b = document.createElement("script");
|
|
2890
|
+
b.async = !0, b.src = f.src, document.head.appendChild(b);
|
|
2888
2891
|
} else if (!f.type || [
|
|
2889
2892
|
"text/javascript",
|
|
2890
2893
|
"application/javascript",
|
|
@@ -2894,19 +2897,19 @@ function qn(e) {
|
|
|
2894
2897
|
continue;
|
|
2895
2898
|
try {
|
|
2896
2899
|
a.push(f.innerText), new Function(f.innerText)();
|
|
2897
|
-
} catch (
|
|
2900
|
+
} catch (b) {
|
|
2898
2901
|
Z.warn(
|
|
2899
2902
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2900
|
-
|
|
2903
|
+
b
|
|
2901
2904
|
);
|
|
2902
2905
|
}
|
|
2903
2906
|
}
|
|
2904
2907
|
}
|
|
2905
2908
|
}
|
|
2906
|
-
return
|
|
2909
|
+
return V(() => {
|
|
2907
2910
|
r();
|
|
2908
|
-
}, []),
|
|
2909
|
-
|
|
2911
|
+
}, []), V(() => {
|
|
2912
|
+
O() && r();
|
|
2910
2913
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2911
2914
|
"div",
|
|
2912
2915
|
{
|
|
@@ -2939,20 +2942,20 @@ function Jn(e) {
|
|
|
2939
2942
|
return;
|
|
2940
2943
|
const u = t.current.getElementsByTagName("script");
|
|
2941
2944
|
for (let f = 0; f < u.length; f++) {
|
|
2942
|
-
const
|
|
2943
|
-
if (
|
|
2944
|
-
n.push(
|
|
2945
|
+
const b = u[f];
|
|
2946
|
+
if (b.src && !n.includes(b.src)) {
|
|
2947
|
+
n.push(b.src);
|
|
2945
2948
|
const m = document.createElement("script");
|
|
2946
|
-
m.async = !0, m.src =
|
|
2947
|
-
} else if (Kn(
|
|
2949
|
+
m.async = !0, m.src = b.src, document.head.appendChild(m);
|
|
2950
|
+
} else if (Kn(b) && !a.includes(b.innerText))
|
|
2948
2951
|
try {
|
|
2949
|
-
a.push(
|
|
2952
|
+
a.push(b.innerText), new Function(b.innerText)();
|
|
2950
2953
|
} catch (m) {
|
|
2951
2954
|
Z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
|
|
2952
2955
|
}
|
|
2953
2956
|
}
|
|
2954
2957
|
}
|
|
2955
|
-
return
|
|
2958
|
+
return V(() => {
|
|
2956
2959
|
t.current && !r && (l(!0), c());
|
|
2957
2960
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2958
2961
|
"div",
|
|
@@ -3206,112 +3209,124 @@ const Gn = {
|
|
|
3206
3209
|
};
|
|
3207
3210
|
function Xn(e) {
|
|
3208
3211
|
const t = H(null), [n, i] = C(() => "unsubmitted"), [a, o] = C(() => null), [r, l] = C(() => "");
|
|
3209
|
-
function c(
|
|
3212
|
+
function c(b) {
|
|
3210
3213
|
var v, d;
|
|
3211
3214
|
const m = {
|
|
3212
3215
|
...e.builderContext.rootState,
|
|
3213
|
-
...
|
|
3216
|
+
...b
|
|
3214
3217
|
};
|
|
3215
3218
|
e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
|
|
3216
3219
|
}
|
|
3217
3220
|
function u() {
|
|
3218
|
-
return
|
|
3221
|
+
return O() && e.previewState || n;
|
|
3219
3222
|
}
|
|
3220
|
-
function f(
|
|
3223
|
+
function f(b) {
|
|
3221
3224
|
var v;
|
|
3222
3225
|
const m = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3223
3226
|
if (e.sendSubmissionsTo === "zapier")
|
|
3224
|
-
|
|
3227
|
+
b.preventDefault();
|
|
3225
3228
|
else if (m) {
|
|
3226
3229
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3227
|
-
|
|
3230
|
+
b.preventDefault();
|
|
3228
3231
|
return;
|
|
3229
3232
|
}
|
|
3230
|
-
|
|
3231
|
-
const d =
|
|
3233
|
+
b.preventDefault();
|
|
3234
|
+
const d = b.currentTarget || b.target, h = e.customHeaders || {};
|
|
3232
3235
|
let p;
|
|
3233
|
-
const y = new FormData(d),
|
|
3234
|
-
let
|
|
3235
|
-
const w =
|
|
3236
|
-
if (
|
|
3237
|
-
if (
|
|
3238
|
-
if (
|
|
3239
|
-
return
|
|
3236
|
+
const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
|
|
3237
|
+
let x;
|
|
3238
|
+
const w = g.name;
|
|
3239
|
+
if (g instanceof HTMLInputElement)
|
|
3240
|
+
if (g.type === "radio") {
|
|
3241
|
+
if (g.checked)
|
|
3242
|
+
return x = g.name, {
|
|
3240
3243
|
key: w,
|
|
3241
|
-
value:
|
|
3244
|
+
value: x
|
|
3242
3245
|
};
|
|
3243
|
-
} else if (
|
|
3244
|
-
|
|
3245
|
-
else if (
|
|
3246
|
-
const
|
|
3247
|
-
isNaN(
|
|
3246
|
+
} else if (g.type === "checkbox")
|
|
3247
|
+
x = g.checked;
|
|
3248
|
+
else if (g.type === "number" || g.type === "range") {
|
|
3249
|
+
const D = g.valueAsNumber;
|
|
3250
|
+
isNaN(D) || (x = D);
|
|
3248
3251
|
} else
|
|
3249
|
-
|
|
3252
|
+
g.type === "file" ? x = g.files : x = g.value;
|
|
3250
3253
|
else
|
|
3251
|
-
|
|
3254
|
+
x = g.value;
|
|
3252
3255
|
return {
|
|
3253
3256
|
key: w,
|
|
3254
|
-
value:
|
|
3257
|
+
value: x
|
|
3255
3258
|
};
|
|
3256
3259
|
});
|
|
3257
3260
|
let k = e.contentType;
|
|
3258
|
-
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(
|
|
3259
|
-
(
|
|
3261
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: g }) => {
|
|
3262
|
+
(g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (k = "multipart/form-data");
|
|
3260
3263
|
}), k !== "application/json")
|
|
3261
3264
|
p = y;
|
|
3262
3265
|
else {
|
|
3263
|
-
const
|
|
3264
|
-
Array.from(
|
|
3265
|
-
Ue(
|
|
3266
|
-
}), p = JSON.stringify(
|
|
3266
|
+
const g = {};
|
|
3267
|
+
Array.from(S).forEach(({ value: x, key: w }) => {
|
|
3268
|
+
Ue(g, w, x);
|
|
3269
|
+
}), p = JSON.stringify(g);
|
|
3267
3270
|
}
|
|
3268
3271
|
k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
|
|
3269
|
-
const
|
|
3270
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3272
|
+
const A = new CustomEvent("presubmit", { detail: { body: p } });
|
|
3273
|
+
if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
|
|
3274
|
+
return;
|
|
3275
|
+
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3276
|
+
const g = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3277
|
+
console.error(g), i("error"), c({ formErrorMessage: g });
|
|
3271
3278
|
return;
|
|
3272
|
-
|
|
3279
|
+
}
|
|
3273
3280
|
const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3274
3281
|
e.sendSubmissionsToEmail || ""
|
|
3275
3282
|
)}&name=${encodeURIComponent(e.name || "")}`, I = e.sendSubmissionsTo === "email" ? T : e.action;
|
|
3276
3283
|
Fe(I), fetch(I, { body: p, headers: h, method: e.method || "post" }).then(
|
|
3277
|
-
async (
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3284
|
+
async (g) => {
|
|
3285
|
+
var D, L;
|
|
3286
|
+
let x;
|
|
3287
|
+
const w = g.headers.get("content-type");
|
|
3288
|
+
if (w && w.indexOf("application/json") !== -1 ? x = await g.json() : x = await g.text(), !g.ok) {
|
|
3289
|
+
const W = new CustomEvent("submit:error", {
|
|
3290
|
+
detail: { error: x, status: g.status }
|
|
3291
|
+
});
|
|
3292
|
+
if ((D = t.current) != null && D.nativeElement && ((L = t.current) == null || L.nativeElement.dispatchEvent(W), W.defaultPrevented))
|
|
3293
|
+
return;
|
|
3294
|
+
o(x), i("error");
|
|
3295
|
+
let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3296
|
+
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3297
|
+
return;
|
|
3283
3298
|
}
|
|
3284
|
-
if (o(
|
|
3285
|
-
const
|
|
3286
|
-
detail: { res:
|
|
3299
|
+
if (o(x), i(g.ok ? "success" : "error"), g.ok) {
|
|
3300
|
+
const W = new CustomEvent("submit:success", {
|
|
3301
|
+
detail: { res: g, body: x }
|
|
3287
3302
|
});
|
|
3288
3303
|
if (t.current) {
|
|
3289
|
-
if (t.current.dispatchEvent(
|
|
3304
|
+
if (t.current.dispatchEvent(W), W.defaultPrevented)
|
|
3290
3305
|
return;
|
|
3291
3306
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3292
3307
|
}
|
|
3293
3308
|
if (e.successUrl)
|
|
3294
3309
|
if (t.current) {
|
|
3295
|
-
const
|
|
3310
|
+
const P = new CustomEvent("route", {
|
|
3296
3311
|
detail: { url: e.successUrl }
|
|
3297
3312
|
});
|
|
3298
|
-
t.current.dispatchEvent(
|
|
3313
|
+
t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
|
|
3299
3314
|
} else
|
|
3300
3315
|
location.href = e.successUrl;
|
|
3301
3316
|
}
|
|
3302
3317
|
},
|
|
3303
|
-
(
|
|
3304
|
-
const
|
|
3305
|
-
detail: { error:
|
|
3318
|
+
(g) => {
|
|
3319
|
+
const x = new CustomEvent("submit:error", {
|
|
3320
|
+
detail: { error: g }
|
|
3306
3321
|
});
|
|
3307
|
-
t.current && (t.current.dispatchEvent(
|
|
3322
|
+
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(g), i("error"));
|
|
3308
3323
|
}
|
|
3309
3324
|
);
|
|
3310
3325
|
}
|
|
3311
3326
|
}
|
|
3312
3327
|
return /* @__PURE__ */ $(R, { children: [
|
|
3313
3328
|
" ",
|
|
3314
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3329
|
+
/* @__PURE__ */ s("style", { children: ".pre-7c90c93e { padding: 10px; color: red; text-align: center; }" }),
|
|
3315
3330
|
" ",
|
|
3316
3331
|
/* @__PURE__ */ $(
|
|
3317
3332
|
"form",
|
|
@@ -3321,7 +3336,7 @@ function Xn(e) {
|
|
|
3321
3336
|
action: !e.sendWithJs && e.action,
|
|
3322
3337
|
method: e.method,
|
|
3323
3338
|
name: e.name,
|
|
3324
|
-
onSubmit: (
|
|
3339
|
+
onSubmit: (b) => f(b),
|
|
3325
3340
|
...e.attributes,
|
|
3326
3341
|
children: [
|
|
3327
3342
|
e.children,
|
|
@@ -3341,7 +3356,7 @@ function Xn(e) {
|
|
|
3341
3356
|
context: e.builderContext
|
|
3342
3357
|
}
|
|
3343
3358
|
) : null,
|
|
3344
|
-
u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-
|
|
3359
|
+
u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(a, null, 2) }) : null,
|
|
3345
3360
|
u() === "success" ? /* @__PURE__ */ s(
|
|
3346
3361
|
_,
|
|
3347
3362
|
{
|
|
@@ -3413,7 +3428,7 @@ function ei(e) {
|
|
|
3413
3428
|
"input",
|
|
3414
3429
|
{
|
|
3415
3430
|
...e.attributes,
|
|
3416
|
-
key:
|
|
3431
|
+
key: O() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3417
3432
|
placeholder: e.placeholder,
|
|
3418
3433
|
type: e.type,
|
|
3419
3434
|
name: e.name,
|
|
@@ -3473,7 +3488,7 @@ function ni(e) {
|
|
|
3473
3488
|
{
|
|
3474
3489
|
...e.attributes,
|
|
3475
3490
|
value: e.value,
|
|
3476
|
-
key:
|
|
3491
|
+
key: O() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3477
3492
|
defaultValue: e.defaultValue,
|
|
3478
3493
|
name: e.name,
|
|
3479
3494
|
required: e.required
|
|
@@ -3587,7 +3602,7 @@ function si(e) {
|
|
|
3587
3602
|
src: e.imgSrc || e.image,
|
|
3588
3603
|
...e.attributes
|
|
3589
3604
|
},
|
|
3590
|
-
|
|
3605
|
+
O() && e.imgSrc || "default-key"
|
|
3591
3606
|
);
|
|
3592
3607
|
}
|
|
3593
3608
|
const ci = {
|
|
@@ -3676,7 +3691,7 @@ const ci = {
|
|
|
3676
3691
|
}
|
|
3677
3692
|
};
|
|
3678
3693
|
function ui(e) {
|
|
3679
|
-
var r, l, c, u, f,
|
|
3694
|
+
var r, l, c, u, f, b, m;
|
|
3680
3695
|
const t = H(null);
|
|
3681
3696
|
function n() {
|
|
3682
3697
|
return {
|
|
@@ -3704,7 +3719,7 @@ function ui(e) {
|
|
|
3704
3719
|
}
|
|
3705
3720
|
const [a, o] = C(() => {
|
|
3706
3721
|
});
|
|
3707
|
-
return
|
|
3722
|
+
return V(() => {
|
|
3708
3723
|
if (e.lazyLoad) {
|
|
3709
3724
|
const v = new IntersectionObserver(function(d) {
|
|
3710
3725
|
d.forEach(function(h) {
|
|
@@ -3715,8 +3730,8 @@ function ui(e) {
|
|
|
3715
3730
|
Array.from(p.children).filter(
|
|
3716
3731
|
(y) => y instanceof HTMLElement && y.tagName === "SOURCE"
|
|
3717
3732
|
).forEach((y) => {
|
|
3718
|
-
const
|
|
3719
|
-
|
|
3733
|
+
const S = y.dataset.src;
|
|
3734
|
+
S && (y.src = S);
|
|
3720
3735
|
}), p.load(), v.unobserve(p);
|
|
3721
3736
|
} catch (y) {
|
|
3722
3737
|
console.error("Error loading lazy video:", y);
|
|
@@ -3725,7 +3740,7 @@ function ui(e) {
|
|
|
3725
3740
|
});
|
|
3726
3741
|
t.current && v.observe(t.current), o(v);
|
|
3727
3742
|
}
|
|
3728
|
-
}, []),
|
|
3743
|
+
}, []), V(() => () => {
|
|
3729
3744
|
a && a.disconnect();
|
|
3730
3745
|
}, []), /* @__PURE__ */ $(
|
|
3731
3746
|
"div",
|
|
@@ -3790,7 +3805,7 @@ function ui(e) {
|
|
|
3790
3805
|
children: e.children
|
|
3791
3806
|
}
|
|
3792
3807
|
) : null,
|
|
3793
|
-
(m = (
|
|
3808
|
+
(m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3794
3809
|
"div",
|
|
3795
3810
|
{
|
|
3796
3811
|
style: {
|
|
@@ -3862,7 +3877,7 @@ const di = () => [{
|
|
|
3862
3877
|
}, {
|
|
3863
3878
|
component: Hn,
|
|
3864
3879
|
...Un
|
|
3865
|
-
}, ...nt.includes(
|
|
3880
|
+
}, ...nt.includes(F) ? [{
|
|
3866
3881
|
component: $n,
|
|
3867
3882
|
...Nn
|
|
3868
3883
|
}] : [], {
|
|
@@ -3971,7 +3986,7 @@ const di = () => [{
|
|
|
3971
3986
|
})), hi = ({
|
|
3972
3987
|
canTrack: e,
|
|
3973
3988
|
content: t
|
|
3974
|
-
}) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi =
|
|
3989
|
+
}) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", ot = gi(F), yi = () => `
|
|
3975
3990
|
window.${at} = ${mi}
|
|
3976
3991
|
window.${rt} = ${fi}
|
|
3977
3992
|
`, pi = (e, t) => `
|
|
@@ -4025,7 +4040,7 @@ const xi = (e, t, n = !0) => {
|
|
|
4025
4040
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4026
4041
|
}
|
|
4027
4042
|
};
|
|
4028
|
-
}, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(
|
|
4043
|
+
}, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(F) && (O() || oe()), Ti = (e) => {
|
|
4029
4044
|
var o, r;
|
|
4030
4045
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
4031
4046
|
let a = "";
|
|
@@ -4078,37 +4093,37 @@ font-weight: ${l};
|
|
|
4078
4093
|
}
|
|
4079
4094
|
`, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
|
|
4080
4095
|
function Vi(e) {
|
|
4081
|
-
var
|
|
4096
|
+
var S, k, A;
|
|
4082
4097
|
const t = H(null);
|
|
4083
4098
|
C(() => !1);
|
|
4084
4099
|
function n(T) {
|
|
4085
|
-
var
|
|
4100
|
+
var g, x;
|
|
4086
4101
|
const I = {
|
|
4087
4102
|
...e.builderContextSignal.rootState,
|
|
4088
4103
|
...T
|
|
4089
4104
|
};
|
|
4090
|
-
e.builderContextSignal.rootSetState ? (
|
|
4105
|
+
e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, I) : e.setBuilderContextSignal((w) => ({
|
|
4091
4106
|
...w,
|
|
4092
4107
|
rootState: I
|
|
4093
4108
|
}));
|
|
4094
4109
|
}
|
|
4095
4110
|
function i(T) {
|
|
4096
|
-
var
|
|
4111
|
+
var g, x, w, D, L;
|
|
4097
4112
|
const I = {
|
|
4098
4113
|
...e.builderContextSignal.content,
|
|
4099
4114
|
...T,
|
|
4100
4115
|
data: {
|
|
4101
|
-
...(
|
|
4116
|
+
...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
|
|
4102
4117
|
...T == null ? void 0 : T.data
|
|
4103
4118
|
},
|
|
4104
4119
|
meta: {
|
|
4105
|
-
...(
|
|
4120
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
4106
4121
|
...T == null ? void 0 : T.meta,
|
|
4107
|
-
breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((
|
|
4122
|
+
breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((L = (D = e.builderContextSignal.content) == null ? void 0 : D.meta) == null ? void 0 : L.breakpoints)
|
|
4108
4123
|
}
|
|
4109
4124
|
};
|
|
4110
|
-
e.setBuilderContextSignal((
|
|
4111
|
-
...
|
|
4125
|
+
e.setBuilderContextSignal((W) => ({
|
|
4126
|
+
...W,
|
|
4112
4127
|
content: I
|
|
4113
4128
|
}));
|
|
4114
4129
|
}
|
|
@@ -4128,10 +4143,10 @@ function Vi(e) {
|
|
|
4128
4143
|
callbacks: {
|
|
4129
4144
|
configureSdk: (I) => {
|
|
4130
4145
|
var w;
|
|
4131
|
-
const { breakpoints:
|
|
4132
|
-
!
|
|
4146
|
+
const { breakpoints: g, contentId: x } = I;
|
|
4147
|
+
!x || x !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || g && i({
|
|
4133
4148
|
meta: {
|
|
4134
|
-
breakpoints:
|
|
4149
|
+
breakpoints: g
|
|
4135
4150
|
}
|
|
4136
4151
|
});
|
|
4137
4152
|
},
|
|
@@ -4147,18 +4162,18 @@ function Vi(e) {
|
|
|
4147
4162
|
}
|
|
4148
4163
|
})(T);
|
|
4149
4164
|
}
|
|
4150
|
-
const [c, u] = C(() => ({})), [f,
|
|
4165
|
+
const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
|
|
4151
4166
|
function d(T) {
|
|
4152
|
-
var I,
|
|
4167
|
+
var I, g;
|
|
4153
4168
|
if (e.builderContextSignal.content) {
|
|
4154
|
-
const
|
|
4169
|
+
const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
|
|
4155
4170
|
Te({
|
|
4156
4171
|
apiHost: e.apiHost,
|
|
4157
4172
|
type: "click",
|
|
4158
4173
|
canTrack: X(e.canTrack),
|
|
4159
4174
|
contentId: w,
|
|
4160
4175
|
apiKey: e.apiKey,
|
|
4161
|
-
variationId:
|
|
4176
|
+
variationId: x !== w ? x : void 0,
|
|
4162
4177
|
...ki(T),
|
|
4163
4178
|
unique: !m
|
|
4164
4179
|
});
|
|
@@ -4166,17 +4181,17 @@ function Vi(e) {
|
|
|
4166
4181
|
m || v(!0);
|
|
4167
4182
|
}
|
|
4168
4183
|
function h() {
|
|
4169
|
-
var I,
|
|
4170
|
-
const T = (
|
|
4171
|
-
Object.entries(T).forEach(([w,
|
|
4172
|
-
if (!
|
|
4184
|
+
var I, g, x;
|
|
4185
|
+
const T = (x = (g = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : g.httpRequests) != null ? x : {};
|
|
4186
|
+
Object.entries(T).forEach(([w, D]) => {
|
|
4187
|
+
if (!D || f[w] || c[w] && !O())
|
|
4173
4188
|
return;
|
|
4174
4189
|
f[w] = !0;
|
|
4175
|
-
const
|
|
4190
|
+
const L = D.replace(
|
|
4176
4191
|
/{{([^}]+)}}/g,
|
|
4177
|
-
(
|
|
4192
|
+
(W, P) => String(
|
|
4178
4193
|
J({
|
|
4179
|
-
code:
|
|
4194
|
+
code: P,
|
|
4180
4195
|
context: e.context || {},
|
|
4181
4196
|
localState: void 0,
|
|
4182
4197
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4184,19 +4199,19 @@ function Vi(e) {
|
|
|
4184
4199
|
})
|
|
4185
4200
|
)
|
|
4186
4201
|
);
|
|
4187
|
-
Fe(
|
|
4202
|
+
Fe(L), fetch(L).then((W) => W.json()).then((W) => {
|
|
4188
4203
|
n({
|
|
4189
|
-
[w]:
|
|
4204
|
+
[w]: W
|
|
4190
4205
|
}), c[w] = !0;
|
|
4191
|
-
}).catch((
|
|
4192
|
-
console.error("error fetching dynamic data",
|
|
4206
|
+
}).catch((W) => {
|
|
4207
|
+
console.error("error fetching dynamic data", D, W);
|
|
4193
4208
|
}).finally(() => {
|
|
4194
4209
|
f[w] = !1;
|
|
4195
4210
|
});
|
|
4196
4211
|
});
|
|
4197
4212
|
}
|
|
4198
4213
|
function p() {
|
|
4199
|
-
|
|
4214
|
+
O() && window.dispatchEvent(
|
|
4200
4215
|
new CustomEvent(
|
|
4201
4216
|
"builder:component:stateChange",
|
|
4202
4217
|
{
|
|
@@ -4211,10 +4226,10 @@ function Vi(e) {
|
|
|
4211
4226
|
);
|
|
4212
4227
|
}
|
|
4213
4228
|
const y = H(!1);
|
|
4214
|
-
return y.current || (h(), p(), y.current = !0),
|
|
4215
|
-
var T, I,
|
|
4229
|
+
return y.current || (h(), p(), y.current = !0), V(() => {
|
|
4230
|
+
var T, I, g, x, w;
|
|
4216
4231
|
if (K()) {
|
|
4217
|
-
|
|
4232
|
+
O() && !e.isNestedRender && (window.addEventListener("message", l), lt(), st({
|
|
4218
4233
|
...e.locale ? {
|
|
4219
4234
|
locale: e.locale
|
|
4220
4235
|
} : {},
|
|
@@ -4228,35 +4243,35 @@ function Vi(e) {
|
|
|
4228
4243
|
apiKey: e.apiKey
|
|
4229
4244
|
}), Object.values(
|
|
4230
4245
|
e.builderContextSignal.componentInfos
|
|
4231
|
-
).forEach((
|
|
4246
|
+
).forEach((P) => {
|
|
4232
4247
|
var U, E;
|
|
4233
|
-
if (!((U =
|
|
4234
|
-
const B = ct(
|
|
4248
|
+
if (!((U = P.models) != null && U.length) || P.models.includes(e.model)) {
|
|
4249
|
+
const B = ct(P);
|
|
4235
4250
|
(E = window.parent) == null || E.postMessage(B, "*");
|
|
4236
4251
|
}
|
|
4237
4252
|
}), window.addEventListener(
|
|
4238
4253
|
"builder:component:stateChangeListenerActivated",
|
|
4239
4254
|
p
|
|
4240
4255
|
));
|
|
4241
|
-
const
|
|
4256
|
+
const D = e.builderContextSignal.content && X(e.canTrack), L = ut({
|
|
4242
4257
|
name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
|
|
4243
4258
|
canTrack: !0
|
|
4244
|
-
}),
|
|
4245
|
-
if (
|
|
4246
|
-
const
|
|
4259
|
+
}), W = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId;
|
|
4260
|
+
if (D && W === L) {
|
|
4261
|
+
const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, U = e.apiKey;
|
|
4247
4262
|
Te({
|
|
4248
4263
|
apiHost: e.apiHost,
|
|
4249
4264
|
type: "impression",
|
|
4250
4265
|
canTrack: !0,
|
|
4251
|
-
contentId:
|
|
4266
|
+
contentId: P,
|
|
4252
4267
|
apiKey: U,
|
|
4253
|
-
variationId:
|
|
4268
|
+
variationId: L !== P ? L : void 0
|
|
4254
4269
|
});
|
|
4255
4270
|
}
|
|
4256
|
-
if (oe() && !
|
|
4257
|
-
const
|
|
4271
|
+
if (oe() && !O()) {
|
|
4272
|
+
const P = new URL(location.href).searchParams, U = P.get("builder.preview"), E = P.get(
|
|
4258
4273
|
`builder.overrides.${U}`
|
|
4259
|
-
), B =
|
|
4274
|
+
), B = P.get("apiKey") || P.get("builder.space");
|
|
4260
4275
|
(U === "BUILDER_STUDIO" || U === e.model && B === e.apiKey && (!e.content || E === e.content.id)) && Le({
|
|
4261
4276
|
model: e.model,
|
|
4262
4277
|
apiKey: e.apiKey,
|
|
@@ -4271,17 +4286,17 @@ function Vi(e) {
|
|
|
4271
4286
|
});
|
|
4272
4287
|
}
|
|
4273
4288
|
}
|
|
4274
|
-
}, []),
|
|
4289
|
+
}, []), V(() => {
|
|
4275
4290
|
e.content && i(e.content);
|
|
4276
|
-
}, [e.content]),
|
|
4291
|
+
}, [e.content]), V(() => {
|
|
4277
4292
|
p();
|
|
4278
|
-
}, [e.builderContextSignal.rootState]),
|
|
4293
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
4279
4294
|
e.data && n(e.data);
|
|
4280
|
-
}, [e.data]),
|
|
4295
|
+
}, [e.data]), V(() => {
|
|
4281
4296
|
e.locale && n({
|
|
4282
4297
|
locale: e.locale
|
|
4283
4298
|
});
|
|
4284
|
-
}, [e.locale]),
|
|
4299
|
+
}, [e.locale]), V(() => () => {
|
|
4285
4300
|
K() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4286
4301
|
"builder:component:stateChangeListenerActivated",
|
|
4287
4302
|
p
|
|
@@ -4291,10 +4306,10 @@ function Vi(e) {
|
|
|
4291
4306
|
{
|
|
4292
4307
|
ref: t,
|
|
4293
4308
|
onClick: (T) => d(T),
|
|
4294
|
-
"builder-content-id": (
|
|
4309
|
+
"builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
4295
4310
|
"builder-model": e.model,
|
|
4296
4311
|
className: Pi(
|
|
4297
|
-
((k = e.content) == null ? void 0 : k.testVariationId) || ((
|
|
4312
|
+
((k = e.content) == null ? void 0 : k.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
4298
4313
|
),
|
|
4299
4314
|
style: {
|
|
4300
4315
|
display: !e.builderContextSignal.content && We() ? "none" : void 0
|
|
@@ -4356,22 +4371,22 @@ const Bi = ({
|
|
|
4356
4371
|
meta: e == null ? void 0 : e.meta
|
|
4357
4372
|
} : void 0;
|
|
4358
4373
|
function De(e) {
|
|
4359
|
-
var u, f,
|
|
4374
|
+
var u, f, b, m, v, d, h, p, y;
|
|
4360
4375
|
const [t, n] = C(
|
|
4361
4376
|
() => {
|
|
4362
|
-
var
|
|
4377
|
+
var S, k;
|
|
4363
4378
|
return vi({
|
|
4364
4379
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4365
|
-
variationId: (
|
|
4380
|
+
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4366
4381
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4367
4382
|
contentId: (k = e.content) == null ? void 0 : k.id
|
|
4368
4383
|
});
|
|
4369
4384
|
}
|
|
4370
4385
|
);
|
|
4371
|
-
function i(
|
|
4386
|
+
function i(S) {
|
|
4372
4387
|
l((k) => ({
|
|
4373
4388
|
...k,
|
|
4374
|
-
rootState:
|
|
4389
|
+
rootState: S
|
|
4375
4390
|
}));
|
|
4376
4391
|
}
|
|
4377
4392
|
const [a, o] = C(
|
|
@@ -4379,11 +4394,11 @@ function De(e) {
|
|
|
4379
4394
|
...Be(),
|
|
4380
4395
|
...e.customComponents || []
|
|
4381
4396
|
].reduce(
|
|
4382
|
-
(
|
|
4383
|
-
...
|
|
4384
|
-
[
|
|
4397
|
+
(S, { component: k, ...A }) => ({
|
|
4398
|
+
...S,
|
|
4399
|
+
[A.name]: {
|
|
4385
4400
|
component: k,
|
|
4386
|
-
...Ie(
|
|
4401
|
+
...Ie(A)
|
|
4387
4402
|
}
|
|
4388
4403
|
}),
|
|
4389
4404
|
{}
|
|
@@ -4408,9 +4423,9 @@ function De(e) {
|
|
|
4408
4423
|
...Be(),
|
|
4409
4424
|
...e.customComponents || []
|
|
4410
4425
|
].reduce(
|
|
4411
|
-
(
|
|
4412
|
-
...
|
|
4413
|
-
[
|
|
4426
|
+
(S, { component: k, ...A }) => ({
|
|
4427
|
+
...S,
|
|
4428
|
+
[A.name]: Ie(A)
|
|
4414
4429
|
}),
|
|
4415
4430
|
{}
|
|
4416
4431
|
),
|
|
@@ -4424,9 +4439,9 @@ function De(e) {
|
|
|
4424
4439
|
e.apiKey || Z.error(
|
|
4425
4440
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4426
4441
|
);
|
|
4427
|
-
const
|
|
4428
|
-
|
|
4429
|
-
code:
|
|
4442
|
+
const S = (f = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
|
|
4443
|
+
S && J({
|
|
4444
|
+
code: S,
|
|
4430
4445
|
context: e.context || {},
|
|
4431
4446
|
localState: void 0,
|
|
4432
4447
|
rootState: r.rootState,
|
|
@@ -4476,7 +4491,7 @@ function De(e) {
|
|
|
4476
4491
|
{
|
|
4477
4492
|
nonce: e.nonce || "",
|
|
4478
4493
|
isNestedRender: e.isNestedRender,
|
|
4479
|
-
contentId: (
|
|
4494
|
+
contentId: (b = r.content) == null ? void 0 : b.id,
|
|
4480
4495
|
cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
4481
4496
|
customFonts: (h = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
|
|
4482
4497
|
}
|
|
@@ -4527,9 +4542,9 @@ function $i(e) {
|
|
|
4527
4542
|
canTrack: X(e.canTrack)
|
|
4528
4543
|
});
|
|
4529
4544
|
}
|
|
4530
|
-
return
|
|
4545
|
+
return V(() => {
|
|
4531
4546
|
}, []), /* @__PURE__ */ $(R, { children: [
|
|
4532
|
-
!e.isNestedRender &&
|
|
4547
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
|
|
4533
4548
|
/* @__PURE__ */ s(
|
|
4534
4549
|
q,
|
|
4535
4550
|
{
|
|
@@ -4538,7 +4553,7 @@ function $i(e) {
|
|
|
4538
4553
|
nonce: e.nonce || ""
|
|
4539
4554
|
}
|
|
4540
4555
|
),
|
|
4541
|
-
nt.includes(
|
|
4556
|
+
nt.includes(F) ? /* @__PURE__ */ s(
|
|
4542
4557
|
q,
|
|
4543
4558
|
{
|
|
4544
4559
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -4640,7 +4655,7 @@ const Wi = async ({
|
|
|
4640
4655
|
});
|
|
4641
4656
|
};
|
|
4642
4657
|
function Di(e) {
|
|
4643
|
-
var u, f,
|
|
4658
|
+
var u, f, b, m, v;
|
|
4644
4659
|
function t() {
|
|
4645
4660
|
return "div";
|
|
4646
4661
|
}
|
|
@@ -4673,8 +4688,8 @@ function Di(e) {
|
|
|
4673
4688
|
h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
|
|
4674
4689
|
});
|
|
4675
4690
|
}
|
|
4676
|
-
return
|
|
4677
|
-
}, []),
|
|
4691
|
+
return V(() => {
|
|
4692
|
+
}, []), V(() => {
|
|
4678
4693
|
c();
|
|
4679
4694
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4680
4695
|
$i,
|
|
@@ -4691,7 +4706,7 @@ function Di(e) {
|
|
|
4691
4706
|
data: {
|
|
4692
4707
|
...(f = e.symbol) == null ? void 0 : f.data,
|
|
4693
4708
|
...e.builderContext.localState,
|
|
4694
|
-
...(
|
|
4709
|
+
...(b = a == null ? void 0 : a.data) == null ? void 0 : b.state
|
|
4695
4710
|
},
|
|
4696
4711
|
canTrack: e.builderContext.canTrack,
|
|
4697
4712
|
model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
|