@builder.io/sdk-vue 5.2.5 → 5.2.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/{awaiter-RQWxLPh7.cjs → awaiter-fjkJEwL2.cjs} +1 -1
- package/lib/browser/{awaiter-BKtN2AMs.js → awaiter-uv2UPA7r.js} +1 -1
- package/lib/browser/{block-wrapper-nMKh8p11.cjs → block-wrapper-78wlnbq2.cjs} +1 -1
- package/lib/browser/{block-wrapper-tny9tjLX.js → block-wrapper-JeL_jj_h.js} +3 -3
- package/lib/browser/blocks/image/image.vue.d.ts +4 -3
- package/lib/browser/{component-ref-d2TAsp69.js → component-ref-mKp3QJjb.js} +4 -4
- package/lib/browser/{component-ref-Mw4IXQsf.cjs → component-ref-x3D964Ui.cjs} +1 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-yuV5qbSy.cjs → get-block-properties-OItA8P2h.cjs} +1 -1
- package/lib/browser/{get-block-properties-DXgJ283y.js → get-block-properties-gsdrxoRd.js} +1 -1
- package/lib/browser/{index-NzYhd2fP.js → index-SDeF5ljo.js} +98 -92
- package/lib/browser/{index-yyjVNpWr.cjs → index-bSLOTVNj.cjs} +5 -5
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-MYo3p6a8.js → live-edit-G9Y94Fp3.js} +1 -1
- package/lib/browser/{live-edit-2xpHwDC6.cjs → live-edit-tGxAmCBt.cjs} +1 -1
- package/lib/browser/{repeated-block-2EBzVyUu.cjs → repeated-block-Fy3-rBBk.cjs} +1 -1
- package/lib/browser/{repeated-block-Ga5ASejd.js → repeated-block-WgU2OssJ.js} +2 -2
- package/lib/browser/{style-wrapper-L7DnOyfm.cjs → style-wrapper-EIQ0LSdQ.cjs} +1 -1
- package/lib/browser/{style-wrapper-dI5wRv59.js → style-wrapper-VY7cdn42.js} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-6AjvWUxL.cjs → awaiter-To0MGZ0d.cjs} +1 -1
- package/lib/edge/{awaiter-4nEUChYV.js → awaiter-xFN_a7xm.js} +1 -1
- package/lib/edge/{block-wrapper-46vOpFGy.js → block-wrapper-1dKtPesr.js} +3 -3
- package/lib/{node/block-wrapper-CVcdunhe.cjs → edge/block-wrapper-_thG9C3r.cjs} +1 -1
- package/lib/edge/blocks/image/image.vue.d.ts +4 -3
- package/lib/edge/{component-ref-DUyRq-EJ.cjs → component-ref-Yf97BoLu.cjs} +1 -1
- package/lib/edge/{component-ref-yTXpKy_r.js → component-ref-e50s6g-8.js} +4 -4
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-W3W_9H-Z.js → get-block-properties-EY1VltaD.js} +1 -1
- package/lib/edge/{get-block-properties-jJLbFHeq.cjs → get-block-properties-_upYTgwb.cjs} +1 -1
- package/lib/edge/{index-DHXkBA25.js → index-47Iqxag2.js} +218 -212
- package/lib/edge/{index-jpFEl6o1.cjs → index-i395EE2u.cjs} +5 -5
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-iOkS0wUg.cjs → edge/live-edit-NYmL2A7N.cjs} +1 -1
- package/lib/{node/live-edit-NBkhYc-u.js → edge/live-edit-pS9LVcQU.js} +1 -1
- package/lib/edge/{repeated-block-dGVzaSM5.cjs → repeated-block-PQOSkxIA.cjs} +1 -1
- package/lib/edge/{repeated-block-eANZkOUH.js → repeated-block-YtApB6_A.js} +2 -2
- package/lib/edge/{style-wrapper-GqtgkGuc.js → style-wrapper-_yXwiJwO.js} +1 -1
- package/lib/edge/{style-wrapper-CvNVb0wT.cjs → style-wrapper-lmmE3giL.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-6JHJCJgG.js → awaiter-DD7OMOMu.js} +1 -1
- package/lib/node/{awaiter-_rQTvMWR.cjs → awaiter-ef2JaOpA.cjs} +1 -1
- package/lib/{edge/block-wrapper-97OfjwlX.cjs → node/block-wrapper-2UZEHIep.cjs} +1 -1
- package/lib/node/{block-wrapper-3P0_XOfk.js → block-wrapper-QV4wX7ge.js} +3 -3
- package/lib/node/blocks/image/image.vue.d.ts +4 -3
- package/lib/node/{component-ref-RHwChjOp.js → component-ref-BVAWbmSM.js} +5 -5
- package/lib/node/{component-ref-tWjNsmU5.cjs → component-ref-PBLhD067.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-jknWz7As.cjs → get-block-properties-FqOAzbbj.cjs} +1 -1
- package/lib/node/{get-block-properties-9gqKfU1J.js → get-block-properties-jtxNpCjP.js} +2 -2
- package/lib/node/{index-CwfwLkvc.js → index-ebgoy2dh.js} +70 -64
- package/lib/node/{index-eeU-4w7r.cjs → index-sUYiBczF.cjs} +5 -5
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-WpboQZDv.cjs → node/live-edit-GjqOXJlY.cjs} +1 -1
- package/lib/{edge/live-edit-nhAMI-64.js → node/live-edit-WlaTJPy3.js} +1 -1
- package/lib/node/{repeated-block-BqCLqE8_.cjs → repeated-block-M3uZwBiE.cjs} +1 -1
- package/lib/node/{repeated-block-aHj4jtJt.js → repeated-block-u2S52SQe.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-2bRYXF-W.js → should-force-browser-runtime-in-node-0fyWCMQO.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-j9YDACzy.cjs → should-force-browser-runtime-in-node-djPOsLG6.cjs} +1 -1
- package/lib/node/{style-wrapper-WxU8Uo4d.cjs → style-wrapper-Kc9lgaOA.cjs} +1 -1
- package/lib/node/{style-wrapper-kcTKCb_j.js → style-wrapper-OtcV4kQU.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -173,7 +173,7 @@ const ui = () => {
|
|
|
173
173
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
174
174
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
175
175
|
};
|
|
176
|
-
}, Yr = "5.2.
|
|
176
|
+
}, Yr = "5.2.6", Qr = () => ({
|
|
177
177
|
"X-Builder-SDK": G,
|
|
178
178
|
"X-Builder-SDK-GEN": "2",
|
|
179
179
|
"X-Builder-SDK-Version": Yr
|
|
@@ -193,12 +193,12 @@ const ui = () => {
|
|
|
193
193
|
ue.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
}, Zr = async (e) => Lt(e), di = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Ne).join("; "),
|
|
196
|
+
}, Zr = async (e) => Lt(e), di = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Ne).join("; "), hi = [["secure", ""], ["SameSite", "None"]], fi = ({
|
|
197
197
|
name: e,
|
|
198
198
|
value: t,
|
|
199
199
|
expires: n
|
|
200
200
|
}) => {
|
|
201
|
-
const o = (M() ? location.protocol === "https:" : !0) ?
|
|
201
|
+
const o = (M() ? location.protocol === "https:" : !0) ? hi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", pi(window.location.hostname)], ...o];
|
|
202
202
|
return di(s);
|
|
203
203
|
}, An = async ({
|
|
204
204
|
name: e,
|
|
@@ -209,7 +209,7 @@ const ui = () => {
|
|
|
209
209
|
try {
|
|
210
210
|
if (!r)
|
|
211
211
|
return;
|
|
212
|
-
const o =
|
|
212
|
+
const o = fi({
|
|
213
213
|
name: e,
|
|
214
214
|
value: t,
|
|
215
215
|
expires: n
|
|
@@ -460,16 +460,16 @@ var V, $i = function(e) {
|
|
|
460
460
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Rr.test(String.fromCharCode(a));
|
|
461
461
|
}
|
|
462
462
|
function r(a, l) {
|
|
463
|
-
for (var p = k,
|
|
463
|
+
for (var p = k, h = 1, P = 0; ; ) {
|
|
464
464
|
xt.lastIndex = P;
|
|
465
465
|
var Q = xt.exec(p);
|
|
466
466
|
if (Q && Q.index < a)
|
|
467
|
-
++
|
|
467
|
+
++h, P = Q.index + Q[0].length;
|
|
468
468
|
else
|
|
469
469
|
break;
|
|
470
470
|
}
|
|
471
471
|
throw p = {
|
|
472
|
-
line:
|
|
472
|
+
line: h,
|
|
473
473
|
ab: a - P
|
|
474
474
|
}, l += " (" + p.line + ":" + p.ab + ")", l = new SyntaxError(l), l.j = a, l.X = p, l.o = d, l;
|
|
475
475
|
}
|
|
@@ -477,15 +477,15 @@ var V, $i = function(e) {
|
|
|
477
477
|
a = a.split(" ");
|
|
478
478
|
for (var l = /* @__PURE__ */ Object.create(null), p = 0; p < a.length; p++)
|
|
479
479
|
l[a[p]] = !0;
|
|
480
|
-
return function(
|
|
481
|
-
return l[
|
|
480
|
+
return function(h) {
|
|
481
|
+
return l[h] || !1;
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
function i() {
|
|
485
485
|
this.line = Ve, this.ab = d - ke;
|
|
486
486
|
}
|
|
487
487
|
function s(a, l) {
|
|
488
|
-
Fe = d, O.C && (Qt = new i()), x = a, c(),
|
|
488
|
+
Fe = d, O.C && (Qt = new i()), x = a, c(), he = l, tt = a.m;
|
|
489
489
|
}
|
|
490
490
|
function u() {
|
|
491
491
|
for (var a = d, l = O.va && O.C && new i(), p = k.charCodeAt(d += 2); d < Le && p !== 10 && p !== 13 && p !== 8232 && p !== 8233; )
|
|
@@ -506,11 +506,11 @@ var V, $i = function(e) {
|
|
|
506
506
|
else if (a === 47)
|
|
507
507
|
if (a = k.charCodeAt(d + 1), a === 42) {
|
|
508
508
|
a = void 0;
|
|
509
|
-
var l = O.va && O.C && new i(), p = d,
|
|
510
|
-
if (
|
|
509
|
+
var l = O.va && O.C && new i(), p = d, h = k.indexOf("*/", d += 2);
|
|
510
|
+
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2, O.C)
|
|
511
511
|
for (xt.lastIndex = p; (a = xt.exec(k)) && a.index < d; )
|
|
512
512
|
++Ve, ke = a.index + a[0].length;
|
|
513
|
-
O.va && O.va(!0, k.slice(p + 2,
|
|
513
|
+
O.va && O.va(!0, k.slice(p + 2, h), p, d, l, O.C && new i());
|
|
514
514
|
} else if (a === 47)
|
|
515
515
|
u();
|
|
516
516
|
else
|
|
@@ -575,11 +575,11 @@ var V, $i = function(e) {
|
|
|
575
575
|
}
|
|
576
576
|
if (p === 92) {
|
|
577
577
|
p = k.charCodeAt(++d);
|
|
578
|
-
var
|
|
579
|
-
for (
|
|
580
|
-
|
|
581
|
-
if (
|
|
582
|
-
ce && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(
|
|
578
|
+
var h = /^[0-7]+/.exec(k.slice(d, d + 3));
|
|
579
|
+
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
580
|
+
h = h.slice(0, -1);
|
|
581
|
+
if (h === "0" && (h = null), ++d, h)
|
|
582
|
+
ce && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
583
583
|
else
|
|
584
584
|
switch (p) {
|
|
585
585
|
case 110:
|
|
@@ -626,7 +626,7 @@ var V, $i = function(e) {
|
|
|
626
626
|
}
|
|
627
627
|
return;
|
|
628
628
|
case 47:
|
|
629
|
-
a = k.charCodeAt(d + 1), tt ? (++d,
|
|
629
|
+
a = k.charCodeAt(d + 1), tt ? (++d, f()) : a === 61 ? b(De, 2) : b(kr, 1);
|
|
630
630
|
return;
|
|
631
631
|
case 37:
|
|
632
632
|
case 42:
|
|
@@ -658,7 +658,7 @@ var V, $i = function(e) {
|
|
|
658
658
|
}
|
|
659
659
|
function y(a) {
|
|
660
660
|
if (a ? d = Y + 1 : Y = d, O.C && (Yt = new i()), a)
|
|
661
|
-
return
|
|
661
|
+
return f();
|
|
662
662
|
if (d >= Le)
|
|
663
663
|
return s(tn);
|
|
664
664
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
@@ -673,20 +673,20 @@ var V, $i = function(e) {
|
|
|
673
673
|
var p = k.slice(d, d + l);
|
|
674
674
|
d += l, s(a, p);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function f() {
|
|
677
677
|
for (var a, l, p = d; ; ) {
|
|
678
678
|
d >= Le && r(p, "Unterminated regexp");
|
|
679
|
-
var
|
|
680
|
-
if ($t.test(
|
|
679
|
+
var h = k.charAt(d);
|
|
680
|
+
if ($t.test(h) && r(p, "Unterminated regexp"), a)
|
|
681
681
|
a = !1;
|
|
682
682
|
else {
|
|
683
|
-
if (
|
|
683
|
+
if (h === "[")
|
|
684
684
|
l = !0;
|
|
685
|
-
else if (
|
|
685
|
+
else if (h === "]" && l)
|
|
686
686
|
l = !1;
|
|
687
|
-
else if (
|
|
687
|
+
else if (h === "/" && !l)
|
|
688
688
|
break;
|
|
689
|
-
a =
|
|
689
|
+
a = h === "\\";
|
|
690
690
|
}
|
|
691
691
|
++d;
|
|
692
692
|
}
|
|
@@ -699,19 +699,19 @@ var V, $i = function(e) {
|
|
|
699
699
|
s(er, P);
|
|
700
700
|
}
|
|
701
701
|
function S(a, l) {
|
|
702
|
-
for (var p = d,
|
|
702
|
+
for (var p = d, h = 0, P = l === void 0 ? 1 / 0 : l, Q = 0; Q < P; ++Q) {
|
|
703
703
|
var se = k.charCodeAt(d);
|
|
704
704
|
if (se = 97 <= se ? se - 97 + 10 : 65 <= se ? se - 65 + 10 : 48 <= se && 57 >= se ? se - 48 : 1 / 0, se >= a)
|
|
705
705
|
break;
|
|
706
|
-
++d,
|
|
706
|
+
++d, h = h * a + se;
|
|
707
707
|
}
|
|
708
|
-
return d === p || l !== void 0 && d - p !== l ? null :
|
|
708
|
+
return d === p || l !== void 0 && d - p !== l ? null : h;
|
|
709
709
|
}
|
|
710
710
|
function A(a) {
|
|
711
|
-
var l = d, p = !1,
|
|
711
|
+
var l = d, p = !1, h = k.charCodeAt(d) === 48;
|
|
712
712
|
a || S(10) !== null || r(l, "Invalid number"), k.charCodeAt(d) === 46 && (++d, S(10), p = !0), a = k.charCodeAt(d), (a === 69 || a === 101) && (a = k.charCodeAt(++d), a !== 43 && a !== 45 || ++d, S(10) === null && r(l, "Invalid number"), p = !0), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), a = k.slice(l, d);
|
|
713
713
|
var P;
|
|
714
|
-
p ? P = parseFloat(a) :
|
|
714
|
+
p ? P = parseFloat(a) : h && a.length !== 1 ? /[89]/.test(a) || ce ? r(l, "Invalid number") : P = parseInt(a, 8) : P = parseInt(a, 10), s(rt, P);
|
|
715
715
|
}
|
|
716
716
|
function $(a) {
|
|
717
717
|
return a = S(16, a), a === null && r(Y, "Bad character escape sequence"), a;
|
|
@@ -719,13 +719,13 @@ var V, $i = function(e) {
|
|
|
719
719
|
function H() {
|
|
720
720
|
Ke = !1;
|
|
721
721
|
for (var a, l = !0, p = d; ; ) {
|
|
722
|
-
var
|
|
723
|
-
if (t(
|
|
722
|
+
var h = k.charCodeAt(d);
|
|
723
|
+
if (t(h))
|
|
724
724
|
Ke && (a += k.charAt(d)), ++d;
|
|
725
|
-
else if (
|
|
726
|
-
Ke || (a = k.slice(p, d)), Ke = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d,
|
|
727
|
-
var P = String.fromCharCode(
|
|
728
|
-
P || r(d - 1, "Invalid Unicode escape"), (l ? n(
|
|
725
|
+
else if (h === 92) {
|
|
726
|
+
Ke || (a = k.slice(p, d)), Ke = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = $(4);
|
|
727
|
+
var P = String.fromCharCode(h);
|
|
728
|
+
P || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), a += P;
|
|
729
729
|
} else
|
|
730
730
|
break;
|
|
731
731
|
l = !1;
|
|
@@ -784,8 +784,8 @@ var V, $i = function(e) {
|
|
|
784
784
|
function Tt(a) {
|
|
785
785
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), ce && a.type === "Identifier" && At(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
(x === kr || x === De &&
|
|
787
|
+
function fe() {
|
|
788
|
+
(x === kr || x === De && he === "/=") && y(!0);
|
|
789
789
|
var a = x, l = K();
|
|
790
790
|
switch (a) {
|
|
791
791
|
case nn:
|
|
@@ -793,28 +793,28 @@ var V, $i = function(e) {
|
|
|
793
793
|
E();
|
|
794
794
|
var p = a === nn;
|
|
795
795
|
L(we) || wt() ? l.label = null : x !== Me ? be() : (l.label = Se(), je());
|
|
796
|
-
for (var
|
|
797
|
-
var P = X[
|
|
796
|
+
for (var h = 0; h < X.length; ++h) {
|
|
797
|
+
var P = X[h];
|
|
798
798
|
if ((l.label === null || P.name === l.label.name) && (P.kind !== null && (p || P.kind === "loop") || l.label && p))
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
|
-
return
|
|
801
|
+
return h === X.length && r(l.start, "Unsyntactic " + a.l), R(l, p ? "BreakStatement" : "ContinueStatement");
|
|
802
802
|
case rr:
|
|
803
803
|
return E(), je(), R(l, "DebuggerStatement");
|
|
804
804
|
case ir:
|
|
805
|
-
return E(), X.push(pn), l.body =
|
|
805
|
+
return E(), X.push(pn), l.body = fe(), X.pop(), J(ln), l.test = Qe(), je(), R(l, "DoWhileStatement");
|
|
806
806
|
case lr:
|
|
807
807
|
return E(), X.push(pn), J(Ce), x === we ? Kt(l, null) : x === an ? (a = K(), E(), Qn(a, !0), R(a, "VariableDeclaration"), a.fa.length === 1 && L(Rt) ? Yn(l, a) : Kt(l, a)) : (a = re(!1, !0), L(Rt) ? (Tt(a), Yn(l, a)) : Kt(l, a));
|
|
808
808
|
case on:
|
|
809
809
|
return E(), _t(l, !0);
|
|
810
810
|
case ur:
|
|
811
|
-
return E(), l.test = Qe(), l.da =
|
|
811
|
+
return E(), l.test = Qe(), l.da = fe(), l.alternate = L(sr) ? fe() : null, R(l, "IfStatement");
|
|
812
812
|
case cr:
|
|
813
813
|
return nt || O.Ib || r(Y, "'return' outside of function"), E(), L(we) || wt() ? l.K = null : (l.K = re(), je()), R(l, "ReturnStatement");
|
|
814
814
|
case sn:
|
|
815
815
|
for (E(), l.Qb = Qe(), l.tb = [], J(ot), X.push(Jo); x !== He; )
|
|
816
|
-
x === rn || x === or ? (a = x === rn,
|
|
817
|
-
return
|
|
816
|
+
x === rn || x === or ? (a = x === rn, h && R(h, "SwitchCase"), l.tb.push(h = K()), h.da = [], E(), a ? h.test = re() : (p && r(Zt, "Multiple default clauses"), p = !0, h.test = null), J(it)) : (h || be(), h.da.push(fe()));
|
|
817
|
+
return h && R(h, "SwitchCase"), E(), X.pop(), R(l, "SwitchStatement");
|
|
818
818
|
case pr:
|
|
819
819
|
return E(), $t.test(k.slice($e, Y)) && r($e, "Illegal newline after throw"), l.K = re(), je(), R(l, "ThrowStatement");
|
|
820
820
|
case dr:
|
|
@@ -822,21 +822,21 @@ var V, $i = function(e) {
|
|
|
822
822
|
case an:
|
|
823
823
|
return E(), Qn(l), je(), R(l, "VariableDeclaration");
|
|
824
824
|
case ln:
|
|
825
|
-
return E(), l.test = Qe(), X.push(pn), l.body =
|
|
826
|
-
case
|
|
827
|
-
return ce && r(Y, "'with' in strict mode"), E(), l.object = Qe(), l.body =
|
|
825
|
+
return E(), l.test = Qe(), X.push(pn), l.body = fe(), X.pop(), R(l, "WhileStatement");
|
|
826
|
+
case hr:
|
|
827
|
+
return ce && r(Y, "'with' in strict mode"), E(), l.object = Qe(), l.body = fe(), R(l, "WithStatement");
|
|
828
828
|
case ot:
|
|
829
829
|
return Ze();
|
|
830
830
|
case we:
|
|
831
831
|
return E(), R(l, "EmptyStatement");
|
|
832
832
|
default:
|
|
833
|
-
if (p =
|
|
834
|
-
for (
|
|
835
|
-
X[
|
|
833
|
+
if (p = he, P = re(), a === Me && P.type === "Identifier" && L(it)) {
|
|
834
|
+
for (h = 0; h < X.length; ++h)
|
|
835
|
+
X[h].name === p && r(P.start, "Label '" + p + "' is already declared");
|
|
836
836
|
return X.push({
|
|
837
837
|
name: p,
|
|
838
838
|
kind: x.W ? "loop" : x === sn ? "switch" : null
|
|
839
|
-
}), l.body =
|
|
839
|
+
}), l.body = fe(), X.pop(), l.label = P, R(l, "LabeledStatement");
|
|
840
840
|
}
|
|
841
841
|
return l.la = P, je(), R(l, "ExpressionStatement");
|
|
842
842
|
}
|
|
@@ -847,22 +847,22 @@ var V, $i = function(e) {
|
|
|
847
847
|
return J(ge), a;
|
|
848
848
|
}
|
|
849
849
|
function Ze(a) {
|
|
850
|
-
var l = K(), p = !0,
|
|
850
|
+
var l = K(), p = !0, h = !1;
|
|
851
851
|
for (l.body = [], J(ot); !L(He); ) {
|
|
852
|
-
var P =
|
|
852
|
+
var P = fe();
|
|
853
853
|
if (l.body.push(P), p && a && We(P)) {
|
|
854
|
-
var Q =
|
|
855
|
-
D(
|
|
854
|
+
var Q = h;
|
|
855
|
+
D(h = !0);
|
|
856
856
|
}
|
|
857
857
|
p = !1;
|
|
858
858
|
}
|
|
859
|
-
return
|
|
859
|
+
return h && !Q && D(!1), R(l, "BlockStatement");
|
|
860
860
|
}
|
|
861
861
|
function Kt(a, l) {
|
|
862
|
-
return a.ua = l, J(we), a.test = x === we ? null : re(), J(we), a.update = x === ge ? null : re(), J(ge), a.body =
|
|
862
|
+
return a.ua = l, J(we), a.test = x === we ? null : re(), J(we), a.update = x === ge ? null : re(), J(ge), a.body = fe(), X.pop(), R(a, "ForStatement");
|
|
863
863
|
}
|
|
864
864
|
function Yn(a, l) {
|
|
865
|
-
return a.left = l, a.right = re(), J(ge), a.body =
|
|
865
|
+
return a.left = l, a.right = re(), J(ge), a.body = fe(), X.pop(), R(a, "ForInStatement");
|
|
866
866
|
}
|
|
867
867
|
function Qn(a, l) {
|
|
868
868
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
@@ -886,23 +886,23 @@ var V, $i = function(e) {
|
|
|
886
886
|
var p = _(l);
|
|
887
887
|
p.test = l, p.da = re(!0), J(it), p.alternate = re(!0, a), l = R(p, "ConditionalExpression");
|
|
888
888
|
}
|
|
889
|
-
return x.Cb ? (p = _(l), p.operator =
|
|
889
|
+
return x.Cb ? (p = _(l), p.operator = he, p.left = l, E(), p.right = zt(a), Tt(l), R(p, "AssignmentExpression")) : l;
|
|
890
890
|
}
|
|
891
891
|
function qt(a, l, p) {
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
892
|
+
var h = x.L;
|
|
893
|
+
if (h !== null && (!p || x !== Rt) && h > l) {
|
|
894
894
|
var P = _(a);
|
|
895
|
-
return P.left = a, P.operator =
|
|
895
|
+
return P.left = a, P.operator = he, a = x, E(), P.right = qt(Gt(), h, p), h = R(P, a === Tr || a === Er ? "LogicalExpression" : "BinaryExpression"), qt(h, l, p);
|
|
896
896
|
}
|
|
897
897
|
return a;
|
|
898
898
|
}
|
|
899
899
|
function Gt() {
|
|
900
900
|
if (x.prefix) {
|
|
901
901
|
var a = K(), l = x.$b;
|
|
902
|
-
return a.operator =
|
|
902
|
+
return a.operator = he, tt = a.prefix = !0, E(), a.K = Gt(), l ? Tt(a.K) : ce && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), R(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
903
903
|
}
|
|
904
904
|
for (l = et(Et()); x.cc && !wt(); )
|
|
905
|
-
a = _(l), a.operator =
|
|
905
|
+
a = _(l), a.operator = he, a.prefix = !1, a.K = l, Tt(l), E(), l = R(a, "UpdateExpression");
|
|
906
906
|
return l;
|
|
907
907
|
}
|
|
908
908
|
function et(a, l) {
|
|
@@ -922,7 +922,7 @@ var V, $i = function(e) {
|
|
|
922
922
|
case rt:
|
|
923
923
|
case It:
|
|
924
924
|
case er:
|
|
925
|
-
return a = K(), a.value =
|
|
925
|
+
return a = K(), a.value = he, a.raw = k.slice(Y, Fe), E(), R(a, "Literal");
|
|
926
926
|
case gr:
|
|
927
927
|
case yr:
|
|
928
928
|
case vr:
|
|
@@ -941,28 +941,28 @@ var V, $i = function(e) {
|
|
|
941
941
|
l = !1;
|
|
942
942
|
else if (J(xe), O.sb && L(He))
|
|
943
943
|
break;
|
|
944
|
-
var
|
|
944
|
+
var h = {
|
|
945
945
|
key: x === rt || x === It ? Et() : Se(!0)
|
|
946
946
|
}, P = !1;
|
|
947
947
|
if (L(it)) {
|
|
948
|
-
|
|
949
|
-
var Q =
|
|
948
|
+
h.value = re(!0);
|
|
949
|
+
var Q = h.kind = "init";
|
|
950
950
|
} else
|
|
951
|
-
|
|
952
|
-
if (
|
|
951
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? be() : (P = p = !0, Q = h.kind = h.key.name, h.key = x === rt || x === It ? Et() : Se(!0), x !== Ce && be(), h.value = _t(K(), !1));
|
|
952
|
+
if (h.key.type === "Identifier" && (ce || p))
|
|
953
953
|
for (var se = 0; se < a.h.length; ++se) {
|
|
954
954
|
var ze = a.h[se];
|
|
955
|
-
if (ze.key.name ===
|
|
955
|
+
if (ze.key.name === h.key.name) {
|
|
956
956
|
var dn = Q === ze.kind || P && ze.kind === "init" || Q === "init" && (ze.kind === "get" || ze.kind === "set");
|
|
957
|
-
dn && !ce && Q === "init" && ze.kind === "init" && (dn = !1), dn && r(
|
|
957
|
+
dn && !ce && Q === "init" && ze.kind === "init" && (dn = !1), dn && r(h.key.start, "Redefinition of property");
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
a.h.push(
|
|
960
|
+
a.h.push(h);
|
|
961
961
|
}
|
|
962
962
|
return R(a, "ObjectExpression");
|
|
963
963
|
case on:
|
|
964
964
|
return a = K(), E(), _t(a, !1);
|
|
965
|
-
case
|
|
965
|
+
case fr:
|
|
966
966
|
return a = K(), E(), a.callee = et(Et(), !0), a.arguments = L(Ce) ? Jt(ge, !1) : Bo, R(a, "NewExpression");
|
|
967
967
|
}
|
|
968
968
|
be();
|
|
@@ -973,28 +973,28 @@ var V, $i = function(e) {
|
|
|
973
973
|
for (J(Ce); !L(ge); )
|
|
974
974
|
p ? p = !1 : J(xe), a.oa.push(Se());
|
|
975
975
|
p = nt;
|
|
976
|
-
var
|
|
977
|
-
if (nt = !0, X = [], a.body = Ze(!0), nt = p, X =
|
|
976
|
+
var h = X;
|
|
977
|
+
if (nt = !0, X = [], a.body = Ze(!0), nt = p, X = h, ce || a.body.body.length && We(a.body.body[0])) {
|
|
978
978
|
for (p = a.id ? -1 : 0; p < a.oa.length; ++p)
|
|
979
|
-
if (
|
|
979
|
+
if (h = 0 > p ? a.id : a.oa[p], (Ir(h.name) || At(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= p)
|
|
980
980
|
for (var P = 0; P < p; ++P)
|
|
981
|
-
|
|
981
|
+
h.name === a.oa[P].name && r(h.start, "Argument name clash in strict mode");
|
|
982
982
|
}
|
|
983
983
|
return R(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
984
984
|
}
|
|
985
985
|
function Jt(a, l, p) {
|
|
986
|
-
for (var
|
|
986
|
+
for (var h = [], P = !0; !L(a); ) {
|
|
987
987
|
if (P)
|
|
988
988
|
P = !1;
|
|
989
989
|
else if (J(xe), l && O.sb && L(a))
|
|
990
990
|
break;
|
|
991
|
-
|
|
991
|
+
h.push(p && x === xe ? null : re(!0));
|
|
992
992
|
}
|
|
993
|
-
return
|
|
993
|
+
return h;
|
|
994
994
|
}
|
|
995
995
|
function Se(a) {
|
|
996
996
|
var l = K();
|
|
997
|
-
return a && O.yb === "everywhere" && (a = !1), x === Me ? (!a && (O.yb && zo(
|
|
997
|
+
return a && O.yb === "everywhere" && (a = !1), x === Me ? (!a && (O.yb && zo(he) || ce && Ir(he)) && k.slice(Y, Fe).indexOf("\\") === -1 && r(Y, "The keyword '" + he + "' is reserved"), l.name = he) : a && x.l ? l.name = x.l : be(), tt = !1, E(), R(l, "Identifier");
|
|
998
998
|
}
|
|
999
999
|
e.version = "0.5.0";
|
|
1000
1000
|
var O, k = "", Le, Xt;
|
|
@@ -1003,7 +1003,7 @@ var V, $i = function(e) {
|
|
|
1003
1003
|
for (var p in Zn)
|
|
1004
1004
|
Object.prototype.hasOwnProperty.call(O, p) || (O[p] = Zn[p]);
|
|
1005
1005
|
for (Xt = O.sourceFile, Ve = 1, d = ke = 0, tt = !0, c(), p = O.dc, Zt = $e = d, O.C && (en = new i()), nt = ce = !1, X = [], y(), a = p || K(), l = !0, p || (a.body = []); x !== tn; )
|
|
1006
|
-
p =
|
|
1006
|
+
p = fe(), a.body.push(p), l && We(p) && D(!0), l = !1;
|
|
1007
1007
|
return R(a, "Program");
|
|
1008
1008
|
};
|
|
1009
1009
|
var Zn = {
|
|
@@ -1017,7 +1017,7 @@ var V, $i = function(e) {
|
|
|
1017
1017
|
dc: null,
|
|
1018
1018
|
sourceFile: null,
|
|
1019
1019
|
vb: null
|
|
1020
|
-
}, d = 0, Y = 0, Fe = 0, Yt, Qt, x,
|
|
1020
|
+
}, d = 0, Y = 0, Fe = 0, Yt, Qt, x, he, tt, Ve, ke, Zt = 0, $e = 0, en, nt, X, ce, Bo = [], rt = {
|
|
1021
1021
|
type: "num"
|
|
1022
1022
|
}, er = {
|
|
1023
1023
|
type: "regexp"
|
|
@@ -1070,9 +1070,9 @@ var V, $i = function(e) {
|
|
|
1070
1070
|
}, ln = {
|
|
1071
1071
|
l: "while",
|
|
1072
1072
|
W: !0
|
|
1073
|
-
}, fr = {
|
|
1074
|
-
l: "with"
|
|
1075
1073
|
}, hr = {
|
|
1074
|
+
l: "with"
|
|
1075
|
+
}, fr = {
|
|
1076
1076
|
l: "new",
|
|
1077
1077
|
m: !0
|
|
1078
1078
|
}, mr = {
|
|
@@ -1109,11 +1109,11 @@ var V, $i = function(e) {
|
|
|
1109
1109
|
try: dr,
|
|
1110
1110
|
var: an,
|
|
1111
1111
|
while: ln,
|
|
1112
|
-
with:
|
|
1112
|
+
with: hr,
|
|
1113
1113
|
null: gr,
|
|
1114
1114
|
true: yr,
|
|
1115
1115
|
false: vr,
|
|
1116
|
-
new:
|
|
1116
|
+
new: fr,
|
|
1117
1117
|
in: Rt,
|
|
1118
1118
|
instanceof: {
|
|
1119
1119
|
l: "instanceof",
|
|
@@ -1268,12 +1268,12 @@ var Ar = {
|
|
|
1268
1268
|
VALUE_IN_DESCRIPTOR: !0
|
|
1269
1269
|
}, qe = {
|
|
1270
1270
|
REGEXP_TIMEOUT: !0
|
|
1271
|
-
}, xr = [], Ee = null,
|
|
1271
|
+
}, xr = [], Ee = null, ht = null, Be = typeof globalThis > "u" ? void 0 : globalThis, xi = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
1272
1272
|
function On(e) {
|
|
1273
1273
|
var t = e >>> 0;
|
|
1274
1274
|
return t === Number(e) ? t : NaN;
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function ft(e) {
|
|
1277
1277
|
var t = e >>> 0;
|
|
1278
1278
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1279
1279
|
}
|
|
@@ -1327,15 +1327,15 @@ V.lb = function() {
|
|
|
1327
1327
|
break;
|
|
1328
1328
|
}
|
|
1329
1329
|
r = n.node;
|
|
1330
|
-
var o =
|
|
1331
|
-
|
|
1330
|
+
var o = ht;
|
|
1331
|
+
ht = this;
|
|
1332
1332
|
try {
|
|
1333
1333
|
var i = this.rb[r.type](e, n, r);
|
|
1334
1334
|
} catch (s) {
|
|
1335
1335
|
if (s !== io)
|
|
1336
1336
|
throw this.value !== s && (this.value = void 0), s;
|
|
1337
1337
|
} finally {
|
|
1338
|
-
|
|
1338
|
+
ht = o;
|
|
1339
1339
|
}
|
|
1340
1340
|
if (i && e.push(i), this.P)
|
|
1341
1341
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1908,7 +1908,7 @@ V.G = function(e, t) {
|
|
|
1908
1908
|
if (ne(this, e, this.J))
|
|
1909
1909
|
return String(e).length;
|
|
1910
1910
|
} else if (64 > t.charCodeAt(0) && ne(this, e, this.J)) {
|
|
1911
|
-
var n =
|
|
1911
|
+
var n = ft(t);
|
|
1912
1912
|
if (!isNaN(n) && n < String(e).length)
|
|
1913
1913
|
return String(e)[n];
|
|
1914
1914
|
}
|
|
@@ -1923,7 +1923,7 @@ function Mt(e, t, n) {
|
|
|
1923
1923
|
if (n = String(n), n === "length" && ne(e, t, e.J))
|
|
1924
1924
|
return !0;
|
|
1925
1925
|
if (ne(e, t, e.J)) {
|
|
1926
|
-
var r =
|
|
1926
|
+
var r = ft(n);
|
|
1927
1927
|
if (!isNaN(r) && r < String(t).length)
|
|
1928
1928
|
return !0;
|
|
1929
1929
|
}
|
|
@@ -1942,7 +1942,7 @@ V.g = function(e, t, n, r) {
|
|
|
1942
1942
|
var o = !this.o || Vn(this).S;
|
|
1943
1943
|
if (e instanceof N) {
|
|
1944
1944
|
if (ne(this, e, this.J)) {
|
|
1945
|
-
var i =
|
|
1945
|
+
var i = ft(t);
|
|
1946
1946
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1947
1947
|
o && I(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1948
1948
|
return;
|
|
@@ -1957,11 +1957,11 @@ V.g = function(e, t, n, r) {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
if (n = On(n), isNaN(n) && I(this, this.ob, "Invalid array length"), n < i)
|
|
1959
1959
|
for (s in e.h) {
|
|
1960
|
-
var s =
|
|
1960
|
+
var s = ft(s);
|
|
1961
1961
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1962
1962
|
}
|
|
1963
1963
|
} else
|
|
1964
|
-
isNaN(s =
|
|
1964
|
+
isNaN(s = ft(t)) || (e.h.length = Math.max(i, s + 1));
|
|
1965
1965
|
if (!e.preventExtensions || t in e.h)
|
|
1966
1966
|
if (r) {
|
|
1967
1967
|
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== yt && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
@@ -2233,7 +2233,7 @@ function Fn(e, t, n, r) {
|
|
|
2233
2233
|
var o = e.ya();
|
|
2234
2234
|
return o.type = "CallExpression", e = new T(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function hn(e, t) {
|
|
2237
2237
|
return t == null ? e.Na : t instanceof N ? t : (e = e.s(Ie(e, t)), e.data = t, e);
|
|
2238
2238
|
}
|
|
2239
2239
|
V.Xb = function() {
|
|
@@ -2259,7 +2259,7 @@ V.xa = null;
|
|
|
2259
2259
|
V.H = "Object";
|
|
2260
2260
|
V.data = null;
|
|
2261
2261
|
V.toString = function() {
|
|
2262
|
-
if (!
|
|
2262
|
+
if (!ht)
|
|
2263
2263
|
return "[object Interpreter.Object]";
|
|
2264
2264
|
if (!(this instanceof N))
|
|
2265
2265
|
return String(this);
|
|
@@ -2307,7 +2307,7 @@ V.toString = function() {
|
|
|
2307
2307
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2308
2308
|
};
|
|
2309
2309
|
V.valueOf = function() {
|
|
2310
|
-
return !
|
|
2310
|
+
return !ht || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2311
2311
|
};
|
|
2312
2312
|
function Hi(e, t, n, r, o) {
|
|
2313
2313
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Ki, this.time = 0;
|
|
@@ -2501,7 +2501,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2501
2501
|
this.g(r, o, t.F[o]);
|
|
2502
2502
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2503
2503
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2504
|
-
return n.S || (t.B =
|
|
2504
|
+
return n.S || (t.B = hn(this, t.B)), this.g(n.object, "this", t.B, Pn), t.value = void 0, new T(e.body, n);
|
|
2505
2505
|
}
|
|
2506
2506
|
if (o.eval)
|
|
2507
2507
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2515,12 +2515,12 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2515
2515
|
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ft(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = kn(this, r, n) : vt(this, r, n), this.value = void 0, new T(o, n);
|
|
2516
2516
|
}
|
|
2517
2517
|
else if (o.Ta)
|
|
2518
|
-
t.scope.S || (t.B =
|
|
2518
|
+
t.scope.S || (t.B = hn(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2519
2519
|
else if (o.Za) {
|
|
2520
2520
|
var s = this;
|
|
2521
2521
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2522
2522
|
t.value = u, s.za = !1;
|
|
2523
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2523
|
+
}), this.za = !0, t.scope.S || (t.B = hn(this, t.B)), o.Za.apply(t.B, r);
|
|
2524
2524
|
} else
|
|
2525
2525
|
I(this, this.j, ae(this, n.callee) + " is not callable");
|
|
2526
2526
|
}
|
|
@@ -2921,7 +2921,7 @@ function theFunction() {
|
|
|
2921
2921
|
${y}
|
|
2922
2922
|
}
|
|
2923
2923
|
theFunction();
|
|
2924
|
-
`,
|
|
2924
|
+
`, f = function($, H) {
|
|
2925
2925
|
c.forEach(([te, E]) => {
|
|
2926
2926
|
if (te === "state")
|
|
2927
2927
|
$.setProperty(H, te, $.createConnectedObject(E), $.READONLY_DESCRIPTOR);
|
|
@@ -2930,7 +2930,7 @@ theFunction();
|
|
|
2930
2930
|
$.setProperty(H, Nr(te), D);
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
|
-
}, S = new g(b,
|
|
2933
|
+
}, S = new g(b, f);
|
|
2934
2934
|
return S.run(), S.pseudoToNative(S.value);
|
|
2935
2935
|
};
|
|
2936
2936
|
function _i() {
|
|
@@ -3193,7 +3193,7 @@ function rc(e) {
|
|
|
3193
3193
|
parent.postMessage(t, "*");
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
const Vr = "builder.", ds = "options.",
|
|
3196
|
+
const Vr = "builder.", ds = "options.", ho = (e) => {
|
|
3197
3197
|
if (!e)
|
|
3198
3198
|
return {};
|
|
3199
3199
|
const t = _r(e), n = {};
|
|
@@ -3203,20 +3203,20 @@ const Vr = "builder.", ds = "options.", fo = (e) => {
|
|
|
3203
3203
|
n[o] = t[r];
|
|
3204
3204
|
}
|
|
3205
3205
|
}), n;
|
|
3206
|
-
},
|
|
3206
|
+
}, hs = () => {
|
|
3207
3207
|
if (!M())
|
|
3208
3208
|
return {};
|
|
3209
3209
|
const e = new URLSearchParams(window.location.search);
|
|
3210
|
-
return
|
|
3211
|
-
},
|
|
3212
|
-
function
|
|
3210
|
+
return ho(e);
|
|
3211
|
+
}, fs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3212
|
+
function fo(e, t) {
|
|
3213
3213
|
let n;
|
|
3214
3214
|
try {
|
|
3215
3215
|
n = new URL(t.origin);
|
|
3216
3216
|
} catch {
|
|
3217
3217
|
return !1;
|
|
3218
3218
|
}
|
|
3219
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
3219
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || fs).findIndex((r) => r.startsWith("*.") ? n.hostname.endsWith(r.slice(1)) : r === n.hostname) > -1;
|
|
3220
3220
|
}
|
|
3221
3221
|
let Dr = !1;
|
|
3222
3222
|
const mo = (e) => {
|
|
@@ -3243,7 +3243,7 @@ const mo = (e) => {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
}, "*"), window.addEventListener("message", (r) => {
|
|
3245
3245
|
var i, s;
|
|
3246
|
-
if (!
|
|
3246
|
+
if (!fo(e.trustedHosts, r))
|
|
3247
3247
|
return;
|
|
3248
3248
|
const {
|
|
3249
3249
|
data: o
|
|
@@ -3252,17 +3252,17 @@ const mo = (e) => {
|
|
|
3252
3252
|
switch (o.type) {
|
|
3253
3253
|
case "builder.evaluate": {
|
|
3254
3254
|
const u = o.data.text, c = o.data.arguments || [], m = o.data.id, y = new Function(u);
|
|
3255
|
-
let b,
|
|
3255
|
+
let b, f = null;
|
|
3256
3256
|
try {
|
|
3257
3257
|
b = y.apply(null, c);
|
|
3258
3258
|
} catch (S) {
|
|
3259
|
-
|
|
3259
|
+
f = S;
|
|
3260
3260
|
}
|
|
3261
|
-
|
|
3261
|
+
f ? (i = window.parent) == null || i.postMessage({
|
|
3262
3262
|
type: "builder.evaluateError",
|
|
3263
3263
|
data: {
|
|
3264
3264
|
id: m,
|
|
3265
|
-
error:
|
|
3265
|
+
error: f.message
|
|
3266
3266
|
}
|
|
3267
3267
|
}, "*") : b && typeof b.then == "function" ? b.then((S) => {
|
|
3268
3268
|
var A;
|
|
@@ -3289,7 +3289,7 @@ const mo = (e) => {
|
|
|
3289
3289
|
trustedHosts: t,
|
|
3290
3290
|
callbacks: n
|
|
3291
3291
|
}) => (r) => {
|
|
3292
|
-
if (!
|
|
3292
|
+
if (!fo(t, r))
|
|
3293
3293
|
return;
|
|
3294
3294
|
const {
|
|
3295
3295
|
data: o
|
|
@@ -3538,7 +3538,7 @@ const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (
|
|
|
3538
3538
|
fields: m,
|
|
3539
3539
|
omit: y,
|
|
3540
3540
|
offset: b,
|
|
3541
|
-
cacheSeconds:
|
|
3541
|
+
cacheSeconds: f,
|
|
3542
3542
|
staleCacheSeconds: S,
|
|
3543
3543
|
sort: A,
|
|
3544
3544
|
includeUnpublished: $,
|
|
@@ -3551,7 +3551,7 @@ const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (
|
|
|
3551
3551
|
const te = t !== 1, E = H || "https://cdn.builder.io", D = new URL(`${E}/api/${c}/content/${o}`);
|
|
3552
3552
|
D.searchParams.set("apiKey", i), D.searchParams.set("limit", String(t)), D.searchParams.set("noTraverse", String(te)), D.searchParams.set("includeRefs", String(!0)), u && D.searchParams.set("locale", u);
|
|
3553
3553
|
let ie = n || {};
|
|
3554
|
-
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"), m && D.searchParams.set("fields", m), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof $ == "boolean" && D.searchParams.set("includeUnpublished", String($)),
|
|
3554
|
+
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"), m && D.searchParams.set("fields", m), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof $ == "boolean" && D.searchParams.set("includeUnpublished", String($)), f && Lr(f) && D.searchParams.set("cacheSeconds", String(f)), S && Lr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3555
3555
|
const _ = Tn({
|
|
3556
3556
|
sort: A
|
|
3557
3557
|
});
|
|
@@ -3559,7 +3559,7 @@ const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (
|
|
|
3559
3559
|
D.searchParams.set(R, JSON.stringify(_[R]));
|
|
3560
3560
|
}
|
|
3561
3561
|
const Ae = {
|
|
3562
|
-
...
|
|
3562
|
+
...hs(),
|
|
3563
3563
|
..._r(e.options || {})
|
|
3564
3564
|
};
|
|
3565
3565
|
ie = {
|
|
@@ -3654,7 +3654,7 @@ const sc = async (e) => {
|
|
|
3654
3654
|
urlPath: t
|
|
3655
3655
|
} : {}
|
|
3656
3656
|
},
|
|
3657
|
-
options:
|
|
3657
|
+
options: ho(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3658
3658
|
};
|
|
3659
3659
|
return {
|
|
3660
3660
|
apiKey: n.apiKey,
|
|
@@ -3745,8 +3745,8 @@ function Vs(e) {
|
|
|
3745
3745
|
leading: !1
|
|
3746
3746
|
});
|
|
3747
3747
|
function u(y) {
|
|
3748
|
-
const b = y.getBoundingClientRect(),
|
|
3749
|
-
return b.bottom > A && b.top <
|
|
3748
|
+
const b = y.getBoundingClientRect(), f = window.innerHeight, A = (e.thresholdPercent || 0) / 100 * f;
|
|
3749
|
+
return b.bottom > A && b.top < f - A;
|
|
3750
3750
|
}
|
|
3751
3751
|
const c = e.steps[0].styles;
|
|
3752
3752
|
function m() {
|
|
@@ -3878,22 +3878,22 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3878
3878
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3879
3879
|
e
|
|
3880
3880
|
), e;
|
|
3881
|
-
}), Gs = () => import("./block-wrapper-
|
|
3881
|
+
}), Gs = () => import("./block-wrapper-1dKtPesr.js").then((e) => e.default).catch((e) => {
|
|
3882
3882
|
throw console.error(
|
|
3883
3883
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3884
3884
|
e
|
|
3885
3885
|
), e;
|
|
3886
|
-
}), _s = () => import("./component-ref-
|
|
3886
|
+
}), _s = () => import("./component-ref-e50s6g-8.js").then((e) => e.default).catch((e) => {
|
|
3887
3887
|
throw console.error(
|
|
3888
3888
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3889
3889
|
e
|
|
3890
3890
|
), e;
|
|
3891
|
-
}), Js = () => import("./repeated-block-
|
|
3891
|
+
}), Js = () => import("./repeated-block-YtApB6_A.js").then((e) => e.default).catch((e) => {
|
|
3892
3892
|
throw console.error(
|
|
3893
3893
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3894
3894
|
e
|
|
3895
3895
|
), e;
|
|
3896
|
-
}), Xs = () => import("./style-wrapper-
|
|
3896
|
+
}), Xs = () => import("./style-wrapper-_yXwiJwO.js").then((e) => e.default).catch((e) => {
|
|
3897
3897
|
throw console.error(
|
|
3898
3898
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3899
3899
|
e
|
|
@@ -4003,10 +4003,10 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4003
4003
|
id: e.block.id
|
|
4004
4004
|
}, null, 8, ["block", "context", "id"]),
|
|
4005
4005
|
(b = e.blockComponent) != null && b.noWrap ? (v(), w(z, { key: 1 }, [
|
|
4006
|
-
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (
|
|
4006
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (f, S) => (v(), U(y, {
|
|
4007
4007
|
key: e.generateKey(S),
|
|
4008
|
-
repeatContext:
|
|
4009
|
-
block:
|
|
4008
|
+
repeatContext: f.context,
|
|
4009
|
+
block: f.block,
|
|
4010
4010
|
registeredComponents: e.registeredComponents,
|
|
4011
4011
|
linkComponent: e.linkComponent
|
|
4012
4012
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(u, {
|
|
@@ -4022,10 +4022,10 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4022
4022
|
isInteractive: e.componentRefProps.isInteractive
|
|
4023
4023
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
4024
4024
|
], 64)) : (v(), w(z, { key: 0 }, [
|
|
4025
|
-
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (
|
|
4025
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (f, S) => (v(), U(y, {
|
|
4026
4026
|
key: e.generateKey(S),
|
|
4027
|
-
repeatContext:
|
|
4028
|
-
block:
|
|
4027
|
+
repeatContext: f.context,
|
|
4028
|
+
block: f.block,
|
|
4029
4029
|
registeredComponents: e.registeredComponents,
|
|
4030
4030
|
linkComponent: e.linkComponent
|
|
4031
4031
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(m, {
|
|
@@ -4046,9 +4046,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4046
4046
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4047
4047
|
isInteractive: e.componentRefProps.isInteractive
|
|
4048
4048
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4049
|
-
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (
|
|
4050
|
-
key:
|
|
4051
|
-
block:
|
|
4049
|
+
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (f, S) => (v(), U(c, {
|
|
4050
|
+
key: f.id,
|
|
4051
|
+
block: f,
|
|
4052
4052
|
registeredComponents: e.registeredComponents,
|
|
4053
4053
|
linkComponent: e.linkComponent,
|
|
4054
4054
|
context: e.context
|
|
@@ -4182,11 +4182,11 @@ function ra(e, t, n, r, o, i) {
|
|
|
4182
4182
|
}, {
|
|
4183
4183
|
default: me(() => [
|
|
4184
4184
|
pe(e.$slots, "default"),
|
|
4185
|
-
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (
|
|
4185
|
+
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (f, S) => {
|
|
4186
4186
|
var A;
|
|
4187
4187
|
return v(), U(s, {
|
|
4188
|
-
key:
|
|
4189
|
-
block:
|
|
4188
|
+
key: f.id,
|
|
4189
|
+
block: f,
|
|
4190
4190
|
linkComponent: e.linkComponent,
|
|
4191
4191
|
context: e.context || e.builderContext,
|
|
4192
4192
|
registeredComponents: e.registeredComponents || ((A = e.componentsContext) == null ? void 0 : A.registeredComponents)
|
|
@@ -4458,12 +4458,12 @@ const pa = /* @__PURE__ */ j(ua, [["render", ca], ["__scopeId", "data-v-ab15749a
|
|
|
4458
4458
|
name: "builder-fragment-component",
|
|
4459
4459
|
props: []
|
|
4460
4460
|
});
|
|
4461
|
-
function
|
|
4461
|
+
function ha(e, t, n, r, o, i) {
|
|
4462
4462
|
return v(), w("span", null, [
|
|
4463
4463
|
pe(e.$slots, "default")
|
|
4464
4464
|
]);
|
|
4465
4465
|
}
|
|
4466
|
-
const
|
|
4466
|
+
const fa = /* @__PURE__ */ j(da, [["render", ha]]);
|
|
4467
4467
|
function Fr(e) {
|
|
4468
4468
|
return e.replace(/http(s)?:/, "");
|
|
4469
4469
|
}
|
|
@@ -4502,14 +4502,14 @@ const ya = B({
|
|
|
4502
4502
|
"src",
|
|
4503
4503
|
"srcset",
|
|
4504
4504
|
"noWebp",
|
|
4505
|
-
"
|
|
4505
|
+
"sizes",
|
|
4506
4506
|
"highPriority",
|
|
4507
|
+
"aspectRatio",
|
|
4507
4508
|
"altText",
|
|
4508
4509
|
"title",
|
|
4509
4510
|
"backgroundPosition",
|
|
4510
4511
|
"backgroundSize",
|
|
4511
4512
|
"className",
|
|
4512
|
-
"sizes",
|
|
4513
4513
|
"builderBlock",
|
|
4514
4514
|
"fitContent"
|
|
4515
4515
|
],
|
|
@@ -4534,6 +4534,9 @@ const ya = B({
|
|
|
4534
4534
|
var e;
|
|
4535
4535
|
return (e = this.srcSetToUse) != null && e.match(/builder\.io/) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
4536
4536
|
},
|
|
4537
|
+
sizesToUse() {
|
|
4538
|
+
return this.sizes || (this.highPriority ? void 0 : "auto");
|
|
4539
|
+
},
|
|
4537
4540
|
aspectRatioCss() {
|
|
4538
4541
|
const e = {
|
|
4539
4542
|
position: "absolute",
|
|
@@ -4545,7 +4548,7 @@ const ya = B({
|
|
|
4545
4548
|
return this.aspectRatio ? e : void 0;
|
|
4546
4549
|
}
|
|
4547
4550
|
}
|
|
4548
|
-
}), va = ["srcset"], ba = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Sa = {
|
|
4551
|
+
}), va = ["srcset", "sizes"], ba = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Sa = {
|
|
4549
4552
|
key: 2,
|
|
4550
4553
|
class: "div-t43jfuqn6g-2"
|
|
4551
4554
|
};
|
|
@@ -4556,7 +4559,8 @@ function ka(e, t, n, r, o, i) {
|
|
|
4556
4559
|
e.webpSrcSet ? (v(), w("source", {
|
|
4557
4560
|
key: 0,
|
|
4558
4561
|
type: "image/webp",
|
|
4559
|
-
srcset: e.webpSrcSet
|
|
4562
|
+
srcset: e.webpSrcSet,
|
|
4563
|
+
sizes: e.sizesToUse
|
|
4560
4564
|
}, null, 8, va)) : F("", !0),
|
|
4561
4565
|
Ge("img", {
|
|
4562
4566
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -4574,7 +4578,7 @@ function ka(e, t, n, r, o, i) {
|
|
|
4574
4578
|
),
|
|
4575
4579
|
src: e.image,
|
|
4576
4580
|
srcset: e.srcSetToUse,
|
|
4577
|
-
sizes: e.
|
|
4581
|
+
sizes: e.sizesToUse
|
|
4578
4582
|
}, null, 14, ba)
|
|
4579
4583
|
]),
|
|
4580
4584
|
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (v(), w("div", {
|
|
@@ -4590,7 +4594,7 @@ function ka(e, t, n, r, o, i) {
|
|
|
4590
4594
|
])) : F("", !0)
|
|
4591
4595
|
], 64);
|
|
4592
4596
|
}
|
|
4593
|
-
const Ca = /* @__PURE__ */ j(ya, [["render", ka], ["__scopeId", "data-v-
|
|
4597
|
+
const Ca = /* @__PURE__ */ j(ya, [["render", ka], ["__scopeId", "data-v-17b592cd"]]), wa = B({
|
|
4594
4598
|
name: "builder-section-component",
|
|
4595
4599
|
props: ["attributes", "maxWidth"],
|
|
4596
4600
|
data() {
|
|
@@ -4625,21 +4629,21 @@ function Ia(e, t, n, r) {
|
|
|
4625
4629
|
}
|
|
4626
4630
|
function s(m, y) {
|
|
4627
4631
|
return (() => {
|
|
4628
|
-
const
|
|
4632
|
+
const f = y.property, S = y.operator;
|
|
4629
4633
|
let A = y.value;
|
|
4630
|
-
if (y && y.property === "urlPath" && y.value && typeof y.value == "string" && y.value !== "/" && y.value.endsWith("/") && (A = y.value.slice(0, -1)), !(
|
|
4634
|
+
if (y && y.property === "urlPath" && y.value && typeof y.value == "string" && y.value !== "/" && y.value.endsWith("/") && (A = y.value.slice(0, -1)), !(f && S))
|
|
4631
4635
|
return !0;
|
|
4632
4636
|
if (Array.isArray(A))
|
|
4633
4637
|
return S === "isNot" ? A.every((H) => s(m, {
|
|
4634
|
-
property:
|
|
4638
|
+
property: f,
|
|
4635
4639
|
operator: S,
|
|
4636
4640
|
value: H
|
|
4637
4641
|
})) : !!A.find((H) => s(m, {
|
|
4638
|
-
property:
|
|
4642
|
+
property: f,
|
|
4639
4643
|
operator: S,
|
|
4640
4644
|
value: H
|
|
4641
4645
|
}));
|
|
4642
|
-
const $ = m[
|
|
4646
|
+
const $ = m[f];
|
|
4643
4647
|
if (Array.isArray($))
|
|
4644
4648
|
return $.includes(A);
|
|
4645
4649
|
switch (S) {
|
|
@@ -4880,7 +4884,7 @@ const Na = () => `
|
|
|
4880
4884
|
window.${xa} = ${Aa}
|
|
4881
4885
|
window.${$o} = ${Ra}
|
|
4882
4886
|
window.${xo} = ${$a}
|
|
4883
|
-
`, No = G === "react", Ba = (e, t, n) => `window.${$o}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`, ja = (e, t, n) => `window.${xo}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`,
|
|
4887
|
+
`, No = G === "react", Ba = (e, t, n) => `window.${$o}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`, ja = (e, t, n) => `window.${xo}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`, fn = {
|
|
4884
4888
|
"@type": "@builder.io/sdk:Element",
|
|
4885
4889
|
layerName: "Accordion item title",
|
|
4886
4890
|
responsiveStyles: {
|
|
@@ -4957,7 +4961,7 @@ const Na = () => `
|
|
|
4957
4961
|
name: "title",
|
|
4958
4962
|
type: "uiBlocks",
|
|
4959
4963
|
hideFromUI: !0,
|
|
4960
|
-
defaultValue: [
|
|
4964
|
+
defaultValue: [fn]
|
|
4961
4965
|
}, {
|
|
4962
4966
|
name: "detail",
|
|
4963
4967
|
type: "uiBlocks",
|
|
@@ -4965,10 +4969,10 @@ const Na = () => `
|
|
|
4965
4969
|
defaultValue: [mn]
|
|
4966
4970
|
}],
|
|
4967
4971
|
defaultValue: [{
|
|
4968
|
-
title: [
|
|
4972
|
+
title: [fn],
|
|
4969
4973
|
detail: [mn]
|
|
4970
4974
|
}, {
|
|
4971
|
-
title: [
|
|
4975
|
+
title: [fn],
|
|
4972
4976
|
detail: [mn]
|
|
4973
4977
|
}],
|
|
4974
4978
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
@@ -5420,8 +5424,8 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5420
5424
|
let b = !1;
|
|
5421
5425
|
y.onload = () => {
|
|
5422
5426
|
b = !0, c(y);
|
|
5423
|
-
}, y.addEventListener("error", (
|
|
5424
|
-
console.warn("Image load failed",
|
|
5427
|
+
}, y.addEventListener("error", (f) => {
|
|
5428
|
+
console.warn("Image load failed", f.error), m(f.error);
|
|
5425
5429
|
}), y.src = s, setTimeout(() => {
|
|
5426
5430
|
b || m(new Error("Image load timed out"));
|
|
5427
5431
|
}, u);
|
|
@@ -5476,7 +5480,8 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5476
5480
|
}, {
|
|
5477
5481
|
name: "sizes",
|
|
5478
5482
|
type: "string",
|
|
5479
|
-
|
|
5483
|
+
advanced: !0,
|
|
5484
|
+
helperText: 'The sizes attribute for responsive images, e.g. "(max-width: 600px) 100vw, 50vw"'
|
|
5480
5485
|
}, {
|
|
5481
5486
|
name: "srcset",
|
|
5482
5487
|
type: "string",
|
|
@@ -5678,7 +5683,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5678
5683
|
}
|
|
5679
5684
|
});
|
|
5680
5685
|
function Ja(e, t, n, r, o, i) {
|
|
5681
|
-
var m, y, b,
|
|
5686
|
+
var m, y, b, f, S, A, $, H, te, E;
|
|
5682
5687
|
const s = W("Blocks"), u = W("InlinedStyles"), c = W("InlinedScript");
|
|
5683
5688
|
return v(), w("div", q({ ref: "rootRef" }, e.attrs), [
|
|
5684
5689
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), U(s, {
|
|
@@ -5696,7 +5701,7 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5696
5701
|
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), w(z, { key: 1 }, [
|
|
5697
5702
|
e.shouldRenderVariants ? (v(), w(z, { key: 0 }, [
|
|
5698
5703
|
ee(u, {
|
|
5699
|
-
nonce: ((
|
|
5704
|
+
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
5700
5705
|
styles: e.hideVariantsStyleString,
|
|
5701
5706
|
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
5702
5707
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
@@ -6124,7 +6129,7 @@ function dl(e, t, n, r, o, i) {
|
|
|
6124
6129
|
}
|
|
6125
6130
|
}, null, 8, pl);
|
|
6126
6131
|
}
|
|
6127
|
-
const
|
|
6132
|
+
const hl = /* @__PURE__ */ j(cl, [["render", dl]]), fl = {
|
|
6128
6133
|
name: "Custom Code",
|
|
6129
6134
|
static: !0,
|
|
6130
6135
|
requiredPermissions: ["editCode"],
|
|
@@ -6577,42 +6582,42 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6577
6582
|
e.preventDefault();
|
|
6578
6583
|
const r = e.currentTarget || e.target, o = this.customHeaders || {};
|
|
6579
6584
|
let i;
|
|
6580
|
-
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((
|
|
6581
|
-
(
|
|
6582
|
-
).map((
|
|
6585
|
+
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).filter(
|
|
6586
|
+
(f) => !!f.name && (f.type !== "radio" || f.checked)
|
|
6587
|
+
).map((f) => {
|
|
6583
6588
|
let S;
|
|
6584
|
-
const A =
|
|
6585
|
-
if (
|
|
6586
|
-
if (
|
|
6587
|
-
if (
|
|
6588
|
-
return S =
|
|
6589
|
+
const A = f.name;
|
|
6590
|
+
if (f instanceof HTMLInputElement)
|
|
6591
|
+
if (f.type === "radio") {
|
|
6592
|
+
if (f.checked)
|
|
6593
|
+
return S = f.value, {
|
|
6589
6594
|
key: A,
|
|
6590
6595
|
value: S
|
|
6591
6596
|
};
|
|
6592
|
-
} else if (
|
|
6593
|
-
S =
|
|
6594
|
-
else if (
|
|
6595
|
-
const $ =
|
|
6597
|
+
} else if (f.type === "checkbox")
|
|
6598
|
+
S = f.checked;
|
|
6599
|
+
else if (f.type === "number" || f.type === "range") {
|
|
6600
|
+
const $ = f.valueAsNumber;
|
|
6596
6601
|
isNaN($) || (S = $);
|
|
6597
6602
|
} else
|
|
6598
|
-
|
|
6603
|
+
f.type === "file" ? S = f.files : S = f.value;
|
|
6599
6604
|
else
|
|
6600
|
-
S =
|
|
6605
|
+
S = f.value;
|
|
6601
6606
|
return {
|
|
6602
6607
|
key: A,
|
|
6603
6608
|
value: S
|
|
6604
6609
|
};
|
|
6605
6610
|
});
|
|
6606
6611
|
let c = this.contentType;
|
|
6607
|
-
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value:
|
|
6608
|
-
(
|
|
6612
|
+
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value: f }) => {
|
|
6613
|
+
(f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (c = "multipart/form-data");
|
|
6609
6614
|
}), c !== "application/json")
|
|
6610
6615
|
i = s;
|
|
6611
6616
|
else {
|
|
6612
|
-
const
|
|
6617
|
+
const f = {};
|
|
6613
6618
|
Array.from(u).forEach(({ value: S, key: A }) => {
|
|
6614
|
-
po(
|
|
6615
|
-
}), i = JSON.stringify(
|
|
6619
|
+
po(f, A, S);
|
|
6620
|
+
}), i = JSON.stringify(f);
|
|
6616
6621
|
}
|
|
6617
6622
|
c && c !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = c));
|
|
6618
6623
|
const m = new CustomEvent("presubmit", {
|
|
@@ -6623,9 +6628,9 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6623
6628
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
6624
6629
|
return;
|
|
6625
6630
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
6626
|
-
const
|
|
6627
|
-
console.error(
|
|
6628
|
-
formErrorMessage:
|
|
6631
|
+
const f = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
6632
|
+
console.error(f), this.formState = "error", this.mergeNewRootState({
|
|
6633
|
+
formErrorMessage: f
|
|
6629
6634
|
});
|
|
6630
6635
|
return;
|
|
6631
6636
|
}
|
|
@@ -6637,15 +6642,15 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6637
6642
|
headers: o,
|
|
6638
6643
|
method: this.method || "post"
|
|
6639
6644
|
}).then(
|
|
6640
|
-
async (
|
|
6645
|
+
async (f) => {
|
|
6641
6646
|
var $, H;
|
|
6642
6647
|
let S;
|
|
6643
|
-
const A =
|
|
6644
|
-
if (A && A.indexOf("application/json") !== -1 ? S = await
|
|
6648
|
+
const A = f.headers.get("content-type");
|
|
6649
|
+
if (A && A.indexOf("application/json") !== -1 ? S = await f.json() : S = await f.text(), !f.ok) {
|
|
6645
6650
|
const te = new CustomEvent("submit:error", {
|
|
6646
6651
|
detail: {
|
|
6647
6652
|
error: S,
|
|
6648
|
-
status:
|
|
6653
|
+
status: f.status
|
|
6649
6654
|
}
|
|
6650
6655
|
});
|
|
6651
6656
|
if (($ = this.$refs.formRef) != null && $.nativeElement && ((H = this.$refs.formRef) == null || H.nativeElement.dispatchEvent(
|
|
@@ -6659,10 +6664,10 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6659
6664
|
});
|
|
6660
6665
|
return;
|
|
6661
6666
|
}
|
|
6662
|
-
if (this.responseData = S, this.formState =
|
|
6667
|
+
if (this.responseData = S, this.formState = f.ok ? "success" : "error", f.ok) {
|
|
6663
6668
|
const te = new CustomEvent("submit:success", {
|
|
6664
6669
|
detail: {
|
|
6665
|
-
res:
|
|
6670
|
+
res: f,
|
|
6666
6671
|
body: S
|
|
6667
6672
|
}
|
|
6668
6673
|
});
|
|
@@ -6683,13 +6688,13 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6683
6688
|
location.href = this.successUrl;
|
|
6684
6689
|
}
|
|
6685
6690
|
},
|
|
6686
|
-
(
|
|
6691
|
+
(f) => {
|
|
6687
6692
|
const S = new CustomEvent("submit:error", {
|
|
6688
6693
|
detail: {
|
|
6689
|
-
error:
|
|
6694
|
+
error: f
|
|
6690
6695
|
}
|
|
6691
6696
|
});
|
|
6692
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData =
|
|
6697
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData = f, this.formState = "error");
|
|
6693
6698
|
}
|
|
6694
6699
|
);
|
|
6695
6700
|
}
|
|
@@ -7237,7 +7242,7 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7237
7242
|
}
|
|
7238
7243
|
};
|
|
7239
7244
|
function pu(e, t, n, r, o, i) {
|
|
7240
|
-
var s, u, c, m, y, b,
|
|
7245
|
+
var s, u, c, m, y, b, f;
|
|
7241
7246
|
return v(), w("div", au, [
|
|
7242
7247
|
Ge("video", q({
|
|
7243
7248
|
class: "builder-video",
|
|
@@ -7279,14 +7284,14 @@ function pu(e, t, n, r, o, i) {
|
|
|
7279
7284
|
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), w("div", uu, [
|
|
7280
7285
|
pe(e.$slots, "default")
|
|
7281
7286
|
])) : F("", !0),
|
|
7282
|
-
(
|
|
7287
|
+
(f = (b = e.builderBlock) == null ? void 0 : b.children) != null && f.length && !e.fitContent ? (v(), w("div", cu, [
|
|
7283
7288
|
pe(e.$slots, "default")
|
|
7284
7289
|
])) : F("", !0)
|
|
7285
7290
|
]);
|
|
7286
7291
|
}
|
|
7287
|
-
const du = /* @__PURE__ */ j(su, [["render", pu]]),
|
|
7292
|
+
const du = /* @__PURE__ */ j(su, [["render", pu]]), hu = () => [{
|
|
7288
7293
|
component: vl,
|
|
7289
|
-
...
|
|
7294
|
+
...fl
|
|
7290
7295
|
}, {
|
|
7291
7296
|
component: El,
|
|
7292
7297
|
...bl
|
|
@@ -7318,7 +7323,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7318
7323
|
component: pa,
|
|
7319
7324
|
...Ha
|
|
7320
7325
|
}, {
|
|
7321
|
-
component:
|
|
7326
|
+
component: fa,
|
|
7322
7327
|
...Ka
|
|
7323
7328
|
}, {
|
|
7324
7329
|
component: Ca,
|
|
@@ -7333,7 +7338,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7333
7338
|
component: Yu,
|
|
7334
7339
|
...nl
|
|
7335
7340
|
}, {
|
|
7336
|
-
component:
|
|
7341
|
+
component: hl,
|
|
7337
7342
|
...ul
|
|
7338
7343
|
}, ...Po.includes(G) ? [{
|
|
7339
7344
|
component: Xa,
|
|
@@ -7344,7 +7349,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7344
7349
|
}, {
|
|
7345
7350
|
component: Fa,
|
|
7346
7351
|
...Va
|
|
7347
|
-
}, ...
|
|
7352
|
+
}, ...hu()], fu = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
7348
7353
|
function getAndSetVariantId() {
|
|
7349
7354
|
function setCookie(name, value, days) {
|
|
7350
7355
|
let expires = '';
|
|
@@ -7447,7 +7452,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7447
7452
|
}) => !(!(Bt(t).length > 0) || !e), yu = (e) => e === "react" || e === "reactNative", vu = G === "angular", Xn = yu(G), bu = () => `
|
|
7448
7453
|
(function() {
|
|
7449
7454
|
if (!window.${En}) {
|
|
7450
|
-
window.${En} = ${
|
|
7455
|
+
window.${En} = ${fu};
|
|
7451
7456
|
}
|
|
7452
7457
|
if (!window.${In}) {
|
|
7453
7458
|
window.${In} = ${mu};
|
|
@@ -7583,6 +7588,7 @@ font-weight: ${s};
|
|
|
7583
7588
|
contextValue: this.builderContextSignal,
|
|
7584
7589
|
prevData: null,
|
|
7585
7590
|
prevLocale: "",
|
|
7591
|
+
prevContent: null,
|
|
7586
7592
|
ContentWrapper: this.contentWrapper || "div",
|
|
7587
7593
|
httpReqsData: {},
|
|
7588
7594
|
httpReqsPending: {},
|
|
@@ -8113,7 +8119,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8113
8119
|
isNestedRender: e.isNestedRender
|
|
8114
8120
|
}, {}), {
|
|
8115
8121
|
default: me(() => {
|
|
8116
|
-
var y, b,
|
|
8122
|
+
var y, b, f, S, A, $, H;
|
|
8117
8123
|
return [
|
|
8118
8124
|
e.isSsrAbTest ? (v(), U(s, {
|
|
8119
8125
|
key: 0,
|
|
@@ -8126,7 +8132,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8126
8132
|
nonce: e.nonce || "",
|
|
8127
8133
|
isNestedRender: e.isNestedRender,
|
|
8128
8134
|
contentId: (y = e.builderContextSignal.content) == null ? void 0 : y.id,
|
|
8129
|
-
cssCode: (
|
|
8135
|
+
cssCode: (f = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : f.cssCode,
|
|
8130
8136
|
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
8131
8137
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : F("", !0),
|
|
8132
8138
|
ee(c, {
|
|
@@ -8376,7 +8382,7 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8376
8382
|
}
|
|
8377
8383
|
});
|
|
8378
8384
|
function Xu(e, t, n, r, o, i) {
|
|
8379
|
-
var u, c, m, y, b,
|
|
8385
|
+
var u, c, m, y, b, f, S;
|
|
8380
8386
|
const s = W("ContentVariants");
|
|
8381
8387
|
return v(), w("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
8382
8388
|
ee(s, {
|
|
@@ -8392,7 +8398,7 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8392
8398
|
data: {
|
|
8393
8399
|
...(y = e.symbol) == null ? void 0 : y.data,
|
|
8394
8400
|
...e.builderContext.localState,
|
|
8395
|
-
...(
|
|
8401
|
+
...(f = (b = e.contentToUse) == null ? void 0 : b.data) == null ? void 0 : f.state
|
|
8396
8402
|
},
|
|
8397
8403
|
canTrack: e.builderContext.canTrack,
|
|
8398
8404
|
model: ((S = e.symbol) == null ? void 0 : S.model) ?? "",
|
|
@@ -8410,7 +8416,7 @@ export {
|
|
|
8410
8416
|
pa as C,
|
|
8411
8417
|
sc as D,
|
|
8412
8418
|
Ps as E,
|
|
8413
|
-
|
|
8419
|
+
fa as F,
|
|
8414
8420
|
Os as G,
|
|
8415
8421
|
qn as H,
|
|
8416
8422
|
Ca as I,
|
|
@@ -8434,7 +8440,7 @@ export {
|
|
|
8434
8440
|
us as l,
|
|
8435
8441
|
oi as m,
|
|
8436
8442
|
Yu as n,
|
|
8437
|
-
|
|
8443
|
+
hl as o,
|
|
8438
8444
|
Ue as p,
|
|
8439
8445
|
Gu as q,
|
|
8440
8446
|
Hn as r,
|
|
@@ -8444,6 +8450,6 @@ export {
|
|
|
8444
8450
|
nc as v,
|
|
8445
8451
|
Fu as w,
|
|
8446
8452
|
rc as x,
|
|
8447
|
-
|
|
8453
|
+
ho as y,
|
|
8448
8454
|
ec as z
|
|
8449
8455
|
};
|