@builder.io/sdk-vue 4.1.3 → 4.2.1
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-5XM6eBKO.js → awaiter-522m_tb0.js} +1 -1
- package/lib/browser/{awaiter-DZTz3Ar3.cjs → awaiter-xp9lcSxP.cjs} +1 -1
- package/lib/browser/{block-styles-biVGaluP.js → block-styles-4ljhsSUM.js} +1 -1
- package/lib/browser/{block-styles-58mkkubD.cjs → block-styles-NDMRfO-4.cjs} +1 -1
- package/lib/browser/{block-wrapper-Bzn0Mn8q.js → block-wrapper-26klNOq9.js} +3 -3
- package/lib/browser/{block-wrapper-R-KDYbAM.cjs → block-wrapper-9mehIM9T.cjs} +1 -1
- package/lib/browser/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/browser/{component-ref-V0MVxgsz.cjs → component-ref-B8JFh8hq.cjs} +1 -1
- package/lib/browser/{component-ref-gskEENuC.js → component-ref-IrVdrKrT.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/register.d.ts +18 -0
- package/lib/browser/{get-block-properties-qWby6E7c.cjs → get-block-properties-OKep411k.cjs} +1 -1
- package/lib/browser/{get-block-properties-WccKVsdn.js → get-block-properties-QnM_YrNk.js} +1 -1
- package/lib/browser/{index-BiWOGEu2.cjs → index-Sn06h7cl.cjs} +28 -28
- package/lib/browser/{index-AM8hDJBa.js → index-dDcL7IfY.js} +90 -55
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -3
- package/lib/browser/{repeated-block-jUlJ75XZ.js → repeated-block-iOBHvqGU.js} +2 -2
- package/lib/browser/{repeated-block-04Z899ts.cjs → repeated-block-nKx_42cr.cjs} +1 -1
- package/lib/browser/server-index.d.ts +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-GN-g8-yW.cjs → awaiter-1mRIGpV6.cjs} +1 -1
- package/lib/edge/{awaiter-itkvZDv7.js → awaiter-inDvpJQO.js} +1 -1
- package/lib/edge/{block-styles-G42udXTn.js → block-styles-NdwXUvb8.js} +1 -1
- package/lib/edge/{block-styles-G1ClEDR3.cjs → block-styles-gtNLlF4k.cjs} +1 -1
- package/lib/{node/block-wrapper-vkf16jVz.cjs → edge/block-wrapper-1wOAQ8jv.cjs} +1 -1
- package/lib/{node/block-wrapper-Yxq8cADp.js → edge/block-wrapper-SsRgbO8V.js} +3 -3
- package/lib/edge/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/edge/{component-ref-ia_8ZIAn.cjs → component-ref-aeV7uVzT.cjs} +1 -1
- package/lib/{node/component-ref-c_8IgXLb.js → edge/component-ref-xNhbKfn9.js} +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/register.d.ts +18 -0
- package/lib/edge/{get-block-properties-Nz3tnjcZ.js → get-block-properties-YBHD-kyN.js} +1 -1
- package/lib/edge/{get-block-properties-K9_lkqhk.cjs → get-block-properties-gqcOodFf.cjs} +1 -1
- package/lib/edge/{index-t2wm1Hgb.cjs → index-KuatB8ic.cjs} +34 -34
- package/lib/edge/{index-0P0ciM70.js → index-hzqKkVuy.js} +157 -122
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +5 -4
- package/lib/{node/repeated-block-DbM-cXD5.cjs → edge/repeated-block-6mZ2NJ7W.cjs} +1 -1
- package/lib/{node/repeated-block-FPm9ifh_.js → edge/repeated-block-E4-2V2fe.js} +2 -2
- package/lib/edge/server-index.d.ts +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-4Zchzm7Q.js → awaiter-VENdQO6n.js} +1 -1
- package/lib/node/{awaiter-BKUR1e9L.cjs → awaiter-xwpDFIvR.cjs} +1 -1
- package/lib/node/{block-styles-r6J38vG3.cjs → block-styles-8bE2sgtd.cjs} +1 -1
- package/lib/node/{block-styles-16ywDrRK.js → block-styles-8zkB2lOv.js} +1 -1
- package/lib/{edge/block-wrapper-W6MhBMeD.cjs → node/block-wrapper-02ftlAfU.cjs} +1 -1
- package/lib/{edge/block-wrapper-e9t2aTqt.js → node/block-wrapper-YFKoP-Sr.js} +5 -5
- package/lib/node/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/{edge/component-ref-slGRIixC.js → node/component-ref-CL-UB2rM.js} +3 -3
- package/lib/node/{component-ref-xUbOPInI.cjs → component-ref-U-rcbsRh.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/register.d.ts +18 -0
- package/lib/node/{get-block-properties-jreznjwW.cjs → get-block-properties-5a2c_5xR.cjs} +1 -1
- package/lib/node/{get-block-properties-sJTTyxpy.js → get-block-properties-LchfO6Kb.js} +1 -1
- package/lib/node/{index-0s5_7Gfu.js → index-HR8y_fPw.js} +332 -297
- package/lib/node/{index-t_oHxD-K.cjs → index-SDqfr0zQ.cjs} +30 -30
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -5
- package/lib/{edge/repeated-block-h1UA5gK0.js → node/repeated-block-dhWJ0p4C.js} +2 -2
- package/lib/{edge/repeated-block-_29LjXCq.cjs → node/repeated-block-pKrhMIDV.cjs} +1 -1
- package/lib/node/server-index.d.ts +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ const oi = /* @__PURE__ */ j(ni, [["render", ri]]), ii = Symbol(), yn = {
|
|
|
125
125
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
126
126
|
return r === void 0 || r === e ? n : r;
|
|
127
127
|
};
|
|
128
|
-
function
|
|
128
|
+
function M() {
|
|
129
129
|
return typeof window < "u" && typeof document < "u";
|
|
130
130
|
}
|
|
131
131
|
const ai = (e) => {
|
|
@@ -135,14 +135,14 @@ const ai = (e) => {
|
|
|
135
135
|
}), t;
|
|
136
136
|
}, zr = (e) => e instanceof URLSearchParams ? ai(e) : e, qr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
137
137
|
function li() {
|
|
138
|
-
return
|
|
138
|
+
return M() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
140
|
function re(e) {
|
|
141
141
|
return li() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
142
142
|
qr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
143
143
|
}
|
|
144
144
|
const ui = () => {
|
|
145
|
-
if (
|
|
145
|
+
if (M()) {
|
|
146
146
|
const e = new URL(location.href);
|
|
147
147
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
148
148
|
} else
|
|
@@ -187,8 +187,8 @@ const ui = () => {
|
|
|
187
187
|
event: n
|
|
188
188
|
}), pi = () => ({
|
|
189
189
|
isEditing: re(),
|
|
190
|
-
isBrowser:
|
|
191
|
-
isServer: !
|
|
190
|
+
isBrowser: M(),
|
|
191
|
+
isServer: !M(),
|
|
192
192
|
getUserAttributes: () => Gr()
|
|
193
193
|
}), di = (e, {
|
|
194
194
|
isExpression: t = !0
|
|
@@ -477,7 +477,7 @@ var V, hi = function(e) {
|
|
|
477
477
|
}
|
|
478
478
|
++d;
|
|
479
479
|
}
|
|
480
|
-
a = k.slice(p, d), ++d, (l =
|
|
480
|
+
a = k.slice(p, d), ++d, (l = H()) && !/^[gmi]*$/.test(l) && r(p, "Invalid regexp flag");
|
|
481
481
|
try {
|
|
482
482
|
var P = new RegExp(a, l);
|
|
483
483
|
} catch (Y) {
|
|
@@ -503,7 +503,7 @@ var V, hi = function(e) {
|
|
|
503
503
|
function $(a) {
|
|
504
504
|
return a = S(16, a), a === null && r(X, "Bad character escape sequence"), a;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function H() {
|
|
507
507
|
He = !1;
|
|
508
508
|
for (var a, l = !0, p = d; ; ) {
|
|
509
509
|
var f = k.charCodeAt(d);
|
|
@@ -520,7 +520,7 @@ var V, hi = function(e) {
|
|
|
520
520
|
return He ? a : k.slice(p, d);
|
|
521
521
|
}
|
|
522
522
|
function ee() {
|
|
523
|
-
var a =
|
|
523
|
+
var a = H(), l = Le;
|
|
524
524
|
!He && qo(a) && (l = jo[a]), s(l, a);
|
|
525
525
|
}
|
|
526
526
|
function I() {
|
|
@@ -539,7 +539,7 @@ var V, hi = function(e) {
|
|
|
539
539
|
function de() {
|
|
540
540
|
this.start = Xt, this.end = null, Jt && (this.source = Jt);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function K() {
|
|
543
543
|
var a = new oe();
|
|
544
544
|
return O.C && (a.X = new de()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [X, 0]), a;
|
|
545
545
|
}
|
|
@@ -573,7 +573,7 @@ var V, hi = function(e) {
|
|
|
573
573
|
}
|
|
574
574
|
function ge() {
|
|
575
575
|
(x === vr || x === De && he === "/=") && v(!0);
|
|
576
|
-
var a = x, l =
|
|
576
|
+
var a = x, l = K();
|
|
577
577
|
switch (a) {
|
|
578
578
|
case tn:
|
|
579
579
|
case Zn:
|
|
@@ -591,7 +591,7 @@ var V, hi = function(e) {
|
|
|
591
591
|
case nr:
|
|
592
592
|
return I(), J.push(cn), l.body = ge(), J.pop(), _(an), l.test = Qe(), je(), w(l, "DoWhileStatement");
|
|
593
593
|
case ir:
|
|
594
|
-
return I(), J.push(cn), _(Ee), x === Te ? Ht(l, null) : x === sn ? (a =
|
|
594
|
+
return I(), J.push(cn), _(Ee), x === Te ? Ht(l, null) : x === sn ? (a = K(), I(), Jn(a, !0), w(a, "VariableDeclaration"), a.fa.length === 1 && F(Rt) ? _n(l, a) : Ht(l, a)) : (a = ne(!1, !0), F(Rt) ? (Et(a), _n(l, a)) : Ht(l, a));
|
|
595
595
|
case rn:
|
|
596
596
|
return I(), Gt(l, !0);
|
|
597
597
|
case sr:
|
|
@@ -600,12 +600,12 @@ var V, hi = function(e) {
|
|
|
600
600
|
return nt || O.Ib || r(X, "'return' outside of function"), I(), F(Te) || wt() ? l.K = null : (l.K = ne(), je()), w(l, "ReturnStatement");
|
|
601
601
|
case on:
|
|
602
602
|
for (I(), l.Qb = Qe(), l.tb = [], _(ot), J.push(Jo); x !== Me; )
|
|
603
|
-
x === nn || x === tr ? (a = x === nn, f && w(f, "SwitchCase"), l.tb.push(f =
|
|
603
|
+
x === nn || x === tr ? (a = x === nn, f && w(f, "SwitchCase"), l.tb.push(f = K()), f.da = [], I(), a ? f.test = ne() : (p && r(Qt, "Multiple default clauses"), p = !0, f.test = null), _(it)) : (f || ke(), f.da.push(ge()));
|
|
604
604
|
return f && w(f, "SwitchCase"), I(), J.pop(), w(l, "SwitchStatement");
|
|
605
605
|
case lr:
|
|
606
606
|
return I(), $t.test(k.slice(xe, X)) && r(xe, "Illegal newline after throw"), l.K = ne(), je(), w(l, "ThrowStatement");
|
|
607
607
|
case ur:
|
|
608
|
-
return I(), l.block = Ze(), l.Ea = null, x === Qn && (a =
|
|
608
|
+
return I(), l.block = Ze(), l.Ea = null, x === Qn && (a = K(), I(), _(Ee), a.Ua = Ce(), ce && At(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), _(be), a.body = Ze(), l.Ea = w(a, "CatchClause")), l.fb = F(or) ? Ze() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), w(l, "TryStatement");
|
|
609
609
|
case sn:
|
|
610
610
|
return I(), Jn(l), je(), w(l, "VariableDeclaration");
|
|
611
611
|
case an:
|
|
@@ -634,7 +634,7 @@ var V, hi = function(e) {
|
|
|
634
634
|
return _(be), a;
|
|
635
635
|
}
|
|
636
636
|
function Ze(a) {
|
|
637
|
-
var l =
|
|
637
|
+
var l = K(), p = !0, f = !1;
|
|
638
638
|
for (l.body = [], _(ot); !F(Me); ) {
|
|
639
639
|
var P = ge();
|
|
640
640
|
if (l.body.push(P), p && a && fe(P)) {
|
|
@@ -653,7 +653,7 @@ var V, hi = function(e) {
|
|
|
653
653
|
}
|
|
654
654
|
function Jn(a, l) {
|
|
655
655
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
656
|
-
var p =
|
|
656
|
+
var p = K();
|
|
657
657
|
if (p.id = Ce(), ce && At(p.id.name) && r(p.id.start, "Binding " + p.id.name + " in strict mode"), p.ua = F(br) ? ne(!0, l) : null, a.fa.push(w(p, "VariableDeclarator")), !F(Pe))
|
|
658
658
|
break;
|
|
659
659
|
}
|
|
@@ -685,7 +685,7 @@ var V, hi = function(e) {
|
|
|
685
685
|
}
|
|
686
686
|
function qt() {
|
|
687
687
|
if (x.prefix) {
|
|
688
|
-
var a =
|
|
688
|
+
var a = K(), l = x.$b;
|
|
689
689
|
return a.operator = he, tt = a.prefix = !0, I(), a.K = qt(), l ? Et(a.K) : ce && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), w(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
690
690
|
}
|
|
691
691
|
for (l = et(Tt()); x.cc && !wt(); )
|
|
@@ -702,18 +702,18 @@ var V, hi = function(e) {
|
|
|
702
702
|
function Tt() {
|
|
703
703
|
switch (x) {
|
|
704
704
|
case dr:
|
|
705
|
-
var a =
|
|
705
|
+
var a = K();
|
|
706
706
|
return I(), w(a, "ThisExpression");
|
|
707
707
|
case Le:
|
|
708
708
|
return Ce();
|
|
709
709
|
case rt:
|
|
710
710
|
case It:
|
|
711
711
|
case Yn:
|
|
712
|
-
return a =
|
|
712
|
+
return a = K(), a.value = he, a.raw = k.slice(X, Fe), I(), w(a, "Literal");
|
|
713
713
|
case fr:
|
|
714
714
|
case hr:
|
|
715
715
|
case mr:
|
|
716
|
-
return a =
|
|
716
|
+
return a = K(), a.value = x.$a, a.raw = x.l, I(), w(a, "Literal");
|
|
717
717
|
case Ee:
|
|
718
718
|
a = Xt;
|
|
719
719
|
var l = X;
|
|
@@ -721,9 +721,9 @@ var V, hi = function(e) {
|
|
|
721
721
|
var p = ne();
|
|
722
722
|
return p.start = l, p.end = Fe, O.C && (p.X.start = a, p.X.end = Yt), O.Xa && (p.j = [l, Fe]), _(be), p;
|
|
723
723
|
case ln:
|
|
724
|
-
return a =
|
|
724
|
+
return a = K(), I(), a.elements = _t(un, !0, !0), w(a, "ArrayExpression");
|
|
725
725
|
case ot:
|
|
726
|
-
for (a =
|
|
726
|
+
for (a = K(), l = !0, p = !1, a.h = [], I(); !F(Me); ) {
|
|
727
727
|
if (l)
|
|
728
728
|
l = !1;
|
|
729
729
|
else if (_(Pe), O.sb && F(Me))
|
|
@@ -735,7 +735,7 @@ var V, hi = function(e) {
|
|
|
735
735
|
f.value = ne(!0);
|
|
736
736
|
var Y = f.kind = "init";
|
|
737
737
|
} else
|
|
738
|
-
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ke() : (P = p = !0, Y = f.kind = f.key.name, f.key = x === rt || x === It ? Tt() : Ce(!0), x !== Ee && ke(), f.value = Gt(
|
|
738
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ke() : (P = p = !0, Y = f.kind = f.key.name, f.key = x === rt || x === It ? Tt() : Ce(!0), x !== Ee && ke(), f.value = Gt(K(), !1));
|
|
739
739
|
if (f.key.type === "Identifier" && (ce || p))
|
|
740
740
|
for (var se = 0; se < a.h.length; ++se) {
|
|
741
741
|
var Ke = a.h[se];
|
|
@@ -748,9 +748,9 @@ var V, hi = function(e) {
|
|
|
748
748
|
}
|
|
749
749
|
return w(a, "ObjectExpression");
|
|
750
750
|
case rn:
|
|
751
|
-
return a =
|
|
751
|
+
return a = K(), I(), Gt(a, !1);
|
|
752
752
|
case pr:
|
|
753
|
-
return a =
|
|
753
|
+
return a = K(), I(), a.callee = et(Tt(), !0), a.arguments = F(Ee) ? _t(be, !1) : Bo, w(a, "NewExpression");
|
|
754
754
|
}
|
|
755
755
|
ke();
|
|
756
756
|
}
|
|
@@ -780,7 +780,7 @@ var V, hi = function(e) {
|
|
|
780
780
|
return f;
|
|
781
781
|
}
|
|
782
782
|
function Ce(a) {
|
|
783
|
-
var l =
|
|
783
|
+
var l = K();
|
|
784
784
|
return a && O.yb === "everywhere" && (a = !1), x === Le ? (!a && (O.yb && zo(he) || ce && wr(he)) && k.slice(X, Fe).indexOf("\\") === -1 && r(X, "The keyword '" + he + "' is reserved"), l.name = he) : a && x.l ? l.name = x.l : ke(), tt = !1, I(), w(l, "Identifier");
|
|
785
785
|
}
|
|
786
786
|
e.version = "0.5.0";
|
|
@@ -789,7 +789,7 @@ var V, hi = function(e) {
|
|
|
789
789
|
k = String(a), We = k.length, O = l || {};
|
|
790
790
|
for (var p in Xn)
|
|
791
791
|
Object.prototype.hasOwnProperty.call(O, p) || (O[p] = Xn[p]);
|
|
792
|
-
for (Jt = O.sourceFile, Ve = 1, d = we = 0, tt = !0, c(), p = O.dc, Qt = xe = d, O.C && (Zt = new i()), nt = ce = !1, J = [], v(), a = p ||
|
|
792
|
+
for (Jt = O.sourceFile, Ve = 1, d = we = 0, tt = !0, c(), p = O.dc, Qt = xe = d, O.C && (Zt = new i()), nt = ce = !1, J = [], v(), a = p || K(), l = !0, p || (a.body = []); x !== en; )
|
|
793
793
|
p = ge(), a.body.push(p), l && fe(p) && D(!0), l = !1;
|
|
794
794
|
return w(a, "Program");
|
|
795
795
|
};
|
|
@@ -2695,8 +2695,8 @@ function main()`).replace(/\?\./g, "."), xr = (e) => e + "JSON", Oi = ({
|
|
|
2695
2695
|
event: n,
|
|
2696
2696
|
state: u
|
|
2697
2697
|
}), h = c.map(([$]) => {
|
|
2698
|
-
const
|
|
2699
|
-
return $ === "state" ? "" : `var ${$} = ${
|
|
2698
|
+
const H = xr($);
|
|
2699
|
+
return $ === "state" ? "" : `var ${$} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2700
2700
|
}).join(`
|
|
2701
2701
|
`), v = Pi(s);
|
|
2702
2702
|
if (v === "")
|
|
@@ -2708,13 +2708,13 @@ function theFunction() {
|
|
|
2708
2708
|
${v}
|
|
2709
2709
|
}
|
|
2710
2710
|
theFunction();
|
|
2711
|
-
`, m = function($,
|
|
2711
|
+
`, m = function($, H) {
|
|
2712
2712
|
c.forEach(([ee, I]) => {
|
|
2713
2713
|
if (ee === "state")
|
|
2714
|
-
$.setProperty(
|
|
2714
|
+
$.setProperty(H, ee, $.createConnectedObject(I), $.READONLY_DESCRIPTOR);
|
|
2715
2715
|
else {
|
|
2716
2716
|
const D = JSON.stringify(I);
|
|
2717
|
-
$.setProperty(
|
|
2717
|
+
$.setProperty(H, xr(ee), D);
|
|
2718
2718
|
}
|
|
2719
2719
|
});
|
|
2720
2720
|
}, S = new g(b, m);
|
|
@@ -2732,7 +2732,7 @@ const Bi = ({
|
|
|
2732
2732
|
return !1;
|
|
2733
2733
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2734
2734
|
return t && n && !r ? (e && ue.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2735
|
-
}, ji = (e) =>
|
|
2735
|
+
}, ji = (e) => M() || Bi({
|
|
2736
2736
|
shouldLogWarning: !0
|
|
2737
2737
|
}) ? fi(e) : Oi(e), Vi = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Di = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ui = (e) => {
|
|
2738
2738
|
var t, n, r, o, i, s;
|
|
@@ -2926,7 +2926,7 @@ function _i({
|
|
|
2926
2926
|
}), i = Ki(i, r.locale), i;
|
|
2927
2927
|
}
|
|
2928
2928
|
function Wn(e) {
|
|
2929
|
-
const t = e || (
|
|
2929
|
+
const t = e || (M() ? window.location.search : void 0);
|
|
2930
2930
|
return t ? qr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
2931
2931
|
}
|
|
2932
2932
|
const Ji = (e) => ({
|
|
@@ -2943,7 +2943,7 @@ const Pr = {};
|
|
|
2943
2943
|
function ec(e, t) {
|
|
2944
2944
|
e === "plugin" && (t = Vt(t));
|
|
2945
2945
|
let n = Pr[e];
|
|
2946
|
-
if (n || (n = Pr[e] = []), n.push(t),
|
|
2946
|
+
if (n || (n = Pr[e] = []), n.push(t), M()) {
|
|
2947
2947
|
const r = {
|
|
2948
2948
|
type: "builder.register",
|
|
2949
2949
|
data: {
|
|
@@ -2958,9 +2958,19 @@ function ec(e, t) {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
|
-
const Or = {};
|
|
2962
2961
|
function tc(e) {
|
|
2963
|
-
|
|
2962
|
+
var t;
|
|
2963
|
+
if (M()) {
|
|
2964
|
+
const n = JSON.parse(JSON.stringify(e));
|
|
2965
|
+
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
2966
|
+
type: "builder.registerAction",
|
|
2967
|
+
data: n
|
|
2968
|
+
}, "*");
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
const Or = {};
|
|
2972
|
+
function nc(e) {
|
|
2973
|
+
if (M()) {
|
|
2964
2974
|
Object.assign(Or, e);
|
|
2965
2975
|
const t = {
|
|
2966
2976
|
type: "builder.settingsChange",
|
|
@@ -2980,11 +2990,11 @@ const Nr = "builder.", Yi = "options.", no = (e) => {
|
|
|
2980
2990
|
}
|
|
2981
2991
|
}), n;
|
|
2982
2992
|
}, Qi = () => {
|
|
2983
|
-
if (!
|
|
2993
|
+
if (!M())
|
|
2984
2994
|
return {};
|
|
2985
2995
|
const e = new URLSearchParams(window.location.search);
|
|
2986
2996
|
return no(e);
|
|
2987
|
-
}, ro = "4.1
|
|
2997
|
+
}, ro = "4.2.1", oo = () => ({
|
|
2988
2998
|
"X-Builder-SDK": G,
|
|
2989
2999
|
"X-Builder-SDK-GEN": "2",
|
|
2990
3000
|
"X-Builder-SDK-Version": ro
|
|
@@ -3009,7 +3019,7 @@ const Nr = "builder.", Yi = "options.", no = (e) => {
|
|
|
3009
3019
|
value: t,
|
|
3010
3020
|
expires: n
|
|
3011
3021
|
}) => {
|
|
3012
|
-
const o = (
|
|
3022
|
+
const o = (M() ? location.protocol === "https:" : !0) ? ts : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Zi(window.location.hostname)], ...o];
|
|
3013
3023
|
return es(s);
|
|
3014
3024
|
}, Fn = async ({
|
|
3015
3025
|
name: e,
|
|
@@ -3064,7 +3074,7 @@ const ao = "builderSessionId", os = async ({
|
|
|
3064
3074
|
name: ao,
|
|
3065
3075
|
value: e,
|
|
3066
3076
|
canTrack: t
|
|
3067
|
-
}), lo = () =>
|
|
3077
|
+
}), lo = () => M() && typeof localStorage < "u" ? localStorage : void 0, as = ({
|
|
3068
3078
|
key: e,
|
|
3069
3079
|
canTrack: t
|
|
3070
3080
|
}) => {
|
|
@@ -3162,7 +3172,7 @@ async function Cn({
|
|
|
3162
3172
|
ue.error("Missing API key for track call. Please provide your API key.");
|
|
3163
3173
|
return;
|
|
3164
3174
|
}
|
|
3165
|
-
if (!t.canTrack || re() || !(
|
|
3175
|
+
if (!t.canTrack || re() || !(M() || G === "reactNative"))
|
|
3166
3176
|
return;
|
|
3167
3177
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
3168
3178
|
return Ln(r), fetch(r, {
|
|
@@ -3179,7 +3189,7 @@ async function Cn({
|
|
|
3179
3189
|
console.error("Failed to track: ", o);
|
|
3180
3190
|
});
|
|
3181
3191
|
}
|
|
3182
|
-
const
|
|
3192
|
+
const rc = (e) => Cn({
|
|
3183
3193
|
...e,
|
|
3184
3194
|
canTrack: !0
|
|
3185
3195
|
}), hs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
@@ -3192,7 +3202,7 @@ function co(e, t) {
|
|
|
3192
3202
|
let Br = !1;
|
|
3193
3203
|
const po = (e) => {
|
|
3194
3204
|
var t, n;
|
|
3195
|
-
Br || (Br = !0,
|
|
3205
|
+
Br || (Br = !0, M() && ((t = window.parent) == null || t.postMessage({
|
|
3196
3206
|
type: "builder.sdkInfo",
|
|
3197
3207
|
data: {
|
|
3198
3208
|
target: G,
|
|
@@ -3286,13 +3296,13 @@ const po = (e) => {
|
|
|
3286
3296
|
break;
|
|
3287
3297
|
}
|
|
3288
3298
|
}
|
|
3289
|
-
},
|
|
3299
|
+
}, oc = ({
|
|
3290
3300
|
model: e,
|
|
3291
3301
|
apiKey: t,
|
|
3292
3302
|
callback: n,
|
|
3293
3303
|
trustedHosts: r
|
|
3294
3304
|
}) => {
|
|
3295
|
-
if (!
|
|
3305
|
+
if (!M)
|
|
3296
3306
|
return ue.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3297
3307
|
};
|
|
3298
3308
|
po({
|
|
@@ -3416,7 +3426,7 @@ function Vr() {
|
|
|
3416
3426
|
const t = /* @__PURE__ */ new Set();
|
|
3417
3427
|
return {
|
|
3418
3428
|
setUserAttributes(n) {
|
|
3419
|
-
if (!
|
|
3429
|
+
if (!M())
|
|
3420
3430
|
return;
|
|
3421
3431
|
const r = {
|
|
3422
3432
|
...this.getUserAttributes(),
|
|
@@ -3429,7 +3439,7 @@ function Vr() {
|
|
|
3429
3439
|
}), t.forEach((o) => o(r));
|
|
3430
3440
|
},
|
|
3431
3441
|
getUserAttributes() {
|
|
3432
|
-
return
|
|
3442
|
+
return M() ? JSON.parse(Lt({
|
|
3433
3443
|
name: jr,
|
|
3434
3444
|
canTrack: e
|
|
3435
3445
|
}) || "{}") : {};
|
|
@@ -3447,8 +3457,8 @@ function Vr() {
|
|
|
3447
3457
|
};
|
|
3448
3458
|
}
|
|
3449
3459
|
let wn;
|
|
3450
|
-
|
|
3451
|
-
const Dt = wn,
|
|
3460
|
+
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Vr()), wn = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : wn = Vr();
|
|
3461
|
+
const Dt = wn, ic = (e) => {
|
|
3452
3462
|
Dt.setUserAttributes(e);
|
|
3453
3463
|
}, Xe = (e) => {
|
|
3454
3464
|
const t = Be(e) ? e : !0;
|
|
@@ -3513,13 +3523,13 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3513
3523
|
staleCacheSeconds: S,
|
|
3514
3524
|
sort: A,
|
|
3515
3525
|
includeUnpublished: $,
|
|
3516
|
-
apiHost:
|
|
3526
|
+
apiHost: H
|
|
3517
3527
|
} = e;
|
|
3518
3528
|
if (!i)
|
|
3519
3529
|
throw new Error("Missing API key");
|
|
3520
3530
|
if (!["v3"].includes(c))
|
|
3521
3531
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);
|
|
3522
|
-
const ee = t !== 1, I =
|
|
3532
|
+
const ee = t !== 1, I = H || "https://cdn.builder.io", D = new URL(`${I}/api/${c}/content/${o}`);
|
|
3523
3533
|
D.searchParams.set("apiKey", i), D.searchParams.set("limit", String(t)), D.searchParams.set("noTraverse", String(ee)), D.searchParams.set("includeRefs", String(!0));
|
|
3524
3534
|
const oe = u || (n == null ? void 0 : n.locale);
|
|
3525
3535
|
let de = n || {};
|
|
@@ -3533,15 +3543,15 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3533
3543
|
for (const fe in w)
|
|
3534
3544
|
D.searchParams.set(fe, JSON.stringify(w[fe]));
|
|
3535
3545
|
}
|
|
3536
|
-
const
|
|
3546
|
+
const K = {
|
|
3537
3547
|
...Qi(),
|
|
3538
3548
|
...zr(e.options || {})
|
|
3539
3549
|
};
|
|
3540
3550
|
de = {
|
|
3541
3551
|
...de,
|
|
3542
|
-
...As(
|
|
3552
|
+
...As(K)
|
|
3543
3553
|
};
|
|
3544
|
-
const ie = En(
|
|
3554
|
+
const ie = En(K);
|
|
3545
3555
|
for (const w in ie)
|
|
3546
3556
|
D.searchParams.set(w, String(ie[w]));
|
|
3547
3557
|
if (Object.keys(de).length > 0 && D.searchParams.set("userAttributes", JSON.stringify(de)), r) {
|
|
@@ -3558,7 +3568,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3558
3568
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
3559
3569
|
return t;
|
|
3560
3570
|
}, As = (e) => {
|
|
3561
|
-
if (
|
|
3571
|
+
if (M() && e.preview === "BUILDER_STUDIO") {
|
|
3562
3572
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
3563
3573
|
const t = Rs(e), {
|
|
3564
3574
|
userAttributes: n
|
|
@@ -3586,7 +3596,7 @@ const xs = async (e) => {
|
|
|
3586
3596
|
return await (await n(t.href, r)).json();
|
|
3587
3597
|
}, Ps = async (e, t, n = Hn(e)) => {
|
|
3588
3598
|
const r = Xe(e.canTrack);
|
|
3589
|
-
if (n.search.includes("preview="), !r || !(
|
|
3599
|
+
if (n.search.includes("preview="), !r || !(M() || G === "reactNative"))
|
|
3590
3600
|
return t.results;
|
|
3591
3601
|
try {
|
|
3592
3602
|
const o = [];
|
|
@@ -3611,7 +3621,7 @@ async function Os(e) {
|
|
|
3611
3621
|
}), n;
|
|
3612
3622
|
return Ps(e, n);
|
|
3613
3623
|
}
|
|
3614
|
-
const
|
|
3624
|
+
const sc = async (e) => {
|
|
3615
3625
|
var r, o, i;
|
|
3616
3626
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
3617
3627
|
...e,
|
|
@@ -3733,7 +3743,7 @@ const ko = (e) => Object.entries(e).map(([n, r]) => {
|
|
|
3733
3743
|
if (typeof r == "string")
|
|
3734
3744
|
return `${zn(n)}: ${r};`;
|
|
3735
3745
|
}).filter(Be), Ds = (e) => ko(e).join(`
|
|
3736
|
-
`),
|
|
3746
|
+
`), ac = ({
|
|
3737
3747
|
mediaQuery: e,
|
|
3738
3748
|
className: t,
|
|
3739
3749
|
styles: n
|
|
@@ -3750,7 +3760,7 @@ function Us({
|
|
|
3750
3760
|
}) {
|
|
3751
3761
|
return e;
|
|
3752
3762
|
}
|
|
3753
|
-
const
|
|
3763
|
+
const lc = ({
|
|
3754
3764
|
block: e,
|
|
3755
3765
|
context: t
|
|
3756
3766
|
}) => Co(Us({
|
|
@@ -3847,22 +3857,22 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3847
3857
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3848
3858
|
e
|
|
3849
3859
|
), e;
|
|
3850
|
-
}), Gs = () => import("./block-styles-
|
|
3860
|
+
}), Gs = () => import("./block-styles-NdwXUvb8.js").then((e) => e.default).catch((e) => {
|
|
3851
3861
|
throw console.error(
|
|
3852
3862
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3853
3863
|
e
|
|
3854
3864
|
), e;
|
|
3855
|
-
}), _s = () => import("./block-wrapper-
|
|
3865
|
+
}), _s = () => import("./block-wrapper-SsRgbO8V.js").then((e) => e.default).catch((e) => {
|
|
3856
3866
|
throw console.error(
|
|
3857
3867
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3858
3868
|
e
|
|
3859
3869
|
), e;
|
|
3860
|
-
}), Js = () => import("./component-ref-
|
|
3870
|
+
}), Js = () => import("./component-ref-xNhbKfn9.js").then((e) => e.default).catch((e) => {
|
|
3861
3871
|
throw console.error(
|
|
3862
3872
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3863
3873
|
e
|
|
3864
3874
|
), e;
|
|
3865
|
-
}), Xs = () => import("./repeated-block-
|
|
3875
|
+
}), Xs = () => import("./repeated-block-E4-2V2fe.js").then((e) => e.default).catch((e) => {
|
|
3866
3876
|
throw console.error(
|
|
3867
3877
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3868
3878
|
e
|
|
@@ -4027,7 +4037,7 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4027
4037
|
], 64))
|
|
4028
4038
|
], 64)) : L("", !0);
|
|
4029
4039
|
}
|
|
4030
|
-
const Eo = /* @__PURE__ */ j(Ys, [["render", Qs]]),
|
|
4040
|
+
const Eo = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4031
4041
|
__proto__: null,
|
|
4032
4042
|
default: Eo
|
|
4033
4043
|
}, Symbol.toStringTag, { value: "Module" })), Zs = B({
|
|
@@ -4207,7 +4217,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4207
4217
|
default: 991,
|
|
4208
4218
|
max: 1200
|
|
4209
4219
|
}
|
|
4210
|
-
},
|
|
4220
|
+
}, cc = (e, t = To) => `@media (max-width: ${t[e].max}px)`, aa = (e) => {
|
|
4211
4221
|
const t = Un(To);
|
|
4212
4222
|
if (!e)
|
|
4213
4223
|
return t;
|
|
@@ -4598,14 +4608,14 @@ function Ia(e, t, n, r) {
|
|
|
4598
4608
|
if (v && v.property === "urlPath" && v.value && typeof v.value == "string" && v.value !== "/" && v.value.endsWith("/") && (A = v.value.slice(0, -1)), !(m && S))
|
|
4599
4609
|
return !0;
|
|
4600
4610
|
if (Array.isArray(A))
|
|
4601
|
-
return S === "isNot" ? A.every((
|
|
4611
|
+
return S === "isNot" ? A.every((H) => s(h, {
|
|
4602
4612
|
property: m,
|
|
4603
4613
|
operator: S,
|
|
4604
|
-
value:
|
|
4605
|
-
})) : !!A.find((
|
|
4614
|
+
value: H
|
|
4615
|
+
})) : !!A.find((H) => s(h, {
|
|
4606
4616
|
property: m,
|
|
4607
4617
|
operator: S,
|
|
4608
|
-
value:
|
|
4618
|
+
value: H
|
|
4609
4619
|
}));
|
|
4610
4620
|
const $ = h[m];
|
|
4611
4621
|
if (Array.isArray($))
|
|
@@ -4804,7 +4814,7 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4804
4814
|
}
|
|
4805
4815
|
}`, Nt = "default", xa = "filterWithCustomTargeting", Io = "builderIoPersonalization", Ro = "updateVisibilityStylesScript", Ao = ["react", "vue", "svelte", "qwik"], $o = ["vue", "svelte", "qwik"];
|
|
4806
4816
|
function Pa(e, t) {
|
|
4807
|
-
return !(e && e.length > 0) || !t ? !1 : $o.includes(G) ? !0 : !
|
|
4817
|
+
return !(e && e.length > 0) || !t ? !1 : $o.includes(G) ? !0 : !M();
|
|
4808
4818
|
}
|
|
4809
4819
|
function Oa({
|
|
4810
4820
|
variants: e,
|
|
@@ -4830,7 +4840,7 @@ function Oa({
|
|
|
4830
4840
|
}
|
|
4831
4841
|
return i;
|
|
4832
4842
|
}
|
|
4833
|
-
if (
|
|
4843
|
+
if (M()) {
|
|
4834
4844
|
const s = r == null ? void 0 : r[0];
|
|
4835
4845
|
if (s && e) {
|
|
4836
4846
|
const u = e.indexOf(s);
|
|
@@ -5646,7 +5656,7 @@ const La = /* @__PURE__ */ j(Ua, [["render", Fa]]), Ma = {
|
|
|
5646
5656
|
}
|
|
5647
5657
|
});
|
|
5648
5658
|
function Ja(e, t, n, r, o, i) {
|
|
5649
|
-
var h, v, b, m, S, A, $,
|
|
5659
|
+
var h, v, b, m, S, A, $, H, ee, I;
|
|
5650
5660
|
const s = W("Blocks"), u = W("InlinedStyles"), c = W("InlinedScript");
|
|
5651
5661
|
return y(), E("div", q({ ref: "rootRef" }, e.attrs), [
|
|
5652
5662
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (y(), U(s, {
|
|
@@ -5674,11 +5684,11 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5674
5684
|
id: `variants-visibility-script-${($ = e.builderBlock) == null ? void 0 : $.id}`
|
|
5675
5685
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
5676
5686
|
(y(!0), E(z, null, Se(e.variants, (D, oe) => {
|
|
5677
|
-
var de,
|
|
5687
|
+
var de, K, ie, w;
|
|
5678
5688
|
return y(), U(s, {
|
|
5679
5689
|
key: `${(de = e.builderBlock) == null ? void 0 : de.id}-${oe}`,
|
|
5680
5690
|
BlocksWrapperProps: {
|
|
5681
|
-
...(
|
|
5691
|
+
...(K = e.builderContext) == null ? void 0 : K.BlocksWrapperProps,
|
|
5682
5692
|
"aria-hidden": !0,
|
|
5683
5693
|
hidden: !0,
|
|
5684
5694
|
"data-variant-id": `${(ie = e.builderBlock) == null ? void 0 : ie.id}-${oe}`
|
|
@@ -5705,7 +5715,7 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5705
5715
|
], 64)) : L("", !0),
|
|
5706
5716
|
Z(s, {
|
|
5707
5717
|
blocks: e.blocksToRender.blocks,
|
|
5708
|
-
parent: (
|
|
5718
|
+
parent: (H = e.builderBlock) == null ? void 0 : H.id,
|
|
5709
5719
|
path: e.blocksToRender.path,
|
|
5710
5720
|
context: e.builderContext,
|
|
5711
5721
|
registeredComponents: e.builderComponents,
|
|
@@ -6542,13 +6552,15 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6542
6552
|
e.preventDefault();
|
|
6543
6553
|
const r = e.currentTarget || e.target, o = this.customHeaders || {};
|
|
6544
6554
|
let i;
|
|
6545
|
-
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).
|
|
6555
|
+
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).filter(
|
|
6556
|
+
(m) => !!m.name && (m.type !== "radio" || m.checked)
|
|
6557
|
+
).map((m) => {
|
|
6546
6558
|
let S;
|
|
6547
6559
|
const A = m.name;
|
|
6548
6560
|
if (m instanceof HTMLInputElement)
|
|
6549
6561
|
if (m.type === "radio") {
|
|
6550
6562
|
if (m.checked)
|
|
6551
|
-
return S = m.
|
|
6563
|
+
return S = m.value, {
|
|
6552
6564
|
key: A,
|
|
6553
6565
|
value: S
|
|
6554
6566
|
};
|
|
@@ -6601,7 +6613,7 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6601
6613
|
method: this.method || "post"
|
|
6602
6614
|
}).then(
|
|
6603
6615
|
async (m) => {
|
|
6604
|
-
var $,
|
|
6616
|
+
var $, H;
|
|
6605
6617
|
let S;
|
|
6606
6618
|
const A = m.headers.get("content-type");
|
|
6607
6619
|
if (A && A.indexOf("application/json") !== -1 ? S = await m.json() : S = await m.text(), !m.ok) {
|
|
@@ -6611,7 +6623,7 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6611
6623
|
status: m.status
|
|
6612
6624
|
}
|
|
6613
6625
|
});
|
|
6614
|
-
if (($ = this.$refs.formRef) != null && $.nativeElement && ((
|
|
6626
|
+
if (($ = this.$refs.formRef) != null && $.nativeElement && ((H = this.$refs.formRef) == null || H.nativeElement.dispatchEvent(
|
|
6615
6627
|
ee
|
|
6616
6628
|
), ee.defaultPrevented))
|
|
6617
6629
|
return;
|
|
@@ -6694,7 +6706,7 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6694
6706
|
}, null, 8, ["blocks", "context"])) : L("", !0)
|
|
6695
6707
|
], 16, xl);
|
|
6696
6708
|
}
|
|
6697
|
-
const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-
|
|
6709
|
+
const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-158ccfce"]]), Bl = {
|
|
6698
6710
|
name: "Form:Input",
|
|
6699
6711
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6700
6712
|
inputs: [
|
|
@@ -7512,7 +7524,7 @@ font-weight: ${s};
|
|
|
7512
7524
|
},
|
|
7513
7525
|
mounted() {
|
|
7514
7526
|
var e, t, n;
|
|
7515
|
-
if (
|
|
7527
|
+
if (M()) {
|
|
7516
7528
|
re() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7517
7529
|
new CustomEvent("initeditingbldr")
|
|
7518
7530
|
);
|
|
@@ -7565,7 +7577,7 @@ font-weight: ${s};
|
|
|
7565
7577
|
}
|
|
7566
7578
|
},
|
|
7567
7579
|
unmounted() {
|
|
7568
|
-
|
|
7580
|
+
M() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
7569
7581
|
"builder:component:stateChangeListenerActivated",
|
|
7570
7582
|
this.emitStateUpdate
|
|
7571
7583
|
));
|
|
@@ -7670,32 +7682,54 @@ font-weight: ${s};
|
|
|
7670
7682
|
runHttpRequests() {
|
|
7671
7683
|
var t, n;
|
|
7672
7684
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
7673
|
-
Object.entries(e).forEach(
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7685
|
+
Object.entries(e).forEach(
|
|
7686
|
+
([r, o]) => {
|
|
7687
|
+
if (!o)
|
|
7688
|
+
return;
|
|
7689
|
+
const i = typeof o == "object" && o["@type"] === "@builder.io/core:Request";
|
|
7690
|
+
if (this.httpReqsPending[r] || this.httpReqsData[r] && !re())
|
|
7691
|
+
return;
|
|
7692
|
+
const s = i ? o.request.url : o;
|
|
7693
|
+
this.httpReqsPending[r] = !0;
|
|
7694
|
+
const u = s.replace(
|
|
7695
|
+
/{{([^}]+)}}/g,
|
|
7696
|
+
(h, v) => String(
|
|
7697
|
+
kt({
|
|
7698
|
+
code: v,
|
|
7699
|
+
context: this.context || {},
|
|
7700
|
+
localState: void 0,
|
|
7701
|
+
rootState: this.builderContextSignal.rootState,
|
|
7702
|
+
rootSetState: this.builderContextSignal.rootSetState
|
|
7703
|
+
})
|
|
7704
|
+
)
|
|
7705
|
+
), c = i ? {
|
|
7706
|
+
url: u,
|
|
7707
|
+
method: o.request.method,
|
|
7708
|
+
headers: o.request.headers,
|
|
7709
|
+
body: o.request.body
|
|
7710
|
+
} : {
|
|
7711
|
+
url: u,
|
|
7712
|
+
method: "GET"
|
|
7713
|
+
};
|
|
7714
|
+
Ln(JSON.stringify(c)), fetch(c.url, {
|
|
7715
|
+
method: c.method,
|
|
7716
|
+
headers: c.headers,
|
|
7717
|
+
body: c.body
|
|
7718
|
+
}).then((h) => h.json()).then((h) => {
|
|
7719
|
+
this.mergeNewRootState({
|
|
7720
|
+
[r]: h
|
|
7721
|
+
}), this.httpReqsData[r] = !0;
|
|
7722
|
+
}).catch((h) => {
|
|
7723
|
+
console.error(
|
|
7724
|
+
"error fetching dynamic data",
|
|
7725
|
+
JSON.stringify(o),
|
|
7726
|
+
h
|
|
7727
|
+
);
|
|
7728
|
+
}).finally(() => {
|
|
7729
|
+
this.httpReqsPending[r] = !1;
|
|
7730
|
+
});
|
|
7731
|
+
}
|
|
7732
|
+
);
|
|
7699
7733
|
},
|
|
7700
7734
|
emitStateUpdate() {
|
|
7701
7735
|
re() && window.dispatchEvent(
|
|
@@ -7974,7 +8008,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
7974
8008
|
isNestedRender: e.isNestedRender
|
|
7975
8009
|
}, {}), {
|
|
7976
8010
|
default: ve(() => {
|
|
7977
|
-
var v, b, m, S, A, $,
|
|
8011
|
+
var v, b, m, S, A, $, H;
|
|
7978
8012
|
return [
|
|
7979
8013
|
e.isSsrAbTest ? (y(), U(s, {
|
|
7980
8014
|
key: 0,
|
|
@@ -7991,7 +8025,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
7991
8025
|
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
7992
8026
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : L("", !0),
|
|
7993
8027
|
Z(c, {
|
|
7994
|
-
blocks: (
|
|
8028
|
+
blocks: (H = ($ = e.builderContextSignal.content) == null ? void 0 : $.data) == null ? void 0 : H.blocks,
|
|
7995
8029
|
context: e.builderContextSignal,
|
|
7996
8030
|
registeredComponents: e.registeredComponents,
|
|
7997
8031
|
linkComponent: e.linkComponent
|
|
@@ -8263,27 +8297,28 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8263
8297
|
}
|
|
8264
8298
|
const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]);
|
|
8265
8299
|
export {
|
|
8266
|
-
|
|
8300
|
+
sc as A,
|
|
8267
8301
|
Eo as B,
|
|
8268
8302
|
pa as C,
|
|
8269
|
-
|
|
8270
|
-
|
|
8303
|
+
Ps as D,
|
|
8304
|
+
Os as E,
|
|
8271
8305
|
ha as F,
|
|
8272
|
-
|
|
8273
|
-
|
|
8306
|
+
Kn as G,
|
|
8307
|
+
Zu as H,
|
|
8274
8308
|
Ca as I,
|
|
8309
|
+
uc as J,
|
|
8275
8310
|
Ta as S,
|
|
8276
8311
|
G as T,
|
|
8277
8312
|
du as V,
|
|
8278
8313
|
Mt as _,
|
|
8279
|
-
|
|
8280
|
-
|
|
8314
|
+
ac as a,
|
|
8315
|
+
cc as b,
|
|
8281
8316
|
Be as c,
|
|
8282
8317
|
zn as d,
|
|
8283
8318
|
j as e,
|
|
8284
8319
|
kt as f,
|
|
8285
8320
|
aa as g,
|
|
8286
|
-
|
|
8321
|
+
lc as h,
|
|
8287
8322
|
Ge as i,
|
|
8288
8323
|
yn as j,
|
|
8289
8324
|
oi as k,
|
|
@@ -8294,12 +8329,12 @@ export {
|
|
|
8294
8329
|
re as p,
|
|
8295
8330
|
Wn as q,
|
|
8296
8331
|
Ji as r,
|
|
8297
|
-
|
|
8332
|
+
ic as s,
|
|
8298
8333
|
ec as t,
|
|
8299
8334
|
tc as u,
|
|
8300
|
-
|
|
8335
|
+
nc as v,
|
|
8301
8336
|
Lu as w,
|
|
8302
|
-
|
|
8337
|
+
no as x,
|
|
8303
8338
|
rc as y,
|
|
8304
|
-
|
|
8339
|
+
oc as z
|
|
8305
8340
|
};
|