@builder.io/sdk-vue 5.1.1 → 5.2.0
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-YRNWppS-.cjs → awaiter-Xj7xgU8A.cjs} +1 -1
- package/lib/browser/{awaiter-NbFI2CU_.js → awaiter-fiHMd9OX.js} +1 -1
- package/lib/browser/{block-wrapper-_4lEInw9.js → block-wrapper-2d_iPFQQ.js} +3 -3
- package/lib/browser/{block-wrapper-7ZGQAl5W.cjs → block-wrapper-lKLgKxgH.cjs} +1 -1
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/browser/{component-ref-A2Q0eDCA.cjs → component-ref-Bo_fwbYK.cjs} +1 -1
- package/lib/browser/{component-ref-S2rn5_QV.js → component-ref-YEfZKvMy.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-Y9GlYFTe.js → get-block-properties-5nuoWf39.js} +1 -1
- package/lib/browser/{get-block-properties-PbwnoRP4.cjs → get-block-properties-d-Ruoi4f.cjs} +1 -1
- package/lib/browser/{index-OpNLmfCu.cjs → index-1GET5eOz.cjs} +12 -12
- package/lib/browser/{index-HPQgrUEC.js → index-eVqO7_Qb.js} +91 -91
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-8F1riCsR.js → live-edit-9paJdIsz.js} +1 -1
- package/lib/browser/{live-edit-tMAUVH2B.cjs → live-edit-ETOoXz63.cjs} +1 -1
- package/lib/browser/{repeated-block-C21nYjNB.js → repeated-block-A24n6o-E.js} +2 -2
- package/lib/browser/{repeated-block-YesIuQQG.cjs → repeated-block-RfWox6Ev.cjs} +1 -1
- package/lib/browser/{style-wrapper-toT_b35_.cjs → style-wrapper-GTejPbe6.cjs} +1 -1
- package/lib/browser/{style-wrapper-6gB537kz.js → style-wrapper-tibcUSpL.js} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-GbCbMdxs.cjs → awaiter-SdqgCFCT.cjs} +1 -1
- package/lib/edge/{awaiter-Z1Aho-Tf.js → awaiter-rbgcBB2Y.js} +1 -1
- package/lib/{node/block-wrapper-P5y87ZAx.js → edge/block-wrapper-DYh1gucy.js} +3 -3
- package/lib/edge/{block-wrapper-SGs68mW-.cjs → block-wrapper-WT0fK9OQ.cjs} +1 -1
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/edge/{component-ref-v3RKtvga.js → component-ref-14bWdw0y.js} +4 -4
- package/lib/edge/{component-ref-1HNLmjNP.cjs → component-ref-Ari_o8qM.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-O8BCJSao.js → get-block-properties-6j21Yx4_.js} +1 -1
- package/lib/edge/{get-block-properties-ju6Fj919.cjs → get-block-properties-kMAb8z5D.cjs} +1 -1
- package/lib/edge/{index-FjhQsct4.cjs → index-2Armmtcs.cjs} +13 -13
- package/lib/edge/{index-x6Hu33ce.js → index-unVH2XRb.js} +150 -150
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-Jp1PzpUr.cjs → edge/live-edit-gMqK1-U2.cjs} +1 -1
- package/lib/{node/live-edit-61Hzovyk.js → edge/live-edit-yXkE9pDV.js} +1 -1
- package/lib/edge/{repeated-block-gmtzy89x.js → repeated-block-F4oPiI78.js} +2 -2
- package/lib/edge/{repeated-block-ic1FaN4o.cjs → repeated-block-Y0Z3ldLT.cjs} +1 -1
- package/lib/edge/{style-wrapper-DFS-znzq.js → style-wrapper-Ad7ABy2Z.js} +1 -1
- package/lib/edge/{style-wrapper-Xaty5j6j.cjs → style-wrapper-sL972lDH.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-MB_eWqp9.js → awaiter-_ZqW9w8N.js} +1 -1
- package/lib/node/{awaiter-7GQ8utUb.cjs → awaiter-i0lAEAYI.cjs} +1 -1
- package/lib/node/{block-wrapper--M33E0VG.cjs → block-wrapper-Bv_s1rr1.cjs} +1 -1
- package/lib/{edge/block-wrapper-sP32aCJj.js → node/block-wrapper-CnMu7UjK.js} +3 -3
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/node/{component-ref-KETj2JRL.cjs → component-ref-LWytt0tD.cjs} +1 -1
- package/lib/node/{component-ref-RUGITshe.js → component-ref-lU9WFg32.js} +5 -5
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Ec9Kj4p7.js → get-block-properties-oSP4WCJG.js} +2 -2
- package/lib/node/{get-block-properties-Z9QEqFjm.cjs → get-block-properties-sdbm535D.cjs} +1 -1
- package/lib/node/{index-TvY2gce_.js → index-9Wxomhx_.js} +14 -14
- package/lib/node/{index-WS6d-d4F.cjs → index-z7Ed9MEJ.cjs} +4 -4
- 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-v7-_17wH.js → node/live-edit-ZjrPT1e_.js} +1 -1
- package/lib/{edge/live-edit-VsbDXDK9.cjs → node/live-edit-nQPgUSEF.cjs} +1 -1
- package/lib/node/{repeated-block-9JRCsGOV.cjs → repeated-block-G-7Wr2Ub.cjs} +1 -1
- package/lib/node/{repeated-block-Nh0O2sxg.js → repeated-block-zGwBOU59.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-ghF-DZhu.js → should-force-browser-runtime-in-node-0jTQ7bdA.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-xByMtVKh.cjs → should-force-browser-runtime-in-node-kkE7IeZS.cjs} +1 -1
- package/lib/node/{style-wrapper-rXB6kp1P.cjs → style-wrapper-QZvOi8Ur.cjs} +1 -1
- package/lib/node/{style-wrapper-y344qWFp.js → style-wrapper-QtIk1dHP.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
|
-
}, _r = "5.
|
|
176
|
+
}, _r = "5.2.0", Jr = () => ({
|
|
177
177
|
"X-Builder-SDK": G,
|
|
178
178
|
"X-Builder-SDK-GEN": "2",
|
|
179
179
|
"X-Builder-SDK-Version": _r
|
|
@@ -523,7 +523,7 @@ var V, $i = function(e) {
|
|
|
523
523
|
break;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function m(a) {
|
|
527
527
|
switch (a) {
|
|
528
528
|
case 46:
|
|
529
529
|
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? A(!0) : (++d, s(gr));
|
|
@@ -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, h()) : a === 61 ? b(De, 2) : b(vr, 1);
|
|
630
630
|
return;
|
|
631
631
|
case 37:
|
|
632
632
|
case 42:
|
|
@@ -658,12 +658,12 @@ 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 h();
|
|
662
662
|
if (d >= Le)
|
|
663
663
|
return s(tn);
|
|
664
664
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
665
665
|
return te();
|
|
666
|
-
if (
|
|
666
|
+
if (m(a) === !1) {
|
|
667
667
|
if (a = String.fromCharCode(a), a === "\\" || Tr.test(a))
|
|
668
668
|
return te();
|
|
669
669
|
r(d, "Unexpected character '" + a + "'");
|
|
@@ -673,7 +673,7 @@ 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 h() {
|
|
677
677
|
for (var a, l, p = d; ; ) {
|
|
678
678
|
d >= Le && r(p, "Unterminated regexp");
|
|
679
679
|
var f = k.charAt(d);
|
|
@@ -1389,11 +1389,11 @@ function Oi(e, t) {
|
|
|
1389
1389
|
s = s.join(", ");
|
|
1390
1390
|
}
|
|
1391
1391
|
try {
|
|
1392
|
-
var
|
|
1392
|
+
var m = _e("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1393
1393
|
} catch (y) {
|
|
1394
1394
|
I(e, e.T, "Invalid code: " + y.message);
|
|
1395
1395
|
}
|
|
1396
|
-
return
|
|
1396
|
+
return m.body.length !== 1 && I(e, e.T, "Invalid code in function body"), Nn(e, m.body[0].la, e.N, "anonymous");
|
|
1397
1397
|
};
|
|
1398
1398
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, C), e.g(e.O, "prototype", e.Z, C), e.g(e.Z, "constructor", e.O, C), e.Z.Ta = function() {
|
|
1399
1399
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, le), e.Z.H = "Function", r = function(o, i) {
|
|
@@ -1500,8 +1500,8 @@ function ji(e, t) {
|
|
|
1500
1500
|
}, r, i), r !== qe && i(Te(e, r));
|
|
1501
1501
|
else {
|
|
1502
1502
|
var u = e.ha(), c = ct(e, r, u, i);
|
|
1503
|
-
u.onmessage = function(
|
|
1504
|
-
clearTimeout(c), i(Te(e,
|
|
1503
|
+
u.onmessage = function(m) {
|
|
1504
|
+
clearTimeout(c), i(Te(e, m.data));
|
|
1505
1505
|
}, u.postMessage(["split", s, r, o]);
|
|
1506
1506
|
}
|
|
1507
1507
|
return;
|
|
@@ -1550,8 +1550,8 @@ function ji(e, t) {
|
|
|
1550
1550
|
}, r, i), r !== qe && i(r);
|
|
1551
1551
|
else {
|
|
1552
1552
|
var u = e.ha(), c = ct(e, r, u, i);
|
|
1553
|
-
u.onmessage = function(
|
|
1554
|
-
clearTimeout(c), i(
|
|
1553
|
+
u.onmessage = function(m) {
|
|
1554
|
+
clearTimeout(c), i(m.data);
|
|
1555
1555
|
}, u.postMessage(["replace", s, r, o]);
|
|
1556
1556
|
}
|
|
1557
1557
|
return;
|
|
@@ -1655,9 +1655,9 @@ function Wi(e, t) {
|
|
|
1655
1655
|
regexp: s
|
|
1656
1656
|
}, s, o), r !== qe && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1657
1657
|
else {
|
|
1658
|
-
var u = e.ha(), c = ct(e, s, u, o),
|
|
1658
|
+
var u = e.ha(), c = ct(e, s, u, o), m = this;
|
|
1659
1659
|
u.onmessage = function(y) {
|
|
1660
|
-
clearTimeout(c), e.g(
|
|
1660
|
+
clearTimeout(c), e.g(m, "lastIndex", y.data[1]), o(i(y.data[0]));
|
|
1661
1661
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1662
1662
|
}
|
|
1663
1663
|
else
|
|
@@ -2200,8 +2200,8 @@ function Ar(e, t, n) {
|
|
|
2200
2200
|
} else {
|
|
2201
2201
|
try {
|
|
2202
2202
|
var c = _e(String(i), "taskCode" + e.ic++);
|
|
2203
|
-
} catch (
|
|
2204
|
-
I(e, e.T, "Invalid code: " +
|
|
2203
|
+
} catch (m) {
|
|
2204
|
+
I(e, e.T, "Invalid code: " + m.message);
|
|
2205
2205
|
}
|
|
2206
2206
|
s.type = "EvalProgram_", s.body = c.body, r = r.node.arguments[0], Ft(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2207
2207
|
}
|
|
@@ -2868,9 +2868,9 @@ function zi() {
|
|
|
2868
2868
|
const c = s._connected[u];
|
|
2869
2869
|
return Array.isArray(c) ? this.nativeToPseudo(c) : typeof c == "object" ? this.createConnectedObject(c) : c;
|
|
2870
2870
|
}
|
|
2871
|
-
function r(s, u, c,
|
|
2871
|
+
function r(s, u, c, m) {
|
|
2872
2872
|
if (s == null || !s._connected)
|
|
2873
|
-
return t.call(this, s, u, c,
|
|
2873
|
+
return t.call(this, s, u, c, m);
|
|
2874
2874
|
s._connected[u] = this.pseudoToNative(c);
|
|
2875
2875
|
}
|
|
2876
2876
|
const o = [], i = [];
|
|
@@ -2907,7 +2907,7 @@ function main()`).replace(/\?\./g, "."), xr = (e) => e + "JSON", Gi = ({
|
|
|
2907
2907
|
context: t,
|
|
2908
2908
|
event: n,
|
|
2909
2909
|
state: u
|
|
2910
|
-
}),
|
|
2910
|
+
}), m = c.map(([$]) => {
|
|
2911
2911
|
const H = xr($);
|
|
2912
2912
|
return $ === "state" ? "" : `var ${$} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2913
2913
|
}).join(`
|
|
@@ -2916,12 +2916,12 @@ function main()`).replace(/\?\./g, "."), xr = (e) => e + "JSON", Gi = ({
|
|
|
2916
2916
|
return;
|
|
2917
2917
|
const b = `
|
|
2918
2918
|
function theFunction() {
|
|
2919
|
-
${
|
|
2919
|
+
${m}
|
|
2920
2920
|
|
|
2921
2921
|
${y}
|
|
2922
2922
|
}
|
|
2923
2923
|
theFunction();
|
|
2924
|
-
`,
|
|
2924
|
+
`, h = 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, xr(te), D);
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
|
-
}, S = new g(b,
|
|
2933
|
+
}, S = new g(b, h);
|
|
2934
2934
|
return S.run(), S.pseudoToNative(S.value);
|
|
2935
2935
|
};
|
|
2936
2936
|
function _i() {
|
|
@@ -2969,7 +2969,7 @@ function kt({
|
|
|
2969
2969
|
...r,
|
|
2970
2970
|
...n
|
|
2971
2971
|
}, c);
|
|
2972
|
-
const
|
|
2972
|
+
const m = {
|
|
2973
2973
|
code: Ri(e, {
|
|
2974
2974
|
isExpression: s
|
|
2975
2975
|
}),
|
|
@@ -2981,7 +2981,7 @@ function kt({
|
|
|
2981
2981
|
localState: n
|
|
2982
2982
|
};
|
|
2983
2983
|
try {
|
|
2984
|
-
return Xi(
|
|
2984
|
+
return Xi(m);
|
|
2985
2985
|
} catch (y) {
|
|
2986
2986
|
ue.error("Failed code evaluation: " + y.message, {
|
|
2987
2987
|
code: e
|
|
@@ -3248,25 +3248,25 @@ const po = (e) => {
|
|
|
3248
3248
|
if (o != null && o.type)
|
|
3249
3249
|
switch (o.type) {
|
|
3250
3250
|
case "builder.evaluate": {
|
|
3251
|
-
const u = o.data.text, c = o.data.arguments || [],
|
|
3252
|
-
let b,
|
|
3251
|
+
const u = o.data.text, c = o.data.arguments || [], m = o.data.id, y = new Function(u);
|
|
3252
|
+
let b, h = null;
|
|
3253
3253
|
try {
|
|
3254
3254
|
b = y.apply(null, c);
|
|
3255
3255
|
} catch (S) {
|
|
3256
|
-
|
|
3256
|
+
h = S;
|
|
3257
3257
|
}
|
|
3258
|
-
|
|
3258
|
+
h ? (i = window.parent) == null || i.postMessage({
|
|
3259
3259
|
type: "builder.evaluateError",
|
|
3260
3260
|
data: {
|
|
3261
|
-
id:
|
|
3262
|
-
error:
|
|
3261
|
+
id: m,
|
|
3262
|
+
error: h.message
|
|
3263
3263
|
}
|
|
3264
3264
|
}, "*") : b && typeof b.then == "function" ? b.then((S) => {
|
|
3265
3265
|
var A;
|
|
3266
3266
|
(A = window.parent) == null || A.postMessage({
|
|
3267
3267
|
type: "builder.evaluateResult",
|
|
3268
3268
|
data: {
|
|
3269
|
-
id:
|
|
3269
|
+
id: m,
|
|
3270
3270
|
result: S
|
|
3271
3271
|
}
|
|
3272
3272
|
}, "*");
|
|
@@ -3274,7 +3274,7 @@ const po = (e) => {
|
|
|
3274
3274
|
type: "builder.evaluateResult",
|
|
3275
3275
|
data: {
|
|
3276
3276
|
result: b,
|
|
3277
|
-
id:
|
|
3277
|
+
id: m
|
|
3278
3278
|
}
|
|
3279
3279
|
}, "*");
|
|
3280
3280
|
break;
|
|
@@ -3532,10 +3532,10 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3532
3532
|
enrich: s,
|
|
3533
3533
|
locale: u,
|
|
3534
3534
|
apiVersion: c = Is,
|
|
3535
|
-
fields:
|
|
3535
|
+
fields: m,
|
|
3536
3536
|
omit: y,
|
|
3537
3537
|
offset: b,
|
|
3538
|
-
cacheSeconds:
|
|
3538
|
+
cacheSeconds: h,
|
|
3539
3539
|
staleCacheSeconds: S,
|
|
3540
3540
|
sort: A,
|
|
3541
3541
|
includeUnpublished: $,
|
|
@@ -3548,7 +3548,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3548
3548
|
const te = t !== 1, E = H || "https://cdn.builder.io", D = new URL(`${E}/api/${c}/content/${o}`);
|
|
3549
3549
|
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);
|
|
3550
3550
|
let ie = n || {};
|
|
3551
|
-
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"),
|
|
3551
|
+
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($)), h && Dr(h) && D.searchParams.set("cacheSeconds", String(h)), S && Dr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3552
3552
|
const _ = Tn({
|
|
3553
3553
|
sort: A
|
|
3554
3554
|
});
|
|
@@ -3665,10 +3665,10 @@ function Ns(e, t, n = {}) {
|
|
|
3665
3665
|
u = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(r, o), s || (r = o = null);
|
|
3666
3666
|
};
|
|
3667
3667
|
return function() {
|
|
3668
|
-
const
|
|
3669
|
-
!u && n.leading === !1 && (u =
|
|
3670
|
-
const y = t - (
|
|
3671
|
-
return r = this, o = arguments, y <= 0 || y > t ? (s && (clearTimeout(s), s = null), u =
|
|
3668
|
+
const m = Date.now();
|
|
3669
|
+
!u && n.leading === !1 && (u = m);
|
|
3670
|
+
const y = t - (m - u);
|
|
3671
|
+
return r = this, o = arguments, y <= 0 || y > t ? (s && (clearTimeout(s), s = null), u = m, i = e.apply(r, o), s || (r = o = null)) : !s && n.trailing !== !1 && (s = setTimeout(c, y)), i;
|
|
3672
3672
|
};
|
|
3673
3673
|
}
|
|
3674
3674
|
function mt(e, ...t) {
|
|
@@ -3742,14 +3742,14 @@ function Vs(e) {
|
|
|
3742
3742
|
leading: !1
|
|
3743
3743
|
});
|
|
3744
3744
|
function u(y) {
|
|
3745
|
-
const b = y.getBoundingClientRect(),
|
|
3746
|
-
return b.bottom > A && b.top <
|
|
3745
|
+
const b = y.getBoundingClientRect(), h = window.innerHeight, A = (e.thresholdPercent || 0) / 100 * h;
|
|
3746
|
+
return b.bottom > A && b.top < h - A;
|
|
3747
3747
|
}
|
|
3748
3748
|
const c = e.steps[0].styles;
|
|
3749
|
-
function
|
|
3749
|
+
function m() {
|
|
3750
3750
|
mt(n.style, c);
|
|
3751
3751
|
}
|
|
3752
|
-
|
|
3752
|
+
m(), setTimeout(() => {
|
|
3753
3753
|
n.style.transition = `all ${e.duration}s ${zn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
3754
3754
|
}), document.addEventListener("scroll", s, {
|
|
3755
3755
|
capture: !0,
|
|
@@ -3837,15 +3837,15 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3837
3837
|
if (!Array.isArray(o))
|
|
3838
3838
|
return;
|
|
3839
3839
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
3840
|
-
return o.map((c,
|
|
3840
|
+
return o.map((c, m) => ({
|
|
3841
3841
|
context: {
|
|
3842
3842
|
...t,
|
|
3843
3843
|
localState: {
|
|
3844
3844
|
...t.localState,
|
|
3845
|
-
$index:
|
|
3845
|
+
$index: m,
|
|
3846
3846
|
$item: c,
|
|
3847
3847
|
[s]: c,
|
|
3848
|
-
[`$${s}Index`]:
|
|
3848
|
+
[`$${s}Index`]: m
|
|
3849
3849
|
}
|
|
3850
3850
|
},
|
|
3851
3851
|
block: r
|
|
@@ -3875,22 +3875,22 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3875
3875
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3876
3876
|
e
|
|
3877
3877
|
), e;
|
|
3878
|
-
}), Gs = () => import("./block-wrapper-
|
|
3878
|
+
}), Gs = () => import("./block-wrapper-DYh1gucy.js").then((e) => e.default).catch((e) => {
|
|
3879
3879
|
throw console.error(
|
|
3880
3880
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3881
3881
|
e
|
|
3882
3882
|
), e;
|
|
3883
|
-
}), _s = () => import("./component-ref-
|
|
3883
|
+
}), _s = () => import("./component-ref-14bWdw0y.js").then((e) => e.default).catch((e) => {
|
|
3884
3884
|
throw console.error(
|
|
3885
3885
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3886
3886
|
e
|
|
3887
3887
|
), e;
|
|
3888
|
-
}), Js = () => import("./repeated-block-
|
|
3888
|
+
}), Js = () => import("./repeated-block-F4oPiI78.js").then((e) => e.default).catch((e) => {
|
|
3889
3889
|
throw console.error(
|
|
3890
3890
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3891
3891
|
e
|
|
3892
3892
|
), e;
|
|
3893
|
-
}), Xs = () => import("./style-wrapper-
|
|
3893
|
+
}), Xs = () => import("./style-wrapper-Ad7ABy2Z.js").then((e) => e.default).catch((e) => {
|
|
3894
3894
|
throw console.error(
|
|
3895
3895
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3896
3896
|
e
|
|
@@ -3992,7 +3992,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3992
3992
|
});
|
|
3993
3993
|
function Qs(e, t, n, r, o, i) {
|
|
3994
3994
|
var b;
|
|
3995
|
-
const s = W("StyleWrapper"), u = W("ComponentRef"), c = W("Block", !0),
|
|
3995
|
+
const s = W("StyleWrapper"), u = W("ComponentRef"), c = W("Block", !0), m = W("BlockWrapper"), y = W("RepeatedBlock");
|
|
3996
3996
|
return e.canShowBlock ? (v(), w(z, { key: 0 }, [
|
|
3997
3997
|
ee(s, {
|
|
3998
3998
|
block: e.processedBlock,
|
|
@@ -4000,10 +4000,10 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4000
4000
|
id: e.block.id
|
|
4001
4001
|
}, null, 8, ["block", "context", "id"]),
|
|
4002
4002
|
(b = e.blockComponent) != null && b.noWrap ? (v(), w(z, { key: 1 }, [
|
|
4003
|
-
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (
|
|
4003
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (h, S) => (v(), U(y, {
|
|
4004
4004
|
key: e.generateKey(S),
|
|
4005
|
-
repeatContext:
|
|
4006
|
-
block:
|
|
4005
|
+
repeatContext: h.context,
|
|
4006
|
+
block: h.block,
|
|
4007
4007
|
registeredComponents: e.registeredComponents,
|
|
4008
4008
|
linkComponent: e.linkComponent
|
|
4009
4009
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(u, {
|
|
@@ -4019,13 +4019,13 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4019
4019
|
isInteractive: e.componentRefProps.isInteractive
|
|
4020
4020
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
4021
4021
|
], 64)) : (v(), w(z, { key: 0 }, [
|
|
4022
|
-
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (
|
|
4022
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (h, S) => (v(), U(y, {
|
|
4023
4023
|
key: e.generateKey(S),
|
|
4024
|
-
repeatContext:
|
|
4025
|
-
block:
|
|
4024
|
+
repeatContext: h.context,
|
|
4025
|
+
block: h.block,
|
|
4026
4026
|
registeredComponents: e.registeredComponents,
|
|
4027
4027
|
linkComponent: e.linkComponent
|
|
4028
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(
|
|
4028
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(m, {
|
|
4029
4029
|
key: 0,
|
|
4030
4030
|
Wrapper: e.Tag,
|
|
4031
4031
|
block: e.processedBlock,
|
|
@@ -4043,9 +4043,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4043
4043
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4044
4044
|
isInteractive: e.componentRefProps.isInteractive
|
|
4045
4045
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4046
|
-
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (
|
|
4047
|
-
key:
|
|
4048
|
-
block:
|
|
4046
|
+
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (h, S) => (v(), U(c, {
|
|
4047
|
+
key: h.id,
|
|
4048
|
+
block: h,
|
|
4049
4049
|
registeredComponents: e.registeredComponents,
|
|
4050
4050
|
linkComponent: e.linkComponent,
|
|
4051
4051
|
context: e.context
|
|
@@ -4166,24 +4166,24 @@ const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6
|
|
|
4166
4166
|
}
|
|
4167
4167
|
});
|
|
4168
4168
|
function ra(e, t, n, r, o, i) {
|
|
4169
|
-
var c,
|
|
4169
|
+
var c, m, y, b;
|
|
4170
4170
|
const s = W("Block"), u = W("BlocksWrapper");
|
|
4171
4171
|
return v(), U(u, {
|
|
4172
4172
|
blocks: e.blocks,
|
|
4173
4173
|
parent: e.parent,
|
|
4174
4174
|
path: e.path,
|
|
4175
4175
|
styleProp: e.styleProp,
|
|
4176
|
-
BlocksWrapperProps: e.BlocksWrapperProps || ((c = e.context) == null ? void 0 : c.BlocksWrapperProps) || ((
|
|
4176
|
+
BlocksWrapperProps: e.BlocksWrapperProps || ((c = e.context) == null ? void 0 : c.BlocksWrapperProps) || ((m = e.builderContext) == null ? void 0 : m.BlocksWrapperProps),
|
|
4177
4177
|
classNameProp: e.className,
|
|
4178
4178
|
BlocksWrapper: ((y = e.context) == null ? void 0 : y.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
4179
4179
|
}, {
|
|
4180
4180
|
default: me(() => [
|
|
4181
4181
|
pe(e.$slots, "default"),
|
|
4182
|
-
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (
|
|
4182
|
+
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (h, S) => {
|
|
4183
4183
|
var A;
|
|
4184
4184
|
return v(), U(s, {
|
|
4185
|
-
key:
|
|
4186
|
-
block:
|
|
4185
|
+
key: h.id,
|
|
4186
|
+
block: h,
|
|
4187
4187
|
linkComponent: e.linkComponent,
|
|
4188
4188
|
context: e.context || e.builderContext,
|
|
4189
4189
|
registeredComponents: e.registeredComponents || ((A = e.componentsContext) == null ? void 0 : A.registeredComponents)
|
|
@@ -4416,10 +4416,10 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4416
4416
|
}
|
|
4417
4417
|
});
|
|
4418
4418
|
function ca(e, t, n, r, o, i) {
|
|
4419
|
-
var
|
|
4419
|
+
var m;
|
|
4420
4420
|
const s = W("InlinedStyles"), u = W("Blocks"), c = W("DynamicRenderer");
|
|
4421
4421
|
return v(), w("div", q({
|
|
4422
|
-
class: e.getColumnsClass((
|
|
4422
|
+
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-1be3j8m9ewb",
|
|
4423
4423
|
style: e.columnsCssVars()
|
|
4424
4424
|
}, {}), [
|
|
4425
4425
|
e.TARGET !== "reactNative" ? (v(), U(s, {
|
|
@@ -4451,7 +4451,7 @@ function ca(e, t, n, r, o, i) {
|
|
|
4451
4451
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4452
4452
|
], 16);
|
|
4453
4453
|
}
|
|
4454
|
-
const pa = /* @__PURE__ */ j(ua, [["render", ca], ["__scopeId", "data-v-
|
|
4454
|
+
const pa = /* @__PURE__ */ j(ua, [["render", ca], ["__scopeId", "data-v-ab15749a"]]), da = B({
|
|
4455
4455
|
name: "builder-fragment-component",
|
|
4456
4456
|
props: []
|
|
4457
4457
|
});
|
|
@@ -4547,7 +4547,7 @@ const ya = B({
|
|
|
4547
4547
|
class: "div-t43jfuqn6g-2"
|
|
4548
4548
|
};
|
|
4549
4549
|
function ka(e, t, n, r, o, i) {
|
|
4550
|
-
var s, u, c,
|
|
4550
|
+
var s, u, c, m, y, b;
|
|
4551
4551
|
return v(), w(z, null, [
|
|
4552
4552
|
Ge("picture", null, [
|
|
4553
4553
|
e.webpSrcSet ? (v(), w("source", {
|
|
@@ -4581,7 +4581,7 @@ function ka(e, t, n, r, o, i) {
|
|
|
4581
4581
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
4582
4582
|
})
|
|
4583
4583
|
}, null, 4)) : F("", !0),
|
|
4584
|
-
(
|
|
4584
|
+
(m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && e.fitContent ? pe(e.$slots, "default", { key: 1 }, void 0, !0) : F("", !0),
|
|
4585
4585
|
!e.fitContent && ((b = (y = e.builderBlock) == null ? void 0 : y.children) != null && b.length) ? (v(), w("div", Sa, [
|
|
4586
4586
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
4587
4587
|
])) : F("", !0)
|
|
@@ -4614,29 +4614,29 @@ function Ta(e, t, n, r, o, i) {
|
|
|
4614
4614
|
}
|
|
4615
4615
|
const Ea = /* @__PURE__ */ j(wa, [["render", Ta]]);
|
|
4616
4616
|
function Ia(e, t, n, r) {
|
|
4617
|
-
function o(
|
|
4618
|
-
return typeof
|
|
4617
|
+
function o(m) {
|
|
4618
|
+
return typeof m == "string";
|
|
4619
4619
|
}
|
|
4620
|
-
function i(
|
|
4621
|
-
return typeof
|
|
4620
|
+
function i(m) {
|
|
4621
|
+
return typeof m == "number";
|
|
4622
4622
|
}
|
|
4623
|
-
function s(
|
|
4623
|
+
function s(m, y) {
|
|
4624
4624
|
return (() => {
|
|
4625
|
-
const
|
|
4625
|
+
const h = y.property, S = y.operator;
|
|
4626
4626
|
let A = y.value;
|
|
4627
|
-
if (y && y.property === "urlPath" && y.value && typeof y.value == "string" && y.value !== "/" && y.value.endsWith("/") && (A = y.value.slice(0, -1)), !(
|
|
4627
|
+
if (y && y.property === "urlPath" && y.value && typeof y.value == "string" && y.value !== "/" && y.value.endsWith("/") && (A = y.value.slice(0, -1)), !(h && S))
|
|
4628
4628
|
return !0;
|
|
4629
4629
|
if (Array.isArray(A))
|
|
4630
|
-
return S === "isNot" ? A.every((H) => s(
|
|
4631
|
-
property:
|
|
4630
|
+
return S === "isNot" ? A.every((H) => s(m, {
|
|
4631
|
+
property: h,
|
|
4632
4632
|
operator: S,
|
|
4633
4633
|
value: H
|
|
4634
|
-
})) : !!A.find((H) => s(
|
|
4635
|
-
property:
|
|
4634
|
+
})) : !!A.find((H) => s(m, {
|
|
4635
|
+
property: h,
|
|
4636
4636
|
operator: S,
|
|
4637
4637
|
value: H
|
|
4638
4638
|
}));
|
|
4639
|
-
const $ = h
|
|
4639
|
+
const $ = m[h];
|
|
4640
4640
|
if (Array.isArray($))
|
|
4641
4641
|
return $.includes(A);
|
|
4642
4642
|
switch (S) {
|
|
@@ -4668,7 +4668,7 @@ function Ia(e, t, n, r) {
|
|
|
4668
4668
|
startDate: n,
|
|
4669
4669
|
endDate: r
|
|
4670
4670
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
4671
|
-
return u.startDate && new Date(u.startDate) > c || u.endDate && new Date(u.endDate) < c ? !1 : !u.query || !u.query.length ? !0 : u.query.every((
|
|
4671
|
+
return u.startDate && new Date(u.startDate) > c || u.endDate && new Date(u.endDate) < c ? !1 : !u.query || !u.query.length ? !0 : u.query.every((m) => s(e, m));
|
|
4672
4672
|
}
|
|
4673
4673
|
const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
4674
4674
|
if (!navigator.cookieEnabled) {
|
|
@@ -5114,7 +5114,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5114
5114
|
}
|
|
5115
5115
|
}),
|
|
5116
5116
|
"data-index": c,
|
|
5117
|
-
onClick: async (
|
|
5117
|
+
onClick: async (m) => e.onClick(c)
|
|
5118
5118
|
}, [
|
|
5119
5119
|
ee(s, {
|
|
5120
5120
|
blocks: u.title,
|
|
@@ -5412,15 +5412,15 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5412
5412
|
onChange: (e) => {
|
|
5413
5413
|
e.delete("srcset"), e.delete("noWebp");
|
|
5414
5414
|
function n(s, u = 6e4) {
|
|
5415
|
-
return new Promise((c,
|
|
5415
|
+
return new Promise((c, m) => {
|
|
5416
5416
|
const y = document.createElement("img");
|
|
5417
5417
|
let b = !1;
|
|
5418
5418
|
y.onload = () => {
|
|
5419
5419
|
b = !0, c(y);
|
|
5420
|
-
}, y.addEventListener("error", (
|
|
5421
|
-
console.warn("Image load failed",
|
|
5420
|
+
}, y.addEventListener("error", (h) => {
|
|
5421
|
+
console.warn("Image load failed", h.error), m(h.error);
|
|
5422
5422
|
}), y.src = s, setTimeout(() => {
|
|
5423
|
-
b ||
|
|
5423
|
+
b || m(new Error("Image load timed out"));
|
|
5424
5424
|
}, u);
|
|
5425
5425
|
});
|
|
5426
5426
|
}
|
|
@@ -5675,13 +5675,13 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
});
|
|
5677
5677
|
function Ja(e, t, n, r, o, i) {
|
|
5678
|
-
var
|
|
5678
|
+
var m, y, b, h, S, A, $, H, te, E;
|
|
5679
5679
|
const s = W("Blocks"), u = W("InlinedStyles"), c = W("InlinedScript");
|
|
5680
5680
|
return v(), w("div", q({ ref: "rootRef" }, e.attrs), [
|
|
5681
5681
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), U(s, {
|
|
5682
5682
|
key: 0,
|
|
5683
5683
|
blocks: e.blocksToRender.blocks,
|
|
5684
|
-
parent: (
|
|
5684
|
+
parent: (m = e.builderBlock) == null ? void 0 : m.id,
|
|
5685
5685
|
path: e.blocksToRender.path,
|
|
5686
5686
|
context: e.builderContext,
|
|
5687
5687
|
registeredComponents: e.builderComponents,
|
|
@@ -5693,7 +5693,7 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5693
5693
|
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), w(z, { key: 1 }, [
|
|
5694
5694
|
e.shouldRenderVariants ? (v(), w(z, { key: 0 }, [
|
|
5695
5695
|
ee(u, {
|
|
5696
|
-
nonce: ((
|
|
5696
|
+
nonce: ((h = e.builderContext) == null ? void 0 : h.nonce) || "",
|
|
5697
5697
|
styles: e.hideVariantsStyleString,
|
|
5698
5698
|
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
5699
5699
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
@@ -5821,7 +5821,7 @@ const Xa = /* @__PURE__ */ j(_a, [["render", Ja]]), Ya = {
|
|
|
5821
5821
|
props: ["builderContext", "name", "builderComponents"]
|
|
5822
5822
|
});
|
|
5823
5823
|
function el(e, t, n, r, o, i) {
|
|
5824
|
-
var u, c,
|
|
5824
|
+
var u, c, m;
|
|
5825
5825
|
const s = W("Blocks");
|
|
5826
5826
|
return v(), w("div", q(
|
|
5827
5827
|
{ style: {
|
|
@@ -5836,7 +5836,7 @@ function el(e, t, n, r, o, i) {
|
|
|
5836
5836
|
path: `symbol.data.${e.name}`,
|
|
5837
5837
|
context: e.builderContext,
|
|
5838
5838
|
registeredComponents: e.builderComponents,
|
|
5839
|
-
blocks: (
|
|
5839
|
+
blocks: (m = e.builderContext.rootState) == null ? void 0 : m[e.name]
|
|
5840
5840
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
5841
5841
|
], 16);
|
|
5842
5842
|
}
|
|
@@ -6065,7 +6065,7 @@ function al(e, t, n, r, o, i) {
|
|
|
6065
6065
|
key: c,
|
|
6066
6066
|
class: gt(`builder-tab-wrap ${e.activeTab === c ? "builder-tab-active" : ""}`),
|
|
6067
6067
|
style: Pe(e.getTabStyle(c)),
|
|
6068
|
-
onClick: async (
|
|
6068
|
+
onClick: async (m) => e.onClick(c)
|
|
6069
6069
|
}, [
|
|
6070
6070
|
ee(s, {
|
|
6071
6071
|
parent: e.builderBlock.id,
|
|
@@ -6574,55 +6574,55 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6574
6574
|
e.preventDefault();
|
|
6575
6575
|
const r = e.currentTarget || e.target, o = this.customHeaders || {};
|
|
6576
6576
|
let i;
|
|
6577
|
-
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((
|
|
6578
|
-
(
|
|
6579
|
-
).map((
|
|
6577
|
+
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((h) => !!h.name).filter(
|
|
6578
|
+
(h) => !!h.name && (h.type !== "radio" || h.checked)
|
|
6579
|
+
).map((h) => {
|
|
6580
6580
|
let S;
|
|
6581
|
-
const A =
|
|
6582
|
-
if (
|
|
6583
|
-
if (
|
|
6584
|
-
if (
|
|
6585
|
-
return S =
|
|
6581
|
+
const A = h.name;
|
|
6582
|
+
if (h instanceof HTMLInputElement)
|
|
6583
|
+
if (h.type === "radio") {
|
|
6584
|
+
if (h.checked)
|
|
6585
|
+
return S = h.value, {
|
|
6586
6586
|
key: A,
|
|
6587
6587
|
value: S
|
|
6588
6588
|
};
|
|
6589
|
-
} else if (
|
|
6590
|
-
S =
|
|
6591
|
-
else if (
|
|
6592
|
-
const $ =
|
|
6589
|
+
} else if (h.type === "checkbox")
|
|
6590
|
+
S = h.checked;
|
|
6591
|
+
else if (h.type === "number" || h.type === "range") {
|
|
6592
|
+
const $ = h.valueAsNumber;
|
|
6593
6593
|
isNaN($) || (S = $);
|
|
6594
6594
|
} else
|
|
6595
|
-
|
|
6595
|
+
h.type === "file" ? S = h.files : S = h.value;
|
|
6596
6596
|
else
|
|
6597
|
-
S =
|
|
6597
|
+
S = h.value;
|
|
6598
6598
|
return {
|
|
6599
6599
|
key: A,
|
|
6600
6600
|
value: S
|
|
6601
6601
|
};
|
|
6602
6602
|
});
|
|
6603
6603
|
let c = this.contentType;
|
|
6604
|
-
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value:
|
|
6605
|
-
(
|
|
6604
|
+
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value: h }) => {
|
|
6605
|
+
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (c = "multipart/form-data");
|
|
6606
6606
|
}), c !== "application/json")
|
|
6607
6607
|
i = s;
|
|
6608
6608
|
else {
|
|
6609
|
-
const
|
|
6609
|
+
const h = {};
|
|
6610
6610
|
Array.from(u).forEach(({ value: S, key: A }) => {
|
|
6611
|
-
lo(
|
|
6612
|
-
}), i = JSON.stringify(
|
|
6611
|
+
lo(h, A, S);
|
|
6612
|
+
}), i = JSON.stringify(h);
|
|
6613
6613
|
}
|
|
6614
6614
|
c && c !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = c));
|
|
6615
|
-
const
|
|
6615
|
+
const m = new CustomEvent("presubmit", {
|
|
6616
6616
|
detail: {
|
|
6617
6617
|
body: i
|
|
6618
6618
|
}
|
|
6619
6619
|
});
|
|
6620
|
-
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
6620
|
+
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
6621
6621
|
return;
|
|
6622
6622
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
6623
|
-
const
|
|
6624
|
-
console.error(
|
|
6625
|
-
formErrorMessage:
|
|
6623
|
+
const h = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
6624
|
+
console.error(h), this.formState = "error", this.mergeNewRootState({
|
|
6625
|
+
formErrorMessage: h
|
|
6626
6626
|
});
|
|
6627
6627
|
return;
|
|
6628
6628
|
}
|
|
@@ -6634,15 +6634,15 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6634
6634
|
headers: o,
|
|
6635
6635
|
method: this.method || "post"
|
|
6636
6636
|
}).then(
|
|
6637
|
-
async (
|
|
6637
|
+
async (h) => {
|
|
6638
6638
|
var $, H;
|
|
6639
6639
|
let S;
|
|
6640
|
-
const A =
|
|
6641
|
-
if (A && A.indexOf("application/json") !== -1 ? S = await
|
|
6640
|
+
const A = h.headers.get("content-type");
|
|
6641
|
+
if (A && A.indexOf("application/json") !== -1 ? S = await h.json() : S = await h.text(), !h.ok) {
|
|
6642
6642
|
const te = new CustomEvent("submit:error", {
|
|
6643
6643
|
detail: {
|
|
6644
6644
|
error: S,
|
|
6645
|
-
status:
|
|
6645
|
+
status: h.status
|
|
6646
6646
|
}
|
|
6647
6647
|
});
|
|
6648
6648
|
if (($ = this.$refs.formRef) != null && $.nativeElement && ((H = this.$refs.formRef) == null || H.nativeElement.dispatchEvent(
|
|
@@ -6656,10 +6656,10 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6656
6656
|
});
|
|
6657
6657
|
return;
|
|
6658
6658
|
}
|
|
6659
|
-
if (this.responseData = S, this.formState =
|
|
6659
|
+
if (this.responseData = S, this.formState = h.ok ? "success" : "error", h.ok) {
|
|
6660
6660
|
const te = new CustomEvent("submit:success", {
|
|
6661
6661
|
detail: {
|
|
6662
|
-
res:
|
|
6662
|
+
res: h,
|
|
6663
6663
|
body: S
|
|
6664
6664
|
}
|
|
6665
6665
|
});
|
|
@@ -6680,13 +6680,13 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6680
6680
|
location.href = this.successUrl;
|
|
6681
6681
|
}
|
|
6682
6682
|
},
|
|
6683
|
-
(
|
|
6683
|
+
(h) => {
|
|
6684
6684
|
const S = new CustomEvent("submit:error", {
|
|
6685
6685
|
detail: {
|
|
6686
|
-
error:
|
|
6686
|
+
error: h
|
|
6687
6687
|
}
|
|
6688
6688
|
});
|
|
6689
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData =
|
|
6689
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData = h, this.formState = "error");
|
|
6690
6690
|
}
|
|
6691
6691
|
);
|
|
6692
6692
|
}
|
|
@@ -7234,7 +7234,7 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7234
7234
|
}
|
|
7235
7235
|
};
|
|
7236
7236
|
function pu(e, t, n, r, o, i) {
|
|
7237
|
-
var s, u, c,
|
|
7237
|
+
var s, u, c, m, y, b, h;
|
|
7238
7238
|
return v(), w("div", au, [
|
|
7239
7239
|
Ge("video", q({
|
|
7240
7240
|
class: "builder-video",
|
|
@@ -7273,10 +7273,10 @@ function pu(e, t, n, r, o, i) {
|
|
|
7273
7273
|
fontSize: "0px"
|
|
7274
7274
|
})
|
|
7275
7275
|
}, null, 4)) : F("", !0),
|
|
7276
|
-
(y = (
|
|
7276
|
+
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), w("div", uu, [
|
|
7277
7277
|
pe(e.$slots, "default")
|
|
7278
7278
|
])) : F("", !0),
|
|
7279
|
-
(
|
|
7279
|
+
(h = (b = e.builderBlock) == null ? void 0 : b.children) != null && h.length && !e.fitContent ? (v(), w("div", cu, [
|
|
7280
7280
|
pe(e.$slots, "default")
|
|
7281
7281
|
])) : F("", !0)
|
|
7282
7282
|
]);
|
|
@@ -7788,12 +7788,12 @@ font-weight: ${s};
|
|
|
7788
7788
|
method: "GET"
|
|
7789
7789
|
};
|
|
7790
7790
|
Rn(JSON.stringify(c));
|
|
7791
|
-
const
|
|
7791
|
+
const m = {
|
|
7792
7792
|
method: c.method,
|
|
7793
7793
|
headers: c.headers,
|
|
7794
7794
|
body: c.body
|
|
7795
7795
|
};
|
|
7796
|
-
c.method === "GET" && delete
|
|
7796
|
+
c.method === "GET" && delete m.body, fetch(c.url, m).then((y) => y.json()).then((y) => {
|
|
7797
7797
|
this.mergeNewRootState({
|
|
7798
7798
|
[r]: y
|
|
7799
7799
|
}), this.httpReqsData[r] = !0;
|
|
@@ -7875,15 +7875,15 @@ function Bu(e, t, n, r, o, i) {
|
|
|
7875
7875
|
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (v(), U(dt(e.ContentWrapper), q({
|
|
7876
7876
|
key: 0,
|
|
7877
7877
|
ref: "elementRef",
|
|
7878
|
-
onClick: (
|
|
7878
|
+
onClick: (m) => e.onClick(m),
|
|
7879
7879
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
7880
7880
|
"builder-model": e.model,
|
|
7881
7881
|
className: e.getWrapperClassName(((u = e.content) == null ? void 0 : u.testVariationId) || ((c = e.content) == null ? void 0 : c.id)),
|
|
7882
7882
|
style: {
|
|
7883
7883
|
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
7884
7884
|
},
|
|
7885
|
-
onIniteditingbldr: (
|
|
7886
|
-
onInitpreviewingbldr: (
|
|
7885
|
+
onIniteditingbldr: (m) => e.elementRef_onIniteditingbldr(m),
|
|
7886
|
+
onInitpreviewingbldr: (m) => e.elementRef_onInitpreviewingbldr(m)
|
|
7887
7887
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
7888
7888
|
default: me(() => [
|
|
7889
7889
|
pe(e.$slots, "default")
|
|
@@ -8082,8 +8082,8 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8082
8082
|
}
|
|
8083
8083
|
});
|
|
8084
8084
|
function Hu(e, t, n, r, o, i) {
|
|
8085
|
-
const s = W("InlinedScript"), u = W("ContentStyles"), c = W("Blocks"),
|
|
8086
|
-
return v(), U(
|
|
8085
|
+
const s = W("InlinedScript"), u = W("ContentStyles"), c = W("Blocks"), m = W("EnableEditor");
|
|
8086
|
+
return v(), U(m, q({
|
|
8087
8087
|
apiHost: e.apiHost,
|
|
8088
8088
|
nonce: e.nonce,
|
|
8089
8089
|
content: e.content,
|
|
@@ -8102,7 +8102,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8102
8102
|
isNestedRender: e.isNestedRender
|
|
8103
8103
|
}, {}), {
|
|
8104
8104
|
default: me(() => {
|
|
8105
|
-
var y, b,
|
|
8105
|
+
var y, b, h, S, A, $, H;
|
|
8106
8106
|
return [
|
|
8107
8107
|
e.isSsrAbTest ? (v(), U(s, {
|
|
8108
8108
|
key: 0,
|
|
@@ -8115,7 +8115,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8115
8115
|
nonce: e.nonce || "",
|
|
8116
8116
|
isNestedRender: e.isNestedRender,
|
|
8117
8117
|
contentId: (y = e.builderContextSignal.content) == null ? void 0 : y.id,
|
|
8118
|
-
cssCode: (
|
|
8118
|
+
cssCode: (h = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : h.cssCode,
|
|
8119
8119
|
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
8120
8120
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : F("", !0),
|
|
8121
8121
|
ee(c, {
|
|
@@ -8225,12 +8225,12 @@ function qu(e, t, n, r, o, i) {
|
|
|
8225
8225
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
8226
8226
|
nonce: e.nonce || ""
|
|
8227
8227
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
8228
|
-
(v(!0), w(z, null, ve(e.getVariants(e.content), (
|
|
8229
|
-
key:
|
|
8228
|
+
(v(!0), w(z, null, ve(e.getVariants(e.content), (m, y) => (v(), U(c, q({
|
|
8229
|
+
key: m.testVariationId,
|
|
8230
8230
|
apiHost: e.apiHost,
|
|
8231
8231
|
isNestedRender: e.isNestedRender,
|
|
8232
8232
|
nonce: e.nonce,
|
|
8233
|
-
content:
|
|
8233
|
+
content: m,
|
|
8234
8234
|
showContent: !1,
|
|
8235
8235
|
model: e.model,
|
|
8236
8236
|
data: e.data,
|
|
@@ -8285,7 +8285,7 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8285
8285
|
(e != null && e.apiKey))
|
|
8286
8286
|
return Kn({
|
|
8287
8287
|
model: t.model,
|
|
8288
|
-
apiKey: e.apiKey,
|
|
8288
|
+
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
8289
8289
|
apiVersion: e.apiVersion,
|
|
8290
8290
|
...(t == null ? void 0 : t.entry) && {
|
|
8291
8291
|
query: {
|
|
@@ -8365,26 +8365,26 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8365
8365
|
}
|
|
8366
8366
|
});
|
|
8367
8367
|
function Xu(e, t, n, r, o, i) {
|
|
8368
|
-
var u, c,
|
|
8368
|
+
var u, c, m, y, b, h, S;
|
|
8369
8369
|
const s = W("ContentVariants");
|
|
8370
8370
|
return v(), w("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
8371
8371
|
ee(s, {
|
|
8372
8372
|
nonce: e.builderContext.nonce,
|
|
8373
8373
|
isNestedRender: !0,
|
|
8374
8374
|
apiVersion: e.builderContext.apiVersion,
|
|
8375
|
-
apiKey: e.builderContext.apiKey,
|
|
8375
|
+
apiKey: (u = e.symbol) != null && u.global && ((c = e.symbol) != null && c.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
8376
8376
|
context: {
|
|
8377
8377
|
...e.builderContext.context,
|
|
8378
|
-
symbolId: (
|
|
8378
|
+
symbolId: (m = e.builderBlock) == null ? void 0 : m.id
|
|
8379
8379
|
},
|
|
8380
8380
|
customComponents: e.customComponents,
|
|
8381
8381
|
data: {
|
|
8382
|
-
...(
|
|
8382
|
+
...(y = e.symbol) == null ? void 0 : y.data,
|
|
8383
8383
|
...e.builderContext.localState,
|
|
8384
|
-
...(
|
|
8384
|
+
...(h = (b = e.contentToUse) == null ? void 0 : b.data) == null ? void 0 : h.state
|
|
8385
8385
|
},
|
|
8386
8386
|
canTrack: e.builderContext.canTrack,
|
|
8387
|
-
model: ((
|
|
8387
|
+
model: ((S = e.symbol) == null ? void 0 : S.model) ?? "",
|
|
8388
8388
|
content: e.contentToUse,
|
|
8389
8389
|
linkComponent: e.builderLinkComponent,
|
|
8390
8390
|
blocksWrapper: e.blocksWrapper,
|