@builder.io/sdk-react 1.0.24 → 1.0.25
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 +75 -75
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +8 -1
- package/lib/browser/init.mjs +37 -2
- package/lib/browser/{server-entry-85d7f359.js → server-entry-d15ee928.js} +2 -1
- package/lib/browser/{server-entry-a540d463.cjs → server-entry-f28ec73b.cjs} +2 -2
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{blocks-e6873db2.js → blocks-7c1422af.js} +140 -140
- package/lib/edge/{blocks-59950370.cjs → blocks-8c31869c.cjs} +11 -11
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-8a6ae666.js → button-3439cb1b.js} +2 -2
- package/lib/edge/{button-aff4f652.cjs → button-96857fcf.cjs} +1 -1
- package/lib/edge/{columns-0768e506.js → columns-0d152875.js} +3 -3
- package/lib/edge/{columns-8dca796d.cjs → columns-930c3d9a.cjs} +1 -1
- package/lib/edge/{content-variants-c8061bc0.js → content-variants-1ff6980e.js} +9 -9
- package/lib/edge/{content-variants-e79859ac.cjs → content-variants-d62785c6.cjs} +1 -1
- package/lib/edge/{form-c3d12c27.js → form-1dbd32d7.js} +3 -3
- package/lib/edge/{form-e6847833.cjs → form-69ed6cc5.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-a023381f.js → get-class-prop-name-58140fb7.js} +1 -1
- package/lib/edge/{get-class-prop-name-a966a097.cjs → get-class-prop-name-c793129b.cjs} +1 -1
- package/lib/edge/{img-1431a6ab.cjs → img-305b1676.cjs} +1 -1
- package/lib/edge/{img-03949fec.js → img-d4b1130f.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +8 -1
- package/lib/edge/init.mjs +37 -2
- package/lib/edge/{input-f420d17a.cjs → input-28dd9b60.cjs} +1 -1
- package/lib/edge/{input-f611f26d.js → input-a7054c28.js} +1 -1
- package/lib/edge/{select-aadf10db.cjs → select-57b6e444.cjs} +1 -1
- package/lib/edge/{select-e056d1d3.js → select-dd83a040.js} +1 -1
- package/lib/edge/{server-entry-bbf65248.js → server-entry-cb8ad418.js} +2 -1
- package/lib/edge/{server-entry-95f97e05.cjs → server-entry-d9413c6f.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-3ed45869.cjs → slot-3f6aff1b.cjs} +1 -1
- package/lib/edge/{slot-2f6f1817.js → slot-7dbe2bcb.js} +3 -3
- package/lib/edge/{symbol-c9d45cc8.cjs → symbol-63f3b56e.cjs} +1 -1
- package/lib/edge/{symbol-853c210f.js → symbol-a20aae0e.js} +2 -2
- package/lib/edge/{tabs-34a12e52.cjs → tabs-f559c3bf.cjs} +1 -1
- package/lib/edge/{tabs-28d0f021.js → tabs-f5fd67a5.js} +3 -3
- package/lib/node/blocks-exports.cjs +9 -9
- package/lib/node/blocks-exports.mjs +167 -167
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +8 -6
- package/lib/node/node-runtime-79a56b80.cjs +48 -0
- package/lib/node/{node-runtime-071b85f9.js → node-runtime-def43b7b.js} +49 -47
- package/lib/node/{server-entry-fd29e8b4.js → server-entry-28bf4f4c.js} +1 -1
- package/lib/node/{server-entry-b5031981.cjs → server-entry-c4d16d70.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +4 -4
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/init.d.ts +4 -1
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +4 -1
- package/lib/node/node-runtime-41e3da8e.cjs +0 -48
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
var Me = Object.defineProperty;
|
|
3
3
|
var Ue = (e, t, n) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ne = (e, t, n) => (Ue(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
-
import { jsx as s, Fragment as
|
|
6
|
-
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as le, isEditing as F, registerInsertMenu as Oe, setupBrowserForEditing as He, createRegisterComponentMessage as Ke, getDefaultCanTrack as Q, _track as me, isPreviewing as qe, fetchOneEntry as ke, createEditorListener as _e, fetch as ze, serializeComponentInfo as fe, handleABTestingSync as Je } from "./server-entry-
|
|
5
|
+
import { jsx as s, Fragment as w, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as le, isEditing as F, registerInsertMenu as Oe, setupBrowserForEditing as He, createRegisterComponentMessage as Ke, getDefaultCanTrack as Q, _track as me, isPreviewing as qe, fetchOneEntry as ke, createEditorListener as _e, fetch as ze, serializeComponentInfo as fe, handleABTestingSync as Je } from "./server-entry-28bf4f4c.js";
|
|
7
7
|
import { createContext as Ce, useState as C, useEffect as P, useContext as he, useRef as ee, createElement as Te } from "react";
|
|
8
|
-
import { getFunctionArguments as Ye, runInNode as Ge, parseCode as Qe, getBuilderGlobals as Xe, set as we } from "./node-runtime-
|
|
8
|
+
import { getFunctionArguments as Ye, runInNode as Ge, parseCode as Qe, getBuilderGlobals as Xe, set as we } from "./node-runtime-def43b7b.js";
|
|
9
9
|
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
10
10
|
function se(e) {
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
11
|
+
return /* @__PURE__ */ s(w, { children: et(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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 H = () => {
|
|
14
14
|
switch (q) {
|
|
@@ -362,12 +362,12 @@ function ht({
|
|
|
362
362
|
const gt = ({
|
|
363
363
|
block: e,
|
|
364
364
|
context: t
|
|
365
|
-
}) =>
|
|
365
|
+
}) => Ne(ht({
|
|
366
366
|
style: e.style || {},
|
|
367
367
|
context: t,
|
|
368
368
|
block: e
|
|
369
369
|
}));
|
|
370
|
-
function
|
|
370
|
+
function Ne(e) {
|
|
371
371
|
switch (q) {
|
|
372
372
|
case "svelte":
|
|
373
373
|
case "vue":
|
|
@@ -403,7 +403,7 @@ const bt = ({
|
|
|
403
403
|
console.warn(`
|
|
404
404
|
Could not find a registered component named "${i}".
|
|
405
405
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
406
|
-
},
|
|
406
|
+
}, pt = ({
|
|
407
407
|
block: e,
|
|
408
408
|
context: t
|
|
409
409
|
}) => {
|
|
@@ -437,7 +437,7 @@ const bt = ({
|
|
|
437
437
|
},
|
|
438
438
|
block: i
|
|
439
439
|
}));
|
|
440
|
-
},
|
|
440
|
+
}, yt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), xt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), We = {
|
|
441
441
|
small: {
|
|
442
442
|
min: 320,
|
|
443
443
|
default: 321,
|
|
@@ -453,11 +453,11 @@ const bt = ({
|
|
|
453
453
|
default: 991,
|
|
454
454
|
max: 1200
|
|
455
455
|
}
|
|
456
|
-
}, ge = (e, t =
|
|
456
|
+
}, ge = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ae = ({
|
|
457
457
|
small: e,
|
|
458
458
|
medium: t
|
|
459
459
|
}) => {
|
|
460
|
-
const n = le(
|
|
460
|
+
const n = le(We);
|
|
461
461
|
if (!e || !t)
|
|
462
462
|
return n;
|
|
463
463
|
const i = Math.floor(e / 2);
|
|
@@ -502,7 +502,7 @@ function St(e) {
|
|
|
502
502
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
503
503
|
}
|
|
504
504
|
function n() {
|
|
505
|
-
var
|
|
505
|
+
var E, R, N;
|
|
506
506
|
const i = X({
|
|
507
507
|
block: e.block,
|
|
508
508
|
localState: e.context.localState,
|
|
@@ -510,8 +510,8 @@ function St(e) {
|
|
|
510
510
|
rootSetState: e.context.rootSetState,
|
|
511
511
|
context: e.context.context,
|
|
512
512
|
shouldEvaluateBindings: !0
|
|
513
|
-
}), o = i.responsiveStyles, l = e.context.content, r =
|
|
514
|
-
((
|
|
513
|
+
}), o = i.responsiveStyles, l = e.context.content, r = Ae(
|
|
514
|
+
((E = l == null ? void 0 : l.meta) == null ? void 0 : E.breakpoints) || {}
|
|
515
515
|
), a = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
|
|
516
516
|
if (!m)
|
|
517
517
|
return "";
|
|
@@ -525,21 +525,21 @@ function St(e) {
|
|
|
525
525
|
"medium",
|
|
526
526
|
r
|
|
527
527
|
)
|
|
528
|
-
}) : "",
|
|
528
|
+
}) : "", p = d ? z({
|
|
529
529
|
className: m,
|
|
530
530
|
styles: d,
|
|
531
531
|
mediaQuery: ge(
|
|
532
532
|
"small",
|
|
533
533
|
r
|
|
534
534
|
)
|
|
535
|
-
}) : "", S = i.animations && i.animations.find((
|
|
536
|
-
let
|
|
535
|
+
}) : "", S = i.animations && i.animations.find((W) => W.trigger === "hover");
|
|
536
|
+
let I = "";
|
|
537
537
|
if (S) {
|
|
538
|
-
const
|
|
539
|
-
|
|
538
|
+
const W = ((N = (R = S.steps) == null ? void 0 : R[1]) == null ? void 0 : N.styles) || {};
|
|
539
|
+
I = z({
|
|
540
540
|
className: `${m}:hover`,
|
|
541
541
|
styles: {
|
|
542
|
-
...
|
|
542
|
+
...W,
|
|
543
543
|
transition: `all ${S.duration}s ${de(
|
|
544
544
|
S.easing
|
|
545
545
|
)}`,
|
|
@@ -550,11 +550,11 @@ function St(e) {
|
|
|
550
550
|
return [
|
|
551
551
|
u,
|
|
552
552
|
g,
|
|
553
|
-
|
|
554
|
-
|
|
553
|
+
p,
|
|
554
|
+
I
|
|
555
555
|
].join(" ");
|
|
556
556
|
}
|
|
557
|
-
return /* @__PURE__ */ s(
|
|
557
|
+
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(te, { id: "builderio-block", styles: n() }) }) : null });
|
|
558
558
|
}
|
|
559
559
|
function vt(e) {
|
|
560
560
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -693,7 +693,7 @@ function be(e) {
|
|
|
693
693
|
const [t, n] = C(
|
|
694
694
|
() => e.isInteractive ? Et : e.componentRef
|
|
695
695
|
);
|
|
696
|
-
return /* @__PURE__ */ s(
|
|
696
|
+
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
697
697
|
t,
|
|
698
698
|
{
|
|
699
699
|
...Rt({
|
|
@@ -741,7 +741,7 @@ function _(e) {
|
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
function n() {
|
|
744
|
-
return
|
|
744
|
+
return pt({
|
|
745
745
|
block: e.block,
|
|
746
746
|
context: e.context
|
|
747
747
|
});
|
|
@@ -762,28 +762,28 @@ function _(e) {
|
|
|
762
762
|
return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
763
763
|
}
|
|
764
764
|
function l() {
|
|
765
|
-
var
|
|
766
|
-
if ((
|
|
765
|
+
var p, S;
|
|
766
|
+
if ((p = e.block.repeat) != null && p.collection)
|
|
767
767
|
return !!((S = n == null ? void 0 : n()) != null && S.length);
|
|
768
768
|
const u = "hide" in i() ? i().hide : !1;
|
|
769
769
|
return ("show" in i() ? i().show : !0) && !u;
|
|
770
770
|
}
|
|
771
771
|
function r() {
|
|
772
|
-
var g,
|
|
773
|
-
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (
|
|
772
|
+
var g, p;
|
|
773
|
+
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (p = i().children) != null ? p : [] : [];
|
|
774
774
|
}
|
|
775
775
|
function a() {
|
|
776
|
-
var u, g,
|
|
776
|
+
var u, g, p, S;
|
|
777
777
|
return {
|
|
778
778
|
blockChildren: (u = i().children) != null ? u : [],
|
|
779
779
|
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
780
780
|
componentOptions: {
|
|
781
781
|
...nt(i()),
|
|
782
782
|
builderContext: e.context,
|
|
783
|
-
...
|
|
783
|
+
...yt(t()) ? {
|
|
784
784
|
builderLinkComponent: e.linkComponent
|
|
785
785
|
} : {},
|
|
786
|
-
...xt(
|
|
786
|
+
...xt(t()) ? {
|
|
787
787
|
builderComponents: e.registeredComponents
|
|
788
788
|
} : {}
|
|
789
789
|
},
|
|
@@ -791,21 +791,21 @@ function _(e) {
|
|
|
791
791
|
linkComponent: e.linkComponent,
|
|
792
792
|
registeredComponents: e.registeredComponents,
|
|
793
793
|
builderBlock: i(),
|
|
794
|
-
includeBlockProps: ((
|
|
795
|
-
isInteractive: !((
|
|
794
|
+
includeBlockProps: ((p = t == null ? void 0 : t()) == null ? void 0 : p.noWrap) === !0,
|
|
795
|
+
isInteractive: !((S = t == null ? void 0 : t()) != null && S.isRSC)
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
798
|
return P(() => {
|
|
799
799
|
const u = i().id, g = i().animations;
|
|
800
800
|
g && u && ct(
|
|
801
|
-
g.map((
|
|
802
|
-
...
|
|
801
|
+
g.map((p) => ({
|
|
802
|
+
...p,
|
|
803
803
|
elementId: u
|
|
804
804
|
}))
|
|
805
805
|
);
|
|
806
|
-
}, []), /* @__PURE__ */ s(
|
|
806
|
+
}, []), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ V(w, { children: [
|
|
807
807
|
/* @__PURE__ */ s(St, { block: e.block, context: e.context }),
|
|
808
|
-
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(
|
|
808
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
809
809
|
be,
|
|
810
810
|
{
|
|
811
811
|
componentRef: a().componentRef,
|
|
@@ -818,7 +818,7 @@ function _(e) {
|
|
|
818
818
|
includeBlockProps: a().includeBlockProps,
|
|
819
819
|
isInteractive: a().isInteractive
|
|
820
820
|
}
|
|
821
|
-
) }) : /* @__PURE__ */ s(
|
|
821
|
+
) }) : /* @__PURE__ */ s(w, { children: n() ? /* @__PURE__ */ s(w, { children: (m = n()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
|
|
822
822
|
Pt,
|
|
823
823
|
{
|
|
824
824
|
repeatContext: u.context,
|
|
@@ -895,7 +895,7 @@ function Vt(e) {
|
|
|
895
895
|
"*"
|
|
896
896
|
));
|
|
897
897
|
}
|
|
898
|
-
return /* @__PURE__ */ V(
|
|
898
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
899
899
|
/* @__PURE__ */ s(
|
|
900
900
|
e.BlocksWrapper,
|
|
901
901
|
{
|
|
@@ -929,7 +929,7 @@ function j(e) {
|
|
|
929
929
|
styleProp: e.styleProp,
|
|
930
930
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
931
931
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
932
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
932
|
+
children: e.blocks ? /* @__PURE__ */ s(w, { children: (l = e.blocks) == null ? void 0 : l.map((r) => /* @__PURE__ */ s(
|
|
933
933
|
_,
|
|
934
934
|
{
|
|
935
935
|
block: r,
|
|
@@ -943,8 +943,8 @@ function j(e) {
|
|
|
943
943
|
);
|
|
944
944
|
}
|
|
945
945
|
const Bt = (e) => `builder-columns ${e}-breakpoints`;
|
|
946
|
-
function
|
|
947
|
-
var
|
|
946
|
+
function Nt(e) {
|
|
947
|
+
var W, D;
|
|
948
948
|
const [t, n] = C(
|
|
949
949
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
950
950
|
), [i, o] = C(() => e.columns || []), [l, r] = C(
|
|
@@ -954,26 +954,26 @@ function Wt(e) {
|
|
|
954
954
|
return x.link ? e.builderLinkComponent || "a" : "div";
|
|
955
955
|
}
|
|
956
956
|
function c(x) {
|
|
957
|
-
var
|
|
958
|
-
return ((
|
|
957
|
+
var T;
|
|
958
|
+
return ((T = i[x]) == null ? void 0 : T.width) || 100 / i.length;
|
|
959
959
|
}
|
|
960
960
|
function d(x) {
|
|
961
|
-
const
|
|
962
|
-
return `calc(${c(x)}% - ${
|
|
961
|
+
const T = t * (i.length - 1) / i.length;
|
|
962
|
+
return `calc(${c(x)}% - ${T}px)`;
|
|
963
963
|
}
|
|
964
964
|
function m({
|
|
965
965
|
stackedStyle: x,
|
|
966
|
-
desktopStyle:
|
|
966
|
+
desktopStyle: T
|
|
967
967
|
}) {
|
|
968
|
-
return l === "tablet" ? x :
|
|
968
|
+
return l === "tablet" ? x : T;
|
|
969
969
|
}
|
|
970
970
|
function u({
|
|
971
971
|
stackedStyle: x,
|
|
972
|
-
desktopStyle:
|
|
972
|
+
desktopStyle: T
|
|
973
973
|
}) {
|
|
974
|
-
return l === "never" ?
|
|
974
|
+
return l === "never" ? T : x;
|
|
975
975
|
}
|
|
976
|
-
const [g,
|
|
976
|
+
const [g, p] = C(
|
|
977
977
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
978
978
|
);
|
|
979
979
|
function S() {
|
|
@@ -985,19 +985,19 @@ function Wt(e) {
|
|
|
985
985
|
})
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
const
|
|
988
|
+
function I(x) {
|
|
989
|
+
const T = x === 0 ? 0 : t, A = d(x), h = `${T}px`, f = "100%", b = 0;
|
|
990
990
|
return {
|
|
991
991
|
...{
|
|
992
992
|
display: "flex",
|
|
993
993
|
flexDirection: "column",
|
|
994
994
|
alignItems: "stretch"
|
|
995
995
|
},
|
|
996
|
-
width:
|
|
996
|
+
width: A,
|
|
997
997
|
["marginLeft"]: h,
|
|
998
998
|
"--column-width-mobile": u({
|
|
999
999
|
stackedStyle: f,
|
|
1000
|
-
desktopStyle:
|
|
1000
|
+
desktopStyle: A
|
|
1001
1001
|
}),
|
|
1002
1002
|
"--column-margin-left-mobile": u({
|
|
1003
1003
|
stackedStyle: b,
|
|
@@ -1005,7 +1005,7 @@ function Wt(e) {
|
|
|
1005
1005
|
}),
|
|
1006
1006
|
"--column-width-tablet": m({
|
|
1007
1007
|
stackedStyle: f,
|
|
1008
|
-
desktopStyle:
|
|
1008
|
+
desktopStyle: A
|
|
1009
1009
|
}),
|
|
1010
1010
|
"--column-margin-left-tablet": m({
|
|
1011
1011
|
stackedStyle: b,
|
|
@@ -1013,15 +1013,15 @@ function Wt(e) {
|
|
|
1013
1013
|
})
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
var
|
|
1018
|
-
return
|
|
1019
|
-
((h = (
|
|
1016
|
+
function E(x) {
|
|
1017
|
+
var A, h;
|
|
1018
|
+
return Ae(
|
|
1019
|
+
((h = (A = e.builderContext.content) == null ? void 0 : A.meta) == null ? void 0 : h.breakpoints) || {}
|
|
1020
1020
|
)[x].max;
|
|
1021
1021
|
}
|
|
1022
1022
|
function R() {
|
|
1023
1023
|
return `
|
|
1024
|
-
@media (max-width: ${
|
|
1024
|
+
@media (max-width: ${E("medium")}px) {
|
|
1025
1025
|
.${e.builderBlock.id}-breakpoints {
|
|
1026
1026
|
flex-direction: var(--flex-dir-tablet);
|
|
1027
1027
|
align-items: stretch;
|
|
@@ -1033,7 +1033,7 @@ function Wt(e) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
-
@media (max-width: ${
|
|
1036
|
+
@media (max-width: ${E("small")}px) {
|
|
1037
1037
|
.${e.builderBlock.id}-breakpoints {
|
|
1038
1038
|
flex-direction: var(--flex-dir);
|
|
1039
1039
|
align-items: stretch;
|
|
@@ -1046,33 +1046,33 @@ function Wt(e) {
|
|
|
1046
1046
|
},
|
|
1047
1047
|
`;
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function N(x, T) {
|
|
1050
1050
|
return {
|
|
1051
1051
|
...x.link ? {
|
|
1052
1052
|
href: x.link
|
|
1053
1053
|
} : {},
|
|
1054
1054
|
[H()]: "builder-column",
|
|
1055
|
-
style:
|
|
1055
|
+
style: Ne(I(T))
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
|
-
return /* @__PURE__ */ V(
|
|
1058
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
1059
1059
|
/* @__PURE__ */ V(
|
|
1060
1060
|
"div",
|
|
1061
1061
|
{
|
|
1062
|
-
className: Bt((
|
|
1062
|
+
className: Bt((W = e.builderBlock) == null ? void 0 : W.id) + " div-00cb97e2",
|
|
1063
1063
|
style: S(),
|
|
1064
1064
|
children: [
|
|
1065
1065
|
/* @__PURE__ */ s(te, { id: "builderio-columns", styles: R() }),
|
|
1066
|
-
(D = e.columns) == null ? void 0 : D.map((x,
|
|
1066
|
+
(D = e.columns) == null ? void 0 : D.map((x, T) => /* @__PURE__ */ s(
|
|
1067
1067
|
se,
|
|
1068
1068
|
{
|
|
1069
1069
|
TagName: a(x),
|
|
1070
1070
|
actionAttributes: {},
|
|
1071
|
-
attributes:
|
|
1071
|
+
attributes: N(x, T),
|
|
1072
1072
|
children: /* @__PURE__ */ s(
|
|
1073
1073
|
j,
|
|
1074
1074
|
{
|
|
1075
|
-
path: `component.options.columns.${
|
|
1075
|
+
path: `component.options.columns.${T}.blocks`,
|
|
1076
1076
|
parent: e.builderBlock.id,
|
|
1077
1077
|
styleProp: {
|
|
1078
1078
|
flexGrow: "1"
|
|
@@ -1084,7 +1084,7 @@ function Wt(e) {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
)
|
|
1086
1086
|
},
|
|
1087
|
-
|
|
1087
|
+
T
|
|
1088
1088
|
))
|
|
1089
1089
|
]
|
|
1090
1090
|
}
|
|
@@ -1095,13 +1095,13 @@ function Wt(e) {
|
|
|
1095
1095
|
}` })
|
|
1096
1096
|
] });
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Wt(e) {
|
|
1099
1099
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function pe(e) {
|
|
1102
1102
|
return e.replace(/http(s)?:/, "");
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function At(e = "", t, n) {
|
|
1105
1105
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1106
1106
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1107
1107
|
}
|
|
@@ -1109,11 +1109,11 @@ function $t(e, t) {
|
|
|
1109
1109
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1110
1110
|
return e;
|
|
1111
1111
|
if (t === "master")
|
|
1112
|
-
return
|
|
1112
|
+
return pe(e);
|
|
1113
1113
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1114
1114
|
if (n) {
|
|
1115
1115
|
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1116
|
-
return
|
|
1116
|
+
return pe(`${i[0]}_${l}${o}`);
|
|
1117
1117
|
}
|
|
1118
1118
|
return null;
|
|
1119
1119
|
}
|
|
@@ -1124,7 +1124,7 @@ function ie(e) {
|
|
|
1124
1124
|
if (e.match(/builder\.io/)) {
|
|
1125
1125
|
let n = e;
|
|
1126
1126
|
const i = Number(e.split("?width=")[1]);
|
|
1127
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1127
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${At(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1128
1128
|
}
|
|
1129
1129
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1130
1130
|
}
|
|
@@ -1158,8 +1158,8 @@ function Ft(e) {
|
|
|
1158
1158
|
};
|
|
1159
1159
|
return e.aspectRatio ? m : void 0;
|
|
1160
1160
|
}
|
|
1161
|
-
return /* @__PURE__ */ V(
|
|
1162
|
-
/* @__PURE__ */ V(
|
|
1161
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
1162
|
+
/* @__PURE__ */ V(w, { children: [
|
|
1163
1163
|
/* @__PURE__ */ V("picture", { children: [
|
|
1164
1164
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1165
1165
|
/* @__PURE__ */ s(
|
|
@@ -1189,7 +1189,7 @@ function Ft(e) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
) : null,
|
|
1192
|
-
(a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1192
|
+
(a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
|
|
1193
1193
|
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
|
|
1194
1194
|
] }),
|
|
1195
1195
|
/* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
|
|
@@ -2267,32 +2267,32 @@ const nn = {
|
|
|
2267
2267
|
function ln(e) {
|
|
2268
2268
|
var u, g;
|
|
2269
2269
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [r, a] = C(() => "");
|
|
2270
|
-
function c(
|
|
2271
|
-
var
|
|
2270
|
+
function c(p) {
|
|
2271
|
+
var I, E;
|
|
2272
2272
|
const S = {
|
|
2273
2273
|
...e.builderContext.rootState,
|
|
2274
|
-
...
|
|
2274
|
+
...p
|
|
2275
2275
|
};
|
|
2276
|
-
e.builderContext.rootSetState ? (
|
|
2276
|
+
e.builderContext.rootSetState ? (E = (I = e.builderContext).rootSetState) == null || E.call(I, S) : e.builderContext.rootState = S;
|
|
2277
2277
|
}
|
|
2278
2278
|
function d() {
|
|
2279
2279
|
return F() && e.previewState || n;
|
|
2280
2280
|
}
|
|
2281
|
-
function m(
|
|
2282
|
-
var
|
|
2281
|
+
function m(p) {
|
|
2282
|
+
var I;
|
|
2283
2283
|
const S = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2284
2284
|
if (e.sendSubmissionsTo === "zapier")
|
|
2285
|
-
|
|
2285
|
+
p.preventDefault();
|
|
2286
2286
|
else if (S) {
|
|
2287
2287
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2288
|
-
|
|
2288
|
+
p.preventDefault();
|
|
2289
2289
|
return;
|
|
2290
2290
|
}
|
|
2291
|
-
|
|
2292
|
-
const
|
|
2293
|
-
let
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2291
|
+
p.preventDefault();
|
|
2292
|
+
const E = p.currentTarget, R = e.customHeaders || {};
|
|
2293
|
+
let N;
|
|
2294
|
+
const W = new FormData(E), D = Array.from(
|
|
2295
|
+
p.currentTarget.querySelectorAll("input,select,textarea")
|
|
2296
2296
|
).filter((h) => !!h.name).map((h) => {
|
|
2297
2297
|
let f;
|
|
2298
2298
|
const b = h.name;
|
|
@@ -2306,8 +2306,8 @@ function ln(e) {
|
|
|
2306
2306
|
} else if (h.type === "checkbox")
|
|
2307
2307
|
f = h.checked;
|
|
2308
2308
|
else if (h.type === "number" || h.type === "range") {
|
|
2309
|
-
const
|
|
2310
|
-
isNaN(
|
|
2309
|
+
const y = h.valueAsNumber;
|
|
2310
|
+
isNaN(y) || (f = y);
|
|
2311
2311
|
} else
|
|
2312
2312
|
h.type === "file" ? f = h.files : f = h.value;
|
|
2313
2313
|
else
|
|
@@ -2321,38 +2321,38 @@ function ln(e) {
|
|
|
2321
2321
|
if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(D).forEach(({ value: h }) => {
|
|
2322
2322
|
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (x = "multipart/form-data");
|
|
2323
2323
|
}), x !== "application/json")
|
|
2324
|
-
|
|
2324
|
+
N = W;
|
|
2325
2325
|
else {
|
|
2326
2326
|
const h = {};
|
|
2327
2327
|
Array.from(D).forEach(({ value: f, key: b }) => {
|
|
2328
2328
|
we(h, b, f);
|
|
2329
|
-
}),
|
|
2329
|
+
}), N = JSON.stringify(h);
|
|
2330
2330
|
}
|
|
2331
|
-
x && x !== "multipart/form-data" && (S && ((
|
|
2332
|
-
const
|
|
2333
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2331
|
+
x && x !== "multipart/form-data" && (S && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = x));
|
|
2332
|
+
const T = new CustomEvent("presubmit", { detail: { body: N } });
|
|
2333
|
+
if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
|
|
2334
2334
|
return;
|
|
2335
2335
|
i("sending");
|
|
2336
|
-
const
|
|
2336
|
+
const A = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2337
2337
|
e.sendSubmissionsToEmail || ""
|
|
2338
2338
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2339
2339
|
fetch(
|
|
2340
|
-
e.sendSubmissionsTo === "email" ?
|
|
2341
|
-
{ body:
|
|
2340
|
+
e.sendSubmissionsTo === "email" ? A : e.action,
|
|
2341
|
+
{ body: N, headers: R, method: e.method || "post" }
|
|
2342
2342
|
).then(
|
|
2343
2343
|
async (h) => {
|
|
2344
2344
|
let f;
|
|
2345
2345
|
const b = h.headers.get("content-type");
|
|
2346
2346
|
if (b && b.indexOf("application/json") !== -1 ? f = await h.json() : f = await h.text(), !h.ok && e.errorMessagePath) {
|
|
2347
|
-
let
|
|
2348
|
-
|
|
2347
|
+
let y = rn(f, e.errorMessagePath);
|
|
2348
|
+
y && (typeof y != "string" && (y = JSON.stringify(y)), a(y), c({ formErrorMessage: y }));
|
|
2349
2349
|
}
|
|
2350
2350
|
if (l(f), i(h.ok ? "success" : "error"), h.ok) {
|
|
2351
|
-
const
|
|
2351
|
+
const y = new CustomEvent("submit:success", {
|
|
2352
2352
|
detail: { res: h, body: f }
|
|
2353
2353
|
});
|
|
2354
2354
|
if (t.current) {
|
|
2355
|
-
if (t.current.dispatchEvent(
|
|
2355
|
+
if (t.current.dispatchEvent(y), y.defaultPrevented)
|
|
2356
2356
|
return;
|
|
2357
2357
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2358
2358
|
}
|
|
@@ -2375,7 +2375,7 @@ function ln(e) {
|
|
|
2375
2375
|
);
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
|
-
return /* @__PURE__ */ V(
|
|
2378
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
2379
2379
|
" ",
|
|
2380
2380
|
/* @__PURE__ */ V(
|
|
2381
2381
|
"form",
|
|
@@ -2385,13 +2385,13 @@ function ln(e) {
|
|
|
2385
2385
|
action: !e.sendWithJs && e.action,
|
|
2386
2386
|
method: e.method,
|
|
2387
2387
|
name: e.name,
|
|
2388
|
-
onSubmit: (
|
|
2388
|
+
onSubmit: (p) => m(p),
|
|
2389
2389
|
...e.attributes,
|
|
2390
2390
|
children: [
|
|
2391
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2391
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(w, { children: (g = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : g.map((p, S) => /* @__PURE__ */ s(
|
|
2392
2392
|
_,
|
|
2393
2393
|
{
|
|
2394
|
-
block:
|
|
2394
|
+
block: p,
|
|
2395
2395
|
context: e.builderContext,
|
|
2396
2396
|
registeredComponents: e.builderComponents,
|
|
2397
2397
|
linkComponent: e.builderLinkComponent
|
|
@@ -2696,7 +2696,7 @@ const bn = {
|
|
|
2696
2696
|
advanced: !0
|
|
2697
2697
|
}]
|
|
2698
2698
|
};
|
|
2699
|
-
function
|
|
2699
|
+
function pn(e) {
|
|
2700
2700
|
var i, o, l, r, a, c, d;
|
|
2701
2701
|
function t() {
|
|
2702
2702
|
return {
|
|
@@ -2797,7 +2797,7 @@ function yn(e) {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
);
|
|
2799
2799
|
}
|
|
2800
|
-
const
|
|
2800
|
+
const yn = () => [{
|
|
2801
2801
|
component: Qt,
|
|
2802
2802
|
...Gt
|
|
2803
2803
|
}, {
|
|
@@ -2819,16 +2819,16 @@ const pn = () => [{
|
|
|
2819
2819
|
component: gn,
|
|
2820
2820
|
...hn
|
|
2821
2821
|
}, {
|
|
2822
|
-
component:
|
|
2822
|
+
component: pn,
|
|
2823
2823
|
...bn
|
|
2824
|
-
}],
|
|
2824
|
+
}], ye = () => [{
|
|
2825
2825
|
component: tt,
|
|
2826
2826
|
...Dt
|
|
2827
2827
|
}, {
|
|
2828
|
-
component:
|
|
2828
|
+
component: Nt,
|
|
2829
2829
|
...jt
|
|
2830
2830
|
}, {
|
|
2831
|
-
component:
|
|
2831
|
+
component: Wt,
|
|
2832
2832
|
...Mt
|
|
2833
2833
|
}, {
|
|
2834
2834
|
component: Ft,
|
|
@@ -2848,7 +2848,7 @@ const pn = () => [{
|
|
|
2848
2848
|
}, {
|
|
2849
2849
|
component: zt,
|
|
2850
2850
|
..._t
|
|
2851
|
-
}, ...
|
|
2851
|
+
}, ...yn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2852
2852
|
function getAndSetVariantId() {
|
|
2853
2853
|
function setCookie(name, value, days) {
|
|
2854
2854
|
let expires = '';
|
|
@@ -3042,7 +3042,7 @@ font-weight: ${a};
|
|
|
3042
3042
|
}, Bn = ({
|
|
3043
3043
|
cssCode: e,
|
|
3044
3044
|
contentId: t
|
|
3045
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3045
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Nn = `
|
|
3046
3046
|
.builder-button {
|
|
3047
3047
|
all: unset;
|
|
3048
3048
|
}
|
|
@@ -3059,28 +3059,28 @@ font-weight: ${a};
|
|
|
3059
3059
|
text-align: inherit;
|
|
3060
3060
|
font-family: inherit;
|
|
3061
3061
|
}
|
|
3062
|
-
`,
|
|
3062
|
+
`, Wn = (e) => e ? "" : Nn, An = (e) => `variant-${e}`;
|
|
3063
3063
|
function $n(e) {
|
|
3064
|
-
var
|
|
3064
|
+
var N, W, D, x, T, A, h;
|
|
3065
3065
|
const t = ee(null);
|
|
3066
3066
|
function n(f) {
|
|
3067
|
-
var
|
|
3067
|
+
var y, v;
|
|
3068
3068
|
const b = {
|
|
3069
3069
|
...e.builderContextSignal.rootState,
|
|
3070
3070
|
...f
|
|
3071
3071
|
};
|
|
3072
|
-
e.builderContextSignal.rootSetState ? (v = (
|
|
3072
|
+
e.builderContextSignal.rootSetState ? (v = (y = e.builderContextSignal).rootSetState) == null || v.call(y, b) : e.setBuilderContextSignal((k) => ({
|
|
3073
3073
|
...k,
|
|
3074
3074
|
rootState: b
|
|
3075
3075
|
}));
|
|
3076
3076
|
}
|
|
3077
3077
|
function i(f) {
|
|
3078
|
-
var
|
|
3078
|
+
var y, v, k, B, M;
|
|
3079
3079
|
const b = {
|
|
3080
3080
|
...e.builderContextSignal.content,
|
|
3081
3081
|
...f,
|
|
3082
3082
|
data: {
|
|
3083
|
-
...(
|
|
3083
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.data,
|
|
3084
3084
|
...f == null ? void 0 : f.data
|
|
3085
3085
|
},
|
|
3086
3086
|
meta: {
|
|
@@ -3110,10 +3110,10 @@ function $n(e) {
|
|
|
3110
3110
|
callbacks: {
|
|
3111
3111
|
configureSdk: (b) => {
|
|
3112
3112
|
var k;
|
|
3113
|
-
const { breakpoints:
|
|
3114
|
-
!v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) ||
|
|
3113
|
+
const { breakpoints: y, contentId: v } = b;
|
|
3114
|
+
!v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || y && i({
|
|
3115
3115
|
meta: {
|
|
3116
|
-
breakpoints:
|
|
3116
|
+
breakpoints: y
|
|
3117
3117
|
}
|
|
3118
3118
|
});
|
|
3119
3119
|
},
|
|
@@ -3127,8 +3127,8 @@ function $n(e) {
|
|
|
3127
3127
|
})(f);
|
|
3128
3128
|
}
|
|
3129
3129
|
function c() {
|
|
3130
|
-
var b,
|
|
3131
|
-
const f = (
|
|
3130
|
+
var b, y;
|
|
3131
|
+
const f = (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.jsCode;
|
|
3132
3132
|
f && K({
|
|
3133
3133
|
code: f,
|
|
3134
3134
|
context: e.context || {},
|
|
@@ -3141,11 +3141,11 @@ function $n(e) {
|
|
|
3141
3141
|
enableCache: !1
|
|
3142
3142
|
});
|
|
3143
3143
|
}
|
|
3144
|
-
const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [
|
|
3145
|
-
function
|
|
3146
|
-
var b,
|
|
3144
|
+
const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [p, S] = C(() => !1);
|
|
3145
|
+
function I(f) {
|
|
3146
|
+
var b, y;
|
|
3147
3147
|
if (e.builderContextSignal.content) {
|
|
3148
|
-
const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, k = (
|
|
3148
|
+
const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, k = (y = e.builderContextSignal.content) == null ? void 0 : y.id;
|
|
3149
3149
|
me({
|
|
3150
3150
|
type: "click",
|
|
3151
3151
|
canTrack: Q(e.canTrack),
|
|
@@ -3153,14 +3153,14 @@ function $n(e) {
|
|
|
3153
3153
|
apiKey: e.apiKey,
|
|
3154
3154
|
variationId: v !== k ? v : void 0,
|
|
3155
3155
|
...Rn(f),
|
|
3156
|
-
unique: !
|
|
3156
|
+
unique: !p
|
|
3157
3157
|
});
|
|
3158
3158
|
}
|
|
3159
|
-
|
|
3159
|
+
p || S(!0);
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3162
|
-
var b,
|
|
3163
|
-
const f = (v = (
|
|
3161
|
+
function E() {
|
|
3162
|
+
var b, y, v;
|
|
3163
|
+
const f = (v = (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.httpRequests) != null ? v : {};
|
|
3164
3164
|
Object.entries(f).forEach(([k, B]) => {
|
|
3165
3165
|
if (!B || u[k] || d[k] && !F())
|
|
3166
3166
|
return;
|
|
@@ -3252,13 +3252,13 @@ function $n(e) {
|
|
|
3252
3252
|
}, []), P(() => {
|
|
3253
3253
|
e.apiKey || Z.error(
|
|
3254
3254
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3255
|
-
), c(),
|
|
3255
|
+
), c(), E(), R();
|
|
3256
3256
|
}, []), P(() => {
|
|
3257
3257
|
e.content && i(e.content);
|
|
3258
3258
|
}, [e.content]), P(() => {
|
|
3259
3259
|
c();
|
|
3260
|
-
}, [(
|
|
3261
|
-
|
|
3260
|
+
}, [(W = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : W.jsCode]), P(() => {
|
|
3261
|
+
E();
|
|
3262
3262
|
}, [(x = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : x.httpRequests]), P(() => {
|
|
3263
3263
|
R();
|
|
3264
3264
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
@@ -3276,13 +3276,13 @@ function $n(e) {
|
|
|
3276
3276
|
l,
|
|
3277
3277
|
{
|
|
3278
3278
|
ref: t,
|
|
3279
|
-
onClick: (f) =>
|
|
3280
|
-
"builder-content-id": (
|
|
3279
|
+
onClick: (f) => I(f),
|
|
3280
|
+
"builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
|
|
3281
3281
|
"builder-model": e.model,
|
|
3282
3282
|
...o(),
|
|
3283
3283
|
...e.contentWrapperProps,
|
|
3284
|
-
className:
|
|
3285
|
-
((
|
|
3284
|
+
className: An(
|
|
3285
|
+
((A = e.content) == null ? void 0 : A.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
|
|
3286
3286
|
),
|
|
3287
3287
|
children: e.children
|
|
3288
3288
|
}
|
|
@@ -3298,7 +3298,7 @@ ${Bn({
|
|
|
3298
3298
|
${Vn({
|
|
3299
3299
|
customFonts: e.customFonts
|
|
3300
3300
|
})}
|
|
3301
|
-
${
|
|
3301
|
+
${Wn(e.isNestedRender)}
|
|
3302
3302
|
`.trim()
|
|
3303
3303
|
);
|
|
3304
3304
|
return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
|
|
@@ -3332,33 +3332,33 @@ const Ln = ({
|
|
|
3332
3332
|
meta: e == null ? void 0 : e.meta
|
|
3333
3333
|
} : void 0;
|
|
3334
3334
|
function ve(e) {
|
|
3335
|
-
var c, d, m, u, g,
|
|
3335
|
+
var c, d, m, u, g, p, S;
|
|
3336
3336
|
const [t, n] = C(
|
|
3337
3337
|
() => {
|
|
3338
|
-
var
|
|
3338
|
+
var I, E;
|
|
3339
3339
|
return wn({
|
|
3340
3340
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3341
|
-
variationId: (
|
|
3341
|
+
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3342
3342
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3343
|
-
contentId: (
|
|
3343
|
+
contentId: (E = e.content) == null ? void 0 : E.id
|
|
3344
3344
|
});
|
|
3345
3345
|
}
|
|
3346
3346
|
);
|
|
3347
|
-
function i(
|
|
3348
|
-
a((
|
|
3349
|
-
...
|
|
3350
|
-
rootState:
|
|
3347
|
+
function i(I) {
|
|
3348
|
+
a((E) => ({
|
|
3349
|
+
...E,
|
|
3350
|
+
rootState: I
|
|
3351
3351
|
}));
|
|
3352
3352
|
}
|
|
3353
3353
|
const [o, l] = C(
|
|
3354
3354
|
() => [
|
|
3355
|
-
...
|
|
3355
|
+
...ye(),
|
|
3356
3356
|
...e.customComponents || []
|
|
3357
3357
|
].reduce(
|
|
3358
|
-
(
|
|
3359
|
-
...
|
|
3358
|
+
(I, { component: E, ...R }) => ({
|
|
3359
|
+
...I,
|
|
3360
3360
|
[R.name]: {
|
|
3361
|
-
component:
|
|
3361
|
+
component: E,
|
|
3362
3362
|
...fe(R)
|
|
3363
3363
|
}
|
|
3364
3364
|
}),
|
|
@@ -3380,11 +3380,11 @@ function ve(e) {
|
|
|
3380
3380
|
apiKey: e.apiKey,
|
|
3381
3381
|
apiVersion: e.apiVersion,
|
|
3382
3382
|
componentInfos: [
|
|
3383
|
-
...
|
|
3383
|
+
...ye(),
|
|
3384
3384
|
...e.customComponents || []
|
|
3385
3385
|
].reduce(
|
|
3386
|
-
(
|
|
3387
|
-
...
|
|
3386
|
+
(I, { component: E, ...R }) => ({
|
|
3387
|
+
...I,
|
|
3388
3388
|
[R.name]: fe(R)
|
|
3389
3389
|
}),
|
|
3390
3390
|
{}
|
|
@@ -3437,7 +3437,7 @@ function ve(e) {
|
|
|
3437
3437
|
/* @__PURE__ */ s(
|
|
3438
3438
|
j,
|
|
3439
3439
|
{
|
|
3440
|
-
blocks: (S = (
|
|
3440
|
+
blocks: (S = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : S.blocks,
|
|
3441
3441
|
context: r,
|
|
3442
3442
|
registeredComponents: o,
|
|
3443
3443
|
linkComponent: e.linkComponent
|
|
@@ -3481,7 +3481,7 @@ function jn(e) {
|
|
|
3481
3481
|
});
|
|
3482
3482
|
}
|
|
3483
3483
|
return P(() => {
|
|
3484
|
-
}, []), /* @__PURE__ */ V(
|
|
3484
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
3485
3485
|
!e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
|
|
3486
3486
|
re,
|
|
3487
3487
|
{
|
|
@@ -3489,7 +3489,7 @@ function jn(e) {
|
|
|
3489
3489
|
scriptStr: Cn()
|
|
3490
3490
|
}
|
|
3491
3491
|
) : null,
|
|
3492
|
-
t ? /* @__PURE__ */ V(
|
|
3492
|
+
t ? /* @__PURE__ */ V(w, { children: [
|
|
3493
3493
|
/* @__PURE__ */ s(
|
|
3494
3494
|
te,
|
|
3495
3495
|
{
|
|
@@ -3635,12 +3635,12 @@ export {
|
|
|
3635
3635
|
j as Blocks,
|
|
3636
3636
|
ce as BuilderContext,
|
|
3637
3637
|
tt as Button,
|
|
3638
|
-
|
|
3638
|
+
Nt as Columns,
|
|
3639
3639
|
jn as Content,
|
|
3640
|
-
|
|
3640
|
+
Wt as Fragment,
|
|
3641
3641
|
Ft as Image,
|
|
3642
3642
|
Lt as Section,
|
|
3643
3643
|
Un as Symbol,
|
|
3644
3644
|
Yt as Text,
|
|
3645
|
-
|
|
3645
|
+
pn as Video
|
|
3646
3646
|
};
|