@builder.io/sdk-react 0.12.5 → 0.12.6
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 +16 -16
- package/lib/browser/index.mjs +195 -181
- package/lib/edge/index.cjs +21 -21
- package/lib/edge/index.mjs +122 -108
- package/lib/node/index.cjs +9 -9
- package/lib/node/index.mjs +144 -130
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +5 -1
package/lib/edge/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as p, Fragment as F, jsxs as ce } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as sr, useState as V, useContext as $n, useRef as qt, useEffect as Q, createElement as
|
|
4
|
-
import { T as We, i as je, j as Ae, k as
|
|
3
|
+
import { createContext as sr, useState as V, useContext as $n, useRef as qt, useEffect as Q, createElement as Hr } from "react";
|
|
4
|
+
import { T as We, i as je, j as Ae, k as Kr, l as Re, m as mt, n as Zt, r as Gr, o as gt, p as Hn, a as zr, c as Xr, b as lr, q as Yr, u as Kn, v as Gn, w as Jr } from "./server-entry-57d4ae22.js";
|
|
5
5
|
import { _ as Go, h as zo, f as Xo, g as Yo, e as Jo, d as qo, s as Zo, t as Qo } from "./server-entry-57d4ae22.js";
|
|
6
|
-
const
|
|
6
|
+
const qr = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Zr = (e) => typeof e == "string" && qr.has(e.toLowerCase());
|
|
7
7
|
function Qt(e) {
|
|
8
|
-
return /* @__PURE__ */ p(F, { children:
|
|
8
|
+
return /* @__PURE__ */ p(F, { children: Zr(e.TagName) ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ p(F, { children: typeof e.TagName == "string" ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
9
9
|
}
|
|
10
10
|
const tt = () => {
|
|
11
11
|
switch (We) {
|
|
@@ -20,7 +20,7 @@ const tt = () => {
|
|
|
20
20
|
return "class";
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
function
|
|
23
|
+
function Qr(e) {
|
|
24
24
|
return /* @__PURE__ */ p(
|
|
25
25
|
Qt,
|
|
26
26
|
{
|
|
@@ -55,7 +55,7 @@ const en = sr({
|
|
|
55
55
|
BlocksWrapper: "div",
|
|
56
56
|
BlocksWrapperProps: {}
|
|
57
57
|
}), cr = sr({ registeredComponents: {} });
|
|
58
|
-
function
|
|
58
|
+
function ei(e) {
|
|
59
59
|
var t;
|
|
60
60
|
return {
|
|
61
61
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -78,14 +78,14 @@ const ur = ({
|
|
|
78
78
|
builder: e,
|
|
79
79
|
context: t,
|
|
80
80
|
event: r
|
|
81
|
-
}),
|
|
81
|
+
}), ti = () => ({
|
|
82
82
|
isEditing: je(),
|
|
83
83
|
isBrowser: Ae(),
|
|
84
84
|
isServer: !Ae(),
|
|
85
|
-
getUserAttributes: () =>
|
|
86
|
-
}),
|
|
85
|
+
getUserAttributes: () => Kr()
|
|
86
|
+
}), ni = (e, {
|
|
87
87
|
isExpression: t = !0
|
|
88
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
88
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ri = ({
|
|
89
89
|
code: e,
|
|
90
90
|
builder: t,
|
|
91
91
|
context: r,
|
|
@@ -98,23 +98,40 @@ const ur = ({
|
|
|
98
98
|
builder: t,
|
|
99
99
|
context: r,
|
|
100
100
|
event: n,
|
|
101
|
-
state:
|
|
101
|
+
state: dr({
|
|
102
|
+
rootState: s,
|
|
103
|
+
localState: i,
|
|
104
|
+
rootSetState: a
|
|
105
|
+
})
|
|
102
106
|
});
|
|
103
107
|
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
104
108
|
};
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
function dr({
|
|
110
|
+
rootState: e,
|
|
111
|
+
localState: t,
|
|
112
|
+
rootSetState: r
|
|
113
|
+
}) {
|
|
108
114
|
return new Proxy(e, {
|
|
109
|
-
get: (n, i) =>
|
|
115
|
+
get: (n, i) => {
|
|
116
|
+
if (t && i in t)
|
|
117
|
+
return t[i];
|
|
118
|
+
const a = n[i];
|
|
119
|
+
return typeof a == "object" ? dr({
|
|
120
|
+
rootState: a,
|
|
121
|
+
localState: void 0,
|
|
122
|
+
rootSetState: r ? (s) => {
|
|
123
|
+
n[i] = s, r(n);
|
|
124
|
+
} : void 0
|
|
125
|
+
}) : a;
|
|
126
|
+
},
|
|
110
127
|
set: (n, i, a) => {
|
|
111
128
|
if (t && i in t)
|
|
112
129
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
113
|
-
return
|
|
130
|
+
return n[i] = a, r == null || r(n), !0;
|
|
114
131
|
}
|
|
115
132
|
});
|
|
116
133
|
}
|
|
117
|
-
const
|
|
134
|
+
const fr = (e, t, r) => {
|
|
118
135
|
if (Object(e) !== e)
|
|
119
136
|
return e;
|
|
120
137
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -122,7 +139,7 @@ const dr = (e, t, r) => {
|
|
|
122
139
|
};
|
|
123
140
|
var _, ii = function(e) {
|
|
124
141
|
function t(o) {
|
|
125
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
142
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
126
143
|
}
|
|
127
144
|
function r(o) {
|
|
128
145
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vn.test(String.fromCharCode(o));
|
|
@@ -185,7 +202,7 @@ var _, ii = function(e) {
|
|
|
185
202
|
break;
|
|
186
203
|
else if (o === 160)
|
|
187
204
|
++d;
|
|
188
|
-
else if (5760 <= o &&
|
|
205
|
+
else if (5760 <= o && Lr.test(String.fromCharCode(o)))
|
|
189
206
|
++d;
|
|
190
207
|
else
|
|
191
208
|
break;
|
|
@@ -298,26 +315,26 @@ var _, ii = function(e) {
|
|
|
298
315
|
return;
|
|
299
316
|
case 37:
|
|
300
317
|
case 42:
|
|
301
|
-
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(
|
|
318
|
+
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(Dr, 1);
|
|
302
319
|
return;
|
|
303
320
|
case 124:
|
|
304
321
|
case 38:
|
|
305
|
-
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? _n : Wn, 2) : l === 61 ? b(Te, 2) : b(o === 124 ?
|
|
322
|
+
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? _n : Wn, 2) : l === 61 ? b(Te, 2) : b(o === 124 ? Or : Nr, 1);
|
|
306
323
|
return;
|
|
307
324
|
case 94:
|
|
308
|
-
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(
|
|
325
|
+
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(Pr, 1);
|
|
309
326
|
return;
|
|
310
327
|
case 43:
|
|
311
328
|
case 45:
|
|
312
|
-
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ft.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : b(
|
|
329
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ft.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : b(Rr, 2) : l === 61 ? b(Te, 2) : b(Ur, 1);
|
|
313
330
|
return;
|
|
314
331
|
case 60:
|
|
315
332
|
case 62:
|
|
316
|
-
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Te, c + 1) : b(
|
|
333
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Te, c + 1) : b(Fr, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), b(Br, c));
|
|
317
334
|
return;
|
|
318
335
|
case 61:
|
|
319
336
|
case 33:
|
|
320
|
-
x.charCodeAt(d + 1) === 61 ? b(
|
|
337
|
+
x.charCodeAt(d + 1) === 61 ? b(Mr, x.charCodeAt(d + 2) === 61 ? 3 : 2) : b(o === 61 ? Un : Dn, 1);
|
|
321
338
|
return;
|
|
322
339
|
case 126:
|
|
323
340
|
return b(Dn, 1);
|
|
@@ -402,7 +419,7 @@ var _, ii = function(e) {
|
|
|
402
419
|
}
|
|
403
420
|
function Y() {
|
|
404
421
|
var o = $(), l = Ne;
|
|
405
|
-
!Be &&
|
|
422
|
+
!Be && Wr(o) && (l = Ar[o]), s(l, o);
|
|
406
423
|
}
|
|
407
424
|
function y() {
|
|
408
425
|
Ot = X, xe = Pe, Pt = Rt, v();
|
|
@@ -480,7 +497,7 @@ var _, ii = function(e) {
|
|
|
480
497
|
case En:
|
|
481
498
|
return He || O.Ib || n(X, "'return' outside of function"), y(), W(me) || Ce() ? l.K = null : (l.K = te(), ue()), E(l, "ReturnStatement");
|
|
482
499
|
case Ut:
|
|
483
|
-
for (y(), l.Qb = M(), l.tb = [], K(Ge), z.push(
|
|
500
|
+
for (y(), l.Qb = M(), l.tb = [], K(Ge), z.push($r); A !== Me; )
|
|
484
501
|
A === Bt || A === bn ? (o = A === Bt, h && E(h, "SwitchCase"), l.tb.push(h = H()), h.da = [], y(), o ? h.test = te() : (c && n(Ot, "Multiple default clauses"), c = !0, h.test = null), K(ze)) : (h || w(), h.da.push(j()));
|
|
485
502
|
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
486
503
|
case In:
|
|
@@ -631,7 +648,7 @@ var _, ii = function(e) {
|
|
|
631
648
|
case Ft:
|
|
632
649
|
return o = H(), y(), It(o, !1);
|
|
633
650
|
case An:
|
|
634
|
-
return o = H(), y(), o.callee = Ve(lt(), !0), o.arguments = W(pe) ? Tt(de, !1) :
|
|
651
|
+
return o = H(), y(), o.callee = Ve(lt(), !0), o.arguments = W(pe) ? Tt(de, !1) : jr, E(o, "NewExpression");
|
|
635
652
|
}
|
|
636
653
|
w();
|
|
637
654
|
}
|
|
@@ -662,7 +679,7 @@ var _, ii = function(e) {
|
|
|
662
679
|
}
|
|
663
680
|
function fe(o) {
|
|
664
681
|
var l = H();
|
|
665
|
-
return o && O.yb === "everywhere" && (o = !1), A === Ne ? (!o && (O.yb &&
|
|
682
|
+
return o && O.yb === "everywhere" && (o = !1), A === Ne ? (!o && (O.yb && _r(le) || se && Ln(le)) && x.slice(X, Pe).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : w(), $e = !1, y(), E(l, "Identifier");
|
|
666
683
|
}
|
|
667
684
|
e.version = "0.5.0";
|
|
668
685
|
var O, x = "", Oe, jt;
|
|
@@ -685,7 +702,7 @@ var _, ii = function(e) {
|
|
|
685
702
|
dc: null,
|
|
686
703
|
sourceFile: null,
|
|
687
704
|
vb: null
|
|
688
|
-
}, d = 0, X = 0, Pe = 0, At, Rt, A, le, $e, Ie, he, Ot = 0, xe = 0, Pt, He, z, se,
|
|
705
|
+
}, d = 0, X = 0, Pe = 0, At, Rt, A, le, $e, Ie, he, Ot = 0, xe = 0, Pt, He, z, se, jr = [], Ke = {
|
|
689
706
|
type: "num"
|
|
690
707
|
}, mn = {
|
|
691
708
|
type: "regexp"
|
|
@@ -758,7 +775,7 @@ var _, ii = function(e) {
|
|
|
758
775
|
l: "in",
|
|
759
776
|
L: 7,
|
|
760
777
|
m: !0
|
|
761
|
-
},
|
|
778
|
+
}, Ar = {
|
|
762
779
|
break: Mt,
|
|
763
780
|
case: Bt,
|
|
764
781
|
catch: gn,
|
|
@@ -842,7 +859,7 @@ var _, ii = function(e) {
|
|
|
842
859
|
}, Te = {
|
|
843
860
|
Cb: !0,
|
|
844
861
|
m: !0
|
|
845
|
-
},
|
|
862
|
+
}, Rr = {
|
|
846
863
|
cc: !0,
|
|
847
864
|
prefix: !0,
|
|
848
865
|
$b: !0
|
|
@@ -855,34 +872,34 @@ var _, ii = function(e) {
|
|
|
855
872
|
}, Wn = {
|
|
856
873
|
L: 2,
|
|
857
874
|
m: !0
|
|
858
|
-
},
|
|
875
|
+
}, Or = {
|
|
859
876
|
L: 3,
|
|
860
877
|
m: !0
|
|
861
|
-
},
|
|
878
|
+
}, Pr = {
|
|
862
879
|
L: 4,
|
|
863
880
|
m: !0
|
|
864
|
-
},
|
|
881
|
+
}, Nr = {
|
|
865
882
|
L: 5,
|
|
866
883
|
m: !0
|
|
867
|
-
},
|
|
884
|
+
}, Mr = {
|
|
868
885
|
L: 6,
|
|
869
886
|
m: !0
|
|
870
|
-
},
|
|
887
|
+
}, Br = {
|
|
871
888
|
L: 7,
|
|
872
889
|
m: !0
|
|
873
|
-
},
|
|
890
|
+
}, Fr = {
|
|
874
891
|
L: 8,
|
|
875
892
|
m: !0
|
|
876
|
-
},
|
|
893
|
+
}, Ur = {
|
|
877
894
|
L: 9,
|
|
878
895
|
prefix: !0,
|
|
879
896
|
m: !0
|
|
880
|
-
},
|
|
897
|
+
}, Dr = {
|
|
881
898
|
L: 10,
|
|
882
899
|
m: !0
|
|
883
|
-
},
|
|
900
|
+
}, _r = i("class enum extends super const export import"), Ln = i("implements interface let package private protected public static yield"), dt = i("eval arguments"), Wr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Lr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Vn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ft = /[\n\r\u2028\u2029]/, ht = /\r\n|[\n\r\u2028\u2029]/g, Be, Vt = {
|
|
884
901
|
kind: "loop"
|
|
885
|
-
},
|
|
902
|
+
}, $r = {
|
|
886
903
|
kind: "switch"
|
|
887
904
|
};
|
|
888
905
|
}, zt = zt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
@@ -928,7 +945,7 @@ var zn = {
|
|
|
928
945
|
configurable: !1,
|
|
929
946
|
enumerable: !0,
|
|
930
947
|
writable: !0
|
|
931
|
-
},
|
|
948
|
+
}, hr = {
|
|
932
949
|
STEP_ERROR: !0
|
|
933
950
|
}, Le = {
|
|
934
951
|
SCOPE_REFERENCE: !0
|
|
@@ -987,7 +1004,7 @@ _.lb = function() {
|
|
|
987
1004
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
988
1005
|
r = null;
|
|
989
1006
|
else {
|
|
990
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
1007
|
+
this.ca.shift(), 0 <= r.interval && gr(this, r, r.interval);
|
|
991
1008
|
var n = new k(r.node, r.scope);
|
|
992
1009
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
993
1010
|
}
|
|
@@ -1000,7 +1017,7 @@ _.lb = function() {
|
|
|
1000
1017
|
try {
|
|
1001
1018
|
var a = this.rb[n.type](e, r, n);
|
|
1002
1019
|
} catch (s) {
|
|
1003
|
-
if (s !==
|
|
1020
|
+
if (s !== hr)
|
|
1004
1021
|
throw this.value !== s && (this.value = void 0), s;
|
|
1005
1022
|
} finally {
|
|
1006
1023
|
Qe = i;
|
|
@@ -1066,7 +1083,7 @@ function si(e, t) {
|
|
|
1066
1083
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1067
1084
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ae), e.Z.H = "Function", n = function(i, a) {
|
|
1068
1085
|
var s = e.o[e.o.length - 1];
|
|
1069
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F =
|
|
1086
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F = pr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1070
1087
|
}, q(e, e.O, "apply", n), n = function(i) {
|
|
1071
1088
|
var a = e.o[e.o.length - 1];
|
|
1072
1089
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1364,7 +1381,7 @@ function vi(e, t) {
|
|
|
1364
1381
|
}
|
|
1365
1382
|
return e.Ia(i);
|
|
1366
1383
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1367
|
-
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1384
|
+
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = pr(e, i), i = i.filter(function(u) {
|
|
1368
1385
|
return typeof u == "string" || typeof u == "number";
|
|
1369
1386
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1370
1387
|
try {
|
|
@@ -1550,7 +1567,7 @@ function ge(e, t) {
|
|
|
1550
1567
|
e.g(r, n[i], t[n[i]]);
|
|
1551
1568
|
return r;
|
|
1552
1569
|
}
|
|
1553
|
-
function
|
|
1570
|
+
function pr(e, t) {
|
|
1554
1571
|
var r = [], n;
|
|
1555
1572
|
for (n in t.h)
|
|
1556
1573
|
r[n] = e.G(t, n);
|
|
@@ -1688,12 +1705,12 @@ function Yt(e, t, r) {
|
|
|
1688
1705
|
var i = t.body && t.body[0];
|
|
1689
1706
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1690
1707
|
}
|
|
1691
|
-
return i = e.s(null), n = new
|
|
1708
|
+
return i = e.s(null), n = new vr(r, n, i), r || ai(e, n.object), rt(e, t, n), n;
|
|
1692
1709
|
}
|
|
1693
1710
|
function ln(e, t, r) {
|
|
1694
1711
|
if (!t)
|
|
1695
1712
|
throw Error("parentScope required");
|
|
1696
|
-
return e = r || e.s(null), new
|
|
1713
|
+
return e = r || e.s(null), new vr(t, t.S, e);
|
|
1697
1714
|
}
|
|
1698
1715
|
function cn(e, t) {
|
|
1699
1716
|
for (var r = sn(e); r && r !== e.N; ) {
|
|
@@ -1705,7 +1722,7 @@ function cn(e, t) {
|
|
|
1705
1722
|
return e.G(r.object, t);
|
|
1706
1723
|
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1707
1724
|
}
|
|
1708
|
-
function
|
|
1725
|
+
function mr(e, t, r) {
|
|
1709
1726
|
for (var n = sn(e), i = n.S; n && n !== e.N; ) {
|
|
1710
1727
|
if (t in n.object.h) {
|
|
1711
1728
|
try {
|
|
@@ -1777,10 +1794,10 @@ function un(e, t) {
|
|
|
1777
1794
|
return t[0] === Le ? cn(e, t[1]) : e.G(t[0], t[1]);
|
|
1778
1795
|
}
|
|
1779
1796
|
function dn(e, t, r) {
|
|
1780
|
-
return t[0] === Le ?
|
|
1797
|
+
return t[0] === Le ? mr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1781
1798
|
}
|
|
1782
1799
|
function C(e, t, r) {
|
|
1783
|
-
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Xt(e, t, r)), ot(e, 4, t),
|
|
1800
|
+
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Xt(e, t, r)), ot(e, 4, t), hr) : r === void 0 ? t : r;
|
|
1784
1801
|
}
|
|
1785
1802
|
function ot(e, t, r, n) {
|
|
1786
1803
|
if (t === 0)
|
|
@@ -1873,9 +1890,9 @@ function Jn(e, t, r) {
|
|
|
1873
1890
|
}
|
|
1874
1891
|
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], yt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1875
1892
|
}
|
|
1876
|
-
return t = new yi(u, i, n, s, t ? r : -1),
|
|
1893
|
+
return t = new yi(u, i, n, s, t ? r : -1), gr(e, t, r), t.Db;
|
|
1877
1894
|
}
|
|
1878
|
-
function
|
|
1895
|
+
function gr(e, t, r) {
|
|
1879
1896
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1880
1897
|
return n.time - i.time;
|
|
1881
1898
|
});
|
|
@@ -1916,7 +1933,7 @@ _.ec = function(e) {
|
|
|
1916
1933
|
function k(e, t) {
|
|
1917
1934
|
this.node = e, this.scope = t;
|
|
1918
1935
|
}
|
|
1919
|
-
function
|
|
1936
|
+
function vr(e, t, r) {
|
|
1920
1937
|
this.Va = e, this.S = t, this.object = r;
|
|
1921
1938
|
}
|
|
1922
1939
|
function B(e) {
|
|
@@ -2501,7 +2518,7 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2501
2518
|
g.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2502
2519
|
r = r.fa;
|
|
2503
2520
|
var n = t.A || 0, i = r[n];
|
|
2504
|
-
for (t.Bb && i && (
|
|
2521
|
+
for (t.Bb && i && (mr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2505
2522
|
if (i.ua)
|
|
2506
2523
|
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2507
2524
|
i = r[++n];
|
|
@@ -2575,7 +2592,7 @@ function theFunction() {
|
|
|
2575
2592
|
}
|
|
2576
2593
|
theFunction();
|
|
2577
2594
|
`, U = (I, P) => {
|
|
2578
|
-
const $ =
|
|
2595
|
+
const $ = fr(u, I, P);
|
|
2579
2596
|
a == null || a($);
|
|
2580
2597
|
}, N = function(I, P) {
|
|
2581
2598
|
f.forEach(([$, Y]) => {
|
|
@@ -2603,7 +2620,7 @@ const wi = () => {
|
|
|
2603
2620
|
return !1;
|
|
2604
2621
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), r = (n = process.env.NODE_OPTIONS) == null ? void 0 : n.includes("--no-node-snapshot");
|
|
2605
2622
|
return e && t && !r ? (Re.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;
|
|
2606
|
-
}, Ci = (e) => Ae() || wi() ?
|
|
2623
|
+
}, Ci = (e) => Ae() || wi() ? ri(e) : Si(e);
|
|
2607
2624
|
function it({
|
|
2608
2625
|
code: e,
|
|
2609
2626
|
context: t,
|
|
@@ -2618,10 +2635,10 @@ function it({
|
|
|
2618
2635
|
return;
|
|
2619
2636
|
}
|
|
2620
2637
|
const u = {
|
|
2621
|
-
code:
|
|
2638
|
+
code: ni(e, {
|
|
2622
2639
|
isExpression: s
|
|
2623
2640
|
}),
|
|
2624
|
-
builder:
|
|
2641
|
+
builder: ti(),
|
|
2625
2642
|
context: t,
|
|
2626
2643
|
event: a,
|
|
2627
2644
|
rootSetState: i,
|
|
@@ -2663,7 +2680,7 @@ const Ei = ({
|
|
|
2663
2680
|
rootSetState: i,
|
|
2664
2681
|
context: t
|
|
2665
2682
|
});
|
|
2666
|
-
|
|
2683
|
+
fr(s, u, m);
|
|
2667
2684
|
}
|
|
2668
2685
|
return s;
|
|
2669
2686
|
};
|
|
@@ -2739,7 +2756,7 @@ const Ii = ({
|
|
|
2739
2756
|
},
|
|
2740
2757
|
block: n
|
|
2741
2758
|
}));
|
|
2742
|
-
},
|
|
2759
|
+
}, yr = {
|
|
2743
2760
|
small: {
|
|
2744
2761
|
min: 320,
|
|
2745
2762
|
default: 321,
|
|
@@ -2755,11 +2772,11 @@ const Ii = ({
|
|
|
2755
2772
|
default: 991,
|
|
2756
2773
|
max: 1200
|
|
2757
2774
|
}
|
|
2758
|
-
}, Qn = (e, t =
|
|
2775
|
+
}, Qn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, br = ({
|
|
2759
2776
|
small: e,
|
|
2760
2777
|
medium: t
|
|
2761
2778
|
}) => {
|
|
2762
|
-
const r = Zt(
|
|
2779
|
+
const r = Zt(yr);
|
|
2763
2780
|
if (!e || !t)
|
|
2764
2781
|
return r;
|
|
2765
2782
|
const n = Math.floor(e / 2);
|
|
@@ -2781,10 +2798,10 @@ const Ii = ({
|
|
|
2781
2798
|
min: a,
|
|
2782
2799
|
default: a + 1
|
|
2783
2800
|
}, r;
|
|
2784
|
-
}, ji = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(),
|
|
2801
|
+
}, ji = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), xr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2785
2802
|
if (typeof n == "string")
|
|
2786
2803
|
return `${ji(r)}: ${n};`;
|
|
2787
|
-
}).filter(mt), Ai = (e) =>
|
|
2804
|
+
}).filter(mt), Ai = (e) => xr(e).join(`
|
|
2788
2805
|
`), Kt = ({
|
|
2789
2806
|
mediaQuery: e,
|
|
2790
2807
|
className: t,
|
|
@@ -2821,7 +2838,7 @@ function Ri(e) {
|
|
|
2821
2838
|
rootSetState: e.context.rootSetState,
|
|
2822
2839
|
context: e.context.context,
|
|
2823
2840
|
shouldEvaluateBindings: !0
|
|
2824
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2841
|
+
}), i = n.responsiveStyles, a = e.context.content, s = br(
|
|
2825
2842
|
((I = a == null ? void 0 : a.meta) == null ? void 0 : I.breakpoints) || {}
|
|
2826
2843
|
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small, v = n.id;
|
|
2827
2844
|
if (!v)
|
|
@@ -2860,7 +2877,7 @@ const Pi = (e) => `on${Oi(e)}`, Ni = (e, t) => (r) => it({
|
|
|
2860
2877
|
event: r,
|
|
2861
2878
|
isExpression: !1
|
|
2862
2879
|
});
|
|
2863
|
-
function
|
|
2880
|
+
function Sr(e) {
|
|
2864
2881
|
var n;
|
|
2865
2882
|
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2866
2883
|
for (const i in r) {
|
|
@@ -2889,17 +2906,17 @@ function Mi({
|
|
|
2889
2906
|
const Bi = ({
|
|
2890
2907
|
block: e,
|
|
2891
2908
|
context: t
|
|
2892
|
-
}) =>
|
|
2909
|
+
}) => kr(Mi({
|
|
2893
2910
|
style: e.style || {},
|
|
2894
2911
|
context: t,
|
|
2895
2912
|
block: e
|
|
2896
2913
|
}));
|
|
2897
|
-
function
|
|
2914
|
+
function kr(e) {
|
|
2898
2915
|
switch (We) {
|
|
2899
2916
|
case "svelte":
|
|
2900
2917
|
case "vue":
|
|
2901
2918
|
case "solid":
|
|
2902
|
-
return
|
|
2919
|
+
return xr(e).join(" ");
|
|
2903
2920
|
case "qwik":
|
|
2904
2921
|
case "reactNative":
|
|
2905
2922
|
case "react":
|
|
@@ -2945,7 +2962,7 @@ function Di(e) {
|
|
|
2945
2962
|
block: e.block,
|
|
2946
2963
|
context: e.context
|
|
2947
2964
|
}),
|
|
2948
|
-
actionAttributes:
|
|
2965
|
+
actionAttributes: Sr({
|
|
2949
2966
|
block: e.block,
|
|
2950
2967
|
rootState: e.context.rootState,
|
|
2951
2968
|
rootSetState: e.context.rootSetState,
|
|
@@ -2967,7 +2984,7 @@ function _i(e) {
|
|
|
2967
2984
|
block: e.block,
|
|
2968
2985
|
context: e.context
|
|
2969
2986
|
}),
|
|
2970
|
-
...
|
|
2987
|
+
...Sr({
|
|
2971
2988
|
block: e.block,
|
|
2972
2989
|
rootState: e.context.rootState,
|
|
2973
2990
|
rootSetState: e.context.rootSetState,
|
|
@@ -3099,7 +3116,7 @@ function St(e) {
|
|
|
3099
3116
|
blockChildren: (N = n().children) != null ? N : [],
|
|
3100
3117
|
componentRef: (I = t == null ? void 0 : t()) == null ? void 0 : I.component,
|
|
3101
3118
|
componentOptions: {
|
|
3102
|
-
...
|
|
3119
|
+
...ei(n()),
|
|
3103
3120
|
builderContext: e.context,
|
|
3104
3121
|
...((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Core:Button" || (($ = t == null ? void 0 : t()) == null ? void 0 : $.name) === "Symbol" || ((Y = t == null ? void 0 : t()) == null ? void 0 : Y.name) === "Columns" ? {
|
|
3105
3122
|
builderLinkComponent: e.linkComponent
|
|
@@ -3325,7 +3342,7 @@ function $i(e) {
|
|
|
3325
3342
|
}
|
|
3326
3343
|
function P(y) {
|
|
3327
3344
|
var Z, ne;
|
|
3328
|
-
return
|
|
3345
|
+
return br(
|
|
3329
3346
|
((ne = (Z = e.builderContext.content) == null ? void 0 : Z.meta) == null ? void 0 : ne.breakpoints) || {}
|
|
3330
3347
|
)[y].max;
|
|
3331
3348
|
}
|
|
@@ -3374,7 +3391,7 @@ function $i(e) {
|
|
|
3374
3391
|
href: y.link
|
|
3375
3392
|
} : {},
|
|
3376
3393
|
[tt()]: "builder-column",
|
|
3377
|
-
style:
|
|
3394
|
+
style: kr(I(L))
|
|
3378
3395
|
},
|
|
3379
3396
|
children: /* @__PURE__ */ p(
|
|
3380
3397
|
kt,
|
|
@@ -4352,7 +4369,7 @@ function mo(e) {
|
|
|
4352
4369
|
);
|
|
4353
4370
|
}
|
|
4354
4371
|
const nr = () => [{
|
|
4355
|
-
component:
|
|
4372
|
+
component: Qr,
|
|
4356
4373
|
...Yi
|
|
4357
4374
|
}, {
|
|
4358
4375
|
component: $i,
|
|
@@ -4477,24 +4494,24 @@ const nr = () => [{
|
|
|
4477
4494
|
thisScriptEl?.remove();
|
|
4478
4495
|
}
|
|
4479
4496
|
return;
|
|
4480
|
-
}`,
|
|
4497
|
+
}`, wr = "builderIoAbTest", Cr = "builderIoRenderContent", pt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4481
4498
|
...t,
|
|
4482
4499
|
testVariationId: t.id,
|
|
4483
4500
|
id: e == null ? void 0 : e.id
|
|
4484
4501
|
})), yo = ({
|
|
4485
4502
|
canTrack: e,
|
|
4486
4503
|
content: t
|
|
4487
|
-
}) => !(!(pt(t).length > 0) || !e || Ae()), bo = (e) => e === "react" || e === "reactNative",
|
|
4488
|
-
window.${
|
|
4489
|
-
window.${
|
|
4504
|
+
}) => !(!(pt(t).length > 0) || !e || Ae()), bo = (e) => e === "react" || e === "reactNative", Er = bo(We), xo = () => `
|
|
4505
|
+
window.${wr} = ${go}
|
|
4506
|
+
window.${Cr} = ${vo}
|
|
4490
4507
|
`, So = (e, t) => `
|
|
4491
|
-
window.${
|
|
4492
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4508
|
+
window.${wr}(
|
|
4509
|
+
"${t}",${JSON.stringify(e)}, ${Er}
|
|
4493
4510
|
)`, ko = ({
|
|
4494
4511
|
contentId: e,
|
|
4495
4512
|
variationId: t
|
|
4496
|
-
}) => `window.${
|
|
4497
|
-
"${t}", "${e}", ${
|
|
4513
|
+
}) => `window.${Cr}(
|
|
4514
|
+
"${t}", "${e}", ${Er}
|
|
4498
4515
|
)`;
|
|
4499
4516
|
function Jt(e) {
|
|
4500
4517
|
return /* @__PURE__ */ p(
|
|
@@ -4506,7 +4523,7 @@ function Jt(e) {
|
|
|
4506
4523
|
);
|
|
4507
4524
|
}
|
|
4508
4525
|
const wo = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4509
|
-
function
|
|
4526
|
+
function Ir(e, t) {
|
|
4510
4527
|
const r = new URL(t.origin), n = r.hostname;
|
|
4511
4528
|
return (e || wo).findIndex((i) => i.startsWith("*.") ? n.endsWith(i.slice(1)) : i === n) > -1;
|
|
4512
4529
|
}
|
|
@@ -4552,8 +4569,8 @@ const Co = (e, t, r = !0) => {
|
|
|
4552
4569
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4553
4570
|
}
|
|
4554
4571
|
};
|
|
4555
|
-
}, To = "0.12.
|
|
4556
|
-
|
|
4572
|
+
}, To = "0.12.6", jo = () => {
|
|
4573
|
+
Gr("insertMenu", {
|
|
4557
4574
|
name: "_default",
|
|
4558
4575
|
default: !0,
|
|
4559
4576
|
items: [{
|
|
@@ -4596,7 +4613,7 @@ const Ao = (e = {}) => {
|
|
|
4596
4613
|
}
|
|
4597
4614
|
}, "*"), window.addEventListener("message", (n) => {
|
|
4598
4615
|
var a, s;
|
|
4599
|
-
if (!
|
|
4616
|
+
if (!Ir(e.trustedHosts, n))
|
|
4600
4617
|
return;
|
|
4601
4618
|
const {
|
|
4602
4619
|
data: i
|
|
@@ -4681,7 +4698,7 @@ function Ro(e) {
|
|
|
4681
4698
|
);
|
|
4682
4699
|
function v(w) {
|
|
4683
4700
|
var j;
|
|
4684
|
-
if (!
|
|
4701
|
+
if (!Ir(e.trustedHosts, w))
|
|
4685
4702
|
return;
|
|
4686
4703
|
const { data: T } = w;
|
|
4687
4704
|
if (T)
|
|
@@ -4745,7 +4762,7 @@ function Ro(e) {
|
|
|
4745
4762
|
);
|
|
4746
4763
|
}
|
|
4747
4764
|
function y({ url: w, key: T }) {
|
|
4748
|
-
|
|
4765
|
+
Yr(w).then((j) => j.json()).then((j) => {
|
|
4749
4766
|
var D, G;
|
|
4750
4767
|
const M = {
|
|
4751
4768
|
...e.builderContextSignal.rootState,
|
|
@@ -4802,7 +4819,7 @@ function Ro(e) {
|
|
|
4802
4819
|
e.builderContextSignal.componentInfos
|
|
4803
4820
|
).forEach((T) => {
|
|
4804
4821
|
var M;
|
|
4805
|
-
const j =
|
|
4822
|
+
const j = Xr(T);
|
|
4806
4823
|
(M = window.parent) == null || M.postMessage(j, "*");
|
|
4807
4824
|
}), window.addEventListener(
|
|
4808
4825
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4858,7 +4875,7 @@ function Ro(e) {
|
|
|
4858
4875
|
variationId: M !== D ? M : void 0
|
|
4859
4876
|
});
|
|
4860
4877
|
}
|
|
4861
|
-
|
|
4878
|
+
zr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4862
4879
|
}
|
|
4863
4880
|
}, []), Q(() => {
|
|
4864
4881
|
e.apiKey || Re.error(
|
|
@@ -4869,10 +4886,7 @@ function Ro(e) {
|
|
|
4869
4886
|
}, [e.content]), Q(() => {
|
|
4870
4887
|
}, [s]), Q(() => {
|
|
4871
4888
|
b();
|
|
4872
|
-
}, [
|
|
4873
|
-
(E = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : E.jsCode,
|
|
4874
|
-
e.builderContextSignal.rootState
|
|
4875
|
-
]), Q(() => {
|
|
4889
|
+
}, [(E = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : E.jsCode]), Q(() => {
|
|
4876
4890
|
L();
|
|
4877
4891
|
}, [(W = (we = e.builderContextSignal.content) == null ? void 0 : we.data) == null ? void 0 : W.httpRequests]), Q(() => {
|
|
4878
4892
|
Z();
|
|
@@ -4887,7 +4901,7 @@ function Ro(e) {
|
|
|
4887
4901
|
"builder:component:stateChangeListenerActivated",
|
|
4888
4902
|
Z
|
|
4889
4903
|
));
|
|
4890
|
-
}, []), /* @__PURE__ */ p(en.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */
|
|
4904
|
+
}, []), /* @__PURE__ */ p(en.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ Hr(
|
|
4891
4905
|
f,
|
|
4892
4906
|
{
|
|
4893
4907
|
key: r,
|
|
@@ -5123,7 +5137,7 @@ function ar(e) {
|
|
|
5123
5137
|
}
|
|
5124
5138
|
);
|
|
5125
5139
|
}
|
|
5126
|
-
function
|
|
5140
|
+
function Tr(e) {
|
|
5127
5141
|
var s, u;
|
|
5128
5142
|
const [t, r] = V(
|
|
5129
5143
|
() => yo({
|
|
@@ -5149,7 +5163,7 @@ function Ir(e) {
|
|
|
5149
5163
|
return t ? {
|
|
5150
5164
|
...e.content,
|
|
5151
5165
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5152
|
-
} :
|
|
5166
|
+
} : Jr({
|
|
5153
5167
|
item: e.content,
|
|
5154
5168
|
canTrack: gt(e.canTrack)
|
|
5155
5169
|
});
|
|
@@ -5264,7 +5278,7 @@ function Do(e) {
|
|
|
5264
5278
|
}, []), Q(() => {
|
|
5265
5279
|
i();
|
|
5266
5280
|
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5267
|
-
|
|
5281
|
+
Tr,
|
|
5268
5282
|
{
|
|
5269
5283
|
__isNestedRender: !0,
|
|
5270
5284
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5285,12 +5299,12 @@ function Do(e) {
|
|
|
5285
5299
|
}
|
|
5286
5300
|
) });
|
|
5287
5301
|
}
|
|
5288
|
-
const Vo = kt, $o =
|
|
5302
|
+
const Vo = kt, $o = Tr;
|
|
5289
5303
|
export {
|
|
5290
5304
|
kt as Blocks,
|
|
5291
|
-
|
|
5305
|
+
Qr as Button,
|
|
5292
5306
|
$i as Columns,
|
|
5293
|
-
|
|
5307
|
+
Tr as Content,
|
|
5294
5308
|
Hi as Fragment,
|
|
5295
5309
|
zi as Image,
|
|
5296
5310
|
Vo as RenderBlocks,
|
|
@@ -5300,7 +5314,7 @@ export {
|
|
|
5300
5314
|
ho as Text,
|
|
5301
5315
|
mo as Video,
|
|
5302
5316
|
Go as _processContentResult,
|
|
5303
|
-
|
|
5317
|
+
Xr as createRegisterComponentMessage,
|
|
5304
5318
|
zo as fetchBuilderProps,
|
|
5305
5319
|
Xo as fetchEntries,
|
|
5306
5320
|
lr as fetchOneEntry,
|
|
@@ -5308,8 +5322,8 @@ export {
|
|
|
5308
5322
|
Jo as getBuilderSearchParams,
|
|
5309
5323
|
qo as getContent,
|
|
5310
5324
|
je as isEditing,
|
|
5311
|
-
|
|
5312
|
-
|
|
5325
|
+
zr as isPreviewing,
|
|
5326
|
+
Gr as register,
|
|
5313
5327
|
Zo as setEditorSettings,
|
|
5314
5328
|
Qo as track
|
|
5315
5329
|
};
|