@builder.io/sdk-react 2.0.27 → 2.0.28
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 +366 -362
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-b2eed856.cjs → server-entry-7260e494.cjs} +1 -1
- package/lib/browser/{server-entry-fea90db1.js → server-entry-ffd47885.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-6557fd47.js → accordion-616460c1.js} +1 -1
- package/lib/edge/{accordion-c7ebd14b.cjs → accordion-7ef6a928.cjs} +1 -1
- package/lib/edge/{blocks-00d9b985.cjs → blocks-896a56b0.cjs} +1 -1
- package/lib/edge/{blocks-b7b78f6f.js → blocks-dd91ae28.js} +3 -3
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-ca865fd7.cjs → button-1fa8b647.cjs} +1 -1
- package/lib/edge/{button-07555543.js → button-f917a1c0.js} +2 -2
- package/lib/edge/columns-5756d7b8.cjs +28 -0
- package/lib/edge/{columns-a8fb6e6e.js → columns-dacb342b.js} +67 -63
- package/lib/edge/{content-variants-5de0e605.cjs → content-variants-afc4a718.cjs} +1 -1
- package/lib/edge/{content-variants-f7aadfcc.js → content-variants-cd80b703.js} +11 -11
- package/lib/edge/{evaluate-3fbf8291.js → evaluate-17c2cadd.js} +1 -1
- package/lib/edge/{evaluate-2596ffe5.cjs → evaluate-2fcda9ec.cjs} +1 -1
- package/lib/edge/{form-be8d48c0.js → form-dc7f56c9.js} +4 -4
- package/lib/edge/{form-7f214547.cjs → form-efce5c78.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-00a9606b.cjs → get-class-prop-name-2ce20e98.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-35810f43.js → get-class-prop-name-5437ca23.js} +1 -1
- package/lib/edge/{img-3eab09f2.cjs → img-35a1343f.cjs} +1 -1
- package/lib/edge/{img-1c578e3b.js → img-d187da14.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-9c1e8a98.js → input-38f565ce.js} +1 -1
- package/lib/edge/{input-0d7c1c27.cjs → input-9a6498fd.cjs} +1 -1
- package/lib/edge/{select-c58218b7.cjs → select-135b7397.cjs} +1 -1
- package/lib/edge/{select-fd1e4221.js → select-6cb0b4b7.js} +1 -1
- package/lib/edge/{server-entry-72a543d1.js → server-entry-216eb1bf.js} +1 -1
- package/lib/edge/{server-entry-f03cbcfe.cjs → server-entry-3e6518b6.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-864f8ee7.cjs → slot-b0728030.cjs} +1 -1
- package/lib/edge/{slot-ec9f4a5e.js → slot-d692126c.js} +4 -4
- package/lib/edge/{symbol-68340c52.cjs → symbol-0ac2655e.cjs} +1 -1
- package/lib/edge/{symbol-78fe0b05.js → symbol-df30241a.js} +2 -2
- package/lib/edge/{tabs-b0f30ed3.cjs → tabs-47ed7dde.cjs} +1 -1
- package/lib/edge/{tabs-c847b763.js → tabs-b925777d.js} +4 -4
- package/lib/edge/{text-ff0134a1.cjs → text-0f85a76c.cjs} +1 -1
- package/lib/edge/{text-5ed7f583.js → text-337389ba.js} +2 -2
- package/lib/node/blocks-exports.cjs +14 -14
- package/lib/node/blocks-exports.mjs +368 -364
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-b19b6f07.cjs → server-entry-3e017173.cjs} +1 -1
- package/lib/node/{server-entry-bac0a183.js → server-entry-ca0dcb45.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-22947995.js → setIvm-2100f4f5.js} +1 -1
- package/lib/node/{setIvm-e38cb38e.cjs → setIvm-2d47478e.cjs} +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-5458ba48.js → should-force-browser-runtime-in-node-a77d7cfc.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-0d7217c7.cjs → should-force-browser-runtime-in-node-fd3ca2a8.cjs} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/columns-1d6d0f14.cjs +0 -28
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as l, Fragment as
|
|
3
|
-
import { TARGET as D, isBrowser as _, logger as ne, checkIsDefined as Z, isPreviewing as xe, isEditing as N, registerInsertMenu as Le, setupBrowserForEditing as Oe, createRegisterComponentMessage as Ue, getDefaultCanTrack as q, _track as le, fetchOneEntry as ve, createEditorListener as He, serializeIncludingFunctions as se, handleABTestingSync as je } from "./server-entry-
|
|
4
|
-
import { createContext as Se, useEffect as B, useState as
|
|
5
|
-
import { getFunctionArguments as Me, flattenState as _e, runInNode as qe, parseCode as Ke, getBuilderGlobals as ze, set as Ce, fastClone as ie } from "./setIvm-
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as Je } from "./should-force-browser-runtime-in-node-
|
|
2
|
+
import { jsx as l, Fragment as T, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as D, isBrowser as _, logger as ne, checkIsDefined as Z, isPreviewing as xe, isEditing as N, registerInsertMenu as Le, setupBrowserForEditing as Oe, createRegisterComponentMessage as Ue, getDefaultCanTrack as q, _track as le, fetchOneEntry as ve, createEditorListener as He, serializeIncludingFunctions as se, handleABTestingSync as je } from "./server-entry-ca0dcb45.js";
|
|
4
|
+
import { createContext as Se, useEffect as B, useState as w, useRef as $, useContext as ce, createElement as ke } from "react";
|
|
5
|
+
import { getFunctionArguments as Me, flattenState as _e, runInNode as qe, parseCode as Ke, getBuilderGlobals as ze, set as Ce, fastClone as ie } from "./setIvm-2100f4f5.js";
|
|
6
|
+
import { shouldForceBrowserRuntimeInNode as Je } from "./should-force-browser-runtime-in-node-a77d7cfc.js";
|
|
7
7
|
const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
|
|
8
8
|
function oe(e) {
|
|
9
|
-
return /* @__PURE__ */ l(
|
|
9
|
+
return /* @__PURE__ */ l(T, { children: Ye(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
11
|
const U = () => {
|
|
12
12
|
switch (D) {
|
|
@@ -301,8 +301,8 @@ function mt(e) {
|
|
|
301
301
|
leading: !1
|
|
302
302
|
});
|
|
303
303
|
function s(h) {
|
|
304
|
-
const
|
|
305
|
-
return
|
|
304
|
+
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
305
|
+
return g.bottom > f && g.top < m - f;
|
|
306
306
|
}
|
|
307
307
|
const d = e.steps[0].styles;
|
|
308
308
|
function c() {
|
|
@@ -485,16 +485,16 @@ function kt(e) {
|
|
|
485
485
|
return Z(i.hide) ? !i.hide : Z(i.show) ? i.show : !0;
|
|
486
486
|
}
|
|
487
487
|
function n() {
|
|
488
|
-
var
|
|
488
|
+
var S, p, b;
|
|
489
489
|
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Ae(
|
|
490
|
-
((
|
|
490
|
+
((S = a == null ? void 0 : a.meta) == null ? void 0 : S.breakpoints) || {}
|
|
491
491
|
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
492
492
|
if (!h)
|
|
493
493
|
return "";
|
|
494
|
-
const
|
|
494
|
+
const g = s ? j({
|
|
495
495
|
className: h,
|
|
496
496
|
styles: s
|
|
497
|
-
}) : "",
|
|
497
|
+
}) : "", m = d ? j({
|
|
498
498
|
className: h,
|
|
499
499
|
styles: d,
|
|
500
500
|
mediaQuery: de(
|
|
@@ -508,29 +508,29 @@ function kt(e) {
|
|
|
508
508
|
"small",
|
|
509
509
|
r
|
|
510
510
|
)
|
|
511
|
-
}) : "",
|
|
512
|
-
let
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
|
|
511
|
+
}) : "", f = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
512
|
+
let k = "";
|
|
513
|
+
if (f) {
|
|
514
|
+
const x = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
|
|
515
|
+
k = j({
|
|
516
516
|
className: `${h}:hover`,
|
|
517
517
|
styles: {
|
|
518
|
-
...
|
|
519
|
-
transition: `all ${
|
|
520
|
-
|
|
518
|
+
...x,
|
|
519
|
+
transition: `all ${f.duration}s ${K(
|
|
520
|
+
f.easing
|
|
521
521
|
)}`,
|
|
522
|
-
transitionDelay:
|
|
522
|
+
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
523
523
|
}
|
|
524
524
|
}) || "";
|
|
525
525
|
}
|
|
526
526
|
return [
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
g,
|
|
528
|
+
m,
|
|
529
529
|
v,
|
|
530
|
-
|
|
530
|
+
k
|
|
531
531
|
].join(" ");
|
|
532
532
|
}
|
|
533
|
-
return /* @__PURE__ */ l(
|
|
533
|
+
return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
534
534
|
z,
|
|
535
535
|
{
|
|
536
536
|
id: "builderio-block",
|
|
@@ -624,7 +624,7 @@ function Rt(e) {
|
|
|
624
624
|
}
|
|
625
625
|
function Pt(e) {
|
|
626
626
|
return B(() => {
|
|
627
|
-
}, []), /* @__PURE__ */ l(
|
|
627
|
+
}, []), /* @__PURE__ */ l(T, { children: e.children });
|
|
628
628
|
}
|
|
629
629
|
function Bt(e) {
|
|
630
630
|
function t() {
|
|
@@ -642,7 +642,7 @@ function Bt(e) {
|
|
|
642
642
|
})
|
|
643
643
|
} : {};
|
|
644
644
|
}
|
|
645
|
-
return /* @__PURE__ */ l(
|
|
645
|
+
return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
646
646
|
Pt,
|
|
647
647
|
{
|
|
648
648
|
load: e.Wrapper.load,
|
|
@@ -685,10 +685,10 @@ const Vt = ({
|
|
|
685
685
|
};
|
|
686
686
|
function ue(e) {
|
|
687
687
|
var i;
|
|
688
|
-
const [t, n] =
|
|
688
|
+
const [t, n] = w(
|
|
689
689
|
() => e.isInteractive ? Bt : e.componentRef
|
|
690
690
|
);
|
|
691
|
-
return /* @__PURE__ */ l(
|
|
691
|
+
return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
692
692
|
t,
|
|
693
693
|
{
|
|
694
694
|
...Vt({
|
|
@@ -715,7 +715,7 @@ function ue(e) {
|
|
|
715
715
|
) }) : null });
|
|
716
716
|
}
|
|
717
717
|
function me(e) {
|
|
718
|
-
const [t, n] =
|
|
718
|
+
const [t, n] = w(() => e.repeatContext);
|
|
719
719
|
return /* @__PURE__ */ l(ae.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
720
720
|
H,
|
|
721
721
|
{
|
|
@@ -727,22 +727,22 @@ function me(e) {
|
|
|
727
727
|
) });
|
|
728
728
|
}
|
|
729
729
|
function H(e) {
|
|
730
|
-
var h,
|
|
730
|
+
var h, g, m, v;
|
|
731
731
|
function t() {
|
|
732
732
|
return pt({
|
|
733
733
|
block: e.block,
|
|
734
734
|
context: e.context
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
const [n, i] =
|
|
737
|
+
const [n, i] = w(() => ({
|
|
738
738
|
value: null,
|
|
739
739
|
update: !1
|
|
740
740
|
}));
|
|
741
741
|
function o() {
|
|
742
|
-
var
|
|
742
|
+
var k;
|
|
743
743
|
if (n.value && !n.update && !xe())
|
|
744
744
|
return n.value;
|
|
745
|
-
const
|
|
745
|
+
const f = (k = e.block.repeat) != null && k.collection ? e.block : st({
|
|
746
746
|
block: e.block,
|
|
747
747
|
localState: e.context.localState,
|
|
748
748
|
rootState: e.context.rootState,
|
|
@@ -750,7 +750,7 @@ function H(e) {
|
|
|
750
750
|
context: e.context.context,
|
|
751
751
|
shouldEvaluateBindings: !0
|
|
752
752
|
});
|
|
753
|
-
return n.value =
|
|
753
|
+
return n.value = f, n.update = !1, f;
|
|
754
754
|
}
|
|
755
755
|
function a() {
|
|
756
756
|
return bt({
|
|
@@ -759,25 +759,25 @@ function H(e) {
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
function r() {
|
|
762
|
-
var
|
|
763
|
-
return e.block.tagName === "a" || ((
|
|
762
|
+
var k;
|
|
763
|
+
return e.block.tagName === "a" || ((k = o().properties) == null ? void 0 : k.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
764
764
|
}
|
|
765
765
|
function s() {
|
|
766
|
-
var
|
|
767
|
-
if ((
|
|
768
|
-
return !!((
|
|
769
|
-
const
|
|
770
|
-
return ("show" in o() ? o().show : !0) && !
|
|
766
|
+
var S, p;
|
|
767
|
+
if ((S = e.block.repeat) != null && S.collection)
|
|
768
|
+
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
769
|
+
const f = "hide" in o() ? o().hide : !1;
|
|
770
|
+
return ("show" in o() ? o().show : !0) && !f;
|
|
771
771
|
}
|
|
772
772
|
function d() {
|
|
773
|
-
var
|
|
774
|
-
return !((
|
|
773
|
+
var k, S;
|
|
774
|
+
return !((k = a == null ? void 0 : a()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
|
|
775
775
|
}
|
|
776
776
|
function c() {
|
|
777
|
-
var
|
|
777
|
+
var f, k, S, p;
|
|
778
778
|
return {
|
|
779
|
-
blockChildren: (
|
|
780
|
-
componentRef: (
|
|
779
|
+
blockChildren: (f = o().children) != null ? f : [],
|
|
780
|
+
componentRef: (k = a == null ? void 0 : a()) == null ? void 0 : k.component,
|
|
781
781
|
componentOptions: {
|
|
782
782
|
...Xe(o()),
|
|
783
783
|
...vt(a(), o()),
|
|
@@ -792,31 +792,31 @@ function H(e) {
|
|
|
792
792
|
linkComponent: e.linkComponent,
|
|
793
793
|
registeredComponents: e.registeredComponents,
|
|
794
794
|
builderBlock: o(),
|
|
795
|
-
includeBlockProps: ((
|
|
796
|
-
isInteractive: !((
|
|
795
|
+
includeBlockProps: ((S = a == null ? void 0 : a()) == null ? void 0 : S.noWrap) === !0,
|
|
796
|
+
isInteractive: !((p = a == null ? void 0 : a()) != null && p.isRSC && D === "rsc")
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
799
|
return B(() => {
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
...
|
|
804
|
-
elementId:
|
|
800
|
+
const f = o().id, k = o().animations;
|
|
801
|
+
k && f && dt(
|
|
802
|
+
k.map((S) => ({
|
|
803
|
+
...S,
|
|
804
|
+
elementId: f
|
|
805
805
|
}))
|
|
806
806
|
);
|
|
807
807
|
}, []), B(() => {
|
|
808
808
|
n.update = !0;
|
|
809
|
-
}), /* @__PURE__ */ l(
|
|
809
|
+
}), /* @__PURE__ */ l(T, { children: s() ? /* @__PURE__ */ V(T, { children: [
|
|
810
810
|
/* @__PURE__ */ l(kt, { block: o(), context: e.context }),
|
|
811
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(
|
|
811
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (v = t()) == null ? void 0 : v.map((f, k) => /* @__PURE__ */ l(
|
|
812
812
|
me,
|
|
813
813
|
{
|
|
814
|
-
repeatContext:
|
|
815
|
-
block:
|
|
814
|
+
repeatContext: f.context,
|
|
815
|
+
block: f.block,
|
|
816
816
|
registeredComponents: e.registeredComponents,
|
|
817
817
|
linkComponent: e.linkComponent
|
|
818
818
|
},
|
|
819
|
-
|
|
819
|
+
k
|
|
820
820
|
)) }) : /* @__PURE__ */ l(
|
|
821
821
|
ue,
|
|
822
822
|
{
|
|
@@ -830,15 +830,15 @@ function H(e) {
|
|
|
830
830
|
includeBlockProps: c().includeBlockProps,
|
|
831
831
|
isInteractive: c().isInteractive
|
|
832
832
|
}
|
|
833
|
-
) : /* @__PURE__ */ l(
|
|
833
|
+
) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, k) => /* @__PURE__ */ l(
|
|
834
834
|
me,
|
|
835
835
|
{
|
|
836
|
-
repeatContext:
|
|
837
|
-
block:
|
|
836
|
+
repeatContext: f.context,
|
|
837
|
+
block: f.block,
|
|
838
838
|
registeredComponents: e.registeredComponents,
|
|
839
839
|
linkComponent: e.linkComponent
|
|
840
840
|
},
|
|
841
|
-
|
|
841
|
+
k
|
|
842
842
|
)) }) : /* @__PURE__ */ V(
|
|
843
843
|
Rt,
|
|
844
844
|
{
|
|
@@ -860,15 +860,15 @@ function H(e) {
|
|
|
860
860
|
isInteractive: c().isInteractive
|
|
861
861
|
}
|
|
862
862
|
),
|
|
863
|
-
(
|
|
863
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
|
|
864
864
|
H,
|
|
865
865
|
{
|
|
866
|
-
block:
|
|
866
|
+
block: f,
|
|
867
867
|
registeredComponents: e.registeredComponents,
|
|
868
868
|
linkComponent: e.linkComponent,
|
|
869
869
|
context: e.context
|
|
870
870
|
},
|
|
871
|
-
|
|
871
|
+
f.id
|
|
872
872
|
))
|
|
873
873
|
]
|
|
874
874
|
}
|
|
@@ -912,7 +912,7 @@ function At(e) {
|
|
|
912
912
|
));
|
|
913
913
|
}
|
|
914
914
|
return B(() => {
|
|
915
|
-
}, []), /* @__PURE__ */ V(
|
|
915
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
916
916
|
/* @__PURE__ */ l(
|
|
917
917
|
e.BlocksWrapper,
|
|
918
918
|
{
|
|
@@ -948,7 +948,7 @@ function F(e) {
|
|
|
948
948
|
classNameProp: e.className,
|
|
949
949
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
950
950
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
951
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
951
|
+
children: e.blocks ? /* @__PURE__ */ l(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
952
952
|
H,
|
|
953
953
|
{
|
|
954
954
|
block: r,
|
|
@@ -963,143 +963,147 @@ function F(e) {
|
|
|
963
963
|
}
|
|
964
964
|
const Wt = (e) => `builder-columns ${e}-breakpoints`;
|
|
965
965
|
function Nt(e) {
|
|
966
|
-
var k,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
970
|
-
() => e.stackColumnsAt || "tablet"
|
|
971
|
-
);
|
|
972
|
-
function s(m) {
|
|
973
|
-
return m.link ? e.builderLinkComponent || "a" : "div";
|
|
966
|
+
var k, S;
|
|
967
|
+
function t() {
|
|
968
|
+
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
974
969
|
}
|
|
975
|
-
function
|
|
976
|
-
|
|
977
|
-
return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
|
|
970
|
+
function n() {
|
|
971
|
+
return e.columns || [];
|
|
978
972
|
}
|
|
979
|
-
function
|
|
980
|
-
|
|
981
|
-
|
|
973
|
+
function i() {
|
|
974
|
+
return e.stackColumnsAt || "tablet";
|
|
975
|
+
}
|
|
976
|
+
function o(p) {
|
|
977
|
+
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
978
|
+
}
|
|
979
|
+
function a(p) {
|
|
980
|
+
var b;
|
|
981
|
+
return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
|
|
982
|
+
}
|
|
983
|
+
function r(p) {
|
|
984
|
+
const b = a(p), x = t() * (n().length - 1) * (b / 100);
|
|
985
|
+
return `calc(${b}% - ${x}px)`;
|
|
982
986
|
}
|
|
983
|
-
function
|
|
984
|
-
stackedStyle:
|
|
985
|
-
desktopStyle:
|
|
987
|
+
function s({
|
|
988
|
+
stackedStyle: p,
|
|
989
|
+
desktopStyle: b
|
|
986
990
|
}) {
|
|
987
|
-
return
|
|
991
|
+
return i() === "tablet" ? p : b;
|
|
988
992
|
}
|
|
989
|
-
function
|
|
990
|
-
stackedStyle:
|
|
991
|
-
desktopStyle:
|
|
993
|
+
function d({
|
|
994
|
+
stackedStyle: p,
|
|
995
|
+
desktopStyle: b
|
|
992
996
|
}) {
|
|
993
|
-
return
|
|
997
|
+
return i() === "never" ? b : p;
|
|
994
998
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
function
|
|
999
|
+
function c() {
|
|
1000
|
+
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1001
|
+
}
|
|
1002
|
+
function h() {
|
|
999
1003
|
return {
|
|
1000
|
-
"--flex-dir":
|
|
1001
|
-
"--flex-dir-tablet":
|
|
1002
|
-
stackedStyle:
|
|
1004
|
+
"--flex-dir": c(),
|
|
1005
|
+
"--flex-dir-tablet": s({
|
|
1006
|
+
stackedStyle: c(),
|
|
1003
1007
|
desktopStyle: "row"
|
|
1004
1008
|
})
|
|
1005
1009
|
};
|
|
1006
1010
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const
|
|
1011
|
+
function g(p) {
|
|
1012
|
+
const b = p === 0 ? 0 : t(), x = r(p), A = `${b}px`, C = "100%", I = 0;
|
|
1009
1013
|
return {
|
|
1010
1014
|
...{
|
|
1011
1015
|
display: "flex",
|
|
1012
1016
|
flexDirection: "column",
|
|
1013
1017
|
alignItems: "stretch"
|
|
1014
1018
|
},
|
|
1015
|
-
width:
|
|
1016
|
-
["marginLeft"]:
|
|
1017
|
-
"--column-width-mobile":
|
|
1018
|
-
stackedStyle:
|
|
1019
|
-
desktopStyle:
|
|
1019
|
+
width: x,
|
|
1020
|
+
["marginLeft"]: A,
|
|
1021
|
+
"--column-width-mobile": d({
|
|
1022
|
+
stackedStyle: C,
|
|
1023
|
+
desktopStyle: x
|
|
1020
1024
|
}),
|
|
1021
|
-
"--column-margin-left-mobile":
|
|
1022
|
-
stackedStyle:
|
|
1023
|
-
desktopStyle:
|
|
1025
|
+
"--column-margin-left-mobile": d({
|
|
1026
|
+
stackedStyle: I,
|
|
1027
|
+
desktopStyle: A
|
|
1024
1028
|
}),
|
|
1025
|
-
"--column-width-tablet":
|
|
1026
|
-
stackedStyle:
|
|
1027
|
-
desktopStyle:
|
|
1029
|
+
"--column-width-tablet": s({
|
|
1030
|
+
stackedStyle: C,
|
|
1031
|
+
desktopStyle: x
|
|
1028
1032
|
}),
|
|
1029
|
-
"--column-margin-left-tablet":
|
|
1030
|
-
stackedStyle:
|
|
1031
|
-
desktopStyle:
|
|
1033
|
+
"--column-margin-left-tablet": s({
|
|
1034
|
+
stackedStyle: I,
|
|
1035
|
+
desktopStyle: A
|
|
1032
1036
|
})
|
|
1033
1037
|
};
|
|
1034
1038
|
}
|
|
1035
|
-
function
|
|
1036
|
-
var
|
|
1039
|
+
function m(p) {
|
|
1040
|
+
var x, A;
|
|
1037
1041
|
return Ae(
|
|
1038
|
-
((
|
|
1039
|
-
)[
|
|
1042
|
+
((A = (x = e.builderContext.content) == null ? void 0 : x.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1043
|
+
)[p].max;
|
|
1040
1044
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const
|
|
1045
|
+
function v() {
|
|
1046
|
+
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1043
1047
|
return `
|
|
1044
|
-
@media (max-width: ${
|
|
1048
|
+
@media (max-width: ${m("medium")}px) {
|
|
1045
1049
|
.${e.builderBlock.id}-breakpoints {
|
|
1046
1050
|
flex-direction: var(--flex-dir-tablet);
|
|
1047
1051
|
align-items: stretch;
|
|
1048
1052
|
}
|
|
1049
1053
|
|
|
1050
|
-
${
|
|
1054
|
+
${p} {
|
|
1051
1055
|
width: var(--column-width-tablet) !important;
|
|
1052
1056
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1053
1057
|
}
|
|
1054
1058
|
}
|
|
1055
1059
|
|
|
1056
|
-
@media (max-width: ${
|
|
1060
|
+
@media (max-width: ${m("small")}px) {
|
|
1057
1061
|
.${e.builderBlock.id}-breakpoints {
|
|
1058
1062
|
flex-direction: var(--flex-dir);
|
|
1059
1063
|
align-items: stretch;
|
|
1060
1064
|
}
|
|
1061
1065
|
|
|
1062
|
-
${
|
|
1066
|
+
${p} {
|
|
1063
1067
|
width: var(--column-width-mobile) !important;
|
|
1064
1068
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1065
1069
|
}
|
|
1066
1070
|
},
|
|
1067
1071
|
`;
|
|
1068
1072
|
}
|
|
1069
|
-
function
|
|
1073
|
+
function f(p, b) {
|
|
1070
1074
|
return {
|
|
1071
|
-
...
|
|
1072
|
-
href:
|
|
1075
|
+
...p.link ? {
|
|
1076
|
+
href: p.link
|
|
1073
1077
|
} : {},
|
|
1074
1078
|
[U()]: "builder-column",
|
|
1075
|
-
style: Be(
|
|
1079
|
+
style: Be(g(b))
|
|
1076
1080
|
};
|
|
1077
1081
|
}
|
|
1078
|
-
return /* @__PURE__ */ V(
|
|
1082
|
+
return /* @__PURE__ */ V(T, { children: [
|
|
1079
1083
|
/* @__PURE__ */ V(
|
|
1080
1084
|
"div",
|
|
1081
1085
|
{
|
|
1082
|
-
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-
|
|
1083
|
-
style:
|
|
1086
|
+
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-424156c6",
|
|
1087
|
+
style: h(),
|
|
1084
1088
|
children: [
|
|
1085
1089
|
/* @__PURE__ */ l(
|
|
1086
1090
|
z,
|
|
1087
1091
|
{
|
|
1088
1092
|
id: "builderio-columns",
|
|
1089
|
-
styles:
|
|
1093
|
+
styles: v(),
|
|
1090
1094
|
nonce: e.builderContext.nonce
|
|
1091
1095
|
}
|
|
1092
1096
|
),
|
|
1093
|
-
(
|
|
1097
|
+
(S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ l(
|
|
1094
1098
|
oe,
|
|
1095
1099
|
{
|
|
1096
|
-
TagName:
|
|
1100
|
+
TagName: o(p),
|
|
1097
1101
|
actionAttributes: {},
|
|
1098
|
-
attributes:
|
|
1102
|
+
attributes: f(p, b),
|
|
1099
1103
|
children: /* @__PURE__ */ l(
|
|
1100
1104
|
F,
|
|
1101
1105
|
{
|
|
1102
|
-
path: `component.options.columns.${
|
|
1106
|
+
path: `component.options.columns.${b}.blocks`,
|
|
1103
1107
|
parent: e.builderBlock.id,
|
|
1104
1108
|
styleProp: {
|
|
1105
1109
|
flexGrow: "1"
|
|
@@ -1107,16 +1111,16 @@ function Nt(e) {
|
|
|
1107
1111
|
context: e.builderContext,
|
|
1108
1112
|
registeredComponents: e.builderComponents,
|
|
1109
1113
|
linkComponent: e.builderLinkComponent,
|
|
1110
|
-
blocks:
|
|
1114
|
+
blocks: p.blocks
|
|
1111
1115
|
}
|
|
1112
1116
|
)
|
|
1113
1117
|
},
|
|
1114
|
-
|
|
1118
|
+
b
|
|
1115
1119
|
))
|
|
1116
1120
|
]
|
|
1117
1121
|
}
|
|
1118
1122
|
),
|
|
1119
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
1123
|
+
/* @__PURE__ */ l("style", { children: `.div-424156c6 {
|
|
1120
1124
|
display: flex;
|
|
1121
1125
|
line-height: normal;
|
|
1122
1126
|
}` })
|
|
@@ -1158,19 +1162,19 @@ function J(e) {
|
|
|
1158
1162
|
function Lt(e) {
|
|
1159
1163
|
var o, a, r, s, d, c;
|
|
1160
1164
|
function t() {
|
|
1161
|
-
var
|
|
1162
|
-
const
|
|
1163
|
-
if (!
|
|
1165
|
+
var m;
|
|
1166
|
+
const g = e.image || e.src;
|
|
1167
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1164
1168
|
// images, otherwise you can supply this prop manually
|
|
1165
|
-
!(
|
|
1169
|
+
!(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
|
|
1166
1170
|
return e.srcset;
|
|
1167
1171
|
if (!e.noWebp) {
|
|
1168
|
-
if (e.srcset && ((
|
|
1172
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1169
1173
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1170
|
-
return console.debug("Removed given srcset"), J(
|
|
1174
|
+
return console.debug("Removed given srcset"), J(g);
|
|
1171
1175
|
} else if (e.image && !e.srcset)
|
|
1172
|
-
return J(
|
|
1173
|
-
return J(
|
|
1176
|
+
return J(g);
|
|
1177
|
+
return J(g);
|
|
1174
1178
|
}
|
|
1175
1179
|
}
|
|
1176
1180
|
function n() {
|
|
@@ -1188,8 +1192,8 @@ function Lt(e) {
|
|
|
1188
1192
|
return e.aspectRatio ? h : void 0;
|
|
1189
1193
|
}
|
|
1190
1194
|
return B(() => {
|
|
1191
|
-
}, []), /* @__PURE__ */ V(
|
|
1192
|
-
/* @__PURE__ */ V(
|
|
1195
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
1196
|
+
/* @__PURE__ */ V(T, { children: [
|
|
1193
1197
|
/* @__PURE__ */ V("picture", { children: [
|
|
1194
1198
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1195
1199
|
/* @__PURE__ */ l(
|
|
@@ -1220,7 +1224,7 @@ function Lt(e) {
|
|
|
1220
1224
|
}
|
|
1221
1225
|
}
|
|
1222
1226
|
) : null,
|
|
1223
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1227
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
|
|
1224
1228
|
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1225
1229
|
] }),
|
|
1226
1230
|
/* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
|
|
@@ -1389,8 +1393,8 @@ const G = {
|
|
|
1389
1393
|
}
|
|
1390
1394
|
}, he = (e) => e.toString();
|
|
1391
1395
|
function Ht(e) {
|
|
1392
|
-
var
|
|
1393
|
-
const [t, n] =
|
|
1396
|
+
var g;
|
|
1397
|
+
const [t, n] = w(() => []);
|
|
1394
1398
|
function i() {
|
|
1395
1399
|
return !!(e.grid || e.oneAtATime);
|
|
1396
1400
|
}
|
|
@@ -1416,57 +1420,57 @@ function Ht(e) {
|
|
|
1416
1420
|
cursor: "pointer"
|
|
1417
1421
|
};
|
|
1418
1422
|
return Object.fromEntries(
|
|
1419
|
-
Object.entries(v).filter(([
|
|
1423
|
+
Object.entries(v).filter(([f, k]) => k !== void 0)
|
|
1420
1424
|
);
|
|
1421
1425
|
}
|
|
1422
|
-
function r(
|
|
1423
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1426
|
+
function r(m) {
|
|
1427
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1424
1428
|
}
|
|
1425
|
-
function s(
|
|
1426
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1429
|
+
function s(m) {
|
|
1430
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1427
1431
|
}
|
|
1428
1432
|
function d() {
|
|
1429
|
-
let
|
|
1433
|
+
let m = null;
|
|
1430
1434
|
if (e.grid && t.length && document) {
|
|
1431
|
-
const
|
|
1432
|
-
let
|
|
1433
|
-
`.builder-accordion-title[data-index="${
|
|
1435
|
+
const f = t[0];
|
|
1436
|
+
let S = document.querySelector(
|
|
1437
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1434
1438
|
);
|
|
1435
|
-
if (
|
|
1436
|
-
let
|
|
1437
|
-
for (;
|
|
1438
|
-
if (
|
|
1439
|
-
if (
|
|
1439
|
+
if (m = f, S) {
|
|
1440
|
+
let p = S.getBoundingClientRect();
|
|
1441
|
+
for (; S = S && S.nextElementSibling; )
|
|
1442
|
+
if (S) {
|
|
1443
|
+
if (S.classList.contains("builder-accordion-detail"))
|
|
1440
1444
|
continue;
|
|
1441
|
-
const
|
|
1442
|
-
if (
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1445
|
+
const b = S.getBoundingClientRect();
|
|
1446
|
+
if (b.left > p.left) {
|
|
1447
|
+
const x = parseInt(
|
|
1448
|
+
S.getAttribute("data-index") || "",
|
|
1445
1449
|
10
|
|
1446
1450
|
);
|
|
1447
|
-
isNaN(
|
|
1451
|
+
isNaN(x) || (p = b, m = x);
|
|
1448
1452
|
} else
|
|
1449
1453
|
break;
|
|
1450
1454
|
}
|
|
1451
1455
|
}
|
|
1452
1456
|
}
|
|
1453
|
-
return typeof
|
|
1457
|
+
return typeof m == "number" && (m = m + 1), m;
|
|
1454
1458
|
}
|
|
1455
1459
|
function c() {
|
|
1456
|
-
const
|
|
1460
|
+
const m = {
|
|
1457
1461
|
order: typeof d() == "number" ? d() : void 0,
|
|
1458
1462
|
...e.grid && {
|
|
1459
1463
|
width: "100%"
|
|
1460
1464
|
}
|
|
1461
1465
|
};
|
|
1462
1466
|
return Object.fromEntries(
|
|
1463
|
-
Object.entries(
|
|
1467
|
+
Object.entries(m).filter(([v, f]) => f !== void 0)
|
|
1464
1468
|
);
|
|
1465
1469
|
}
|
|
1466
|
-
function h(
|
|
1467
|
-
t.includes(
|
|
1470
|
+
function h(m) {
|
|
1471
|
+
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1468
1472
|
}
|
|
1469
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (
|
|
1473
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ V(T, { children: [
|
|
1470
1474
|
/* @__PURE__ */ l(
|
|
1471
1475
|
"div",
|
|
1472
1476
|
{
|
|
@@ -1477,11 +1481,11 @@ function Ht(e) {
|
|
|
1477
1481
|
order: d() !== null ? he(v) : he(v + 1)
|
|
1478
1482
|
},
|
|
1479
1483
|
"data-index": v,
|
|
1480
|
-
onClick: (
|
|
1484
|
+
onClick: (f) => h(v),
|
|
1481
1485
|
children: /* @__PURE__ */ l(
|
|
1482
1486
|
F,
|
|
1483
1487
|
{
|
|
1484
|
-
blocks:
|
|
1488
|
+
blocks: m.title,
|
|
1485
1489
|
path: `items.${v}.title`,
|
|
1486
1490
|
parent: e.builderBlock.id,
|
|
1487
1491
|
context: e.builderContext,
|
|
@@ -1499,7 +1503,7 @@ function Ht(e) {
|
|
|
1499
1503
|
children: /* @__PURE__ */ l(
|
|
1500
1504
|
F,
|
|
1501
1505
|
{
|
|
1502
|
-
blocks:
|
|
1506
|
+
blocks: m.detail,
|
|
1503
1507
|
path: `items.${v}.detail`,
|
|
1504
1508
|
parent: e.builderBlock.id,
|
|
1505
1509
|
context: e.builderContext,
|
|
@@ -1783,13 +1787,13 @@ const jt = {
|
|
|
1783
1787
|
function n(r, s = 6e4) {
|
|
1784
1788
|
return new Promise((d, c) => {
|
|
1785
1789
|
const h = document.createElement("img");
|
|
1786
|
-
let
|
|
1790
|
+
let g = !1;
|
|
1787
1791
|
h.onload = () => {
|
|
1788
|
-
|
|
1789
|
-
}, h.addEventListener("error", (
|
|
1790
|
-
console.warn("Image load failed",
|
|
1792
|
+
g = !0, d(h);
|
|
1793
|
+
}, h.addEventListener("error", (m) => {
|
|
1794
|
+
console.warn("Image load failed", m.error), c(m.error);
|
|
1791
1795
|
}), h.src = r, setTimeout(() => {
|
|
1792
|
-
|
|
1796
|
+
g || c(new Error("Image load timed out"));
|
|
1793
1797
|
}, s);
|
|
1794
1798
|
});
|
|
1795
1799
|
}
|
|
@@ -2132,7 +2136,7 @@ const Gt = {
|
|
|
2132
2136
|
};
|
|
2133
2137
|
function Qt(e) {
|
|
2134
2138
|
var a;
|
|
2135
|
-
const [t, n] =
|
|
2139
|
+
const [t, n] = w(
|
|
2136
2140
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2137
2141
|
);
|
|
2138
2142
|
function i(r) {
|
|
@@ -2267,7 +2271,7 @@ const en = {
|
|
|
2267
2271
|
}]
|
|
2268
2272
|
};
|
|
2269
2273
|
function tn(e) {
|
|
2270
|
-
const t = $(null), [n, i] =
|
|
2274
|
+
const t = $(null), [n, i] = w(() => []), [o, a] = w(() => []);
|
|
2271
2275
|
return B(() => {
|
|
2272
2276
|
var s;
|
|
2273
2277
|
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -2321,22 +2325,22 @@ const nn = {
|
|
|
2321
2325
|
}]
|
|
2322
2326
|
}, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
|
|
2323
2327
|
function rn(e) {
|
|
2324
|
-
const t = $(null), [n, i] =
|
|
2328
|
+
const t = $(null), [n, i] = w(() => []), [o, a] = w(() => []), [r, s] = w(() => !1);
|
|
2325
2329
|
function d() {
|
|
2326
2330
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2327
2331
|
return;
|
|
2328
2332
|
const c = t.current.getElementsByTagName("script");
|
|
2329
2333
|
for (let h = 0; h < c.length; h++) {
|
|
2330
|
-
const
|
|
2331
|
-
if (
|
|
2332
|
-
n.push(
|
|
2333
|
-
const
|
|
2334
|
-
|
|
2335
|
-
} else if (an(
|
|
2334
|
+
const g = c[h];
|
|
2335
|
+
if (g.src && !n.includes(g.src)) {
|
|
2336
|
+
n.push(g.src);
|
|
2337
|
+
const m = document.createElement("script");
|
|
2338
|
+
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2339
|
+
} else if (an(g) && !o.includes(g.innerText))
|
|
2336
2340
|
try {
|
|
2337
|
-
o.push(
|
|
2338
|
-
} catch (
|
|
2339
|
-
console.warn("`Embed`: Error running script:",
|
|
2341
|
+
o.push(g.innerText), new Function(g.innerText)();
|
|
2342
|
+
} catch (m) {
|
|
2343
|
+
console.warn("`Embed`: Error running script:", m);
|
|
2340
2344
|
}
|
|
2341
2345
|
}
|
|
2342
2346
|
}
|
|
@@ -2593,115 +2597,115 @@ const ln = {
|
|
|
2593
2597
|
return sn.includes(e) ? e : "production";
|
|
2594
2598
|
};
|
|
2595
2599
|
function dn(e) {
|
|
2596
|
-
var
|
|
2597
|
-
const t = $(null), [n, i] =
|
|
2600
|
+
var g, m;
|
|
2601
|
+
const t = $(null), [n, i] = w(() => "unsubmitted"), [o, a] = w(() => null), [r, s] = w(() => "");
|
|
2598
2602
|
function d(v) {
|
|
2599
|
-
var
|
|
2600
|
-
const
|
|
2603
|
+
var k, S;
|
|
2604
|
+
const f = {
|
|
2601
2605
|
...e.builderContext.rootState,
|
|
2602
2606
|
...v
|
|
2603
2607
|
};
|
|
2604
|
-
e.builderContext.rootSetState ? (
|
|
2608
|
+
e.builderContext.rootSetState ? (S = (k = e.builderContext).rootSetState) == null || S.call(k, f) : e.builderContext.rootState = f;
|
|
2605
2609
|
}
|
|
2606
2610
|
function c() {
|
|
2607
2611
|
return N() && e.previewState || n;
|
|
2608
2612
|
}
|
|
2609
2613
|
function h(v) {
|
|
2610
|
-
var
|
|
2611
|
-
const
|
|
2614
|
+
var k;
|
|
2615
|
+
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2612
2616
|
if (e.sendSubmissionsTo === "zapier")
|
|
2613
2617
|
v.preventDefault();
|
|
2614
|
-
else if (
|
|
2618
|
+
else if (f) {
|
|
2615
2619
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2616
2620
|
v.preventDefault();
|
|
2617
2621
|
return;
|
|
2618
2622
|
}
|
|
2619
2623
|
v.preventDefault();
|
|
2620
|
-
const
|
|
2621
|
-
let
|
|
2622
|
-
const
|
|
2623
|
-
let
|
|
2624
|
+
const S = v.currentTarget || v.target, p = e.customHeaders || {};
|
|
2625
|
+
let b;
|
|
2626
|
+
const x = new FormData(S), A = Array.from(S.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2627
|
+
let y;
|
|
2624
2628
|
const E = u.name;
|
|
2625
2629
|
if (u instanceof HTMLInputElement)
|
|
2626
2630
|
if (u.type === "radio") {
|
|
2627
2631
|
if (u.checked)
|
|
2628
|
-
return
|
|
2632
|
+
return y = u.name, {
|
|
2629
2633
|
key: E,
|
|
2630
|
-
value:
|
|
2634
|
+
value: y
|
|
2631
2635
|
};
|
|
2632
2636
|
} else if (u.type === "checkbox")
|
|
2633
|
-
|
|
2637
|
+
y = u.checked;
|
|
2634
2638
|
else if (u.type === "number" || u.type === "range") {
|
|
2635
|
-
const
|
|
2636
|
-
isNaN(
|
|
2639
|
+
const R = u.valueAsNumber;
|
|
2640
|
+
isNaN(R) || (y = R);
|
|
2637
2641
|
} else
|
|
2638
|
-
u.type === "file" ?
|
|
2642
|
+
u.type === "file" ? y = u.files : y = u.value;
|
|
2639
2643
|
else
|
|
2640
|
-
|
|
2644
|
+
y = u.value;
|
|
2641
2645
|
return {
|
|
2642
2646
|
key: E,
|
|
2643
|
-
value:
|
|
2647
|
+
value: y
|
|
2644
2648
|
};
|
|
2645
2649
|
});
|
|
2646
|
-
let
|
|
2647
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2648
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2649
|
-
}),
|
|
2650
|
-
|
|
2650
|
+
let C = e.contentType;
|
|
2651
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
|
|
2652
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (C = "multipart/form-data");
|
|
2653
|
+
}), C !== "application/json")
|
|
2654
|
+
b = x;
|
|
2651
2655
|
else {
|
|
2652
2656
|
const u = {};
|
|
2653
|
-
Array.from(
|
|
2654
|
-
Ce(u, E,
|
|
2655
|
-
}),
|
|
2657
|
+
Array.from(A).forEach(({ value: y, key: E }) => {
|
|
2658
|
+
Ce(u, E, y);
|
|
2659
|
+
}), b = JSON.stringify(u);
|
|
2656
2660
|
}
|
|
2657
|
-
|
|
2658
|
-
const
|
|
2659
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2661
|
+
C && C !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (p["content-type"] = C));
|
|
2662
|
+
const I = new CustomEvent("presubmit", { detail: { body: b } });
|
|
2663
|
+
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2660
2664
|
return;
|
|
2661
2665
|
i("sending");
|
|
2662
|
-
const
|
|
2666
|
+
const P = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2663
2667
|
e.sendSubmissionsToEmail || ""
|
|
2664
2668
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2665
2669
|
fetch(
|
|
2666
|
-
e.sendSubmissionsTo === "email" ?
|
|
2667
|
-
{ body:
|
|
2670
|
+
e.sendSubmissionsTo === "email" ? P : e.action,
|
|
2671
|
+
{ body: b, headers: p, method: e.method || "post" }
|
|
2668
2672
|
).then(
|
|
2669
2673
|
async (u) => {
|
|
2670
|
-
let
|
|
2674
|
+
let y;
|
|
2671
2675
|
const E = u.headers.get("content-type");
|
|
2672
|
-
if (E && E.indexOf("application/json") !== -1 ?
|
|
2673
|
-
let
|
|
2674
|
-
|
|
2676
|
+
if (E && E.indexOf("application/json") !== -1 ? y = await u.json() : y = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2677
|
+
let R = Ie(y, e.errorMessagePath);
|
|
2678
|
+
R && (typeof R != "string" && (R = JSON.stringify(R)), s(R), d({ formErrorMessage: R }));
|
|
2675
2679
|
}
|
|
2676
|
-
if (a(
|
|
2677
|
-
const
|
|
2678
|
-
detail: { res: u, body:
|
|
2680
|
+
if (a(y), i(u.ok ? "success" : "error"), u.ok) {
|
|
2681
|
+
const R = new CustomEvent("submit:success", {
|
|
2682
|
+
detail: { res: u, body: y }
|
|
2679
2683
|
});
|
|
2680
2684
|
if (t.current) {
|
|
2681
|
-
if (t.current.dispatchEvent(
|
|
2685
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
2682
2686
|
return;
|
|
2683
2687
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2684
2688
|
}
|
|
2685
2689
|
if (e.successUrl)
|
|
2686
2690
|
if (t.current) {
|
|
2687
|
-
const
|
|
2691
|
+
const W = new CustomEvent("route", {
|
|
2688
2692
|
detail: { url: e.successUrl }
|
|
2689
2693
|
});
|
|
2690
|
-
t.current.dispatchEvent(
|
|
2694
|
+
t.current.dispatchEvent(W), W.defaultPrevented || (location.href = e.successUrl);
|
|
2691
2695
|
} else
|
|
2692
2696
|
location.href = e.successUrl;
|
|
2693
2697
|
}
|
|
2694
2698
|
},
|
|
2695
2699
|
(u) => {
|
|
2696
|
-
const
|
|
2700
|
+
const y = new CustomEvent("submit:error", {
|
|
2697
2701
|
detail: { error: u }
|
|
2698
2702
|
});
|
|
2699
|
-
t.current && (t.current.dispatchEvent(
|
|
2703
|
+
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (a(u), i("error"));
|
|
2700
2704
|
}
|
|
2701
2705
|
);
|
|
2702
2706
|
}
|
|
2703
2707
|
}
|
|
2704
|
-
return /* @__PURE__ */ V(
|
|
2708
|
+
return /* @__PURE__ */ V(T, { children: [
|
|
2705
2709
|
" ",
|
|
2706
2710
|
/* @__PURE__ */ V(
|
|
2707
2711
|
"form",
|
|
@@ -2714,7 +2718,7 @@ function dn(e) {
|
|
|
2714
2718
|
onSubmit: (v) => h(v),
|
|
2715
2719
|
...e.attributes,
|
|
2716
2720
|
children: [
|
|
2717
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2721
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((v, f) => /* @__PURE__ */ l(
|
|
2718
2722
|
H,
|
|
2719
2723
|
{
|
|
2720
2724
|
block: v,
|
|
@@ -2722,7 +2726,7 @@ function dn(e) {
|
|
|
2722
2726
|
registeredComponents: e.builderComponents,
|
|
2723
2727
|
linkComponent: e.builderLinkComponent
|
|
2724
2728
|
},
|
|
2725
|
-
`form-block-${
|
|
2729
|
+
`form-block-${f}`
|
|
2726
2730
|
)) }) : null,
|
|
2727
2731
|
c() === "error" ? /* @__PURE__ */ l(
|
|
2728
2732
|
F,
|
|
@@ -3448,37 +3452,37 @@ font-weight: ${s};
|
|
|
3448
3452
|
}
|
|
3449
3453
|
`, Ln = (e) => e ? "" : Dn, On = (e) => `variant-${e}`;
|
|
3450
3454
|
function Un(e) {
|
|
3451
|
-
var
|
|
3455
|
+
var b, x, A;
|
|
3452
3456
|
const t = $(null);
|
|
3453
|
-
function n(
|
|
3454
|
-
var
|
|
3455
|
-
const
|
|
3457
|
+
function n(C) {
|
|
3458
|
+
var P, u;
|
|
3459
|
+
const I = {
|
|
3456
3460
|
...e.builderContextSignal.rootState,
|
|
3457
|
-
...
|
|
3461
|
+
...C
|
|
3458
3462
|
};
|
|
3459
|
-
e.builderContextSignal.rootSetState ? (u = (
|
|
3460
|
-
...
|
|
3461
|
-
rootState:
|
|
3463
|
+
e.builderContextSignal.rootSetState ? (u = (P = e.builderContextSignal).rootSetState) == null || u.call(P, I) : e.setBuilderContextSignal((y) => ({
|
|
3464
|
+
...y,
|
|
3465
|
+
rootState: I
|
|
3462
3466
|
}));
|
|
3463
3467
|
}
|
|
3464
|
-
function i(
|
|
3465
|
-
var
|
|
3466
|
-
const
|
|
3468
|
+
function i(C) {
|
|
3469
|
+
var P, u, y, E, R;
|
|
3470
|
+
const I = {
|
|
3467
3471
|
...e.builderContextSignal.content,
|
|
3468
|
-
...
|
|
3472
|
+
...C,
|
|
3469
3473
|
data: {
|
|
3470
|
-
...(
|
|
3471
|
-
...
|
|
3474
|
+
...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
|
|
3475
|
+
...C == null ? void 0 : C.data
|
|
3472
3476
|
},
|
|
3473
3477
|
meta: {
|
|
3474
3478
|
...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
|
|
3475
|
-
...
|
|
3476
|
-
breakpoints: ((
|
|
3479
|
+
...C == null ? void 0 : C.meta,
|
|
3480
|
+
breakpoints: ((y = C == null ? void 0 : C.meta) == null ? void 0 : y.breakpoints) || ((R = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : R.breakpoints)
|
|
3477
3481
|
}
|
|
3478
3482
|
};
|
|
3479
|
-
e.setBuilderContextSignal((
|
|
3480
|
-
...
|
|
3481
|
-
content:
|
|
3483
|
+
e.setBuilderContextSignal((W) => ({
|
|
3484
|
+
...W,
|
|
3485
|
+
content: I
|
|
3482
3486
|
}));
|
|
3483
3487
|
}
|
|
3484
3488
|
function o() {
|
|
@@ -3487,60 +3491,60 @@ function Un(e) {
|
|
|
3487
3491
|
"aria-hidden": !0
|
|
3488
3492
|
};
|
|
3489
3493
|
}
|
|
3490
|
-
const [a, r] =
|
|
3494
|
+
const [a, r] = w(
|
|
3491
3495
|
() => e.contentWrapper || "div"
|
|
3492
3496
|
);
|
|
3493
|
-
function s(
|
|
3497
|
+
function s(C) {
|
|
3494
3498
|
return He({
|
|
3495
3499
|
model: e.model,
|
|
3496
3500
|
trustedHosts: e.trustedHosts,
|
|
3497
3501
|
callbacks: {
|
|
3498
|
-
configureSdk: (
|
|
3499
|
-
var
|
|
3500
|
-
const { breakpoints:
|
|
3501
|
-
!u || u !== ((
|
|
3502
|
+
configureSdk: (I) => {
|
|
3503
|
+
var y;
|
|
3504
|
+
const { breakpoints: P, contentId: u } = I;
|
|
3505
|
+
!u || u !== ((y = e.builderContextSignal.content) == null ? void 0 : y.id) || P && i({
|
|
3502
3506
|
meta: {
|
|
3503
|
-
breakpoints:
|
|
3507
|
+
breakpoints: P
|
|
3504
3508
|
}
|
|
3505
3509
|
});
|
|
3506
3510
|
},
|
|
3507
|
-
animation: (
|
|
3508
|
-
Re(
|
|
3511
|
+
animation: (I) => {
|
|
3512
|
+
Re(I);
|
|
3509
3513
|
},
|
|
3510
|
-
contentUpdate: (
|
|
3511
|
-
i(
|
|
3514
|
+
contentUpdate: (I) => {
|
|
3515
|
+
i(I);
|
|
3512
3516
|
}
|
|
3513
3517
|
}
|
|
3514
|
-
})(
|
|
3518
|
+
})(C);
|
|
3515
3519
|
}
|
|
3516
|
-
const [d, c] =
|
|
3517
|
-
function
|
|
3518
|
-
var
|
|
3520
|
+
const [d, c] = w(() => ({})), [h, g] = w(() => ({})), [m, v] = w(() => !1);
|
|
3521
|
+
function f(C) {
|
|
3522
|
+
var I, P;
|
|
3519
3523
|
if (e.builderContextSignal.content) {
|
|
3520
|
-
const u = (
|
|
3524
|
+
const u = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, y = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
3521
3525
|
le({
|
|
3522
3526
|
apiHost: e.apiHost,
|
|
3523
3527
|
type: "click",
|
|
3524
3528
|
canTrack: q(e.canTrack),
|
|
3525
|
-
contentId:
|
|
3529
|
+
contentId: y,
|
|
3526
3530
|
apiKey: e.apiKey,
|
|
3527
|
-
variationId: u !==
|
|
3528
|
-
...Wn(
|
|
3529
|
-
unique: !
|
|
3531
|
+
variationId: u !== y ? u : void 0,
|
|
3532
|
+
...Wn(C),
|
|
3533
|
+
unique: !m
|
|
3530
3534
|
});
|
|
3531
3535
|
}
|
|
3532
|
-
|
|
3536
|
+
m || v(!0);
|
|
3533
3537
|
}
|
|
3534
|
-
function
|
|
3535
|
-
var
|
|
3536
|
-
const
|
|
3537
|
-
Object.entries(
|
|
3538
|
-
if (!E || h[
|
|
3538
|
+
function k() {
|
|
3539
|
+
var I, P, u;
|
|
3540
|
+
const C = (u = (P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests) != null ? u : {};
|
|
3541
|
+
Object.entries(C).forEach(([y, E]) => {
|
|
3542
|
+
if (!E || h[y] || d[y] && !N())
|
|
3539
3543
|
return;
|
|
3540
|
-
h[
|
|
3541
|
-
const
|
|
3544
|
+
h[y] = !0;
|
|
3545
|
+
const R = E.replace(
|
|
3542
3546
|
/{{([^}]+)}}/g,
|
|
3543
|
-
(
|
|
3547
|
+
(W, De) => String(
|
|
3544
3548
|
L({
|
|
3545
3549
|
code: De,
|
|
3546
3550
|
context: e.context || {},
|
|
@@ -3550,18 +3554,18 @@ function Un(e) {
|
|
|
3550
3554
|
})
|
|
3551
3555
|
)
|
|
3552
3556
|
);
|
|
3553
|
-
fetch(
|
|
3557
|
+
fetch(R).then((W) => W.json()).then((W) => {
|
|
3554
3558
|
n({
|
|
3555
|
-
[
|
|
3556
|
-
}), d[
|
|
3557
|
-
}).catch((
|
|
3558
|
-
console.error("error fetching dynamic data", E,
|
|
3559
|
+
[y]: W
|
|
3560
|
+
}), d[y] = !0;
|
|
3561
|
+
}).catch((W) => {
|
|
3562
|
+
console.error("error fetching dynamic data", E, W);
|
|
3559
3563
|
}).finally(() => {
|
|
3560
|
-
h[
|
|
3564
|
+
h[y] = !1;
|
|
3561
3565
|
});
|
|
3562
3566
|
});
|
|
3563
3567
|
}
|
|
3564
|
-
function
|
|
3568
|
+
function S() {
|
|
3565
3569
|
N() && window.dispatchEvent(
|
|
3566
3570
|
new CustomEvent(
|
|
3567
3571
|
"builder:component:stateChange",
|
|
@@ -3576,9 +3580,9 @@ function Un(e) {
|
|
|
3576
3580
|
)
|
|
3577
3581
|
);
|
|
3578
3582
|
}
|
|
3579
|
-
const
|
|
3580
|
-
return
|
|
3581
|
-
var
|
|
3583
|
+
const p = $(!1);
|
|
3584
|
+
return p.current || (k(), S(), p.current = !0), B(() => {
|
|
3585
|
+
var C, I;
|
|
3582
3586
|
if (_()) {
|
|
3583
3587
|
if (N() && !e.isNestedRender && (window.addEventListener("message", s), Le(), Oe({
|
|
3584
3588
|
...e.locale ? {
|
|
@@ -3594,39 +3598,39 @@ function Un(e) {
|
|
|
3594
3598
|
e.builderContextSignal.componentInfos
|
|
3595
3599
|
).forEach((u) => {
|
|
3596
3600
|
var E;
|
|
3597
|
-
const
|
|
3598
|
-
(E = window.parent) == null || E.postMessage(
|
|
3601
|
+
const y = Ue(u);
|
|
3602
|
+
(E = window.parent) == null || E.postMessage(y, "*");
|
|
3599
3603
|
}), window.addEventListener(
|
|
3600
3604
|
"builder:component:stateChangeListenerActivated",
|
|
3601
|
-
|
|
3605
|
+
S
|
|
3602
3606
|
)), e.builderContextSignal.content && q(e.canTrack)) {
|
|
3603
|
-
const u = (
|
|
3607
|
+
const u = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, y = (I = e.builderContextSignal.content) == null ? void 0 : I.id, E = e.apiKey;
|
|
3604
3608
|
le({
|
|
3605
3609
|
apiHost: e.apiHost,
|
|
3606
3610
|
type: "impression",
|
|
3607
3611
|
canTrack: !0,
|
|
3608
|
-
contentId:
|
|
3612
|
+
contentId: y,
|
|
3609
3613
|
apiKey: E,
|
|
3610
|
-
variationId: u !==
|
|
3614
|
+
variationId: u !== y ? u : void 0
|
|
3611
3615
|
});
|
|
3612
3616
|
}
|
|
3613
3617
|
if (xe() && !N()) {
|
|
3614
|
-
const u = new URL(location.href).searchParams,
|
|
3615
|
-
`builder.overrides.${
|
|
3616
|
-
),
|
|
3617
|
-
|
|
3618
|
+
const u = new URL(location.href).searchParams, y = u.get("builder.preview"), E = u.get(
|
|
3619
|
+
`builder.overrides.${y}`
|
|
3620
|
+
), R = u.get("apiKey") || u.get("builder.space");
|
|
3621
|
+
y === e.model && R === e.apiKey && (!e.content || E === e.content.id) && ve({
|
|
3618
3622
|
model: e.model,
|
|
3619
3623
|
apiKey: e.apiKey,
|
|
3620
3624
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3621
|
-
}).then((
|
|
3622
|
-
|
|
3625
|
+
}).then((W) => {
|
|
3626
|
+
W && i(W);
|
|
3623
3627
|
});
|
|
3624
3628
|
}
|
|
3625
3629
|
}
|
|
3626
3630
|
}, []), B(() => {
|
|
3627
3631
|
e.content && i(e.content);
|
|
3628
3632
|
}, [e.content]), B(() => {
|
|
3629
|
-
|
|
3633
|
+
S();
|
|
3630
3634
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3631
3635
|
e.data && n(e.data);
|
|
3632
3636
|
}, [e.data]), B(() => {
|
|
@@ -3636,17 +3640,17 @@ function Un(e) {
|
|
|
3636
3640
|
}, [e.locale]), B(() => () => {
|
|
3637
3641
|
_() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3638
3642
|
"builder:component:stateChangeListenerActivated",
|
|
3639
|
-
|
|
3643
|
+
S
|
|
3640
3644
|
));
|
|
3641
3645
|
}, []), /* @__PURE__ */ l(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3642
3646
|
a,
|
|
3643
3647
|
{
|
|
3644
3648
|
ref: t,
|
|
3645
|
-
onClick: (
|
|
3646
|
-
"builder-content-id": (
|
|
3649
|
+
onClick: (C) => f(C),
|
|
3650
|
+
"builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
3647
3651
|
"builder-model": e.model,
|
|
3648
3652
|
className: On(
|
|
3649
|
-
((
|
|
3653
|
+
((x = e.content) == null ? void 0 : x.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
3650
3654
|
),
|
|
3651
3655
|
...o(),
|
|
3652
3656
|
...e.contentWrapperProps,
|
|
@@ -3655,7 +3659,7 @@ function Un(e) {
|
|
|
3655
3659
|
) : null });
|
|
3656
3660
|
}
|
|
3657
3661
|
function Hn(e) {
|
|
3658
|
-
const [t, n] =
|
|
3662
|
+
const [t, n] = w(
|
|
3659
3663
|
() => `
|
|
3660
3664
|
${$n({
|
|
3661
3665
|
cssCode: e.cssCode,
|
|
@@ -3705,43 +3709,43 @@ const jn = ({
|
|
|
3705
3709
|
meta: e == null ? void 0 : e.meta
|
|
3706
3710
|
} : void 0;
|
|
3707
3711
|
function ye(e) {
|
|
3708
|
-
var c, h,
|
|
3709
|
-
const [t, n] =
|
|
3712
|
+
var c, h, g, m, v, f, k, S, p;
|
|
3713
|
+
const [t, n] = w(
|
|
3710
3714
|
() => {
|
|
3711
|
-
var
|
|
3715
|
+
var b, x;
|
|
3712
3716
|
return Bn({
|
|
3713
3717
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3714
|
-
variationId: (
|
|
3718
|
+
variationId: (b = e.content) == null ? void 0 : b.testVariationId,
|
|
3715
3719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3716
|
-
contentId: (
|
|
3720
|
+
contentId: (x = e.content) == null ? void 0 : x.id
|
|
3717
3721
|
});
|
|
3718
3722
|
}
|
|
3719
3723
|
);
|
|
3720
|
-
function i(
|
|
3721
|
-
s((
|
|
3722
|
-
...
|
|
3723
|
-
rootState:
|
|
3724
|
+
function i(b) {
|
|
3725
|
+
s((x) => ({
|
|
3726
|
+
...x,
|
|
3727
|
+
rootState: b
|
|
3724
3728
|
}));
|
|
3725
3729
|
}
|
|
3726
|
-
const [o, a] =
|
|
3730
|
+
const [o, a] = w(
|
|
3727
3731
|
() => {
|
|
3728
|
-
var
|
|
3732
|
+
var b;
|
|
3729
3733
|
return [
|
|
3730
3734
|
...ge(),
|
|
3731
|
-
...((
|
|
3735
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
|
|
3732
3736
|
].reduce(
|
|
3733
|
-
(
|
|
3734
|
-
...
|
|
3735
|
-
[
|
|
3736
|
-
component:
|
|
3737
|
-
...se(
|
|
3737
|
+
(x, { component: A, ...C }) => ({
|
|
3738
|
+
...x,
|
|
3739
|
+
[C.name]: {
|
|
3740
|
+
component: A,
|
|
3741
|
+
...se(C)
|
|
3738
3742
|
}
|
|
3739
3743
|
}),
|
|
3740
3744
|
{}
|
|
3741
3745
|
);
|
|
3742
3746
|
}
|
|
3743
|
-
), [r, s] =
|
|
3744
|
-
var
|
|
3747
|
+
), [r, s] = w(() => {
|
|
3748
|
+
var b;
|
|
3745
3749
|
return {
|
|
3746
3750
|
content: Mn({
|
|
3747
3751
|
content: e.content,
|
|
@@ -3760,11 +3764,11 @@ function ye(e) {
|
|
|
3760
3764
|
apiVersion: e.apiVersion,
|
|
3761
3765
|
componentInfos: [
|
|
3762
3766
|
...ge(),
|
|
3763
|
-
...((
|
|
3767
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
|
|
3764
3768
|
].reduce(
|
|
3765
|
-
(
|
|
3766
|
-
...
|
|
3767
|
-
[
|
|
3769
|
+
(x, { component: A, ...C }) => ({
|
|
3770
|
+
...x,
|
|
3771
|
+
[C.name]: se(C)
|
|
3768
3772
|
}),
|
|
3769
3773
|
{}
|
|
3770
3774
|
),
|
|
@@ -3778,14 +3782,14 @@ function ye(e) {
|
|
|
3778
3782
|
e.apiKey || ne.error(
|
|
3779
3783
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3780
3784
|
);
|
|
3781
|
-
const
|
|
3782
|
-
|
|
3783
|
-
code:
|
|
3785
|
+
const b = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3786
|
+
b && L({
|
|
3787
|
+
code: b,
|
|
3784
3788
|
context: e.context || {},
|
|
3785
3789
|
localState: void 0,
|
|
3786
3790
|
rootState: r.rootState,
|
|
3787
|
-
rootSetState: (
|
|
3788
|
-
Object.assign(r.rootState,
|
|
3791
|
+
rootSetState: (x) => {
|
|
3792
|
+
Object.assign(r.rootState, x);
|
|
3789
3793
|
},
|
|
3790
3794
|
isExpression: !1
|
|
3791
3795
|
}), d.current = !0;
|
|
@@ -3830,15 +3834,15 @@ function ye(e) {
|
|
|
3830
3834
|
{
|
|
3831
3835
|
nonce: e.nonce || "",
|
|
3832
3836
|
isNestedRender: e.isNestedRender,
|
|
3833
|
-
contentId: (
|
|
3834
|
-
cssCode: (v = (
|
|
3835
|
-
customFonts: (
|
|
3837
|
+
contentId: (g = r.content) == null ? void 0 : g.id,
|
|
3838
|
+
cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
3839
|
+
customFonts: (k = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
|
|
3836
3840
|
}
|
|
3837
3841
|
),
|
|
3838
3842
|
/* @__PURE__ */ l(
|
|
3839
3843
|
F,
|
|
3840
3844
|
{
|
|
3841
|
-
blocks: (
|
|
3845
|
+
blocks: (p = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
|
|
3842
3846
|
context: r,
|
|
3843
3847
|
registeredComponents: o,
|
|
3844
3848
|
linkComponent: e.linkComponent
|
|
@@ -3852,7 +3856,7 @@ function ye(e) {
|
|
|
3852
3856
|
}
|
|
3853
3857
|
function _n(e) {
|
|
3854
3858
|
var r;
|
|
3855
|
-
const [t, n] =
|
|
3859
|
+
const [t, n] = w(
|
|
3856
3860
|
() => wn({
|
|
3857
3861
|
canTrack: q(e.canTrack),
|
|
3858
3862
|
content: e.content
|
|
@@ -3882,7 +3886,7 @@ function _n(e) {
|
|
|
3882
3886
|
});
|
|
3883
3887
|
}
|
|
3884
3888
|
return B(() => {
|
|
3885
|
-
}, []), /* @__PURE__ */ V(
|
|
3889
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
3886
3890
|
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ l(
|
|
3887
3891
|
te,
|
|
3888
3892
|
{
|
|
@@ -3891,7 +3895,7 @@ function _n(e) {
|
|
|
3891
3895
|
nonce: e.nonce || ""
|
|
3892
3896
|
}
|
|
3893
3897
|
) : null,
|
|
3894
|
-
t ? /* @__PURE__ */ V(
|
|
3898
|
+
t ? /* @__PURE__ */ V(T, { children: [
|
|
3895
3899
|
/* @__PURE__ */ l(
|
|
3896
3900
|
z,
|
|
3897
3901
|
{
|
|
@@ -3992,24 +3996,24 @@ function Kn(e) {
|
|
|
3992
3996
|
return "div";
|
|
3993
3997
|
}
|
|
3994
3998
|
function i() {
|
|
3995
|
-
var
|
|
3999
|
+
var g, m;
|
|
3996
4000
|
return [
|
|
3997
4001
|
e.attributes[U()],
|
|
3998
4002
|
"builder-symbol",
|
|
3999
|
-
(
|
|
4000
|
-
(
|
|
4003
|
+
(g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
|
|
4004
|
+
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4001
4005
|
].filter(Boolean).join(" ");
|
|
4002
4006
|
}
|
|
4003
|
-
const [o, a] =
|
|
4004
|
-
var
|
|
4005
|
-
return (
|
|
4007
|
+
const [o, a] = w(() => {
|
|
4008
|
+
var g;
|
|
4009
|
+
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4006
4010
|
});
|
|
4007
4011
|
function r() {
|
|
4008
4012
|
o || qn({
|
|
4009
4013
|
symbol: e.symbol,
|
|
4010
4014
|
builderContextValue: e.builderContext
|
|
4011
|
-
}).then((
|
|
4012
|
-
|
|
4015
|
+
}).then((g) => {
|
|
4016
|
+
g && a(g);
|
|
4013
4017
|
});
|
|
4014
4018
|
}
|
|
4015
4019
|
return B(() => {
|