@builder.io/sdk-vue 4.2.1 → 4.2.3
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-522m_tb0.js → awaiter-QkoC16ei.js} +1 -1
- package/lib/browser/{awaiter-xp9lcSxP.cjs → awaiter-dVEzPIfa.cjs} +1 -1
- package/lib/browser/{block-wrapper-9mehIM9T.cjs → block-wrapper-BOi64ZSf.cjs} +1 -1
- package/lib/browser/{block-wrapper-26klNOq9.js → block-wrapper-LGlUvVpu.js} +3 -3
- package/lib/browser/blocks/form/form/form.vue.d.ts +1 -0
- package/lib/browser/blocks/img/img.vue.d.ts +9 -2
- package/lib/browser/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/browser/component-ref-Jt8NZQKY.cjs +1 -0
- package/lib/browser/{component-ref-IrVdrKrT.js → component-ref-tMh8EWjb.js} +68 -57
- package/lib/browser/components/awaiter.types.d.ts +7 -0
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/browser/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/browser/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/browser/components/live-edit.vue.d.ts +17 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/find-block-4FksmtpZ.js +30 -0
- package/lib/browser/find-block-FHyxDYzT.cjs +1 -0
- package/lib/browser/{get-block-properties-QnM_YrNk.js → get-block-properties-Ahsh8p5y.js} +8 -8
- package/lib/browser/{get-block-properties-OKep411k.cjs → get-block-properties-NuVrGQN_.cjs} +1 -1
- package/lib/browser/helpers/find-block.d.ts +18 -0
- package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/browser/{index-dDcL7IfY.js → index-EtzQVBnH.js} +635 -569
- package/lib/browser/index-jbLVGF3d.cjs +334 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +11 -11
- package/lib/browser/live-edit-h_5MH287.cjs +1 -0
- package/lib/browser/live-edit-rw2-UX9h.js +32 -0
- package/lib/browser/{repeated-block-nKx_42cr.cjs → repeated-block-DP1NryZH.cjs} +1 -1
- package/lib/browser/{repeated-block-iOBHvqGU.js → repeated-block-WP795fea.js} +2 -2
- package/lib/browser/style-wrapper-OLuHp-wg.js +210 -0
- package/lib/browser/style-wrapper-_FKH2e4u.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-1mRIGpV6.cjs → awaiter-AB81htE9.cjs} +1 -1
- package/lib/edge/{awaiter-inDvpJQO.js → awaiter-G2IZpq8y.js} +1 -1
- package/lib/{node/block-wrapper-02ftlAfU.cjs → edge/block-wrapper-3KMmt5za.cjs} +1 -1
- package/lib/edge/{block-wrapper-SsRgbO8V.js → block-wrapper-hc1D57Il.js} +3 -3
- package/lib/edge/blocks/form/form/form.vue.d.ts +1 -0
- package/lib/edge/blocks/img/img.vue.d.ts +9 -2
- package/lib/edge/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/edge/component-ref-1l1Dc15N.cjs +1 -0
- package/lib/edge/{component-ref-xNhbKfn9.js → component-ref-__eNmb_i.js} +68 -57
- package/lib/edge/components/awaiter.types.d.ts +7 -0
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/edge/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/edge/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/edge/components/live-edit.vue.d.ts +17 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/find-block-3Ig0kVVe.js +29 -0
- package/lib/edge/find-block-FREohLcp.cjs +1 -0
- package/lib/edge/{get-block-properties-YBHD-kyN.js → get-block-properties-IlO7VcTG.js} +10 -10
- package/lib/edge/{get-block-properties-gqcOodFf.cjs → get-block-properties-YofIFdQl.cjs} +1 -1
- package/lib/edge/helpers/find-block.d.ts +18 -0
- package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/edge/{index-KuatB8ic.cjs → index-UFKf4DGh.cjs} +27 -27
- package/lib/edge/{index-hzqKkVuy.js → index-pedBdruj.js} +880 -814
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +11 -11
- package/lib/edge/live-edit-bP5Bdb_I.cjs +1 -0
- package/lib/edge/live-edit-mkwzJ3KQ.js +31 -0
- package/lib/{node/repeated-block-pKrhMIDV.cjs → edge/repeated-block-eV-zFRwn.cjs} +1 -1
- package/lib/{node/repeated-block-dhWJ0p4C.js → edge/repeated-block-i0HNWVX0.js} +2 -2
- package/lib/edge/style-wrapper-QrUxYNMa.cjs +1 -0
- package/lib/edge/style-wrapper-mI3PSijR.js +209 -0
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-xwpDFIvR.cjs → awaiter-GsCK0Rmm.cjs} +1 -1
- package/lib/node/{awaiter-VENdQO6n.js → awaiter-vsM2I4ci.js} +2 -2
- package/lib/node/{block-wrapper-YFKoP-Sr.js → block-wrapper-HC1GKPg-.js} +5 -5
- package/lib/{edge/block-wrapper-1wOAQ8jv.cjs → node/block-wrapper-VVk0Gqbc.cjs} +1 -1
- package/lib/node/blocks/form/form/form.vue.d.ts +1 -0
- package/lib/node/blocks/img/img.vue.d.ts +9 -2
- package/lib/node/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/node/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/node/component-ref-SsJCZYlF.cjs +1 -0
- package/lib/node/{component-ref-CL-UB2rM.js → component-ref-bqN5ZiyT.js} +70 -58
- package/lib/node/components/awaiter.types.d.ts +7 -0
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/node/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/node/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/node/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/node/components/live-edit.vue.d.ts +17 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/find-block-3Ig0kVVe.js +29 -0
- package/lib/node/find-block-FREohLcp.cjs +1 -0
- package/lib/node/{get-block-properties-5a2c_5xR.cjs → get-block-properties--0kf0kc1.cjs} +1 -1
- package/lib/node/{get-block-properties-LchfO6Kb.js → get-block-properties-4dl07r5f.js} +1 -1
- package/lib/node/helpers/find-block.d.ts +18 -0
- package/lib/node/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/node/index-9ZnpkpZ8.cjs +334 -0
- package/lib/node/{index-HR8y_fPw.js → index-BtCfIIfO.js} +600 -534
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +8 -8
- package/lib/node/live-edit-dkMPrQFh.js +31 -0
- package/lib/node/live-edit-k5C1gkl6.cjs +1 -0
- package/lib/{edge/repeated-block-E4-2V2fe.js → node/repeated-block-FOLLYnPQ.js} +2 -2
- package/lib/{edge/repeated-block-6mZ2NJ7W.cjs → node/repeated-block-pPsNH7xs.cjs} +1 -1
- package/lib/node/style-wrapper-CbrJHZiI.cjs +1 -0
- package/lib/node/style-wrapper-bEfbvdLX.js +210 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-styles-4ljhsSUM.js +0 -84
- package/lib/browser/block-styles-NDMRfO-4.cjs +0 -1
- package/lib/browser/component-ref-B8JFh8hq.cjs +0 -1
- package/lib/browser/index-Sn06h7cl.cjs +0 -334
- package/lib/edge/block-styles-NdwXUvb8.js +0 -83
- package/lib/edge/block-styles-gtNLlF4k.cjs +0 -1
- package/lib/edge/component-ref-aeV7uVzT.cjs +0 -1
- package/lib/node/block-styles-8bE2sgtd.cjs +0 -1
- package/lib/node/block-styles-8zkB2lOv.js +0 -84
- package/lib/node/component-ref-U-rcbsRh.cjs +0 -1
- package/lib/node/index-SDqfr0zQ.cjs +0 -334
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as
|
|
1
|
+
import { defineComponent as B, openBlock as v, createElementBlock as w, Fragment as z, createBlock as U, resolveDynamicComponent as dt, mergeProps as q, toHandlers as ye, withCtx as me, renderSlot as pe, resolveComponent as W, createTextVNode as Xo, toDisplayString as Ut, defineAsyncComponent as st, createVNode as ee, renderList as ve, createCommentVNode as F, h as Mr, createElementVNode as Ge, normalizeStyle as Pe, normalizeClass as gt, markRaw as Yo } from "vue";
|
|
2
2
|
const Qo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Zo = (e) => typeof e == "string" && Qo.has(e.toLowerCase());
|
|
3
|
-
function
|
|
3
|
+
function de(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
for (const o in e) {
|
|
6
6
|
if (!e[o] || n && !o.startsWith(t))
|
|
@@ -23,24 +23,24 @@ const ei = B({
|
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
25
|
function ti(e, t, n, r, o, i) {
|
|
26
|
-
return e.isEmptyElement(e.TagName) ? (
|
|
27
|
-
typeof e.TagName == "string" ? (
|
|
28
|
-
default:
|
|
26
|
+
return e.isEmptyElement(e.TagName) ? (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes, ye(e.actionAttributes)), null, 16)) : (v(), w(z, { key: 0 }, [
|
|
27
|
+
typeof e.TagName == "string" ? (v(), U(dt(e.TagName), q({ key: 0 }, e.attributes, ye(e.actionAttributes)), {
|
|
28
|
+
default: me(() => [
|
|
29
29
|
pe(e.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
|
-
}, 16)) : (
|
|
33
|
-
default:
|
|
32
|
+
}, 16)) : (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes, ye(e.actionAttributes)), {
|
|
33
|
+
default: me(() => [
|
|
34
34
|
pe(e.$slots, "default")
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const En = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
|
-
default:
|
|
43
|
-
}, Symbol.toStringTag, { value: "Module" })), G = "vue",
|
|
42
|
+
default: En
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" })), G = "vue", Oe = () => {
|
|
44
44
|
switch (G) {
|
|
45
45
|
case "react":
|
|
46
46
|
case "reactNative":
|
|
@@ -55,7 +55,7 @@ const Tn = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.
|
|
|
55
55
|
}
|
|
56
56
|
}, ni = B({
|
|
57
57
|
name: "builder-button",
|
|
58
|
-
components: { DynamicRenderer:
|
|
58
|
+
components: { DynamicRenderer: En },
|
|
59
59
|
props: [
|
|
60
60
|
"attributes",
|
|
61
61
|
"link",
|
|
@@ -64,13 +64,13 @@ const Tn = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.
|
|
|
64
64
|
"text"
|
|
65
65
|
],
|
|
66
66
|
data() {
|
|
67
|
-
return { filterAttrs:
|
|
67
|
+
return { filterAttrs: de };
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
70
70
|
attrs() {
|
|
71
71
|
return {
|
|
72
|
-
...
|
|
73
|
-
[
|
|
72
|
+
...de(this.attributes, "v-on:", !1),
|
|
73
|
+
[Oe()]: `${this.link ? "" : "builder-button"} ${this.attributes[Oe()] || ""}`,
|
|
74
74
|
...this.link ? {
|
|
75
75
|
href: this.link,
|
|
76
76
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -84,12 +84,12 @@ const Tn = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.
|
|
|
84
84
|
});
|
|
85
85
|
function ri(e, t, n, r, o, i) {
|
|
86
86
|
const s = W("DynamicRenderer");
|
|
87
|
-
return
|
|
87
|
+
return v(), U(s, {
|
|
88
88
|
attributes: e.attrs(),
|
|
89
89
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
90
90
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
91
91
|
}, {
|
|
92
|
-
default:
|
|
92
|
+
default: me(() => [
|
|
93
93
|
Xo(Ut(e.text), 1)
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
@@ -137,7 +137,7 @@ const ai = (e) => {
|
|
|
137
137
|
function li() {
|
|
138
138
|
return M() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function oe(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
|
}
|
|
@@ -186,7 +186,7 @@ const ui = () => {
|
|
|
186
186
|
context: t,
|
|
187
187
|
event: n
|
|
188
188
|
}), pi = () => ({
|
|
189
|
-
isEditing:
|
|
189
|
+
isEditing: oe(),
|
|
190
190
|
isBrowser: M(),
|
|
191
191
|
isServer: !M(),
|
|
192
192
|
getUserAttributes: () => Gr()
|
|
@@ -244,14 +244,14 @@ var V, hi = function(e) {
|
|
|
244
244
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && _o.test(String.fromCharCode(a));
|
|
245
245
|
}
|
|
246
246
|
function n(a) {
|
|
247
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
247
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Tr.test(String.fromCharCode(a));
|
|
248
248
|
}
|
|
249
249
|
function r(a, l) {
|
|
250
250
|
for (var p = k, f = 1, P = 0; ; ) {
|
|
251
|
-
|
|
252
|
-
var
|
|
253
|
-
if (
|
|
254
|
-
++f, P =
|
|
251
|
+
$t.lastIndex = P;
|
|
252
|
+
var Q = $t.exec(p);
|
|
253
|
+
if (Q && Q.index < a)
|
|
254
|
+
++f, P = Q.index + Q[0].length;
|
|
255
255
|
else
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
@@ -269,25 +269,25 @@ var V, hi = function(e) {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
function i() {
|
|
272
|
-
this.line = Ve, this.ab = d -
|
|
272
|
+
this.line = Ve, this.ab = d - ke;
|
|
273
273
|
}
|
|
274
274
|
function s(a, l) {
|
|
275
|
-
Fe = d, O.C && (Yt = new i()),
|
|
275
|
+
Fe = d, O.C && (Yt = new i()), $ = a, c(), fe = l, tt = a.m;
|
|
276
276
|
}
|
|
277
277
|
function u() {
|
|
278
|
-
for (var a = d, l = O.va && O.C && new i(), p = k.charCodeAt(d += 2); d <
|
|
278
|
+
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; )
|
|
279
279
|
++d, p = k.charCodeAt(d);
|
|
280
280
|
O.va && O.va(!1, k.slice(a + 2, d), a, d, l, O.C && new i());
|
|
281
281
|
}
|
|
282
282
|
function c() {
|
|
283
|
-
for (; d <
|
|
283
|
+
for (; d < Le; ) {
|
|
284
284
|
var a = k.charCodeAt(d);
|
|
285
285
|
if (a === 32)
|
|
286
286
|
++d;
|
|
287
287
|
else if (a === 13)
|
|
288
|
-
++d, a = k.charCodeAt(d), a === 10 && ++d, O.C && (++Ve,
|
|
288
|
+
++d, a = k.charCodeAt(d), a === 10 && ++d, O.C && (++Ve, ke = d);
|
|
289
289
|
else if (a === 10 || a === 8232 || a === 8233)
|
|
290
|
-
++d, O.C && (++Ve,
|
|
290
|
+
++d, O.C && (++Ve, ke = d);
|
|
291
291
|
else if (8 < a && 14 > a)
|
|
292
292
|
++d;
|
|
293
293
|
else if (a === 47)
|
|
@@ -295,8 +295,8 @@ var V, hi = function(e) {
|
|
|
295
295
|
a = void 0;
|
|
296
296
|
var l = O.va && O.C && new i(), p = d, f = k.indexOf("*/", d += 2);
|
|
297
297
|
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, O.C)
|
|
298
|
-
for (
|
|
299
|
-
++Ve,
|
|
298
|
+
for ($t.lastIndex = p; (a = $t.exec(k)) && a.index < d; )
|
|
299
|
+
++Ve, ke = a.index + a[0].length;
|
|
300
300
|
O.va && O.va(!0, k.slice(p + 2, f), p, d, l, O.C && new i());
|
|
301
301
|
} else if (a === 47)
|
|
302
302
|
u();
|
|
@@ -316,13 +316,13 @@ var V, hi = function(e) {
|
|
|
316
316
|
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? A(!0) : (++d, s(gr));
|
|
317
317
|
return;
|
|
318
318
|
case 40:
|
|
319
|
-
return ++d, s(
|
|
319
|
+
return ++d, s(Ce);
|
|
320
320
|
case 41:
|
|
321
|
-
return ++d, s(
|
|
321
|
+
return ++d, s(ge);
|
|
322
322
|
case 59:
|
|
323
|
-
return ++d, s(
|
|
323
|
+
return ++d, s(we);
|
|
324
324
|
case 44:
|
|
325
|
-
return ++d, s(
|
|
325
|
+
return ++d, s($e);
|
|
326
326
|
case 91:
|
|
327
327
|
return ++d, s(ln);
|
|
328
328
|
case 93:
|
|
@@ -330,14 +330,14 @@ var V, hi = function(e) {
|
|
|
330
330
|
case 123:
|
|
331
331
|
return ++d, s(ot);
|
|
332
332
|
case 125:
|
|
333
|
-
return ++d, s(
|
|
333
|
+
return ++d, s(He);
|
|
334
334
|
case 58:
|
|
335
335
|
return ++d, s(it);
|
|
336
336
|
case 63:
|
|
337
337
|
return ++d, s(yr);
|
|
338
338
|
case 48:
|
|
339
339
|
if (a = k.charCodeAt(d + 1), a === 120 || a === 88) {
|
|
340
|
-
d += 2, a = S(16), a === null && r(
|
|
340
|
+
d += 2, a = S(16), a === null && r(Y + 2, "Expected hexadecimal number"), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), s(rt, a);
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
343
|
case 49:
|
|
@@ -354,7 +354,7 @@ var V, hi = function(e) {
|
|
|
354
354
|
case 39:
|
|
355
355
|
d++;
|
|
356
356
|
for (var l = ""; ; ) {
|
|
357
|
-
d >=
|
|
357
|
+
d >= Le && r(Y, "Unterminated string constant");
|
|
358
358
|
var p = k.charCodeAt(d);
|
|
359
359
|
if (p === a) {
|
|
360
360
|
++d, s(It, l);
|
|
@@ -377,13 +377,13 @@ var V, hi = function(e) {
|
|
|
377
377
|
l += "\r";
|
|
378
378
|
break;
|
|
379
379
|
case 120:
|
|
380
|
-
l += String.fromCharCode(
|
|
380
|
+
l += String.fromCharCode(x(2));
|
|
381
381
|
break;
|
|
382
382
|
case 117:
|
|
383
|
-
l += String.fromCharCode(
|
|
383
|
+
l += String.fromCharCode(x(4));
|
|
384
384
|
break;
|
|
385
385
|
case 85:
|
|
386
|
-
l += String.fromCharCode(
|
|
386
|
+
l += String.fromCharCode(x(8));
|
|
387
387
|
break;
|
|
388
388
|
case 116:
|
|
389
389
|
l += " ";
|
|
@@ -403,13 +403,13 @@ var V, hi = function(e) {
|
|
|
403
403
|
case 13:
|
|
404
404
|
k.charCodeAt(d) === 10 && ++d;
|
|
405
405
|
case 10:
|
|
406
|
-
O.C && (
|
|
406
|
+
O.C && (ke = d, ++Ve);
|
|
407
407
|
break;
|
|
408
408
|
default:
|
|
409
409
|
l += String.fromCharCode(p);
|
|
410
410
|
}
|
|
411
411
|
} else
|
|
412
|
-
p !== 13 && p !== 10 && p !== 8232 && p !== 8233 || r(
|
|
412
|
+
p !== 13 && p !== 10 && p !== 8232 && p !== 8233 || r(Y, "Unterminated string constant"), l += String.fromCharCode(p), ++d;
|
|
413
413
|
}
|
|
414
414
|
return;
|
|
415
415
|
case 47:
|
|
@@ -428,31 +428,31 @@ var V, hi = function(e) {
|
|
|
428
428
|
return;
|
|
429
429
|
case 43:
|
|
430
430
|
case 45:
|
|
431
|
-
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 &&
|
|
431
|
+
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && xt.test(k.slice(xe, d)) ? (d += 3, u(), c(), y()) : b(Vo, 2) : l === 61 ? b(De, 2) : b(Ho, 1);
|
|
432
432
|
return;
|
|
433
433
|
case 60:
|
|
434
434
|
case 62:
|
|
435
|
-
l = k.charCodeAt(d + 1), p = 1, l === a ? (p = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + p) === 61 ? b(De, p + 1) : b(Mo, p)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), c(),
|
|
435
|
+
l = k.charCodeAt(d + 1), p = 1, l === a ? (p = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + p) === 61 ? b(De, p + 1) : b(Mo, p)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), c(), y()) : (l === 61 && (p = k.charCodeAt(d + 2) === 61 ? 3 : 2), b(Fo, p));
|
|
436
436
|
return;
|
|
437
437
|
case 61:
|
|
438
438
|
case 33:
|
|
439
|
-
k.charCodeAt(d + 1) === 61 ? b(
|
|
439
|
+
k.charCodeAt(d + 1) === 61 ? b(Lo, k.charCodeAt(d + 2) === 61 ? 3 : 2) : b(a === 61 ? br : Sr, 1);
|
|
440
440
|
return;
|
|
441
441
|
case 126:
|
|
442
442
|
return b(Sr, 1);
|
|
443
443
|
}
|
|
444
444
|
return !1;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
if (a ? d =
|
|
446
|
+
function y(a) {
|
|
447
|
+
if (a ? d = Y + 1 : Y = d, O.C && (Xt = new i()), a)
|
|
448
448
|
return m();
|
|
449
|
-
if (d >=
|
|
449
|
+
if (d >= Le)
|
|
450
450
|
return s(en);
|
|
451
451
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
452
|
-
return
|
|
452
|
+
return te();
|
|
453
453
|
if (h(a) === !1) {
|
|
454
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
455
|
-
return
|
|
454
|
+
if (a = String.fromCharCode(a), a === "\\" || Tr.test(a))
|
|
455
|
+
return te();
|
|
456
456
|
r(d, "Unexpected character '" + a + "'");
|
|
457
457
|
}
|
|
458
458
|
}
|
|
@@ -462,9 +462,9 @@ var V, hi = function(e) {
|
|
|
462
462
|
}
|
|
463
463
|
function m() {
|
|
464
464
|
for (var a, l, p = d; ; ) {
|
|
465
|
-
d >=
|
|
465
|
+
d >= Le && r(p, "Unterminated regexp");
|
|
466
466
|
var f = k.charAt(d);
|
|
467
|
-
if (
|
|
467
|
+
if (xt.test(f) && r(p, "Unterminated regexp"), a)
|
|
468
468
|
a = !1;
|
|
469
469
|
else {
|
|
470
470
|
if (f === "[")
|
|
@@ -480,13 +480,13 @@ var V, hi = function(e) {
|
|
|
480
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
|
-
} catch (
|
|
484
|
-
throw
|
|
483
|
+
} catch (Q) {
|
|
484
|
+
throw Q instanceof SyntaxError && r(p, Q.message), Q;
|
|
485
485
|
}
|
|
486
486
|
s(Yn, P);
|
|
487
487
|
}
|
|
488
488
|
function S(a, l) {
|
|
489
|
-
for (var p = d, f = 0, P = l === void 0 ? 1 / 0 : l,
|
|
489
|
+
for (var p = d, f = 0, P = l === void 0 ? 1 / 0 : l, Q = 0; Q < P; ++Q) {
|
|
490
490
|
var se = k.charCodeAt(d);
|
|
491
491
|
if (se = 97 <= se ? se - 97 + 10 : 65 <= se ? se - 65 + 10 : 48 <= se && 57 >= se ? se - 48 : 1 / 0, se >= a)
|
|
492
492
|
break;
|
|
@@ -500,298 +500,298 @@ var V, hi = function(e) {
|
|
|
500
500
|
var P;
|
|
501
501
|
p ? P = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) || ce ? r(l, "Invalid number") : P = parseInt(a, 8) : P = parseInt(a, 10), s(rt, P);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
return a = S(16, a), a === null && r(
|
|
503
|
+
function x(a) {
|
|
504
|
+
return a = S(16, a), a === null && r(Y, "Bad character escape sequence"), a;
|
|
505
505
|
}
|
|
506
506
|
function H() {
|
|
507
|
-
|
|
507
|
+
Ke = !1;
|
|
508
508
|
for (var a, l = !0, p = d; ; ) {
|
|
509
509
|
var f = k.charCodeAt(d);
|
|
510
510
|
if (t(f))
|
|
511
|
-
|
|
511
|
+
Ke && (a += k.charAt(d)), ++d;
|
|
512
512
|
else if (f === 92) {
|
|
513
|
-
|
|
513
|
+
Ke || (a = k.slice(p, d)), Ke = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, f = x(4);
|
|
514
514
|
var P = String.fromCharCode(f);
|
|
515
515
|
P || r(d - 1, "Invalid Unicode escape"), (l ? n(f) : t(f)) || r(d - 4, "Invalid Unicode escape"), a += P;
|
|
516
516
|
} else
|
|
517
517
|
break;
|
|
518
518
|
l = !1;
|
|
519
519
|
}
|
|
520
|
-
return
|
|
520
|
+
return Ke ? a : k.slice(p, d);
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
var a = H(), l =
|
|
524
|
-
!
|
|
522
|
+
function te() {
|
|
523
|
+
var a = H(), l = Me;
|
|
524
|
+
!Ke && qo(a) && (l = jo[a]), s(l, a);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
Qt =
|
|
526
|
+
function E() {
|
|
527
|
+
Qt = Y, xe = Fe, Zt = Yt, y();
|
|
528
528
|
}
|
|
529
529
|
function D(a) {
|
|
530
|
-
if (ce = a, d =
|
|
531
|
-
for (; d <
|
|
532
|
-
|
|
533
|
-
`,
|
|
534
|
-
c(),
|
|
530
|
+
if (ce = a, d = Y, O.C)
|
|
531
|
+
for (; d < ke; )
|
|
532
|
+
ke = k.lastIndexOf(`
|
|
533
|
+
`, ke - 2) + 1, --Ve;
|
|
534
|
+
c(), y();
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
this.type = null, this.start =
|
|
536
|
+
function ie() {
|
|
537
|
+
this.type = null, this.start = Y, this.end = null;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Ae() {
|
|
540
540
|
this.start = Xt, this.end = null, Jt && (this.source = Jt);
|
|
541
541
|
}
|
|
542
542
|
function K() {
|
|
543
|
-
var a = new
|
|
544
|
-
return O.C && (a.X = new
|
|
543
|
+
var a = new ie();
|
|
544
|
+
return O.C && (a.X = new Ae()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [Y, 0]), a;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
var l = new
|
|
548
|
-
return l.start = a.start, O.C && (l.X = new
|
|
546
|
+
function _(a) {
|
|
547
|
+
var l = new ie();
|
|
548
|
+
return l.start = a.start, O.C && (l.X = new Ae(), l.X.start = a.X.start), O.Xa && (l.j = [a.j[0], 0]), l;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function R(a, l) {
|
|
551
551
|
return a.type = l, a.end = xe, O.C && (a.X.end = Zt), O.Xa && (a.j[1] = xe), a;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function We(a) {
|
|
554
554
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
556
|
+
function L(a) {
|
|
557
|
+
return $ === a ? (E(), !0) : !1;
|
|
558
558
|
}
|
|
559
559
|
function wt() {
|
|
560
|
-
return !O.fc && (
|
|
560
|
+
return !O.fc && ($ === en || $ === He || xt.test(k.slice(xe, Y)));
|
|
561
561
|
}
|
|
562
562
|
function je() {
|
|
563
|
-
|
|
563
|
+
L(we) || wt() || be();
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
|
|
565
|
+
function J(a) {
|
|
566
|
+
$ === a ? E() : be();
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
r(
|
|
568
|
+
function be() {
|
|
569
|
+
r(Y, "Unexpected token");
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Tt(a) {
|
|
572
572
|
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");
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
(
|
|
576
|
-
var a =
|
|
574
|
+
function he() {
|
|
575
|
+
($ === vr || $ === De && fe === "/=") && y(!0);
|
|
576
|
+
var a = $, l = K();
|
|
577
577
|
switch (a) {
|
|
578
578
|
case tn:
|
|
579
579
|
case Zn:
|
|
580
|
-
|
|
580
|
+
E();
|
|
581
581
|
var p = a === tn;
|
|
582
|
-
|
|
583
|
-
for (var f = 0; f <
|
|
584
|
-
var P =
|
|
582
|
+
L(we) || wt() ? l.label = null : $ !== Me ? be() : (l.label = Se(), je());
|
|
583
|
+
for (var f = 0; f < X.length; ++f) {
|
|
584
|
+
var P = X[f];
|
|
585
585
|
if ((l.label === null || P.name === l.label.name) && (P.kind !== null && (p || P.kind === "loop") || l.label && p))
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
|
-
return f ===
|
|
588
|
+
return f === X.length && r(l.start, "Unsyntactic " + a.l), R(l, p ? "BreakStatement" : "ContinueStatement");
|
|
589
589
|
case er:
|
|
590
|
-
return
|
|
590
|
+
return E(), je(), R(l, "DebuggerStatement");
|
|
591
591
|
case nr:
|
|
592
|
-
return
|
|
592
|
+
return E(), X.push(cn), l.body = he(), X.pop(), J(an), l.test = Qe(), je(), R(l, "DoWhileStatement");
|
|
593
593
|
case ir:
|
|
594
|
-
return
|
|
594
|
+
return E(), X.push(cn), J(Ce), $ === we ? Ht(l, null) : $ === sn ? (a = K(), E(), Jn(a, !0), R(a, "VariableDeclaration"), a.fa.length === 1 && L(Rt) ? _n(l, a) : Ht(l, a)) : (a = re(!1, !0), L(Rt) ? (Tt(a), _n(l, a)) : Ht(l, a));
|
|
595
595
|
case rn:
|
|
596
|
-
return
|
|
596
|
+
return E(), Gt(l, !0);
|
|
597
597
|
case sr:
|
|
598
|
-
return
|
|
598
|
+
return E(), l.test = Qe(), l.da = he(), l.alternate = L(rr) ? he() : null, R(l, "IfStatement");
|
|
599
599
|
case ar:
|
|
600
|
-
return nt || O.Ib || r(
|
|
600
|
+
return nt || O.Ib || r(Y, "'return' outside of function"), E(), L(we) || wt() ? l.K = null : (l.K = re(), je()), R(l, "ReturnStatement");
|
|
601
601
|
case on:
|
|
602
|
-
for (
|
|
603
|
-
|
|
604
|
-
return f &&
|
|
602
|
+
for (E(), l.Qb = Qe(), l.tb = [], J(ot), X.push(Jo); $ !== He; )
|
|
603
|
+
$ === nn || $ === tr ? (a = $ === nn, f && R(f, "SwitchCase"), l.tb.push(f = K()), f.da = [], E(), a ? f.test = re() : (p && r(Qt, "Multiple default clauses"), p = !0, f.test = null), J(it)) : (f || be(), f.da.push(he()));
|
|
604
|
+
return f && R(f, "SwitchCase"), E(), X.pop(), R(l, "SwitchStatement");
|
|
605
605
|
case lr:
|
|
606
|
-
return
|
|
606
|
+
return E(), xt.test(k.slice(xe, Y)) && r(xe, "Illegal newline after throw"), l.K = re(), je(), R(l, "ThrowStatement");
|
|
607
607
|
case ur:
|
|
608
|
-
return
|
|
608
|
+
return E(), l.block = Ze(), l.Ea = null, $ === Qn && (a = K(), E(), J(Ce), a.Ua = Se(), ce && At(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), J(ge), a.body = Ze(), l.Ea = R(a, "CatchClause")), l.fb = L(or) ? Ze() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), R(l, "TryStatement");
|
|
609
609
|
case sn:
|
|
610
|
-
return
|
|
610
|
+
return E(), Jn(l), je(), R(l, "VariableDeclaration");
|
|
611
611
|
case an:
|
|
612
|
-
return
|
|
612
|
+
return E(), l.test = Qe(), X.push(cn), l.body = he(), X.pop(), R(l, "WhileStatement");
|
|
613
613
|
case cr:
|
|
614
|
-
return ce && r(
|
|
614
|
+
return ce && r(Y, "'with' in strict mode"), E(), l.object = Qe(), l.body = he(), R(l, "WithStatement");
|
|
615
615
|
case ot:
|
|
616
616
|
return Ze();
|
|
617
|
-
case
|
|
618
|
-
return
|
|
617
|
+
case we:
|
|
618
|
+
return E(), R(l, "EmptyStatement");
|
|
619
619
|
default:
|
|
620
|
-
if (p =
|
|
621
|
-
for (f = 0; f <
|
|
622
|
-
|
|
623
|
-
return
|
|
620
|
+
if (p = fe, P = re(), a === Me && P.type === "Identifier" && L(it)) {
|
|
621
|
+
for (f = 0; f < X.length; ++f)
|
|
622
|
+
X[f].name === p && r(P.start, "Label '" + p + "' is already declared");
|
|
623
|
+
return X.push({
|
|
624
624
|
name: p,
|
|
625
|
-
kind:
|
|
626
|
-
}), l.body =
|
|
625
|
+
kind: $.W ? "loop" : $ === on ? "switch" : null
|
|
626
|
+
}), l.body = he(), X.pop(), l.label = P, R(l, "LabeledStatement");
|
|
627
627
|
}
|
|
628
|
-
return l.la = P, je(),
|
|
628
|
+
return l.la = P, je(), R(l, "ExpressionStatement");
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
function Qe() {
|
|
632
|
-
|
|
633
|
-
var a =
|
|
634
|
-
return
|
|
632
|
+
J(Ce);
|
|
633
|
+
var a = re();
|
|
634
|
+
return J(ge), a;
|
|
635
635
|
}
|
|
636
636
|
function Ze(a) {
|
|
637
637
|
var l = K(), p = !0, f = !1;
|
|
638
|
-
for (l.body = [],
|
|
639
|
-
var P =
|
|
640
|
-
if (l.body.push(P), p && a &&
|
|
641
|
-
var
|
|
638
|
+
for (l.body = [], J(ot); !L(He); ) {
|
|
639
|
+
var P = he();
|
|
640
|
+
if (l.body.push(P), p && a && We(P)) {
|
|
641
|
+
var Q = f;
|
|
642
642
|
D(f = !0);
|
|
643
643
|
}
|
|
644
644
|
p = !1;
|
|
645
645
|
}
|
|
646
|
-
return f && !
|
|
646
|
+
return f && !Q && D(!1), R(l, "BlockStatement");
|
|
647
647
|
}
|
|
648
648
|
function Ht(a, l) {
|
|
649
|
-
return a.ua = l,
|
|
649
|
+
return a.ua = l, J(we), a.test = $ === we ? null : re(), J(we), a.update = $ === ge ? null : re(), J(ge), a.body = he(), X.pop(), R(a, "ForStatement");
|
|
650
650
|
}
|
|
651
651
|
function _n(a, l) {
|
|
652
|
-
return a.left = l, a.right =
|
|
652
|
+
return a.left = l, a.right = re(), J(ge), a.body = he(), X.pop(), R(a, "ForInStatement");
|
|
653
653
|
}
|
|
654
654
|
function Jn(a, l) {
|
|
655
655
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
656
656
|
var p = K();
|
|
657
|
-
if (p.id =
|
|
657
|
+
if (p.id = Se(), ce && At(p.id.name) && r(p.id.start, "Binding " + p.id.name + " in strict mode"), p.ua = L(br) ? re(!0, l) : null, a.fa.push(R(p, "VariableDeclarator")), !L($e))
|
|
658
658
|
break;
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function re(a, l) {
|
|
662
662
|
var p = Kt(l);
|
|
663
|
-
if (!a &&
|
|
664
|
-
for (a =
|
|
663
|
+
if (!a && $ === $e) {
|
|
664
|
+
for (a = _(p), a.xb = [p]; L($e); )
|
|
665
665
|
a.xb.push(Kt(l));
|
|
666
|
-
return
|
|
666
|
+
return R(a, "SequenceExpression");
|
|
667
667
|
}
|
|
668
668
|
return p;
|
|
669
669
|
}
|
|
670
670
|
function Kt(a) {
|
|
671
671
|
var l = zt(qt(), -1, a);
|
|
672
|
-
if (
|
|
673
|
-
var p =
|
|
674
|
-
p.test = l, p.da =
|
|
672
|
+
if (L(yr)) {
|
|
673
|
+
var p = _(l);
|
|
674
|
+
p.test = l, p.da = re(!0), J(it), p.alternate = re(!0, a), l = R(p, "ConditionalExpression");
|
|
675
675
|
}
|
|
676
|
-
return
|
|
676
|
+
return $.Cb ? (p = _(l), p.operator = fe, p.left = l, E(), p.right = Kt(a), Tt(l), R(p, "AssignmentExpression")) : l;
|
|
677
677
|
}
|
|
678
678
|
function zt(a, l, p) {
|
|
679
|
-
var f =
|
|
680
|
-
if (f !== null && (!p ||
|
|
681
|
-
var P =
|
|
682
|
-
return P.left = a, P.operator =
|
|
679
|
+
var f = $.L;
|
|
680
|
+
if (f !== null && (!p || $ !== Rt) && f > l) {
|
|
681
|
+
var P = _(a);
|
|
682
|
+
return P.left = a, P.operator = fe, a = $, E(), P.right = zt(qt(), f, p), f = R(P, a === kr || a === Cr ? "LogicalExpression" : "BinaryExpression"), zt(f, l, p);
|
|
683
683
|
}
|
|
684
684
|
return a;
|
|
685
685
|
}
|
|
686
686
|
function qt() {
|
|
687
|
-
if (
|
|
688
|
-
var a = K(), l =
|
|
689
|
-
return a.operator =
|
|
687
|
+
if ($.prefix) {
|
|
688
|
+
var a = K(), l = $.$b;
|
|
689
|
+
return a.operator = fe, tt = a.prefix = !0, E(), a.K = qt(), 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");
|
|
690
690
|
}
|
|
691
|
-
for (l = et(
|
|
692
|
-
a =
|
|
691
|
+
for (l = et(Et()); $.cc && !wt(); )
|
|
692
|
+
a = _(l), a.operator = fe, a.prefix = !1, a.K = l, Tt(l), E(), l = R(a, "UpdateExpression");
|
|
693
693
|
return l;
|
|
694
694
|
}
|
|
695
695
|
function et(a, l) {
|
|
696
|
-
if (
|
|
697
|
-
var p =
|
|
698
|
-
return p.object = a, p.Wa =
|
|
696
|
+
if (L(gr)) {
|
|
697
|
+
var p = _(a);
|
|
698
|
+
return p.object = a, p.Wa = Se(!0), p.bb = !1, et(R(p, "MemberExpression"), l);
|
|
699
699
|
}
|
|
700
|
-
return
|
|
700
|
+
return L(ln) ? (p = _(a), p.object = a, p.Wa = re(), p.bb = !0, J(un), et(R(p, "MemberExpression"), l)) : !l && L(Ce) ? (p = _(a), p.callee = a, p.arguments = _t(ge, !1), et(R(p, "CallExpression"), l)) : a;
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
switch (
|
|
702
|
+
function Et() {
|
|
703
|
+
switch ($) {
|
|
704
704
|
case dr:
|
|
705
705
|
var a = K();
|
|
706
|
-
return
|
|
707
|
-
case
|
|
708
|
-
return
|
|
706
|
+
return E(), R(a, "ThisExpression");
|
|
707
|
+
case Me:
|
|
708
|
+
return Se();
|
|
709
709
|
case rt:
|
|
710
710
|
case It:
|
|
711
711
|
case Yn:
|
|
712
|
-
return a = K(), a.value =
|
|
712
|
+
return a = K(), a.value = fe, a.raw = k.slice(Y, Fe), E(), R(a, "Literal");
|
|
713
713
|
case fr:
|
|
714
714
|
case hr:
|
|
715
715
|
case mr:
|
|
716
|
-
return a = K(), a.value =
|
|
717
|
-
case
|
|
716
|
+
return a = K(), a.value = $.$a, a.raw = $.l, E(), R(a, "Literal");
|
|
717
|
+
case Ce:
|
|
718
718
|
a = Xt;
|
|
719
|
-
var l =
|
|
720
|
-
|
|
721
|
-
var p =
|
|
722
|
-
return p.start = l, p.end = Fe, O.C && (p.X.start = a, p.X.end = Yt), O.Xa && (p.j = [l, Fe]),
|
|
719
|
+
var l = Y;
|
|
720
|
+
E();
|
|
721
|
+
var p = re();
|
|
722
|
+
return p.start = l, p.end = Fe, O.C && (p.X.start = a, p.X.end = Yt), O.Xa && (p.j = [l, Fe]), J(ge), p;
|
|
723
723
|
case ln:
|
|
724
|
-
return a = K(),
|
|
724
|
+
return a = K(), E(), a.elements = _t(un, !0, !0), R(a, "ArrayExpression");
|
|
725
725
|
case ot:
|
|
726
|
-
for (a = K(), l = !0, p = !1, a.h = [],
|
|
726
|
+
for (a = K(), l = !0, p = !1, a.h = [], E(); !L(He); ) {
|
|
727
727
|
if (l)
|
|
728
728
|
l = !1;
|
|
729
|
-
else if (
|
|
729
|
+
else if (J($e), O.sb && L(He))
|
|
730
730
|
break;
|
|
731
731
|
var f = {
|
|
732
|
-
key:
|
|
732
|
+
key: $ === rt || $ === It ? Et() : Se(!0)
|
|
733
733
|
}, P = !1;
|
|
734
|
-
if (
|
|
735
|
-
f.value =
|
|
736
|
-
var
|
|
734
|
+
if (L(it)) {
|
|
735
|
+
f.value = re(!0);
|
|
736
|
+
var Q = f.kind = "init";
|
|
737
737
|
} else
|
|
738
|
-
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ?
|
|
738
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? be() : (P = p = !0, Q = f.kind = f.key.name, f.key = $ === rt || $ === It ? Et() : Se(!0), $ !== Ce && be(), 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
|
-
var
|
|
742
|
-
if (
|
|
743
|
-
var pn =
|
|
744
|
-
pn && !ce &&
|
|
741
|
+
var ze = a.h[se];
|
|
742
|
+
if (ze.key.name === f.key.name) {
|
|
743
|
+
var pn = Q === ze.kind || P && ze.kind === "init" || Q === "init" && (ze.kind === "get" || ze.kind === "set");
|
|
744
|
+
pn && !ce && Q === "init" && ze.kind === "init" && (pn = !1), pn && r(f.key.start, "Redefinition of property");
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
a.h.push(f);
|
|
748
748
|
}
|
|
749
|
-
return
|
|
749
|
+
return R(a, "ObjectExpression");
|
|
750
750
|
case rn:
|
|
751
|
-
return a = K(),
|
|
751
|
+
return a = K(), E(), Gt(a, !1);
|
|
752
752
|
case pr:
|
|
753
|
-
return a = K(),
|
|
753
|
+
return a = K(), E(), a.callee = et(Et(), !0), a.arguments = L(Ce) ? _t(ge, !1) : Bo, R(a, "NewExpression");
|
|
754
754
|
}
|
|
755
|
-
|
|
755
|
+
be();
|
|
756
756
|
}
|
|
757
757
|
function Gt(a, l) {
|
|
758
|
-
|
|
758
|
+
$ === Me ? a.id = Se() : l ? be() : a.id = null, a.oa = [];
|
|
759
759
|
var p = !0;
|
|
760
|
-
for (
|
|
761
|
-
p ? p = !1 :
|
|
760
|
+
for (J(Ce); !L(ge); )
|
|
761
|
+
p ? p = !1 : J($e), a.oa.push(Se());
|
|
762
762
|
p = nt;
|
|
763
|
-
var f =
|
|
764
|
-
if (nt = !0,
|
|
763
|
+
var f = X;
|
|
764
|
+
if (nt = !0, X = [], a.body = Ze(!0), nt = p, X = f, ce || a.body.body.length && We(a.body.body[0])) {
|
|
765
765
|
for (p = a.id ? -1 : 0; p < a.oa.length; ++p)
|
|
766
766
|
if (f = 0 > p ? a.id : a.oa[p], (wr(f.name) || At(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= p)
|
|
767
767
|
for (var P = 0; P < p; ++P)
|
|
768
768
|
f.name === a.oa[P].name && r(f.start, "Argument name clash in strict mode");
|
|
769
769
|
}
|
|
770
|
-
return
|
|
770
|
+
return R(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
771
771
|
}
|
|
772
772
|
function _t(a, l, p) {
|
|
773
|
-
for (var f = [], P = !0; !
|
|
773
|
+
for (var f = [], P = !0; !L(a); ) {
|
|
774
774
|
if (P)
|
|
775
775
|
P = !1;
|
|
776
|
-
else if (
|
|
776
|
+
else if (J($e), l && O.sb && L(a))
|
|
777
777
|
break;
|
|
778
|
-
f.push(p &&
|
|
778
|
+
f.push(p && $ === $e ? null : re(!0));
|
|
779
779
|
}
|
|
780
780
|
return f;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Se(a) {
|
|
783
783
|
var l = K();
|
|
784
|
-
return a && O.yb === "everywhere" && (a = !1),
|
|
784
|
+
return a && O.yb === "everywhere" && (a = !1), $ === Me ? (!a && (O.yb && zo(fe) || ce && wr(fe)) && k.slice(Y, Fe).indexOf("\\") === -1 && r(Y, "The keyword '" + fe + "' is reserved"), l.name = fe) : a && $.l ? l.name = $.l : be(), tt = !1, E(), R(l, "Identifier");
|
|
785
785
|
}
|
|
786
786
|
e.version = "0.5.0";
|
|
787
|
-
var O, k = "",
|
|
787
|
+
var O, k = "", Le, Jt;
|
|
788
788
|
e.parse = function(a, l) {
|
|
789
|
-
k = String(a),
|
|
789
|
+
k = String(a), Le = 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 =
|
|
793
|
-
p =
|
|
794
|
-
return
|
|
792
|
+
for (Jt = O.sourceFile, Ve = 1, d = ke = 0, tt = !0, c(), p = O.dc, Qt = xe = d, O.C && (Zt = new i()), nt = ce = !1, X = [], y(), a = p || K(), l = !0, p || (a.body = []); $ !== en; )
|
|
793
|
+
p = he(), a.body.push(p), l && We(p) && D(!0), l = !1;
|
|
794
|
+
return R(a, "Program");
|
|
795
795
|
};
|
|
796
796
|
var Xn = {
|
|
797
797
|
fc: !1,
|
|
@@ -804,13 +804,13 @@ var V, hi = function(e) {
|
|
|
804
804
|
dc: null,
|
|
805
805
|
sourceFile: null,
|
|
806
806
|
vb: null
|
|
807
|
-
}, d = 0,
|
|
807
|
+
}, d = 0, Y = 0, Fe = 0, Xt, Yt, $, fe, tt, Ve, ke, Qt = 0, xe = 0, Zt, nt, X, ce, Bo = [], rt = {
|
|
808
808
|
type: "num"
|
|
809
809
|
}, Yn = {
|
|
810
810
|
type: "regexp"
|
|
811
811
|
}, It = {
|
|
812
812
|
type: "string"
|
|
813
|
-
},
|
|
813
|
+
}, Me = {
|
|
814
814
|
type: "name"
|
|
815
815
|
}, en = {
|
|
816
816
|
type: "eof"
|
|
@@ -931,17 +931,17 @@ var V, hi = function(e) {
|
|
|
931
931
|
}, ot = {
|
|
932
932
|
type: "{",
|
|
933
933
|
m: !0
|
|
934
|
-
},
|
|
934
|
+
}, He = {
|
|
935
935
|
type: "}"
|
|
936
|
-
},
|
|
936
|
+
}, Ce = {
|
|
937
937
|
type: "(",
|
|
938
938
|
m: !0
|
|
939
|
-
},
|
|
939
|
+
}, ge = {
|
|
940
940
|
type: ")"
|
|
941
|
-
},
|
|
941
|
+
}, $e = {
|
|
942
942
|
type: ",",
|
|
943
943
|
m: !0
|
|
944
|
-
},
|
|
944
|
+
}, we = {
|
|
945
945
|
type: ";",
|
|
946
946
|
m: !0
|
|
947
947
|
}, it = {
|
|
@@ -983,10 +983,10 @@ var V, hi = function(e) {
|
|
|
983
983
|
}, Wo = {
|
|
984
984
|
L: 5,
|
|
985
985
|
m: !0
|
|
986
|
-
},
|
|
986
|
+
}, Lo = {
|
|
987
987
|
L: 6,
|
|
988
988
|
m: !0
|
|
989
|
-
},
|
|
989
|
+
}, Fo = {
|
|
990
990
|
L: 7,
|
|
991
991
|
m: !0
|
|
992
992
|
}, Mo = {
|
|
@@ -999,7 +999,7 @@ var V, hi = function(e) {
|
|
|
999
999
|
}, Ko = {
|
|
1000
1000
|
L: 10,
|
|
1001
1001
|
m: !0
|
|
1002
|
-
}, zo = o("class enum extends super const export import"), wr = o("implements interface let package private protected public static yield"), At = o("eval arguments"), qo = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Go = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,
|
|
1002
|
+
}, zo = o("class enum extends super const export import"), wr = o("implements interface let package private protected public static yield"), At = o("eval arguments"), qo = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Go = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Tr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), _o = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), xt = /[\n\r\u2028\u2029]/, $t = /\r\n|[\n\r\u2028\u2029]/g, Ke, cn = {
|
|
1003
1003
|
kind: "loop"
|
|
1004
1004
|
}, Jo = {
|
|
1005
1005
|
kind: "switch"
|
|
@@ -1024,7 +1024,7 @@ function g(e, t) {
|
|
|
1024
1024
|
this.N = Sn(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
1025
1025
|
`), "polyfills"), this.ba = void 0, Wt(this.ra), i = new T(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new T(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1026
1026
|
}
|
|
1027
|
-
var
|
|
1027
|
+
var Er = {
|
|
1028
1028
|
C: !0,
|
|
1029
1029
|
kc: 5
|
|
1030
1030
|
}, Rn = {
|
|
@@ -1053,9 +1053,9 @@ var Tr = {
|
|
|
1053
1053
|
SCOPE_REFERENCE: !0
|
|
1054
1054
|
}, yt = {
|
|
1055
1055
|
VALUE_IN_DESCRIPTOR: !0
|
|
1056
|
-
},
|
|
1056
|
+
}, qe = {
|
|
1057
1057
|
REGEXP_TIMEOUT: !0
|
|
1058
|
-
}, Rr = [],
|
|
1058
|
+
}, Rr = [], Ee = null, ft = null, Ne = typeof globalThis > "u" ? void 0 : globalThis, mi = ["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();", "};"];
|
|
1059
1059
|
function An(e) {
|
|
1060
1060
|
var t = e >>> 0;
|
|
1061
1061
|
return t === Number(e) ? t : NaN;
|
|
@@ -1082,8 +1082,8 @@ V.Kb = 0;
|
|
|
1082
1082
|
V.ic = 0;
|
|
1083
1083
|
function _e(e, t) {
|
|
1084
1084
|
var n = {}, r;
|
|
1085
|
-
for (r in
|
|
1086
|
-
n[r] =
|
|
1085
|
+
for (r in Er)
|
|
1086
|
+
n[r] = Er[r];
|
|
1087
1087
|
return n.sourceFile = t, Ne.j.parse(e, n);
|
|
1088
1088
|
}
|
|
1089
1089
|
V.Jb = function(e) {
|
|
@@ -1138,7 +1138,7 @@ V.Eb = function() {
|
|
|
1138
1138
|
return this.za;
|
|
1139
1139
|
};
|
|
1140
1140
|
function gi(e, t) {
|
|
1141
|
-
e.g(t, "NaN", NaN, at), e.g(t, "Infinity", 1 / 0, at), e.g(t, "undefined", void 0, at), e.g(t, "window", t, Rn), e.g(t, "this", t, at), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), yi(e, t), vi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, C), bi(e, t), Si(e, t), ki(e, t), Ci(e, t), wi(e, t),
|
|
1141
|
+
e.g(t, "NaN", NaN, at), e.g(t, "Infinity", 1 / 0, at), e.g(t, "undefined", void 0, at), e.g(t, "window", t, Rn), e.g(t, "this", t, at), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), yi(e, t), vi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, C), bi(e, t), Si(e, t), ki(e, t), Ci(e, t), wi(e, t), Ti(e, t), Ei(e, t), Ii(e, t), Ri(e, t);
|
|
1142
1142
|
var n = e.i(function() {
|
|
1143
1143
|
throw EvalError("Can't happen");
|
|
1144
1144
|
}, !1);
|
|
@@ -1149,7 +1149,7 @@ function gi(e, t) {
|
|
|
1149
1149
|
try {
|
|
1150
1150
|
return i(s);
|
|
1151
1151
|
} catch (u) {
|
|
1152
|
-
|
|
1152
|
+
I(e, e.Gb, u.message);
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
1155
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), C);
|
|
@@ -1158,9 +1158,9 @@ function gi(e, t) {
|
|
|
1158
1158
|
}, e.g(t, "setTimeout", e.i(n, !1), C), n = function(i) {
|
|
1159
1159
|
return Ar(e, !0, arguments);
|
|
1160
1160
|
}, e.g(t, "setInterval", e.i(n, !1), C), n = function(i) {
|
|
1161
|
-
|
|
1161
|
+
xr(e, i);
|
|
1162
1162
|
}, e.g(t, "clearTimeout", e.i(n, !1), C), n = function(i) {
|
|
1163
|
-
|
|
1163
|
+
xr(e, i);
|
|
1164
1164
|
}, e.g(t, "clearInterval", e.i(n, !1), C), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1165
1165
|
}
|
|
1166
1166
|
V.Wb = 0;
|
|
@@ -1171,83 +1171,83 @@ function yi(e, t) {
|
|
|
1171
1171
|
s = s.split(/\s*,\s*/);
|
|
1172
1172
|
for (var u = 0; u < s.length; u++) {
|
|
1173
1173
|
var c = s[u];
|
|
1174
|
-
n.test(c) ||
|
|
1174
|
+
n.test(c) || I(e, e.T, "Invalid function argument: " + c);
|
|
1175
1175
|
}
|
|
1176
1176
|
s = s.join(", ");
|
|
1177
1177
|
}
|
|
1178
1178
|
try {
|
|
1179
1179
|
var h = _e("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1180
|
-
} catch (
|
|
1181
|
-
|
|
1180
|
+
} catch (y) {
|
|
1181
|
+
I(e, e.T, "Invalid code: " + y.message);
|
|
1182
1182
|
}
|
|
1183
|
-
return h.body.length !== 1 &&
|
|
1183
|
+
return h.body.length !== 1 && I(e, e.T, "Invalid code in function body"), Pn(e, h.body[0].la, e.N, "anonymous");
|
|
1184
1184
|
};
|
|
1185
1185
|
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() {
|
|
1186
1186
|
}, 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) {
|
|
1187
1187
|
var s = e.o[e.o.length - 1];
|
|
1188
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = Xr(e, i) :
|
|
1189
|
-
},
|
|
1188
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = Xr(e, i) : I(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1189
|
+
}, Z(e, e.O, "apply", r), r = function(o) {
|
|
1190
1190
|
var i = e.o[e.o.length - 1];
|
|
1191
1191
|
i.U = this, i.B = o, i.F = [];
|
|
1192
1192
|
for (var s = 1; s < arguments.length; s++)
|
|
1193
1193
|
i.F.push(arguments[s]);
|
|
1194
1194
|
i.eb = !1;
|
|
1195
|
-
},
|
|
1195
|
+
}, Z(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1196
1196
|
return String(this);
|
|
1197
|
-
},
|
|
1197
|
+
}, Z(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), C), r = function() {
|
|
1198
1198
|
return this.valueOf();
|
|
1199
|
-
},
|
|
1199
|
+
}, Z(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), C);
|
|
1200
1200
|
}
|
|
1201
1201
|
function vi(e, t) {
|
|
1202
1202
|
function n(o) {
|
|
1203
|
-
o != null ||
|
|
1203
|
+
o != null || I(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1204
1204
|
}
|
|
1205
1205
|
var r = function(o) {
|
|
1206
1206
|
if (o == null)
|
|
1207
|
-
return
|
|
1207
|
+
return Re(e) ? this : e.s(e.M);
|
|
1208
1208
|
if (!(o instanceof N)) {
|
|
1209
|
-
var i = e.s(
|
|
1209
|
+
var i = e.s(Ie(e, o));
|
|
1210
1210
|
return i.data = o, i;
|
|
1211
1211
|
}
|
|
1212
1212
|
return o;
|
|
1213
1213
|
};
|
|
1214
1214
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, C), e.g(e.M, "constructor", e.v, C), e.g(t, "Object", e.v, C), r = function(o) {
|
|
1215
|
-
return n(o),
|
|
1215
|
+
return n(o), Te(e, Object.getOwnPropertyNames(o instanceof N ? o.h : o));
|
|
1216
1216
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), C), r = function(o) {
|
|
1217
|
-
return n(o), o instanceof N && (o = o.h),
|
|
1217
|
+
return n(o), o instanceof N && (o = o.h), Te(e, Object.keys(o));
|
|
1218
1218
|
}, e.g(e.v, "keys", e.i(r, !1), C), r = function(o) {
|
|
1219
|
-
return o === null ? e.s(null) : (o instanceof N ||
|
|
1219
|
+
return o === null ? e.s(null) : (o instanceof N || I(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1220
1220
|
}, e.g(e.v, "create", e.i(r, !1), C), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
1221
|
-
return i = String(i), o instanceof N ||
|
|
1221
|
+
return i = String(i), o instanceof N || I(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof N || I(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || I(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, yt, s.h), o;
|
|
1222
1222
|
}, e.g(e.v, "defineProperty", e.i(r, !1), C), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1223
|
-
if (o instanceof N ||
|
|
1223
|
+
if (o instanceof N || I(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1224
1224
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1225
1225
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1226
1226
|
}
|
|
1227
1227
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), C), r = function(o) {
|
|
1228
|
-
return n(o),
|
|
1228
|
+
return n(o), Ie(e, o);
|
|
1229
1229
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), C), r = function(o) {
|
|
1230
1230
|
return !!o && !o.preventExtensions;
|
|
1231
1231
|
}, e.g(e.v, "isExtensible", e.i(r, !1), C), r = function(o) {
|
|
1232
1232
|
return o instanceof N && (o.preventExtensions = !0), o;
|
|
1233
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), C),
|
|
1233
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), C), Z(e, e.v, "toString", N.prototype.toString), Z(e, e.v, "toLocaleString", N.prototype.toString), Z(e, e.v, "valueOf", N.prototype.valueOf), r = function(o) {
|
|
1234
1234
|
return n(this), this instanceof N ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1235
|
-
},
|
|
1235
|
+
}, Z(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1236
1236
|
return n(this), this instanceof N ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1237
|
-
},
|
|
1237
|
+
}, Z(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1238
1238
|
for (; ; ) {
|
|
1239
|
-
if (o =
|
|
1239
|
+
if (o = Ie(e, o), !o)
|
|
1240
1240
|
return !1;
|
|
1241
1241
|
if (o === this)
|
|
1242
1242
|
return !0;
|
|
1243
1243
|
}
|
|
1244
|
-
},
|
|
1244
|
+
}, Z(e, e.v, "isPrototypeOf", r);
|
|
1245
1245
|
}
|
|
1246
1246
|
function bi(e, t) {
|
|
1247
1247
|
var n = function(r) {
|
|
1248
|
-
var o =
|
|
1248
|
+
var o = Re(e) ? this : Je(e), i = arguments[0];
|
|
1249
1249
|
if (arguments.length === 1 && typeof i == "number")
|
|
1250
|
-
isNaN(An(i)) &&
|
|
1250
|
+
isNaN(An(i)) && I(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1251
1251
|
else {
|
|
1252
1252
|
for (i = 0; i < arguments.length; i++)
|
|
1253
1253
|
o.h[i] = arguments[i];
|
|
@@ -1265,59 +1265,59 @@ function bi(e, t) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
function Si(e, t) {
|
|
1267
1267
|
var n = function(r) {
|
|
1268
|
-
return r = arguments.length ? Ne.String(r) : "",
|
|
1268
|
+
return r = arguments.length ? Ne.String(r) : "", Re(e) ? (this.data = r, this) : r;
|
|
1269
1269
|
};
|
|
1270
1270
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, C), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), C), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1271
|
-
|
|
1271
|
+
Z(e, e.J, t[n], String.prototype[t[n]]);
|
|
1272
1272
|
n = function(r, o, i) {
|
|
1273
1273
|
o = e.R(o), i = e.R(i);
|
|
1274
1274
|
try {
|
|
1275
1275
|
return String(this).localeCompare(r, o, i);
|
|
1276
1276
|
} catch (s) {
|
|
1277
|
-
|
|
1277
|
+
I(e, e.D, "localeCompare: " + s.message);
|
|
1278
1278
|
}
|
|
1279
|
-
},
|
|
1279
|
+
}, Z(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1280
1280
|
var s = String(this);
|
|
1281
|
-
if (o = o ? Number(o) : void 0,
|
|
1282
|
-
if (
|
|
1281
|
+
if (o = o ? Number(o) : void 0, ne(e, r, e.I) && (r = r.data, ut(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1282
|
+
if (Ee)
|
|
1283
1283
|
r = lt(e, "string.split(separator, limit)", {
|
|
1284
1284
|
string: s,
|
|
1285
1285
|
separator: r,
|
|
1286
1286
|
limit: o
|
|
1287
|
-
}, r, i), r !==
|
|
1287
|
+
}, r, i), r !== qe && i(Te(e, r));
|
|
1288
1288
|
else {
|
|
1289
1289
|
var u = e.ha(), c = ct(e, r, u, i);
|
|
1290
1290
|
u.onmessage = function(h) {
|
|
1291
|
-
clearTimeout(c), i(
|
|
1291
|
+
clearTimeout(c), i(Te(e, h.data));
|
|
1292
1292
|
}, u.postMessage(["split", s, r, o]);
|
|
1293
1293
|
}
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
|
-
r = s.split(r, o), i(
|
|
1296
|
+
r = s.split(r, o), i(Te(e, r));
|
|
1297
1297
|
}, pt(e, e.J, "split", n), n = function(r, o) {
|
|
1298
1298
|
var i = String(this);
|
|
1299
|
-
if (r =
|
|
1300
|
-
if (
|
|
1299
|
+
if (r = ne(e, r, e.I) ? r.data : new RegExp(r), ut(e, r, o), e.REGEXP_MODE === 2)
|
|
1300
|
+
if (Ee)
|
|
1301
1301
|
r = lt(e, "string.match(regexp)", {
|
|
1302
1302
|
string: i,
|
|
1303
1303
|
regexp: r
|
|
1304
|
-
}, r, o), r !==
|
|
1304
|
+
}, r, o), r !== qe && o(r && Te(e, r));
|
|
1305
1305
|
else {
|
|
1306
1306
|
var s = e.ha(), u = ct(e, r, s, o);
|
|
1307
1307
|
s.onmessage = function(c) {
|
|
1308
|
-
clearTimeout(u), o(c.data &&
|
|
1308
|
+
clearTimeout(u), o(c.data && Te(e, c.data));
|
|
1309
1309
|
}, s.postMessage(["match", i, r]);
|
|
1310
1310
|
}
|
|
1311
1311
|
else
|
|
1312
|
-
r = i.match(r), o(r &&
|
|
1312
|
+
r = i.match(r), o(r && Te(e, r));
|
|
1313
1313
|
}, pt(e, e.J, "match", n), n = function(r, o) {
|
|
1314
1314
|
var i = String(this);
|
|
1315
|
-
if (
|
|
1316
|
-
if (
|
|
1315
|
+
if (ne(e, r, e.I) ? r = r.data : r = new RegExp(r), ut(e, r, o), e.REGEXP_MODE === 2)
|
|
1316
|
+
if (Ee)
|
|
1317
1317
|
r = lt(e, "string.search(regexp)", {
|
|
1318
1318
|
string: i,
|
|
1319
1319
|
regexp: r
|
|
1320
|
-
}, r, o), r !==
|
|
1320
|
+
}, r, o), r !== qe && o(r);
|
|
1321
1321
|
else {
|
|
1322
1322
|
var s = e.ha(), u = ct(e, r, s, o);
|
|
1323
1323
|
s.onmessage = function(c) {
|
|
@@ -1328,13 +1328,13 @@ function Si(e, t) {
|
|
|
1328
1328
|
o(i.search(r));
|
|
1329
1329
|
}, pt(e, e.J, "search", n), n = function(r, o, i) {
|
|
1330
1330
|
var s = String(this);
|
|
1331
|
-
if (o = String(o),
|
|
1332
|
-
if (
|
|
1331
|
+
if (o = String(o), ne(e, r, e.I) && (r = r.data, ut(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1332
|
+
if (Ee)
|
|
1333
1333
|
r = lt(e, "string.replace(substr, newSubstr)", {
|
|
1334
1334
|
string: s,
|
|
1335
1335
|
substr: r,
|
|
1336
1336
|
newSubstr: o
|
|
1337
|
-
}, r, i), r !==
|
|
1337
|
+
}, r, i), r !== qe && i(r);
|
|
1338
1338
|
else {
|
|
1339
1339
|
var u = e.ha(), c = ct(e, r, u, i);
|
|
1340
1340
|
u.onmessage = function(h) {
|
|
@@ -1348,12 +1348,12 @@ function Si(e, t) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
function ki(e, t) {
|
|
1350
1350
|
e.mb = e.i(function(n) {
|
|
1351
|
-
return n = Ne.Boolean(n),
|
|
1351
|
+
return n = Ne.Boolean(n), Re(e) ? (this.data = n, this) : n;
|
|
1352
1352
|
}, !0), e.g(t, "Boolean", e.mb, C);
|
|
1353
1353
|
}
|
|
1354
1354
|
function Ci(e, t) {
|
|
1355
1355
|
var n = function(r) {
|
|
1356
|
-
return r = arguments.length ? Ne.Number(r) : 0,
|
|
1356
|
+
return r = arguments.length ? Ne.Number(r) : 0, Re(e) ? (this.data = r, this) : r;
|
|
1357
1357
|
};
|
|
1358
1358
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, C), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1359
1359
|
e.g(e.aa, t[n], Number[t[n]], at);
|
|
@@ -1361,38 +1361,38 @@ function Ci(e, t) {
|
|
|
1361
1361
|
try {
|
|
1362
1362
|
return Number(this).toExponential(r);
|
|
1363
1363
|
} catch (o) {
|
|
1364
|
-
|
|
1364
|
+
I(e, e.D, o.message);
|
|
1365
1365
|
}
|
|
1366
|
-
},
|
|
1366
|
+
}, Z(e, e.aa, "toExponential", n), n = function(r) {
|
|
1367
1367
|
try {
|
|
1368
1368
|
return Number(this).toFixed(r);
|
|
1369
1369
|
} catch (o) {
|
|
1370
|
-
|
|
1370
|
+
I(e, e.D, o.message);
|
|
1371
1371
|
}
|
|
1372
|
-
},
|
|
1372
|
+
}, Z(e, e.aa, "toFixed", n), n = function(r) {
|
|
1373
1373
|
try {
|
|
1374
1374
|
return Number(this).toPrecision(r);
|
|
1375
1375
|
} catch (o) {
|
|
1376
|
-
|
|
1376
|
+
I(e, e.D, o.message);
|
|
1377
1377
|
}
|
|
1378
|
-
},
|
|
1378
|
+
}, Z(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1379
1379
|
try {
|
|
1380
1380
|
return Number(this).toString(r);
|
|
1381
1381
|
} catch (o) {
|
|
1382
|
-
|
|
1382
|
+
I(e, e.D, o.message);
|
|
1383
1383
|
}
|
|
1384
|
-
},
|
|
1384
|
+
}, Z(e, e.aa, "toString", n), n = function(r, o) {
|
|
1385
1385
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1386
1386
|
try {
|
|
1387
1387
|
return Number(this).toLocaleString(r, o);
|
|
1388
1388
|
} catch (i) {
|
|
1389
|
-
|
|
1389
|
+
I(e, e.D, "toLocaleString: " + i.message);
|
|
1390
1390
|
}
|
|
1391
|
-
},
|
|
1391
|
+
}, Z(e, e.aa, "toLocaleString", n);
|
|
1392
1392
|
}
|
|
1393
1393
|
function wi(e, t) {
|
|
1394
1394
|
var n = function(o, i) {
|
|
1395
|
-
if (
|
|
1395
|
+
if (!Re(e))
|
|
1396
1396
|
return Ne.Date();
|
|
1397
1397
|
var s = [null].concat(Array.from(arguments));
|
|
1398
1398
|
return this.data = new (Function.prototype.bind.apply(Ne.Date, s))(), this;
|
|
@@ -1402,65 +1402,65 @@ function wi(e, t) {
|
|
|
1402
1402
|
n = /* @__PURE__ */ function(o) {
|
|
1403
1403
|
return function(i) {
|
|
1404
1404
|
var s = this.data;
|
|
1405
|
-
s instanceof Date ||
|
|
1405
|
+
s instanceof Date || I(e, e.j, o + " not called on a Date");
|
|
1406
1406
|
for (var u = [], c = 0; c < arguments.length; c++)
|
|
1407
1407
|
u[c] = e.R(arguments[c]);
|
|
1408
1408
|
return s[o].apply(s, u);
|
|
1409
1409
|
};
|
|
1410
|
-
}(t[r]),
|
|
1410
|
+
}(t[r]), Z(e, e.$, t[r], n);
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Ti(e, t) {
|
|
1413
1413
|
var n = function(r, o) {
|
|
1414
|
-
if (
|
|
1414
|
+
if (Re(e))
|
|
1415
1415
|
var i = this;
|
|
1416
1416
|
else {
|
|
1417
|
-
if (o === void 0 &&
|
|
1417
|
+
if (o === void 0 && ne(e, r, e.I))
|
|
1418
1418
|
return r;
|
|
1419
1419
|
i = e.s(e.Ma);
|
|
1420
1420
|
}
|
|
1421
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1421
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || I(e, e.T, "Invalid regexp flag: " + o);
|
|
1422
1422
|
try {
|
|
1423
1423
|
var s = new Ne.RegExp(r, o);
|
|
1424
1424
|
} catch (u) {
|
|
1425
|
-
|
|
1425
|
+
I(e, e.T, u.message);
|
|
1426
1426
|
}
|
|
1427
|
-
return
|
|
1427
|
+
return xn(e, i, s), i;
|
|
1428
1428
|
};
|
|
1429
1429
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, C), e.g(e.I.h.prototype, "global", void 0, le), e.g(e.I.h.prototype, "ignoreCase", void 0, le), e.g(e.I.h.prototype, "multiline", void 0, le), e.g(e.I.h.prototype, "source", "(?:)", le), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1430
|
-
function i(
|
|
1431
|
-
if (
|
|
1432
|
-
var b =
|
|
1433
|
-
return e.g(b, "index",
|
|
1430
|
+
function i(y) {
|
|
1431
|
+
if (y) {
|
|
1432
|
+
var b = Te(e, y);
|
|
1433
|
+
return e.g(b, "index", y.index), e.g(b, "input", y.input), b;
|
|
1434
1434
|
}
|
|
1435
1435
|
return null;
|
|
1436
1436
|
}
|
|
1437
1437
|
var s = this.data;
|
|
1438
1438
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), ut(e, s, o), e.REGEXP_MODE === 2)
|
|
1439
|
-
if (
|
|
1439
|
+
if (Ee)
|
|
1440
1440
|
r = lt(e, "regexp.exec(string)", {
|
|
1441
1441
|
string: r,
|
|
1442
1442
|
regexp: s
|
|
1443
|
-
}, s, o), r !==
|
|
1443
|
+
}, s, o), r !== qe && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1444
1444
|
else {
|
|
1445
1445
|
var u = e.ha(), c = ct(e, s, u, o), h = this;
|
|
1446
|
-
u.onmessage = function(
|
|
1447
|
-
clearTimeout(c), e.g(h, "lastIndex",
|
|
1446
|
+
u.onmessage = function(y) {
|
|
1447
|
+
clearTimeout(c), e.g(h, "lastIndex", y.data[1]), o(i(y.data[0]));
|
|
1448
1448
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1449
1449
|
}
|
|
1450
1450
|
else
|
|
1451
1451
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1452
1452
|
}, pt(e, e.I, "exec", n);
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Ei(e, t) {
|
|
1455
1455
|
function n(r) {
|
|
1456
1456
|
var o = e.i(function(i) {
|
|
1457
|
-
var s =
|
|
1457
|
+
var s = Re(e) ? this : e.Aa(o);
|
|
1458
1458
|
return bn(e, s, i), s;
|
|
1459
1459
|
}, !0);
|
|
1460
1460
|
return e.g(o, "prototype", e.Aa(e.D), C), e.g(o.h.prototype, "name", r, C), e.g(t, r, o, C), o;
|
|
1461
1461
|
}
|
|
1462
1462
|
e.D = e.i(function(r) {
|
|
1463
|
-
var o =
|
|
1463
|
+
var o = Re(e) ? this : e.Aa(e.D);
|
|
1464
1464
|
return bn(e, o, r), o;
|
|
1465
1465
|
}, !0), e.g(t, "Error", e.D, C), e.g(e.D.h.prototype, "message", "", C), e.g(e.D.h.prototype, "name", "Error", C), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1466
1466
|
}
|
|
@@ -1479,34 +1479,34 @@ function Ri(e, t) {
|
|
|
1479
1479
|
try {
|
|
1480
1480
|
var o = JSON.parse(String(r));
|
|
1481
1481
|
} catch (i) {
|
|
1482
|
-
|
|
1482
|
+
I(e, e.T, i.message);
|
|
1483
1483
|
}
|
|
1484
1484
|
return e.Ia(o);
|
|
1485
1485
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1486
|
-
o && o.H === "Function" ?
|
|
1486
|
+
o && o.H === "Function" ? I(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Xr(e, o), o = o.filter(function(u) {
|
|
1487
1487
|
return typeof u == "string" || typeof u == "number";
|
|
1488
1488
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1489
1489
|
try {
|
|
1490
1490
|
var s = JSON.stringify(r, o, i);
|
|
1491
1491
|
} catch (u) {
|
|
1492
|
-
|
|
1492
|
+
I(e, e.j, u.message);
|
|
1493
1493
|
}
|
|
1494
1494
|
return s;
|
|
1495
1495
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function ne(e, t, n) {
|
|
1498
1498
|
if (t == null || !n)
|
|
1499
1499
|
return !1;
|
|
1500
1500
|
if (n = n.h.prototype, t === n)
|
|
1501
1501
|
return !0;
|
|
1502
|
-
for (t =
|
|
1502
|
+
for (t = Ie(e, t); t; ) {
|
|
1503
1503
|
if (t === n)
|
|
1504
1504
|
return !0;
|
|
1505
1505
|
t = t.xa;
|
|
1506
1506
|
}
|
|
1507
1507
|
return !1;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function xn(e, t, n) {
|
|
1510
1510
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, C), e.g(t, "source", n.source, le), e.g(t, "global", n.global, le), e.g(t, "ignoreCase", n.ignoreCase, le), e.g(t, "multiline", n.multiline, le);
|
|
1511
1511
|
}
|
|
1512
1512
|
function bn(e, t, n) {
|
|
@@ -1538,36 +1538,36 @@ function lt(e, t, n, r, o) {
|
|
|
1538
1538
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1539
1539
|
};
|
|
1540
1540
|
try {
|
|
1541
|
-
return
|
|
1541
|
+
return Ee.runInNewContext(t, n, i);
|
|
1542
1542
|
} catch {
|
|
1543
|
-
o(null),
|
|
1543
|
+
o(null), I(e, e.D, "RegExp Timeout: " + r);
|
|
1544
1544
|
}
|
|
1545
|
-
return
|
|
1545
|
+
return qe;
|
|
1546
1546
|
}
|
|
1547
1547
|
function ut(e, t, n) {
|
|
1548
1548
|
if (e.REGEXP_MODE === 0)
|
|
1549
1549
|
var r = !1;
|
|
1550
1550
|
else if (e.REGEXP_MODE === 1)
|
|
1551
1551
|
r = !0;
|
|
1552
|
-
else if (
|
|
1552
|
+
else if (Ee)
|
|
1553
1553
|
r = !0;
|
|
1554
1554
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1555
1555
|
r = !0;
|
|
1556
1556
|
else if (typeof require == "function") {
|
|
1557
1557
|
try {
|
|
1558
|
-
|
|
1558
|
+
Ee = require("vm");
|
|
1559
1559
|
} catch {
|
|
1560
1560
|
}
|
|
1561
|
-
r = !!
|
|
1561
|
+
r = !!Ee;
|
|
1562
1562
|
} else
|
|
1563
1563
|
r = !1;
|
|
1564
|
-
r || (n(null),
|
|
1564
|
+
r || (n(null), I(e, e.D, "Regular expressions not supported: " + t));
|
|
1565
1565
|
}
|
|
1566
1566
|
function ct(e, t, n, r) {
|
|
1567
1567
|
return setTimeout(function() {
|
|
1568
1568
|
n.terminate(), r(null);
|
|
1569
1569
|
try {
|
|
1570
|
-
|
|
1570
|
+
I(e, e.D, "RegExp Timeout: " + t);
|
|
1571
1571
|
} catch {
|
|
1572
1572
|
}
|
|
1573
1573
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1578,7 +1578,7 @@ V.Aa = function(e) {
|
|
|
1578
1578
|
V.s = function(e) {
|
|
1579
1579
|
if (typeof e != "object")
|
|
1580
1580
|
throw Error("Non object prototype");
|
|
1581
|
-
return e = new N(e),
|
|
1581
|
+
return e = new N(e), ne(this, e, this.D) && (e.H = "Error"), e;
|
|
1582
1582
|
};
|
|
1583
1583
|
function Je(e) {
|
|
1584
1584
|
var t = e.s(e.La);
|
|
@@ -1588,19 +1588,19 @@ function Je(e) {
|
|
|
1588
1588
|
writable: !0
|
|
1589
1589
|
}), t.H = "Array", t;
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function $n(e, t, n) {
|
|
1592
1592
|
var r = e.s(e.Z);
|
|
1593
1593
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, C), e.g(n, "constructor", r, C)) : r.Ab = !0, e.g(r, "length", t, le), r.H = "Function", r;
|
|
1594
1594
|
}
|
|
1595
1595
|
function Pn(e, t, n, r) {
|
|
1596
|
-
var o =
|
|
1596
|
+
var o = $n(e, t.oa.length, !0);
|
|
1597
1597
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", le), o;
|
|
1598
1598
|
}
|
|
1599
1599
|
V.i = function(e, t) {
|
|
1600
|
-
return t =
|
|
1600
|
+
return t = $n(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, le), t;
|
|
1601
1601
|
};
|
|
1602
1602
|
V.ub = function(e) {
|
|
1603
|
-
var t =
|
|
1603
|
+
var t = $n(this, e.length, !0);
|
|
1604
1604
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, le), t;
|
|
1605
1605
|
};
|
|
1606
1606
|
V.Ia = function(e) {
|
|
@@ -1610,7 +1610,7 @@ V.Ia = function(e) {
|
|
|
1610
1610
|
return e;
|
|
1611
1611
|
if (e instanceof RegExp) {
|
|
1612
1612
|
var t = this.s(this.Ma);
|
|
1613
|
-
return
|
|
1613
|
+
return xn(this, t, e), t;
|
|
1614
1614
|
}
|
|
1615
1615
|
if (e instanceof Date)
|
|
1616
1616
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1639,9 +1639,9 @@ V.R = function(e, t) {
|
|
|
1639
1639
|
return e;
|
|
1640
1640
|
if (!(e instanceof N))
|
|
1641
1641
|
throw Error("Object is not pseudo");
|
|
1642
|
-
if (
|
|
1642
|
+
if (ne(this, e, this.I))
|
|
1643
1643
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1644
|
-
if (
|
|
1644
|
+
if (ne(this, e, this.$))
|
|
1645
1645
|
return new Date(e.data.valueOf());
|
|
1646
1646
|
t = t || {
|
|
1647
1647
|
hb: [],
|
|
@@ -1650,10 +1650,10 @@ V.R = function(e, t) {
|
|
|
1650
1650
|
var n = t.hb.indexOf(e);
|
|
1651
1651
|
if (n !== -1)
|
|
1652
1652
|
return t.Sa[n];
|
|
1653
|
-
if (t.hb.push(e),
|
|
1653
|
+
if (t.hb.push(e), ne(this, e, this.qa)) {
|
|
1654
1654
|
n = [], t.Sa.push(n);
|
|
1655
1655
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1656
|
-
|
|
1656
|
+
Lt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1657
1657
|
} else
|
|
1658
1658
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1659
1659
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1664,7 +1664,7 @@ V.R = function(e, t) {
|
|
|
1664
1664
|
});
|
|
1665
1665
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1666
1666
|
};
|
|
1667
|
-
function
|
|
1667
|
+
function Te(e, t) {
|
|
1668
1668
|
for (var n = Je(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1669
1669
|
e.g(n, r[o], t[r[o]]);
|
|
1670
1670
|
return n;
|
|
@@ -1675,7 +1675,7 @@ function Xr(e, t) {
|
|
|
1675
1675
|
n[r] = e.G(t, r);
|
|
1676
1676
|
return n.length = An(e.G(t, "length")) || 0, n;
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function Ie(e, t) {
|
|
1679
1679
|
switch (typeof t) {
|
|
1680
1680
|
case "number":
|
|
1681
1681
|
return e.aa.h.prototype;
|
|
@@ -1689,12 +1689,12 @@ function Ae(e, t) {
|
|
|
1689
1689
|
V.G = function(e, t) {
|
|
1690
1690
|
if (this.P)
|
|
1691
1691
|
throw Error("Getter not supported in that context");
|
|
1692
|
-
if (t = String(t), e != null ||
|
|
1692
|
+
if (t = String(t), e != null || I(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1693
1693
|
throw TypeError("Expecting native value or pseudo object");
|
|
1694
1694
|
if (t === "length") {
|
|
1695
|
-
if (
|
|
1695
|
+
if (ne(this, e, this.J))
|
|
1696
1696
|
return String(e).length;
|
|
1697
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1697
|
+
} else if (64 > t.charCodeAt(0) && ne(this, e, this.J)) {
|
|
1698
1698
|
var n = ht(t);
|
|
1699
1699
|
if (!isNaN(n) && n < String(e).length)
|
|
1700
1700
|
return String(e)[n];
|
|
@@ -1702,14 +1702,14 @@ V.G = function(e, t) {
|
|
|
1702
1702
|
do
|
|
1703
1703
|
if (e.h && t in e.h)
|
|
1704
1704
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1705
|
-
while (e =
|
|
1705
|
+
while (e = Ie(this, e));
|
|
1706
1706
|
};
|
|
1707
|
-
function
|
|
1707
|
+
function Lt(e, t, n) {
|
|
1708
1708
|
if (!(t instanceof N))
|
|
1709
1709
|
throw TypeError("Primitive data type has no properties");
|
|
1710
|
-
if (n = String(n), n === "length" &&
|
|
1710
|
+
if (n = String(n), n === "length" && ne(e, t, e.J))
|
|
1711
1711
|
return !0;
|
|
1712
|
-
if (
|
|
1712
|
+
if (ne(e, t, e.J)) {
|
|
1713
1713
|
var r = ht(n);
|
|
1714
1714
|
if (!isNaN(r) && r < String(t).length)
|
|
1715
1715
|
return !0;
|
|
@@ -1717,21 +1717,21 @@ function Ft(e, t, n) {
|
|
|
1717
1717
|
do
|
|
1718
1718
|
if (t.h && n in t.h)
|
|
1719
1719
|
return !0;
|
|
1720
|
-
while (t =
|
|
1720
|
+
while (t = Ie(e, t));
|
|
1721
1721
|
return !1;
|
|
1722
1722
|
}
|
|
1723
1723
|
V.g = function(e, t, n, r) {
|
|
1724
1724
|
if (this.Ka)
|
|
1725
1725
|
throw Error("Setter not supported in that context");
|
|
1726
|
-
if (t = String(t), e != null ||
|
|
1726
|
+
if (t = String(t), e != null || I(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1727
1727
|
throw TypeError("Expecting native value or pseudo object");
|
|
1728
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1728
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && I(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1729
1729
|
var o = !this.o || On(this).S;
|
|
1730
1730
|
if (e instanceof N) {
|
|
1731
|
-
if (
|
|
1731
|
+
if (ne(this, e, this.J)) {
|
|
1732
1732
|
var i = ht(t);
|
|
1733
1733
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1734
|
-
o &&
|
|
1734
|
+
o && I(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1735
1735
|
return;
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
@@ -1742,7 +1742,7 @@ V.g = function(e, t, n, r) {
|
|
|
1742
1742
|
return;
|
|
1743
1743
|
n = r.value;
|
|
1744
1744
|
}
|
|
1745
|
-
if (n = An(n), isNaN(n) &&
|
|
1745
|
+
if (n = An(n), isNaN(n) && I(this, this.ob, "Invalid array length"), n < i)
|
|
1746
1746
|
for (s in e.h) {
|
|
1747
1747
|
var s = ht(s);
|
|
1748
1748
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1755,32 +1755,32 @@ V.g = function(e, t, n, r) {
|
|
|
1755
1755
|
try {
|
|
1756
1756
|
Object.defineProperty(e.h, t, o);
|
|
1757
1757
|
} catch {
|
|
1758
|
-
|
|
1758
|
+
I(this, this.j, "Cannot redefine property: " + t);
|
|
1759
1759
|
}
|
|
1760
1760
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1761
1761
|
} else {
|
|
1762
1762
|
if (n === yt)
|
|
1763
1763
|
throw ReferenceError("Value not specified");
|
|
1764
1764
|
for (r = e; !(t in r.h); )
|
|
1765
|
-
if (r =
|
|
1765
|
+
if (r = Ie(this, r), !r) {
|
|
1766
1766
|
r = e;
|
|
1767
1767
|
break;
|
|
1768
1768
|
}
|
|
1769
1769
|
if (r.Y && r.Y[t])
|
|
1770
1770
|
return this.Ka = !0, r.Y[t];
|
|
1771
1771
|
if (r.V && r.V[t])
|
|
1772
|
-
o &&
|
|
1772
|
+
o && I(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1773
1773
|
else
|
|
1774
1774
|
try {
|
|
1775
1775
|
e.h[t] = n;
|
|
1776
1776
|
} catch {
|
|
1777
|
-
o &&
|
|
1777
|
+
o && I(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
else
|
|
1781
|
-
o &&
|
|
1781
|
+
o && I(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1782
1782
|
} else
|
|
1783
|
-
o &&
|
|
1783
|
+
o && I(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1784
1784
|
};
|
|
1785
1785
|
V.g.ac = function() {
|
|
1786
1786
|
throw Error("Placeholder getter");
|
|
@@ -1788,7 +1788,7 @@ V.g.ac = function() {
|
|
|
1788
1788
|
V.g.bc = function() {
|
|
1789
1789
|
throw Error("Placeholder setter");
|
|
1790
1790
|
};
|
|
1791
|
-
function
|
|
1791
|
+
function Z(e, t, n, r) {
|
|
1792
1792
|
e.g(t.h.prototype, n, e.i(r, !1), C);
|
|
1793
1793
|
}
|
|
1794
1794
|
function pt(e, t, n, r) {
|
|
@@ -1820,9 +1820,9 @@ function Bn(e, t) {
|
|
|
1820
1820
|
return n.object.h[t];
|
|
1821
1821
|
n = n.Va;
|
|
1822
1822
|
}
|
|
1823
|
-
if (n === e.N &&
|
|
1823
|
+
if (n === e.N && Lt(e, n.object, t))
|
|
1824
1824
|
return e.G(n.object, t);
|
|
1825
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1825
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || I(e, e.pb, t + " is not defined");
|
|
1826
1826
|
}
|
|
1827
1827
|
function Yr(e, t, n) {
|
|
1828
1828
|
for (var r = On(e), o = r.S; r && r !== e.N; ) {
|
|
@@ -1830,15 +1830,15 @@ function Yr(e, t, n) {
|
|
|
1830
1830
|
try {
|
|
1831
1831
|
r.object.h[t] = n;
|
|
1832
1832
|
} catch {
|
|
1833
|
-
o &&
|
|
1833
|
+
o && I(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1834
1834
|
}
|
|
1835
1835
|
return;
|
|
1836
1836
|
}
|
|
1837
1837
|
r = r.Va;
|
|
1838
1838
|
}
|
|
1839
|
-
if (r === e.N && (!o ||
|
|
1839
|
+
if (r === e.N && (!o || Lt(e, r.object, t)))
|
|
1840
1840
|
return e.g(r.object, t, n);
|
|
1841
|
-
|
|
1841
|
+
I(e, e.pb, t + " is not defined");
|
|
1842
1842
|
}
|
|
1843
1843
|
function vt(e, t, n) {
|
|
1844
1844
|
if (t.jb)
|
|
@@ -1889,7 +1889,7 @@ function vt(e, t, n) {
|
|
|
1889
1889
|
r[s] === !0 ? e.g(n.object, s, void 0, Ir) : e.g(n.object, s, Pn(e, r[s], n), Ir);
|
|
1890
1890
|
return r;
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function Re(e) {
|
|
1893
1893
|
return e.o[e.o.length - 1].isConstructor;
|
|
1894
1894
|
}
|
|
1895
1895
|
function jn(e, t) {
|
|
@@ -1898,7 +1898,7 @@ function jn(e, t) {
|
|
|
1898
1898
|
function Vn(e, t, n) {
|
|
1899
1899
|
return t[0] === Ye ? Yr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function I(e, t, n) {
|
|
1902
1902
|
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), bn(e, t, n)), bt(e, 4, t), Jr) : n === void 0 ? t : n;
|
|
1903
1903
|
}
|
|
1904
1904
|
function bt(e, t, n, r) {
|
|
@@ -1937,7 +1937,7 @@ function bt(e, t, n, r) {
|
|
|
1937
1937
|
} else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
|
|
1938
1938
|
return;
|
|
1939
1939
|
}
|
|
1940
|
-
throw
|
|
1940
|
+
throw ne(e, n, e.D) ? (t = {
|
|
1941
1941
|
EvalError,
|
|
1942
1942
|
RangeError,
|
|
1943
1943
|
ReferenceError,
|
|
@@ -1988,7 +1988,7 @@ function Ar(e, t, n) {
|
|
|
1988
1988
|
try {
|
|
1989
1989
|
var c = _e(String(i), "taskCode" + e.ic++);
|
|
1990
1990
|
} catch (h) {
|
|
1991
|
-
|
|
1991
|
+
I(e, e.T, "Invalid code: " + h.message);
|
|
1992
1992
|
}
|
|
1993
1993
|
s.type = "EvalProgram_", s.body = c.body, r = r.node.arguments[0], Wt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1994
1994
|
}
|
|
@@ -1999,7 +1999,7 @@ function Qr(e, t, n) {
|
|
|
1999
1999
|
return r.time - o.time;
|
|
2000
2000
|
});
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2002
|
+
function xr(e, t) {
|
|
2003
2003
|
for (var n = 0; n < e.ca.length; n++)
|
|
2004
2004
|
if (e.ca[n].Db == t) {
|
|
2005
2005
|
e.ca.splice(n, 1);
|
|
@@ -2021,7 +2021,7 @@ function Dn(e, t, n, r) {
|
|
|
2021
2021
|
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;
|
|
2022
2022
|
}
|
|
2023
2023
|
function dn(e, t) {
|
|
2024
|
-
return t == null ? e.Na : t instanceof N ? t : (e = e.s(
|
|
2024
|
+
return t == null ? e.Na : t instanceof N ? t : (e = e.s(Ie(e, t)), e.data = t, e);
|
|
2025
2025
|
}
|
|
2026
2026
|
V.Xb = function() {
|
|
2027
2027
|
return this.N;
|
|
@@ -2097,9 +2097,9 @@ V.valueOf = function() {
|
|
|
2097
2097
|
return !ft || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2098
2098
|
};
|
|
2099
2099
|
function Ai(e, t, n, r, o) {
|
|
2100
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db =
|
|
2100
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++xi, this.time = 0;
|
|
2101
2101
|
}
|
|
2102
|
-
var
|
|
2102
|
+
var xi = 0;
|
|
2103
2103
|
g.prototype.stepArrayExpression = function(e, t, n) {
|
|
2104
2104
|
n = n.elements;
|
|
2105
2105
|
var r = t.A || 0;
|
|
@@ -2230,10 +2230,10 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2230
2230
|
n = r >>> t;
|
|
2231
2231
|
break;
|
|
2232
2232
|
case "in":
|
|
2233
|
-
t instanceof N ||
|
|
2233
|
+
t instanceof N || I(this, this.j, "'in' expects an object, not '" + t + "'"), n = Lt(this, t, r);
|
|
2234
2234
|
break;
|
|
2235
2235
|
case "instanceof":
|
|
2236
|
-
|
|
2236
|
+
ne(this, t, this.O) || I(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof N ? ne(this, r, t) : !1;
|
|
2237
2237
|
break;
|
|
2238
2238
|
default:
|
|
2239
2239
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2270,7 +2270,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2270
2270
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2271
2271
|
return new T(n.arguments[t.A++], t.scope);
|
|
2272
2272
|
if (n.type === "NewExpression") {
|
|
2273
|
-
if (o instanceof N && !o.Ab ||
|
|
2273
|
+
if (o instanceof N && !o.Ab || I(this, this.j, ae(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2274
2274
|
t.B = Je(this);
|
|
2275
2275
|
else {
|
|
2276
2276
|
var i = o.h.prototype;
|
|
@@ -2283,7 +2283,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2283
2283
|
if (t.eb)
|
|
2284
2284
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2285
2285
|
else {
|
|
2286
|
-
if (t.eb = !0, o instanceof N ||
|
|
2286
|
+
if (t.eb = !0, o instanceof N || I(this, this.j, ae(this, n.callee) + " is not a function"), e = o.node) {
|
|
2287
2287
|
for (n = Sn(this, e.body, o.Va), r = Je(this), o = 0; o < t.F.length; o++)
|
|
2288
2288
|
this.g(r, o, t.F[o]);
|
|
2289
2289
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
@@ -2297,7 +2297,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2297
2297
|
try {
|
|
2298
2298
|
r = _e(String(o), "eval" + this.Hb++);
|
|
2299
2299
|
} catch (u) {
|
|
2300
|
-
|
|
2300
|
+
I(this, this.T, "Invalid code: " + u.message);
|
|
2301
2301
|
}
|
|
2302
2302
|
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Wt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Sn(this, r, n) : vt(this, r, n), this.value = void 0, new T(o, n);
|
|
2303
2303
|
}
|
|
@@ -2309,7 +2309,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2309
2309
|
t.value = u, s.za = !1;
|
|
2310
2310
|
}), this.za = !0, t.scope.S || (t.B = dn(this, t.B)), o.Za.apply(t.B, r);
|
|
2311
2311
|
} else
|
|
2312
|
-
|
|
2312
|
+
I(this, this.j, ae(this, n.callee) + " is not callable");
|
|
2313
2313
|
}
|
|
2314
2314
|
};
|
|
2315
2315
|
g.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2355,7 +2355,7 @@ g.prototype.stepExpressionStatement = function(e, t, n) {
|
|
|
2355
2355
|
};
|
|
2356
2356
|
g.prototype.stepForInStatement = function(e, t, n) {
|
|
2357
2357
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2358
|
-
return t.scope.S &&
|
|
2358
|
+
return t.scope.S && I(this, this.T, "for-in loop variable declaration may not have an initializer"), new T(n.left, t.scope);
|
|
2359
2359
|
if (!t.Ca)
|
|
2360
2360
|
return t.Ca = !0, t.pa || (t.pa = t.value), new T(n.right, t.scope);
|
|
2361
2361
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
@@ -2378,7 +2378,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2378
2378
|
break e;
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
|
-
if (t.u =
|
|
2381
|
+
if (t.u = Ie(this, t.u), t.wa = null, t.u === null) {
|
|
2382
2382
|
e.pop();
|
|
2383
2383
|
return;
|
|
2384
2384
|
}
|
|
@@ -2434,7 +2434,7 @@ g.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2434
2434
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new T(n.body, t.scope), t.labels = e, t;
|
|
2435
2435
|
};
|
|
2436
2436
|
g.prototype.stepLiteral = function(e, t, n) {
|
|
2437
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2437
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), xn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2438
2438
|
};
|
|
2439
2439
|
g.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2440
2440
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2541,7 +2541,7 @@ g.prototype.stepThisExpression = function(e) {
|
|
|
2541
2541
|
};
|
|
2542
2542
|
g.prototype.stepThrowStatement = function(e, t, n) {
|
|
2543
2543
|
if (t.ka)
|
|
2544
|
-
|
|
2544
|
+
I(this, t.value);
|
|
2545
2545
|
else
|
|
2546
2546
|
return t.ka = !0, new T(n.K, t.scope);
|
|
2547
2547
|
};
|
|
@@ -2579,7 +2579,7 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2579
2579
|
try {
|
|
2580
2580
|
delete o.h[r];
|
|
2581
2581
|
} catch {
|
|
2582
|
-
t.scope.S ?
|
|
2582
|
+
t.scope.S ? I(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2583
2583
|
}
|
|
2584
2584
|
}
|
|
2585
2585
|
r = n;
|
|
@@ -2647,7 +2647,7 @@ g.prototype.getGlobalScope = g.prototype.Xb;
|
|
|
2647
2647
|
g.prototype.getStateStack = g.prototype.Yb;
|
|
2648
2648
|
g.prototype.setStateStack = g.prototype.ec;
|
|
2649
2649
|
g.VALUE_IN_DESCRIPTOR = yt;
|
|
2650
|
-
function
|
|
2650
|
+
function $i() {
|
|
2651
2651
|
const e = g.prototype.getProperty, t = g.prototype.setProperty;
|
|
2652
2652
|
function n(s, u) {
|
|
2653
2653
|
if (s == null || !s._connected)
|
|
@@ -2672,11 +2672,11 @@ function xi() {
|
|
|
2672
2672
|
return u._connected = s, u;
|
|
2673
2673
|
};
|
|
2674
2674
|
}
|
|
2675
|
-
|
|
2675
|
+
$i();
|
|
2676
2676
|
const Pi = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2677
2677
|
var __awaiter = function (e, t, n, r) {return r()},
|
|
2678
2678
|
__generator = function (e, t) { return t() };
|
|
2679
|
-
function main()`).replace(/\?\./g, "."),
|
|
2679
|
+
function main()`).replace(/\?\./g, "."), $r = (e) => e + "JSON", Oi = ({
|
|
2680
2680
|
builder: e,
|
|
2681
2681
|
context: t,
|
|
2682
2682
|
event: n,
|
|
@@ -2694,27 +2694,27 @@ function main()`).replace(/\?\./g, "."), xr = (e) => e + "JSON", Oi = ({
|
|
|
2694
2694
|
context: t,
|
|
2695
2695
|
event: n,
|
|
2696
2696
|
state: u
|
|
2697
|
-
}), h = c.map(([
|
|
2698
|
-
const H =
|
|
2699
|
-
return
|
|
2697
|
+
}), h = c.map(([x]) => {
|
|
2698
|
+
const H = $r(x);
|
|
2699
|
+
return x === "state" ? "" : `var ${x} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2700
2700
|
}).join(`
|
|
2701
|
-
`),
|
|
2702
|
-
if (
|
|
2701
|
+
`), y = Pi(s);
|
|
2702
|
+
if (y === "")
|
|
2703
2703
|
return;
|
|
2704
2704
|
const b = `
|
|
2705
2705
|
function theFunction() {
|
|
2706
2706
|
${h}
|
|
2707
2707
|
|
|
2708
|
-
${
|
|
2708
|
+
${y}
|
|
2709
2709
|
}
|
|
2710
2710
|
theFunction();
|
|
2711
|
-
`, m = function(
|
|
2712
|
-
c.forEach(([
|
|
2713
|
-
if (
|
|
2714
|
-
|
|
2711
|
+
`, m = function(x, H) {
|
|
2712
|
+
c.forEach(([te, E]) => {
|
|
2713
|
+
if (te === "state")
|
|
2714
|
+
x.setProperty(H, te, x.createConnectedObject(E), x.READONLY_DESCRIPTOR);
|
|
2715
2715
|
else {
|
|
2716
|
-
const D = JSON.stringify(
|
|
2717
|
-
|
|
2716
|
+
const D = JSON.stringify(E);
|
|
2717
|
+
x.setProperty(H, $r(te), D);
|
|
2718
2718
|
}
|
|
2719
2719
|
});
|
|
2720
2720
|
}, S = new g(b, m);
|
|
@@ -2780,10 +2780,10 @@ function Wi(e, t) {
|
|
|
2780
2780
|
return {
|
|
2781
2781
|
...(n = e.component) == null ? void 0 : n.options,
|
|
2782
2782
|
...e.options,
|
|
2783
|
-
...
|
|
2783
|
+
...Li(e, t)
|
|
2784
2784
|
};
|
|
2785
2785
|
}
|
|
2786
|
-
const
|
|
2786
|
+
const Li = (e, t) => {
|
|
2787
2787
|
var n, r;
|
|
2788
2788
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((r = e.component.options) != null && r.text) && typeof e.component.options.text == "string")
|
|
2789
2789
|
return {
|
|
@@ -2797,7 +2797,7 @@ const Fi = (e, t) => {
|
|
|
2797
2797
|
}))
|
|
2798
2798
|
};
|
|
2799
2799
|
};
|
|
2800
|
-
function
|
|
2800
|
+
function Fi(e, ...t) {
|
|
2801
2801
|
const n = Object.assign({}, e);
|
|
2802
2802
|
for (const r of t)
|
|
2803
2803
|
delete n[r];
|
|
@@ -2874,7 +2874,7 @@ const zi = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), qi = (e) =
|
|
|
2874
2874
|
}
|
|
2875
2875
|
};
|
|
2876
2876
|
} else {
|
|
2877
|
-
const t = kn(
|
|
2877
|
+
const t = kn(Fi(e, "children", "meta"));
|
|
2878
2878
|
return {
|
|
2879
2879
|
...t,
|
|
2880
2880
|
properties: {
|
|
@@ -2994,7 +2994,7 @@ const Nr = "builder.", Yi = "options.", no = (e) => {
|
|
|
2994
2994
|
return {};
|
|
2995
2995
|
const e = new URLSearchParams(window.location.search);
|
|
2996
2996
|
return no(e);
|
|
2997
|
-
}, ro = "4.2.
|
|
2997
|
+
}, ro = "4.2.3", oo = () => ({
|
|
2998
2998
|
"X-Builder-SDK": G,
|
|
2999
2999
|
"X-Builder-SDK-GEN": "2",
|
|
3000
3000
|
"X-Builder-SDK-Version": ro
|
|
@@ -3003,7 +3003,7 @@ const Nr = "builder.", Yi = "options.", no = (e) => {
|
|
|
3003
3003
|
return e;
|
|
3004
3004
|
const t = e.split(".");
|
|
3005
3005
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3006
|
-
},
|
|
3006
|
+
}, Ft = ({
|
|
3007
3007
|
name: e,
|
|
3008
3008
|
canTrack: t
|
|
3009
3009
|
}) => {
|
|
@@ -3014,14 +3014,14 @@ const Nr = "builder.", Yi = "options.", no = (e) => {
|
|
|
3014
3014
|
ue.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3015
3015
|
return;
|
|
3016
3016
|
}
|
|
3017
|
-
}, io = async (e) =>
|
|
3017
|
+
}, io = async (e) => Ft(e), es = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Be).join("; "), ts = [["secure", ""], ["SameSite", "None"]], ns = ({
|
|
3018
3018
|
name: e,
|
|
3019
3019
|
value: t,
|
|
3020
3020
|
expires: n
|
|
3021
3021
|
}) => {
|
|
3022
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];
|
|
3023
3023
|
return es(s);
|
|
3024
|
-
},
|
|
3024
|
+
}, Ln = async ({
|
|
3025
3025
|
name: e,
|
|
3026
3026
|
value: t,
|
|
3027
3027
|
expires: n,
|
|
@@ -3070,7 +3070,7 @@ const ao = "builderSessionId", os = async ({
|
|
|
3070
3070
|
}, is = () => so(), ss = ({
|
|
3071
3071
|
id: e,
|
|
3072
3072
|
canTrack: t
|
|
3073
|
-
}) =>
|
|
3073
|
+
}) => Ln({
|
|
3074
3074
|
name: ao,
|
|
3075
3075
|
value: e,
|
|
3076
3076
|
canTrack: t
|
|
@@ -3122,7 +3122,7 @@ const ao = "builderSessionId", os = async ({
|
|
|
3122
3122
|
value: e,
|
|
3123
3123
|
canTrack: t
|
|
3124
3124
|
});
|
|
3125
|
-
function
|
|
3125
|
+
function Fn(e) {
|
|
3126
3126
|
var t;
|
|
3127
3127
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && ue.log(e);
|
|
3128
3128
|
}
|
|
@@ -3172,10 +3172,10 @@ async function Cn({
|
|
|
3172
3172
|
ue.error("Missing API key for track call. Please provide your API key.");
|
|
3173
3173
|
return;
|
|
3174
3174
|
}
|
|
3175
|
-
if (!t.canTrack ||
|
|
3175
|
+
if (!t.canTrack || oe() || !(M() || G === "reactNative"))
|
|
3176
3176
|
return;
|
|
3177
3177
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
3178
|
-
return
|
|
3178
|
+
return Fn(r), fetch(r, {
|
|
3179
3179
|
method: "POST",
|
|
3180
3180
|
body: JSON.stringify({
|
|
3181
3181
|
events: [await fs(t)]
|
|
@@ -3232,10 +3232,10 @@ const po = (e) => {
|
|
|
3232
3232
|
if (o != null && o.type)
|
|
3233
3233
|
switch (o.type) {
|
|
3234
3234
|
case "builder.evaluate": {
|
|
3235
|
-
const u = o.data.text, c = o.data.arguments || [], h = o.data.id,
|
|
3235
|
+
const u = o.data.text, c = o.data.arguments || [], h = o.data.id, y = new Function(u);
|
|
3236
3236
|
let b, m = null;
|
|
3237
3237
|
try {
|
|
3238
|
-
b =
|
|
3238
|
+
b = y.apply(null, c);
|
|
3239
3239
|
} catch (S) {
|
|
3240
3240
|
m = S;
|
|
3241
3241
|
}
|
|
@@ -3286,13 +3286,13 @@ const po = (e) => {
|
|
|
3286
3286
|
break;
|
|
3287
3287
|
}
|
|
3288
3288
|
case "builder.resetState": {
|
|
3289
|
-
const i = o.data, s = i.model, u = i == null ? void 0 : i.state;
|
|
3290
|
-
s === e && u && n.stateUpdate(u);
|
|
3289
|
+
const i = o.data, s = i.model, u = i == null ? void 0 : i.state, c = i.editType;
|
|
3290
|
+
s === e && u && n.stateUpdate(u, c);
|
|
3291
3291
|
break;
|
|
3292
3292
|
}
|
|
3293
3293
|
case "builder.contentUpdate": {
|
|
3294
|
-
const i = o.data, s = i.key || i.alias || i.entry || i.modelName, u = i.data;
|
|
3295
|
-
s === e && n.contentUpdate(u);
|
|
3294
|
+
const i = o.data, s = i.key || i.alias || i.entry || i.modelName, u = i.data, c = i.editType;
|
|
3295
|
+
s === e && n.contentUpdate(u, c);
|
|
3296
3296
|
break;
|
|
3297
3297
|
}
|
|
3298
3298
|
}
|
|
@@ -3332,13 +3332,13 @@ const po = (e) => {
|
|
|
3332
3332
|
canTrack: !0
|
|
3333
3333
|
}), ys = ({
|
|
3334
3334
|
contentId: e
|
|
3335
|
-
}) =>
|
|
3335
|
+
}) => Ft({
|
|
3336
3336
|
name: Mn(e),
|
|
3337
3337
|
canTrack: !0
|
|
3338
3338
|
}), vs = ({
|
|
3339
3339
|
contentId: e,
|
|
3340
3340
|
value: t
|
|
3341
|
-
}) =>
|
|
3341
|
+
}) => Ln({
|
|
3342
3342
|
name: Mn(e),
|
|
3343
3343
|
value: t,
|
|
3344
3344
|
canTrack: !0
|
|
@@ -3432,14 +3432,14 @@ function Vr() {
|
|
|
3432
3432
|
...this.getUserAttributes(),
|
|
3433
3433
|
...n
|
|
3434
3434
|
};
|
|
3435
|
-
|
|
3435
|
+
Ln({
|
|
3436
3436
|
name: jr,
|
|
3437
3437
|
value: JSON.stringify(r),
|
|
3438
3438
|
canTrack: e
|
|
3439
3439
|
}), t.forEach((o) => o(r));
|
|
3440
3440
|
},
|
|
3441
3441
|
getUserAttributes() {
|
|
3442
|
-
return M() ? JSON.parse(
|
|
3442
|
+
return M() ? JSON.parse(Ft({
|
|
3443
3443
|
name: jr,
|
|
3444
3444
|
canTrack: e
|
|
3445
3445
|
}) || "{}") : {};
|
|
@@ -3474,13 +3474,13 @@ function ws() {
|
|
|
3474
3474
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
3475
3475
|
return e;
|
|
3476
3476
|
}
|
|
3477
|
-
const
|
|
3478
|
-
function
|
|
3477
|
+
const Ts = ws();
|
|
3478
|
+
function Tn(e, t = null, n = ".") {
|
|
3479
3479
|
return Object.keys(e).reduce((r, o) => {
|
|
3480
3480
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
3481
3481
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
3482
3482
|
...r,
|
|
3483
|
-
...
|
|
3483
|
+
...Tn(i, s, n)
|
|
3484
3484
|
} : {
|
|
3485
3485
|
...r,
|
|
3486
3486
|
[s]: i
|
|
@@ -3494,7 +3494,7 @@ function yo(e, t, n = {}) {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
return n;
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function Es(e) {
|
|
3498
3498
|
const t = {};
|
|
3499
3499
|
for (const n in e) {
|
|
3500
3500
|
const r = n.split(".");
|
|
@@ -3517,49 +3517,45 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3517
3517
|
locale: u,
|
|
3518
3518
|
apiVersion: c = Is,
|
|
3519
3519
|
fields: h,
|
|
3520
|
-
omit:
|
|
3520
|
+
omit: y,
|
|
3521
3521
|
offset: b,
|
|
3522
3522
|
cacheSeconds: m,
|
|
3523
3523
|
staleCacheSeconds: S,
|
|
3524
3524
|
sort: A,
|
|
3525
|
-
includeUnpublished:
|
|
3525
|
+
includeUnpublished: x,
|
|
3526
3526
|
apiHost: H
|
|
3527
3527
|
} = e;
|
|
3528
3528
|
if (!i)
|
|
3529
3529
|
throw new Error("Missing API key");
|
|
3530
3530
|
if (!["v3"].includes(c))
|
|
3531
3531
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);
|
|
3532
|
-
const
|
|
3533
|
-
D.searchParams.set("apiKey", i), D.searchParams.set("limit", String(t)), D.searchParams.set("noTraverse", String(
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
locale: oe,
|
|
3538
|
-
...de
|
|
3539
|
-
}), s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", v ?? "meta.componentsUsed"), h && D.searchParams.set("fields", h), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof $ == "boolean" && D.searchParams.set("includeUnpublished", String($)), m && Dr(m) && D.searchParams.set("cacheSeconds", String(m)), S && Dr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3540
|
-
const w = En({
|
|
3532
|
+
const te = t !== 1, E = H || "https://cdn.builder.io", D = new URL(`${E}/api/${c}/content/${o}`);
|
|
3533
|
+
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);
|
|
3534
|
+
let ie = n || {};
|
|
3535
|
+
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"), h && D.searchParams.set("fields", h), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof x == "boolean" && D.searchParams.set("includeUnpublished", String(x)), m && Dr(m) && D.searchParams.set("cacheSeconds", String(m)), S && Dr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3536
|
+
const _ = Tn({
|
|
3541
3537
|
sort: A
|
|
3542
3538
|
});
|
|
3543
|
-
for (const
|
|
3544
|
-
D.searchParams.set(
|
|
3539
|
+
for (const R in _)
|
|
3540
|
+
D.searchParams.set(R, JSON.stringify(_[R]));
|
|
3545
3541
|
}
|
|
3546
|
-
const
|
|
3542
|
+
const Ae = {
|
|
3547
3543
|
...Qi(),
|
|
3548
3544
|
...zr(e.options || {})
|
|
3549
3545
|
};
|
|
3550
|
-
|
|
3551
|
-
...
|
|
3552
|
-
...As(
|
|
3546
|
+
ie = {
|
|
3547
|
+
...ie,
|
|
3548
|
+
...As(Ae)
|
|
3553
3549
|
};
|
|
3554
|
-
const
|
|
3555
|
-
for (const
|
|
3556
|
-
D.searchParams.set(
|
|
3557
|
-
if (Object.keys(
|
|
3558
|
-
const
|
|
3550
|
+
const K = Tn(Ae);
|
|
3551
|
+
for (const _ in K)
|
|
3552
|
+
D.searchParams.set(_, String(K[_]));
|
|
3553
|
+
if (Object.keys(ie).length > 0 && D.searchParams.set("userAttributes", JSON.stringify(ie)), r) {
|
|
3554
|
+
const _ = yo({
|
|
3559
3555
|
query: r
|
|
3560
3556
|
});
|
|
3561
|
-
for (const
|
|
3562
|
-
D.searchParams.set(
|
|
3557
|
+
for (const R in _)
|
|
3558
|
+
D.searchParams.set(R, JSON.stringify(_[R]));
|
|
3563
3559
|
}
|
|
3564
3560
|
return D;
|
|
3565
3561
|
}, Rs = (e) => {
|
|
@@ -3572,21 +3568,27 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3572
3568
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
3573
3569
|
const t = Rs(e), {
|
|
3574
3570
|
userAttributes: n
|
|
3575
|
-
} =
|
|
3571
|
+
} = Es(t);
|
|
3576
3572
|
return n;
|
|
3577
3573
|
}
|
|
3578
3574
|
return {};
|
|
3579
|
-
},
|
|
3575
|
+
}, xs = (e) => "results" in e;
|
|
3580
3576
|
async function Kn(e) {
|
|
3581
|
-
|
|
3577
|
+
var r;
|
|
3578
|
+
const t = e.locale || ((r = e.userAttributes) == null ? void 0 : r.locale);
|
|
3579
|
+
t && (e.locale = t, e.userAttributes = {
|
|
3580
|
+
locale: t,
|
|
3581
|
+
...e.userAttributes
|
|
3582
|
+
});
|
|
3583
|
+
const n = await Os({
|
|
3582
3584
|
...e,
|
|
3583
3585
|
limit: 1
|
|
3584
3586
|
});
|
|
3585
|
-
return
|
|
3587
|
+
return n && n[0] || null;
|
|
3586
3588
|
}
|
|
3587
|
-
const
|
|
3589
|
+
const $s = async (e) => {
|
|
3588
3590
|
var s;
|
|
3589
|
-
const t = Hn(e), n = e.fetch ??
|
|
3591
|
+
const t = Hn(e), n = e.fetch ?? Ts, r = {
|
|
3590
3592
|
...e.fetchOptions,
|
|
3591
3593
|
headers: {
|
|
3592
3594
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
@@ -3612,8 +3614,8 @@ const xs = async (e) => {
|
|
|
3612
3614
|
return t.results;
|
|
3613
3615
|
};
|
|
3614
3616
|
async function Os(e) {
|
|
3615
|
-
const t = Hn(e), n = await
|
|
3616
|
-
if (
|
|
3617
|
+
const t = Hn(e), n = await $s(e);
|
|
3618
|
+
if (!xs(n))
|
|
3617
3619
|
throw ue.error("Error fetching data. ", {
|
|
3618
3620
|
url: t,
|
|
3619
3621
|
content: n,
|
|
@@ -3649,8 +3651,8 @@ function Ns(e, t, n = {}) {
|
|
|
3649
3651
|
return function() {
|
|
3650
3652
|
const h = Date.now();
|
|
3651
3653
|
!u && n.leading === !1 && (u = h);
|
|
3652
|
-
const
|
|
3653
|
-
return r = this, o = arguments,
|
|
3654
|
+
const y = t - (h - u);
|
|
3655
|
+
return r = this, o = arguments, y <= 0 || y > t ? (s && (clearTimeout(s), s = null), u = h, i = e.apply(r, o), s || (r = o = null)) : !s && n.trailing !== !1 && (s = setTimeout(c, y)), i;
|
|
3654
3656
|
};
|
|
3655
3657
|
}
|
|
3656
3658
|
function mt(e, ...t) {
|
|
@@ -3723,8 +3725,8 @@ function Vs(e) {
|
|
|
3723
3725
|
const s = Ns(i, 200, {
|
|
3724
3726
|
leading: !1
|
|
3725
3727
|
});
|
|
3726
|
-
function u(
|
|
3727
|
-
const b =
|
|
3728
|
+
function u(y) {
|
|
3729
|
+
const b = y.getBoundingClientRect(), m = window.innerHeight, A = (e.thresholdPercent || 0) / 100 * m;
|
|
3728
3730
|
return b.bottom > A && b.top < m - A;
|
|
3729
3731
|
}
|
|
3730
3732
|
const c = e.steps[0].styles;
|
|
@@ -3799,7 +3801,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3799
3801
|
return;
|
|
3800
3802
|
} else
|
|
3801
3803
|
return o;
|
|
3802
|
-
},
|
|
3804
|
+
}, Ls = ({
|
|
3803
3805
|
block: e,
|
|
3804
3806
|
context: t
|
|
3805
3807
|
}) => {
|
|
@@ -3832,7 +3834,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3832
3834
|
},
|
|
3833
3835
|
block: r
|
|
3834
3836
|
}));
|
|
3835
|
-
},
|
|
3837
|
+
}, Fs = (e, t) => {
|
|
3836
3838
|
var n;
|
|
3837
3839
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
3838
3840
|
builderLinkComponent: t
|
|
@@ -3857,33 +3859,33 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3857
3859
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3858
3860
|
e
|
|
3859
3861
|
), e;
|
|
3860
|
-
}), Gs = () => import("./block-
|
|
3861
|
-
throw console.error(
|
|
3862
|
-
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3863
|
-
e
|
|
3864
|
-
), e;
|
|
3865
|
-
}), _s = () => import("./block-wrapper-SsRgbO8V.js").then((e) => e.default).catch((e) => {
|
|
3862
|
+
}), Gs = () => import("./block-wrapper-hc1D57Il.js").then((e) => e.default).catch((e) => {
|
|
3866
3863
|
throw console.error(
|
|
3867
3864
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3868
3865
|
e
|
|
3869
3866
|
), e;
|
|
3870
|
-
}),
|
|
3867
|
+
}), _s = () => import("./component-ref-__eNmb_i.js").then((e) => e.default).catch((e) => {
|
|
3871
3868
|
throw console.error(
|
|
3872
3869
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3873
3870
|
e
|
|
3874
3871
|
), e;
|
|
3875
|
-
}),
|
|
3872
|
+
}), Js = () => import("./repeated-block-i0HNWVX0.js").then((e) => e.default).catch((e) => {
|
|
3876
3873
|
throw console.error(
|
|
3877
3874
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3878
3875
|
e
|
|
3879
3876
|
), e;
|
|
3877
|
+
}), Xs = () => import("./style-wrapper-mI3PSijR.js").then((e) => e.default).catch((e) => {
|
|
3878
|
+
throw console.error(
|
|
3879
|
+
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3880
|
+
e
|
|
3881
|
+
), e;
|
|
3880
3882
|
}), Ys = B({
|
|
3881
3883
|
name: "block",
|
|
3882
3884
|
components: {
|
|
3883
|
-
|
|
3884
|
-
RepeatedBlock: st(
|
|
3885
|
-
ComponentRef: st(
|
|
3886
|
-
BlockWrapper: st(
|
|
3885
|
+
StyleWrapper: st(Xs),
|
|
3886
|
+
RepeatedBlock: st(Js),
|
|
3887
|
+
ComponentRef: st(_s),
|
|
3888
|
+
BlockWrapper: st(Gs),
|
|
3887
3889
|
DynamicDiv: st(qs)
|
|
3888
3890
|
},
|
|
3889
3891
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
@@ -3909,7 +3911,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3909
3911
|
},
|
|
3910
3912
|
computed: {
|
|
3911
3913
|
repeatItem() {
|
|
3912
|
-
return
|
|
3914
|
+
return Ls({
|
|
3913
3915
|
block: this.block,
|
|
3914
3916
|
context: this.context
|
|
3915
3917
|
});
|
|
@@ -3955,7 +3957,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3955
3957
|
...Wi(this.processedBlock, this.context),
|
|
3956
3958
|
...Hs(this.blockComponent, this.processedBlock),
|
|
3957
3959
|
...Ks(this.blockComponent, this.context),
|
|
3958
|
-
...
|
|
3960
|
+
...Fs(this.blockComponent, this.linkComponent),
|
|
3959
3961
|
...Ms(
|
|
3960
3962
|
this.blockComponent,
|
|
3961
3963
|
this.registeredComponents,
|
|
@@ -3974,20 +3976,21 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3974
3976
|
});
|
|
3975
3977
|
function Qs(e, t, n, r, o, i) {
|
|
3976
3978
|
var b;
|
|
3977
|
-
const s = W("
|
|
3978
|
-
return e.canShowBlock ? (
|
|
3979
|
-
|
|
3979
|
+
const s = W("StyleWrapper"), u = W("ComponentRef"), c = W("Block", !0), h = W("BlockWrapper"), y = W("RepeatedBlock");
|
|
3980
|
+
return e.canShowBlock ? (v(), w(z, { key: 0 }, [
|
|
3981
|
+
ee(s, {
|
|
3980
3982
|
block: e.processedBlock,
|
|
3981
|
-
context: e.context
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3983
|
+
context: e.context,
|
|
3984
|
+
id: e.block.id
|
|
3985
|
+
}, null, 8, ["block", "context", "id"]),
|
|
3986
|
+
(b = e.blockComponent) != null && b.noWrap ? (v(), w(z, { key: 1 }, [
|
|
3987
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (m, S) => (v(), U(y, {
|
|
3985
3988
|
key: e.generateKey(S),
|
|
3986
3989
|
repeatContext: m.context,
|
|
3987
3990
|
block: m.block,
|
|
3988
3991
|
registeredComponents: e.registeredComponents,
|
|
3989
3992
|
linkComponent: e.linkComponent
|
|
3990
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
3993
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(u, {
|
|
3991
3994
|
key: 0,
|
|
3992
3995
|
componentRef: e.componentRefProps.componentRef,
|
|
3993
3996
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -3999,21 +4002,21 @@ function Qs(e, t, n, r, o, i) {
|
|
|
3999
4002
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4000
4003
|
isInteractive: e.componentRefProps.isInteractive
|
|
4001
4004
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
4002
|
-
], 64)) : (
|
|
4003
|
-
e.repeatItem ? (
|
|
4005
|
+
], 64)) : (v(), w(z, { key: 0 }, [
|
|
4006
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (m, S) => (v(), U(y, {
|
|
4004
4007
|
key: e.generateKey(S),
|
|
4005
4008
|
repeatContext: m.context,
|
|
4006
4009
|
block: m.block,
|
|
4007
4010
|
registeredComponents: e.registeredComponents,
|
|
4008
4011
|
linkComponent: e.linkComponent
|
|
4009
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
4012
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(h, {
|
|
4010
4013
|
key: 0,
|
|
4011
4014
|
Wrapper: e.Tag,
|
|
4012
4015
|
block: e.processedBlock,
|
|
4013
4016
|
context: e.context
|
|
4014
4017
|
}, {
|
|
4015
|
-
default:
|
|
4016
|
-
|
|
4018
|
+
default: me(() => [
|
|
4019
|
+
ee(u, {
|
|
4017
4020
|
componentRef: e.componentRefProps.componentRef,
|
|
4018
4021
|
componentOptions: e.componentRefProps.componentOptions,
|
|
4019
4022
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -4024,7 +4027,7 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4024
4027
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4025
4028
|
isInteractive: e.componentRefProps.isInteractive
|
|
4026
4029
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4027
|
-
(
|
|
4030
|
+
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (m, S) => (v(), U(c, {
|
|
4028
4031
|
key: m.id,
|
|
4029
4032
|
block: m,
|
|
4030
4033
|
registeredComponents: e.registeredComponents,
|
|
@@ -4035,11 +4038,11 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4035
4038
|
_: 1
|
|
4036
4039
|
}, 8, ["Wrapper", "block", "context"]))
|
|
4037
4040
|
], 64))
|
|
4038
|
-
], 64)) :
|
|
4041
|
+
], 64)) : F("", !0);
|
|
4039
4042
|
}
|
|
4040
|
-
const
|
|
4043
|
+
const To = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4041
4044
|
__proto__: null,
|
|
4042
|
-
default:
|
|
4045
|
+
default: To
|
|
4043
4046
|
}, Symbol.toStringTag, { value: "Module" })), Zs = B({
|
|
4044
4047
|
name: "builder-blocks-wrapper",
|
|
4045
4048
|
props: [
|
|
@@ -4084,7 +4087,7 @@ const Eo = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.
|
|
|
4084
4087
|
methods: {
|
|
4085
4088
|
onClick() {
|
|
4086
4089
|
var e, t;
|
|
4087
|
-
|
|
4090
|
+
oe() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
4088
4091
|
{
|
|
4089
4092
|
type: "builder.clickEmptyBlocks",
|
|
4090
4093
|
data: {
|
|
@@ -4097,7 +4100,7 @@ const Eo = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.
|
|
|
4097
4100
|
},
|
|
4098
4101
|
onMouseEnter() {
|
|
4099
4102
|
var e, t;
|
|
4100
|
-
|
|
4103
|
+
oe() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
4101
4104
|
{
|
|
4102
4105
|
type: "builder.hoverEmptyBlocks",
|
|
4103
4106
|
data: {
|
|
@@ -4111,9 +4114,9 @@ const Eo = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.
|
|
|
4111
4114
|
}
|
|
4112
4115
|
});
|
|
4113
4116
|
function ea(e, t, n, r, o, i) {
|
|
4114
|
-
return
|
|
4117
|
+
return v(), U(dt(e.BlocksWrapper), q({
|
|
4115
4118
|
ref: "blocksWrapperRef",
|
|
4116
|
-
class: e.className + " component-
|
|
4119
|
+
class: e.className + " component-5vz8uirn7sc",
|
|
4117
4120
|
"builder-path": e.dataPath,
|
|
4118
4121
|
"builder-parent-id": e.parent,
|
|
4119
4122
|
style: e.styleProp,
|
|
@@ -4121,15 +4124,15 @@ function ea(e, t, n, r, o, i) {
|
|
|
4121
4124
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
4122
4125
|
onKeyPress: (s) => e.onClick()
|
|
4123
4126
|
}, { ...e.BlocksWrapperProps }), {
|
|
4124
|
-
default:
|
|
4127
|
+
default: me(() => [
|
|
4125
4128
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
4126
4129
|
]),
|
|
4127
4130
|
_: 3
|
|
4128
4131
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
4129
4132
|
}
|
|
4130
|
-
const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-
|
|
4133
|
+
const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6"]]), na = B({
|
|
4131
4134
|
name: "builder-blocks",
|
|
4132
|
-
components: { BlocksWrapper: ta, Block:
|
|
4135
|
+
components: { BlocksWrapper: ta, Block: To },
|
|
4133
4136
|
props: [
|
|
4134
4137
|
"blocks",
|
|
4135
4138
|
"parent",
|
|
@@ -4147,29 +4150,29 @@ const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-161c6b74
|
|
|
4147
4150
|
}
|
|
4148
4151
|
});
|
|
4149
4152
|
function ra(e, t, n, r, o, i) {
|
|
4150
|
-
var c, h,
|
|
4153
|
+
var c, h, y, b;
|
|
4151
4154
|
const s = W("Block"), u = W("BlocksWrapper");
|
|
4152
|
-
return
|
|
4155
|
+
return v(), U(u, {
|
|
4153
4156
|
blocks: e.blocks,
|
|
4154
4157
|
parent: e.parent,
|
|
4155
4158
|
path: e.path,
|
|
4156
4159
|
styleProp: e.styleProp,
|
|
4157
4160
|
BlocksWrapperProps: e.BlocksWrapperProps || ((c = e.context) == null ? void 0 : c.BlocksWrapperProps) || ((h = e.builderContext) == null ? void 0 : h.BlocksWrapperProps),
|
|
4158
4161
|
classNameProp: e.className,
|
|
4159
|
-
BlocksWrapper: ((
|
|
4162
|
+
BlocksWrapper: ((y = e.context) == null ? void 0 : y.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
4160
4163
|
}, {
|
|
4161
|
-
default:
|
|
4164
|
+
default: me(() => [
|
|
4162
4165
|
pe(e.$slots, "default"),
|
|
4163
|
-
e.blocks ? (
|
|
4166
|
+
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (m, S) => {
|
|
4164
4167
|
var A;
|
|
4165
|
-
return
|
|
4168
|
+
return v(), U(s, {
|
|
4166
4169
|
key: m.id,
|
|
4167
4170
|
block: m,
|
|
4168
4171
|
linkComponent: e.linkComponent,
|
|
4169
4172
|
context: e.context || e.builderContext,
|
|
4170
4173
|
registeredComponents: e.registeredComponents || ((A = e.componentsContext) == null ? void 0 : A.registeredComponents)
|
|
4171
4174
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
4172
|
-
}), 128)) :
|
|
4175
|
+
}), 128)) : F("", !0)
|
|
4173
4176
|
]),
|
|
4174
4177
|
_: 3
|
|
4175
4178
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
@@ -4179,7 +4182,7 @@ const Ue = /* @__PURE__ */ j(na, [["render", ra]]), oa = B({
|
|
|
4179
4182
|
props: []
|
|
4180
4183
|
});
|
|
4181
4184
|
function ia(e, t, n, r, o, i) {
|
|
4182
|
-
return
|
|
4185
|
+
return v(), w("div", null, [
|
|
4183
4186
|
pe(e.$slots, "default")
|
|
4184
4187
|
]);
|
|
4185
4188
|
}
|
|
@@ -4196,7 +4199,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4196
4199
|
},
|
|
4197
4200
|
name: "inlined-styles",
|
|
4198
4201
|
props: ["styles", "id", "nonce"]
|
|
4199
|
-
}),
|
|
4202
|
+
}), Eo = {
|
|
4200
4203
|
xsmall: {
|
|
4201
4204
|
min: 0,
|
|
4202
4205
|
default: 160,
|
|
@@ -4217,8 +4220,8 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4217
4220
|
default: 991,
|
|
4218
4221
|
max: 1200
|
|
4219
4222
|
}
|
|
4220
|
-
}, cc = (e, t =
|
|
4221
|
-
const t = Un(
|
|
4223
|
+
}, cc = (e, t = Eo) => `@media (max-width: ${t[e].max}px)`, aa = (e) => {
|
|
4224
|
+
const t = Un(Eo);
|
|
4222
4225
|
if (!e)
|
|
4223
4226
|
return t;
|
|
4224
4227
|
const {
|
|
@@ -4259,7 +4262,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4259
4262
|
name: "builder-columns",
|
|
4260
4263
|
components: {
|
|
4261
4264
|
InlinedStyles: Mt,
|
|
4262
|
-
DynamicRenderer:
|
|
4265
|
+
DynamicRenderer: En,
|
|
4263
4266
|
Blocks: Ue,
|
|
4264
4267
|
DynamicDiv: Ct
|
|
4265
4268
|
},
|
|
@@ -4390,7 +4393,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4390
4393
|
...e.link ? {
|
|
4391
4394
|
href: e.link
|
|
4392
4395
|
} : {},
|
|
4393
|
-
[
|
|
4396
|
+
[Oe()]: "builder-column",
|
|
4394
4397
|
style: Co(this.columnCssVars(t))
|
|
4395
4398
|
};
|
|
4396
4399
|
}
|
|
@@ -4399,30 +4402,30 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4399
4402
|
function ca(e, t, n, r, o, i) {
|
|
4400
4403
|
var h;
|
|
4401
4404
|
const s = W("InlinedStyles"), u = W("Blocks"), c = W("DynamicRenderer");
|
|
4402
|
-
return
|
|
4403
|
-
class: e.getColumnsClass((h = e.builderBlock) == null ? void 0 : h.id) + " div-
|
|
4405
|
+
return v(), w("div", q({
|
|
4406
|
+
class: e.getColumnsClass((h = e.builderBlock) == null ? void 0 : h.id) + " div-1be3j8m9ewb",
|
|
4404
4407
|
style: e.columnsCssVars()
|
|
4405
4408
|
}, {}), [
|
|
4406
|
-
e.TARGET !== "reactNative" ? (
|
|
4409
|
+
e.TARGET !== "reactNative" ? (v(), U(s, {
|
|
4407
4410
|
key: 0,
|
|
4408
4411
|
id: "builderio-columns",
|
|
4409
4412
|
styles: e.columnsStyles(),
|
|
4410
4413
|
nonce: e.builderContext.nonce
|
|
4411
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
4412
|
-
(
|
|
4414
|
+
}, null, 8, ["styles", "nonce"])) : F("", !0),
|
|
4415
|
+
(v(!0), w(z, null, ve(e.columns, (y, b) => (v(), U(c, {
|
|
4413
4416
|
key: b,
|
|
4414
|
-
TagName: e.getTagName(
|
|
4417
|
+
TagName: e.getTagName(y),
|
|
4415
4418
|
actionAttributes: {},
|
|
4416
|
-
attributes: e.getAttributes(
|
|
4419
|
+
attributes: e.getAttributes(y, b)
|
|
4417
4420
|
}, {
|
|
4418
|
-
default:
|
|
4419
|
-
|
|
4421
|
+
default: me(() => [
|
|
4422
|
+
ee(u, {
|
|
4420
4423
|
path: `columns.${b}.blocks`,
|
|
4421
4424
|
parent: e.builderBlock.id,
|
|
4422
4425
|
context: e.builderContext,
|
|
4423
4426
|
registeredComponents: e.builderComponents,
|
|
4424
4427
|
linkComponent: e.builderLinkComponent,
|
|
4425
|
-
blocks:
|
|
4428
|
+
blocks: y.blocks,
|
|
4426
4429
|
styleProp: {
|
|
4427
4430
|
flexGrow: "1"
|
|
4428
4431
|
}
|
|
@@ -4432,12 +4435,12 @@ function ca(e, t, n, r, o, i) {
|
|
|
4432
4435
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4433
4436
|
], 16);
|
|
4434
4437
|
}
|
|
4435
|
-
const pa = /* @__PURE__ */ j(ua, [["render", ca], ["__scopeId", "data-v-
|
|
4438
|
+
const pa = /* @__PURE__ */ j(ua, [["render", ca], ["__scopeId", "data-v-ab15749a"]]), da = B({
|
|
4436
4439
|
name: "builder-fragment-component",
|
|
4437
4440
|
props: []
|
|
4438
4441
|
});
|
|
4439
4442
|
function fa(e, t, n, r, o, i) {
|
|
4440
|
-
return
|
|
4443
|
+
return v(), w("span", null, [
|
|
4441
4444
|
pe(e.$slots, "default")
|
|
4442
4445
|
]);
|
|
4443
4446
|
}
|
|
@@ -4525,58 +4528,58 @@ const ya = B({
|
|
|
4525
4528
|
}
|
|
4526
4529
|
}), va = ["srcset"], ba = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Sa = {
|
|
4527
4530
|
key: 2,
|
|
4528
|
-
class: "div-
|
|
4531
|
+
class: "div-t43jfuqn6g-2"
|
|
4529
4532
|
};
|
|
4530
4533
|
function ka(e, t, n, r, o, i) {
|
|
4531
|
-
var s, u, c, h,
|
|
4532
|
-
return
|
|
4533
|
-
|
|
4534
|
-
e.webpSrcSet ? (
|
|
4534
|
+
var s, u, c, h, y, b;
|
|
4535
|
+
return v(), w(z, null, [
|
|
4536
|
+
Ge("picture", null, [
|
|
4537
|
+
e.webpSrcSet ? (v(), w("source", {
|
|
4535
4538
|
key: 0,
|
|
4536
4539
|
type: "image/webp",
|
|
4537
4540
|
srcset: e.webpSrcSet
|
|
4538
|
-
}, null, 8, va)) :
|
|
4539
|
-
|
|
4541
|
+
}, null, 8, va)) : F("", !0),
|
|
4542
|
+
Ge("img", {
|
|
4540
4543
|
loading: e.highPriority ? "eager" : "lazy",
|
|
4541
4544
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
4542
4545
|
alt: e.altText,
|
|
4543
4546
|
title: e.title,
|
|
4544
4547
|
role: e.altText ? void 0 : "presentation",
|
|
4545
|
-
style:
|
|
4548
|
+
style: Pe({
|
|
4546
4549
|
objectPosition: e.backgroundPosition || "center",
|
|
4547
4550
|
objectFit: e.backgroundSize || "cover",
|
|
4548
4551
|
...e.aspectRatioCss
|
|
4549
4552
|
}),
|
|
4550
4553
|
class: gt(
|
|
4551
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
4554
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
4552
4555
|
),
|
|
4553
4556
|
src: e.image,
|
|
4554
4557
|
srcset: e.srcSetToUse,
|
|
4555
4558
|
sizes: e.sizes
|
|
4556
4559
|
}, null, 14, ba)
|
|
4557
4560
|
]),
|
|
4558
|
-
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (
|
|
4561
|
+
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (v(), w("div", {
|
|
4559
4562
|
key: 0,
|
|
4560
|
-
class: "builder-image-sizer div-
|
|
4561
|
-
style:
|
|
4563
|
+
class: "builder-image-sizer div-t43jfuqn6g",
|
|
4564
|
+
style: Pe({
|
|
4562
4565
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
4563
4566
|
})
|
|
4564
|
-
}, null, 4)) :
|
|
4565
|
-
(h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? pe(e.$slots, "default", { key: 1 }, void 0, !0) :
|
|
4566
|
-
!e.fitContent && ((b = (
|
|
4567
|
+
}, null, 4)) : F("", !0),
|
|
4568
|
+
(h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? pe(e.$slots, "default", { key: 1 }, void 0, !0) : F("", !0),
|
|
4569
|
+
!e.fitContent && ((b = (y = e.builderBlock) == null ? void 0 : y.children) != null && b.length) ? (v(), w("div", Sa, [
|
|
4567
4570
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
4568
|
-
])) :
|
|
4571
|
+
])) : F("", !0)
|
|
4569
4572
|
], 64);
|
|
4570
4573
|
}
|
|
4571
|
-
const Ca = /* @__PURE__ */ j(ya, [["render", ka], ["__scopeId", "data-v-
|
|
4574
|
+
const Ca = /* @__PURE__ */ j(ya, [["render", ka], ["__scopeId", "data-v-741b9bbc"]]), wa = B({
|
|
4572
4575
|
name: "builder-section-component",
|
|
4573
4576
|
props: ["attributes", "maxWidth"],
|
|
4574
4577
|
data() {
|
|
4575
|
-
return { filterAttrs:
|
|
4578
|
+
return { filterAttrs: de };
|
|
4576
4579
|
}
|
|
4577
4580
|
});
|
|
4578
|
-
function
|
|
4579
|
-
return
|
|
4581
|
+
function Ta(e, t, n, r, o, i) {
|
|
4582
|
+
return v(), w("section", q({
|
|
4580
4583
|
style: {
|
|
4581
4584
|
width: "100%",
|
|
4582
4585
|
alignSelf: "stretch",
|
|
@@ -4593,7 +4596,7 @@ function Ea(e, t, n, r, o, i) {
|
|
|
4593
4596
|
pe(e.$slots, "default")
|
|
4594
4597
|
], 16);
|
|
4595
4598
|
}
|
|
4596
|
-
const
|
|
4599
|
+
const Ea = /* @__PURE__ */ j(wa, [["render", Ta]]);
|
|
4597
4600
|
function Ia(e, t, n, r) {
|
|
4598
4601
|
function o(h) {
|
|
4599
4602
|
return typeof h == "string";
|
|
@@ -4601,11 +4604,11 @@ function Ia(e, t, n, r) {
|
|
|
4601
4604
|
function i(h) {
|
|
4602
4605
|
return typeof h == "number";
|
|
4603
4606
|
}
|
|
4604
|
-
function s(h,
|
|
4607
|
+
function s(h, y) {
|
|
4605
4608
|
return (() => {
|
|
4606
|
-
const m =
|
|
4607
|
-
let A =
|
|
4608
|
-
if (
|
|
4609
|
+
const m = y.property, S = y.operator;
|
|
4610
|
+
let A = y.value;
|
|
4611
|
+
if (y && y.property === "urlPath" && y.value && typeof y.value == "string" && y.value !== "/" && y.value.endsWith("/") && (A = y.value.slice(0, -1)), !(m && S))
|
|
4609
4612
|
return !0;
|
|
4610
4613
|
if (Array.isArray(A))
|
|
4611
4614
|
return S === "isNot" ? A.every((H) => s(h, {
|
|
@@ -4617,28 +4620,28 @@ function Ia(e, t, n, r) {
|
|
|
4617
4620
|
operator: S,
|
|
4618
4621
|
value: H
|
|
4619
4622
|
}));
|
|
4620
|
-
const
|
|
4621
|
-
if (Array.isArray(
|
|
4622
|
-
return
|
|
4623
|
+
const x = h[m];
|
|
4624
|
+
if (Array.isArray(x))
|
|
4625
|
+
return x.includes(A);
|
|
4623
4626
|
switch (S) {
|
|
4624
4627
|
case "is":
|
|
4625
|
-
return
|
|
4628
|
+
return x === A;
|
|
4626
4629
|
case "isNot":
|
|
4627
|
-
return
|
|
4630
|
+
return x !== A;
|
|
4628
4631
|
case "contains":
|
|
4629
|
-
return (o(
|
|
4632
|
+
return (o(x) || Array.isArray(x)) && x.includes(String(A));
|
|
4630
4633
|
case "startsWith":
|
|
4631
|
-
return o(
|
|
4634
|
+
return o(x) && x.startsWith(String(A));
|
|
4632
4635
|
case "endsWith":
|
|
4633
|
-
return o(
|
|
4636
|
+
return o(x) && x.endsWith(String(A));
|
|
4634
4637
|
case "greaterThan":
|
|
4635
|
-
return i(
|
|
4638
|
+
return i(x) && i(A) && x > A;
|
|
4636
4639
|
case "lessThan":
|
|
4637
|
-
return i(
|
|
4640
|
+
return i(x) && i(A) && x < A;
|
|
4638
4641
|
case "greaterThanOrEqualTo":
|
|
4639
|
-
return i(
|
|
4642
|
+
return i(x) && i(A) && x >= A;
|
|
4640
4643
|
case "lessThanOrEqualTo":
|
|
4641
|
-
return i(
|
|
4644
|
+
return i(x) && i(A) && x <= A;
|
|
4642
4645
|
default:
|
|
4643
4646
|
return !1;
|
|
4644
4647
|
}
|
|
@@ -4774,7 +4777,7 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4774
4777
|
return item.query.every(filter => {
|
|
4775
4778
|
return objectMatchesQuery(userAttributes, filter);
|
|
4776
4779
|
});
|
|
4777
|
-
}`,
|
|
4780
|
+
}`, xa = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
4778
4781
|
function getCookie(name) {
|
|
4779
4782
|
const nameEQ = name + '=';
|
|
4780
4783
|
const ca = document.cookie.split(';');
|
|
@@ -4812,9 +4815,9 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4812
4815
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
4813
4816
|
}
|
|
4814
4817
|
}
|
|
4815
|
-
}`, Nt = "default",
|
|
4818
|
+
}`, Nt = "default", $a = "filterWithCustomTargeting", Io = "builderIoPersonalization", Ro = "updateVisibilityStylesScript", Ao = ["react", "vue", "svelte", "qwik"], xo = ["vue", "svelte", "qwik"];
|
|
4816
4819
|
function Pa(e, t) {
|
|
4817
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
4820
|
+
return !(e && e.length > 0) || !t ? !1 : xo.includes(G) ? !0 : !M();
|
|
4818
4821
|
}
|
|
4819
4822
|
function Oa({
|
|
4820
4823
|
variants: e,
|
|
@@ -4828,7 +4831,7 @@ function Oa({
|
|
|
4828
4831
|
path: "this.children",
|
|
4829
4832
|
index: Nt
|
|
4830
4833
|
};
|
|
4831
|
-
if (n &&
|
|
4834
|
+
if (n && oe()) {
|
|
4832
4835
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
4833
4836
|
const s = e == null ? void 0 : e[t];
|
|
4834
4837
|
if (s)
|
|
@@ -4855,10 +4858,10 @@ function Oa({
|
|
|
4855
4858
|
return i;
|
|
4856
4859
|
}
|
|
4857
4860
|
const Na = () => `
|
|
4858
|
-
window.${
|
|
4861
|
+
window.${$a} = ${Aa}
|
|
4859
4862
|
window.${Io} = ${Ra}
|
|
4860
|
-
window.${Ro} = ${
|
|
4861
|
-
`,
|
|
4863
|
+
window.${Ro} = ${xa}
|
|
4864
|
+
`, $o = G === "react", Ba = (e, t, n) => `window.${Io}(${JSON.stringify(e)}, "${t}", ${$o}${n ? `, "${n}"` : ""})`, ja = (e, t, n) => `window.${Ro}(${JSON.stringify(e)}, "${t}", ${$o}${n ? `, "${n}"` : ""})`, fn = {
|
|
4862
4865
|
"@type": "@builder.io/sdk:Element",
|
|
4863
4866
|
layerName: "Accordion item title",
|
|
4864
4867
|
responsiveStyles: {
|
|
@@ -5078,16 +5081,16 @@ const Na = () => `
|
|
|
5078
5081
|
}
|
|
5079
5082
|
}
|
|
5080
5083
|
}), Wa = ["data-index", "onClick"];
|
|
5081
|
-
function
|
|
5084
|
+
function La(e, t, n, r, o, i) {
|
|
5082
5085
|
const s = W("Blocks");
|
|
5083
|
-
return
|
|
5086
|
+
return v(), w("div", {
|
|
5084
5087
|
class: "builder-accordion",
|
|
5085
|
-
style:
|
|
5088
|
+
style: Pe(e.accordionStyles)
|
|
5086
5089
|
}, [
|
|
5087
|
-
(
|
|
5088
|
-
|
|
5090
|
+
(v(!0), w(z, null, ve(e.items, (u, c) => (v(), w(z, { key: c }, [
|
|
5091
|
+
Ge("div", {
|
|
5089
5092
|
class: gt(e.getAccordionTitleClassName(c)),
|
|
5090
|
-
style:
|
|
5093
|
+
style: Pe({
|
|
5091
5094
|
...e.accordionTitleStyles,
|
|
5092
5095
|
...e.grid && {
|
|
5093
5096
|
width: e.gridRowWidth,
|
|
@@ -5097,7 +5100,7 @@ function Fa(e, t, n, r, o, i) {
|
|
|
5097
5100
|
"data-index": c,
|
|
5098
5101
|
onClick: async (h) => e.onClick(c)
|
|
5099
5102
|
}, [
|
|
5100
|
-
|
|
5103
|
+
ee(s, {
|
|
5101
5104
|
blocks: u.title,
|
|
5102
5105
|
path: `items.${c}.title`,
|
|
5103
5106
|
parent: e.builderBlock.id,
|
|
@@ -5106,12 +5109,12 @@ function Fa(e, t, n, r, o, i) {
|
|
|
5106
5109
|
linkComponent: e.builderLinkComponent
|
|
5107
5110
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
5108
5111
|
], 14, Wa),
|
|
5109
|
-
e.open.includes(c) ? (
|
|
5112
|
+
e.open.includes(c) ? (v(), w("div", {
|
|
5110
5113
|
key: 0,
|
|
5111
5114
|
class: gt(e.getAccordionDetailClassName(c)),
|
|
5112
|
-
style:
|
|
5115
|
+
style: Pe(e.accordionDetailStyles)
|
|
5113
5116
|
}, [
|
|
5114
|
-
|
|
5117
|
+
ee(s, {
|
|
5115
5118
|
blocks: u.detail,
|
|
5116
5119
|
path: `items.${c}.detail`,
|
|
5117
5120
|
parent: e.builderBlock.id,
|
|
@@ -5119,11 +5122,11 @@ function Fa(e, t, n, r, o, i) {
|
|
|
5119
5122
|
registeredComponents: e.builderComponents,
|
|
5120
5123
|
linkComponent: e.builderLinkComponent
|
|
5121
5124
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
5122
|
-
], 6)) :
|
|
5125
|
+
], 6)) : F("", !0)
|
|
5123
5126
|
], 64))), 128))
|
|
5124
5127
|
], 4);
|
|
5125
5128
|
}
|
|
5126
|
-
const
|
|
5129
|
+
const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
5127
5130
|
name: "Core:Button",
|
|
5128
5131
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
5129
5132
|
defaultStyles: {
|
|
@@ -5394,13 +5397,13 @@ const La = /* @__PURE__ */ j(Ua, [["render", Fa]]), Ma = {
|
|
|
5394
5397
|
e.delete("srcset"), e.delete("noWebp");
|
|
5395
5398
|
function n(s, u = 6e4) {
|
|
5396
5399
|
return new Promise((c, h) => {
|
|
5397
|
-
const
|
|
5400
|
+
const y = document.createElement("img");
|
|
5398
5401
|
let b = !1;
|
|
5399
|
-
|
|
5400
|
-
b = !0, c(
|
|
5401
|
-
},
|
|
5402
|
+
y.onload = () => {
|
|
5403
|
+
b = !0, c(y);
|
|
5404
|
+
}, y.addEventListener("error", (m) => {
|
|
5402
5405
|
console.warn("Image load failed", m.error), h(m.error);
|
|
5403
|
-
}),
|
|
5406
|
+
}), y.src = s, setTimeout(() => {
|
|
5404
5407
|
b || h(new Error("Image load timed out"));
|
|
5405
5408
|
}, u);
|
|
5406
5409
|
});
|
|
@@ -5567,7 +5570,7 @@ const La = /* @__PURE__ */ j(Ua, [["render", Fa]]), Ma = {
|
|
|
5567
5570
|
shouldResetVariants: !1,
|
|
5568
5571
|
TARGET: G,
|
|
5569
5572
|
DEFAULT_INDEX: Nt,
|
|
5570
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
5573
|
+
SDKS_REQUIRING_RESET_APPROACH: xo
|
|
5571
5574
|
};
|
|
5572
5575
|
},
|
|
5573
5576
|
mounted() {
|
|
@@ -5581,7 +5584,7 @@ const La = /* @__PURE__ */ j(Ua, [["render", Fa]]), Ma = {
|
|
|
5581
5584
|
fireImmediately: G === "qwik"
|
|
5582
5585
|
}
|
|
5583
5586
|
);
|
|
5584
|
-
if (!(
|
|
5587
|
+
if (!(oe() || Wn())) {
|
|
5585
5588
|
const n = this.filteredVariants[0];
|
|
5586
5589
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
5587
5590
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -5614,9 +5617,9 @@ const La = /* @__PURE__ */ j(Ua, [["render", Fa]]), Ma = {
|
|
|
5614
5617
|
computed: {
|
|
5615
5618
|
attrs() {
|
|
5616
5619
|
return {
|
|
5617
|
-
...
|
|
5618
|
-
...
|
|
5619
|
-
[
|
|
5620
|
+
...de(this.attributes, "v-on:", !1),
|
|
5621
|
+
...de(this.attributes, "v-on:", !0),
|
|
5622
|
+
[Oe()]: `builder-personalization-container ${this.attributes[Oe()] || ""}`
|
|
5620
5623
|
};
|
|
5621
5624
|
},
|
|
5622
5625
|
filteredVariants() {
|
|
@@ -5656,10 +5659,10 @@ const La = /* @__PURE__ */ j(Ua, [["render", Fa]]), Ma = {
|
|
|
5656
5659
|
}
|
|
5657
5660
|
});
|
|
5658
5661
|
function Ja(e, t, n, r, o, i) {
|
|
5659
|
-
var h,
|
|
5662
|
+
var h, y, b, m, S, A, x, H, te, E;
|
|
5660
5663
|
const s = W("Blocks"), u = W("InlinedStyles"), c = W("InlinedScript");
|
|
5661
|
-
return
|
|
5662
|
-
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
5664
|
+
return v(), w("div", q({ ref: "rootRef" }, e.attrs), [
|
|
5665
|
+
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), U(s, {
|
|
5663
5666
|
key: 0,
|
|
5664
5667
|
blocks: e.blocksToRender.blocks,
|
|
5665
5668
|
parent: (h = e.builderBlock) == null ? void 0 : h.id,
|
|
@@ -5667,77 +5670,77 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5667
5670
|
context: e.builderContext,
|
|
5668
5671
|
registeredComponents: e.builderComponents,
|
|
5669
5672
|
BlocksWrapperProps: {
|
|
5670
|
-
...(
|
|
5673
|
+
...(y = e.builderContext) == null ? void 0 : y.BlocksWrapperProps,
|
|
5671
5674
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
5672
5675
|
}
|
|
5673
|
-
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) :
|
|
5674
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
5675
|
-
e.shouldRenderVariants ? (
|
|
5676
|
-
|
|
5676
|
+
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : F("", !0),
|
|
5677
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), w(z, { key: 1 }, [
|
|
5678
|
+
e.shouldRenderVariants ? (v(), w(z, { key: 0 }, [
|
|
5679
|
+
ee(u, {
|
|
5677
5680
|
nonce: ((m = e.builderContext) == null ? void 0 : m.nonce) || "",
|
|
5678
5681
|
styles: e.hideVariantsStyleString,
|
|
5679
5682
|
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
5680
5683
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
5681
|
-
|
|
5684
|
+
ee(c, {
|
|
5682
5685
|
nonce: ((A = e.builderContext) == null ? void 0 : A.nonce) || "",
|
|
5683
5686
|
scriptStr: e.updateVisibilityStylesScript,
|
|
5684
|
-
id: `variants-visibility-script-${(
|
|
5687
|
+
id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
5685
5688
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
5686
|
-
(
|
|
5687
|
-
var
|
|
5688
|
-
return
|
|
5689
|
-
key: `${(
|
|
5689
|
+
(v(!0), w(z, null, ve(e.variants, (D, ie) => {
|
|
5690
|
+
var Ae, K, _, R;
|
|
5691
|
+
return v(), U(s, {
|
|
5692
|
+
key: `${(Ae = e.builderBlock) == null ? void 0 : Ae.id}-${ie}`,
|
|
5690
5693
|
BlocksWrapperProps: {
|
|
5691
5694
|
...(K = e.builderContext) == null ? void 0 : K.BlocksWrapperProps,
|
|
5692
5695
|
"aria-hidden": !0,
|
|
5693
5696
|
hidden: !0,
|
|
5694
|
-
"data-variant-id": `${(
|
|
5697
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${ie}`
|
|
5695
5698
|
},
|
|
5696
5699
|
blocks: D.blocks,
|
|
5697
|
-
parent: (
|
|
5698
|
-
path: `component.options.variants.${
|
|
5700
|
+
parent: (R = e.builderBlock) == null ? void 0 : R.id,
|
|
5701
|
+
path: `component.options.variants.${ie}.blocks`,
|
|
5699
5702
|
context: e.builderContext,
|
|
5700
5703
|
registeredComponents: e.builderComponents
|
|
5701
5704
|
}, {
|
|
5702
|
-
default:
|
|
5703
|
-
var
|
|
5705
|
+
default: me(() => {
|
|
5706
|
+
var We, L;
|
|
5704
5707
|
return [
|
|
5705
|
-
|
|
5706
|
-
nonce: ((
|
|
5708
|
+
ee(c, {
|
|
5709
|
+
nonce: ((We = e.builderContext) == null ? void 0 : We.nonce) || "",
|
|
5707
5710
|
scriptStr: e.scriptStr,
|
|
5708
|
-
id: `variants-script-${(
|
|
5711
|
+
id: `variants-script-${(L = e.builderBlock) == null ? void 0 : L.id}-${ie}`
|
|
5709
5712
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
5710
5713
|
];
|
|
5711
5714
|
}),
|
|
5712
5715
|
_: 2
|
|
5713
5716
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
5714
5717
|
}), 128))
|
|
5715
|
-
], 64)) :
|
|
5716
|
-
|
|
5718
|
+
], 64)) : F("", !0),
|
|
5719
|
+
ee(s, {
|
|
5717
5720
|
blocks: e.blocksToRender.blocks,
|
|
5718
5721
|
parent: (H = e.builderBlock) == null ? void 0 : H.id,
|
|
5719
5722
|
path: e.blocksToRender.path,
|
|
5720
5723
|
context: e.builderContext,
|
|
5721
5724
|
registeredComponents: e.builderComponents,
|
|
5722
5725
|
BlocksWrapperProps: {
|
|
5723
|
-
...(
|
|
5724
|
-
"data-variant-id": `${(
|
|
5726
|
+
...(te = e.builderContext) == null ? void 0 : te.BlocksWrapperProps,
|
|
5727
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${e.blocksToRender.index}`
|
|
5725
5728
|
}
|
|
5726
5729
|
}, {
|
|
5727
|
-
default:
|
|
5728
|
-
var D,
|
|
5730
|
+
default: me(() => {
|
|
5731
|
+
var D, ie;
|
|
5729
5732
|
return [
|
|
5730
|
-
e.shouldRenderVariants ? (
|
|
5733
|
+
e.shouldRenderVariants ? (v(), U(c, {
|
|
5731
5734
|
key: 0,
|
|
5732
5735
|
nonce: ((D = e.builderContext) == null ? void 0 : D.nonce) || "",
|
|
5733
5736
|
scriptStr: e.scriptStr,
|
|
5734
|
-
id: `variants-script-${(
|
|
5735
|
-
}, null, 8, ["nonce", "scriptStr", "id"])) :
|
|
5737
|
+
id: `variants-script-${(ie = e.builderBlock) == null ? void 0 : ie.id}-${e.DEFAULT_INDEX}`
|
|
5738
|
+
}, null, 8, ["nonce", "scriptStr", "id"])) : F("", !0)
|
|
5736
5739
|
];
|
|
5737
5740
|
}),
|
|
5738
5741
|
_: 1
|
|
5739
5742
|
}, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])
|
|
5740
|
-
], 64)) :
|
|
5743
|
+
], 64)) : F("", !0)
|
|
5741
5744
|
], 16);
|
|
5742
5745
|
}
|
|
5743
5746
|
const Xa = /* @__PURE__ */ j(_a, [["render", Ja]]), Ya = {
|
|
@@ -5804,7 +5807,7 @@ const Xa = /* @__PURE__ */ j(_a, [["render", Ja]]), Ya = {
|
|
|
5804
5807
|
function el(e, t, n, r, o, i) {
|
|
5805
5808
|
var u, c, h;
|
|
5806
5809
|
const s = W("Blocks");
|
|
5807
|
-
return
|
|
5810
|
+
return v(), w("div", q(
|
|
5808
5811
|
{ style: {
|
|
5809
5812
|
pointerEvents: "auto"
|
|
5810
5813
|
} },
|
|
@@ -5812,7 +5815,7 @@ function el(e, t, n, r, o, i) {
|
|
|
5812
5815
|
"builder-slot": e.name
|
|
5813
5816
|
}
|
|
5814
5817
|
), [
|
|
5815
|
-
|
|
5818
|
+
ee(s, {
|
|
5816
5819
|
parent: (c = e.builderContext.context) == null ? void 0 : c.symbolId,
|
|
5817
5820
|
path: `symbol.data.${e.name}`,
|
|
5818
5821
|
context: e.builderContext,
|
|
@@ -6007,9 +6010,9 @@ const tl = /* @__PURE__ */ j(Za, [["render", el]]), nl = {
|
|
|
6007
6010
|
props: [
|
|
6008
6011
|
"defaultActiveTab",
|
|
6009
6012
|
"tabs",
|
|
6013
|
+
"activeTabStyle",
|
|
6010
6014
|
"collapsible",
|
|
6011
6015
|
"tabHeaderLayout",
|
|
6012
|
-
"activeTabStyle",
|
|
6013
6016
|
"builderBlock",
|
|
6014
6017
|
"builderContext",
|
|
6015
6018
|
"builderComponents",
|
|
@@ -6022,6 +6025,9 @@ const tl = /* @__PURE__ */ j(Za, [["render", el]]), nl = {
|
|
|
6022
6025
|
activeTabContent(e) {
|
|
6023
6026
|
return this.tabs && this.tabs[e].content;
|
|
6024
6027
|
},
|
|
6028
|
+
getTabStyle(e) {
|
|
6029
|
+
return e === this.activeTab ? this.activeTabStyle : {};
|
|
6030
|
+
},
|
|
6025
6031
|
onClick(e) {
|
|
6026
6032
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
6027
6033
|
}
|
|
@@ -6029,25 +6035,23 @@ const tl = /* @__PURE__ */ j(Za, [["render", el]]), nl = {
|
|
|
6029
6035
|
}), il = ["onClick"], sl = { key: 0 };
|
|
6030
6036
|
function al(e, t, n, r, o, i) {
|
|
6031
6037
|
const s = W("Blocks");
|
|
6032
|
-
return
|
|
6033
|
-
|
|
6038
|
+
return v(), w("div", null, [
|
|
6039
|
+
Ge("div", {
|
|
6034
6040
|
class: "builder-tabs-wrap",
|
|
6035
|
-
style:
|
|
6041
|
+
style: Pe({
|
|
6036
6042
|
display: "flex",
|
|
6037
6043
|
flexDirection: "row",
|
|
6038
6044
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
6039
6045
|
overflow: "auto"
|
|
6040
6046
|
})
|
|
6041
6047
|
}, [
|
|
6042
|
-
(
|
|
6048
|
+
(v(!0), w(z, null, ve(e.tabs, (u, c) => (v(), w("span", {
|
|
6043
6049
|
key: c,
|
|
6044
6050
|
class: gt(`builder-tab-wrap ${e.activeTab === c ? "builder-tab-active" : ""}`),
|
|
6045
|
-
style:
|
|
6046
|
-
...e.activeTab === c ? e.activeTabStyle : {}
|
|
6047
|
-
}),
|
|
6051
|
+
style: Pe(e.getTabStyle(c)),
|
|
6048
6052
|
onClick: async (h) => e.onClick(c)
|
|
6049
6053
|
}, [
|
|
6050
|
-
|
|
6054
|
+
ee(s, {
|
|
6051
6055
|
parent: e.builderBlock.id,
|
|
6052
6056
|
path: `tabs.${c}.label`,
|
|
6053
6057
|
blocks: u.label,
|
|
@@ -6057,8 +6061,8 @@ function al(e, t, n, r, o, i) {
|
|
|
6057
6061
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
6058
6062
|
], 14, il))), 128))
|
|
6059
6063
|
], 4),
|
|
6060
|
-
e.activeTabContent(e.activeTab) ? (
|
|
6061
|
-
|
|
6064
|
+
e.activeTabContent(e.activeTab) ? (v(), w("div", sl, [
|
|
6065
|
+
ee(s, {
|
|
6062
6066
|
parent: e.builderBlock.id,
|
|
6063
6067
|
path: `tabs.${e.activeTab}.content`,
|
|
6064
6068
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -6066,14 +6070,13 @@ function al(e, t, n, r, o, i) {
|
|
|
6066
6070
|
registeredComponents: e.builderComponents,
|
|
6067
6071
|
linkComponent: e.builderLinkComponent
|
|
6068
6072
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
6069
|
-
])) :
|
|
6073
|
+
])) : F("", !0)
|
|
6070
6074
|
]);
|
|
6071
6075
|
}
|
|
6072
6076
|
const ll = /* @__PURE__ */ j(ol, [["render", al]]), ul = {
|
|
6073
6077
|
shouldReceiveBuilderProps: {},
|
|
6074
6078
|
name: "Text",
|
|
6075
6079
|
static: !0,
|
|
6076
|
-
isRSC: !0,
|
|
6077
6080
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
6078
6081
|
inputs: [{
|
|
6079
6082
|
name: "text",
|
|
@@ -6094,7 +6097,7 @@ const ll = /* @__PURE__ */ j(ol, [["render", al]]), ul = {
|
|
|
6094
6097
|
}), pl = ["innerHTML"];
|
|
6095
6098
|
function dl(e, t, n, r, o, i) {
|
|
6096
6099
|
var s;
|
|
6097
|
-
return
|
|
6100
|
+
return v(), w("div", {
|
|
6098
6101
|
class: "builder-text",
|
|
6099
6102
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
6100
6103
|
style: {
|
|
@@ -6136,7 +6139,7 @@ const fl = /* @__PURE__ */ j(cl, [["render", dl]]), hl = {
|
|
|
6136
6139
|
watch: {
|
|
6137
6140
|
onUpdateHook0: {
|
|
6138
6141
|
handler() {
|
|
6139
|
-
|
|
6142
|
+
oe() && setTimeout(() => {
|
|
6140
6143
|
this.runScripts();
|
|
6141
6144
|
}, 0);
|
|
6142
6145
|
},
|
|
@@ -6185,7 +6188,7 @@ const fl = /* @__PURE__ */ j(cl, [["render", dl]]), hl = {
|
|
|
6185
6188
|
}
|
|
6186
6189
|
}), gl = ["innerHTML"];
|
|
6187
6190
|
function yl(e, t, n, r, o, i) {
|
|
6188
|
-
return
|
|
6191
|
+
return v(), w("div", {
|
|
6189
6192
|
ref: "elementRef",
|
|
6190
6193
|
class: gt("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
6191
6194
|
innerHTML: e.code
|
|
@@ -6249,14 +6252,14 @@ const vl = /* @__PURE__ */ j(ml, [["render", yl]]), bl = {
|
|
|
6249
6252
|
}
|
|
6250
6253
|
}
|
|
6251
6254
|
}), wl = ["innerHTML"];
|
|
6252
|
-
function
|
|
6253
|
-
return
|
|
6255
|
+
function Tl(e, t, n, r, o, i) {
|
|
6256
|
+
return v(), w("div", {
|
|
6254
6257
|
class: "builder-embed",
|
|
6255
6258
|
ref: "elem",
|
|
6256
6259
|
innerHTML: e.content
|
|
6257
6260
|
}, null, 8, wl);
|
|
6258
6261
|
}
|
|
6259
|
-
const
|
|
6262
|
+
const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
6260
6263
|
name: "Form:Form",
|
|
6261
6264
|
// editableTags: ['builder-form-error']
|
|
6262
6265
|
defaults: {
|
|
@@ -6496,7 +6499,7 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6496
6499
|
}, Rl = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Al = () => {
|
|
6497
6500
|
const e = process.env.NODE_ENV || "production";
|
|
6498
6501
|
return Rl.includes(e) ? e : "production";
|
|
6499
|
-
},
|
|
6502
|
+
}, xl = B({
|
|
6500
6503
|
name: "builder-form-component",
|
|
6501
6504
|
components: { Blocks: Ue },
|
|
6502
6505
|
props: [
|
|
@@ -6524,7 +6527,7 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6524
6527
|
formState: "unsubmitted",
|
|
6525
6528
|
responseData: null,
|
|
6526
6529
|
formErrorMessage: "",
|
|
6527
|
-
filterAttrs:
|
|
6530
|
+
filterAttrs: de
|
|
6528
6531
|
};
|
|
6529
6532
|
},
|
|
6530
6533
|
methods: {
|
|
@@ -6537,7 +6540,10 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6537
6540
|
this.builderContext.rootSetState ? (r = (n = this.builderContext).rootSetState) == null || r.call(n, t) : this.builderContext.rootState = t;
|
|
6538
6541
|
},
|
|
6539
6542
|
submissionState() {
|
|
6540
|
-
return
|
|
6543
|
+
return oe() && this.previewState || this.formState;
|
|
6544
|
+
},
|
|
6545
|
+
errorResponse(e) {
|
|
6546
|
+
return JSON.stringify(e, null, 2);
|
|
6541
6547
|
},
|
|
6542
6548
|
onSubmit(e) {
|
|
6543
6549
|
var n;
|
|
@@ -6567,8 +6573,8 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6567
6573
|
} else if (m.type === "checkbox")
|
|
6568
6574
|
S = m.checked;
|
|
6569
6575
|
else if (m.type === "number" || m.type === "range") {
|
|
6570
|
-
const
|
|
6571
|
-
isNaN(
|
|
6576
|
+
const x = m.valueAsNumber;
|
|
6577
|
+
isNaN(x) || (S = x);
|
|
6572
6578
|
} else
|
|
6573
6579
|
m.type === "file" ? S = m.files : S = m.value;
|
|
6574
6580
|
else
|
|
@@ -6604,56 +6610,56 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6604
6610
|
});
|
|
6605
6611
|
return;
|
|
6606
6612
|
}
|
|
6607
|
-
const
|
|
6613
|
+
const y = `${Al() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
6608
6614
|
this.sendSubmissionsToEmail || ""
|
|
6609
|
-
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ?
|
|
6610
|
-
|
|
6615
|
+
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? y : this.action;
|
|
6616
|
+
Fn(b), fetch(b, {
|
|
6611
6617
|
body: i,
|
|
6612
6618
|
headers: o,
|
|
6613
6619
|
method: this.method || "post"
|
|
6614
6620
|
}).then(
|
|
6615
6621
|
async (m) => {
|
|
6616
|
-
var
|
|
6622
|
+
var x, H;
|
|
6617
6623
|
let S;
|
|
6618
6624
|
const A = m.headers.get("content-type");
|
|
6619
6625
|
if (A && A.indexOf("application/json") !== -1 ? S = await m.json() : S = await m.text(), !m.ok) {
|
|
6620
|
-
const
|
|
6626
|
+
const te = new CustomEvent("submit:error", {
|
|
6621
6627
|
detail: {
|
|
6622
6628
|
error: S,
|
|
6623
6629
|
status: m.status
|
|
6624
6630
|
}
|
|
6625
6631
|
});
|
|
6626
|
-
if ((
|
|
6627
|
-
|
|
6628
|
-
),
|
|
6632
|
+
if ((x = this.$refs.formRef) != null && x.nativeElement && ((H = this.$refs.formRef) == null || H.nativeElement.dispatchEvent(
|
|
6633
|
+
te
|
|
6634
|
+
), te.defaultPrevented))
|
|
6629
6635
|
return;
|
|
6630
6636
|
this.responseData = S, this.formState = "error";
|
|
6631
|
-
let
|
|
6632
|
-
typeof
|
|
6633
|
-
formErrorMessage:
|
|
6637
|
+
let E = this.errorMessagePath ? Kr(S, this.errorMessagePath) : S.message || S.error || S;
|
|
6638
|
+
typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
6639
|
+
formErrorMessage: E
|
|
6634
6640
|
});
|
|
6635
6641
|
return;
|
|
6636
6642
|
}
|
|
6637
6643
|
if (this.responseData = S, this.formState = m.ok ? "success" : "error", m.ok) {
|
|
6638
|
-
const
|
|
6644
|
+
const te = new CustomEvent("submit:success", {
|
|
6639
6645
|
detail: {
|
|
6640
6646
|
res: m,
|
|
6641
6647
|
body: S
|
|
6642
6648
|
}
|
|
6643
6649
|
});
|
|
6644
6650
|
if (this.$refs.formRef) {
|
|
6645
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
6651
|
+
if (this.$refs.formRef.dispatchEvent(te), te.defaultPrevented)
|
|
6646
6652
|
return;
|
|
6647
6653
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
6648
6654
|
}
|
|
6649
6655
|
if (this.successUrl)
|
|
6650
6656
|
if (this.$refs.formRef) {
|
|
6651
|
-
const
|
|
6657
|
+
const E = new CustomEvent("route", {
|
|
6652
6658
|
detail: {
|
|
6653
6659
|
url: this.successUrl
|
|
6654
6660
|
}
|
|
6655
6661
|
});
|
|
6656
|
-
this.$refs.formRef.dispatchEvent(
|
|
6662
|
+
this.$refs.formRef.dispatchEvent(E), E.defaultPrevented || (location.href = this.successUrl);
|
|
6657
6663
|
} else
|
|
6658
6664
|
location.href = this.successUrl;
|
|
6659
6665
|
}
|
|
@@ -6670,13 +6676,13 @@ const Tl = /* @__PURE__ */ j(Cl, [["render", El]]), Il = {
|
|
|
6670
6676
|
}
|
|
6671
6677
|
}
|
|
6672
6678
|
}
|
|
6673
|
-
}),
|
|
6679
|
+
}), $l = ["validate", "action", "method", "name"], Pl = {
|
|
6674
6680
|
key: 2,
|
|
6675
|
-
class: "builder-form-error-text pre-
|
|
6681
|
+
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
6676
6682
|
};
|
|
6677
6683
|
function Ol(e, t, n, r, o, i) {
|
|
6678
6684
|
const s = W("Blocks");
|
|
6679
|
-
return
|
|
6685
|
+
return v(), w("form", q({
|
|
6680
6686
|
validate: e.validate,
|
|
6681
6687
|
ref: "formRef",
|
|
6682
6688
|
action: !e.sendWithJs && e.action,
|
|
@@ -6685,28 +6691,28 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6685
6691
|
onSubmit: t[0] || (t[0] = async (u) => e.onSubmit(u))
|
|
6686
6692
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6687
6693
|
pe(e.$slots, "default", {}, void 0, !0),
|
|
6688
|
-
e.submissionState() === "error" ? (
|
|
6694
|
+
e.submissionState() === "error" ? (v(), U(s, {
|
|
6689
6695
|
key: 0,
|
|
6690
6696
|
path: "errorMessage",
|
|
6691
6697
|
blocks: e.errorMessage,
|
|
6692
6698
|
context: e.builderContext
|
|
6693
|
-
}, null, 8, ["blocks", "context"])) :
|
|
6694
|
-
e.submissionState() === "sending" ? (
|
|
6699
|
+
}, null, 8, ["blocks", "context"])) : F("", !0),
|
|
6700
|
+
e.submissionState() === "sending" ? (v(), U(s, {
|
|
6695
6701
|
key: 1,
|
|
6696
6702
|
path: "sendingMessage",
|
|
6697
6703
|
blocks: e.sendingMessage,
|
|
6698
6704
|
context: e.builderContext
|
|
6699
|
-
}, null, 8, ["blocks", "context"])) :
|
|
6700
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
6701
|
-
e.submissionState() === "success" ? (
|
|
6705
|
+
}, null, 8, ["blocks", "context"])) : F("", !0),
|
|
6706
|
+
e.submissionState() === "error" && e.responseData ? (v(), w("pre", Pl, Ut(e.errorResponse(e.responseData)), 1)) : F("", !0),
|
|
6707
|
+
e.submissionState() === "success" ? (v(), U(s, {
|
|
6702
6708
|
key: 3,
|
|
6703
6709
|
path: "successMessage",
|
|
6704
6710
|
blocks: e.successMessage,
|
|
6705
6711
|
context: e.builderContext
|
|
6706
|
-
}, null, 8, ["blocks", "context"])) :
|
|
6707
|
-
], 16,
|
|
6712
|
+
}, null, 8, ["blocks", "context"])) : F("", !0)
|
|
6713
|
+
], 16, $l);
|
|
6708
6714
|
}
|
|
6709
|
-
const Nl = /* @__PURE__ */ j(
|
|
6715
|
+
const Nl = /* @__PURE__ */ j(xl, [["render", Ol], ["__scopeId", "data-v-77c7888c"]]), Bl = {
|
|
6710
6716
|
name: "Form:Input",
|
|
6711
6717
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6712
6718
|
inputs: [
|
|
@@ -6769,11 +6775,11 @@ const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-158ccfce
|
|
|
6769
6775
|
"required"
|
|
6770
6776
|
],
|
|
6771
6777
|
data() {
|
|
6772
|
-
return { isEditing:
|
|
6778
|
+
return { isEditing: oe, filterAttrs: de };
|
|
6773
6779
|
}
|
|
6774
6780
|
}), Vl = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6775
6781
|
function Dl(e, t, n, r, o, i) {
|
|
6776
|
-
return
|
|
6782
|
+
return v(), w("input", q({
|
|
6777
6783
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6778
6784
|
placeholder: e.placeholder,
|
|
6779
6785
|
type: e.type,
|
|
@@ -6825,28 +6831,28 @@ const Ul = /* @__PURE__ */ j(jl, [["render", Dl]]), Wl = {
|
|
|
6825
6831
|
}],
|
|
6826
6832
|
static: !0,
|
|
6827
6833
|
noWrap: !0
|
|
6828
|
-
},
|
|
6834
|
+
}, Ll = B({
|
|
6829
6835
|
name: "builder-select-component",
|
|
6830
6836
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
6831
6837
|
data() {
|
|
6832
|
-
return { isEditing:
|
|
6838
|
+
return { isEditing: oe, filterAttrs: de };
|
|
6833
6839
|
}
|
|
6834
|
-
}),
|
|
6840
|
+
}), Fl = ["value", "defaultValue", "name", "required"], Ml = ["value"];
|
|
6835
6841
|
function Hl(e, t, n, r, o, i) {
|
|
6836
|
-
return
|
|
6842
|
+
return v(), w("select", q({
|
|
6837
6843
|
value: e.value,
|
|
6838
6844
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6839
6845
|
defaultValue: e.defaultValue,
|
|
6840
6846
|
name: e.name,
|
|
6841
6847
|
required: e.required
|
|
6842
6848
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6843
|
-
(
|
|
6849
|
+
(v(!0), w(z, null, ve(e.options, (s, u) => (v(), w("option", {
|
|
6844
6850
|
key: `${s.name}-${u}`,
|
|
6845
6851
|
value: s.value
|
|
6846
6852
|
}, Ut(s.name || s.value), 9, Ml))), 128))
|
|
6847
|
-
], 16,
|
|
6853
|
+
], 16, Fl);
|
|
6848
6854
|
}
|
|
6849
|
-
const Kl = /* @__PURE__ */ j(
|
|
6855
|
+
const Kl = /* @__PURE__ */ j(Ll, [["render", Hl]]), zl = {
|
|
6850
6856
|
name: "Form:SubmitButton",
|
|
6851
6857
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
6852
6858
|
defaultStyles: {
|
|
@@ -6875,11 +6881,11 @@ const Kl = /* @__PURE__ */ j(Fl, [["render", Hl]]), zl = {
|
|
|
6875
6881
|
name: "builder-submit-button",
|
|
6876
6882
|
props: ["attributes", "text"],
|
|
6877
6883
|
data() {
|
|
6878
|
-
return { filterAttrs:
|
|
6884
|
+
return { filterAttrs: de };
|
|
6879
6885
|
}
|
|
6880
6886
|
});
|
|
6881
6887
|
function Gl(e, t, n, r, o, i) {
|
|
6882
|
-
return
|
|
6888
|
+
return v(), w("button", q({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Ut(e.text), 17);
|
|
6883
6889
|
}
|
|
6884
6890
|
const _l = /* @__PURE__ */ j(ql, [["render", Gl]]), Jl = {
|
|
6885
6891
|
name: "Form:TextArea",
|
|
@@ -6928,11 +6934,11 @@ const _l = /* @__PURE__ */ j(ql, [["render", Gl]]), Jl = {
|
|
|
6928
6934
|
"required"
|
|
6929
6935
|
],
|
|
6930
6936
|
data() {
|
|
6931
|
-
return { filterAttrs:
|
|
6937
|
+
return { filterAttrs: de };
|
|
6932
6938
|
}
|
|
6933
6939
|
}), Yl = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
6934
6940
|
function Ql(e, t, n, r, o, i) {
|
|
6935
|
-
return
|
|
6941
|
+
return v(), w("textarea", q({
|
|
6936
6942
|
placeholder: e.placeholder,
|
|
6937
6943
|
name: e.name,
|
|
6938
6944
|
value: e.value,
|
|
@@ -6941,7 +6947,6 @@ function Ql(e, t, n, r, o, i) {
|
|
|
6941
6947
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yl);
|
|
6942
6948
|
}
|
|
6943
6949
|
const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
6944
|
-
// friendlyName?
|
|
6945
6950
|
name: "Raw:Img",
|
|
6946
6951
|
hideFromInsertMenu: !0,
|
|
6947
6952
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -6951,42 +6956,86 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
6951
6956
|
type: "file",
|
|
6952
6957
|
allowedFileTypes: qn,
|
|
6953
6958
|
required: !0
|
|
6959
|
+
}, {
|
|
6960
|
+
name: "backgroundSize",
|
|
6961
|
+
type: "text",
|
|
6962
|
+
defaultValue: "cover",
|
|
6963
|
+
enum: [{
|
|
6964
|
+
label: "contain",
|
|
6965
|
+
value: "contain",
|
|
6966
|
+
helperText: "The image should never get cropped"
|
|
6967
|
+
}, {
|
|
6968
|
+
label: "cover",
|
|
6969
|
+
value: "cover",
|
|
6970
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
6971
|
+
}]
|
|
6972
|
+
}, {
|
|
6973
|
+
name: "backgroundPosition",
|
|
6974
|
+
type: "text",
|
|
6975
|
+
defaultValue: "center",
|
|
6976
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
6977
|
+
}, {
|
|
6978
|
+
name: "altText",
|
|
6979
|
+
type: "string",
|
|
6980
|
+
helperText: "Text to display when the user has images off"
|
|
6981
|
+
}, {
|
|
6982
|
+
name: "title",
|
|
6983
|
+
type: "string",
|
|
6984
|
+
helperText: "Text to display when hovering over the asset"
|
|
6985
|
+
}, {
|
|
6986
|
+
name: "aspectRatio",
|
|
6987
|
+
type: "number",
|
|
6988
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
6989
|
+
advanced: !0,
|
|
6990
|
+
defaultValue: 0.7041
|
|
6954
6991
|
}],
|
|
6955
|
-
noWrap: !0
|
|
6956
|
-
static: !0
|
|
6992
|
+
noWrap: !0
|
|
6957
6993
|
}, tu = B({
|
|
6958
6994
|
name: "builder-img-component",
|
|
6959
6995
|
props: [
|
|
6960
6996
|
"imgSrc",
|
|
6961
6997
|
"image",
|
|
6998
|
+
"attributes",
|
|
6999
|
+
"altText",
|
|
7000
|
+
"title",
|
|
6962
7001
|
"backgroundSize",
|
|
6963
7002
|
"backgroundPosition",
|
|
6964
|
-
"
|
|
6965
|
-
"attributes"
|
|
7003
|
+
"aspectRatio"
|
|
6966
7004
|
],
|
|
6967
7005
|
data() {
|
|
6968
|
-
return { isEditing:
|
|
7006
|
+
return { isEditing: oe };
|
|
6969
7007
|
},
|
|
6970
7008
|
computed: {
|
|
6971
7009
|
srcSetToUse() {
|
|
6972
7010
|
const e = this.imgSrc || this.image;
|
|
6973
7011
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
6974
7012
|
return Ot(e);
|
|
7013
|
+
},
|
|
7014
|
+
imgAttrs() {
|
|
7015
|
+
const e = {
|
|
7016
|
+
...de(this.attributes, "v-on:", !1),
|
|
7017
|
+
...de(this.attributes, "v-on:", !0),
|
|
7018
|
+
[Oe()]: `builder-raw-img ${this.attributes[Oe()] || ""}`
|
|
7019
|
+
};
|
|
7020
|
+
return delete e.style, e;
|
|
6975
7021
|
}
|
|
6976
7022
|
}
|
|
6977
|
-
}), nu = ["alt", "
|
|
7023
|
+
}), nu = ["alt", "title", "src"];
|
|
6978
7024
|
function ru(e, t, n, r, o, i) {
|
|
6979
|
-
|
|
7025
|
+
var s;
|
|
7026
|
+
return v(), w("img", q({
|
|
6980
7027
|
loading: "lazy",
|
|
6981
|
-
style: {
|
|
6982
|
-
objectFit: e.backgroundSize || "cover",
|
|
6983
|
-
objectPosition: e.backgroundPosition || "center"
|
|
6984
|
-
},
|
|
6985
7028
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
6986
7029
|
alt: e.altText,
|
|
7030
|
+
title: e.title,
|
|
6987
7031
|
src: e.imgSrc || e.image,
|
|
6988
|
-
|
|
6989
|
-
|
|
7032
|
+
style: {
|
|
7033
|
+
objectFit: e.backgroundSize || "cover",
|
|
7034
|
+
objectPosition: e.backgroundPosition || "center",
|
|
7035
|
+
aspectRatio: e.aspectRatio || void 0,
|
|
7036
|
+
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
7037
|
+
}
|
|
7038
|
+
}, e.imgAttrs), null, 16, nu);
|
|
6990
7039
|
}
|
|
6991
7040
|
const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
6992
7041
|
name: "Video",
|
|
@@ -7169,9 +7218,9 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7169
7218
|
}
|
|
7170
7219
|
};
|
|
7171
7220
|
function pu(e, t, n, r, o, i) {
|
|
7172
|
-
var s, u, c, h,
|
|
7173
|
-
return
|
|
7174
|
-
|
|
7221
|
+
var s, u, c, h, y, b, m;
|
|
7222
|
+
return v(), w("div", au, [
|
|
7223
|
+
Ge("video", q({
|
|
7175
7224
|
class: "builder-video",
|
|
7176
7225
|
ref: "videoRef",
|
|
7177
7226
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -7190,7 +7239,7 @@ function pu(e, t, n, r, o, i) {
|
|
|
7190
7239
|
},
|
|
7191
7240
|
poster: e.posterImage
|
|
7192
7241
|
}, e.spreadProps), [
|
|
7193
|
-
|
|
7242
|
+
Ge("source", q(
|
|
7194
7243
|
{ type: "video/mp4" },
|
|
7195
7244
|
e.lazyLoad ? {
|
|
7196
7245
|
"data-src": e.video
|
|
@@ -7199,28 +7248,28 @@ function pu(e, t, n, r, o, i) {
|
|
|
7199
7248
|
}
|
|
7200
7249
|
), null, 16)
|
|
7201
7250
|
], 16, lu),
|
|
7202
|
-
e.aspectRatio && !(e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length)) ? (
|
|
7251
|
+
e.aspectRatio && !(e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length)) ? (v(), w("div", {
|
|
7203
7252
|
key: 0,
|
|
7204
|
-
style:
|
|
7253
|
+
style: Pe({
|
|
7205
7254
|
width: "100%",
|
|
7206
7255
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
7207
7256
|
pointerEvents: "none",
|
|
7208
7257
|
fontSize: "0px"
|
|
7209
7258
|
})
|
|
7210
|
-
}, null, 4)) :
|
|
7211
|
-
(
|
|
7259
|
+
}, null, 4)) : F("", !0),
|
|
7260
|
+
(y = (h = e.builderBlock) == null ? void 0 : h.children) != null && y.length && e.fitContent ? (v(), w("div", uu, [
|
|
7212
7261
|
pe(e.$slots, "default")
|
|
7213
|
-
])) :
|
|
7214
|
-
(m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? (
|
|
7262
|
+
])) : F("", !0),
|
|
7263
|
+
(m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? (v(), w("div", cu, [
|
|
7215
7264
|
pe(e.$slots, "default")
|
|
7216
|
-
])) :
|
|
7265
|
+
])) : F("", !0)
|
|
7217
7266
|
]);
|
|
7218
7267
|
}
|
|
7219
7268
|
const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
7220
7269
|
component: vl,
|
|
7221
7270
|
...hl
|
|
7222
7271
|
}, {
|
|
7223
|
-
component:
|
|
7272
|
+
component: El,
|
|
7224
7273
|
...bl
|
|
7225
7274
|
}, {
|
|
7226
7275
|
component: Nl,
|
|
@@ -7256,7 +7305,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7256
7305
|
component: Ca,
|
|
7257
7306
|
...qa
|
|
7258
7307
|
}, {
|
|
7259
|
-
component:
|
|
7308
|
+
component: Ea,
|
|
7260
7309
|
...Ya
|
|
7261
7310
|
}, {
|
|
7262
7311
|
component: tl,
|
|
@@ -7274,7 +7323,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7274
7323
|
component: ll,
|
|
7275
7324
|
...rl
|
|
7276
7325
|
}, {
|
|
7277
|
-
component:
|
|
7326
|
+
component: Fa,
|
|
7278
7327
|
...Va
|
|
7279
7328
|
}, ...fu()], hu = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
7280
7329
|
function getAndSetVariantId() {
|
|
@@ -7388,7 +7437,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7388
7437
|
}) => `window.${Oo}(
|
|
7389
7438
|
"${t}", "${e}", ${No}
|
|
7390
7439
|
)`;
|
|
7391
|
-
function
|
|
7440
|
+
function Lr(e) {
|
|
7392
7441
|
return Math.round(e * 1e3) / 1e3;
|
|
7393
7442
|
}
|
|
7394
7443
|
const Cu = (e, t, n = !0) => {
|
|
@@ -7405,32 +7454,32 @@ const Cu = (e, t, n = !0) => {
|
|
|
7405
7454
|
}, wu = (e) => Cu(e, (t) => {
|
|
7406
7455
|
const n = t.getAttribute("builder-id") || t.id;
|
|
7407
7456
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
7408
|
-
}),
|
|
7457
|
+
}), Fr = ({
|
|
7409
7458
|
event: e,
|
|
7410
7459
|
target: t
|
|
7411
7460
|
}) => {
|
|
7412
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
7461
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = Lr(r / n.width), s = Lr(o / n.height);
|
|
7413
7462
|
return {
|
|
7414
7463
|
x: i,
|
|
7415
7464
|
y: s
|
|
7416
7465
|
};
|
|
7417
|
-
},
|
|
7466
|
+
}, Tu = (e) => {
|
|
7418
7467
|
const t = e.target, n = t && wu(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
7419
7468
|
return {
|
|
7420
7469
|
targetBuilderElement: r || void 0,
|
|
7421
7470
|
metadata: {
|
|
7422
|
-
targetOffset: t ?
|
|
7471
|
+
targetOffset: t ? Fr({
|
|
7423
7472
|
event: e,
|
|
7424
7473
|
target: t
|
|
7425
7474
|
}) : void 0,
|
|
7426
|
-
builderTargetOffset: n ?
|
|
7475
|
+
builderTargetOffset: n ? Fr({
|
|
7427
7476
|
event: e,
|
|
7428
7477
|
target: n
|
|
7429
7478
|
}) : void 0,
|
|
7430
7479
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
7431
7480
|
}
|
|
7432
7481
|
};
|
|
7433
|
-
},
|
|
7482
|
+
}, Eu = ["svelte", "qwik", "vue"], Iu = () => Eu.includes(G) && (oe() || Wn()), Ru = (e) => {
|
|
7434
7483
|
var i;
|
|
7435
7484
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
7436
7485
|
let o = "";
|
|
@@ -7461,10 +7510,10 @@ font-weight: ${s};
|
|
|
7461
7510
|
}) => {
|
|
7462
7511
|
var t;
|
|
7463
7512
|
return ((t = e == null ? void 0 : e.map((n) => Ru(n))) == null ? void 0 : t.join(" ")) || "";
|
|
7464
|
-
},
|
|
7513
|
+
}, xu = ({
|
|
7465
7514
|
cssCode: e,
|
|
7466
7515
|
contentId: t
|
|
7467
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
7516
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $u = `
|
|
7468
7517
|
.builder-button {
|
|
7469
7518
|
all: unset;
|
|
7470
7519
|
}
|
|
@@ -7481,7 +7530,7 @@ font-weight: ${s};
|
|
|
7481
7530
|
text-align: inherit;
|
|
7482
7531
|
font-family: inherit;
|
|
7483
7532
|
}
|
|
7484
|
-
`, Pu = (e) => e ? "" :
|
|
7533
|
+
`, Pu = (e) => e ? "" : $u, Ou = (e) => `variant-${e}`, Nu = B({
|
|
7485
7534
|
name: "enable-editor",
|
|
7486
7535
|
components: { DynamicDiv: Ct },
|
|
7487
7536
|
props: [
|
|
@@ -7504,6 +7553,9 @@ font-weight: ${s};
|
|
|
7504
7553
|
data() {
|
|
7505
7554
|
return {
|
|
7506
7555
|
hasExecuted: !1,
|
|
7556
|
+
contextValue: this.builderContextSignal,
|
|
7557
|
+
prevData: null,
|
|
7558
|
+
prevLocale: "",
|
|
7507
7559
|
ContentWrapper: this.contentWrapper || "div",
|
|
7508
7560
|
httpReqsData: {},
|
|
7509
7561
|
httpReqsPending: {},
|
|
@@ -7525,10 +7577,10 @@ font-weight: ${s};
|
|
|
7525
7577
|
mounted() {
|
|
7526
7578
|
var e, t, n;
|
|
7527
7579
|
if (M()) {
|
|
7528
|
-
|
|
7580
|
+
oe() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7529
7581
|
new CustomEvent("initeditingbldr")
|
|
7530
7582
|
);
|
|
7531
|
-
const r = this.builderContextSignal.content && Xe(this.canTrack), o =
|
|
7583
|
+
const r = this.builderContextSignal.content && Xe(this.canTrack), o = Ft({
|
|
7532
7584
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
7533
7585
|
canTrack: !0
|
|
7534
7586
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
@@ -7543,7 +7595,7 @@ font-weight: ${s};
|
|
|
7543
7595
|
variationId: o !== s ? o : void 0
|
|
7544
7596
|
});
|
|
7545
7597
|
}
|
|
7546
|
-
Wn() && !
|
|
7598
|
+
Wn() && !oe() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7547
7599
|
new CustomEvent("initpreviewingbldr")
|
|
7548
7600
|
);
|
|
7549
7601
|
}
|
|
@@ -7563,15 +7615,23 @@ font-weight: ${s};
|
|
|
7563
7615
|
},
|
|
7564
7616
|
onUpdateHook2: {
|
|
7565
7617
|
handler() {
|
|
7566
|
-
|
|
7618
|
+
if (this.data) {
|
|
7619
|
+
if (this.prevData === this.data)
|
|
7620
|
+
return;
|
|
7621
|
+
this.mergeNewRootState(this.data), this.prevData = this.data;
|
|
7622
|
+
}
|
|
7567
7623
|
},
|
|
7568
7624
|
immediate: !0
|
|
7569
7625
|
},
|
|
7570
7626
|
onUpdateHook3: {
|
|
7571
7627
|
handler() {
|
|
7572
|
-
this.locale
|
|
7573
|
-
|
|
7574
|
-
|
|
7628
|
+
if (this.locale) {
|
|
7629
|
+
if (this.prevLocale === this.locale)
|
|
7630
|
+
return;
|
|
7631
|
+
this.mergeNewRootState({
|
|
7632
|
+
locale: this.locale
|
|
7633
|
+
}), this.prevLocale = this.locale;
|
|
7634
|
+
}
|
|
7575
7635
|
},
|
|
7576
7636
|
immediate: !0
|
|
7577
7637
|
}
|
|
@@ -7611,30 +7671,30 @@ font-weight: ${s};
|
|
|
7611
7671
|
}
|
|
7612
7672
|
},
|
|
7613
7673
|
methods: {
|
|
7614
|
-
mergeNewRootState(e) {
|
|
7615
|
-
var
|
|
7616
|
-
const
|
|
7674
|
+
mergeNewRootState(e, t) {
|
|
7675
|
+
var r, o;
|
|
7676
|
+
const n = {
|
|
7617
7677
|
...this.builderContextSignal.rootState,
|
|
7618
7678
|
...e
|
|
7619
7679
|
};
|
|
7620
|
-
this.builderContextSignal.rootSetState ? (
|
|
7680
|
+
this.builderContextSignal.rootSetState ? (o = (r = this.builderContextSignal).rootSetState) == null || o.call(r, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
|
|
7621
7681
|
},
|
|
7622
|
-
mergeNewContent(e) {
|
|
7623
|
-
var
|
|
7624
|
-
const
|
|
7682
|
+
mergeNewContent(e, t) {
|
|
7683
|
+
var r, o, i, s, u;
|
|
7684
|
+
const n = {
|
|
7625
7685
|
...this.builderContextSignal.content,
|
|
7626
7686
|
...e,
|
|
7627
7687
|
data: {
|
|
7628
|
-
...(
|
|
7688
|
+
...(r = this.builderContextSignal.content) == null ? void 0 : r.data,
|
|
7629
7689
|
...e == null ? void 0 : e.data
|
|
7630
7690
|
},
|
|
7631
7691
|
meta: {
|
|
7632
|
-
...(
|
|
7692
|
+
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
7633
7693
|
...e == null ? void 0 : e.meta,
|
|
7634
|
-
breakpoints: ((
|
|
7694
|
+
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((u = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : u.breakpoints)
|
|
7635
7695
|
}
|
|
7636
7696
|
};
|
|
7637
|
-
this.builderContextSignal.content =
|
|
7697
|
+
this.builderContextSignal.content = n;
|
|
7638
7698
|
},
|
|
7639
7699
|
processMessage(e) {
|
|
7640
7700
|
return fo({
|
|
@@ -7653,11 +7713,11 @@ font-weight: ${s};
|
|
|
7653
7713
|
animation: (t) => {
|
|
7654
7714
|
So(t);
|
|
7655
7715
|
},
|
|
7656
|
-
contentUpdate: (t) => {
|
|
7657
|
-
this.mergeNewContent(t);
|
|
7716
|
+
contentUpdate: (t, n) => {
|
|
7717
|
+
this.mergeNewContent(t, n);
|
|
7658
7718
|
},
|
|
7659
|
-
stateUpdate: (t) => {
|
|
7660
|
-
this.mergeNewRootState(t);
|
|
7719
|
+
stateUpdate: (t, n) => {
|
|
7720
|
+
this.mergeNewRootState(t, n);
|
|
7661
7721
|
}
|
|
7662
7722
|
}
|
|
7663
7723
|
})(e);
|
|
@@ -7673,7 +7733,7 @@ font-weight: ${s};
|
|
|
7673
7733
|
contentId: o,
|
|
7674
7734
|
apiKey: this.apiKey,
|
|
7675
7735
|
variationId: r !== o ? r : void 0,
|
|
7676
|
-
...
|
|
7736
|
+
...Tu(e),
|
|
7677
7737
|
unique: !this.clicked
|
|
7678
7738
|
});
|
|
7679
7739
|
}
|
|
@@ -7687,15 +7747,15 @@ font-weight: ${s};
|
|
|
7687
7747
|
if (!o)
|
|
7688
7748
|
return;
|
|
7689
7749
|
const i = typeof o == "object" && o["@type"] === "@builder.io/core:Request";
|
|
7690
|
-
if (this.httpReqsPending[r] || this.httpReqsData[r] && !
|
|
7750
|
+
if (this.httpReqsPending[r] || this.httpReqsData[r] && !oe())
|
|
7691
7751
|
return;
|
|
7692
7752
|
const s = i ? o.request.url : o;
|
|
7693
7753
|
this.httpReqsPending[r] = !0;
|
|
7694
7754
|
const u = s.replace(
|
|
7695
7755
|
/{{([^}]+)}}/g,
|
|
7696
|
-
(
|
|
7756
|
+
(y, b) => String(
|
|
7697
7757
|
kt({
|
|
7698
|
-
code:
|
|
7758
|
+
code: b,
|
|
7699
7759
|
context: this.context || {},
|
|
7700
7760
|
localState: void 0,
|
|
7701
7761
|
rootState: this.builderContextSignal.rootState,
|
|
@@ -7711,19 +7771,21 @@ font-weight: ${s};
|
|
|
7711
7771
|
url: u,
|
|
7712
7772
|
method: "GET"
|
|
7713
7773
|
};
|
|
7714
|
-
|
|
7774
|
+
Fn(JSON.stringify(c));
|
|
7775
|
+
const h = {
|
|
7715
7776
|
method: c.method,
|
|
7716
7777
|
headers: c.headers,
|
|
7717
7778
|
body: c.body
|
|
7718
|
-
}
|
|
7779
|
+
};
|
|
7780
|
+
c.method === "GET" && delete h.body, fetch(c.url, h).then((y) => y.json()).then((y) => {
|
|
7719
7781
|
this.mergeNewRootState({
|
|
7720
|
-
[r]:
|
|
7782
|
+
[r]: y
|
|
7721
7783
|
}), this.httpReqsData[r] = !0;
|
|
7722
|
-
}).catch((
|
|
7784
|
+
}).catch((y) => {
|
|
7723
7785
|
console.error(
|
|
7724
7786
|
"error fetching dynamic data",
|
|
7725
7787
|
JSON.stringify(o),
|
|
7726
|
-
|
|
7788
|
+
y
|
|
7727
7789
|
);
|
|
7728
7790
|
}).finally(() => {
|
|
7729
7791
|
this.httpReqsPending[r] = !1;
|
|
@@ -7732,7 +7794,7 @@ font-weight: ${s};
|
|
|
7732
7794
|
);
|
|
7733
7795
|
},
|
|
7734
7796
|
emitStateUpdate() {
|
|
7735
|
-
|
|
7797
|
+
oe() && window.dispatchEvent(
|
|
7736
7798
|
new CustomEvent(
|
|
7737
7799
|
"builder:component:stateChange",
|
|
7738
7800
|
{
|
|
@@ -7794,7 +7856,7 @@ font-weight: ${s};
|
|
|
7794
7856
|
});
|
|
7795
7857
|
function Bu(e, t, n, r, o, i) {
|
|
7796
7858
|
var s, u, c;
|
|
7797
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (
|
|
7859
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (v(), U(dt(e.ContentWrapper), q({
|
|
7798
7860
|
key: 0,
|
|
7799
7861
|
ref: "elementRef",
|
|
7800
7862
|
onClick: (h) => e.onClick(h),
|
|
@@ -7807,11 +7869,11 @@ function Bu(e, t, n, r, o, i) {
|
|
|
7807
7869
|
onIniteditingbldr: (h) => e.elementRef_onIniteditingbldr(h),
|
|
7808
7870
|
onInitpreviewingbldr: (h) => e.elementRef_onInitpreviewingbldr(h)
|
|
7809
7871
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
7810
|
-
default:
|
|
7872
|
+
default: me(() => [
|
|
7811
7873
|
pe(e.$slots, "default")
|
|
7812
7874
|
]),
|
|
7813
7875
|
_: 3
|
|
7814
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
7876
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : F("", !0);
|
|
7815
7877
|
}
|
|
7816
7878
|
const ju = /* @__PURE__ */ j(Nu, [["render", Bu]]), Vu = B({
|
|
7817
7879
|
name: "content-styles",
|
|
@@ -7820,7 +7882,7 @@ const ju = /* @__PURE__ */ j(Nu, [["render", Bu]]), Vu = B({
|
|
|
7820
7882
|
data() {
|
|
7821
7883
|
return {
|
|
7822
7884
|
injectedStyles: `
|
|
7823
|
-
${
|
|
7885
|
+
${xu({
|
|
7824
7886
|
cssCode: this.cssCode,
|
|
7825
7887
|
contentId: this.contentId
|
|
7826
7888
|
})}
|
|
@@ -7834,7 +7896,7 @@ ${Pu(this.isNestedRender)}
|
|
|
7834
7896
|
});
|
|
7835
7897
|
function Du(e, t, n, r, o, i) {
|
|
7836
7898
|
const s = W("InlinedStyles");
|
|
7837
|
-
return
|
|
7899
|
+
return v(), U(s, {
|
|
7838
7900
|
id: "builderio-content",
|
|
7839
7901
|
styles: e.injectedStyles,
|
|
7840
7902
|
nonce: e.nonce
|
|
@@ -7857,7 +7919,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7857
7919
|
locale: n
|
|
7858
7920
|
} : {}
|
|
7859
7921
|
};
|
|
7860
|
-
},
|
|
7922
|
+
}, Lu = ({
|
|
7861
7923
|
content: e,
|
|
7862
7924
|
data: t
|
|
7863
7925
|
}) => e ? {
|
|
@@ -7867,7 +7929,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7867
7929
|
...t
|
|
7868
7930
|
},
|
|
7869
7931
|
meta: e == null ? void 0 : e.meta
|
|
7870
|
-
} : void 0,
|
|
7932
|
+
} : void 0, Fu = Yo, Mu = B({
|
|
7871
7933
|
name: "content-component",
|
|
7872
7934
|
components: {
|
|
7873
7935
|
EnableEditor: ju,
|
|
@@ -7915,14 +7977,14 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7915
7977
|
(n, { component: r, ...o }) => ({
|
|
7916
7978
|
...n,
|
|
7917
7979
|
[o.name]: {
|
|
7918
|
-
component:
|
|
7980
|
+
component: Fu(r),
|
|
7919
7981
|
...Vt(o)
|
|
7920
7982
|
}
|
|
7921
7983
|
}),
|
|
7922
7984
|
{}
|
|
7923
7985
|
),
|
|
7924
7986
|
builderContextSignal: {
|
|
7925
|
-
content:
|
|
7987
|
+
content: Lu({
|
|
7926
7988
|
content: this.content,
|
|
7927
7989
|
data: this.data
|
|
7928
7990
|
}),
|
|
@@ -7989,7 +8051,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7989
8051
|
});
|
|
7990
8052
|
function Hu(e, t, n, r, o, i) {
|
|
7991
8053
|
const s = W("InlinedScript"), u = W("ContentStyles"), c = W("Blocks"), h = W("EnableEditor");
|
|
7992
|
-
return
|
|
8054
|
+
return v(), U(h, q({
|
|
7993
8055
|
apiHost: e.apiHost,
|
|
7994
8056
|
nonce: e.nonce,
|
|
7995
8057
|
content: e.content,
|
|
@@ -8007,25 +8069,25 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8007
8069
|
trustedHosts: e.trustedHosts,
|
|
8008
8070
|
isNestedRender: e.isNestedRender
|
|
8009
8071
|
}, {}), {
|
|
8010
|
-
default:
|
|
8011
|
-
var
|
|
8072
|
+
default: me(() => {
|
|
8073
|
+
var y, b, m, S, A, x, H;
|
|
8012
8074
|
return [
|
|
8013
|
-
e.isSsrAbTest ? (
|
|
8075
|
+
e.isSsrAbTest ? (v(), U(s, {
|
|
8014
8076
|
key: 0,
|
|
8015
8077
|
id: "builderio-variant-visibility",
|
|
8016
8078
|
scriptStr: e.scriptStr,
|
|
8017
8079
|
nonce: e.nonce || ""
|
|
8018
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
8019
|
-
e.TARGET !== "reactNative" ? (
|
|
8080
|
+
}, null, 8, ["scriptStr", "nonce"])) : F("", !0),
|
|
8081
|
+
e.TARGET !== "reactNative" ? (v(), U(u, {
|
|
8020
8082
|
key: 1,
|
|
8021
8083
|
nonce: e.nonce || "",
|
|
8022
8084
|
isNestedRender: e.isNestedRender,
|
|
8023
|
-
contentId: (
|
|
8085
|
+
contentId: (y = e.builderContextSignal.content) == null ? void 0 : y.id,
|
|
8024
8086
|
cssCode: (m = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : m.cssCode,
|
|
8025
8087
|
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
8026
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
8027
|
-
|
|
8028
|
-
blocks: (H = (
|
|
8088
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : F("", !0),
|
|
8089
|
+
ee(c, {
|
|
8090
|
+
blocks: (H = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : H.blocks,
|
|
8029
8091
|
context: e.builderContextSignal,
|
|
8030
8092
|
registeredComponents: e.registeredComponents,
|
|
8031
8093
|
linkComponent: e.linkComponent
|
|
@@ -8106,32 +8168,32 @@ const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
|
8106
8168
|
});
|
|
8107
8169
|
function qu(e, t, n, r, o, i) {
|
|
8108
8170
|
const s = W("InlinedScript"), u = W("InlinedStyles"), c = W("ContentComponent");
|
|
8109
|
-
return
|
|
8110
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (
|
|
8111
|
-
|
|
8171
|
+
return v(), w(z, null, [
|
|
8172
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (v(), w(z, { key: 0 }, [
|
|
8173
|
+
ee(s, {
|
|
8112
8174
|
id: "builderio-init-variants-fns",
|
|
8113
8175
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
8114
8176
|
nonce: e.nonce || ""
|
|
8115
8177
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
8116
|
-
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (
|
|
8178
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (v(), U(s, {
|
|
8117
8179
|
key: 0,
|
|
8118
8180
|
id: "builderio-init-personalization-variants-fns",
|
|
8119
8181
|
nonce: e.nonce || "",
|
|
8120
8182
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
8121
|
-
}, null, 8, ["nonce", "scriptStr"])) :
|
|
8122
|
-
], 64)) :
|
|
8123
|
-
e.shouldRenderVariants ? (
|
|
8124
|
-
|
|
8183
|
+
}, null, 8, ["nonce", "scriptStr"])) : F("", !0)
|
|
8184
|
+
], 64)) : F("", !0),
|
|
8185
|
+
e.shouldRenderVariants ? (v(), w(z, { key: 1 }, [
|
|
8186
|
+
ee(u, {
|
|
8125
8187
|
id: "builderio-variants",
|
|
8126
8188
|
styles: e.hideVariantsStyleString,
|
|
8127
8189
|
nonce: e.nonce || ""
|
|
8128
8190
|
}, null, 8, ["styles", "nonce"]),
|
|
8129
|
-
|
|
8191
|
+
ee(s, {
|
|
8130
8192
|
id: "builderio-variants-visibility",
|
|
8131
8193
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
8132
8194
|
nonce: e.nonce || ""
|
|
8133
8195
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
8134
|
-
(
|
|
8196
|
+
(v(!0), w(z, null, ve(e.getVariants(e.content), (h, y) => (v(), U(c, q({
|
|
8135
8197
|
key: h.testVariationId,
|
|
8136
8198
|
apiHost: e.apiHost,
|
|
8137
8199
|
isNestedRender: e.isNestedRender,
|
|
@@ -8155,8 +8217,8 @@ function qu(e, t, n, r, o, i) {
|
|
|
8155
8217
|
contentWrapperProps: e.contentWrapperProps,
|
|
8156
8218
|
trustedHosts: e.trustedHosts
|
|
8157
8219
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
8158
|
-
], 64)) :
|
|
8159
|
-
|
|
8220
|
+
], 64)) : F("", !0),
|
|
8221
|
+
ee(c, q({
|
|
8160
8222
|
apiHost: e.apiHost,
|
|
8161
8223
|
nonce: e.nonce,
|
|
8162
8224
|
isNestedRender: e.isNestedRender,
|
|
@@ -8206,11 +8268,11 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8206
8268
|
components: { ContentVariants: Gu, DynamicDiv: Ct },
|
|
8207
8269
|
props: [
|
|
8208
8270
|
"symbol",
|
|
8271
|
+
"builderComponents",
|
|
8209
8272
|
"attributes",
|
|
8210
8273
|
"dynamic",
|
|
8211
8274
|
"builderContext",
|
|
8212
8275
|
"builderBlock",
|
|
8213
|
-
"builderComponents",
|
|
8214
8276
|
"builderLinkComponent"
|
|
8215
8277
|
],
|
|
8216
8278
|
data() {
|
|
@@ -8218,7 +8280,7 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8218
8280
|
return {
|
|
8219
8281
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
8220
8282
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
8221
|
-
filterAttrs:
|
|
8283
|
+
filterAttrs: de
|
|
8222
8284
|
};
|
|
8223
8285
|
},
|
|
8224
8286
|
mounted() {
|
|
@@ -8239,10 +8301,13 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8239
8301
|
contentWrapper() {
|
|
8240
8302
|
return "div";
|
|
8241
8303
|
},
|
|
8304
|
+
customComponents() {
|
|
8305
|
+
return Object.values(this.builderComponents);
|
|
8306
|
+
},
|
|
8242
8307
|
className() {
|
|
8243
8308
|
var e, t;
|
|
8244
8309
|
return [
|
|
8245
|
-
this.attributes[
|
|
8310
|
+
this.attributes[Oe()],
|
|
8246
8311
|
"builder-symbol",
|
|
8247
8312
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
8248
8313
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -8268,10 +8333,10 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8268
8333
|
}
|
|
8269
8334
|
});
|
|
8270
8335
|
function Xu(e, t, n, r, o, i) {
|
|
8271
|
-
var u, c, h,
|
|
8336
|
+
var u, c, h, y, b;
|
|
8272
8337
|
const s = W("ContentVariants");
|
|
8273
|
-
return
|
|
8274
|
-
|
|
8338
|
+
return v(), w("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
8339
|
+
ee(s, {
|
|
8275
8340
|
nonce: e.builderContext.nonce,
|
|
8276
8341
|
isNestedRender: !0,
|
|
8277
8342
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -8280,11 +8345,11 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8280
8345
|
...e.builderContext.context,
|
|
8281
8346
|
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
8282
8347
|
},
|
|
8283
|
-
customComponents:
|
|
8348
|
+
customComponents: e.customComponents,
|
|
8284
8349
|
data: {
|
|
8285
8350
|
...(c = e.symbol) == null ? void 0 : c.data,
|
|
8286
8351
|
...e.builderContext.localState,
|
|
8287
|
-
...(
|
|
8352
|
+
...(y = (h = e.contentToUse) == null ? void 0 : h.data) == null ? void 0 : y.state
|
|
8288
8353
|
},
|
|
8289
8354
|
canTrack: e.builderContext.canTrack,
|
|
8290
8355
|
model: ((b = e.symbol) == null ? void 0 : b.model) ?? "",
|
|
@@ -8297,44 +8362,45 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8297
8362
|
}
|
|
8298
8363
|
const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]);
|
|
8299
8364
|
export {
|
|
8300
|
-
|
|
8301
|
-
|
|
8365
|
+
oc as A,
|
|
8366
|
+
To as B,
|
|
8302
8367
|
pa as C,
|
|
8303
|
-
|
|
8304
|
-
|
|
8368
|
+
sc as D,
|
|
8369
|
+
Ps as E,
|
|
8305
8370
|
ha as F,
|
|
8306
|
-
|
|
8307
|
-
|
|
8371
|
+
Os as G,
|
|
8372
|
+
Kn as H,
|
|
8308
8373
|
Ca as I,
|
|
8309
|
-
|
|
8310
|
-
|
|
8374
|
+
Zu as J,
|
|
8375
|
+
uc as K,
|
|
8376
|
+
Ea as S,
|
|
8311
8377
|
G as T,
|
|
8312
8378
|
du as V,
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8379
|
+
j as _,
|
|
8380
|
+
Oe as a,
|
|
8381
|
+
yn as b,
|
|
8382
|
+
Mt as c,
|
|
8383
|
+
Be as d,
|
|
8384
|
+
kt as e,
|
|
8385
|
+
aa as f,
|
|
8386
|
+
lc as g,
|
|
8387
|
+
ac as h,
|
|
8388
|
+
oe as i,
|
|
8389
|
+
cc as j,
|
|
8390
|
+
zn as k,
|
|
8391
|
+
_i as l,
|
|
8392
|
+
oi as m,
|
|
8393
|
+
Yu as n,
|
|
8394
|
+
fl as o,
|
|
8395
|
+
Ue as p,
|
|
8396
|
+
Gu as q,
|
|
8397
|
+
Wn as r,
|
|
8332
8398
|
ic as s,
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8399
|
+
Ji as t,
|
|
8400
|
+
ec as u,
|
|
8401
|
+
tc as v,
|
|
8402
|
+
Fu as w,
|
|
8403
|
+
nc as x,
|
|
8404
|
+
no as y,
|
|
8405
|
+
rc as z
|
|
8340
8406
|
};
|