@builder.io/sdk-react 0.12.4 → 0.12.5
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/index.cjs +22 -22
- package/lib/browser/index.mjs +415 -405
- package/lib/{edge/server-entry-0e4f0637.js → browser/server-entry-b9bdd327.js} +4 -4
- package/lib/browser/{server-entry-bcb725be.cjs → server-entry-fc715776.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +27 -27
- package/lib/edge/index.mjs +460 -449
- package/lib/{browser/server-entry-0e4f0637.js → edge/server-entry-57d4ae22.js} +3 -3
- package/lib/edge/{server-entry-bcb725be.cjs → server-entry-fc715776.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +6 -6
- package/lib/node/index.mjs +161 -150
- package/lib/node/{server-entry-9aa733e8.js → server-entry-0457c4c8.js} +2 -2
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
package/lib/node/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useState, useContext, useRef, useEffect, createElement } from "react";
|
|
4
|
-
import { T as TARGET, i as isEditing, j as isBrowser, k as getUserAttributes, l as fastClone, m as
|
|
5
|
-
import { _ as H, h as K, f as z, g as q, e as Y, d as G, s as J, t as Q } from "./server-entry-
|
|
4
|
+
import { T as TARGET, i as isEditing, j as isBrowser, k as getUserAttributes, l as fastClone, m as checkIsDefined, n as logger, r as register, o as getDefaultCanTrack, p as _track, a as isPreviewing, c as createRegisterComponentMessage, b as fetchOneEntry, q as fetch$1, u as components, v as serializeComponentInfo, w as handleABTestingSync } from "./server-entry-0457c4c8.js";
|
|
5
|
+
import { _ as H, h as K, f as z, g as q, e as Y, d as G, s as J, t as Q } from "./server-entry-0457c4c8.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase());
|
|
8
8
|
function DynamicRenderer(e) {
|
|
@@ -95,13 +95,13 @@ const getFunctionArguments = ({
|
|
|
95
95
|
rootSetState: r,
|
|
96
96
|
rootState: a
|
|
97
97
|
}) => {
|
|
98
|
-
const
|
|
98
|
+
const s = getFunctionArguments({
|
|
99
99
|
builder: t,
|
|
100
100
|
context: n,
|
|
101
101
|
event: i,
|
|
102
102
|
state: flattenState(a, o, r)
|
|
103
103
|
});
|
|
104
|
-
return new Function(...
|
|
104
|
+
return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
|
|
105
105
|
};
|
|
106
106
|
function flattenState(e, t, n) {
|
|
107
107
|
if (e === t)
|
|
@@ -188,15 +188,15 @@ output;
|
|
|
188
188
|
rootSetState: r,
|
|
189
189
|
rootState: a
|
|
190
190
|
}) => {
|
|
191
|
-
const
|
|
191
|
+
const s = fastClone({
|
|
192
192
|
...a,
|
|
193
193
|
...o
|
|
194
194
|
}), c = getFunctionArguments({
|
|
195
195
|
builder: t,
|
|
196
196
|
context: n,
|
|
197
197
|
event: i,
|
|
198
|
-
state:
|
|
199
|
-
}),
|
|
198
|
+
state: s
|
|
199
|
+
}), l = getIsolateContext(), d = l.global;
|
|
200
200
|
d.setSync("global", d.derefInto()), d.setSync("log", function(...f) {
|
|
201
201
|
console.log(...f);
|
|
202
202
|
}), d.setSync(BUILDER_SET_STATE_NAME, function(f, h) {
|
|
@@ -214,13 +214,24 @@ output;
|
|
|
214
214
|
const g = processCode({
|
|
215
215
|
code: e,
|
|
216
216
|
args: c
|
|
217
|
-
}), x =
|
|
217
|
+
}), x = l.evalSync(g);
|
|
218
218
|
try {
|
|
219
219
|
return JSON.parse(x);
|
|
220
220
|
} catch {
|
|
221
221
|
return x;
|
|
222
222
|
}
|
|
223
|
-
}
|
|
223
|
+
};
|
|
224
|
+
function isNodeRuntime() {
|
|
225
|
+
var e;
|
|
226
|
+
return typeof process != "undefined" && checkIsDefined((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
227
|
+
}
|
|
228
|
+
const shouldForceBrowserRuntimeInNode = () => {
|
|
229
|
+
var i;
|
|
230
|
+
if (!isNodeRuntime())
|
|
231
|
+
return !1;
|
|
232
|
+
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
233
|
+
return e && t && !n ? (logger.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;
|
|
234
|
+
}, chooseBrowserOrServerEval = (e) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(e) : runInNode(e);
|
|
224
235
|
function evaluate({
|
|
225
236
|
code: e,
|
|
226
237
|
context: t,
|
|
@@ -234,7 +245,7 @@ function evaluate({
|
|
|
234
245
|
logger.warn("Skipping evaluation of empty code block.");
|
|
235
246
|
return;
|
|
236
247
|
}
|
|
237
|
-
const
|
|
248
|
+
const s = {
|
|
238
249
|
code: parseCode(e, {
|
|
239
250
|
isExpression: a
|
|
240
251
|
}),
|
|
@@ -246,7 +257,7 @@ function evaluate({
|
|
|
246
257
|
localState: n
|
|
247
258
|
};
|
|
248
259
|
try {
|
|
249
|
-
return chooseBrowserOrServerEval(
|
|
260
|
+
return chooseBrowserOrServerEval(s);
|
|
250
261
|
} catch (c) {
|
|
251
262
|
logger.error("Failed code evaluation: " + c.message, {
|
|
252
263
|
code: e
|
|
@@ -275,15 +286,15 @@ const evaluateBindings = ({
|
|
|
275
286
|
...r.actions
|
|
276
287
|
}
|
|
277
288
|
};
|
|
278
|
-
for (const
|
|
279
|
-
const c = e.bindings[
|
|
289
|
+
for (const s in e.bindings) {
|
|
290
|
+
const c = e.bindings[s], l = evaluate({
|
|
280
291
|
code: c,
|
|
281
292
|
localState: n,
|
|
282
293
|
rootState: i,
|
|
283
294
|
rootSetState: o,
|
|
284
295
|
context: t
|
|
285
296
|
});
|
|
286
|
-
set(a,
|
|
297
|
+
set(a, s, l);
|
|
287
298
|
}
|
|
288
299
|
return a;
|
|
289
300
|
};
|
|
@@ -346,15 +357,15 @@ const getComponent = ({
|
|
|
346
357
|
if (!Array.isArray(o))
|
|
347
358
|
return;
|
|
348
359
|
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
349
|
-
return o.map((c,
|
|
360
|
+
return o.map((c, l) => ({
|
|
350
361
|
context: {
|
|
351
362
|
...t,
|
|
352
363
|
localState: {
|
|
353
364
|
...t.localState,
|
|
354
|
-
$index:
|
|
365
|
+
$index: l,
|
|
355
366
|
$item: c,
|
|
356
367
|
[a]: c,
|
|
357
|
-
[`$${a}Index`]:
|
|
368
|
+
[`$${a}Index`]: l
|
|
358
369
|
}
|
|
359
370
|
},
|
|
360
371
|
block: i
|
|
@@ -443,12 +454,12 @@ function BlockStyles(e) {
|
|
|
443
454
|
shouldEvaluateBindings: !0
|
|
444
455
|
}), o = i.responsiveStyles, r = e.context.content, a = getSizesForBreakpoints(
|
|
445
456
|
((h = r == null ? void 0 : r.meta) == null ? void 0 : h.breakpoints) || {}
|
|
446
|
-
),
|
|
457
|
+
), s = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, l = o == null ? void 0 : o.small, d = i.id;
|
|
447
458
|
if (!d)
|
|
448
459
|
return "";
|
|
449
|
-
const g =
|
|
460
|
+
const g = s ? createCssClass({
|
|
450
461
|
className: d,
|
|
451
|
-
styles:
|
|
462
|
+
styles: s
|
|
452
463
|
}) : "", x = c ? createCssClass({
|
|
453
464
|
className: d,
|
|
454
465
|
styles: c,
|
|
@@ -456,9 +467,9 @@ function BlockStyles(e) {
|
|
|
456
467
|
"medium",
|
|
457
468
|
a
|
|
458
469
|
)
|
|
459
|
-
}) : "", f =
|
|
470
|
+
}) : "", f = l ? createCssClass({
|
|
460
471
|
className: d,
|
|
461
|
-
styles:
|
|
472
|
+
styles: l,
|
|
462
473
|
mediaQuery: getMaxWidthQueryForSize(
|
|
463
474
|
"small",
|
|
464
475
|
a
|
|
@@ -608,7 +619,7 @@ const getWrapperProps = ({
|
|
|
608
619
|
isInteractive: r,
|
|
609
620
|
contextValue: a
|
|
610
621
|
}) => {
|
|
611
|
-
const
|
|
622
|
+
const s = {
|
|
612
623
|
...e,
|
|
613
624
|
/**
|
|
614
625
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -627,7 +638,7 @@ const getWrapperProps = ({
|
|
|
627
638
|
context: n,
|
|
628
639
|
wrapperProps: e,
|
|
629
640
|
includeBlockProps: o
|
|
630
|
-
} :
|
|
641
|
+
} : s;
|
|
631
642
|
};
|
|
632
643
|
function ComponentRef(e) {
|
|
633
644
|
var i;
|
|
@@ -713,8 +724,8 @@ function Block(e) {
|
|
|
713
724
|
var h, y;
|
|
714
725
|
return !((h = t == null ? void 0 : t()) != null && h.component) && !n() ? (y = i().children) != null ? y : [] : [];
|
|
715
726
|
}
|
|
716
|
-
function
|
|
717
|
-
var f, h, y, I, E,
|
|
727
|
+
function s() {
|
|
728
|
+
var f, h, y, I, E, v, C, T, w;
|
|
718
729
|
return {
|
|
719
730
|
blockChildren: (f = i().children) != null ? f : [],
|
|
720
731
|
componentRef: (h = t == null ? void 0 : t()) == null ? void 0 : h.component,
|
|
@@ -724,7 +735,7 @@ function Block(e) {
|
|
|
724
735
|
...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Columns" ? {
|
|
725
736
|
builderLinkComponent: e.linkComponent
|
|
726
737
|
} : {},
|
|
727
|
-
...((
|
|
738
|
+
...((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Columns" ? {
|
|
728
739
|
builderComponents: e.registeredComponents
|
|
729
740
|
} : {}
|
|
730
741
|
},
|
|
@@ -736,21 +747,21 @@ function Block(e) {
|
|
|
736
747
|
isInteractive: !((w = t == null ? void 0 : t()) != null && w.isRSC)
|
|
737
748
|
};
|
|
738
749
|
}
|
|
739
|
-
const [c,
|
|
750
|
+
const [c, l] = useState(() => e.context);
|
|
740
751
|
return /* @__PURE__ */ jsx(Fragment, { children: r() ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
741
752
|
/* @__PURE__ */ jsx(BlockStyles, { block: e.block, context: e.context }),
|
|
742
753
|
(d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
743
754
|
ComponentRef,
|
|
744
755
|
{
|
|
745
|
-
componentRef:
|
|
746
|
-
componentOptions:
|
|
747
|
-
blockChildren:
|
|
748
|
-
context:
|
|
749
|
-
registeredComponents:
|
|
750
|
-
linkComponent:
|
|
751
|
-
builderBlock:
|
|
752
|
-
includeBlockProps:
|
|
753
|
-
isInteractive:
|
|
756
|
+
componentRef: s().componentRef,
|
|
757
|
+
componentOptions: s().componentOptions,
|
|
758
|
+
blockChildren: s().blockChildren,
|
|
759
|
+
context: s().context,
|
|
760
|
+
registeredComponents: s().registeredComponents,
|
|
761
|
+
linkComponent: s().linkComponent,
|
|
762
|
+
builderBlock: s().builderBlock,
|
|
763
|
+
includeBlockProps: s().includeBlockProps,
|
|
764
|
+
isInteractive: s().isInteractive
|
|
754
765
|
}
|
|
755
766
|
) }) : /* @__PURE__ */ jsx(Fragment, { children: n() ? /* @__PURE__ */ jsx(Fragment, { children: (x = n()) == null ? void 0 : x.map((f, h) => /* @__PURE__ */ jsx(
|
|
756
767
|
RepeatedBlock,
|
|
@@ -772,15 +783,15 @@ function Block(e) {
|
|
|
772
783
|
/* @__PURE__ */ jsx(
|
|
773
784
|
ComponentRef,
|
|
774
785
|
{
|
|
775
|
-
componentRef:
|
|
776
|
-
componentOptions:
|
|
777
|
-
blockChildren:
|
|
778
|
-
context:
|
|
779
|
-
registeredComponents:
|
|
780
|
-
linkComponent:
|
|
781
|
-
builderBlock:
|
|
782
|
-
includeBlockProps:
|
|
783
|
-
isInteractive:
|
|
786
|
+
componentRef: s().componentRef,
|
|
787
|
+
componentOptions: s().componentOptions,
|
|
788
|
+
blockChildren: s().blockChildren,
|
|
789
|
+
context: s().context,
|
|
790
|
+
registeredComponents: s().registeredComponents,
|
|
791
|
+
linkComponent: s().linkComponent,
|
|
792
|
+
builderBlock: s().builderBlock,
|
|
793
|
+
includeBlockProps: s().includeBlockProps,
|
|
794
|
+
isInteractive: s().isInteractive
|
|
784
795
|
}
|
|
785
796
|
),
|
|
786
797
|
(g = a()) == null ? void 0 : g.map((f) => /* @__PURE__ */ jsx(
|
|
@@ -883,25 +894,25 @@ function Columns(e) {
|
|
|
883
894
|
), [i, o] = useState(() => e.columns || []), [r, a] = useState(
|
|
884
895
|
() => e.stackColumnsAt || "tablet"
|
|
885
896
|
);
|
|
886
|
-
function
|
|
887
|
-
var
|
|
888
|
-
return ((
|
|
897
|
+
function s(v) {
|
|
898
|
+
var C;
|
|
899
|
+
return ((C = i[v]) == null ? void 0 : C.width) || 100 / i.length;
|
|
889
900
|
}
|
|
890
|
-
function c(
|
|
891
|
-
const
|
|
892
|
-
return `calc(${
|
|
901
|
+
function c(v) {
|
|
902
|
+
const C = t * (i.length - 1) / i.length;
|
|
903
|
+
return `calc(${s(v)}% - ${C}px)`;
|
|
893
904
|
}
|
|
894
|
-
function
|
|
895
|
-
stackedStyle:
|
|
896
|
-
desktopStyle:
|
|
905
|
+
function l({
|
|
906
|
+
stackedStyle: v,
|
|
907
|
+
desktopStyle: C
|
|
897
908
|
}) {
|
|
898
|
-
return r === "tablet" ?
|
|
909
|
+
return r === "tablet" ? v : C;
|
|
899
910
|
}
|
|
900
911
|
function d({
|
|
901
|
-
stackedStyle:
|
|
902
|
-
desktopStyle:
|
|
912
|
+
stackedStyle: v,
|
|
913
|
+
desktopStyle: C
|
|
903
914
|
}) {
|
|
904
|
-
return r === "never" ?
|
|
915
|
+
return r === "never" ? C : v;
|
|
905
916
|
}
|
|
906
917
|
const [g, x] = useState(
|
|
907
918
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -909,14 +920,14 @@ function Columns(e) {
|
|
|
909
920
|
function f() {
|
|
910
921
|
return {
|
|
911
922
|
"--flex-dir": g,
|
|
912
|
-
"--flex-dir-tablet":
|
|
923
|
+
"--flex-dir-tablet": l({
|
|
913
924
|
stackedStyle: g,
|
|
914
925
|
desktopStyle: "row"
|
|
915
926
|
})
|
|
916
927
|
};
|
|
917
928
|
}
|
|
918
|
-
function h(
|
|
919
|
-
const
|
|
929
|
+
function h(v) {
|
|
930
|
+
const C = v === 0 ? 0 : t, T = c(v), w = `${C}px`, R = "100%", j = 0;
|
|
920
931
|
return {
|
|
921
932
|
...{
|
|
922
933
|
display: "flex",
|
|
@@ -933,21 +944,21 @@ function Columns(e) {
|
|
|
933
944
|
stackedStyle: j,
|
|
934
945
|
desktopStyle: w
|
|
935
946
|
}),
|
|
936
|
-
"--column-width-tablet":
|
|
947
|
+
"--column-width-tablet": l({
|
|
937
948
|
stackedStyle: R,
|
|
938
949
|
desktopStyle: T
|
|
939
950
|
}),
|
|
940
|
-
"--column-margin-left-tablet":
|
|
951
|
+
"--column-margin-left-tablet": l({
|
|
941
952
|
stackedStyle: j,
|
|
942
953
|
desktopStyle: w
|
|
943
954
|
})
|
|
944
955
|
};
|
|
945
956
|
}
|
|
946
|
-
function y(
|
|
957
|
+
function y(v) {
|
|
947
958
|
var T, w;
|
|
948
959
|
return getSizesForBreakpoints(
|
|
949
960
|
((w = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || {}
|
|
950
|
-
)[
|
|
961
|
+
)[v].max;
|
|
951
962
|
}
|
|
952
963
|
function I() {
|
|
953
964
|
return `
|
|
@@ -984,22 +995,22 @@ function Columns(e) {
|
|
|
984
995
|
style: f(),
|
|
985
996
|
children: [
|
|
986
997
|
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(InlinedStyles, { styles: I() }) }),
|
|
987
|
-
(E = e.columns) == null ? void 0 : E.map((
|
|
998
|
+
(E = e.columns) == null ? void 0 : E.map((v, C) => /* @__PURE__ */ jsx(
|
|
988
999
|
DynamicRenderer,
|
|
989
1000
|
{
|
|
990
|
-
TagName:
|
|
1001
|
+
TagName: v.link ? e.builderLinkComponent || "a" : "div",
|
|
991
1002
|
actionAttributes: {},
|
|
992
1003
|
attributes: {
|
|
993
|
-
...
|
|
994
|
-
href:
|
|
1004
|
+
...v.link ? {
|
|
1005
|
+
href: v.link
|
|
995
1006
|
} : {},
|
|
996
1007
|
[getClassPropName()]: "builder-column",
|
|
997
|
-
style: mapStyleObjToStrIfNeeded(h(
|
|
1008
|
+
style: mapStyleObjToStrIfNeeded(h(C))
|
|
998
1009
|
},
|
|
999
1010
|
children: /* @__PURE__ */ jsx(
|
|
1000
1011
|
Blocks,
|
|
1001
1012
|
{
|
|
1002
|
-
path: `component.options.columns.${
|
|
1013
|
+
path: `component.options.columns.${C}.blocks`,
|
|
1003
1014
|
parent: e.builderBlock.id,
|
|
1004
1015
|
styleProp: {
|
|
1005
1016
|
flexGrow: "1"
|
|
@@ -1007,11 +1018,11 @@ function Columns(e) {
|
|
|
1007
1018
|
context: e.builderContext,
|
|
1008
1019
|
registeredComponents: e.builderComponents,
|
|
1009
1020
|
linkComponent: e.builderLinkComponent,
|
|
1010
|
-
blocks:
|
|
1021
|
+
blocks: v.blocks
|
|
1011
1022
|
}
|
|
1012
1023
|
)
|
|
1013
1024
|
},
|
|
1014
|
-
|
|
1025
|
+
C
|
|
1015
1026
|
))
|
|
1016
1027
|
]
|
|
1017
1028
|
}
|
|
@@ -1056,20 +1067,20 @@ function getSrcSet(e) {
|
|
|
1056
1067
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [getShopifyImageUrl(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1057
1068
|
}
|
|
1058
1069
|
function Image(e) {
|
|
1059
|
-
var o, r, a,
|
|
1070
|
+
var o, r, a, s;
|
|
1060
1071
|
function t() {
|
|
1061
1072
|
var d;
|
|
1062
|
-
const
|
|
1063
|
-
if (!
|
|
1073
|
+
const l = e.image || e.src;
|
|
1074
|
+
if (!l || // We can auto add srcset for cdn.builder.io and shopify
|
|
1064
1075
|
// images, otherwise you can supply this prop manually
|
|
1065
|
-
!(
|
|
1076
|
+
!(l.match(/builder\.io/) || l.match(/cdn\.shopify\.com/)))
|
|
1066
1077
|
return e.srcset;
|
|
1067
1078
|
if (e.srcset && ((d = e.image) != null && d.includes("builder.io/api/v1/image"))) {
|
|
1068
1079
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1069
|
-
return console.debug("Removed given srcset"), getSrcSet(
|
|
1080
|
+
return console.debug("Removed given srcset"), getSrcSet(l);
|
|
1070
1081
|
} else if (e.image && !e.srcset)
|
|
1071
|
-
return getSrcSet(
|
|
1072
|
-
return getSrcSet(
|
|
1082
|
+
return getSrcSet(l);
|
|
1083
|
+
return getSrcSet(l);
|
|
1073
1084
|
}
|
|
1074
1085
|
function n() {
|
|
1075
1086
|
var c;
|
|
@@ -1116,7 +1127,7 @@ function Image(e) {
|
|
|
1116
1127
|
}
|
|
1117
1128
|
}
|
|
1118
1129
|
) }) : null,
|
|
1119
|
-
(
|
|
1130
|
+
(s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ jsx(Fragment, { children: e.children }) : null,
|
|
1120
1131
|
!e.fitContent && e.children ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
1121
1132
|
] }),
|
|
1122
1133
|
/* @__PURE__ */ jsx("style", { children: `.img-40c70c9b {
|
|
@@ -1371,7 +1382,7 @@ const componentInfo$b = {
|
|
|
1371
1382
|
});
|
|
1372
1383
|
}
|
|
1373
1384
|
const n = e.get("columns");
|
|
1374
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((
|
|
1385
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
|
|
1375
1386
|
}
|
|
1376
1387
|
}, {
|
|
1377
1388
|
name: "space",
|
|
@@ -1419,27 +1430,27 @@ const componentInfo$b = {
|
|
|
1419
1430
|
function CustomCode(e) {
|
|
1420
1431
|
const t = useRef(null), [n, i] = useState(() => []), [o, r] = useState(() => []);
|
|
1421
1432
|
return useEffect(() => {
|
|
1422
|
-
var
|
|
1423
|
-
if (!((
|
|
1433
|
+
var s;
|
|
1434
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
1424
1435
|
return;
|
|
1425
1436
|
const a = t.current.getElementsByTagName("script");
|
|
1426
1437
|
for (let c = 0; c < a.length; c++) {
|
|
1427
|
-
const
|
|
1428
|
-
if (
|
|
1429
|
-
if (n.includes(
|
|
1438
|
+
const l = a[c];
|
|
1439
|
+
if (l.src) {
|
|
1440
|
+
if (n.includes(l.src))
|
|
1430
1441
|
continue;
|
|
1431
|
-
n.push(
|
|
1442
|
+
n.push(l.src);
|
|
1432
1443
|
const d = document.createElement("script");
|
|
1433
|
-
d.async = !0, d.src =
|
|
1434
|
-
} else if (!
|
|
1444
|
+
d.async = !0, d.src = l.src, document.head.appendChild(d);
|
|
1445
|
+
} else if (!l.type || [
|
|
1435
1446
|
"text/javascript",
|
|
1436
1447
|
"application/javascript",
|
|
1437
1448
|
"application/ecmascript"
|
|
1438
|
-
].includes(
|
|
1439
|
-
if (o.includes(
|
|
1449
|
+
].includes(l.type)) {
|
|
1450
|
+
if (o.includes(l.innerText))
|
|
1440
1451
|
continue;
|
|
1441
1452
|
try {
|
|
1442
|
-
o.push(
|
|
1453
|
+
o.push(l.innerText), new Function(l.innerText)();
|
|
1443
1454
|
} catch (d) {
|
|
1444
1455
|
console.warn("`CustomCode`: Error running script:", d);
|
|
1445
1456
|
}
|
|
@@ -1481,13 +1492,13 @@ const componentInfo$8 = {
|
|
|
1481
1492
|
}]
|
|
1482
1493
|
}, SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"], isJsScript = (e) => SCRIPT_MIME_TYPES.includes(e.type);
|
|
1483
1494
|
function Embed(e) {
|
|
1484
|
-
const t = useRef(null), [n, i] = useState(() => []), [o, r] = useState(() => []), [a,
|
|
1495
|
+
const t = useRef(null), [n, i] = useState(() => []), [o, r] = useState(() => []), [a, s] = useState(() => !1);
|
|
1485
1496
|
function c() {
|
|
1486
1497
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1487
1498
|
return;
|
|
1488
|
-
const
|
|
1489
|
-
for (let d = 0; d <
|
|
1490
|
-
const g =
|
|
1499
|
+
const l = t.current.getElementsByTagName("script");
|
|
1500
|
+
for (let d = 0; d < l.length; d++) {
|
|
1501
|
+
const g = l[d];
|
|
1491
1502
|
if (g.src && !n.includes(g.src)) {
|
|
1492
1503
|
n.push(g.src);
|
|
1493
1504
|
const x = document.createElement("script");
|
|
@@ -1501,7 +1512,7 @@ function Embed(e) {
|
|
|
1501
1512
|
}
|
|
1502
1513
|
}
|
|
1503
1514
|
return useEffect(() => {
|
|
1504
|
-
t.current && !a && (
|
|
1515
|
+
t.current && !a && (s(!0), c());
|
|
1505
1516
|
}, [t.current, a]), /* @__PURE__ */ jsx(
|
|
1506
1517
|
"div",
|
|
1507
1518
|
{
|
|
@@ -1537,17 +1548,17 @@ const componentInfo$7 = {
|
|
|
1537
1548
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1538
1549
|
onChange: (e) => {
|
|
1539
1550
|
e.delete("srcset"), e.delete("noWebp");
|
|
1540
|
-
function n(a,
|
|
1541
|
-
return new Promise((c,
|
|
1551
|
+
function n(a, s = 6e4) {
|
|
1552
|
+
return new Promise((c, l) => {
|
|
1542
1553
|
const d = document.createElement("img");
|
|
1543
1554
|
let g = !1;
|
|
1544
1555
|
d.onload = () => {
|
|
1545
1556
|
g = !0, c(d);
|
|
1546
1557
|
}, d.addEventListener("error", (x) => {
|
|
1547
|
-
console.warn("Image load failed", x.error),
|
|
1558
|
+
console.warn("Image load failed", x.error), l(x.error);
|
|
1548
1559
|
}), d.src = a, setTimeout(() => {
|
|
1549
|
-
g ||
|
|
1550
|
-
},
|
|
1560
|
+
g || l(new Error("Image load timed out"));
|
|
1561
|
+
}, s);
|
|
1551
1562
|
});
|
|
1552
1563
|
}
|
|
1553
1564
|
function i(a) {
|
|
@@ -1558,8 +1569,8 @@ const componentInfo$7 = {
|
|
|
1558
1569
|
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1559
1570
|
}), o && (!r || r === 0.7041))
|
|
1560
1571
|
return n(o).then((a) => {
|
|
1561
|
-
const
|
|
1562
|
-
e.get("image") === o && (!
|
|
1572
|
+
const s = e.get("aspectRatio");
|
|
1573
|
+
e.get("image") === o && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1563
1574
|
});
|
|
1564
1575
|
}
|
|
1565
1576
|
}, {
|
|
@@ -1871,7 +1882,7 @@ const componentInfo = {
|
|
|
1871
1882
|
}]
|
|
1872
1883
|
};
|
|
1873
1884
|
function Video(e) {
|
|
1874
|
-
var i, o, r, a,
|
|
1885
|
+
var i, o, r, a, s, c, l;
|
|
1875
1886
|
function t() {
|
|
1876
1887
|
return {
|
|
1877
1888
|
...e.autoPlay === !0 ? {
|
|
@@ -1939,7 +1950,7 @@ function Video(e) {
|
|
|
1939
1950
|
}
|
|
1940
1951
|
}
|
|
1941
1952
|
) }) : null,
|
|
1942
|
-
(
|
|
1953
|
+
(s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
1943
1954
|
"div",
|
|
1944
1955
|
{
|
|
1945
1956
|
style: {
|
|
@@ -1950,7 +1961,7 @@ function Video(e) {
|
|
|
1950
1961
|
children: e.children
|
|
1951
1962
|
}
|
|
1952
1963
|
) }) : null,
|
|
1953
|
-
(
|
|
1964
|
+
(l = (c = e.builderBlock) == null ? void 0 : c.children) != null && l.length && !e.fitContent ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
1954
1965
|
"div",
|
|
1955
1966
|
{
|
|
1956
1967
|
style: {
|
|
@@ -2172,7 +2183,7 @@ const findParentElement = (e, t, n = !0) => {
|
|
|
2172
2183
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2173
2184
|
}
|
|
2174
2185
|
};
|
|
2175
|
-
}, SDK_VERSION = "0.12.
|
|
2186
|
+
}, SDK_VERSION = "0.12.5", registerInsertMenu = () => {
|
|
2176
2187
|
register("insertMenu", {
|
|
2177
2188
|
name: "_default",
|
|
2178
2189
|
default: !0,
|
|
@@ -2224,7 +2235,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2224
2235
|
if (o != null && o.type)
|
|
2225
2236
|
switch (o.type) {
|
|
2226
2237
|
case "builder.evaluate": {
|
|
2227
|
-
const
|
|
2238
|
+
const s = o.data.text, c = o.data.arguments || [], l = o.data.id, d = new Function(s);
|
|
2228
2239
|
let g, x = null;
|
|
2229
2240
|
try {
|
|
2230
2241
|
g = d.apply(null, c);
|
|
@@ -2234,7 +2245,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2234
2245
|
x ? (r = window.parent) == null || r.postMessage({
|
|
2235
2246
|
type: "builder.evaluateError",
|
|
2236
2247
|
data: {
|
|
2237
|
-
id:
|
|
2248
|
+
id: l,
|
|
2238
2249
|
error: x.message
|
|
2239
2250
|
}
|
|
2240
2251
|
}, "*") : g && typeof g.then == "function" ? g.then((f) => {
|
|
@@ -2242,7 +2253,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2242
2253
|
(h = window.parent) == null || h.postMessage({
|
|
2243
2254
|
type: "builder.evaluateResult",
|
|
2244
2255
|
data: {
|
|
2245
|
-
id:
|
|
2256
|
+
id: l,
|
|
2246
2257
|
result: f
|
|
2247
2258
|
}
|
|
2248
2259
|
}, "*");
|
|
@@ -2250,7 +2261,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2250
2261
|
type: "builder.evaluateResult",
|
|
2251
2262
|
data: {
|
|
2252
2263
|
result: g,
|
|
2253
|
-
id:
|
|
2264
|
+
id: l
|
|
2254
2265
|
}
|
|
2255
2266
|
}, "*");
|
|
2256
2267
|
break;
|
|
@@ -2259,7 +2270,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2259
2270
|
})));
|
|
2260
2271
|
};
|
|
2261
2272
|
function EnableEditor(e) {
|
|
2262
|
-
var j, P, A, F, _, V
|
|
2273
|
+
var j, P, A, F, N, _, V;
|
|
2263
2274
|
const t = useRef(null), [n, i] = useState(() => 0);
|
|
2264
2275
|
useState(() => !0);
|
|
2265
2276
|
function o(u) {
|
|
@@ -2294,9 +2305,9 @@ function EnableEditor(e) {
|
|
|
2294
2305
|
}));
|
|
2295
2306
|
}
|
|
2296
2307
|
useState(() => 0);
|
|
2297
|
-
const [a,
|
|
2308
|
+
const [a, s] = useState(
|
|
2298
2309
|
() => !1
|
|
2299
|
-
), [c,
|
|
2310
|
+
), [c, l] = useState(
|
|
2300
2311
|
() => e.contentWrapper || "div"
|
|
2301
2312
|
);
|
|
2302
2313
|
function d(u) {
|
|
@@ -2364,7 +2375,7 @@ function EnableEditor(e) {
|
|
|
2364
2375
|
})
|
|
2365
2376
|
);
|
|
2366
2377
|
}
|
|
2367
|
-
function
|
|
2378
|
+
function v({ url: u, key: m }) {
|
|
2368
2379
|
fetch$1(u).then((b) => b.json()).then((b) => {
|
|
2369
2380
|
var p, k;
|
|
2370
2381
|
const S = {
|
|
@@ -2376,13 +2387,13 @@ function EnableEditor(e) {
|
|
|
2376
2387
|
console.error("error fetching dynamic data", u, b);
|
|
2377
2388
|
});
|
|
2378
2389
|
}
|
|
2379
|
-
function
|
|
2390
|
+
function C() {
|
|
2380
2391
|
var m, b, S;
|
|
2381
2392
|
const u = (S = (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.httpRequests) != null ? S : {};
|
|
2382
2393
|
Object.entries(u).forEach(([p, k]) => {
|
|
2383
2394
|
if (k && (!x[p] || isEditing())) {
|
|
2384
2395
|
const B = E(k);
|
|
2385
|
-
|
|
2396
|
+
v({
|
|
2386
2397
|
url: B,
|
|
2387
2398
|
key: p
|
|
2388
2399
|
});
|
|
@@ -2483,7 +2494,7 @@ function EnableEditor(e) {
|
|
|
2483
2494
|
}, []), useEffect(() => {
|
|
2484
2495
|
e.apiKey || logger.error(
|
|
2485
2496
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2486
|
-
), g(),
|
|
2497
|
+
), g(), C(), T();
|
|
2487
2498
|
}, []), useEffect(() => {
|
|
2488
2499
|
e.content && r(e.content);
|
|
2489
2500
|
}, [e.content]), useEffect(() => {
|
|
@@ -2493,7 +2504,7 @@ function EnableEditor(e) {
|
|
|
2493
2504
|
(P = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : P.jsCode,
|
|
2494
2505
|
e.builderContextSignal.rootState
|
|
2495
2506
|
]), useEffect(() => {
|
|
2496
|
-
|
|
2507
|
+
C();
|
|
2497
2508
|
}, [(F = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : F.httpRequests]), useEffect(() => {
|
|
2498
2509
|
T();
|
|
2499
2510
|
}, [e.builderContextSignal.rootState]), useEffect(() => {
|
|
@@ -2513,14 +2524,14 @@ function EnableEditor(e) {
|
|
|
2513
2524
|
key: n,
|
|
2514
2525
|
ref: t,
|
|
2515
2526
|
onClick: (u) => I(u),
|
|
2516
|
-
"builder-content-id": (
|
|
2527
|
+
"builder-content-id": (N = e.builderContextSignal.content) == null ? void 0 : N.id,
|
|
2517
2528
|
"builder-model": e.model,
|
|
2518
2529
|
...e.showContent ? {} : {
|
|
2519
2530
|
hidden: !0,
|
|
2520
2531
|
"aria-hidden": !0
|
|
2521
2532
|
},
|
|
2522
2533
|
...e.contentWrapperProps,
|
|
2523
|
-
className: `variant-${((
|
|
2534
|
+
className: `variant-${((_ = e.content) == null ? void 0 : _.testVariationId) || ((V = e.content) == null ? void 0 : V.id)}`
|
|
2524
2535
|
},
|
|
2525
2536
|
e.children
|
|
2526
2537
|
) }) : null });
|
|
@@ -2537,16 +2548,16 @@ font-display: fallback;
|
|
|
2537
2548
|
font-weight: 400;
|
|
2538
2549
|
}
|
|
2539
2550
|
`.trim()), e.files)
|
|
2540
|
-
for (const
|
|
2541
|
-
if (!(String(Number(
|
|
2551
|
+
for (const s in e.files) {
|
|
2552
|
+
if (!(String(Number(s)) === s))
|
|
2542
2553
|
continue;
|
|
2543
|
-
const
|
|
2544
|
-
|
|
2554
|
+
const l = e.files[s];
|
|
2555
|
+
l && l !== i && (o += `
|
|
2545
2556
|
@font-face {
|
|
2546
2557
|
font-family: "${t}";
|
|
2547
|
-
src: url('${
|
|
2558
|
+
src: url('${l}') format('woff2');
|
|
2548
2559
|
font-display: fallback;
|
|
2549
|
-
font-weight: ${
|
|
2560
|
+
font-weight: ${s};
|
|
2550
2561
|
}
|
|
2551
2562
|
`.trim());
|
|
2552
2563
|
}
|
|
@@ -2596,9 +2607,9 @@ const getRootStateInitialValue = ({
|
|
|
2596
2607
|
data: t,
|
|
2597
2608
|
locale: n
|
|
2598
2609
|
}) => {
|
|
2599
|
-
var r, a,
|
|
2610
|
+
var r, a, s;
|
|
2600
2611
|
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
2601
|
-
return (
|
|
2612
|
+
return (s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((c) => {
|
|
2602
2613
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
2603
2614
|
}), {
|
|
2604
2615
|
...i,
|
|
@@ -2620,7 +2631,7 @@ const getRootStateInitialValue = ({
|
|
|
2620
2631
|
meta: e == null ? void 0 : e.meta
|
|
2621
2632
|
} : void 0;
|
|
2622
2633
|
function ContentComponent(e) {
|
|
2623
|
-
var c,
|
|
2634
|
+
var c, l, d, g, x, f, h;
|
|
2624
2635
|
const [t, n] = useState(
|
|
2625
2636
|
() => {
|
|
2626
2637
|
var y, I;
|
|
@@ -2633,7 +2644,7 @@ function ContentComponent(e) {
|
|
|
2633
2644
|
}
|
|
2634
2645
|
);
|
|
2635
2646
|
function i(y) {
|
|
2636
|
-
|
|
2647
|
+
s((I) => ({
|
|
2637
2648
|
...I,
|
|
2638
2649
|
rootState: y
|
|
2639
2650
|
}));
|
|
@@ -2658,7 +2669,7 @@ function ContentComponent(e) {
|
|
|
2658
2669
|
}),
|
|
2659
2670
|
{}
|
|
2660
2671
|
)
|
|
2661
|
-
), [a,
|
|
2672
|
+
), [a, s] = useState(() => ({
|
|
2662
2673
|
content: getContentInitialValue({
|
|
2663
2674
|
content: e.content,
|
|
2664
2675
|
data: e.data
|
|
@@ -2717,14 +2728,14 @@ function ContentComponent(e) {
|
|
|
2717
2728
|
contentWrapperProps: e.contentWrapperProps,
|
|
2718
2729
|
linkComponent: e.linkComponent,
|
|
2719
2730
|
trustedHosts: e.trustedHosts,
|
|
2720
|
-
setBuilderContextSignal:
|
|
2731
|
+
setBuilderContextSignal: s,
|
|
2721
2732
|
children: [
|
|
2722
2733
|
e.isSsrAbTest ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(InlinedScript, { scriptStr: t }) }) : null,
|
|
2723
2734
|
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
2724
2735
|
ContentStyles,
|
|
2725
2736
|
{
|
|
2726
2737
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
2727
|
-
cssCode: (d = (
|
|
2738
|
+
cssCode: (d = (l = a.content) == null ? void 0 : l.data) == null ? void 0 : d.cssCode,
|
|
2728
2739
|
customFonts: (x = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : x.customFonts
|
|
2729
2740
|
}
|
|
2730
2741
|
) }),
|
|
@@ -2744,7 +2755,7 @@ function ContentComponent(e) {
|
|
|
2744
2755
|
);
|
|
2745
2756
|
}
|
|
2746
2757
|
function ContentVariants(e) {
|
|
2747
|
-
var a,
|
|
2758
|
+
var a, s;
|
|
2748
2759
|
const [t, n] = useState(
|
|
2749
2760
|
() => checkShouldRenderVariants({
|
|
2750
2761
|
canTrack: getDefaultCanTrack(e.canTrack),
|
|
@@ -2754,9 +2765,9 @@ function ContentVariants(e) {
|
|
|
2754
2765
|
function i() {
|
|
2755
2766
|
var c;
|
|
2756
2767
|
return getUpdateCookieAndStylesScript(
|
|
2757
|
-
getVariants(e.content).map((
|
|
2758
|
-
id:
|
|
2759
|
-
testRatio:
|
|
2768
|
+
getVariants(e.content).map((l) => ({
|
|
2769
|
+
id: l.testVariationId,
|
|
2770
|
+
testRatio: l.testRatio
|
|
2760
2771
|
})),
|
|
2761
2772
|
((c = e.content) == null ? void 0 : c.id) || ""
|
|
2762
2773
|
);
|
|
@@ -2786,7 +2797,7 @@ function ContentVariants(e) {
|
|
|
2786
2797
|
}
|
|
2787
2798
|
),
|
|
2788
2799
|
/* @__PURE__ */ jsx(InlinedScript, { scriptStr: i() }),
|
|
2789
|
-
(
|
|
2800
|
+
(s = getVariants(e.content)) == null ? void 0 : s.map((c) => /* @__PURE__ */ jsx(
|
|
2790
2801
|
ContentComponent,
|
|
2791
2802
|
{
|
|
2792
2803
|
content: c,
|
|
@@ -2858,26 +2869,26 @@ const fetchSymbolContent = async ({
|
|
|
2858
2869
|
});
|
|
2859
2870
|
};
|
|
2860
2871
|
function Symbol$1(e) {
|
|
2861
|
-
var r, a,
|
|
2872
|
+
var r, a, s, c;
|
|
2862
2873
|
function t() {
|
|
2863
|
-
var
|
|
2874
|
+
var l, d;
|
|
2864
2875
|
return [
|
|
2865
2876
|
e.attributes[getClassPropName()],
|
|
2866
2877
|
"builder-symbol",
|
|
2867
|
-
(
|
|
2878
|
+
(l = e.symbol) != null && l.inline ? "builder-inline-symbol" : void 0,
|
|
2868
2879
|
(d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2869
2880
|
].filter(Boolean).join(" ");
|
|
2870
2881
|
}
|
|
2871
2882
|
const [n, i] = useState(() => {
|
|
2872
|
-
var
|
|
2873
|
-
return (
|
|
2883
|
+
var l;
|
|
2884
|
+
return (l = e.symbol) == null ? void 0 : l.content;
|
|
2874
2885
|
});
|
|
2875
2886
|
function o() {
|
|
2876
2887
|
n || fetchSymbolContent({
|
|
2877
2888
|
symbol: e.symbol,
|
|
2878
2889
|
builderContextValue: e.builderContext
|
|
2879
|
-
}).then((
|
|
2880
|
-
|
|
2890
|
+
}).then((l) => {
|
|
2891
|
+
l && i(l);
|
|
2881
2892
|
});
|
|
2882
2893
|
}
|
|
2883
2894
|
return useEffect(() => {
|
|
@@ -2897,7 +2908,7 @@ function Symbol$1(e) {
|
|
|
2897
2908
|
data: {
|
|
2898
2909
|
...(a = e.symbol) == null ? void 0 : a.data,
|
|
2899
2910
|
...e.builderContext.localState,
|
|
2900
|
-
...(
|
|
2911
|
+
...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
|
|
2901
2912
|
},
|
|
2902
2913
|
model: (c = e.symbol) == null ? void 0 : c.model,
|
|
2903
2914
|
content: n,
|