@builder.io/sdk-react-nextjs 0.11.0 → 0.11.2
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/{USE_CLIENT_BUNDLE-edb9d9fb.cjs → USE_CLIENT_BUNDLE-27f8858d.cjs} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-674c3a2b.js → browser/USE_CLIENT_BUNDLE-336f80e4.js} +4 -4
- package/lib/{edge/USE_SERVER_BUNDLE-3783d376.cjs → browser/USE_SERVER_BUNDLE-57d976dd.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-668b44ba.js → browser/USE_SERVER_BUNDLE-657cf8f3.js} +1 -1
- package/lib/browser/{bundle-48159788.cjs → bundle-343c6c9c.cjs} +8 -8
- package/lib/browser/{bundle-9c29c9d1.js → bundle-4ee84dab.js} +23 -19
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-f0aeb87c.js → edge/USE_CLIENT_BUNDLE-73820ea9.js} +4 -4
- package/lib/{node/USE_CLIENT_BUNDLE-da39207d.cjs → edge/USE_CLIENT_BUNDLE-c3dc5e68.cjs} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-3c56bf9c.cjs → edge/USE_SERVER_BUNDLE-8b1e2888.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-1b907ae9.js → edge/USE_SERVER_BUNDLE-bc0c817b.js} +1 -1
- package/lib/edge/{bundle-28c9300c.js → bundle-cd2b1a4d.js} +102 -98
- package/lib/edge/{bundle-b154d2ce.cjs → bundle-d029deb6.cjs} +3 -3
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-97438f67.cjs → node/USE_CLIENT_BUNDLE-cdd14ec9.cjs} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-1cacf6c8.js → node/USE_CLIENT_BUNDLE-fef58fdc.js} +4 -4
- package/lib/{browser/USE_SERVER_BUNDLE-0ea3e848.js → node/USE_SERVER_BUNDLE-0bc450f5.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-3ae19308.cjs → node/USE_SERVER_BUNDLE-830537df.cjs} +1 -1
- package/lib/node/{bundle-a7c78519.cjs → bundle-a03659b6.cjs} +3 -3
- package/lib/node/{bundle-24b5f3b0.js → bundle-e760a35e.js} +28 -24
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/block/components/interactive-element.d.ts +3 -2
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/block/components/interactive-element.d.ts +3 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LRUCache as Qr } from "lru-cache";
|
|
2
2
|
import { jsx as C, Fragment as D, jsxs as ue } from "react/jsx-runtime";
|
|
3
3
|
import { createElement as eo } from "react";
|
|
4
|
-
import { I as to, B as $n, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-
|
|
4
|
+
import { I as to, B as $n, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-73820ea9.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
function po(e) {
|
|
7
7
|
var t;
|
|
@@ -190,7 +190,7 @@ var P, wo = function(e) {
|
|
|
190
190
|
function E(a) {
|
|
191
191
|
switch (a) {
|
|
192
192
|
case 46:
|
|
193
|
-
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? S(!0) : (++f, s(
|
|
193
|
+
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? S(!0) : (++f, s(Mn));
|
|
194
194
|
return;
|
|
195
195
|
case 40:
|
|
196
196
|
return ++f, s(ie);
|
|
@@ -201,9 +201,9 @@ var P, wo = function(e) {
|
|
|
201
201
|
case 44:
|
|
202
202
|
return ++f, s(ye);
|
|
203
203
|
case 91:
|
|
204
|
-
return ++f, s(Bt);
|
|
205
|
-
case 93:
|
|
206
204
|
return ++f, s(Mt);
|
|
205
|
+
case 93:
|
|
206
|
+
return ++f, s(Bt);
|
|
207
207
|
case 123:
|
|
208
208
|
return ++f, s(_e);
|
|
209
209
|
case 125:
|
|
@@ -211,7 +211,7 @@ var P, wo = function(e) {
|
|
|
211
211
|
case 58:
|
|
212
212
|
return ++f, s(De);
|
|
213
213
|
case 63:
|
|
214
|
-
return ++f, s(
|
|
214
|
+
return ++f, s(Bn);
|
|
215
215
|
case 48:
|
|
216
216
|
if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
217
217
|
f += 2, a = O(16), a === null && r(L + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, a);
|
|
@@ -290,7 +290,7 @@ var P, wo = function(e) {
|
|
|
290
290
|
}
|
|
291
291
|
return;
|
|
292
292
|
case 47:
|
|
293
|
-
a = g.charCodeAt(f + 1), Ue ? (++f,
|
|
293
|
+
a = g.charCodeAt(f + 1), Ue ? (++f, M()) : a === 61 ? w(Se, 2) : w(Un, 1);
|
|
294
294
|
return;
|
|
295
295
|
case 37:
|
|
296
296
|
case 42:
|
|
@@ -322,7 +322,7 @@ var P, wo = function(e) {
|
|
|
322
322
|
}
|
|
323
323
|
function k(a) {
|
|
324
324
|
if (a ? f = L + 1 : L = f, j.C && (kt = new i()), a)
|
|
325
|
-
return
|
|
325
|
+
return M();
|
|
326
326
|
if (f >= ke)
|
|
327
327
|
return s(Tt);
|
|
328
328
|
if (a = g.charCodeAt(f), n(a) || a === 92)
|
|
@@ -337,7 +337,7 @@ var P, wo = function(e) {
|
|
|
337
337
|
var c = g.slice(f, f + l);
|
|
338
338
|
f += l, s(a, c);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function M() {
|
|
341
341
|
for (var a, l, c = f; ; ) {
|
|
342
342
|
f >= ke && r(c, "Unterminated regexp");
|
|
343
343
|
var p = g.charAt(f);
|
|
@@ -416,7 +416,7 @@ var P, wo = function(e) {
|
|
|
416
416
|
function Z() {
|
|
417
417
|
this.start = kt, this.end = null, St && (this.source = St);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function B() {
|
|
420
420
|
var a = new he();
|
|
421
421
|
return j.C && (a.X = new Z()), j.vb && (a.sourceFile = j.vb), j.Xa && (a.j = [L, 0]), a;
|
|
422
422
|
}
|
|
@@ -450,7 +450,7 @@ var P, wo = function(e) {
|
|
|
450
450
|
}
|
|
451
451
|
function ee() {
|
|
452
452
|
(I === Un || I === Se && Q === "/=") && k(!0);
|
|
453
|
-
var a = I, l =
|
|
453
|
+
var a = I, l = B();
|
|
454
454
|
switch (a) {
|
|
455
455
|
case At:
|
|
456
456
|
case yn:
|
|
@@ -468,7 +468,7 @@ var P, wo = function(e) {
|
|
|
468
468
|
case xn:
|
|
469
469
|
return m(), _.push(Ut), l.body = ee(), _.pop(), V(Nt), l.test = Ne(), xe(), A(l, "DoWhileStatement");
|
|
470
470
|
case kn:
|
|
471
|
-
return m(), _.push(Ut), V(ie), I === ae ? gt(l, null) : I === Pt ? (a =
|
|
471
|
+
return m(), _.push(Ut), V(ie), I === ae ? gt(l, null) : I === Pt ? (a = B(), m(), dn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && U(nt) ? pn(l, a) : gt(l, a)) : (a = K(!1, !0), U(nt) ? (Qe(a), pn(l, a)) : gt(l, a));
|
|
472
472
|
case jt:
|
|
473
473
|
return m(), xt(l, !0);
|
|
474
474
|
case Cn:
|
|
@@ -477,12 +477,12 @@ var P, wo = function(e) {
|
|
|
477
477
|
return Fe || j.Ib || r(L, "'return' outside of function"), m(), U(ae) || Ze() ? l.K = null : (l.K = K(), xe()), A(l, "ReturnStatement");
|
|
478
478
|
case Rt:
|
|
479
479
|
for (m(), l.Qb = Ne(), l.tb = [], V(_e), _.push(Zr); I !== Ie; )
|
|
480
|
-
I === Ot || I === bn ? (a = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p =
|
|
480
|
+
I === Ot || I === bn ? (a = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p = B()), p.da = [], m(), a ? p.test = K() : (c && r(Et, "Multiple default clauses"), c = !0, p.test = null), V(De)) : (p || ne(), p.da.push(ee()));
|
|
481
481
|
return p && A(p, "SwitchCase"), m(), _.pop(), A(l, "SwitchStatement");
|
|
482
482
|
case In:
|
|
483
483
|
return m(), ot.test(g.slice(ge, L)) && r(ge, "Illegal newline after throw"), l.K = K(), xe(), A(l, "ThrowStatement");
|
|
484
484
|
case Tn:
|
|
485
|
-
return m(), l.block =
|
|
485
|
+
return m(), l.block = Me(), l.Ea = null, I === gn && (a = B(), m(), V(ie), a.Ua = re(), z && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), V(te), a.body = Me(), l.Ea = A(a, "CatchClause")), l.fb = U(Sn) ? Me() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
486
486
|
case Pt:
|
|
487
487
|
return m(), dn(l), xe(), A(l, "VariableDeclaration");
|
|
488
488
|
case Nt:
|
|
@@ -490,7 +490,7 @@ var P, wo = function(e) {
|
|
|
490
490
|
case An:
|
|
491
491
|
return z && r(L, "'with' in strict mode"), m(), l.object = Ne(), l.body = ee(), A(l, "WithStatement");
|
|
492
492
|
case _e:
|
|
493
|
-
return
|
|
493
|
+
return Me();
|
|
494
494
|
case ae:
|
|
495
495
|
return m(), A(l, "EmptyStatement");
|
|
496
496
|
default:
|
|
@@ -510,8 +510,8 @@ var P, wo = function(e) {
|
|
|
510
510
|
var a = K();
|
|
511
511
|
return V(te), a;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
var l =
|
|
513
|
+
function Me(a) {
|
|
514
|
+
var l = B(), c = !0, p = !1;
|
|
515
515
|
for (l.body = [], V(_e); !U(Ie); ) {
|
|
516
516
|
var T = ee();
|
|
517
517
|
if (l.body.push(T), c && a && mt(T)) {
|
|
@@ -530,7 +530,7 @@ var P, wo = function(e) {
|
|
|
530
530
|
}
|
|
531
531
|
function dn(a, l) {
|
|
532
532
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
533
|
-
var c =
|
|
533
|
+
var c = B();
|
|
534
534
|
if (c.id = re(), z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Fn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !U(ye))
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
@@ -546,7 +546,7 @@ var P, wo = function(e) {
|
|
|
546
546
|
}
|
|
547
547
|
function yt(a) {
|
|
548
548
|
var l = vt(bt(), -1, a);
|
|
549
|
-
if (U(
|
|
549
|
+
if (U(Bn)) {
|
|
550
550
|
var c = me(l);
|
|
551
551
|
c.test = l, c.da = K(!0), V(De), c.alternate = K(!0, a), l = A(c, "ConditionalExpression");
|
|
552
552
|
}
|
|
@@ -562,45 +562,45 @@ var P, wo = function(e) {
|
|
|
562
562
|
}
|
|
563
563
|
function bt() {
|
|
564
564
|
if (I.prefix) {
|
|
565
|
-
var a =
|
|
565
|
+
var a = B(), l = I.$b;
|
|
566
566
|
return a.operator = Q, Ue = a.prefix = !0, m(), a.K = bt(), l ? Qe(a.K) : z && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
567
567
|
}
|
|
568
|
-
for (l =
|
|
568
|
+
for (l = Be(et()); I.cc && !Ze(); )
|
|
569
569
|
a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = A(a, "UpdateExpression");
|
|
570
570
|
return l;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
if (U(
|
|
572
|
+
function Be(a, l) {
|
|
573
|
+
if (U(Mn)) {
|
|
574
574
|
var c = me(a);
|
|
575
|
-
return c.object = a, c.Wa = re(!0), c.bb = !1,
|
|
575
|
+
return c.object = a, c.Wa = re(!0), c.bb = !1, Be(A(c, "MemberExpression"), l);
|
|
576
576
|
}
|
|
577
|
-
return U(
|
|
577
|
+
return U(Mt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, V(Bt), Be(A(c, "MemberExpression"), l)) : !l && U(ie) ? (c = me(a), c.callee = a, c.arguments = wt(te, !1), Be(A(c, "CallExpression"), l)) : a;
|
|
578
578
|
}
|
|
579
579
|
function et() {
|
|
580
580
|
switch (I) {
|
|
581
581
|
case jn:
|
|
582
|
-
var a =
|
|
582
|
+
var a = B();
|
|
583
583
|
return m(), A(a, "ThisExpression");
|
|
584
584
|
case Ee:
|
|
585
585
|
return re();
|
|
586
586
|
case Ve:
|
|
587
587
|
case tt:
|
|
588
588
|
case mn:
|
|
589
|
-
return a =
|
|
589
|
+
return a = B(), a.value = Q, a.raw = g.slice(L, Ce), m(), A(a, "Literal");
|
|
590
590
|
case Rn:
|
|
591
591
|
case Pn:
|
|
592
592
|
case Nn:
|
|
593
|
-
return a =
|
|
593
|
+
return a = B(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
|
|
594
594
|
case ie:
|
|
595
595
|
a = kt;
|
|
596
596
|
var l = L;
|
|
597
597
|
m();
|
|
598
598
|
var c = K();
|
|
599
599
|
return c.start = l, c.end = Ce, j.C && (c.X.start = a, c.X.end = Ct), j.Xa && (c.j = [l, Ce]), V(te), c;
|
|
600
|
-
case
|
|
601
|
-
return a =
|
|
600
|
+
case Mt:
|
|
601
|
+
return a = B(), m(), a.elements = wt(Bt, !0, !0), A(a, "ArrayExpression");
|
|
602
602
|
case _e:
|
|
603
|
-
for (a =
|
|
603
|
+
for (a = B(), l = !0, c = !1, a.h = [], m(); !U(Ie); ) {
|
|
604
604
|
if (l)
|
|
605
605
|
l = !1;
|
|
606
606
|
else if (V(ye), j.sb && U(Ie))
|
|
@@ -612,7 +612,7 @@ var P, wo = function(e) {
|
|
|
612
612
|
p.value = K(!0);
|
|
613
613
|
var W = p.kind = "init";
|
|
614
614
|
} else
|
|
615
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, W = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== ie && ne(), p.value = xt(
|
|
615
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, W = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== ie && ne(), p.value = xt(B(), !1));
|
|
616
616
|
if (p.key.type === "Identifier" && (z || c))
|
|
617
617
|
for (var X = 0; X < a.h.length; ++X) {
|
|
618
618
|
var Ae = a.h[X];
|
|
@@ -625,9 +625,9 @@ var P, wo = function(e) {
|
|
|
625
625
|
}
|
|
626
626
|
return A(a, "ObjectExpression");
|
|
627
627
|
case jt:
|
|
628
|
-
return a =
|
|
628
|
+
return a = B(), m(), xt(a, !1);
|
|
629
629
|
case On:
|
|
630
|
-
return a =
|
|
630
|
+
return a = B(), m(), a.callee = Be(et(), !0), a.arguments = U(ie) ? wt(te, !1) : Fr, A(a, "NewExpression");
|
|
631
631
|
}
|
|
632
632
|
ne();
|
|
633
633
|
}
|
|
@@ -638,7 +638,7 @@ var P, wo = function(e) {
|
|
|
638
638
|
c ? c = !1 : V(ye), a.oa.push(re());
|
|
639
639
|
c = Fe;
|
|
640
640
|
var p = _;
|
|
641
|
-
if (Fe = !0, _ = [], a.body =
|
|
641
|
+
if (Fe = !0, _ = [], a.body = Me(!0), Fe = c, _ = p, z || a.body.body.length && mt(a.body.body[0])) {
|
|
642
642
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
643
643
|
if (p = 0 > c ? a.id : a.oa[c], (Ln(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
644
644
|
for (var T = 0; T < c; ++T)
|
|
@@ -657,7 +657,7 @@ var P, wo = function(e) {
|
|
|
657
657
|
return p;
|
|
658
658
|
}
|
|
659
659
|
function re(a) {
|
|
660
|
-
var l =
|
|
660
|
+
var l = B();
|
|
661
661
|
return a && j.yb === "everywhere" && (a = !1), I === Ee ? (!a && (j.yb && Yr(Q) || z && Ln(Q)) && g.slice(L, Ce).indexOf("\\") === -1 && r(L, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ne(), Ue = !1, m(), A(l, "Identifier");
|
|
662
662
|
}
|
|
663
663
|
e.version = "0.5.0";
|
|
@@ -666,7 +666,7 @@ var P, wo = function(e) {
|
|
|
666
666
|
g = String(a), ke = g.length, j = l || {};
|
|
667
667
|
for (var c in hn)
|
|
668
668
|
Object.prototype.hasOwnProperty.call(j, c) || (j[c] = hn[c]);
|
|
669
|
-
for (St = j.sourceFile, we = 1, f = oe = 0, Ue = !0, d(), c = j.dc, Et = ge = f, j.C && (It = new i()), Fe = z = !1, _ = [], k(), a = c ||
|
|
669
|
+
for (St = j.sourceFile, we = 1, f = oe = 0, Ue = !0, d(), c = j.dc, Et = ge = f, j.C && (It = new i()), Fe = z = !1, _ = [], k(), a = c || B(), l = !0, c || (a.body = []); I !== Tt; )
|
|
670
670
|
c = ee(), a.body.push(c), l && mt(c) && de(!0), l = !1;
|
|
671
671
|
return A(a, "Program");
|
|
672
672
|
};
|
|
@@ -800,10 +800,10 @@ var P, wo = function(e) {
|
|
|
800
800
|
prefix: !0,
|
|
801
801
|
m: !0
|
|
802
802
|
}
|
|
803
|
-
},
|
|
803
|
+
}, Mt = {
|
|
804
804
|
type: "[",
|
|
805
805
|
m: !0
|
|
806
|
-
},
|
|
806
|
+
}, Bt = {
|
|
807
807
|
type: "]"
|
|
808
808
|
}, _e = {
|
|
809
809
|
type: "{",
|
|
@@ -824,9 +824,9 @@ var P, wo = function(e) {
|
|
|
824
824
|
}, De = {
|
|
825
825
|
type: ":",
|
|
826
826
|
m: !0
|
|
827
|
-
}, Bn = {
|
|
828
|
-
type: "."
|
|
829
827
|
}, Mn = {
|
|
828
|
+
type: "."
|
|
829
|
+
}, Bn = {
|
|
830
830
|
type: "?",
|
|
831
831
|
m: !0
|
|
832
832
|
}, Un = {
|
|
@@ -1015,7 +1015,7 @@ P.Eb = function() {
|
|
|
1015
1015
|
return this.za;
|
|
1016
1016
|
};
|
|
1017
1017
|
function ko(e, t) {
|
|
1018
|
-
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Yt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Co(e, t), Eo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Io(e, t), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t),
|
|
1018
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Yt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Co(e, t), Eo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Io(e, t), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Mo(e, t);
|
|
1019
1019
|
var n = e.i(function() {
|
|
1020
1020
|
throw EvalError("Can't happen");
|
|
1021
1021
|
}, !1);
|
|
@@ -1350,7 +1350,7 @@ function No(e, t) {
|
|
|
1350
1350
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1351
1351
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Mo(e, t) {
|
|
1354
1354
|
var n = e.s(e.M);
|
|
1355
1355
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1356
1356
|
try {
|
|
@@ -1869,7 +1869,7 @@ function Xn(e, t, n) {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1871
1871
|
}
|
|
1872
|
-
return t = new
|
|
1872
|
+
return t = new Bo(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
|
|
1873
1873
|
}
|
|
1874
1874
|
function mr(e, t, n) {
|
|
1875
1875
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -1973,7 +1973,7 @@ P.toString = function() {
|
|
|
1973
1973
|
P.valueOf = function() {
|
|
1974
1974
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1975
1975
|
};
|
|
1976
|
-
function
|
|
1976
|
+
function Bo(e, t, n, r, o) {
|
|
1977
1977
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Uo, this.time = 0;
|
|
1978
1978
|
}
|
|
1979
1979
|
var Uo = 0;
|
|
@@ -2570,14 +2570,14 @@ function theFunction() {
|
|
|
2570
2570
|
${k}
|
|
2571
2571
|
}
|
|
2572
2572
|
theFunction();
|
|
2573
|
-
`,
|
|
2573
|
+
`, M = (S, b) => {
|
|
2574
2574
|
const N = fr(u, S, b);
|
|
2575
2575
|
i == null || i(N);
|
|
2576
2576
|
}, O = function(S, b) {
|
|
2577
2577
|
d.forEach(([N, F]) => {
|
|
2578
2578
|
const m = JSON.stringify(F);
|
|
2579
2579
|
S.setProperty(b, Jn(N), m);
|
|
2580
|
-
}), S.setProperty(b, "setRootState", S.createNativeFunction(
|
|
2580
|
+
}), S.setProperty(b, "setRootState", S.createNativeFunction(M));
|
|
2581
2581
|
};
|
|
2582
2582
|
try {
|
|
2583
2583
|
const S = new h(w, O);
|
|
@@ -2811,7 +2811,7 @@ function sn(e) {
|
|
|
2811
2811
|
), d = i == null ? void 0 : i.large, E = i == null ? void 0 : i.medium, k = i == null ? void 0 : i.small, w = o.id;
|
|
2812
2812
|
if (!w)
|
|
2813
2813
|
return "";
|
|
2814
|
-
const
|
|
2814
|
+
const M = d ? Dt({
|
|
2815
2815
|
className: w,
|
|
2816
2816
|
styles: d
|
|
2817
2817
|
}) : "", O = E ? Dt({
|
|
@@ -2829,7 +2829,7 @@ function sn(e) {
|
|
|
2829
2829
|
u
|
|
2830
2830
|
)
|
|
2831
2831
|
}) : "";
|
|
2832
|
-
return [
|
|
2832
|
+
return [M, O, S].join(" ");
|
|
2833
2833
|
};
|
|
2834
2834
|
return /* @__PURE__ */ C(D, { children: n() && t() ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2835
2835
|
}
|
|
@@ -2912,23 +2912,27 @@ const Qo = ({
|
|
|
2912
2912
|
includeBlockProps: o,
|
|
2913
2913
|
isInteractive: i,
|
|
2914
2914
|
contextValue: s
|
|
2915
|
-
}) =>
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2915
|
+
}) => {
|
|
2916
|
+
const u = {
|
|
2917
|
+
...e,
|
|
2918
|
+
/**
|
|
2919
|
+
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
2920
|
+
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2921
|
+
*/
|
|
2922
|
+
...o ? {
|
|
2923
|
+
attributes: qo({
|
|
2924
|
+
block: t,
|
|
2925
|
+
context: s
|
|
2926
|
+
})
|
|
2927
|
+
} : {}
|
|
2928
|
+
};
|
|
2929
|
+
return i ? {
|
|
2930
|
+
Wrapper: r,
|
|
2931
|
+
block: t,
|
|
2932
|
+
context: n,
|
|
2933
|
+
wrapperProps: e,
|
|
2934
|
+
includeBlockProps: o
|
|
2935
|
+
} : u;
|
|
2932
2936
|
};
|
|
2933
2937
|
function qn(e) {
|
|
2934
2938
|
var n, r;
|
|
@@ -2979,7 +2983,7 @@ function ei(e) {
|
|
|
2979
2983
|
);
|
|
2980
2984
|
}
|
|
2981
2985
|
function ht(e) {
|
|
2982
|
-
var E, k, w,
|
|
2986
|
+
var E, k, w, M;
|
|
2983
2987
|
const t = function() {
|
|
2984
2988
|
return Wo({
|
|
2985
2989
|
block: e.block,
|
|
@@ -3092,7 +3096,7 @@ function ht(e) {
|
|
|
3092
3096
|
},
|
|
3093
3097
|
"block-" + O.id
|
|
3094
3098
|
)),
|
|
3095
|
-
(
|
|
3099
|
+
(M = s()) == null ? void 0 : M.map((O) => /* @__PURE__ */ C(
|
|
3096
3100
|
sn,
|
|
3097
3101
|
{
|
|
3098
3102
|
block: O,
|
|
@@ -3191,7 +3195,7 @@ function ti(e) {
|
|
|
3191
3195
|
return vr(
|
|
3192
3196
|
((m = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3193
3197
|
)[b].max;
|
|
3194
|
-
},
|
|
3198
|
+
}, M = function() {
|
|
3195
3199
|
return `
|
|
3196
3200
|
@media (max-width: ${w("medium")}px) {
|
|
3197
3201
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3225,7 +3229,7 @@ function ti(e) {
|
|
|
3225
3229
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-0d69fe26`,
|
|
3226
3230
|
style: E(),
|
|
3227
3231
|
children: [
|
|
3228
|
-
/* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles:
|
|
3232
|
+
/* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles: M() }) }),
|
|
3229
3233
|
(O = e.columns) == null ? void 0 : O.map((S, b) => /* @__PURE__ */ eo(
|
|
3230
3234
|
"div",
|
|
3231
3235
|
{
|
|
@@ -3738,8 +3742,8 @@ const oi = (e) => {
|
|
|
3738
3742
|
let w = !1;
|
|
3739
3743
|
k.onload = () => {
|
|
3740
3744
|
w = !0, d(k);
|
|
3741
|
-
}, k.addEventListener("error", (
|
|
3742
|
-
console.warn("Image load failed",
|
|
3745
|
+
}, k.addEventListener("error", (M) => {
|
|
3746
|
+
console.warn("Image load failed", M.error), E(M.error);
|
|
3743
3747
|
}), k.src = s, setTimeout(() => {
|
|
3744
3748
|
w || E(new Error("Image load timed out"));
|
|
3745
3749
|
}, u);
|
|
@@ -4156,10 +4160,10 @@ const Ti = {
|
|
|
4156
4160
|
})), Pi = ({
|
|
4157
4161
|
canTrack: e,
|
|
4158
4162
|
content: t
|
|
4159
|
-
}) => !(!(st(t).length > 0) || !e || G()), Ni = (e) => e === "react" || e === "reactNative", Ar = Ni(be),
|
|
4163
|
+
}) => !(!(st(t).length > 0) || !e || G()), Ni = (e) => e === "react" || e === "reactNative", Ar = Ni(be), Mi = () => `
|
|
4160
4164
|
window.${Ir} = ${ji}
|
|
4161
4165
|
window.${Tr} = ${Ri}
|
|
4162
|
-
`,
|
|
4166
|
+
`, Bi = (e, t) => `
|
|
4163
4167
|
window.${Ir}(
|
|
4164
4168
|
"${t}",${JSON.stringify(e)}, ${Ar}
|
|
4165
4169
|
)`, Ui = ({
|
|
@@ -4251,7 +4255,7 @@ const $i = "v3", tr = "builder.", Hi = "options.", Ki = (e) => {
|
|
|
4251
4255
|
locale: E,
|
|
4252
4256
|
apiVersion: k = $i,
|
|
4253
4257
|
fields: w,
|
|
4254
|
-
omit:
|
|
4258
|
+
omit: M,
|
|
4255
4259
|
offset: O,
|
|
4256
4260
|
cacheSeconds: S,
|
|
4257
4261
|
staleCacheSeconds: b,
|
|
@@ -4264,12 +4268,12 @@ const $i = "v3", tr = "builder.", Hi = "options.", Ki = (e) => {
|
|
|
4264
4268
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${k}'`);
|
|
4265
4269
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4266
4270
|
const m = new URL(`https://cdn.builder.io/api/${k}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${E ? `&locale=${E}` : ""}${d ? `&enrich=${d}` : ""}`);
|
|
4267
|
-
if (m.searchParams.set("omit",
|
|
4271
|
+
if (m.searchParams.set("omit", M || "meta.componentsUsed"), w && m.searchParams.set("fields", w), Number.isFinite(O) && O > -1 && m.searchParams.set("offset", String(Math.floor(O))), typeof F == "boolean" && m.searchParams.set("includeUnpublished", String(F)), S && nr(S) && m.searchParams.set("cacheSeconds", String(S)), b && nr(b) && m.searchParams.set("staleCacheSeconds", String(b)), N) {
|
|
4268
4272
|
const Z = lt({
|
|
4269
4273
|
sort: N
|
|
4270
4274
|
});
|
|
4271
|
-
for (const
|
|
4272
|
-
m.searchParams.set(
|
|
4275
|
+
for (const B in Z)
|
|
4276
|
+
m.searchParams.set(B, JSON.stringify(Z[B]));
|
|
4273
4277
|
}
|
|
4274
4278
|
const de = {
|
|
4275
4279
|
...Gi(),
|
|
@@ -4281,8 +4285,8 @@ const $i = "v3", tr = "builder.", Hi = "options.", Ki = (e) => {
|
|
|
4281
4285
|
const Z = lt({
|
|
4282
4286
|
query: o
|
|
4283
4287
|
});
|
|
4284
|
-
for (const
|
|
4285
|
-
m.searchParams.set(
|
|
4288
|
+
for (const B in Z)
|
|
4289
|
+
m.searchParams.set(B, JSON.stringify(Z[B]));
|
|
4286
4290
|
}
|
|
4287
4291
|
return m;
|
|
4288
4292
|
}, Xi = (e) => "results" in e;
|
|
@@ -4371,13 +4375,13 @@ const Nr = "builderSessionId", qi = async ({
|
|
|
4371
4375
|
name: Nr,
|
|
4372
4376
|
value: e,
|
|
4373
4377
|
canTrack: t
|
|
4374
|
-
}),
|
|
4378
|
+
}), Mr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ea = ({
|
|
4375
4379
|
key: e,
|
|
4376
4380
|
canTrack: t
|
|
4377
4381
|
}) => {
|
|
4378
4382
|
var n;
|
|
4379
4383
|
try {
|
|
4380
|
-
return t ? (n =
|
|
4384
|
+
return t ? (n = Mr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4381
4385
|
} catch (r) {
|
|
4382
4386
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4383
4387
|
return;
|
|
@@ -4389,17 +4393,17 @@ const Nr = "builderSessionId", qi = async ({
|
|
|
4389
4393
|
}) => {
|
|
4390
4394
|
var r;
|
|
4391
4395
|
try {
|
|
4392
|
-
t && ((r =
|
|
4396
|
+
t && ((r = Mr()) == null || r.setItem(e, n));
|
|
4393
4397
|
} catch (o) {
|
|
4394
4398
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4395
4399
|
}
|
|
4396
|
-
},
|
|
4400
|
+
}, Br = "builderVisitorId", na = ({
|
|
4397
4401
|
canTrack: e
|
|
4398
4402
|
}) => {
|
|
4399
4403
|
if (!e)
|
|
4400
4404
|
return;
|
|
4401
4405
|
const t = ea({
|
|
4402
|
-
key:
|
|
4406
|
+
key: Br,
|
|
4403
4407
|
canTrack: e
|
|
4404
4408
|
});
|
|
4405
4409
|
if (pe(t))
|
|
@@ -4415,7 +4419,7 @@ const Nr = "builderSessionId", qi = async ({
|
|
|
4415
4419
|
id: e,
|
|
4416
4420
|
canTrack: t
|
|
4417
4421
|
}) => ta({
|
|
4418
|
-
key:
|
|
4422
|
+
key: Br,
|
|
4419
4423
|
value: e,
|
|
4420
4424
|
canTrack: t
|
|
4421
4425
|
}), ia = async ({
|
|
@@ -4521,7 +4525,7 @@ const la = (e, t, n = !0) => {
|
|
|
4521
4525
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4522
4526
|
}
|
|
4523
4527
|
};
|
|
4524
|
-
}, ua = "0.11.
|
|
4528
|
+
}, ua = "0.11.2", ir = {};
|
|
4525
4529
|
function fa(e, t) {
|
|
4526
4530
|
let n = ir[e];
|
|
4527
4531
|
if (n || (n = ir[e] = []), n.push(t), G()) {
|
|
@@ -4539,7 +4543,7 @@ function fa(e, t) {
|
|
|
4539
4543
|
}
|
|
4540
4544
|
}
|
|
4541
4545
|
}
|
|
4542
|
-
const
|
|
4546
|
+
const Ma = () => {
|
|
4543
4547
|
fa("insertMenu", {
|
|
4544
4548
|
name: "_default",
|
|
4545
4549
|
default: !0,
|
|
@@ -4563,7 +4567,7 @@ const Ba = () => {
|
|
|
4563
4567
|
});
|
|
4564
4568
|
};
|
|
4565
4569
|
let ar = !1;
|
|
4566
|
-
const
|
|
4570
|
+
const Ba = (e = {}) => {
|
|
4567
4571
|
var t, n;
|
|
4568
4572
|
ar || (ar = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4569
4573
|
type: "builder.sdkInfo",
|
|
@@ -4592,8 +4596,8 @@ const Ma = (e = {}) => {
|
|
|
4592
4596
|
let k, w = null;
|
|
4593
4597
|
try {
|
|
4594
4598
|
k = E.apply(null, u);
|
|
4595
|
-
} catch (
|
|
4596
|
-
w =
|
|
4599
|
+
} catch (M) {
|
|
4600
|
+
w = M;
|
|
4597
4601
|
}
|
|
4598
4602
|
w ? (o = window.parent) == null || o.postMessage({
|
|
4599
4603
|
type: "builder.evaluateError",
|
|
@@ -4601,13 +4605,13 @@ const Ma = (e = {}) => {
|
|
|
4601
4605
|
id: d,
|
|
4602
4606
|
error: w.message
|
|
4603
4607
|
}
|
|
4604
|
-
}, "*") : k && typeof k.then == "function" ? k.then((
|
|
4608
|
+
}, "*") : k && typeof k.then == "function" ? k.then((M) => {
|
|
4605
4609
|
var O;
|
|
4606
4610
|
(O = window.parent) == null || O.postMessage({
|
|
4607
4611
|
type: "builder.evaluateResult",
|
|
4608
4612
|
data: {
|
|
4609
4613
|
id: d,
|
|
4610
|
-
result:
|
|
4614
|
+
result: M
|
|
4611
4615
|
}
|
|
4612
4616
|
}, "*");
|
|
4613
4617
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
@@ -4710,7 +4714,7 @@ const ga = ({
|
|
|
4710
4714
|
meta: e == null ? void 0 : e.meta
|
|
4711
4715
|
} : void 0;
|
|
4712
4716
|
function sr(e) {
|
|
4713
|
-
var o, i, s, u, d, E, k, w,
|
|
4717
|
+
var o, i, s, u, d, E, k, w, M;
|
|
4714
4718
|
const t = Ui({
|
|
4715
4719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4716
4720
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
@@ -4797,7 +4801,7 @@ function sr(e) {
|
|
|
4797
4801
|
/* @__PURE__ */ C(
|
|
4798
4802
|
ln,
|
|
4799
4803
|
{
|
|
4800
|
-
blocks: (
|
|
4804
|
+
blocks: (M = (w = r.content) == null ? void 0 : w.data) == null ? void 0 : M.blocks,
|
|
4801
4805
|
context: r,
|
|
4802
4806
|
registeredComponents: n
|
|
4803
4807
|
}
|
|
@@ -4813,7 +4817,7 @@ function Ur(e) {
|
|
|
4813
4817
|
content: e.content
|
|
4814
4818
|
}), n = function() {
|
|
4815
4819
|
var d;
|
|
4816
|
-
return
|
|
4820
|
+
return Bi(
|
|
4817
4821
|
st(e.content).map((E) => ({
|
|
4818
4822
|
id: E.testVariationId,
|
|
4819
4823
|
testRatio: E.testRatio
|
|
@@ -4833,7 +4837,7 @@ function Ur(e) {
|
|
|
4833
4837
|
});
|
|
4834
4838
|
};
|
|
4835
4839
|
return /* @__PURE__ */ ue(D, { children: [
|
|
4836
|
-
!e.__isNestedRender && be !== "reactNative" ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(Gt, { scriptStr:
|
|
4840
|
+
!e.__isNestedRender && be !== "reactNative" ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(Gt, { scriptStr: Mi() }) }) : null,
|
|
4837
4841
|
t ? /* @__PURE__ */ ue(D, { children: [
|
|
4838
4842
|
/* @__PURE__ */ C(
|
|
4839
4843
|
dt,
|
|
@@ -5000,8 +5004,8 @@ export {
|
|
|
5000
5004
|
Wi as o,
|
|
5001
5005
|
Vi as p,
|
|
5002
5006
|
Fa as q,
|
|
5003
|
-
|
|
5004
|
-
|
|
5007
|
+
Ma as r,
|
|
5008
|
+
Ba as s,
|
|
5005
5009
|
ti as t,
|
|
5006
5010
|
fa as u,
|
|
5007
5011
|
Va as v,
|