@builder.io/sdk-react-nextjs 0.16.1 → 0.16.3
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 +26 -26
- package/lib/browser/blocks-exports.mjs +240 -237
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/server-entry-8a47b9f9.cjs +2 -0
- package/lib/{node/server-entry-e47775d7.js → browser/server-entry-b8ecec52.js} +152 -158
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +35 -35
- package/lib/edge/blocks-exports.mjs +300 -296
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/server-entry-8a47b9f9.cjs +2 -0
- package/lib/{browser/server-entry-8a4d2728.js → edge/server-entry-b8ecec52.js} +152 -158
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +13 -13
- package/lib/node/blocks-exports.mjs +189 -186
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-1e70fe16.cjs → node-runtime-e2a21ba1.cjs} +2 -2
- package/lib/node/{node-runtime-753c71f6.js → node-runtime-ffe74dec.js} +3 -2
- package/lib/node/server-entry-8a47b9f9.cjs +2 -0
- package/lib/{edge/server-entry-8a4d2728.js → node/server-entry-b8ecec52.js} +152 -158
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/register-component.d.ts +2 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/register-component.d.ts +2 -2
- package/lib/browser/server-entry-555ce264.cjs +0 -2
- package/lib/edge/server-entry-555ce264.cjs +0 -2
- package/lib/node/server-entry-61a8c25a.cjs +0 -2
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
var Ne = Object.defineProperty;
|
|
3
3
|
var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ee = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
-
import { jsx as l, Fragment as
|
|
6
|
-
import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z,
|
|
7
|
-
import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-
|
|
8
|
-
import { useRef as oe, useState as
|
|
5
|
+
import { jsx as l, Fragment as C, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as De, setupBrowserForEditing as je, createRegisterComponentMessage as Oe, fetchOneEntry as pe, serializeComponentInfo as me, handleABTestingSync as He } from "./server-entry-b8ecec52.js";
|
|
7
|
+
import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, fastClone as ie, set as ze } from "./node-runtime-ffe74dec.js";
|
|
8
|
+
import { useRef as oe, useState as A, useEffect as R, createContext as qe } from "react";
|
|
9
9
|
import { useRouter as Ye } from "next/navigation";
|
|
10
10
|
import "lru-cache";
|
|
11
11
|
const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Je.has(e.toLowerCase());
|
|
12
12
|
function ae(e) {
|
|
13
|
-
return /* @__PURE__ */ l(
|
|
13
|
+
return /* @__PURE__ */ l(C, { children: Qe(e.TagName) ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(C, { 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 }) }) });
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const j = () => {
|
|
16
16
|
switch (H) {
|
|
17
17
|
case "react":
|
|
18
18
|
case "reactNative":
|
|
@@ -30,7 +30,7 @@ function Ge(e) {
|
|
|
30
30
|
function t() {
|
|
31
31
|
return {
|
|
32
32
|
...e.attributes,
|
|
33
|
-
[
|
|
33
|
+
[j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
|
|
34
34
|
...e.link ? {
|
|
35
35
|
href: e.link,
|
|
36
36
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -113,7 +113,7 @@ const tt = () => {
|
|
|
113
113
|
return !1;
|
|
114
114
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
115
115
|
return e && t && !n ? (J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
116
|
-
}, nt = (e) => z() || tt() ? Ze(e) : Ue(e),
|
|
116
|
+
}, nt = (e) => z() || tt() ? Ze(e) : Ue(e), N = class N {
|
|
117
117
|
static getCacheKey(t) {
|
|
118
118
|
return JSON.stringify({
|
|
119
119
|
...t,
|
|
@@ -123,16 +123,16 @@ const tt = () => {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
static getCachedValue(t) {
|
|
126
|
-
return
|
|
126
|
+
return N.cache.get(t);
|
|
127
127
|
}
|
|
128
128
|
static setCachedValue(t, n) {
|
|
129
|
-
|
|
129
|
+
N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
|
|
130
130
|
value: n
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
ee(
|
|
135
|
-
let F =
|
|
134
|
+
ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
|
|
135
|
+
let F = N;
|
|
136
136
|
function O({
|
|
137
137
|
code: e,
|
|
138
138
|
context: t,
|
|
@@ -407,7 +407,7 @@ function ft(e) {
|
|
|
407
407
|
});
|
|
408
408
|
return K(o.hide) ? !o.hide : K(o.show) ? o.show : !0;
|
|
409
409
|
}, n = function() {
|
|
410
|
-
var
|
|
410
|
+
var v, y, p;
|
|
411
411
|
const o = Y({
|
|
412
412
|
block: e.block,
|
|
413
413
|
localState: e.context.localState,
|
|
@@ -416,14 +416,14 @@ function ft(e) {
|
|
|
416
416
|
context: e.context.context,
|
|
417
417
|
shouldEvaluateBindings: !0
|
|
418
418
|
}), a = o.responsiveStyles, c = e.context.content, r = Te(
|
|
419
|
-
((
|
|
419
|
+
((v = c == null ? void 0 : c.meta) == null ? void 0 : v.breakpoints) || {}
|
|
420
420
|
), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
|
|
421
421
|
if (!u)
|
|
422
422
|
return "";
|
|
423
423
|
const h = s ? U({
|
|
424
424
|
className: u,
|
|
425
425
|
styles: s
|
|
426
|
-
}) : "",
|
|
426
|
+
}) : "", I = d ? U({
|
|
427
427
|
className: u,
|
|
428
428
|
styles: d,
|
|
429
429
|
mediaQuery: fe(
|
|
@@ -437,29 +437,29 @@ function ft(e) {
|
|
|
437
437
|
"small",
|
|
438
438
|
r
|
|
439
439
|
)
|
|
440
|
-
}) : "",
|
|
441
|
-
let
|
|
442
|
-
if (
|
|
443
|
-
const T = ((
|
|
444
|
-
|
|
440
|
+
}) : "", b = o.animations && o.animations.find((T) => T.trigger === "hover");
|
|
441
|
+
let E = "";
|
|
442
|
+
if (b) {
|
|
443
|
+
const T = ((p = (y = b.steps) == null ? void 0 : y[1]) == null ? void 0 : p.styles) || {};
|
|
444
|
+
E = U({
|
|
445
445
|
className: `${u}:hover`,
|
|
446
446
|
styles: {
|
|
447
447
|
...T,
|
|
448
|
-
transition: `all ${
|
|
449
|
-
|
|
448
|
+
transition: `all ${b.duration}s ${re(
|
|
449
|
+
b.easing
|
|
450
450
|
)}`,
|
|
451
|
-
transitionDelay:
|
|
451
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
452
452
|
}
|
|
453
453
|
}) || "";
|
|
454
454
|
}
|
|
455
455
|
return [
|
|
456
456
|
h,
|
|
457
|
-
|
|
457
|
+
I,
|
|
458
458
|
w,
|
|
459
|
-
|
|
459
|
+
E
|
|
460
460
|
].join(" ");
|
|
461
461
|
};
|
|
462
|
-
return /* @__PURE__ */ l(
|
|
462
|
+
return /* @__PURE__ */ l(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
|
|
463
463
|
Q,
|
|
464
464
|
{
|
|
465
465
|
id: "builderio-block",
|
|
@@ -523,7 +523,7 @@ function ce({
|
|
|
523
523
|
block: e,
|
|
524
524
|
context: t
|
|
525
525
|
}),
|
|
526
|
-
[
|
|
526
|
+
[j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
527
527
|
};
|
|
528
528
|
return yt({
|
|
529
529
|
properties: n,
|
|
@@ -603,7 +603,7 @@ const pt = ({
|
|
|
603
603
|
function he(e) {
|
|
604
604
|
var n;
|
|
605
605
|
const t = e.isInteractive ? St : e.componentRef;
|
|
606
|
-
return /* @__PURE__ */ l(
|
|
606
|
+
return /* @__PURE__ */ l(C, { children: e.componentRef ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
|
|
607
607
|
t,
|
|
608
608
|
{
|
|
609
609
|
...pt({
|
|
@@ -665,22 +665,22 @@ function G(e) {
|
|
|
665
665
|
shouldEvaluateBindings: !0
|
|
666
666
|
});
|
|
667
667
|
}, o = function() {
|
|
668
|
-
var
|
|
669
|
-
return e.block.tagName === "a" || ((
|
|
668
|
+
var I;
|
|
669
|
+
return e.block.tagName === "a" || ((I = i().properties) == null ? void 0 : I.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
670
670
|
}, a = function() {
|
|
671
|
-
var w,
|
|
671
|
+
var w, b;
|
|
672
672
|
if ((w = e.block.repeat) != null && w.collection)
|
|
673
|
-
return !!((
|
|
673
|
+
return !!((b = n()) != null && b.length);
|
|
674
674
|
const h = "hide" in i() ? i().hide : !1;
|
|
675
675
|
return ("show" in i() ? i().show : !0) && !h;
|
|
676
676
|
}, c = function() {
|
|
677
|
-
var
|
|
678
|
-
return !((
|
|
677
|
+
var I, w;
|
|
678
|
+
return !((I = t()) != null && I.component) && !n() ? (w = i().children) != null ? w : [] : [];
|
|
679
679
|
}, r = function() {
|
|
680
|
-
var h,
|
|
680
|
+
var h, I, w, b;
|
|
681
681
|
return {
|
|
682
682
|
blockChildren: (h = i().children) != null ? h : [],
|
|
683
|
-
componentRef: (
|
|
683
|
+
componentRef: (I = t()) == null ? void 0 : I.component,
|
|
684
684
|
componentOptions: {
|
|
685
685
|
...Xe(i()),
|
|
686
686
|
...ut(t(), i()),
|
|
@@ -696,12 +696,12 @@ function G(e) {
|
|
|
696
696
|
registeredComponents: e.registeredComponents,
|
|
697
697
|
builderBlock: i(),
|
|
698
698
|
includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
|
|
699
|
-
isInteractive: !((
|
|
699
|
+
isInteractive: !((b = t()) != null && b.isRSC)
|
|
700
700
|
};
|
|
701
701
|
};
|
|
702
|
-
return /* @__PURE__ */ l(
|
|
702
|
+
return /* @__PURE__ */ l(C, { children: a() ? /* @__PURE__ */ P(C, { children: [
|
|
703
703
|
/* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
|
|
704
|
-
(s = t()) != null && s.noWrap ? /* @__PURE__ */ l(
|
|
704
|
+
(s = t()) != null && s.noWrap ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
|
|
705
705
|
he,
|
|
706
706
|
{
|
|
707
707
|
componentRef: r().componentRef,
|
|
@@ -714,7 +714,7 @@ function G(e) {
|
|
|
714
714
|
includeBlockProps: r().includeBlockProps,
|
|
715
715
|
isInteractive: r().isInteractive
|
|
716
716
|
}
|
|
717
|
-
) }) : /* @__PURE__ */ l(
|
|
717
|
+
) }) : /* @__PURE__ */ l(C, { children: n() ? /* @__PURE__ */ l(C, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
|
|
718
718
|
kt,
|
|
719
719
|
{
|
|
720
720
|
repeatContext: u.context,
|
|
@@ -790,7 +790,7 @@ function Ct(e) {
|
|
|
790
790
|
"*"
|
|
791
791
|
));
|
|
792
792
|
}
|
|
793
|
-
return /* @__PURE__ */ P(
|
|
793
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
794
794
|
/* @__PURE__ */ l(
|
|
795
795
|
e.BlocksWrapper,
|
|
796
796
|
{
|
|
@@ -823,7 +823,7 @@ function le(e) {
|
|
|
823
823
|
styleProp: e.styleProp,
|
|
824
824
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
825
825
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
826
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
826
|
+
children: e.blocks ? /* @__PURE__ */ l(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
827
827
|
G,
|
|
828
828
|
{
|
|
829
829
|
block: o,
|
|
@@ -838,25 +838,25 @@ function le(e) {
|
|
|
838
838
|
}
|
|
839
839
|
const It = (e) => `builder-columns ${e}-breakpoints`;
|
|
840
840
|
function wt(e) {
|
|
841
|
-
var
|
|
842
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(
|
|
843
|
-
return
|
|
844
|
-
}, a = function(
|
|
845
|
-
var
|
|
846
|
-
return ((
|
|
847
|
-
}, c = function(
|
|
848
|
-
const
|
|
849
|
-
return `calc(${
|
|
841
|
+
var b, E;
|
|
842
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(y) {
|
|
843
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
844
|
+
}, a = function(y) {
|
|
845
|
+
var p;
|
|
846
|
+
return ((p = n[y]) == null ? void 0 : p.width) || 100 / n.length;
|
|
847
|
+
}, c = function(y) {
|
|
848
|
+
const p = a(y), T = t * (n.length - 1) * (p / 100);
|
|
849
|
+
return `calc(${p}% - ${T}px)`;
|
|
850
850
|
}, r = function({
|
|
851
|
-
stackedStyle:
|
|
852
|
-
desktopStyle:
|
|
851
|
+
stackedStyle: y,
|
|
852
|
+
desktopStyle: p
|
|
853
853
|
}) {
|
|
854
|
-
return i === "tablet" ?
|
|
854
|
+
return i === "tablet" ? y : p;
|
|
855
855
|
}, s = function({
|
|
856
|
-
stackedStyle:
|
|
857
|
-
desktopStyle:
|
|
856
|
+
stackedStyle: y,
|
|
857
|
+
desktopStyle: p
|
|
858
858
|
}) {
|
|
859
|
-
return i === "never" ?
|
|
859
|
+
return i === "never" ? p : y;
|
|
860
860
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
|
|
861
861
|
return {
|
|
862
862
|
"--flex-dir": d,
|
|
@@ -865,8 +865,8 @@ function wt(e) {
|
|
|
865
865
|
desktopStyle: "row"
|
|
866
866
|
})
|
|
867
867
|
};
|
|
868
|
-
}, u = function(
|
|
869
|
-
const
|
|
868
|
+
}, u = function(y) {
|
|
869
|
+
const p = y === 0 ? 0 : t, T = c(y), W = `${p}px`, L = "100%", D = 0;
|
|
870
870
|
return {
|
|
871
871
|
...{
|
|
872
872
|
display: "flex",
|
|
@@ -874,30 +874,31 @@ function wt(e) {
|
|
|
874
874
|
alignItems: "stretch"
|
|
875
875
|
},
|
|
876
876
|
width: T,
|
|
877
|
-
["marginLeft"]:
|
|
877
|
+
["marginLeft"]: W,
|
|
878
878
|
"--column-width-mobile": s({
|
|
879
879
|
stackedStyle: L,
|
|
880
880
|
desktopStyle: T
|
|
881
881
|
}),
|
|
882
882
|
"--column-margin-left-mobile": s({
|
|
883
|
-
stackedStyle:
|
|
884
|
-
desktopStyle:
|
|
883
|
+
stackedStyle: D,
|
|
884
|
+
desktopStyle: W
|
|
885
885
|
}),
|
|
886
886
|
"--column-width-tablet": r({
|
|
887
887
|
stackedStyle: L,
|
|
888
888
|
desktopStyle: T
|
|
889
889
|
}),
|
|
890
890
|
"--column-margin-left-tablet": r({
|
|
891
|
-
stackedStyle:
|
|
892
|
-
desktopStyle:
|
|
891
|
+
stackedStyle: D,
|
|
892
|
+
desktopStyle: W
|
|
893
893
|
})
|
|
894
894
|
};
|
|
895
|
-
}, h = function(
|
|
896
|
-
var T,
|
|
895
|
+
}, h = function(y) {
|
|
896
|
+
var T, W;
|
|
897
897
|
return Te(
|
|
898
|
-
((
|
|
899
|
-
)[
|
|
900
|
-
},
|
|
898
|
+
((W = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : W.breakpoints) || {}
|
|
899
|
+
)[y].max;
|
|
900
|
+
}, I = function() {
|
|
901
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
901
902
|
return `
|
|
902
903
|
@media (max-width: ${h("medium")}px) {
|
|
903
904
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -905,7 +906,7 @@ function wt(e) {
|
|
|
905
906
|
align-items: stretch;
|
|
906
907
|
}
|
|
907
908
|
|
|
908
|
-
|
|
909
|
+
${y} {
|
|
909
910
|
width: var(--column-width-tablet) !important;
|
|
910
911
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
911
912
|
}
|
|
@@ -917,46 +918,46 @@ function wt(e) {
|
|
|
917
918
|
align-items: stretch;
|
|
918
919
|
}
|
|
919
920
|
|
|
920
|
-
|
|
921
|
+
${y} {
|
|
921
922
|
width: var(--column-width-mobile) !important;
|
|
922
923
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
923
924
|
}
|
|
924
925
|
},
|
|
925
926
|
`;
|
|
926
|
-
}, w = function(
|
|
927
|
+
}, w = function(y, p) {
|
|
927
928
|
return {
|
|
928
|
-
...
|
|
929
|
-
href:
|
|
929
|
+
...y.link ? {
|
|
930
|
+
href: y.link
|
|
930
931
|
} : {},
|
|
931
|
-
[
|
|
932
|
-
style: Ie(u(
|
|
932
|
+
[j()]: "builder-column",
|
|
933
|
+
style: Ie(u(p))
|
|
933
934
|
};
|
|
934
935
|
};
|
|
935
|
-
return /* @__PURE__ */ P(
|
|
936
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
936
937
|
/* @__PURE__ */ P(
|
|
937
938
|
"div",
|
|
938
939
|
{
|
|
939
|
-
className: It((
|
|
940
|
+
className: It((b = e.builderBlock) == null ? void 0 : b.id) + " div-2cd13691",
|
|
940
941
|
style: m(),
|
|
941
942
|
children: [
|
|
942
943
|
/* @__PURE__ */ l(
|
|
943
944
|
Q,
|
|
944
945
|
{
|
|
945
946
|
id: "builderio-columns",
|
|
946
|
-
styles:
|
|
947
|
+
styles: I(),
|
|
947
948
|
nonce: e.builderContext.nonce
|
|
948
949
|
}
|
|
949
950
|
),
|
|
950
|
-
(
|
|
951
|
+
(E = e.columns) == null ? void 0 : E.map((v, y) => /* @__PURE__ */ l(
|
|
951
952
|
ae,
|
|
952
953
|
{
|
|
953
|
-
TagName: o(
|
|
954
|
+
TagName: o(v),
|
|
954
955
|
actionAttributes: {},
|
|
955
|
-
attributes: w(
|
|
956
|
+
attributes: w(v, y),
|
|
956
957
|
children: /* @__PURE__ */ l(
|
|
957
958
|
le,
|
|
958
959
|
{
|
|
959
|
-
path: `component.options.columns.${
|
|
960
|
+
path: `component.options.columns.${y}.blocks`,
|
|
960
961
|
parent: e.builderBlock.id,
|
|
961
962
|
styleProp: {
|
|
962
963
|
flexGrow: "1"
|
|
@@ -964,16 +965,16 @@ function wt(e) {
|
|
|
964
965
|
context: e.builderContext,
|
|
965
966
|
registeredComponents: e.builderComponents,
|
|
966
967
|
linkComponent: e.builderLinkComponent,
|
|
967
|
-
blocks:
|
|
968
|
+
blocks: v.blocks
|
|
968
969
|
}
|
|
969
970
|
)
|
|
970
971
|
},
|
|
971
|
-
|
|
972
|
+
y
|
|
972
973
|
))
|
|
973
974
|
]
|
|
974
975
|
}
|
|
975
976
|
),
|
|
976
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
977
|
+
/* @__PURE__ */ l("style", { children: `.div-2cd13691 {
|
|
977
978
|
display: flex;
|
|
978
979
|
line-height: normal;
|
|
979
980
|
}` })
|
|
@@ -1021,12 +1022,14 @@ function Et(e) {
|
|
|
1021
1022
|
// images, otherwise you can supply this prop manually
|
|
1022
1023
|
!(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
|
|
1023
1024
|
return e.srcset;
|
|
1024
|
-
if (e.
|
|
1025
|
-
if (
|
|
1026
|
-
|
|
1027
|
-
|
|
1025
|
+
if (!e.noWebp) {
|
|
1026
|
+
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1027
|
+
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1028
|
+
return console.debug("Removed given srcset"), te(u);
|
|
1029
|
+
} else if (e.image && !e.srcset)
|
|
1030
|
+
return te(u);
|
|
1028
1031
|
return te(u);
|
|
1029
|
-
|
|
1032
|
+
}
|
|
1030
1033
|
}
|
|
1031
1034
|
function n() {
|
|
1032
1035
|
var m;
|
|
@@ -1042,8 +1045,8 @@ function Et(e) {
|
|
|
1042
1045
|
};
|
|
1043
1046
|
return e.aspectRatio ? m : void 0;
|
|
1044
1047
|
}
|
|
1045
|
-
return /* @__PURE__ */ P(
|
|
1046
|
-
/* @__PURE__ */ P(
|
|
1048
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
1049
|
+
/* @__PURE__ */ P(C, { children: [
|
|
1047
1050
|
/* @__PURE__ */ P("picture", { children: [
|
|
1048
1051
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1049
1052
|
/* @__PURE__ */ l(
|
|
@@ -1058,7 +1061,7 @@ function Et(e) {
|
|
|
1058
1061
|
objectFit: e.backgroundSize || "cover",
|
|
1059
1062
|
...i()
|
|
1060
1063
|
},
|
|
1061
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1064
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
|
|
1062
1065
|
src: e.image,
|
|
1063
1066
|
srcSet: t(),
|
|
1064
1067
|
sizes: e.sizes
|
|
@@ -1068,23 +1071,23 @@ function Et(e) {
|
|
|
1068
1071
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1069
1072
|
"div",
|
|
1070
1073
|
{
|
|
1071
|
-
className: "builder-image-sizer div-
|
|
1074
|
+
className: "builder-image-sizer div-56bbd606",
|
|
1072
1075
|
style: {
|
|
1073
1076
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1074
1077
|
}
|
|
1075
1078
|
}
|
|
1076
1079
|
) : null,
|
|
1077
|
-
(r = (c = e.builderBlock) == null ? void 0 : c.children) != null && r.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1078
|
-
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-
|
|
1080
|
+
(r = (c = e.builderBlock) == null ? void 0 : c.children) != null && r.length && e.fitContent ? /* @__PURE__ */ l(C, { children: e.children }) : null,
|
|
1081
|
+
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-56bbd606-2", children: e.children }) : null
|
|
1079
1082
|
] }),
|
|
1080
|
-
/* @__PURE__ */ l("style", { children: `.img-
|
|
1083
|
+
/* @__PURE__ */ l("style", { children: `.img-56bbd606 {
|
|
1081
1084
|
opacity: 1;
|
|
1082
1085
|
transition: opacity 0.2s ease-in-out;
|
|
1083
|
-
}.div-
|
|
1086
|
+
}.div-56bbd606 {
|
|
1084
1087
|
width: 100%;
|
|
1085
1088
|
pointer-events: none;
|
|
1086
1089
|
font-size: 0;
|
|
1087
|
-
}.div-
|
|
1090
|
+
}.div-56bbd606-2 {
|
|
1088
1091
|
display: flex;
|
|
1089
1092
|
flex-direction: column;
|
|
1090
1093
|
align-items: stretch;
|
|
@@ -1553,7 +1556,7 @@ function Lt(e) {
|
|
|
1553
1556
|
}
|
|
1554
1557
|
);
|
|
1555
1558
|
}
|
|
1556
|
-
const
|
|
1559
|
+
const Dt = {
|
|
1557
1560
|
name: "Symbol",
|
|
1558
1561
|
noWrap: !0,
|
|
1559
1562
|
static: !0,
|
|
@@ -1592,7 +1595,7 @@ const jt = {
|
|
|
1592
1595
|
builderComponents: !0,
|
|
1593
1596
|
builderLinkComponent: !0
|
|
1594
1597
|
}
|
|
1595
|
-
},
|
|
1598
|
+
}, jt = {
|
|
1596
1599
|
shouldReceiveBuilderProps: {
|
|
1597
1600
|
builderBlock: !1
|
|
1598
1601
|
},
|
|
@@ -1651,7 +1654,7 @@ const Ht = {
|
|
|
1651
1654
|
}]
|
|
1652
1655
|
};
|
|
1653
1656
|
function Mt(e) {
|
|
1654
|
-
const t = oe(null), [n, i] =
|
|
1657
|
+
const t = oe(null), [n, i] = A(() => []), [o, a] = A(() => []);
|
|
1655
1658
|
return R(() => {
|
|
1656
1659
|
var r;
|
|
1657
1660
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -1705,7 +1708,7 @@ const Ut = {
|
|
|
1705
1708
|
}]
|
|
1706
1709
|
}, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
|
|
1707
1710
|
function zt(e) {
|
|
1708
|
-
const t = oe(null), [n, i] =
|
|
1711
|
+
const t = oe(null), [n, i] = A(() => []), [o, a] = A(() => []), [c, r] = A(() => !1);
|
|
1709
1712
|
function s() {
|
|
1710
1713
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1711
1714
|
return;
|
|
@@ -1983,10 +1986,10 @@ const Gt = () => [{
|
|
|
1983
1986
|
...Ft
|
|
1984
1987
|
}, {
|
|
1985
1988
|
component: Rn,
|
|
1986
|
-
...
|
|
1989
|
+
...Dt
|
|
1987
1990
|
}, {
|
|
1988
1991
|
component: Ot,
|
|
1989
|
-
...
|
|
1992
|
+
...jt
|
|
1990
1993
|
}, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1991
1994
|
function getAndSetVariantId() {
|
|
1992
1995
|
function setCookie(name, value, days) {
|
|
@@ -2263,29 +2266,29 @@ font-weight: ${r};
|
|
|
2263
2266
|
}
|
|
2264
2267
|
`, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
|
|
2265
2268
|
function pn(e) {
|
|
2266
|
-
var
|
|
2269
|
+
var W, L, D, X, Z, se, de;
|
|
2267
2270
|
const t = oe(null);
|
|
2268
2271
|
function n(g) {
|
|
2269
|
-
var
|
|
2272
|
+
var x, S;
|
|
2270
2273
|
const f = {
|
|
2271
2274
|
...e.builderContextSignal.rootState,
|
|
2272
2275
|
...g
|
|
2273
2276
|
};
|
|
2274
|
-
e.builderContextSignal.rootSetState ? (
|
|
2277
|
+
e.builderContextSignal.rootSetState ? (S = (x = e.builderContextSignal).rootSetState) == null || S.call(x, f) : e.builderContextSignal.rootState = f;
|
|
2275
2278
|
}
|
|
2276
2279
|
function i(g) {
|
|
2277
|
-
var
|
|
2280
|
+
var x, S, k, B, M;
|
|
2278
2281
|
const f = {
|
|
2279
2282
|
...e.builderContextSignal.content,
|
|
2280
2283
|
...g,
|
|
2281
2284
|
data: {
|
|
2282
|
-
...(
|
|
2285
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
|
|
2283
2286
|
...g == null ? void 0 : g.data
|
|
2284
2287
|
},
|
|
2285
2288
|
meta: {
|
|
2286
|
-
...(
|
|
2289
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
|
|
2287
2290
|
...g == null ? void 0 : g.meta,
|
|
2288
|
-
breakpoints: ((
|
|
2291
|
+
breakpoints: ((k = g == null ? void 0 : g.meta) == null ? void 0 : k.breakpoints) || ((M = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : M.breakpoints)
|
|
2289
2292
|
}
|
|
2290
2293
|
};
|
|
2291
2294
|
dn({
|
|
@@ -2301,7 +2304,7 @@ function pn(e) {
|
|
|
2301
2304
|
"aria-hidden": !0
|
|
2302
2305
|
};
|
|
2303
2306
|
}
|
|
2304
|
-
const [a, c] =
|
|
2307
|
+
const [a, c] = A(
|
|
2305
2308
|
() => e.contentWrapper || "div"
|
|
2306
2309
|
);
|
|
2307
2310
|
function r(g) {
|
|
@@ -2310,11 +2313,11 @@ function pn(e) {
|
|
|
2310
2313
|
trustedHosts: e.trustedHosts,
|
|
2311
2314
|
callbacks: {
|
|
2312
2315
|
configureSdk: (f) => {
|
|
2313
|
-
var
|
|
2314
|
-
const { breakpoints:
|
|
2315
|
-
!
|
|
2316
|
+
var k;
|
|
2317
|
+
const { breakpoints: x, contentId: S } = f;
|
|
2318
|
+
!S || S !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || x && i({
|
|
2316
2319
|
meta: {
|
|
2317
|
-
breakpoints:
|
|
2320
|
+
breakpoints: x
|
|
2318
2321
|
}
|
|
2319
2322
|
});
|
|
2320
2323
|
},
|
|
@@ -2328,8 +2331,8 @@ function pn(e) {
|
|
|
2328
2331
|
})(g);
|
|
2329
2332
|
}
|
|
2330
2333
|
function s() {
|
|
2331
|
-
var f,
|
|
2332
|
-
const g = (
|
|
2334
|
+
var f, x;
|
|
2335
|
+
const g = (x = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : x.jsCode;
|
|
2333
2336
|
g && O({
|
|
2334
2337
|
code: g,
|
|
2335
2338
|
context: e.context || {},
|
|
@@ -2342,31 +2345,31 @@ function pn(e) {
|
|
|
2342
2345
|
enableCache: !1
|
|
2343
2346
|
});
|
|
2344
2347
|
}
|
|
2345
|
-
const [d, m] =
|
|
2346
|
-
function
|
|
2347
|
-
var f,
|
|
2348
|
+
const [d, m] = A(() => ({})), [u, h] = A(() => ({})), [I, w] = A(() => !1);
|
|
2349
|
+
function b(g) {
|
|
2350
|
+
var f, x;
|
|
2348
2351
|
if (e.builderContextSignal.content) {
|
|
2349
|
-
const
|
|
2352
|
+
const S = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
|
|
2350
2353
|
ue({
|
|
2351
2354
|
type: "click",
|
|
2352
2355
|
canTrack: q(e.canTrack),
|
|
2353
|
-
contentId:
|
|
2356
|
+
contentId: k,
|
|
2354
2357
|
apiKey: e.apiKey,
|
|
2355
|
-
variationId:
|
|
2358
|
+
variationId: S !== k ? S : void 0,
|
|
2356
2359
|
...sn(g),
|
|
2357
|
-
unique: !
|
|
2360
|
+
unique: !I
|
|
2358
2361
|
});
|
|
2359
2362
|
}
|
|
2360
|
-
|
|
2363
|
+
I || w(!0);
|
|
2361
2364
|
}
|
|
2362
|
-
function
|
|
2363
|
-
var f,
|
|
2364
|
-
const g = (
|
|
2365
|
-
Object.entries(g).forEach(([
|
|
2366
|
-
if (!
|
|
2365
|
+
function E() {
|
|
2366
|
+
var f, x, S;
|
|
2367
|
+
const g = (S = (x = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : x.httpRequests) != null ? S : {};
|
|
2368
|
+
Object.entries(g).forEach(([k, B]) => {
|
|
2369
|
+
if (!B || u[k] || d[k] && !V())
|
|
2367
2370
|
return;
|
|
2368
|
-
u[
|
|
2369
|
-
const M =
|
|
2371
|
+
u[k] = !0;
|
|
2372
|
+
const M = B.replace(
|
|
2370
2373
|
/{{([^}]+)}}/g,
|
|
2371
2374
|
($, We) => String(
|
|
2372
2375
|
O({
|
|
@@ -2381,16 +2384,16 @@ function pn(e) {
|
|
|
2381
2384
|
);
|
|
2382
2385
|
Le(M).then(($) => $.json()).then(($) => {
|
|
2383
2386
|
n({
|
|
2384
|
-
[
|
|
2385
|
-
}), d[
|
|
2387
|
+
[k]: $
|
|
2388
|
+
}), d[k] = !0;
|
|
2386
2389
|
}).catch(($) => {
|
|
2387
|
-
console.error("error fetching dynamic data",
|
|
2390
|
+
console.error("error fetching dynamic data", B, $);
|
|
2388
2391
|
}).finally(() => {
|
|
2389
|
-
u[
|
|
2392
|
+
u[k] = !1;
|
|
2390
2393
|
});
|
|
2391
2394
|
});
|
|
2392
2395
|
}
|
|
2393
|
-
function
|
|
2396
|
+
function v() {
|
|
2394
2397
|
V() && window.dispatchEvent(
|
|
2395
2398
|
new CustomEvent(
|
|
2396
2399
|
"builder:component:stateChange",
|
|
@@ -2405,8 +2408,8 @@ function pn(e) {
|
|
|
2405
2408
|
)
|
|
2406
2409
|
);
|
|
2407
2410
|
}
|
|
2408
|
-
function
|
|
2409
|
-
window.addEventListener("message", r),
|
|
2411
|
+
function y(g) {
|
|
2412
|
+
window.addEventListener("message", r), De(), je({
|
|
2410
2413
|
...e.locale ? {
|
|
2411
2414
|
locale: e.locale
|
|
2412
2415
|
} : {},
|
|
@@ -2419,24 +2422,24 @@ function pn(e) {
|
|
|
2419
2422
|
}), Object.values(
|
|
2420
2423
|
e.builderContextSignal.componentInfos
|
|
2421
2424
|
).forEach((f) => {
|
|
2422
|
-
var
|
|
2423
|
-
const
|
|
2424
|
-
(
|
|
2425
|
+
var S;
|
|
2426
|
+
const x = Oe(f);
|
|
2427
|
+
(S = window.parent) == null || S.postMessage(x, "*");
|
|
2425
2428
|
}), window.addEventListener(
|
|
2426
2429
|
"builder:component:stateChangeListenerActivated",
|
|
2427
|
-
|
|
2430
|
+
v
|
|
2428
2431
|
);
|
|
2429
2432
|
}
|
|
2430
|
-
function
|
|
2431
|
-
const f = new URL(location.href).searchParams,
|
|
2432
|
-
`builder.overrides.${
|
|
2433
|
-
),
|
|
2434
|
-
|
|
2433
|
+
function p(g) {
|
|
2434
|
+
const f = new URL(location.href).searchParams, x = f.get("builder.preview"), S = f.get(
|
|
2435
|
+
`builder.overrides.${x}`
|
|
2436
|
+
), k = f.get("apiKey") || f.get("builder.space");
|
|
2437
|
+
x === e.model && k === e.apiKey && (!e.content || S === e.content.id) && pe({
|
|
2435
2438
|
model: e.model,
|
|
2436
2439
|
apiKey: e.apiKey,
|
|
2437
2440
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2438
|
-
}).then((
|
|
2439
|
-
|
|
2441
|
+
}).then((B) => {
|
|
2442
|
+
B && i(B);
|
|
2440
2443
|
});
|
|
2441
2444
|
}
|
|
2442
2445
|
const T = Ye();
|
|
@@ -2444,37 +2447,37 @@ function pn(e) {
|
|
|
2444
2447
|
var g;
|
|
2445
2448
|
return (g = t.current) == null || g.addEventListener(
|
|
2446
2449
|
"initeditingbldr",
|
|
2447
|
-
|
|
2450
|
+
y
|
|
2448
2451
|
), () => {
|
|
2449
2452
|
var f;
|
|
2450
2453
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2451
2454
|
"initeditingbldr",
|
|
2452
|
-
|
|
2455
|
+
y
|
|
2453
2456
|
);
|
|
2454
2457
|
};
|
|
2455
2458
|
}, []), R(() => {
|
|
2456
2459
|
var g;
|
|
2457
2460
|
return (g = t.current) == null || g.addEventListener(
|
|
2458
2461
|
"initpreviewingbldr",
|
|
2459
|
-
|
|
2462
|
+
p
|
|
2460
2463
|
), () => {
|
|
2461
2464
|
var f;
|
|
2462
2465
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2463
2466
|
"initpreviewingbldr",
|
|
2464
|
-
|
|
2467
|
+
p
|
|
2465
2468
|
);
|
|
2466
2469
|
};
|
|
2467
2470
|
}, []), R(() => {
|
|
2468
2471
|
var g, f;
|
|
2469
2472
|
if (z()) {
|
|
2470
2473
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2471
|
-
const
|
|
2474
|
+
const S = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, k = (f = e.builderContextSignal.content) == null ? void 0 : f.id, B = e.apiKey;
|
|
2472
2475
|
ue({
|
|
2473
2476
|
type: "impression",
|
|
2474
2477
|
canTrack: !0,
|
|
2475
|
-
contentId:
|
|
2476
|
-
apiKey:
|
|
2477
|
-
variationId:
|
|
2478
|
+
contentId: k,
|
|
2479
|
+
apiKey: B,
|
|
2480
|
+
variationId: S !== k ? S : void 0
|
|
2478
2481
|
});
|
|
2479
2482
|
}
|
|
2480
2483
|
$e() && V();
|
|
@@ -2482,14 +2485,14 @@ function pn(e) {
|
|
|
2482
2485
|
}, []), R(() => {
|
|
2483
2486
|
e.apiKey || J.error(
|
|
2484
2487
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2485
|
-
), s(),
|
|
2488
|
+
), s(), E(), v();
|
|
2486
2489
|
}, []), R(() => {
|
|
2487
2490
|
}, [e.content]), R(() => {
|
|
2488
2491
|
s();
|
|
2489
|
-
}, [(L = (
|
|
2490
|
-
|
|
2491
|
-
}, [(X = (
|
|
2492
|
-
|
|
2492
|
+
}, [(L = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : L.jsCode]), R(() => {
|
|
2493
|
+
E();
|
|
2494
|
+
}, [(X = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2495
|
+
v();
|
|
2493
2496
|
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2494
2497
|
e.data && n(e.data);
|
|
2495
2498
|
}, [e.data]), R(() => {
|
|
@@ -2499,13 +2502,13 @@ function pn(e) {
|
|
|
2499
2502
|
}, [e.locale]), R(() => () => {
|
|
2500
2503
|
z() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
2501
2504
|
"builder:component:stateChangeListenerActivated",
|
|
2502
|
-
|
|
2505
|
+
v
|
|
2503
2506
|
));
|
|
2504
2507
|
}, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
2505
2508
|
a,
|
|
2506
2509
|
{
|
|
2507
2510
|
ref: t,
|
|
2508
|
-
onClick: (g) =>
|
|
2511
|
+
onClick: (g) => b(g),
|
|
2509
2512
|
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2510
2513
|
"builder-model": e.model,
|
|
2511
2514
|
...o(),
|
|
@@ -2566,7 +2569,7 @@ const Cn = ({
|
|
|
2566
2569
|
meta: e == null ? void 0 : e.meta
|
|
2567
2570
|
} : void 0;
|
|
2568
2571
|
function Se(e) {
|
|
2569
|
-
var o, a, c, r, s, d, m, u, h;
|
|
2572
|
+
var o, a, c, r, s, d, m, u, h, I, w;
|
|
2570
2573
|
const t = an({
|
|
2571
2574
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2572
2575
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
@@ -2574,13 +2577,13 @@ function Se(e) {
|
|
|
2574
2577
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
2575
2578
|
}), n = [
|
|
2576
2579
|
...be(),
|
|
2577
|
-
...e.customComponents || []
|
|
2580
|
+
...((c = e.customComponents) == null ? void 0 : c.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
|
|
2578
2581
|
].reduce(
|
|
2579
|
-
(
|
|
2580
|
-
...
|
|
2581
|
-
[
|
|
2582
|
-
component:
|
|
2583
|
-
...me(
|
|
2582
|
+
(b, { component: E, ...v }) => ({
|
|
2583
|
+
...b,
|
|
2584
|
+
[v.name]: {
|
|
2585
|
+
component: E,
|
|
2586
|
+
...me(v)
|
|
2584
2587
|
}
|
|
2585
2588
|
}),
|
|
2586
2589
|
{}
|
|
@@ -2602,11 +2605,11 @@ function Se(e) {
|
|
|
2602
2605
|
apiVersion: e.apiVersion,
|
|
2603
2606
|
componentInfos: [
|
|
2604
2607
|
...be(),
|
|
2605
|
-
...e.customComponents || []
|
|
2608
|
+
...((r = e.customComponents) == null ? void 0 : r.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
|
|
2606
2609
|
].reduce(
|
|
2607
|
-
(
|
|
2608
|
-
...
|
|
2609
|
-
[
|
|
2610
|
+
(b, { component: E, ...v }) => ({
|
|
2611
|
+
...b,
|
|
2612
|
+
[v.name]: me(v)
|
|
2610
2613
|
}),
|
|
2611
2614
|
{}
|
|
2612
2615
|
),
|
|
@@ -2646,15 +2649,15 @@ function Se(e) {
|
|
|
2646
2649
|
{
|
|
2647
2650
|
nonce: e.nonce || "",
|
|
2648
2651
|
isNestedRender: e.isNestedRender,
|
|
2649
|
-
contentId: (
|
|
2650
|
-
cssCode: (
|
|
2651
|
-
customFonts: (
|
|
2652
|
+
contentId: (s = i.content) == null ? void 0 : s.id,
|
|
2653
|
+
cssCode: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
2654
|
+
customFonts: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.customFonts
|
|
2652
2655
|
}
|
|
2653
2656
|
),
|
|
2654
2657
|
/* @__PURE__ */ l(
|
|
2655
2658
|
le,
|
|
2656
2659
|
{
|
|
2657
|
-
blocks: (
|
|
2660
|
+
blocks: (w = (I = i.content) == null ? void 0 : I.data) == null ? void 0 : w.blocks,
|
|
2658
2661
|
context: i,
|
|
2659
2662
|
registeredComponents: n,
|
|
2660
2663
|
linkComponent: e.linkComponent
|
|
@@ -2690,7 +2693,7 @@ function wn(e) {
|
|
|
2690
2693
|
canTrack: q(e.canTrack)
|
|
2691
2694
|
});
|
|
2692
2695
|
};
|
|
2693
|
-
return /* @__PURE__ */ P(
|
|
2696
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
2694
2697
|
!e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ l(
|
|
2695
2698
|
ne,
|
|
2696
2699
|
{
|
|
@@ -2699,7 +2702,7 @@ function wn(e) {
|
|
|
2699
2702
|
nonce: e.nonce || ""
|
|
2700
2703
|
}
|
|
2701
2704
|
) : null,
|
|
2702
|
-
t ? /* @__PURE__ */ P(
|
|
2705
|
+
t ? /* @__PURE__ */ P(C, { children: [
|
|
2703
2706
|
/* @__PURE__ */ l(
|
|
2704
2707
|
Q,
|
|
2705
2708
|
{
|
|
@@ -2798,7 +2801,7 @@ async function Rn(e) {
|
|
|
2798
2801
|
}, i = function() {
|
|
2799
2802
|
var u, h;
|
|
2800
2803
|
return [
|
|
2801
|
-
e.attributes[
|
|
2804
|
+
e.attributes[j()],
|
|
2802
2805
|
"builder-symbol",
|
|
2803
2806
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
2804
2807
|
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|