@builder.io/sdk-react 0.12.2 → 0.12.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/index.cjs +6 -4
- package/lib/browser/index.mjs +157 -157
- package/lib/edge/index.cjs +6 -4
- package/lib/edge/index.mjs +59 -59
- package/lib/node/index.cjs +6 -4
- package/lib/node/index.mjs +29 -29
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
package/lib/browser/index.mjs
CHANGED
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { createContext as ve, useState as S, useContext as
|
|
4
|
-
import { i as V, j as $, k as $e, l as U, m as Z, n as G, T as L, r as Ne, o as D, p as
|
|
2
|
+
import { jsx as o, Fragment as h, jsxs as B } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as ve, useState as S, useContext as le, createElement as pe, useRef as X, useEffect as E } from "react";
|
|
4
|
+
import { i as V, j as $, k as $e, l as U, m as Z, n as G, T as L, r as Ne, o as D, p as ce, a as Fe, c as _e, b as ke, q as Le, u as se, v as de, w as je } from "./server-entry-f978b3a5.js";
|
|
5
5
|
import { _ as xn, h as yn, f as Sn, g as vn, e as pn, d as kn, s as Cn, t as wn } from "./server-entry-f978b3a5.js";
|
|
6
6
|
function Me(e) {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */ o("style", { children: `.button-fdf49de0 {
|
|
27
|
-
all: unset;
|
|
28
|
-
}` })
|
|
29
|
-
] });
|
|
7
|
+
return /* @__PURE__ */ o(h, { children: e.link ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
|
|
8
|
+
"a",
|
|
9
|
+
{
|
|
10
|
+
...e.attributes,
|
|
11
|
+
href: e.link,
|
|
12
|
+
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
13
|
+
role: "button",
|
|
14
|
+
children: e.text
|
|
15
|
+
}
|
|
16
|
+
) }) : /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
role: "button",
|
|
20
|
+
...e.attributes,
|
|
21
|
+
className: `builder-button ${e.attributes.className}`,
|
|
22
|
+
style: e.attributes.style,
|
|
23
|
+
children: e.text
|
|
24
|
+
}
|
|
25
|
+
) }) });
|
|
30
26
|
}
|
|
31
27
|
const ee = ve({
|
|
32
28
|
content: null,
|
|
@@ -78,26 +74,26 @@ const De = ({
|
|
|
78
74
|
context: n,
|
|
79
75
|
event: i,
|
|
80
76
|
localState: a,
|
|
81
|
-
rootSetState:
|
|
77
|
+
rootSetState: l,
|
|
82
78
|
rootState: r
|
|
83
79
|
}) => {
|
|
84
|
-
const
|
|
80
|
+
const c = De({
|
|
85
81
|
builder: t,
|
|
86
82
|
context: n,
|
|
87
83
|
event: i,
|
|
88
|
-
state: Ke(r, a,
|
|
84
|
+
state: Ke(r, a, l)
|
|
89
85
|
});
|
|
90
|
-
return new Function(...
|
|
86
|
+
return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
|
|
91
87
|
};
|
|
92
88
|
function Ke(e, t, n) {
|
|
93
89
|
if (e === t)
|
|
94
90
|
throw new Error("rootState === localState");
|
|
95
91
|
return new Proxy(e, {
|
|
96
92
|
get: (i, a) => t && a in t ? t[a] : e[a],
|
|
97
|
-
set: (i, a,
|
|
93
|
+
set: (i, a, l) => {
|
|
98
94
|
if (t && a in t)
|
|
99
95
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
100
|
-
return e[a] =
|
|
96
|
+
return e[a] = l, n == null || n(e), !0;
|
|
101
97
|
}
|
|
102
98
|
});
|
|
103
99
|
}
|
|
@@ -108,26 +104,26 @@ function _({
|
|
|
108
104
|
localState: n,
|
|
109
105
|
rootState: i,
|
|
110
106
|
rootSetState: a,
|
|
111
|
-
event:
|
|
107
|
+
event: l,
|
|
112
108
|
isExpression: r = !0
|
|
113
109
|
}) {
|
|
114
110
|
if (e === "") {
|
|
115
111
|
U.warn("Skipping evaluation of empty code block.");
|
|
116
112
|
return;
|
|
117
113
|
}
|
|
118
|
-
const
|
|
114
|
+
const c = {
|
|
119
115
|
code: Oe(e, {
|
|
120
116
|
isExpression: r
|
|
121
117
|
}),
|
|
122
118
|
builder: He(),
|
|
123
119
|
context: t,
|
|
124
|
-
event:
|
|
120
|
+
event: l,
|
|
125
121
|
rootSetState: a,
|
|
126
122
|
rootState: i,
|
|
127
123
|
localState: n
|
|
128
124
|
};
|
|
129
125
|
try {
|
|
130
|
-
return ze(
|
|
126
|
+
return ze(c);
|
|
131
127
|
} catch (s) {
|
|
132
128
|
U.error("Failed code evaluation: " + s.message, {
|
|
133
129
|
code: e
|
|
@@ -139,7 +135,7 @@ const qe = (e, t, n) => {
|
|
|
139
135
|
if (Object(e) !== e)
|
|
140
136
|
return e;
|
|
141
137
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
142
|
-
return i.slice(0, -1).reduce((a,
|
|
138
|
+
return i.slice(0, -1).reduce((a, l, r) => Object(a[l]) === a[l] ? a[l] : a[l] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
143
139
|
};
|
|
144
140
|
const Ye = ({
|
|
145
141
|
block: e,
|
|
@@ -150,24 +146,24 @@ const Ye = ({
|
|
|
150
146
|
}) => {
|
|
151
147
|
if (!e.bindings)
|
|
152
148
|
return e;
|
|
153
|
-
const
|
|
154
|
-
...
|
|
149
|
+
const l = Z(e), r = {
|
|
150
|
+
...l,
|
|
155
151
|
properties: {
|
|
156
|
-
...
|
|
152
|
+
...l.properties
|
|
157
153
|
},
|
|
158
154
|
actions: {
|
|
159
|
-
...
|
|
155
|
+
...l.actions
|
|
160
156
|
}
|
|
161
157
|
};
|
|
162
|
-
for (const
|
|
163
|
-
const s = e.bindings[
|
|
158
|
+
for (const c in e.bindings) {
|
|
159
|
+
const s = e.bindings[c], d = _({
|
|
164
160
|
code: s,
|
|
165
161
|
localState: n,
|
|
166
162
|
rootState: i,
|
|
167
163
|
rootSetState: a,
|
|
168
164
|
context: t
|
|
169
165
|
});
|
|
170
|
-
qe(r,
|
|
166
|
+
qe(r, c, d);
|
|
171
167
|
}
|
|
172
168
|
return r;
|
|
173
169
|
};
|
|
@@ -177,14 +173,14 @@ function H({
|
|
|
177
173
|
shouldEvaluateBindings: n,
|
|
178
174
|
localState: i,
|
|
179
175
|
rootState: a,
|
|
180
|
-
rootSetState:
|
|
176
|
+
rootSetState: l
|
|
181
177
|
}) {
|
|
182
178
|
const r = e;
|
|
183
179
|
return n ? Ye({
|
|
184
180
|
block: r,
|
|
185
181
|
localState: i,
|
|
186
182
|
rootState: a,
|
|
187
|
-
rootSetState:
|
|
183
|
+
rootSetState: l,
|
|
188
184
|
context: t
|
|
189
185
|
}) : r;
|
|
190
186
|
}
|
|
@@ -193,15 +189,15 @@ const Qe = ({
|
|
|
193
189
|
context: t,
|
|
194
190
|
registeredComponents: n
|
|
195
191
|
}) => {
|
|
196
|
-
var
|
|
197
|
-
const i = (
|
|
192
|
+
var l;
|
|
193
|
+
const i = (l = H({
|
|
198
194
|
block: e,
|
|
199
195
|
localState: t.localState,
|
|
200
196
|
rootState: t.rootState,
|
|
201
197
|
rootSetState: t.rootSetState,
|
|
202
198
|
context: t.context,
|
|
203
199
|
shouldEvaluateBindings: !1
|
|
204
|
-
}).component) == null ? void 0 :
|
|
200
|
+
}).component) == null ? void 0 : l.name;
|
|
205
201
|
if (!i)
|
|
206
202
|
return null;
|
|
207
203
|
const a = n[i];
|
|
@@ -229,7 +225,7 @@ const Qe = ({
|
|
|
229
225
|
});
|
|
230
226
|
if (!Array.isArray(a))
|
|
231
227
|
return;
|
|
232
|
-
const
|
|
228
|
+
const l = n.collection.split(".").pop(), r = n.itemName || (l ? l + "Item" : "item");
|
|
233
229
|
return a.map((s, d) => ({
|
|
234
230
|
context: {
|
|
235
231
|
...t,
|
|
@@ -278,12 +274,12 @@ const Qe = ({
|
|
|
278
274
|
min: a,
|
|
279
275
|
default: a + 1
|
|
280
276
|
};
|
|
281
|
-
const
|
|
277
|
+
const l = n.medium.max + 1;
|
|
282
278
|
return n.large = {
|
|
283
279
|
max: 2e3,
|
|
284
280
|
// TODO: decide upper limit
|
|
285
|
-
min:
|
|
286
|
-
default:
|
|
281
|
+
min: l,
|
|
282
|
+
default: l + 1
|
|
287
283
|
}, n;
|
|
288
284
|
}, Je = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Te = (e) => Object.entries(e).map(([n, i]) => {
|
|
289
285
|
if (typeof i == "string")
|
|
@@ -325,14 +321,14 @@ function Ze(e) {
|
|
|
325
321
|
rootSetState: e.context.rootSetState,
|
|
326
322
|
context: e.context.context,
|
|
327
323
|
shouldEvaluateBindings: !0
|
|
328
|
-
}), a = i.responsiveStyles,
|
|
329
|
-
((k =
|
|
330
|
-
),
|
|
324
|
+
}), a = i.responsiveStyles, l = e.context.content, r = Ie(
|
|
325
|
+
((k = l == null ? void 0 : l.meta) == null ? void 0 : k.breakpoints) || {}
|
|
326
|
+
), c = a == null ? void 0 : a.large, s = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, m = i.id;
|
|
331
327
|
if (!m)
|
|
332
328
|
return "";
|
|
333
|
-
const g =
|
|
329
|
+
const g = c ? Y({
|
|
334
330
|
className: m,
|
|
335
|
-
styles:
|
|
331
|
+
styles: c
|
|
336
332
|
}) : "", v = s ? Y({
|
|
337
333
|
className: m,
|
|
338
334
|
styles: s,
|
|
@@ -370,7 +366,7 @@ function Re(e) {
|
|
|
370
366
|
for (const a in n) {
|
|
371
367
|
if (!n.hasOwnProperty(a))
|
|
372
368
|
continue;
|
|
373
|
-
const
|
|
369
|
+
const l = n[a];
|
|
374
370
|
let r = tt(a);
|
|
375
371
|
if (e.stripPrefix)
|
|
376
372
|
switch (L) {
|
|
@@ -381,7 +377,7 @@ function Re(e) {
|
|
|
381
377
|
r = r.replace("on:", "");
|
|
382
378
|
break;
|
|
383
379
|
}
|
|
384
|
-
t[r] = nt(
|
|
380
|
+
t[r] = nt(l, e);
|
|
385
381
|
}
|
|
386
382
|
return t;
|
|
387
383
|
}
|
|
@@ -424,13 +420,13 @@ function ot(e) {
|
|
|
424
420
|
return e;
|
|
425
421
|
}
|
|
426
422
|
}
|
|
427
|
-
const rt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
|
|
428
|
-
function
|
|
429
|
-
return /* @__PURE__ */ o(h, { children:
|
|
423
|
+
const rt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), lt = (e) => typeof e == "string" && rt.has(e.toLowerCase());
|
|
424
|
+
function ct(e) {
|
|
425
|
+
return /* @__PURE__ */ o(h, { children: lt(e.TagName) ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ o(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
430
426
|
}
|
|
431
427
|
function st(e) {
|
|
432
428
|
return /* @__PURE__ */ o(
|
|
433
|
-
|
|
429
|
+
ct,
|
|
434
430
|
{
|
|
435
431
|
TagName: e.Wrapper,
|
|
436
432
|
attributes: te({
|
|
@@ -477,10 +473,10 @@ const ut = ({
|
|
|
477
473
|
context: n,
|
|
478
474
|
componentRef: i,
|
|
479
475
|
includeBlockProps: a,
|
|
480
|
-
isInteractive:
|
|
476
|
+
isInteractive: l,
|
|
481
477
|
contextValue: r
|
|
482
478
|
}) => {
|
|
483
|
-
const
|
|
479
|
+
const c = {
|
|
484
480
|
...e,
|
|
485
481
|
/**
|
|
486
482
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -493,13 +489,13 @@ const ut = ({
|
|
|
493
489
|
})
|
|
494
490
|
} : {}
|
|
495
491
|
};
|
|
496
|
-
return
|
|
492
|
+
return l ? {
|
|
497
493
|
Wrapper: i,
|
|
498
494
|
block: t,
|
|
499
495
|
context: n,
|
|
500
496
|
wrapperProps: e,
|
|
501
497
|
includeBlockProps: a
|
|
502
|
-
} :
|
|
498
|
+
} : c;
|
|
503
499
|
};
|
|
504
500
|
function fe(e) {
|
|
505
501
|
var i;
|
|
@@ -570,7 +566,7 @@ function K(e) {
|
|
|
570
566
|
function a() {
|
|
571
567
|
return e.block.tagName || "div";
|
|
572
568
|
}
|
|
573
|
-
function
|
|
569
|
+
function l() {
|
|
574
570
|
var C, R;
|
|
575
571
|
if ((C = e.block.repeat) != null && C.collection)
|
|
576
572
|
return !!((R = n == null ? void 0 : n()) != null && R.length);
|
|
@@ -581,7 +577,7 @@ function K(e) {
|
|
|
581
577
|
var k, C;
|
|
582
578
|
return !((k = t == null ? void 0 : t()) != null && k.component) && !n() ? (C = i().children) != null ? C : [] : [];
|
|
583
579
|
}
|
|
584
|
-
function
|
|
580
|
+
function c() {
|
|
585
581
|
var y, k, C, R, P, w;
|
|
586
582
|
return {
|
|
587
583
|
blockChildren: (y = i().children) != null ? y : [],
|
|
@@ -601,19 +597,19 @@ function K(e) {
|
|
|
601
597
|
};
|
|
602
598
|
}
|
|
603
599
|
const [s, d] = S(() => e.context);
|
|
604
|
-
return /* @__PURE__ */ o(h, { children:
|
|
600
|
+
return /* @__PURE__ */ o(h, { children: l() ? /* @__PURE__ */ B(h, { children: [
|
|
605
601
|
/* @__PURE__ */ o(Ze, { block: e.block, context: e.context }),
|
|
606
602
|
(m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
|
|
607
603
|
fe,
|
|
608
604
|
{
|
|
609
|
-
componentRef:
|
|
610
|
-
componentOptions:
|
|
611
|
-
blockChildren:
|
|
612
|
-
context:
|
|
613
|
-
registeredComponents:
|
|
614
|
-
builderBlock:
|
|
615
|
-
includeBlockProps:
|
|
616
|
-
isInteractive:
|
|
605
|
+
componentRef: c().componentRef,
|
|
606
|
+
componentOptions: c().componentOptions,
|
|
607
|
+
blockChildren: c().blockChildren,
|
|
608
|
+
context: c().context,
|
|
609
|
+
registeredComponents: c().registeredComponents,
|
|
610
|
+
builderBlock: c().builderBlock,
|
|
611
|
+
includeBlockProps: c().includeBlockProps,
|
|
612
|
+
isInteractive: c().isInteractive
|
|
617
613
|
}
|
|
618
614
|
) }) : /* @__PURE__ */ o(h, { children: n() ? /* @__PURE__ */ o(h, { children: (v = n()) == null ? void 0 : v.map((y, k) => /* @__PURE__ */ o(
|
|
619
615
|
mt,
|
|
@@ -633,14 +629,14 @@ function K(e) {
|
|
|
633
629
|
/* @__PURE__ */ o(
|
|
634
630
|
fe,
|
|
635
631
|
{
|
|
636
|
-
componentRef:
|
|
637
|
-
componentOptions:
|
|
638
|
-
blockChildren:
|
|
639
|
-
context:
|
|
640
|
-
registeredComponents:
|
|
641
|
-
builderBlock:
|
|
642
|
-
includeBlockProps:
|
|
643
|
-
isInteractive:
|
|
632
|
+
componentRef: c().componentRef,
|
|
633
|
+
componentOptions: c().componentOptions,
|
|
634
|
+
blockChildren: c().blockChildren,
|
|
635
|
+
context: c().context,
|
|
636
|
+
registeredComponents: c().registeredComponents,
|
|
637
|
+
builderBlock: c().builderBlock,
|
|
638
|
+
includeBlockProps: c().includeBlockProps,
|
|
639
|
+
isInteractive: c().isInteractive
|
|
644
640
|
}
|
|
645
641
|
),
|
|
646
642
|
(g = r()) == null ? void 0 : g.map((y) => /* @__PURE__ */ o(
|
|
@@ -663,8 +659,8 @@ function ft(e) {
|
|
|
663
659
|
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
664
660
|
}
|
|
665
661
|
function n() {
|
|
666
|
-
var a,
|
|
667
|
-
V() && !((a = e.blocks) != null && a.length) && ((
|
|
662
|
+
var a, l;
|
|
663
|
+
V() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
668
664
|
{
|
|
669
665
|
type: "builder.clickEmptyBlocks",
|
|
670
666
|
data: {
|
|
@@ -676,8 +672,8 @@ function ft(e) {
|
|
|
676
672
|
));
|
|
677
673
|
}
|
|
678
674
|
function i() {
|
|
679
|
-
var a,
|
|
680
|
-
V() && !((a = e.blocks) != null && a.length) && ((
|
|
675
|
+
var a, l;
|
|
676
|
+
V() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
681
677
|
{
|
|
682
678
|
type: "builder.hoverEmptyBlocks",
|
|
683
679
|
data: {
|
|
@@ -711,8 +707,8 @@ function ft(e) {
|
|
|
711
707
|
] });
|
|
712
708
|
}
|
|
713
709
|
function z(e) {
|
|
714
|
-
var i, a,
|
|
715
|
-
const t =
|
|
710
|
+
var i, a, l;
|
|
711
|
+
const t = le(ee), n = le(Ce);
|
|
716
712
|
return /* @__PURE__ */ o(
|
|
717
713
|
ft,
|
|
718
714
|
{
|
|
@@ -722,7 +718,7 @@ function z(e) {
|
|
|
722
718
|
styleProp: e.styleProp,
|
|
723
719
|
BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
|
|
724
720
|
BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
|
|
725
|
-
children: e.blocks ? /* @__PURE__ */ o(h, { children: (
|
|
721
|
+
children: e.blocks ? /* @__PURE__ */ o(h, { children: (l = e.blocks) == null ? void 0 : l.map((r) => /* @__PURE__ */ o(
|
|
726
722
|
K,
|
|
727
723
|
{
|
|
728
724
|
block: r,
|
|
@@ -738,28 +734,28 @@ function ht(e) {
|
|
|
738
734
|
var P;
|
|
739
735
|
const [t, n] = S(
|
|
740
736
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
741
|
-
), [i, a] = S(() => e.columns || []), [
|
|
737
|
+
), [i, a] = S(() => e.columns || []), [l, r] = S(
|
|
742
738
|
() => e.stackColumnsAt || "tablet"
|
|
743
739
|
);
|
|
744
|
-
function
|
|
740
|
+
function c(w) {
|
|
745
741
|
var I;
|
|
746
742
|
return ((I = i[w]) == null ? void 0 : I.width) || 100 / i.length;
|
|
747
743
|
}
|
|
748
744
|
function s(w) {
|
|
749
745
|
const I = t * (i.length - 1) / i.length;
|
|
750
|
-
return `calc(${
|
|
746
|
+
return `calc(${c(w)}% - ${I}px)`;
|
|
751
747
|
}
|
|
752
748
|
function d({
|
|
753
749
|
stackedStyle: w,
|
|
754
750
|
desktopStyle: I
|
|
755
751
|
}) {
|
|
756
|
-
return
|
|
752
|
+
return l === "tablet" ? w : I;
|
|
757
753
|
}
|
|
758
754
|
function m({
|
|
759
755
|
stackedStyle: w,
|
|
760
756
|
desktopStyle: I
|
|
761
757
|
}) {
|
|
762
|
-
return
|
|
758
|
+
return l === "never" ? I : w;
|
|
763
759
|
}
|
|
764
760
|
const [g, v] = S(
|
|
765
761
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -888,8 +884,8 @@ function xt(e, t) {
|
|
|
888
884
|
return he(e);
|
|
889
885
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
890
886
|
if (n) {
|
|
891
|
-
const i = e.split(n[0]), a = n[3],
|
|
892
|
-
return he(`${i[0]}_${
|
|
887
|
+
const i = e.split(n[0]), a = n[3], l = t.match("x") ? t : `${t}x`;
|
|
888
|
+
return he(`${i[0]}_${l}${a}`);
|
|
893
889
|
}
|
|
894
890
|
return null;
|
|
895
891
|
}
|
|
@@ -905,7 +901,7 @@ function Q(e) {
|
|
|
905
901
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [xt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
906
902
|
}
|
|
907
903
|
function yt(e) {
|
|
908
|
-
var a,
|
|
904
|
+
var a, l, r, c;
|
|
909
905
|
function t() {
|
|
910
906
|
var m;
|
|
911
907
|
const d = e.image || e.src;
|
|
@@ -956,7 +952,7 @@ function yt(e) {
|
|
|
956
952
|
}
|
|
957
953
|
)
|
|
958
954
|
] }),
|
|
959
|
-
e.aspectRatio && !((
|
|
955
|
+
e.aspectRatio && !((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
|
|
960
956
|
"div",
|
|
961
957
|
{
|
|
962
958
|
className: "builder-image-sizer div-40c70c9b",
|
|
@@ -965,7 +961,7 @@ function yt(e) {
|
|
|
965
961
|
}
|
|
966
962
|
}
|
|
967
963
|
) }) : null,
|
|
968
|
-
(
|
|
964
|
+
(c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ o(h, { children: e.children }) : null,
|
|
969
965
|
!e.fitContent && e.children ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
970
966
|
] }),
|
|
971
967
|
/* @__PURE__ */ o("style", { children: `.img-40c70c9b {
|
|
@@ -1220,7 +1216,7 @@ const vt = {
|
|
|
1220
1216
|
});
|
|
1221
1217
|
}
|
|
1222
1218
|
const n = e.get("columns");
|
|
1223
|
-
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((
|
|
1219
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
|
|
1224
1220
|
}
|
|
1225
1221
|
}, {
|
|
1226
1222
|
name: "space",
|
|
@@ -1266,10 +1262,10 @@ const vt = {
|
|
|
1266
1262
|
}]
|
|
1267
1263
|
};
|
|
1268
1264
|
function Ct(e) {
|
|
1269
|
-
const t = X(null), [n, i] = S(() => []), [a,
|
|
1265
|
+
const t = X(null), [n, i] = S(() => []), [a, l] = S(() => []);
|
|
1270
1266
|
return E(() => {
|
|
1271
|
-
var
|
|
1272
|
-
if (!((
|
|
1267
|
+
var c;
|
|
1268
|
+
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
1273
1269
|
return;
|
|
1274
1270
|
const r = t.current.getElementsByTagName("script");
|
|
1275
1271
|
for (let s = 0; s < r.length; s++) {
|
|
@@ -1330,7 +1326,7 @@ const wt = {
|
|
|
1330
1326
|
}]
|
|
1331
1327
|
}, It = ["text/javascript", "application/javascript", "application/ecmascript"], Tt = (e) => It.includes(e.type);
|
|
1332
1328
|
function Rt(e) {
|
|
1333
|
-
const t = X(null), [n, i] = S(() => []), [a,
|
|
1329
|
+
const t = X(null), [n, i] = S(() => []), [a, l] = S(() => []), [r, c] = S(() => !1);
|
|
1334
1330
|
function s() {
|
|
1335
1331
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1336
1332
|
return;
|
|
@@ -1350,7 +1346,7 @@ function Rt(e) {
|
|
|
1350
1346
|
}
|
|
1351
1347
|
}
|
|
1352
1348
|
return E(() => {
|
|
1353
|
-
t.current && !r && (
|
|
1349
|
+
t.current && !r && (c(!0), s());
|
|
1354
1350
|
}, [t.current, r]), /* @__PURE__ */ o(
|
|
1355
1351
|
"div",
|
|
1356
1352
|
{
|
|
@@ -1386,7 +1382,7 @@ const Et = {
|
|
|
1386
1382
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1387
1383
|
onChange: (e) => {
|
|
1388
1384
|
e.delete("srcset"), e.delete("noWebp");
|
|
1389
|
-
function n(r,
|
|
1385
|
+
function n(r, c = 6e4) {
|
|
1390
1386
|
return new Promise((s, d) => {
|
|
1391
1387
|
const m = document.createElement("img");
|
|
1392
1388
|
let g = !1;
|
|
@@ -1396,19 +1392,19 @@ const Et = {
|
|
|
1396
1392
|
console.warn("Image load failed", v.error), d(v.error);
|
|
1397
1393
|
}), m.src = r, setTimeout(() => {
|
|
1398
1394
|
g || d(new Error("Image load timed out"));
|
|
1399
|
-
},
|
|
1395
|
+
}, c);
|
|
1400
1396
|
});
|
|
1401
1397
|
}
|
|
1402
1398
|
function i(r) {
|
|
1403
1399
|
return Math.round(r * 1e3) / 1e3;
|
|
1404
1400
|
}
|
|
1405
|
-
const a = e.get("image"),
|
|
1401
|
+
const a = e.get("image"), l = e.get("aspectRatio");
|
|
1406
1402
|
if (fetch(a).then((r) => r.blob()).then((r) => {
|
|
1407
1403
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1408
|
-
}), a && (!
|
|
1404
|
+
}), a && (!l || l === 0.7041))
|
|
1409
1405
|
return n(a).then((r) => {
|
|
1410
|
-
const
|
|
1411
|
-
e.get("image") === a && (!
|
|
1406
|
+
const c = e.get("aspectRatio");
|
|
1407
|
+
e.get("image") === a && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1412
1408
|
});
|
|
1413
1409
|
}
|
|
1414
1410
|
}, {
|
|
@@ -1720,7 +1716,7 @@ const Lt = {
|
|
|
1720
1716
|
}]
|
|
1721
1717
|
};
|
|
1722
1718
|
function jt(e) {
|
|
1723
|
-
var i, a,
|
|
1719
|
+
var i, a, l, r, c, s, d;
|
|
1724
1720
|
function t() {
|
|
1725
1721
|
return {
|
|
1726
1722
|
...e.autoPlay === !0 ? {
|
|
@@ -1777,7 +1773,7 @@ function jt(e) {
|
|
|
1777
1773
|
children: e.lazyLoad ? null : /* @__PURE__ */ o("source", { type: "video/mp4", src: e.video })
|
|
1778
1774
|
}
|
|
1779
1775
|
),
|
|
1780
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
1776
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
|
|
1781
1777
|
"div",
|
|
1782
1778
|
{
|
|
1783
1779
|
style: {
|
|
@@ -1788,7 +1784,7 @@ function jt(e) {
|
|
|
1788
1784
|
}
|
|
1789
1785
|
}
|
|
1790
1786
|
) }) : null,
|
|
1791
|
-
(
|
|
1787
|
+
(c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
|
|
1792
1788
|
"div",
|
|
1793
1789
|
{
|
|
1794
1790
|
style: {
|
|
@@ -2000,9 +1996,9 @@ const Yt = (e, t, n = !0) => {
|
|
|
2000
1996
|
event: e,
|
|
2001
1997
|
target: t
|
|
2002
1998
|
}) => {
|
|
2003
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top,
|
|
1999
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, l = be(i / n.width), r = be(a / n.height);
|
|
2004
2000
|
return {
|
|
2005
|
-
x:
|
|
2001
|
+
x: l,
|
|
2006
2002
|
y: r
|
|
2007
2003
|
};
|
|
2008
2004
|
}, Gt = (e) => {
|
|
@@ -2021,7 +2017,7 @@ const Yt = (e, t, n = !0) => {
|
|
|
2021
2017
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2022
2018
|
}
|
|
2023
2019
|
};
|
|
2024
|
-
}, Jt = "0.12.
|
|
2020
|
+
}, Jt = "0.12.3", Xt = () => {
|
|
2025
2021
|
Ne("insertMenu", {
|
|
2026
2022
|
name: "_default",
|
|
2027
2023
|
default: !0,
|
|
@@ -2064,7 +2060,7 @@ const Zt = (e = {}) => {
|
|
|
2064
2060
|
options: e
|
|
2065
2061
|
}
|
|
2066
2062
|
}, "*"), window.addEventListener("message", (i) => {
|
|
2067
|
-
var
|
|
2063
|
+
var l, r;
|
|
2068
2064
|
if (!We(e.trustedHosts, i))
|
|
2069
2065
|
return;
|
|
2070
2066
|
const {
|
|
@@ -2073,14 +2069,14 @@ const Zt = (e = {}) => {
|
|
|
2073
2069
|
if (a != null && a.type)
|
|
2074
2070
|
switch (a.type) {
|
|
2075
2071
|
case "builder.evaluate": {
|
|
2076
|
-
const
|
|
2072
|
+
const c = a.data.text, s = a.data.arguments || [], d = a.data.id, m = new Function(c);
|
|
2077
2073
|
let g, v = null;
|
|
2078
2074
|
try {
|
|
2079
2075
|
g = m.apply(null, s);
|
|
2080
2076
|
} catch (y) {
|
|
2081
2077
|
v = y;
|
|
2082
2078
|
}
|
|
2083
|
-
v ? (
|
|
2079
|
+
v ? (l = window.parent) == null || l.postMessage({
|
|
2084
2080
|
type: "builder.evaluateError",
|
|
2085
2081
|
data: {
|
|
2086
2082
|
id: d,
|
|
@@ -2122,7 +2118,7 @@ function en(e) {
|
|
|
2122
2118
|
rootState: f
|
|
2123
2119
|
}));
|
|
2124
2120
|
}
|
|
2125
|
-
function
|
|
2121
|
+
function l(u) {
|
|
2126
2122
|
var b, x, p, T, j;
|
|
2127
2123
|
const f = {
|
|
2128
2124
|
...e.builderContextSignal.content,
|
|
@@ -2143,7 +2139,7 @@ function en(e) {
|
|
|
2143
2139
|
}));
|
|
2144
2140
|
}
|
|
2145
2141
|
S(() => 0);
|
|
2146
|
-
const [r,
|
|
2142
|
+
const [r, c] = S(
|
|
2147
2143
|
() => !1
|
|
2148
2144
|
), [s, d] = S(
|
|
2149
2145
|
() => e.contentWrapper || "div"
|
|
@@ -2159,7 +2155,7 @@ function en(e) {
|
|
|
2159
2155
|
const x = f.data, { breakpoints: p, contentId: T } = x;
|
|
2160
2156
|
if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
|
|
2161
2157
|
return;
|
|
2162
|
-
p &&
|
|
2158
|
+
p && l({
|
|
2163
2159
|
meta: {
|
|
2164
2160
|
breakpoints: p
|
|
2165
2161
|
}
|
|
@@ -2168,7 +2164,7 @@ function en(e) {
|
|
|
2168
2164
|
}
|
|
2169
2165
|
case "builder.contentUpdate": {
|
|
2170
2166
|
const x = f.data, p = x.key || x.alias || x.entry || x.modelName, T = x.data;
|
|
2171
|
-
p === e.model && (
|
|
2167
|
+
p === e.model && (l(T), i(n + 1));
|
|
2172
2168
|
break;
|
|
2173
2169
|
}
|
|
2174
2170
|
}
|
|
@@ -2189,7 +2185,7 @@ function en(e) {
|
|
|
2189
2185
|
var f, b;
|
|
2190
2186
|
if (e.builderContextSignal.content) {
|
|
2191
2187
|
const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, p = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
|
|
2192
|
-
|
|
2188
|
+
ce({
|
|
2193
2189
|
type: "click",
|
|
2194
2190
|
canTrack: D(e.canTrack),
|
|
2195
2191
|
contentId: p,
|
|
@@ -2287,7 +2283,7 @@ function en(e) {
|
|
|
2287
2283
|
apiKey: e.apiKey,
|
|
2288
2284
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2289
2285
|
}).then((T) => {
|
|
2290
|
-
T &&
|
|
2286
|
+
T && l(T);
|
|
2291
2287
|
});
|
|
2292
2288
|
}
|
|
2293
2289
|
return E(() => {
|
|
@@ -2319,7 +2315,7 @@ function en(e) {
|
|
|
2319
2315
|
if ($()) {
|
|
2320
2316
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && D(e.canTrack)) {
|
|
2321
2317
|
const x = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
|
|
2322
|
-
|
|
2318
|
+
ce({
|
|
2323
2319
|
type: "impression",
|
|
2324
2320
|
canTrack: !0,
|
|
2325
2321
|
contentId: p,
|
|
@@ -2334,7 +2330,7 @@ function en(e) {
|
|
|
2334
2330
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2335
2331
|
), g(), I(), W();
|
|
2336
2332
|
}, []), E(() => {
|
|
2337
|
-
e.content &&
|
|
2333
|
+
e.content && l(e.content);
|
|
2338
2334
|
}, [e.content]), E(() => {
|
|
2339
2335
|
}, [r]), E(() => {
|
|
2340
2336
|
g();
|
|
@@ -2375,8 +2371,8 @@ function en(e) {
|
|
|
2375
2371
|
) }) : null });
|
|
2376
2372
|
}
|
|
2377
2373
|
const tn = (e) => {
|
|
2378
|
-
var
|
|
2379
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (
|
|
2374
|
+
var l, r;
|
|
2375
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
|
|
2380
2376
|
let a = "";
|
|
2381
2377
|
if (i && t && n && (a += `
|
|
2382
2378
|
@font-face {
|
|
@@ -2386,16 +2382,16 @@ font-display: fallback;
|
|
|
2386
2382
|
font-weight: 400;
|
|
2387
2383
|
}
|
|
2388
2384
|
`.trim()), e.files)
|
|
2389
|
-
for (const
|
|
2390
|
-
if (!(String(Number(
|
|
2385
|
+
for (const c in e.files) {
|
|
2386
|
+
if (!(String(Number(c)) === c))
|
|
2391
2387
|
continue;
|
|
2392
|
-
const d = e.files[
|
|
2388
|
+
const d = e.files[c];
|
|
2393
2389
|
d && d !== i && (a += `
|
|
2394
2390
|
@font-face {
|
|
2395
2391
|
font-family: "${t}";
|
|
2396
2392
|
src: url('${d}') format('woff2');
|
|
2397
2393
|
font-display: fallback;
|
|
2398
|
-
font-weight: ${
|
|
2394
|
+
font-weight: ${c};
|
|
2399
2395
|
}
|
|
2400
2396
|
`.trim());
|
|
2401
2397
|
}
|
|
@@ -2420,6 +2416,10 @@ ${nn({
|
|
|
2420
2416
|
customFonts: e.customFonts
|
|
2421
2417
|
})}
|
|
2422
2418
|
|
|
2419
|
+
.builder-button {
|
|
2420
|
+
all: unset;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
2423
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
2424
2424
|
margin: 0;
|
|
2425
2425
|
}
|
|
@@ -2441,9 +2441,9 @@ const rn = ({
|
|
|
2441
2441
|
data: t,
|
|
2442
2442
|
locale: n
|
|
2443
2443
|
}) => {
|
|
2444
|
-
var
|
|
2445
|
-
const i = {}, a = ((
|
|
2446
|
-
return (
|
|
2444
|
+
var l, r, c;
|
|
2445
|
+
const i = {}, a = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
|
|
2446
|
+
return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
|
|
2447
2447
|
s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
|
|
2448
2448
|
}), {
|
|
2449
2449
|
...i,
|
|
@@ -2453,7 +2453,7 @@ const rn = ({
|
|
|
2453
2453
|
locale: n
|
|
2454
2454
|
} : {}
|
|
2455
2455
|
};
|
|
2456
|
-
},
|
|
2456
|
+
}, ln = ({
|
|
2457
2457
|
content: e,
|
|
2458
2458
|
data: t
|
|
2459
2459
|
}) => e ? {
|
|
@@ -2478,12 +2478,12 @@ function Se(e) {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
);
|
|
2480
2480
|
function i(C) {
|
|
2481
|
-
|
|
2481
|
+
c((R) => ({
|
|
2482
2482
|
...R,
|
|
2483
2483
|
rootState: C
|
|
2484
2484
|
}));
|
|
2485
2485
|
}
|
|
2486
|
-
const [a,
|
|
2486
|
+
const [a, l] = S(
|
|
2487
2487
|
() => [
|
|
2488
2488
|
...ge(),
|
|
2489
2489
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -2503,8 +2503,8 @@ function Se(e) {
|
|
|
2503
2503
|
}),
|
|
2504
2504
|
{}
|
|
2505
2505
|
)
|
|
2506
|
-
), [r,
|
|
2507
|
-
content:
|
|
2506
|
+
), [r, c] = S(() => ({
|
|
2507
|
+
content: ln({
|
|
2508
2508
|
content: e.content,
|
|
2509
2509
|
data: e.data
|
|
2510
2510
|
}),
|
|
@@ -2561,7 +2561,7 @@ function Se(e) {
|
|
|
2561
2561
|
contentWrapper: e.contentWrapper,
|
|
2562
2562
|
contentWrapperProps: e.contentWrapperProps,
|
|
2563
2563
|
trustedHosts: e.trustedHosts,
|
|
2564
|
-
setBuilderContextSignal:
|
|
2564
|
+
setBuilderContextSignal: c,
|
|
2565
2565
|
children: [
|
|
2566
2566
|
e.isSsrAbTest ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(J, { scriptStr: t }) }) : null,
|
|
2567
2567
|
/* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
|
|
@@ -2587,7 +2587,7 @@ function Se(e) {
|
|
|
2587
2587
|
);
|
|
2588
2588
|
}
|
|
2589
2589
|
function Ae(e) {
|
|
2590
|
-
var r,
|
|
2590
|
+
var r, c;
|
|
2591
2591
|
const [t, n] = S(
|
|
2592
2592
|
() => Dt({
|
|
2593
2593
|
canTrack: D(e.canTrack),
|
|
@@ -2607,7 +2607,7 @@ function Ae(e) {
|
|
|
2607
2607
|
function a() {
|
|
2608
2608
|
return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function l() {
|
|
2611
2611
|
var s;
|
|
2612
2612
|
return t ? {
|
|
2613
2613
|
...e.content,
|
|
@@ -2629,7 +2629,7 @@ function Ae(e) {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
),
|
|
2631
2631
|
/* @__PURE__ */ o(J, { scriptStr: i() }),
|
|
2632
|
-
(
|
|
2632
|
+
(c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ o(
|
|
2633
2633
|
Se,
|
|
2634
2634
|
{
|
|
2635
2635
|
content: s,
|
|
@@ -2657,7 +2657,7 @@ function Ae(e) {
|
|
|
2657
2657
|
/* @__PURE__ */ o(
|
|
2658
2658
|
Se,
|
|
2659
2659
|
{
|
|
2660
|
-
content:
|
|
2660
|
+
content: l(),
|
|
2661
2661
|
showContent: !0,
|
|
2662
2662
|
model: e.model,
|
|
2663
2663
|
data: e.data,
|
|
@@ -2679,7 +2679,7 @@ function Ae(e) {
|
|
|
2679
2679
|
)
|
|
2680
2680
|
] });
|
|
2681
2681
|
}
|
|
2682
|
-
const
|
|
2682
|
+
const cn = async ({
|
|
2683
2683
|
builderContextValue: e,
|
|
2684
2684
|
symbol: t
|
|
2685
2685
|
}) => {
|
|
@@ -2699,7 +2699,7 @@ const ln = async ({
|
|
|
2699
2699
|
});
|
|
2700
2700
|
};
|
|
2701
2701
|
function sn(e) {
|
|
2702
|
-
var
|
|
2702
|
+
var l, r, c, s;
|
|
2703
2703
|
function t() {
|
|
2704
2704
|
var d, m;
|
|
2705
2705
|
return [
|
|
@@ -2714,7 +2714,7 @@ function sn(e) {
|
|
|
2714
2714
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
2715
2715
|
});
|
|
2716
2716
|
function a() {
|
|
2717
|
-
n ||
|
|
2717
|
+
n || cn({
|
|
2718
2718
|
symbol: e.symbol,
|
|
2719
2719
|
builderContextValue: e.builderContext
|
|
2720
2720
|
}).then((d) => {
|
|
@@ -2732,13 +2732,13 @@ function sn(e) {
|
|
|
2732
2732
|
apiKey: e.builderContext.apiKey,
|
|
2733
2733
|
context: {
|
|
2734
2734
|
...e.builderContext.context,
|
|
2735
|
-
symbolId: (
|
|
2735
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
2736
2736
|
},
|
|
2737
2737
|
customComponents: Object.values(e.builderComponents),
|
|
2738
2738
|
data: {
|
|
2739
2739
|
...(r = e.symbol) == null ? void 0 : r.data,
|
|
2740
2740
|
...e.builderContext.localState,
|
|
2741
|
-
...(
|
|
2741
|
+
...(c = n == null ? void 0 : n.data) == null ? void 0 : c.state
|
|
2742
2742
|
},
|
|
2743
2743
|
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
2744
2744
|
content: n
|