@builder.io/sdk-vue 1.0.33 → 1.0.36
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/{block-styles-kerUOxgY.js → block-styles-QmmLdzpW.js} +1 -1
- package/lib/browser/{block-styles-gUk9Dzsc.cjs → block-styles-pw_R2yQt.cjs} +1 -1
- package/lib/browser/{block-wrapper-LzC9qaC1.js → block-wrapper-26flngEX.js} +3 -3
- package/lib/browser/{block-wrapper-9bcXRjoR.cjs → block-wrapper-ym7Obdn5.cjs} +1 -1
- package/lib/browser/blocks/form/select/select.vue.d.ts +4 -0
- package/lib/browser/blocks/form/textarea/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/textarea/textarea.vue.d.ts +37 -0
- package/lib/browser/{component-ref-owFZRdew.cjs → component-ref-EJE0BMsw.cjs} +1 -1
- package/lib/browser/{component-ref-xImJQvWl.js → component-ref-f6HeLjzo.js} +2 -2
- package/lib/browser/constants/sdk-name.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/extract-css-var-default-value.d.ts +1 -0
- package/lib/browser/{get-block-properties-yh_xBxaD.js → get-block-properties-bRGCHXAl.js} +1 -1
- package/lib/browser/{get-block-properties-eZL93-0B.cjs → get-block-properties-jhRwh2eR.cjs} +1 -1
- package/lib/browser/{index-WgX1kltZ.cjs → index-B7uwco2M.cjs} +17 -17
- package/lib/browser/{index-Qkz0NE0g.js → index-NLkfEtPh.js} +351 -285
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-WWW34QbC.cjs → repeated-block-9SersTny.cjs} +1 -1
- package/lib/browser/{repeated-block-H8xyyPjB.js → repeated-block-By1JKWmB.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles-fnG6a8X5.js → block-styles-Jd0r8FSA.js} +1 -1
- package/lib/edge/{block-styles-A3nahRJN.cjs → block-styles-_fSdBubU.cjs} +1 -1
- package/lib/{node/block-wrapper-f_jOXgFb.cjs → edge/block-wrapper-A5vScnuu.cjs} +1 -1
- package/lib/edge/{block-wrapper-LdQsnZfv.js → block-wrapper-MRpzh8OH.js} +3 -3
- package/lib/edge/blocks/form/select/select.vue.d.ts +4 -0
- package/lib/edge/blocks/form/textarea/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/textarea/textarea.vue.d.ts +37 -0
- package/lib/{node/component-ref-sD6hZef-.js → edge/component-ref-LJrom_Hw.js} +2 -2
- package/lib/{node/component-ref-U-cvIdGq.cjs → edge/component-ref-t-ZqciWS.cjs} +1 -1
- package/lib/edge/constants/sdk-name.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/extract-css-var-default-value.d.ts +1 -0
- package/lib/edge/{get-block-properties-mGQrxPHc.js → get-block-properties-RUv19U0D.js} +1 -1
- package/lib/edge/{get-block-properties-iZMwLeIw.cjs → get-block-properties-mYCrAhpB.cjs} +1 -1
- package/lib/edge/{index-UdOhGo7m.cjs → index-ZhWTg6tN.cjs} +29 -29
- package/lib/edge/{index-cYhIjhO_.js → index-fmKlzhOA.js} +692 -626
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-j3EbhJD1.cjs → repeated-block-fT6ciF3Y.cjs} +1 -1
- package/lib/edge/{repeated-block-NzAuZ0hs.js → repeated-block-zMex8Hyo.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles-T7p84HtL.cjs → block-styles-PnZ5sEmM.cjs} +1 -1
- package/lib/node/{block-styles-S-Dwi4TP.js → block-styles-ekBqqSDD.js} +1 -1
- package/lib/node/{block-wrapper-6iynCx74.js → block-wrapper-FGDcViUJ.js} +3 -3
- package/lib/{edge/block-wrapper-HpEpqD6-.cjs → node/block-wrapper-VDAcUhC-.cjs} +1 -1
- package/lib/node/blocks/form/select/select.vue.d.ts +4 -0
- package/lib/node/blocks/form/textarea/component-info.d.ts +2 -0
- package/lib/node/blocks/form/textarea/textarea.vue.d.ts +37 -0
- package/lib/{edge/component-ref-WDeHhHcD.js → node/component-ref-Au-JxCpz.js} +2 -2
- package/lib/{edge/component-ref-WKjLqN2Y.cjs → node/component-ref-XxfgsVAO.cjs} +1 -1
- package/lib/node/constants/sdk-name.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/extract-css-var-default-value.d.ts +1 -0
- package/lib/node/{get-block-properties-9-2o1ACI.cjs → get-block-properties-H2mLG2ne.cjs} +1 -1
- package/lib/node/{get-block-properties-ZsDn1lB0.js → get-block-properties-WCuExDS0.js} +1 -1
- package/lib/node/{index-zQlrqnEY.js → index-2FruHdw_.js} +216 -140
- package/lib/node/{index-BvctNQ8U.cjs → index-waRiX7LZ.cjs} +12 -12
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-5Jpy-5o9.cjs → repeated-block-6pZDOeM_.cjs} +1 -1
- package/lib/node/{repeated-block-xt9V5Mgm.js → repeated-block-pn4OjL31.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/blocks/textarea/component-info.d.ts +0 -2
- package/lib/edge/blocks/textarea/component-info.d.ts +0 -2
- package/lib/node/blocks/textarea/component-info.d.ts +0 -2
- /package/lib/browser/blocks/{textarea → form/textarea}/index.d.ts +0 -0
- /package/lib/edge/blocks/{textarea → form/textarea}/index.d.ts +0 -0
- /package/lib/node/blocks/{textarea → form/textarea}/index.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var No = Object.defineProperty;
|
|
2
2
|
var Vo = (e, t, n) => t in e ? No(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ln = (e, t, n) => (Vo(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as j, openBlock as y, createElementBlock as T, Fragment as Z, createBlock as U, resolveDynamicComponent as
|
|
4
|
+
import { defineComponent as j, openBlock as y, createElementBlock as T, Fragment as Z, createBlock as U, resolveDynamicComponent as ct, mergeProps as z, toHandlers as pe, withCtx as Te, renderSlot as de, resolveComponent as F, createTextVNode as Fo, toDisplayString as Nt, defineAsyncComponent as ot, createVNode as se, renderList as Ie, createCommentVNode as M, h as jr, createElementVNode as ft, normalizeStyle as Pe, normalizeClass as mt, markRaw as Uo } from "vue";
|
|
5
5
|
const Do = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Mo = (e) => typeof e == "string" && Do.has(e.toLowerCase());
|
|
6
|
-
function
|
|
6
|
+
function fe(e = {}, t, n) {
|
|
7
7
|
const r = {};
|
|
8
8
|
for (const o in e) {
|
|
9
9
|
if (!e[o] || n && !o.startsWith(t))
|
|
@@ -26,21 +26,21 @@ const Wo = j({
|
|
|
26
26
|
return n;
|
|
27
27
|
};
|
|
28
28
|
function Lo(e, t, n, r, o, i) {
|
|
29
|
-
return e.isEmptyElement(e.TagName) ? (y(), U(
|
|
30
|
-
typeof e.TagName == "string" ? (y(), U(
|
|
31
|
-
default:
|
|
32
|
-
|
|
29
|
+
return e.isEmptyElement(e.TagName) ? (y(), U(ct(e.TagName), z({ key: 1 }, e.attributes, pe(e.actionAttributes)), null, 16)) : (y(), T(Z, { key: 0 }, [
|
|
30
|
+
typeof e.TagName == "string" ? (y(), U(ct(e.TagName), z({ key: 0 }, e.attributes, pe(e.actionAttributes)), {
|
|
31
|
+
default: Te(() => [
|
|
32
|
+
de(e.$slots, "default")
|
|
33
33
|
]),
|
|
34
34
|
_: 3
|
|
35
|
-
}, 16)) : (y(), U(
|
|
36
|
-
default:
|
|
37
|
-
|
|
35
|
+
}, 16)) : (y(), U(ct(e.TagName), z({ key: 1 }, e.attributes, pe(e.actionAttributes)), {
|
|
36
|
+
default: Te(() => [
|
|
37
|
+
de(e.$slots, "default")
|
|
38
38
|
]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 16))
|
|
41
41
|
], 64));
|
|
42
42
|
}
|
|
43
|
-
const Cn = /* @__PURE__ */ V(Wo, [["render", Lo]]),
|
|
43
|
+
const Cn = /* @__PURE__ */ V(Wo, [["render", Lo]]), hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44
44
|
__proto__: null,
|
|
45
45
|
default: Cn
|
|
46
46
|
}, Symbol.toStringTag, { value: "Module" })), Q = "vue", jt = () => {
|
|
@@ -67,12 +67,12 @@ const Cn = /* @__PURE__ */ V(Wo, [["render", Lo]]), lc = /* @__PURE__ */ Object.
|
|
|
67
67
|
"text"
|
|
68
68
|
],
|
|
69
69
|
data() {
|
|
70
|
-
return { filterAttrs:
|
|
70
|
+
return { filterAttrs: fe };
|
|
71
71
|
},
|
|
72
72
|
methods: {
|
|
73
73
|
attrs() {
|
|
74
74
|
return {
|
|
75
|
-
...
|
|
75
|
+
...fe(this.attributes, "v-on:", !1),
|
|
76
76
|
[jt()]: `${this.link ? "" : "builder-button"} ${this.attributes[jt()] || ""}`,
|
|
77
77
|
...this.link ? {
|
|
78
78
|
href: this.link,
|
|
@@ -92,13 +92,13 @@ function Ko(e, t, n, r, o, i) {
|
|
|
92
92
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
93
93
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
94
94
|
}, {
|
|
95
|
-
default:
|
|
95
|
+
default: Te(() => [
|
|
96
96
|
Fo(Nt(e.text), 1)
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
99
99
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const qo = /* @__PURE__ */ V(Ho, [["render", Ko]]), zo = Symbol(), mn = {
|
|
102
102
|
Builder: {
|
|
103
103
|
content: null,
|
|
104
104
|
context: {},
|
|
@@ -113,10 +113,10 @@ const zo = /* @__PURE__ */ V(Ho, [["render", Ko]]), Go = Symbol(), mn = {
|
|
|
113
113
|
BlocksWrapper: "div",
|
|
114
114
|
BlocksWrapperProps: {}
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: zo
|
|
117
|
+
}, Go = Symbol(), Br = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
119
|
+
key: Go
|
|
120
120
|
};
|
|
121
121
|
function Jo(e) {
|
|
122
122
|
var t;
|
|
@@ -143,7 +143,7 @@ const _o = (e) => {
|
|
|
143
143
|
function Xo() {
|
|
144
144
|
return _() && window.self !== window.top;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ue(e) {
|
|
147
147
|
return Xo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
148
148
|
Vr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
149
149
|
}
|
|
@@ -192,7 +192,7 @@ const Yo = () => {
|
|
|
192
192
|
context: t,
|
|
193
193
|
event: n
|
|
194
194
|
}), Qo = () => ({
|
|
195
|
-
isEditing:
|
|
195
|
+
isEditing: ue(),
|
|
196
196
|
isBrowser: _(),
|
|
197
197
|
isServer: !_(),
|
|
198
198
|
getUserAttributes: () => Fr()
|
|
@@ -207,7 +207,7 @@ const Yo = () => {
|
|
|
207
207
|
rootSetState: i,
|
|
208
208
|
rootState: a
|
|
209
209
|
}) => {
|
|
210
|
-
const
|
|
210
|
+
const u = Ur({
|
|
211
211
|
builder: t,
|
|
212
212
|
context: n,
|
|
213
213
|
event: r,
|
|
@@ -217,7 +217,7 @@ const Yo = () => {
|
|
|
217
217
|
rootSetState: i
|
|
218
218
|
})
|
|
219
219
|
});
|
|
220
|
-
return new Function(...
|
|
220
|
+
return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
|
|
221
221
|
};
|
|
222
222
|
function Dr({
|
|
223
223
|
rootState: e,
|
|
@@ -258,36 +258,36 @@ var B, ni = function(e) {
|
|
|
258
258
|
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && yr.test(String.fromCharCode(s));
|
|
259
259
|
}
|
|
260
260
|
function r(s, l) {
|
|
261
|
-
for (var
|
|
261
|
+
for (var c = b, f = 1, E = 0; ; ) {
|
|
262
262
|
$t.lastIndex = E;
|
|
263
|
-
var K = $t.exec(
|
|
263
|
+
var K = $t.exec(c);
|
|
264
264
|
if (K && K.index < s)
|
|
265
265
|
++f, E = K.index + K[0].length;
|
|
266
266
|
else
|
|
267
267
|
break;
|
|
268
268
|
}
|
|
269
|
-
throw
|
|
269
|
+
throw c = {
|
|
270
270
|
line: f,
|
|
271
271
|
ab: s - E
|
|
272
|
-
}, l += " (" +
|
|
272
|
+
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = s, l.X = c, l.o = d, l;
|
|
273
273
|
}
|
|
274
274
|
function o(s) {
|
|
275
275
|
s = s.split(" ");
|
|
276
|
-
for (var l = /* @__PURE__ */ Object.create(null),
|
|
277
|
-
l[s[
|
|
276
|
+
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < s.length; c++)
|
|
277
|
+
l[s[c]] = !0;
|
|
278
278
|
return function(f) {
|
|
279
279
|
return l[f] || !1;
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
function i() {
|
|
283
|
-
this.line = Ve, this.ab = d -
|
|
283
|
+
this.line = Ve, this.ab = d - ye;
|
|
284
284
|
}
|
|
285
285
|
function a(s, l) {
|
|
286
|
-
De = d, R.C && (
|
|
286
|
+
De = d, R.C && (Gt = new i()), I = s, p(), le = l, Qe = s.m;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
for (var s = d, l = R.va && R.C && new i(),
|
|
290
|
-
++d,
|
|
288
|
+
function u() {
|
|
289
|
+
for (var s = d, l = R.va && R.C && new i(), c = b.charCodeAt(d += 2); d < Ue && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
290
|
+
++d, c = b.charCodeAt(d);
|
|
291
291
|
R.va && R.va(!1, b.slice(s + 2, d), s, d, l, R.C && new i());
|
|
292
292
|
}
|
|
293
293
|
function p() {
|
|
@@ -296,21 +296,21 @@ var B, ni = function(e) {
|
|
|
296
296
|
if (s === 32)
|
|
297
297
|
++d;
|
|
298
298
|
else if (s === 13)
|
|
299
|
-
++d, s = b.charCodeAt(d), s === 10 && ++d, R.C && (++Ve,
|
|
299
|
+
++d, s = b.charCodeAt(d), s === 10 && ++d, R.C && (++Ve, ye = d);
|
|
300
300
|
else if (s === 10 || s === 8232 || s === 8233)
|
|
301
|
-
++d, R.C && (++Ve,
|
|
301
|
+
++d, R.C && (++Ve, ye = d);
|
|
302
302
|
else if (8 < s && 14 > s)
|
|
303
303
|
++d;
|
|
304
304
|
else if (s === 47)
|
|
305
305
|
if (s = b.charCodeAt(d + 1), s === 42) {
|
|
306
306
|
s = void 0;
|
|
307
|
-
var l = R.va && R.C && new i(),
|
|
307
|
+
var l = R.va && R.C && new i(), c = d, f = b.indexOf("*/", d += 2);
|
|
308
308
|
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, R.C)
|
|
309
|
-
for ($t.lastIndex =
|
|
310
|
-
++Ve,
|
|
311
|
-
R.va && R.va(!0, b.slice(
|
|
309
|
+
for ($t.lastIndex = c; (s = $t.exec(b)) && s.index < d; )
|
|
310
|
+
++Ve, ye = s.index + s[0].length;
|
|
311
|
+
R.va && R.va(!0, b.slice(c + 2, f), c, d, l, R.C && new i());
|
|
312
312
|
} else if (s === 47)
|
|
313
|
-
|
|
313
|
+
u();
|
|
314
314
|
else
|
|
315
315
|
break;
|
|
316
316
|
else if (s === 160)
|
|
@@ -324,14 +324,14 @@ var B, ni = function(e) {
|
|
|
324
324
|
function m(s) {
|
|
325
325
|
switch (s) {
|
|
326
326
|
case 46:
|
|
327
|
-
s = b.charCodeAt(d + 1), 48 <= s && 57 >= s ? O(!0) : (++d, a(
|
|
327
|
+
s = b.charCodeAt(d + 1), 48 <= s && 57 >= s ? O(!0) : (++d, a(ur));
|
|
328
328
|
return;
|
|
329
329
|
case 40:
|
|
330
|
-
return ++d, a(
|
|
330
|
+
return ++d, a(ve);
|
|
331
331
|
case 41:
|
|
332
|
-
return ++d, a(
|
|
332
|
+
return ++d, a(he);
|
|
333
333
|
case 59:
|
|
334
|
-
return ++d, a(
|
|
334
|
+
return ++d, a(be);
|
|
335
335
|
case 44:
|
|
336
336
|
return ++d, a(Oe);
|
|
337
337
|
case 91:
|
|
@@ -345,7 +345,7 @@ var B, ni = function(e) {
|
|
|
345
345
|
case 58:
|
|
346
346
|
return ++d, a(rt);
|
|
347
347
|
case 63:
|
|
348
|
-
return ++d, a(
|
|
348
|
+
return ++d, a(cr);
|
|
349
349
|
case 48:
|
|
350
350
|
if (s = b.charCodeAt(d + 1), s === 120 || s === 88) {
|
|
351
351
|
d += 2, s = P(16), s === null && r(H + 2, "Expected hexadecimal number"), n(b.charCodeAt(d)) && r(d, "Identifier directly after number"), a(tt, s);
|
|
@@ -366,20 +366,20 @@ var B, ni = function(e) {
|
|
|
366
366
|
d++;
|
|
367
367
|
for (var l = ""; ; ) {
|
|
368
368
|
d >= Ue && r(H, "Unterminated string constant");
|
|
369
|
-
var
|
|
370
|
-
if (
|
|
369
|
+
var c = b.charCodeAt(d);
|
|
370
|
+
if (c === s) {
|
|
371
371
|
++d, a(Et, l);
|
|
372
372
|
break;
|
|
373
373
|
}
|
|
374
|
-
if (
|
|
375
|
-
|
|
374
|
+
if (c === 92) {
|
|
375
|
+
c = b.charCodeAt(++d);
|
|
376
376
|
var f = /^[0-7]+/.exec(b.slice(d, d + 3));
|
|
377
377
|
for (f && (f = f[0]); f && 255 < parseInt(f, 8); )
|
|
378
378
|
f = f.slice(0, -1);
|
|
379
379
|
if (f === "0" && (f = null), ++d, f)
|
|
380
380
|
ie && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(f, 8)), d += f.length - 1;
|
|
381
381
|
else
|
|
382
|
-
switch (
|
|
382
|
+
switch (c) {
|
|
383
383
|
case 110:
|
|
384
384
|
l += `
|
|
385
385
|
`;
|
|
@@ -414,13 +414,13 @@ var B, ni = function(e) {
|
|
|
414
414
|
case 13:
|
|
415
415
|
b.charCodeAt(d) === 10 && ++d;
|
|
416
416
|
case 10:
|
|
417
|
-
R.C && (
|
|
417
|
+
R.C && (ye = d, ++Ve);
|
|
418
418
|
break;
|
|
419
419
|
default:
|
|
420
|
-
l += String.fromCharCode(
|
|
420
|
+
l += String.fromCharCode(c);
|
|
421
421
|
}
|
|
422
422
|
} else
|
|
423
|
-
|
|
423
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(H, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
424
424
|
}
|
|
425
425
|
return;
|
|
426
426
|
case 47:
|
|
@@ -439,11 +439,11 @@ var B, ni = function(e) {
|
|
|
439
439
|
return;
|
|
440
440
|
case 43:
|
|
441
441
|
case 45:
|
|
442
|
-
l = b.charCodeAt(d + 1), l === s ? l === 45 && b.charCodeAt(d + 2) === 62 && Rt.test(b.slice($e, d)) ? (d += 3,
|
|
442
|
+
l = b.charCodeAt(d + 1), l === s ? l === 45 && b.charCodeAt(d + 2) === 62 && Rt.test(b.slice($e, d)) ? (d += 3, u(), p(), v()) : h(So, 2) : l === 61 ? h(Fe, 2) : h(Ao, 1);
|
|
443
443
|
return;
|
|
444
444
|
case 60:
|
|
445
445
|
case 62:
|
|
446
|
-
l = b.charCodeAt(d + 1),
|
|
446
|
+
l = b.charCodeAt(d + 1), c = 1, l === s ? (c = s === 62 && b.charCodeAt(d + 2) === 62 ? 3 : 2, b.charCodeAt(d + c) === 61 ? h(Fe, c + 1) : h(xo, c)) : l === 33 && s === 60 && b.charCodeAt(d + 2) === 45 && b.charCodeAt(d + 3) === 45 ? (d += 4, u(), p(), v()) : (l === 61 && (c = b.charCodeAt(d + 2) === 61 ? 3 : 2), h(Eo, c));
|
|
447
447
|
return;
|
|
448
448
|
case 61:
|
|
449
449
|
case 33:
|
|
@@ -455,7 +455,7 @@ var B, ni = function(e) {
|
|
|
455
455
|
return !1;
|
|
456
456
|
}
|
|
457
457
|
function v(s) {
|
|
458
|
-
if (s ? d = H + 1 : H = d, R.C && (
|
|
458
|
+
if (s ? d = H + 1 : H = d, R.C && (zt = new i()), s)
|
|
459
459
|
return C();
|
|
460
460
|
if (d >= Ue)
|
|
461
461
|
return a(Xt);
|
|
@@ -468,14 +468,14 @@ var B, ni = function(e) {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
function h(s, l) {
|
|
471
|
-
var
|
|
472
|
-
d += l, a(s,
|
|
471
|
+
var c = b.slice(d, d + l);
|
|
472
|
+
d += l, a(s, c);
|
|
473
473
|
}
|
|
474
474
|
function C() {
|
|
475
|
-
for (var s, l,
|
|
476
|
-
d >= Ue && r(
|
|
475
|
+
for (var s, l, c = d; ; ) {
|
|
476
|
+
d >= Ue && r(c, "Unterminated regexp");
|
|
477
477
|
var f = b.charAt(d);
|
|
478
|
-
if (Rt.test(f) && r(
|
|
478
|
+
if (Rt.test(f) && r(c, "Unterminated regexp"), s)
|
|
479
479
|
s = !1;
|
|
480
480
|
else {
|
|
481
481
|
if (f === "[")
|
|
@@ -488,67 +488,67 @@ var B, ni = function(e) {
|
|
|
488
488
|
}
|
|
489
489
|
++d;
|
|
490
490
|
}
|
|
491
|
-
s = b.slice(
|
|
491
|
+
s = b.slice(c, d), ++d, (l = X()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
492
492
|
try {
|
|
493
493
|
var E = new RegExp(s, l);
|
|
494
494
|
} catch (K) {
|
|
495
|
-
throw K instanceof SyntaxError && r(
|
|
495
|
+
throw K instanceof SyntaxError && r(c, K.message), K;
|
|
496
496
|
}
|
|
497
497
|
a(Kn, E);
|
|
498
498
|
}
|
|
499
499
|
function P(s, l) {
|
|
500
|
-
for (var
|
|
500
|
+
for (var c = d, f = 0, E = l === void 0 ? 1 / 0 : l, K = 0; K < E; ++K) {
|
|
501
501
|
var te = b.charCodeAt(d);
|
|
502
502
|
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= s)
|
|
503
503
|
break;
|
|
504
504
|
++d, f = f * s + te;
|
|
505
505
|
}
|
|
506
|
-
return d ===
|
|
506
|
+
return d === c || l !== void 0 && d - c !== l ? null : f;
|
|
507
507
|
}
|
|
508
508
|
function O(s) {
|
|
509
|
-
var l = d,
|
|
510
|
-
s || P(10) !== null || r(l, "Invalid number"), b.charCodeAt(d) === 46 && (++d, P(10),
|
|
509
|
+
var l = d, c = !1, f = b.charCodeAt(d) === 48;
|
|
510
|
+
s || P(10) !== null || r(l, "Invalid number"), b.charCodeAt(d) === 46 && (++d, P(10), c = !0), s = b.charCodeAt(d), (s === 69 || s === 101) && (s = b.charCodeAt(++d), s !== 43 && s !== 45 || ++d, P(10) === null && r(l, "Invalid number"), c = !0), n(b.charCodeAt(d)) && r(d, "Identifier directly after number"), s = b.slice(l, d);
|
|
511
511
|
var E;
|
|
512
|
-
|
|
512
|
+
c ? E = parseFloat(s) : f && s.length !== 1 ? /[89]/.test(s) || ie ? r(l, "Invalid number") : E = parseInt(s, 8) : E = parseInt(s, 10), a(tt, E);
|
|
513
513
|
}
|
|
514
514
|
function ee(s) {
|
|
515
515
|
return s = P(16, s), s === null && r(H, "Bad character escape sequence"), s;
|
|
516
516
|
}
|
|
517
517
|
function X() {
|
|
518
518
|
Le = !1;
|
|
519
|
-
for (var s, l = !0,
|
|
519
|
+
for (var s, l = !0, c = d; ; ) {
|
|
520
520
|
var f = b.charCodeAt(d);
|
|
521
521
|
if (t(f))
|
|
522
522
|
Le && (s += b.charAt(d)), ++d;
|
|
523
523
|
else if (f === 92) {
|
|
524
|
-
Le || (s = b.slice(
|
|
524
|
+
Le || (s = b.slice(c, d)), Le = !0, b.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, f = ee(4);
|
|
525
525
|
var E = String.fromCharCode(f);
|
|
526
526
|
E || r(d - 1, "Invalid Unicode escape"), (l ? n(f) : t(f)) || r(d - 4, "Invalid Unicode escape"), s += E;
|
|
527
527
|
} else
|
|
528
528
|
break;
|
|
529
529
|
l = !1;
|
|
530
530
|
}
|
|
531
|
-
return Le ? s : b.slice(
|
|
531
|
+
return Le ? s : b.slice(c, d);
|
|
532
532
|
}
|
|
533
533
|
function N() {
|
|
534
534
|
var s = X(), l = Me;
|
|
535
535
|
!Le && Oo(s) && (l = ko[s]), a(l, s);
|
|
536
536
|
}
|
|
537
537
|
function A() {
|
|
538
|
-
Jt = H, $e = De, _t =
|
|
538
|
+
Jt = H, $e = De, _t = Gt, v();
|
|
539
539
|
}
|
|
540
540
|
function xe(s) {
|
|
541
541
|
if (ie = s, d = H, R.C)
|
|
542
|
-
for (; d <
|
|
543
|
-
|
|
544
|
-
`,
|
|
542
|
+
for (; d < ye; )
|
|
543
|
+
ye = b.lastIndexOf(`
|
|
544
|
+
`, ye - 2) + 1, --Ve;
|
|
545
545
|
p(), v();
|
|
546
546
|
}
|
|
547
547
|
function oe() {
|
|
548
548
|
this.type = null, this.start = H, this.end = null;
|
|
549
549
|
}
|
|
550
550
|
function Ae() {
|
|
551
|
-
this.start =
|
|
551
|
+
this.start = zt, this.end = null, qt && (this.source = qt);
|
|
552
552
|
}
|
|
553
553
|
function G() {
|
|
554
554
|
var s = new oe();
|
|
@@ -571,126 +571,126 @@ var B, ni = function(e) {
|
|
|
571
571
|
return !R.fc && (I === Xt || I === We || Rt.test(b.slice($e, H)));
|
|
572
572
|
}
|
|
573
573
|
function Ne() {
|
|
574
|
-
D(
|
|
574
|
+
D(be) || wt() || me();
|
|
575
575
|
}
|
|
576
576
|
function W(s) {
|
|
577
|
-
I === s ? A() :
|
|
577
|
+
I === s ? A() : me();
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function me() {
|
|
580
580
|
r(H, "Unexpected token");
|
|
581
581
|
}
|
|
582
582
|
function Tt(s) {
|
|
583
583
|
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), ie && s.type === "Identifier" && At(s.name) && r(s.start, "Assigning to " + s.name + " in strict mode");
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function ce() {
|
|
586
586
|
(I === pr || I === Fe && le === "/=") && v(!0);
|
|
587
587
|
var s = I, l = G();
|
|
588
588
|
switch (s) {
|
|
589
589
|
case Yt:
|
|
590
|
-
case
|
|
590
|
+
case zn:
|
|
591
591
|
A();
|
|
592
|
-
var
|
|
593
|
-
D(
|
|
592
|
+
var c = s === Yt;
|
|
593
|
+
D(be) || wt() ? l.label = null : I !== Me ? me() : (l.label = ge(), Ne());
|
|
594
594
|
for (var f = 0; f < L.length; ++f) {
|
|
595
595
|
var E = L[f];
|
|
596
|
-
if ((l.label === null || E.name === l.label.name) && (E.kind !== null && (
|
|
596
|
+
if ((l.label === null || E.name === l.label.name) && (E.kind !== null && (c || E.kind === "loop") || l.label && c))
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
return f === L.length && r(l.start, "Unsyntactic " + s.l), x(l,
|
|
600
|
-
case
|
|
599
|
+
return f === L.length && r(l.start, "Unsyntactic " + s.l), x(l, c ? "BreakStatement" : "ContinueStatement");
|
|
600
|
+
case Gn:
|
|
601
601
|
return A(), Ne(), x(l, "DebuggerStatement");
|
|
602
602
|
case _n:
|
|
603
|
-
return A(), L.push(sn), l.body =
|
|
603
|
+
return A(), L.push(sn), l.body = ce(), L.pop(), W(nn), l.test = Xe(), Ne(), x(l, "DoWhileStatement");
|
|
604
604
|
case Zn:
|
|
605
|
-
return A(), L.push(sn), W(
|
|
605
|
+
return A(), L.push(sn), W(ve), I === be ? Dt(l, null) : I === tn ? (s = G(), A(), Ln(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && D(xt) ? Wn(l, s) : Dt(l, s)) : (s = Y(!1, !0), D(xt) ? (Tt(s), Wn(l, s)) : Dt(l, s));
|
|
606
606
|
case Qt:
|
|
607
607
|
return A(), Ht(l, !0);
|
|
608
608
|
case Qn:
|
|
609
|
-
return A(), l.test = Xe(), l.da =
|
|
609
|
+
return A(), l.test = Xe(), l.da = ce(), l.alternate = D(Xn) ? ce() : null, x(l, "IfStatement");
|
|
610
610
|
case er:
|
|
611
|
-
return et || R.Ib || r(H, "'return' outside of function"), A(), D(
|
|
611
|
+
return et || R.Ib || r(H, "'return' outside of function"), A(), D(be) || wt() ? l.K = null : (l.K = Y(), Ne()), x(l, "ReturnStatement");
|
|
612
612
|
case en:
|
|
613
613
|
for (A(), l.Qb = Xe(), l.tb = [], W(nt), L.push(Bo); I !== We; )
|
|
614
|
-
I === Zt || I === Jn ? (s = I === Zt, f && x(f, "SwitchCase"), l.tb.push(f = G()), f.da = [], A(), s ? f.test = Y() : (
|
|
614
|
+
I === Zt || I === Jn ? (s = I === Zt, f && x(f, "SwitchCase"), l.tb.push(f = G()), f.da = [], A(), s ? f.test = Y() : (c && r(Jt, "Multiple default clauses"), c = !0, f.test = null), W(rt)) : (f || me(), f.da.push(ce()));
|
|
615
615
|
return f && x(f, "SwitchCase"), A(), L.pop(), x(l, "SwitchStatement");
|
|
616
616
|
case tr:
|
|
617
617
|
return A(), Rt.test(b.slice($e, H)) && r($e, "Illegal newline after throw"), l.K = Y(), Ne(), x(l, "ThrowStatement");
|
|
618
618
|
case nr:
|
|
619
|
-
return A(), l.block = Ye(), l.Ea = null, I ===
|
|
619
|
+
return A(), l.block = Ye(), l.Ea = null, I === qn && (s = G(), A(), W(ve), s.Ua = ge(), ie && At(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), W(he), s.body = Ye(), l.Ea = x(s, "CatchClause")), l.fb = D(Yn) ? Ye() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
620
620
|
case tn:
|
|
621
621
|
return A(), Ln(l), Ne(), x(l, "VariableDeclaration");
|
|
622
622
|
case nn:
|
|
623
|
-
return A(), l.test = Xe(), L.push(sn), l.body =
|
|
623
|
+
return A(), l.test = Xe(), L.push(sn), l.body = ce(), L.pop(), x(l, "WhileStatement");
|
|
624
624
|
case rr:
|
|
625
|
-
return ie && r(H, "'with' in strict mode"), A(), l.object = Xe(), l.body =
|
|
625
|
+
return ie && r(H, "'with' in strict mode"), A(), l.object = Xe(), l.body = ce(), x(l, "WithStatement");
|
|
626
626
|
case nt:
|
|
627
627
|
return Ye();
|
|
628
|
-
case
|
|
628
|
+
case be:
|
|
629
629
|
return A(), x(l, "EmptyStatement");
|
|
630
630
|
default:
|
|
631
|
-
if (
|
|
631
|
+
if (c = le, E = Y(), s === Me && E.type === "Identifier" && D(rt)) {
|
|
632
632
|
for (f = 0; f < L.length; ++f)
|
|
633
|
-
L[f].name ===
|
|
633
|
+
L[f].name === c && r(E.start, "Label '" + c + "' is already declared");
|
|
634
634
|
return L.push({
|
|
635
|
-
name:
|
|
635
|
+
name: c,
|
|
636
636
|
kind: I.W ? "loop" : I === en ? "switch" : null
|
|
637
|
-
}), l.body =
|
|
637
|
+
}), l.body = ce(), L.pop(), l.label = E, x(l, "LabeledStatement");
|
|
638
638
|
}
|
|
639
639
|
return l.la = E, Ne(), x(l, "ExpressionStatement");
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
function Xe() {
|
|
643
|
-
W(
|
|
643
|
+
W(ve);
|
|
644
644
|
var s = Y();
|
|
645
|
-
return W(
|
|
645
|
+
return W(he), s;
|
|
646
646
|
}
|
|
647
647
|
function Ye(s) {
|
|
648
|
-
var l = G(),
|
|
648
|
+
var l = G(), c = !0, f = !1;
|
|
649
649
|
for (l.body = [], W(nt); !D(We); ) {
|
|
650
|
-
var E =
|
|
651
|
-
if (l.body.push(E),
|
|
650
|
+
var E = ce();
|
|
651
|
+
if (l.body.push(E), c && s && Ut(E)) {
|
|
652
652
|
var K = f;
|
|
653
653
|
xe(f = !0);
|
|
654
654
|
}
|
|
655
|
-
|
|
655
|
+
c = !1;
|
|
656
656
|
}
|
|
657
657
|
return f && !K && xe(!1), x(l, "BlockStatement");
|
|
658
658
|
}
|
|
659
659
|
function Dt(s, l) {
|
|
660
|
-
return s.ua = l, W(
|
|
660
|
+
return s.ua = l, W(be), s.test = I === be ? null : Y(), W(be), s.update = I === he ? null : Y(), W(he), s.body = ce(), L.pop(), x(s, "ForStatement");
|
|
661
661
|
}
|
|
662
662
|
function Wn(s, l) {
|
|
663
|
-
return s.left = l, s.right = Y(), W(
|
|
663
|
+
return s.left = l, s.right = Y(), W(he), s.body = ce(), L.pop(), x(s, "ForInStatement");
|
|
664
664
|
}
|
|
665
665
|
function Ln(s, l) {
|
|
666
666
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
667
|
-
var
|
|
668
|
-
if (
|
|
667
|
+
var c = G();
|
|
668
|
+
if (c.id = ge(), ie && At(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = D(dr) ? Y(!0, l) : null, s.fa.push(x(c, "VariableDeclarator")), !D(Oe))
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
function Y(s, l) {
|
|
673
|
-
var
|
|
673
|
+
var c = Mt(l);
|
|
674
674
|
if (!s && I === Oe) {
|
|
675
|
-
for (s = Re(
|
|
675
|
+
for (s = Re(c), s.xb = [c]; D(Oe); )
|
|
676
676
|
s.xb.push(Mt(l));
|
|
677
677
|
return x(s, "SequenceExpression");
|
|
678
678
|
}
|
|
679
|
-
return
|
|
679
|
+
return c;
|
|
680
680
|
}
|
|
681
681
|
function Mt(s) {
|
|
682
682
|
var l = Wt(Lt(), -1, s);
|
|
683
|
-
if (D(
|
|
684
|
-
var
|
|
685
|
-
|
|
683
|
+
if (D(cr)) {
|
|
684
|
+
var c = Re(l);
|
|
685
|
+
c.test = l, c.da = Y(!0), W(rt), c.alternate = Y(!0, s), l = x(c, "ConditionalExpression");
|
|
686
686
|
}
|
|
687
|
-
return I.Cb ? (
|
|
687
|
+
return I.Cb ? (c = Re(l), c.operator = le, c.left = l, A(), c.right = Mt(s), Tt(l), x(c, "AssignmentExpression")) : l;
|
|
688
688
|
}
|
|
689
|
-
function Wt(s, l,
|
|
689
|
+
function Wt(s, l, c) {
|
|
690
690
|
var f = I.L;
|
|
691
|
-
if (f !== null && (!
|
|
691
|
+
if (f !== null && (!c || I !== xt) && f > l) {
|
|
692
692
|
var E = Re(s);
|
|
693
|
-
return E.left = s, E.operator = le, s = I, A(), E.right = Wt(Lt(), f,
|
|
693
|
+
return E.left = s, E.operator = le, s = I, A(), E.right = Wt(Lt(), f, c), f = x(E, s === fr || s === mr ? "LogicalExpression" : "BinaryExpression"), Wt(f, l, c);
|
|
694
694
|
}
|
|
695
695
|
return s;
|
|
696
696
|
}
|
|
@@ -704,11 +704,11 @@ var B, ni = function(e) {
|
|
|
704
704
|
return l;
|
|
705
705
|
}
|
|
706
706
|
function Ze(s, l) {
|
|
707
|
-
if (D(
|
|
708
|
-
var
|
|
709
|
-
return
|
|
707
|
+
if (D(ur)) {
|
|
708
|
+
var c = Re(s);
|
|
709
|
+
return c.object = s, c.Wa = ge(!0), c.bb = !1, Ze(x(c, "MemberExpression"), l);
|
|
710
710
|
}
|
|
711
|
-
return D(rn) ? (
|
|
711
|
+
return D(rn) ? (c = Re(s), c.object = s, c.Wa = Y(), c.bb = !0, W(on), Ze(x(c, "MemberExpression"), l)) : !l && D(ve) ? (c = Re(s), c.callee = s, c.arguments = Kt(he, !1), Ze(x(c, "CallExpression"), l)) : s;
|
|
712
712
|
}
|
|
713
713
|
function It() {
|
|
714
714
|
switch (I) {
|
|
@@ -716,7 +716,7 @@ var B, ni = function(e) {
|
|
|
716
716
|
var s = G();
|
|
717
717
|
return A(), x(s, "ThisExpression");
|
|
718
718
|
case Me:
|
|
719
|
-
return
|
|
719
|
+
return ge();
|
|
720
720
|
case tt:
|
|
721
721
|
case Et:
|
|
722
722
|
case Kn:
|
|
@@ -725,29 +725,29 @@ var B, ni = function(e) {
|
|
|
725
725
|
case ar:
|
|
726
726
|
case lr:
|
|
727
727
|
return s = G(), s.value = I.$a, s.raw = I.l, A(), x(s, "Literal");
|
|
728
|
-
case
|
|
729
|
-
s =
|
|
728
|
+
case ve:
|
|
729
|
+
s = zt;
|
|
730
730
|
var l = H;
|
|
731
731
|
A();
|
|
732
|
-
var
|
|
733
|
-
return
|
|
732
|
+
var c = Y();
|
|
733
|
+
return c.start = l, c.end = De, R.C && (c.X.start = s, c.X.end = Gt), R.Xa && (c.j = [l, De]), W(he), c;
|
|
734
734
|
case rn:
|
|
735
735
|
return s = G(), A(), s.elements = Kt(on, !0, !0), x(s, "ArrayExpression");
|
|
736
736
|
case nt:
|
|
737
|
-
for (s = G(), l = !0,
|
|
737
|
+
for (s = G(), l = !0, c = !1, s.h = [], A(); !D(We); ) {
|
|
738
738
|
if (l)
|
|
739
739
|
l = !1;
|
|
740
740
|
else if (W(Oe), R.sb && D(We))
|
|
741
741
|
break;
|
|
742
742
|
var f = {
|
|
743
|
-
key: I === tt || I === Et ? It() :
|
|
743
|
+
key: I === tt || I === Et ? It() : ge(!0)
|
|
744
744
|
}, E = !1;
|
|
745
745
|
if (D(rt)) {
|
|
746
746
|
f.value = Y(!0);
|
|
747
747
|
var K = f.kind = "init";
|
|
748
748
|
} else
|
|
749
|
-
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ?
|
|
750
|
-
if (f.key.type === "Identifier" && (ie ||
|
|
749
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? me() : (E = c = !0, K = f.kind = f.key.name, f.key = I === tt || I === Et ? It() : ge(!0), I !== ve && me(), f.value = Ht(G(), !1));
|
|
750
|
+
if (f.key.type === "Identifier" && (ie || c))
|
|
751
751
|
for (var te = 0; te < s.h.length; ++te) {
|
|
752
752
|
var He = s.h[te];
|
|
753
753
|
if (He.key.name === f.key.name) {
|
|
@@ -761,47 +761,47 @@ var B, ni = function(e) {
|
|
|
761
761
|
case Qt:
|
|
762
762
|
return s = G(), A(), Ht(s, !1);
|
|
763
763
|
case or:
|
|
764
|
-
return s = G(), A(), s.callee = Ze(It(), !0), s.arguments = D(
|
|
764
|
+
return s = G(), A(), s.callee = Ze(It(), !0), s.arguments = D(ve) ? Kt(he, !1) : bo, x(s, "NewExpression");
|
|
765
765
|
}
|
|
766
|
-
|
|
766
|
+
me();
|
|
767
767
|
}
|
|
768
768
|
function Ht(s, l) {
|
|
769
|
-
I === Me ? s.id =
|
|
770
|
-
var
|
|
771
|
-
for (W(
|
|
772
|
-
|
|
773
|
-
|
|
769
|
+
I === Me ? s.id = ge() : l ? me() : s.id = null, s.oa = [];
|
|
770
|
+
var c = !0;
|
|
771
|
+
for (W(ve); !D(he); )
|
|
772
|
+
c ? c = !1 : W(Oe), s.oa.push(ge());
|
|
773
|
+
c = et;
|
|
774
774
|
var f = L;
|
|
775
|
-
if (et = !0, L = [], s.body = Ye(!0), et =
|
|
776
|
-
for (
|
|
777
|
-
if (f = 0 >
|
|
778
|
-
for (var E = 0; E <
|
|
775
|
+
if (et = !0, L = [], s.body = Ye(!0), et = c, L = f, ie || s.body.body.length && Ut(s.body.body[0])) {
|
|
776
|
+
for (c = s.id ? -1 : 0; c < s.oa.length; ++c)
|
|
777
|
+
if (f = 0 > c ? s.id : s.oa[c], (gr(f.name) || At(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c)
|
|
778
|
+
for (var E = 0; E < c; ++E)
|
|
779
779
|
f.name === s.oa[E].name && r(f.start, "Argument name clash in strict mode");
|
|
780
780
|
}
|
|
781
781
|
return x(s, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
782
782
|
}
|
|
783
|
-
function Kt(s, l,
|
|
783
|
+
function Kt(s, l, c) {
|
|
784
784
|
for (var f = [], E = !0; !D(s); ) {
|
|
785
785
|
if (E)
|
|
786
786
|
E = !1;
|
|
787
787
|
else if (W(Oe), l && R.sb && D(s))
|
|
788
788
|
break;
|
|
789
|
-
f.push(
|
|
789
|
+
f.push(c && I === Oe ? null : Y(!0));
|
|
790
790
|
}
|
|
791
791
|
return f;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function ge(s) {
|
|
794
794
|
var l = G();
|
|
795
|
-
return s && R.yb === "everywhere" && (s = !1), I === Me ? (!s && (R.yb && $o(le) || ie && gr(le)) && b.slice(H, De).indexOf("\\") === -1 && r(H, "The keyword '" + le + "' is reserved"), l.name = le) : s && I.l ? l.name = I.l :
|
|
795
|
+
return s && R.yb === "everywhere" && (s = !1), I === Me ? (!s && (R.yb && $o(le) || ie && gr(le)) && b.slice(H, De).indexOf("\\") === -1 && r(H, "The keyword '" + le + "' is reserved"), l.name = le) : s && I.l ? l.name = I.l : me(), Qe = !1, A(), x(l, "Identifier");
|
|
796
796
|
}
|
|
797
797
|
e.version = "0.5.0";
|
|
798
|
-
var R, b = "", Ue,
|
|
798
|
+
var R, b = "", Ue, qt;
|
|
799
799
|
e.parse = function(s, l) {
|
|
800
800
|
b = String(s), Ue = b.length, R = l || {};
|
|
801
|
-
for (var
|
|
802
|
-
Object.prototype.hasOwnProperty.call(R,
|
|
803
|
-
for (
|
|
804
|
-
|
|
801
|
+
for (var c in Hn)
|
|
802
|
+
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = Hn[c]);
|
|
803
|
+
for (qt = R.sourceFile, Ve = 1, d = ye = 0, Qe = !0, p(), c = R.dc, Jt = $e = d, R.C && (_t = new i()), et = ie = !1, L = [], v(), s = c || G(), l = !0, c || (s.body = []); I !== Xt; )
|
|
804
|
+
c = ce(), s.body.push(c), l && Ut(c) && xe(!0), l = !1;
|
|
805
805
|
return x(s, "Program");
|
|
806
806
|
};
|
|
807
807
|
var Hn = {
|
|
@@ -815,7 +815,7 @@ var B, ni = function(e) {
|
|
|
815
815
|
dc: null,
|
|
816
816
|
sourceFile: null,
|
|
817
817
|
vb: null
|
|
818
|
-
}, d = 0, H = 0, De = 0,
|
|
818
|
+
}, d = 0, H = 0, De = 0, zt, Gt, I, le, Qe, Ve, ye, Jt = 0, $e = 0, _t, et, L, ie, bo = [], tt = {
|
|
819
819
|
type: "num"
|
|
820
820
|
}, Kn = {
|
|
821
821
|
type: "regexp"
|
|
@@ -830,11 +830,11 @@ var B, ni = function(e) {
|
|
|
830
830
|
}, Zt = {
|
|
831
831
|
l: "case",
|
|
832
832
|
m: !0
|
|
833
|
-
},
|
|
833
|
+
}, qn = {
|
|
834
834
|
l: "catch"
|
|
835
|
-
},
|
|
835
|
+
}, zn = {
|
|
836
836
|
l: "continue"
|
|
837
|
-
},
|
|
837
|
+
}, Gn = {
|
|
838
838
|
l: "debugger"
|
|
839
839
|
}, Jn = {
|
|
840
840
|
l: "default"
|
|
@@ -891,9 +891,9 @@ var B, ni = function(e) {
|
|
|
891
891
|
}, ko = {
|
|
892
892
|
break: Yt,
|
|
893
893
|
case: Zt,
|
|
894
|
-
catch:
|
|
895
|
-
continue:
|
|
896
|
-
debugger:
|
|
894
|
+
catch: qn,
|
|
895
|
+
continue: zn,
|
|
896
|
+
debugger: Gn,
|
|
897
897
|
default: Jn,
|
|
898
898
|
do: _n,
|
|
899
899
|
else: Xn,
|
|
@@ -944,23 +944,23 @@ var B, ni = function(e) {
|
|
|
944
944
|
m: !0
|
|
945
945
|
}, We = {
|
|
946
946
|
type: "}"
|
|
947
|
-
},
|
|
947
|
+
}, ve = {
|
|
948
948
|
type: "(",
|
|
949
949
|
m: !0
|
|
950
|
-
},
|
|
950
|
+
}, he = {
|
|
951
951
|
type: ")"
|
|
952
952
|
}, Oe = {
|
|
953
953
|
type: ",",
|
|
954
954
|
m: !0
|
|
955
|
-
},
|
|
955
|
+
}, be = {
|
|
956
956
|
type: ";",
|
|
957
957
|
m: !0
|
|
958
958
|
}, rt = {
|
|
959
959
|
type: ":",
|
|
960
960
|
m: !0
|
|
961
|
-
}, cr = {
|
|
962
|
-
type: "."
|
|
963
961
|
}, ur = {
|
|
962
|
+
type: "."
|
|
963
|
+
}, cr = {
|
|
964
964
|
type: "?",
|
|
965
965
|
m: !0
|
|
966
966
|
}, pr = {
|
|
@@ -1018,7 +1018,7 @@ var B, ni = function(e) {
|
|
|
1018
1018
|
}, gn = gn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1019
1019
|
ni(gn.j || (gn.j = {}));
|
|
1020
1020
|
function g(e, t) {
|
|
1021
|
-
typeof e == "string" && (e =
|
|
1021
|
+
typeof e == "string" && (e = ze(e, "code"));
|
|
1022
1022
|
var n = e.constructor;
|
|
1023
1023
|
this.ya = function() {
|
|
1024
1024
|
return new n({
|
|
@@ -1032,7 +1032,7 @@ function g(e, t) {
|
|
|
1032
1032
|
var i, a;
|
|
1033
1033
|
for (a in this)
|
|
1034
1034
|
typeof this[a] == "function" && (i = a.match(e)) && (this.rb[i[1]] = this[a].bind(this));
|
|
1035
|
-
this.N = vn(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
1035
|
+
this.N = vn(this, this.ra, null), this.Na = this.N.object, this.ra = ze(this.ba.join(`
|
|
1036
1036
|
`), "polyfills"), this.ba = void 0, Vt(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1037
1037
|
}
|
|
1038
1038
|
var vr = {
|
|
@@ -1066,7 +1066,7 @@ var vr = {
|
|
|
1066
1066
|
VALUE_IN_DESCRIPTOR: !0
|
|
1067
1067
|
}, Ke = {
|
|
1068
1068
|
REGEXP_TIMEOUT: !0
|
|
1069
|
-
}, kr = [],
|
|
1069
|
+
}, kr = [], Ce = null, pt = null, je = typeof globalThis > "u" ? void 0 : globalThis, ri = ["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();", "};"];
|
|
1070
1070
|
function In(e) {
|
|
1071
1071
|
var t = e >>> 0;
|
|
1072
1072
|
return t === Number(e) ? t : NaN;
|
|
@@ -1091,7 +1091,7 @@ B.P = !1;
|
|
|
1091
1091
|
B.Ka = !1;
|
|
1092
1092
|
B.Kb = 0;
|
|
1093
1093
|
B.ic = 0;
|
|
1094
|
-
function
|
|
1094
|
+
function ze(e, t) {
|
|
1095
1095
|
var n = {}, r;
|
|
1096
1096
|
for (r in vr)
|
|
1097
1097
|
n[r] = vr[r];
|
|
@@ -1101,7 +1101,7 @@ B.Jb = function(e) {
|
|
|
1101
1101
|
var t = this.o[0];
|
|
1102
1102
|
if (!t || t.node.type !== "Program")
|
|
1103
1103
|
throw Error("Expecting original AST to start with a Program node");
|
|
1104
|
-
if (typeof e == "string" && (e =
|
|
1104
|
+
if (typeof e == "string" && (e = ze(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
1105
1105
|
throw Error("Expecting new AST to start with a Program node");
|
|
1106
1106
|
yt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1107
1107
|
};
|
|
@@ -1149,7 +1149,7 @@ B.Eb = function() {
|
|
|
1149
1149
|
return this.za;
|
|
1150
1150
|
};
|
|
1151
1151
|
function oi(e, t) {
|
|
1152
|
-
e.g(t, "NaN", NaN, it), e.g(t, "Infinity", 1 / 0, it), e.g(t, "undefined", void 0, it), e.g(t, "window", t, Tn), e.g(t, "this", t, it), e.g(t, "self", t), e.M = new $(null), e.Z = new $(e.M), ii(e, t), si(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), ai(e, t), li(e, t),
|
|
1152
|
+
e.g(t, "NaN", NaN, it), e.g(t, "Infinity", 1 / 0, it), e.g(t, "undefined", void 0, it), e.g(t, "window", t, Tn), e.g(t, "this", t, it), e.g(t, "self", t), e.M = new $(null), e.Z = new $(e.M), ii(e, t), si(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), ai(e, t), li(e, t), ui(e, t), ci(e, t), pi(e, t), di(e, t), hi(e, t), fi(e, t), mi(e, t);
|
|
1153
1153
|
var n = e.i(function() {
|
|
1154
1154
|
throw EvalError("Can't happen");
|
|
1155
1155
|
}, !1);
|
|
@@ -1159,8 +1159,8 @@ function oi(e, t) {
|
|
|
1159
1159
|
return function(a) {
|
|
1160
1160
|
try {
|
|
1161
1161
|
return i(a);
|
|
1162
|
-
} catch (
|
|
1163
|
-
w(e, e.Gb,
|
|
1162
|
+
} catch (u) {
|
|
1163
|
+
w(e, e.Gb, u.message);
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), k);
|
|
@@ -1180,14 +1180,14 @@ function ii(e, t) {
|
|
|
1180
1180
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1181
1181
|
if (a) {
|
|
1182
1182
|
a = a.split(/\s*,\s*/);
|
|
1183
|
-
for (var
|
|
1184
|
-
var p = a[
|
|
1183
|
+
for (var u = 0; u < a.length; u++) {
|
|
1184
|
+
var p = a[u];
|
|
1185
1185
|
n.test(p) || w(e, e.T, "Invalid function argument: " + p);
|
|
1186
1186
|
}
|
|
1187
1187
|
a = a.join(", ");
|
|
1188
1188
|
}
|
|
1189
1189
|
try {
|
|
1190
|
-
var m =
|
|
1190
|
+
var m = ze("(function(" + a + ") {" + i + "})", "function" + e.Wb++);
|
|
1191
1191
|
} catch (v) {
|
|
1192
1192
|
w(e, e.T, "Invalid code: " + v.message);
|
|
1193
1193
|
}
|
|
@@ -1197,17 +1197,17 @@ function ii(e, t) {
|
|
|
1197
1197
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", r = function(o, i) {
|
|
1198
1198
|
var a = e.o[e.o.length - 1];
|
|
1199
1199
|
a.U = this, a.B = o, a.F = [], i != null && (i instanceof $ ? a.F = Wr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1200
|
-
},
|
|
1200
|
+
}, q(e, e.O, "apply", r), r = function(o) {
|
|
1201
1201
|
var i = e.o[e.o.length - 1];
|
|
1202
1202
|
i.U = this, i.B = o, i.F = [];
|
|
1203
1203
|
for (var a = 1; a < arguments.length; a++)
|
|
1204
1204
|
i.F.push(arguments[a]);
|
|
1205
1205
|
i.eb = !1;
|
|
1206
|
-
},
|
|
1206
|
+
}, q(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() {
|
|
1207
1207
|
return String(this);
|
|
1208
|
-
},
|
|
1208
|
+
}, q(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), k), r = function() {
|
|
1209
1209
|
return this.valueOf();
|
|
1210
|
-
},
|
|
1210
|
+
}, q(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), k);
|
|
1211
1211
|
}
|
|
1212
1212
|
function si(e, t) {
|
|
1213
1213
|
function n(o) {
|
|
@@ -1217,46 +1217,46 @@ function si(e, t) {
|
|
|
1217
1217
|
if (o == null)
|
|
1218
1218
|
return Ee(e) ? this : e.s(e.M);
|
|
1219
1219
|
if (!(o instanceof $)) {
|
|
1220
|
-
var i = e.s(
|
|
1220
|
+
var i = e.s(we(e, o));
|
|
1221
1221
|
return i.data = o, i;
|
|
1222
1222
|
}
|
|
1223
1223
|
return o;
|
|
1224
1224
|
};
|
|
1225
1225
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(o) {
|
|
1226
|
-
return n(o),
|
|
1226
|
+
return n(o), Se(e, Object.getOwnPropertyNames(o instanceof $ ? o.h : o));
|
|
1227
1227
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(o) {
|
|
1228
|
-
return n(o), o instanceof $ && (o = o.h),
|
|
1228
|
+
return n(o), o instanceof $ && (o = o.h), Se(e, Object.keys(o));
|
|
1229
1229
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(o) {
|
|
1230
1230
|
return o === null ? e.s(null) : (o instanceof $ || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1231
1231
|
}, e.g(e.v, "create", e.i(r, !1), k), 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, a) {
|
|
1232
1232
|
return i = String(i), o instanceof $ || w(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof $ || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, gt, a.h), o;
|
|
1233
1233
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), 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) {
|
|
1234
1234
|
if (o instanceof $ || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1235
|
-
var a = Object.getOwnPropertyDescriptor(o.h, i),
|
|
1236
|
-
return o = o.Y[i], i = e.s(e.M),
|
|
1235
|
+
var a = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1236
|
+
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", a.value), e.g(i, "writable", a.writable)), e.g(i, "configurable", a.configurable), e.g(i, "enumerable", a.enumerable), i;
|
|
1237
1237
|
}
|
|
1238
1238
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), k), r = function(o) {
|
|
1239
|
-
return n(o),
|
|
1239
|
+
return n(o), we(e, o);
|
|
1240
1240
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(o) {
|
|
1241
1241
|
return !!o && !o.preventExtensions;
|
|
1242
1242
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(o) {
|
|
1243
1243
|
return o instanceof $ && (o.preventExtensions = !0), o;
|
|
1244
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k),
|
|
1244
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), q(e, e.v, "toString", $.prototype.toString), q(e, e.v, "toLocaleString", $.prototype.toString), q(e, e.v, "valueOf", $.prototype.valueOf), r = function(o) {
|
|
1245
1245
|
return n(this), this instanceof $ ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1246
|
-
},
|
|
1246
|
+
}, q(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1247
1247
|
return n(this), this instanceof $ ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1248
|
-
},
|
|
1248
|
+
}, q(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1249
1249
|
for (; ; ) {
|
|
1250
|
-
if (o =
|
|
1250
|
+
if (o = we(e, o), !o)
|
|
1251
1251
|
return !1;
|
|
1252
1252
|
if (o === this)
|
|
1253
1253
|
return !0;
|
|
1254
1254
|
}
|
|
1255
|
-
},
|
|
1255
|
+
}, q(e, e.v, "isPrototypeOf", r);
|
|
1256
1256
|
}
|
|
1257
1257
|
function ai(e, t) {
|
|
1258
1258
|
var n = function(r) {
|
|
1259
|
-
var o = Ee(e) ? this :
|
|
1259
|
+
var o = Ee(e) ? this : Ge(e), i = arguments[0];
|
|
1260
1260
|
if (arguments.length === 1 && typeof i == "number")
|
|
1261
1261
|
isNaN(In(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1262
1262
|
else {
|
|
@@ -1279,7 +1279,7 @@ function li(e, t) {
|
|
|
1279
1279
|
return r = arguments.length ? je.String(r) : "", Ee(e) ? (this.data = r, this) : r;
|
|
1280
1280
|
};
|
|
1281
1281
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, k), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), k), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1282
|
-
|
|
1282
|
+
q(e, e.J, t[n], String.prototype[t[n]]);
|
|
1283
1283
|
n = function(r, o, i) {
|
|
1284
1284
|
o = e.R(o), i = e.R(i);
|
|
1285
1285
|
try {
|
|
@@ -1287,82 +1287,82 @@ function li(e, t) {
|
|
|
1287
1287
|
} catch (a) {
|
|
1288
1288
|
w(e, e.D, "localeCompare: " + a.message);
|
|
1289
1289
|
}
|
|
1290
|
-
},
|
|
1290
|
+
}, q(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1291
1291
|
var a = String(this);
|
|
1292
|
-
if (o = o ? Number(o) : void 0,
|
|
1293
|
-
if (
|
|
1292
|
+
if (o = o ? Number(o) : void 0, J(e, r, e.I) && (r = r.data, at(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1293
|
+
if (Ce)
|
|
1294
1294
|
r = st(e, "string.split(separator, limit)", {
|
|
1295
1295
|
string: a,
|
|
1296
1296
|
separator: r,
|
|
1297
1297
|
limit: o
|
|
1298
|
-
}, r, i), r !== Ke && i(
|
|
1298
|
+
}, r, i), r !== Ke && i(Se(e, r));
|
|
1299
1299
|
else {
|
|
1300
|
-
var
|
|
1301
|
-
|
|
1302
|
-
clearTimeout(p), i(
|
|
1303
|
-
},
|
|
1300
|
+
var u = e.ha(), p = lt(e, r, u, i);
|
|
1301
|
+
u.onmessage = function(m) {
|
|
1302
|
+
clearTimeout(p), i(Se(e, m.data));
|
|
1303
|
+
}, u.postMessage(["split", a, r, o]);
|
|
1304
1304
|
}
|
|
1305
1305
|
return;
|
|
1306
1306
|
}
|
|
1307
|
-
r = a.split(r, o), i(
|
|
1308
|
-
},
|
|
1307
|
+
r = a.split(r, o), i(Se(e, r));
|
|
1308
|
+
}, ut(e, e.J, "split", n), n = function(r, o) {
|
|
1309
1309
|
var i = String(this);
|
|
1310
|
-
if (r =
|
|
1311
|
-
if (
|
|
1310
|
+
if (r = J(e, r, e.I) ? r.data : new RegExp(r), at(e, r, o), e.REGEXP_MODE === 2)
|
|
1311
|
+
if (Ce)
|
|
1312
1312
|
r = st(e, "string.match(regexp)", {
|
|
1313
1313
|
string: i,
|
|
1314
1314
|
regexp: r
|
|
1315
|
-
}, r, o), r !== Ke && o(r &&
|
|
1315
|
+
}, r, o), r !== Ke && o(r && Se(e, r));
|
|
1316
1316
|
else {
|
|
1317
|
-
var a = e.ha(),
|
|
1317
|
+
var a = e.ha(), u = lt(e, r, a, o);
|
|
1318
1318
|
a.onmessage = function(p) {
|
|
1319
|
-
clearTimeout(
|
|
1319
|
+
clearTimeout(u), o(p.data && Se(e, p.data));
|
|
1320
1320
|
}, a.postMessage(["match", i, r]);
|
|
1321
1321
|
}
|
|
1322
1322
|
else
|
|
1323
|
-
r = i.match(r), o(r &&
|
|
1324
|
-
},
|
|
1323
|
+
r = i.match(r), o(r && Se(e, r));
|
|
1324
|
+
}, ut(e, e.J, "match", n), n = function(r, o) {
|
|
1325
1325
|
var i = String(this);
|
|
1326
|
-
if (
|
|
1327
|
-
if (
|
|
1326
|
+
if (J(e, r, e.I) ? r = r.data : r = new RegExp(r), at(e, r, o), e.REGEXP_MODE === 2)
|
|
1327
|
+
if (Ce)
|
|
1328
1328
|
r = st(e, "string.search(regexp)", {
|
|
1329
1329
|
string: i,
|
|
1330
1330
|
regexp: r
|
|
1331
1331
|
}, r, o), r !== Ke && o(r);
|
|
1332
1332
|
else {
|
|
1333
|
-
var a = e.ha(),
|
|
1333
|
+
var a = e.ha(), u = lt(e, r, a, o);
|
|
1334
1334
|
a.onmessage = function(p) {
|
|
1335
|
-
clearTimeout(
|
|
1335
|
+
clearTimeout(u), o(p.data);
|
|
1336
1336
|
}, a.postMessage(["search", i, r]);
|
|
1337
1337
|
}
|
|
1338
1338
|
else
|
|
1339
1339
|
o(i.search(r));
|
|
1340
|
-
},
|
|
1340
|
+
}, ut(e, e.J, "search", n), n = function(r, o, i) {
|
|
1341
1341
|
var a = String(this);
|
|
1342
|
-
if (o = String(o),
|
|
1343
|
-
if (
|
|
1342
|
+
if (o = String(o), J(e, r, e.I) && (r = r.data, at(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1343
|
+
if (Ce)
|
|
1344
1344
|
r = st(e, "string.replace(substr, newSubstr)", {
|
|
1345
1345
|
string: a,
|
|
1346
1346
|
substr: r,
|
|
1347
1347
|
newSubstr: o
|
|
1348
1348
|
}, r, i), r !== Ke && i(r);
|
|
1349
1349
|
else {
|
|
1350
|
-
var
|
|
1351
|
-
|
|
1350
|
+
var u = e.ha(), p = lt(e, r, u, i);
|
|
1351
|
+
u.onmessage = function(m) {
|
|
1352
1352
|
clearTimeout(p), i(m.data);
|
|
1353
|
-
},
|
|
1353
|
+
}, u.postMessage(["replace", a, r, o]);
|
|
1354
1354
|
}
|
|
1355
1355
|
return;
|
|
1356
1356
|
}
|
|
1357
1357
|
i(a.replace(r, o));
|
|
1358
|
-
},
|
|
1358
|
+
}, ut(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function ui(e, t) {
|
|
1361
1361
|
e.mb = e.i(function(n) {
|
|
1362
1362
|
return n = je.Boolean(n), Ee(e) ? (this.data = n, this) : n;
|
|
1363
1363
|
}, !0), e.g(t, "Boolean", e.mb, k);
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function ci(e, t) {
|
|
1366
1366
|
var n = function(r) {
|
|
1367
1367
|
return r = arguments.length ? je.Number(r) : 0, Ee(e) ? (this.data = r, this) : r;
|
|
1368
1368
|
};
|
|
@@ -1374,32 +1374,32 @@ function ui(e, t) {
|
|
|
1374
1374
|
} catch (o) {
|
|
1375
1375
|
w(e, e.D, o.message);
|
|
1376
1376
|
}
|
|
1377
|
-
},
|
|
1377
|
+
}, q(e, e.aa, "toExponential", n), n = function(r) {
|
|
1378
1378
|
try {
|
|
1379
1379
|
return Number(this).toFixed(r);
|
|
1380
1380
|
} catch (o) {
|
|
1381
1381
|
w(e, e.D, o.message);
|
|
1382
1382
|
}
|
|
1383
|
-
},
|
|
1383
|
+
}, q(e, e.aa, "toFixed", n), n = function(r) {
|
|
1384
1384
|
try {
|
|
1385
1385
|
return Number(this).toPrecision(r);
|
|
1386
1386
|
} catch (o) {
|
|
1387
1387
|
w(e, e.D, o.message);
|
|
1388
1388
|
}
|
|
1389
|
-
},
|
|
1389
|
+
}, q(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1390
1390
|
try {
|
|
1391
1391
|
return Number(this).toString(r);
|
|
1392
1392
|
} catch (o) {
|
|
1393
1393
|
w(e, e.D, o.message);
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1395
|
+
}, q(e, e.aa, "toString", n), n = function(r, o) {
|
|
1396
1396
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1397
1397
|
try {
|
|
1398
1398
|
return Number(this).toLocaleString(r, o);
|
|
1399
1399
|
} catch (i) {
|
|
1400
1400
|
w(e, e.D, "toLocaleString: " + i.message);
|
|
1401
1401
|
}
|
|
1402
|
-
},
|
|
1402
|
+
}, q(e, e.aa, "toLocaleString", n);
|
|
1403
1403
|
}
|
|
1404
1404
|
function pi(e, t) {
|
|
1405
1405
|
var n = function(o, i) {
|
|
@@ -1414,53 +1414,53 @@ function pi(e, t) {
|
|
|
1414
1414
|
return function(i) {
|
|
1415
1415
|
var a = this.data;
|
|
1416
1416
|
a instanceof Date || w(e, e.j, o + " not called on a Date");
|
|
1417
|
-
for (var
|
|
1418
|
-
|
|
1419
|
-
return a[o].apply(a,
|
|
1417
|
+
for (var u = [], p = 0; p < arguments.length; p++)
|
|
1418
|
+
u[p] = e.R(arguments[p]);
|
|
1419
|
+
return a[o].apply(a, u);
|
|
1420
1420
|
};
|
|
1421
|
-
}(t[r]),
|
|
1421
|
+
}(t[r]), q(e, e.$, t[r], n);
|
|
1422
1422
|
}
|
|
1423
1423
|
function di(e, t) {
|
|
1424
1424
|
var n = function(r, o) {
|
|
1425
1425
|
if (Ee(e))
|
|
1426
1426
|
var i = this;
|
|
1427
1427
|
else {
|
|
1428
|
-
if (o === void 0 &&
|
|
1428
|
+
if (o === void 0 && J(e, r, e.I))
|
|
1429
1429
|
return r;
|
|
1430
1430
|
i = e.s(e.Ma);
|
|
1431
1431
|
}
|
|
1432
1432
|
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1433
1433
|
try {
|
|
1434
1434
|
var a = new je.RegExp(r, o);
|
|
1435
|
-
} catch (
|
|
1436
|
-
w(e, e.T,
|
|
1435
|
+
} catch (u) {
|
|
1436
|
+
w(e, e.T, u.message);
|
|
1437
1437
|
}
|
|
1438
1438
|
return En(e, i, a), i;
|
|
1439
1439
|
};
|
|
1440
1440
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, re), e.g(e.I.h.prototype, "ignoreCase", void 0, re), e.g(e.I.h.prototype, "multiline", void 0, re), e.g(e.I.h.prototype, "source", "(?:)", re), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1441
1441
|
function i(v) {
|
|
1442
1442
|
if (v) {
|
|
1443
|
-
var h =
|
|
1443
|
+
var h = Se(e, v);
|
|
1444
1444
|
return e.g(h, "index", v.index), e.g(h, "input", v.input), h;
|
|
1445
1445
|
}
|
|
1446
1446
|
return null;
|
|
1447
1447
|
}
|
|
1448
1448
|
var a = this.data;
|
|
1449
1449
|
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), at(e, a, o), e.REGEXP_MODE === 2)
|
|
1450
|
-
if (
|
|
1450
|
+
if (Ce)
|
|
1451
1451
|
r = st(e, "regexp.exec(string)", {
|
|
1452
1452
|
string: r,
|
|
1453
1453
|
regexp: a
|
|
1454
1454
|
}, a, o), r !== Ke && (e.g(this, "lastIndex", a.lastIndex), o(i(r)));
|
|
1455
1455
|
else {
|
|
1456
|
-
var
|
|
1457
|
-
|
|
1456
|
+
var u = e.ha(), p = lt(e, a, u, o), m = this;
|
|
1457
|
+
u.onmessage = function(v) {
|
|
1458
1458
|
clearTimeout(p), e.g(m, "lastIndex", v.data[1]), o(i(v.data[0]));
|
|
1459
|
-
},
|
|
1459
|
+
}, u.postMessage(["exec", a, a.lastIndex, r]);
|
|
1460
1460
|
}
|
|
1461
1461
|
else
|
|
1462
1462
|
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(i(r));
|
|
1463
|
-
},
|
|
1463
|
+
}, ut(e, e.I, "exec", n);
|
|
1464
1464
|
}
|
|
1465
1465
|
function hi(e, t) {
|
|
1466
1466
|
function n(r) {
|
|
@@ -1494,23 +1494,23 @@ function mi(e, t) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
return e.Ia(o);
|
|
1496
1496
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1497
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Wr(e, o), o = o.filter(function(
|
|
1498
|
-
return typeof
|
|
1497
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Wr(e, o), o = o.filter(function(u) {
|
|
1498
|
+
return typeof u == "string" || typeof u == "number";
|
|
1499
1499
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1500
1500
|
try {
|
|
1501
1501
|
var a = JSON.stringify(r, o, i);
|
|
1502
|
-
} catch (
|
|
1503
|
-
w(e, e.j,
|
|
1502
|
+
} catch (u) {
|
|
1503
|
+
w(e, e.j, u.message);
|
|
1504
1504
|
}
|
|
1505
1505
|
return a;
|
|
1506
1506
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function J(e, t, n) {
|
|
1509
1509
|
if (t == null || !n)
|
|
1510
1510
|
return !1;
|
|
1511
1511
|
if (n = n.h.prototype, t === n)
|
|
1512
1512
|
return !0;
|
|
1513
|
-
for (t =
|
|
1513
|
+
for (t = we(e, t); t; ) {
|
|
1514
1514
|
if (t === n)
|
|
1515
1515
|
return !0;
|
|
1516
1516
|
t = t.xa;
|
|
@@ -1549,7 +1549,7 @@ function st(e, t, n, r, o) {
|
|
|
1549
1549
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1550
1550
|
};
|
|
1551
1551
|
try {
|
|
1552
|
-
return
|
|
1552
|
+
return Ce.runInNewContext(t, n, i);
|
|
1553
1553
|
} catch {
|
|
1554
1554
|
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1555
1555
|
}
|
|
@@ -1560,16 +1560,16 @@ function at(e, t, n) {
|
|
|
1560
1560
|
var r = !1;
|
|
1561
1561
|
else if (e.REGEXP_MODE === 1)
|
|
1562
1562
|
r = !0;
|
|
1563
|
-
else if (
|
|
1563
|
+
else if (Ce)
|
|
1564
1564
|
r = !0;
|
|
1565
1565
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1566
1566
|
r = !0;
|
|
1567
1567
|
else if (typeof require == "function") {
|
|
1568
1568
|
try {
|
|
1569
|
-
|
|
1569
|
+
Ce = require("vm");
|
|
1570
1570
|
} catch {
|
|
1571
1571
|
}
|
|
1572
|
-
r = !!
|
|
1572
|
+
r = !!Ce;
|
|
1573
1573
|
} else
|
|
1574
1574
|
r = !1;
|
|
1575
1575
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -1589,9 +1589,9 @@ B.Aa = function(e) {
|
|
|
1589
1589
|
B.s = function(e) {
|
|
1590
1590
|
if (typeof e != "object")
|
|
1591
1591
|
throw Error("Non object prototype");
|
|
1592
|
-
return e = new $(e),
|
|
1592
|
+
return e = new $(e), J(this, e, this.D) && (e.H = "Error"), e;
|
|
1593
1593
|
};
|
|
1594
|
-
function
|
|
1594
|
+
function Ge(e) {
|
|
1595
1595
|
var t = e.s(e.La);
|
|
1596
1596
|
return e.g(t, "length", 0, {
|
|
1597
1597
|
configurable: !1,
|
|
@@ -1635,7 +1635,7 @@ B.Ia = function(e) {
|
|
|
1635
1635
|
}, !!t);
|
|
1636
1636
|
}
|
|
1637
1637
|
if (Array.isArray(e)) {
|
|
1638
|
-
t =
|
|
1638
|
+
t = Ge(this);
|
|
1639
1639
|
for (var r = 0; r < e.length; r++)
|
|
1640
1640
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1641
1641
|
return t;
|
|
@@ -1650,9 +1650,9 @@ B.R = function(e, t) {
|
|
|
1650
1650
|
return e;
|
|
1651
1651
|
if (!(e instanceof $))
|
|
1652
1652
|
throw Error("Object is not pseudo");
|
|
1653
|
-
if (
|
|
1653
|
+
if (J(this, e, this.I))
|
|
1654
1654
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1655
|
-
if (
|
|
1655
|
+
if (J(this, e, this.$))
|
|
1656
1656
|
return new Date(e.data.valueOf());
|
|
1657
1657
|
t = t || {
|
|
1658
1658
|
hb: [],
|
|
@@ -1661,7 +1661,7 @@ B.R = function(e, t) {
|
|
|
1661
1661
|
var n = t.hb.indexOf(e);
|
|
1662
1662
|
if (n !== -1)
|
|
1663
1663
|
return t.Sa[n];
|
|
1664
|
-
if (t.hb.push(e),
|
|
1664
|
+
if (t.hb.push(e), J(this, e, this.qa)) {
|
|
1665
1665
|
n = [], t.Sa.push(n);
|
|
1666
1666
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1667
1667
|
Ft(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
@@ -1675,8 +1675,8 @@ B.R = function(e, t) {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1677
1677
|
};
|
|
1678
|
-
function
|
|
1679
|
-
for (var n =
|
|
1678
|
+
function Se(e, t) {
|
|
1679
|
+
for (var n = Ge(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1680
1680
|
e.g(n, r[o], t[r[o]]);
|
|
1681
1681
|
return n;
|
|
1682
1682
|
}
|
|
@@ -1686,7 +1686,7 @@ function Wr(e, t) {
|
|
|
1686
1686
|
n[r] = e.G(t, r);
|
|
1687
1687
|
return n.length = In(e.G(t, "length")) || 0, n;
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function we(e, t) {
|
|
1690
1690
|
switch (typeof t) {
|
|
1691
1691
|
case "number":
|
|
1692
1692
|
return e.aa.h.prototype;
|
|
@@ -1703,9 +1703,9 @@ B.G = function(e, t) {
|
|
|
1703
1703
|
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof $))
|
|
1704
1704
|
throw TypeError("Expecting native value or pseudo object");
|
|
1705
1705
|
if (t === "length") {
|
|
1706
|
-
if (
|
|
1706
|
+
if (J(this, e, this.J))
|
|
1707
1707
|
return String(e).length;
|
|
1708
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1708
|
+
} else if (64 > t.charCodeAt(0) && J(this, e, this.J)) {
|
|
1709
1709
|
var n = dt(t);
|
|
1710
1710
|
if (!isNaN(n) && n < String(e).length)
|
|
1711
1711
|
return String(e)[n];
|
|
@@ -1713,14 +1713,14 @@ B.G = function(e, t) {
|
|
|
1713
1713
|
do
|
|
1714
1714
|
if (e.h && t in e.h)
|
|
1715
1715
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1716
|
-
while (e =
|
|
1716
|
+
while (e = we(this, e));
|
|
1717
1717
|
};
|
|
1718
1718
|
function Ft(e, t, n) {
|
|
1719
1719
|
if (!(t instanceof $))
|
|
1720
1720
|
throw TypeError("Primitive data type has no properties");
|
|
1721
|
-
if (n = String(n), n === "length" &&
|
|
1721
|
+
if (n = String(n), n === "length" && J(e, t, e.J))
|
|
1722
1722
|
return !0;
|
|
1723
|
-
if (
|
|
1723
|
+
if (J(e, t, e.J)) {
|
|
1724
1724
|
var r = dt(n);
|
|
1725
1725
|
if (!isNaN(r) && r < String(t).length)
|
|
1726
1726
|
return !0;
|
|
@@ -1728,7 +1728,7 @@ function Ft(e, t, n) {
|
|
|
1728
1728
|
do
|
|
1729
1729
|
if (t.h && n in t.h)
|
|
1730
1730
|
return !0;
|
|
1731
|
-
while (t =
|
|
1731
|
+
while (t = we(e, t));
|
|
1732
1732
|
return !1;
|
|
1733
1733
|
}
|
|
1734
1734
|
B.g = function(e, t, n, r) {
|
|
@@ -1739,7 +1739,7 @@ B.g = function(e, t, n, r) {
|
|
|
1739
1739
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1740
1740
|
var o = !this.o || Rn(this).S;
|
|
1741
1741
|
if (e instanceof $) {
|
|
1742
|
-
if (
|
|
1742
|
+
if (J(this, e, this.J)) {
|
|
1743
1743
|
var i = dt(t);
|
|
1744
1744
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1745
1745
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
@@ -1773,7 +1773,7 @@ B.g = function(e, t, n, r) {
|
|
|
1773
1773
|
if (n === gt)
|
|
1774
1774
|
throw ReferenceError("Value not specified");
|
|
1775
1775
|
for (r = e; !(t in r.h); )
|
|
1776
|
-
if (r =
|
|
1776
|
+
if (r = we(this, r), !r) {
|
|
1777
1777
|
r = e;
|
|
1778
1778
|
break;
|
|
1779
1779
|
}
|
|
@@ -1799,10 +1799,10 @@ B.g.ac = function() {
|
|
|
1799
1799
|
B.g.bc = function() {
|
|
1800
1800
|
throw Error("Placeholder setter");
|
|
1801
1801
|
};
|
|
1802
|
-
function
|
|
1802
|
+
function q(e, t, n, r) {
|
|
1803
1803
|
e.g(t.h.prototype, n, e.i(r, !1), k);
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function ut(e, t, n, r) {
|
|
1806
1806
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1807
1807
|
}
|
|
1808
1808
|
function Rn(e) {
|
|
@@ -1879,17 +1879,17 @@ function yt(e, t, n) {
|
|
|
1879
1879
|
var i = t.constructor, a;
|
|
1880
1880
|
for (a in t)
|
|
1881
1881
|
if (a !== "loc") {
|
|
1882
|
-
var
|
|
1883
|
-
if (
|
|
1884
|
-
if (Array.isArray(
|
|
1885
|
-
for (o = 0; o <
|
|
1886
|
-
if (
|
|
1887
|
-
var p = yt(e,
|
|
1882
|
+
var u = t[a];
|
|
1883
|
+
if (u && typeof u == "object") {
|
|
1884
|
+
if (Array.isArray(u)) {
|
|
1885
|
+
for (o = 0; o < u.length; o++)
|
|
1886
|
+
if (u[o] && u[o].constructor === i) {
|
|
1887
|
+
var p = yt(e, u[o], n);
|
|
1888
1888
|
for (a in p)
|
|
1889
1889
|
r[a] = p[a];
|
|
1890
1890
|
}
|
|
1891
|
-
} else if (
|
|
1892
|
-
for (a in p = yt(e,
|
|
1891
|
+
} else if (u.constructor === i)
|
|
1892
|
+
for (a in p = yt(e, u, n), p)
|
|
1893
1893
|
r[a] = p[a];
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
@@ -1948,7 +1948,7 @@ function bt(e, t, n, r) {
|
|
|
1948
1948
|
} else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
1951
|
-
throw
|
|
1951
|
+
throw J(e, n, e.D) ? (t = {
|
|
1952
1952
|
EvalError,
|
|
1953
1953
|
RangeError,
|
|
1954
1954
|
ReferenceError,
|
|
@@ -1993,17 +1993,17 @@ function Sr(e, t, n) {
|
|
|
1993
1993
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1994
1994
|
var a = e.ya();
|
|
1995
1995
|
if (i instanceof $ && i.H === "Function") {
|
|
1996
|
-
var
|
|
1996
|
+
var u = i;
|
|
1997
1997
|
a.type = "CallExpression", r = r.scope;
|
|
1998
1998
|
} else {
|
|
1999
1999
|
try {
|
|
2000
|
-
var p =
|
|
2000
|
+
var p = ze(String(i), "taskCode" + e.ic++);
|
|
2001
2001
|
} catch (m) {
|
|
2002
2002
|
w(e, e.T, "Invalid code: " + m.message);
|
|
2003
2003
|
}
|
|
2004
2004
|
a.type = "EvalProgram_", a.body = p.body, r = r.node.arguments[0], Vt(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2005
2005
|
}
|
|
2006
|
-
return t = new gi(
|
|
2006
|
+
return t = new gi(u, o, r, a, t ? n : -1), Hr(e, t, n), t.Db;
|
|
2007
2007
|
}
|
|
2008
2008
|
function Hr(e, t, n) {
|
|
2009
2009
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -2031,8 +2031,8 @@ function Bn(e, t, n, r) {
|
|
|
2031
2031
|
var o = e.ya();
|
|
2032
2032
|
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return t == null ? e.Na : t instanceof $ ? t : (e = e.s(
|
|
2034
|
+
function un(e, t) {
|
|
2035
|
+
return t == null ? e.Na : t instanceof $ ? t : (e = e.s(we(e, t)), e.data = t, e);
|
|
2036
2036
|
}
|
|
2037
2037
|
B.Xb = function() {
|
|
2038
2038
|
return this.N;
|
|
@@ -2114,7 +2114,7 @@ var yi = 0;
|
|
|
2114
2114
|
g.prototype.stepArrayExpression = function(e, t, n) {
|
|
2115
2115
|
n = n.elements;
|
|
2116
2116
|
var r = t.A || 0;
|
|
2117
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2117
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Ge(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2118
2118
|
if (n[r])
|
|
2119
2119
|
return t.A = r, new S(n[r], t.scope);
|
|
2120
2120
|
r++;
|
|
@@ -2244,7 +2244,7 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2244
2244
|
t instanceof $ || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = Ft(this, t, r);
|
|
2245
2245
|
break;
|
|
2246
2246
|
case "instanceof":
|
|
2247
|
-
|
|
2247
|
+
J(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof $ ? J(this, r, t) : !1;
|
|
2248
2248
|
break;
|
|
2249
2249
|
default:
|
|
2250
2250
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2282,7 +2282,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2282
2282
|
return new S(n.arguments[t.A++], t.scope);
|
|
2283
2283
|
if (n.type === "NewExpression") {
|
|
2284
2284
|
if (o instanceof $ && !o.Ab || w(this, this.j, ne(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2285
|
-
t.B =
|
|
2285
|
+
t.B = Ge(this);
|
|
2286
2286
|
else {
|
|
2287
2287
|
var i = o.h.prototype;
|
|
2288
2288
|
(typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
|
|
@@ -2295,30 +2295,30 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2295
2295
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2296
2296
|
else {
|
|
2297
2297
|
if (t.eb = !0, o instanceof $ || w(this, this.j, ne(this, n.callee) + " is not a function"), e = o.node) {
|
|
2298
|
-
for (n = vn(this, e.body, o.Va), r =
|
|
2298
|
+
for (n = vn(this, e.body, o.Va), r = Ge(this), o = 0; o < t.F.length; o++)
|
|
2299
2299
|
this.g(r, o, t.F[o]);
|
|
2300
2300
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2301
2301
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2302
|
-
return n.S || (t.B =
|
|
2302
|
+
return n.S || (t.B = un(this, t.B)), this.g(n.object, "this", t.B, Tn), t.value = void 0, new S(e.body, n);
|
|
2303
2303
|
}
|
|
2304
2304
|
if (o.eval)
|
|
2305
2305
|
if (o = t.F[0], typeof o != "string")
|
|
2306
2306
|
t.value = o;
|
|
2307
2307
|
else {
|
|
2308
2308
|
try {
|
|
2309
|
-
r =
|
|
2310
|
-
} catch (
|
|
2311
|
-
w(this, this.T, "Invalid code: " +
|
|
2309
|
+
r = ze(String(o), "eval" + this.Hb++);
|
|
2310
|
+
} catch (u) {
|
|
2311
|
+
w(this, this.T, "Invalid code: " + u.message);
|
|
2312
2312
|
}
|
|
2313
2313
|
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Vt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = vn(this, r, n) : yt(this, r, n), this.value = void 0, new S(o, n);
|
|
2314
2314
|
}
|
|
2315
2315
|
else if (o.Ta)
|
|
2316
|
-
t.scope.S || (t.B =
|
|
2316
|
+
t.scope.S || (t.B = un(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2317
2317
|
else if (o.Za) {
|
|
2318
2318
|
var a = this;
|
|
2319
|
-
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(
|
|
2320
|
-
t.value =
|
|
2321
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2319
|
+
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2320
|
+
t.value = u, a.za = !1;
|
|
2321
|
+
}), this.za = !0, t.scope.S || (t.B = un(this, t.B)), o.Za.apply(t.B, r);
|
|
2322
2322
|
} else
|
|
2323
2323
|
w(this, this.j, ne(this, n.callee) + " is not callable");
|
|
2324
2324
|
}
|
|
@@ -2389,7 +2389,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2389
2389
|
break e;
|
|
2390
2390
|
}
|
|
2391
2391
|
}
|
|
2392
|
-
if (t.u =
|
|
2392
|
+
if (t.u = we(this, t.u), t.wa = null, t.u === null) {
|
|
2393
2393
|
e.pop();
|
|
2394
2394
|
return;
|
|
2395
2395
|
}
|
|
@@ -2665,10 +2665,10 @@ const vi = (e) => e.split(`
|
|
|
2665
2665
|
return;
|
|
2666
2666
|
if (!n.startsWith("state."))
|
|
2667
2667
|
return t;
|
|
2668
|
-
const [o, i] = n.split("="),
|
|
2668
|
+
const [o, i] = n.split("="), u = `setRootState('${o.replace("state.", "").trim()}', ${i.trim()})`;
|
|
2669
2669
|
return `
|
|
2670
2670
|
${t}
|
|
2671
|
-
${
|
|
2671
|
+
${u}
|
|
2672
2672
|
`;
|
|
2673
2673
|
}).filter(Boolean).join(`
|
|
2674
2674
|
`), wr = (e) => e + "JSON", bi = ({
|
|
@@ -2680,14 +2680,14 @@ const vi = (e) => e.split(`
|
|
|
2680
2680
|
rootSetState: i,
|
|
2681
2681
|
code: a
|
|
2682
2682
|
}) => {
|
|
2683
|
-
const
|
|
2683
|
+
const u = {
|
|
2684
2684
|
...r,
|
|
2685
2685
|
...o
|
|
2686
2686
|
}, p = Ur({
|
|
2687
2687
|
builder: e,
|
|
2688
2688
|
context: t,
|
|
2689
2689
|
event: n,
|
|
2690
|
-
state:
|
|
2690
|
+
state: u
|
|
2691
2691
|
}), m = p.map(([X]) => {
|
|
2692
2692
|
const N = wr(X);
|
|
2693
2693
|
return `var ${X} = ${N} === undefined ? undefined : JSON.parse(${N});`;
|
|
@@ -2705,7 +2705,7 @@ function theFunction() {
|
|
|
2705
2705
|
}
|
|
2706
2706
|
theFunction();
|
|
2707
2707
|
`, C = (X, N) => {
|
|
2708
|
-
const A = wn(
|
|
2708
|
+
const A = wn(u, X, N);
|
|
2709
2709
|
i == null || i(A);
|
|
2710
2710
|
}, P = function(X, N) {
|
|
2711
2711
|
p.forEach(([A, xe]) => {
|
|
@@ -2725,7 +2725,7 @@ const Si = () => {
|
|
|
2725
2725
|
return !1;
|
|
2726
2726
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2727
2727
|
return e && t && !n ? (ae.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2728
|
-
}, Ci = (e) => _() || Si() ? ti(e) : bi(e),
|
|
2728
|
+
}, Ci = (e) => _() || Si() ? ti(e) : bi(e), ke = class ke {
|
|
2729
2729
|
static getCacheKey(t) {
|
|
2730
2730
|
return JSON.stringify({
|
|
2731
2731
|
...t,
|
|
@@ -2735,16 +2735,16 @@ const Si = () => {
|
|
|
2735
2735
|
});
|
|
2736
2736
|
}
|
|
2737
2737
|
static getCachedValue(t) {
|
|
2738
|
-
return
|
|
2738
|
+
return ke.cache.get(t);
|
|
2739
2739
|
}
|
|
2740
2740
|
static setCachedValue(t, n) {
|
|
2741
|
-
|
|
2741
|
+
ke.cache.size > 20 && ke.cache.delete(ke.cache.keys().next().value), ke.cache.set(t, {
|
|
2742
2742
|
value: n
|
|
2743
2743
|
});
|
|
2744
2744
|
}
|
|
2745
2745
|
};
|
|
2746
|
-
ln(
|
|
2747
|
-
let
|
|
2746
|
+
ln(ke, "cacheLimit", 20), ln(ke, "cache", /* @__PURE__ */ new Map());
|
|
2747
|
+
let qe = ke;
|
|
2748
2748
|
function Bt({
|
|
2749
2749
|
code: e,
|
|
2750
2750
|
context: t,
|
|
@@ -2753,7 +2753,7 @@ function Bt({
|
|
|
2753
2753
|
rootSetState: o,
|
|
2754
2754
|
event: i,
|
|
2755
2755
|
isExpression: a = !0,
|
|
2756
|
-
enableCache:
|
|
2756
|
+
enableCache: u
|
|
2757
2757
|
}) {
|
|
2758
2758
|
if (e === "")
|
|
2759
2759
|
return;
|
|
@@ -2768,16 +2768,16 @@ function Bt({
|
|
|
2768
2768
|
rootState: r,
|
|
2769
2769
|
localState: n
|
|
2770
2770
|
};
|
|
2771
|
-
if (
|
|
2772
|
-
const m =
|
|
2771
|
+
if (u) {
|
|
2772
|
+
const m = qe.getCacheKey(p), v = qe.getCachedValue(m);
|
|
2773
2773
|
if (v)
|
|
2774
2774
|
return v.value;
|
|
2775
2775
|
}
|
|
2776
2776
|
try {
|
|
2777
2777
|
const m = Ci(p);
|
|
2778
|
-
if (
|
|
2779
|
-
const v =
|
|
2780
|
-
|
|
2778
|
+
if (u) {
|
|
2779
|
+
const v = qe.getCacheKey(p);
|
|
2780
|
+
qe.setCachedValue(v, m);
|
|
2781
2781
|
}
|
|
2782
2782
|
return m;
|
|
2783
2783
|
} catch (m) {
|
|
@@ -2806,8 +2806,8 @@ const wi = ({
|
|
|
2806
2806
|
...i.actions
|
|
2807
2807
|
}
|
|
2808
2808
|
};
|
|
2809
|
-
for (const
|
|
2810
|
-
const p = e.bindings[
|
|
2809
|
+
for (const u in e.bindings) {
|
|
2810
|
+
const p = e.bindings[u], m = Bt({
|
|
2811
2811
|
code: p,
|
|
2812
2812
|
localState: n,
|
|
2813
2813
|
rootState: r,
|
|
@@ -2815,11 +2815,11 @@ const wi = ({
|
|
|
2815
2815
|
context: t,
|
|
2816
2816
|
enableCache: !0
|
|
2817
2817
|
});
|
|
2818
|
-
wn(a,
|
|
2818
|
+
wn(a, u, m);
|
|
2819
2819
|
}
|
|
2820
2820
|
return a;
|
|
2821
2821
|
};
|
|
2822
|
-
function
|
|
2822
|
+
function qr({
|
|
2823
2823
|
block: e,
|
|
2824
2824
|
context: t,
|
|
2825
2825
|
shouldEvaluateBindings: n,
|
|
@@ -2838,15 +2838,15 @@ function zr({
|
|
|
2838
2838
|
}
|
|
2839
2839
|
const Nn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
2840
2840
|
function Ti(e, t, n = {}) {
|
|
2841
|
-
let r, o, i, a = null,
|
|
2841
|
+
let r, o, i, a = null, u = 0;
|
|
2842
2842
|
const p = function() {
|
|
2843
|
-
|
|
2843
|
+
u = n.leading === !1 ? 0 : Date.now(), a = null, i = e.apply(r, o), a || (r = o = null);
|
|
2844
2844
|
};
|
|
2845
2845
|
return function() {
|
|
2846
2846
|
const m = Date.now();
|
|
2847
|
-
!
|
|
2848
|
-
const v = t - (m -
|
|
2849
|
-
return r = this, o = arguments, v <= 0 || v > t ? (a && (clearTimeout(a), a = null),
|
|
2847
|
+
!u && n.leading === !1 && (u = m);
|
|
2848
|
+
const v = t - (m - u);
|
|
2849
|
+
return r = this, o = arguments, v <= 0 || v > t ? (a && (clearTimeout(a), a = null), u = m, i = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(p, v)), i;
|
|
2850
2850
|
};
|
|
2851
2851
|
}
|
|
2852
2852
|
function ht(e, ...t) {
|
|
@@ -2870,14 +2870,14 @@ function Ii(e) {
|
|
|
2870
2870
|
break;
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
|
-
function
|
|
2873
|
+
function zr(e) {
|
|
2874
2874
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2876
|
+
function Gr(e, t) {
|
|
2877
2877
|
const n = Ei(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, a = [o, i];
|
|
2878
|
-
for (const
|
|
2878
|
+
for (const u of a)
|
|
2879
2879
|
for (const p of n)
|
|
2880
|
-
p in
|
|
2880
|
+
p in u || (u[p] = r[p]);
|
|
2881
2881
|
}
|
|
2882
2882
|
function Ei(e) {
|
|
2883
2883
|
const t = [];
|
|
@@ -2889,11 +2889,11 @@ function Ei(e) {
|
|
|
2889
2889
|
function Jr(e) {
|
|
2890
2890
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2891
2891
|
if (!t.length) {
|
|
2892
|
-
|
|
2892
|
+
zr(e.elementId || e.id || "");
|
|
2893
2893
|
return;
|
|
2894
2894
|
}
|
|
2895
2895
|
Array.from(t).forEach((n) => {
|
|
2896
|
-
|
|
2896
|
+
Gr(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ht(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2897
2897
|
n.style.transition = `all ${e.duration}s ${Nn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ht(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2898
2898
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2899
2899
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
@@ -2903,23 +2903,23 @@ function Jr(e) {
|
|
|
2903
2903
|
function xi(e) {
|
|
2904
2904
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2905
2905
|
if (!t.length) {
|
|
2906
|
-
|
|
2906
|
+
zr(e.elementId || e.id || "");
|
|
2907
2907
|
return;
|
|
2908
2908
|
}
|
|
2909
2909
|
Array.from(t).forEach((n) => {
|
|
2910
|
-
|
|
2910
|
+
Gr(e, n);
|
|
2911
2911
|
let r = !1, o = !1;
|
|
2912
2912
|
function i() {
|
|
2913
|
-
!r &&
|
|
2913
|
+
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
2914
2914
|
ht(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2915
2915
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
2916
2916
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2917
|
-
})) : e.repeat && r && !o && !
|
|
2917
|
+
})) : e.repeat && r && !o && !u(n) && (r = !1, ht(n.style, e.steps[0].styles));
|
|
2918
2918
|
}
|
|
2919
2919
|
const a = Ti(i, 200, {
|
|
2920
2920
|
leading: !1
|
|
2921
2921
|
});
|
|
2922
|
-
function
|
|
2922
|
+
function u(v) {
|
|
2923
2923
|
const h = v.getBoundingClientRect(), C = window.innerHeight, O = (e.thresholdPercent || 0) / 100 * C;
|
|
2924
2924
|
return h.bottom > O && h.top < C - O;
|
|
2925
2925
|
}
|
|
@@ -2939,7 +2939,7 @@ const _r = (e) => Object.entries(e).map(([n, r]) => {
|
|
|
2939
2939
|
if (typeof r == "string")
|
|
2940
2940
|
return `${Nn(n)}: ${r};`;
|
|
2941
2941
|
}).filter(Be), Ai = (e) => _r(e).join(`
|
|
2942
|
-
`),
|
|
2942
|
+
`), fu = ({
|
|
2943
2943
|
mediaQuery: e,
|
|
2944
2944
|
className: t,
|
|
2945
2945
|
styles: n
|
|
@@ -2956,7 +2956,7 @@ function Ri({
|
|
|
2956
2956
|
}) {
|
|
2957
2957
|
return e;
|
|
2958
2958
|
}
|
|
2959
|
-
const
|
|
2959
|
+
const mu = ({
|
|
2960
2960
|
block: e,
|
|
2961
2961
|
context: t
|
|
2962
2962
|
}) => Xr(Ri({
|
|
@@ -2984,7 +2984,7 @@ const $i = ({
|
|
|
2984
2984
|
registeredComponents: n
|
|
2985
2985
|
}) => {
|
|
2986
2986
|
var i;
|
|
2987
|
-
const r = (i =
|
|
2987
|
+
const r = (i = qr({
|
|
2988
2988
|
block: e,
|
|
2989
2989
|
localState: t.localState,
|
|
2990
2990
|
rootState: t.rootState,
|
|
@@ -3047,22 +3047,22 @@ const $i = ({
|
|
|
3047
3047
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3048
3048
|
e
|
|
3049
3049
|
), e;
|
|
3050
|
-
}), Fi = () => import("./block-styles-
|
|
3050
|
+
}), Fi = () => import("./block-styles-Jd0r8FSA.js").then((e) => e.default).catch((e) => {
|
|
3051
3051
|
throw console.error(
|
|
3052
3052
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3053
3053
|
e
|
|
3054
3054
|
), e;
|
|
3055
|
-
}), Ui = () => import("./block-wrapper-
|
|
3055
|
+
}), Ui = () => import("./block-wrapper-MRpzh8OH.js").then((e) => e.default).catch((e) => {
|
|
3056
3056
|
throw console.error(
|
|
3057
3057
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3058
3058
|
e
|
|
3059
3059
|
), e;
|
|
3060
|
-
}), Di = () => import("./component-ref-
|
|
3060
|
+
}), Di = () => import("./component-ref-LJrom_Hw.js").then((e) => e.default).catch((e) => {
|
|
3061
3061
|
throw console.error(
|
|
3062
3062
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3063
3063
|
e
|
|
3064
3064
|
), e;
|
|
3065
|
-
}), Mi = () => import("./repeated-block-
|
|
3065
|
+
}), Mi = () => import("./repeated-block-zMex8Hyo.js").then((e) => e.default).catch((e) => {
|
|
3066
3066
|
throw console.error(
|
|
3067
3067
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3068
3068
|
e
|
|
@@ -3102,7 +3102,7 @@ const $i = ({
|
|
|
3102
3102
|
},
|
|
3103
3103
|
processedBlock() {
|
|
3104
3104
|
var e;
|
|
3105
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
3105
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : qr({
|
|
3106
3106
|
block: this.block,
|
|
3107
3107
|
localState: this.context.localState,
|
|
3108
3108
|
rootState: this.context.rootState,
|
|
@@ -3153,13 +3153,13 @@ const $i = ({
|
|
|
3153
3153
|
});
|
|
3154
3154
|
function Li(e, t, n, r, o, i) {
|
|
3155
3155
|
var h;
|
|
3156
|
-
const a = F("BlockStyles"),
|
|
3156
|
+
const a = F("BlockStyles"), u = F("ComponentRef"), p = F("Block", !0), m = F("BlockWrapper"), v = F("RepeatedBlock");
|
|
3157
3157
|
return e.canShowBlock ? (y(), T(Z, { key: 0 }, [
|
|
3158
3158
|
se(a, {
|
|
3159
3159
|
block: e.block,
|
|
3160
3160
|
context: e.context
|
|
3161
3161
|
}, null, 8, ["block", "context"]),
|
|
3162
|
-
(h = e.blockComponent) != null && h.noWrap ? (y(), U(
|
|
3162
|
+
(h = e.blockComponent) != null && h.noWrap ? (y(), U(u, {
|
|
3163
3163
|
key: 1,
|
|
3164
3164
|
componentRef: e.componentRefProps.componentRef,
|
|
3165
3165
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -3171,7 +3171,7 @@ function Li(e, t, n, r, o, i) {
|
|
|
3171
3171
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3172
3172
|
isInteractive: e.componentRefProps.isInteractive
|
|
3173
3173
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (y(), T(Z, { key: 0 }, [
|
|
3174
|
-
e.repeatItem ? (y(!0), T(Z, { key: 1 },
|
|
3174
|
+
e.repeatItem ? (y(!0), T(Z, { key: 1 }, Ie(e.repeatItem, (C, P) => (y(), U(v, {
|
|
3175
3175
|
key: P,
|
|
3176
3176
|
repeatContext: C.context,
|
|
3177
3177
|
block: C.block,
|
|
@@ -3183,8 +3183,8 @@ function Li(e, t, n, r, o, i) {
|
|
|
3183
3183
|
block: e.processedBlock,
|
|
3184
3184
|
context: e.context
|
|
3185
3185
|
}, {
|
|
3186
|
-
default:
|
|
3187
|
-
se(
|
|
3186
|
+
default: Te(() => [
|
|
3187
|
+
se(u, {
|
|
3188
3188
|
componentRef: e.componentRefProps.componentRef,
|
|
3189
3189
|
componentOptions: e.componentRefProps.componentOptions,
|
|
3190
3190
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -3195,7 +3195,7 @@ function Li(e, t, n, r, o, i) {
|
|
|
3195
3195
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3196
3196
|
isInteractive: e.componentRefProps.isInteractive
|
|
3197
3197
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
3198
|
-
(y(!0), T(Z, null,
|
|
3198
|
+
(y(!0), T(Z, null, Ie(e.childrenWithoutParentComponent, (C, P) => (y(), U(p, {
|
|
3199
3199
|
key: C.id,
|
|
3200
3200
|
block: C,
|
|
3201
3201
|
registeredComponents: e.registeredComponents,
|
|
@@ -3208,7 +3208,7 @@ function Li(e, t, n, r, o, i) {
|
|
|
3208
3208
|
], 64))
|
|
3209
3209
|
], 64)) : M("", !0);
|
|
3210
3210
|
}
|
|
3211
|
-
const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]),
|
|
3211
|
+
const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]), gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3212
3212
|
__proto__: null,
|
|
3213
3213
|
default: Vn
|
|
3214
3214
|
}, Symbol.toStringTag, { value: "Module" })), Hi = j({
|
|
@@ -3230,7 +3230,7 @@ const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]), pc = /* @__PURE__ */ Object.
|
|
|
3230
3230
|
methods: {
|
|
3231
3231
|
onClick() {
|
|
3232
3232
|
var e, t;
|
|
3233
|
-
|
|
3233
|
+
ue() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
3234
3234
|
{
|
|
3235
3235
|
type: "builder.clickEmptyBlocks",
|
|
3236
3236
|
data: {
|
|
@@ -3243,7 +3243,7 @@ const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]), pc = /* @__PURE__ */ Object.
|
|
|
3243
3243
|
},
|
|
3244
3244
|
onMouseEnter() {
|
|
3245
3245
|
var e, t;
|
|
3246
|
-
|
|
3246
|
+
ue() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
3247
3247
|
{
|
|
3248
3248
|
type: "builder.hoverEmptyBlocks",
|
|
3249
3249
|
data: {
|
|
@@ -3257,8 +3257,8 @@ const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]), pc = /* @__PURE__ */ Object.
|
|
|
3257
3257
|
}
|
|
3258
3258
|
});
|
|
3259
3259
|
function Ki(e, t, n, r, o, i) {
|
|
3260
|
-
return y(), U(
|
|
3261
|
-
class: e.className + " component-
|
|
3260
|
+
return y(), U(ct(e.BlocksWrapper), z({
|
|
3261
|
+
class: e.className + " component-178o76acnws",
|
|
3262
3262
|
"builder-path": e.path,
|
|
3263
3263
|
"builder-parent-id": e.parent,
|
|
3264
3264
|
style: e.styleProp,
|
|
@@ -3266,15 +3266,15 @@ function Ki(e, t, n, r, o, i) {
|
|
|
3266
3266
|
onMouseEnter: (a) => e.onMouseEnter(),
|
|
3267
3267
|
onKeyPress: (a) => e.onClick()
|
|
3268
3268
|
}, { ...e.BlocksWrapperProps }), {
|
|
3269
|
-
default:
|
|
3270
|
-
|
|
3269
|
+
default: Te(() => [
|
|
3270
|
+
de(e.$slots, "default", {}, void 0, !0)
|
|
3271
3271
|
]),
|
|
3272
3272
|
_: 3
|
|
3273
3273
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3274
3274
|
}
|
|
3275
|
-
const
|
|
3275
|
+
const qi = /* @__PURE__ */ V(Hi, [["render", Ki], ["__scopeId", "data-v-a5b13ef9"]]), zi = j({
|
|
3276
3276
|
name: "builder-blocks",
|
|
3277
|
-
components: { BlocksWrapper:
|
|
3277
|
+
components: { BlocksWrapper: qi, Block: Vn },
|
|
3278
3278
|
props: [
|
|
3279
3279
|
"blocks",
|
|
3280
3280
|
"parent",
|
|
@@ -3289,10 +3289,10 @@ const zi = /* @__PURE__ */ V(Hi, [["render", Ki], ["__scopeId", "data-v-f091a4a7
|
|
|
3289
3289
|
componentsContext: Br.key
|
|
3290
3290
|
}
|
|
3291
3291
|
});
|
|
3292
|
-
function
|
|
3292
|
+
function Gi(e, t, n, r, o, i) {
|
|
3293
3293
|
var p, m;
|
|
3294
|
-
const a = F("Block"),
|
|
3295
|
-
return y(), U(
|
|
3294
|
+
const a = F("Block"), u = F("BlocksWrapper");
|
|
3295
|
+
return y(), U(u, {
|
|
3296
3296
|
blocks: e.blocks,
|
|
3297
3297
|
parent: e.parent,
|
|
3298
3298
|
path: e.path,
|
|
@@ -3300,8 +3300,8 @@ function qi(e, t, n, r, o, i) {
|
|
|
3300
3300
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || e.builderContext.BlocksWrapper,
|
|
3301
3301
|
BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
3302
3302
|
}, {
|
|
3303
|
-
default:
|
|
3304
|
-
e.blocks ? (y(!0), T(Z, { key: 0 },
|
|
3303
|
+
default: Te(() => [
|
|
3304
|
+
e.blocks ? (y(!0), T(Z, { key: 0 }, Ie(e.blocks, (v, h) => (y(), U(a, {
|
|
3305
3305
|
key: v.id,
|
|
3306
3306
|
block: v,
|
|
3307
3307
|
linkComponent: e.linkComponent,
|
|
@@ -3312,13 +3312,13 @@ function qi(e, t, n, r, o, i) {
|
|
|
3312
3312
|
_: 1
|
|
3313
3313
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3314
3314
|
}
|
|
3315
|
-
const _e = /* @__PURE__ */ V(
|
|
3315
|
+
const _e = /* @__PURE__ */ V(zi, [["render", Gi]]), Ji = j({
|
|
3316
3316
|
name: "dynamic-div",
|
|
3317
3317
|
props: []
|
|
3318
3318
|
});
|
|
3319
3319
|
function _i(e, t, n, r, o, i) {
|
|
3320
3320
|
return y(), T("div", null, [
|
|
3321
|
-
|
|
3321
|
+
de(e.$slots, "default")
|
|
3322
3322
|
]);
|
|
3323
3323
|
}
|
|
3324
3324
|
const Ct = /* @__PURE__ */ V(Ji, [["render", _i]]), Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3349,7 +3349,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", _i]]), Xi = /* @__PURE__ */ Object.
|
|
|
3349
3349
|
default: 991,
|
|
3350
3350
|
max: 1200
|
|
3351
3351
|
}
|
|
3352
|
-
},
|
|
3352
|
+
}, yu = (e, t = Yr) => `@media (max-width: ${t[e].max}px)`, Yi = ({
|
|
3353
3353
|
small: e,
|
|
3354
3354
|
medium: t
|
|
3355
3355
|
}) => {
|
|
@@ -3510,8 +3510,8 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", _i]]), Xi = /* @__PURE__ */ Object.
|
|
|
3510
3510
|
});
|
|
3511
3511
|
function es(e, t, n, r, o, i) {
|
|
3512
3512
|
var m;
|
|
3513
|
-
const a = F("InlinedStyles"),
|
|
3514
|
-
return y(), T("div",
|
|
3513
|
+
const a = F("InlinedStyles"), u = F("Blocks"), p = F("DynamicRenderer");
|
|
3514
|
+
return y(), T("div", z({
|
|
3515
3515
|
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-2brhoa1k8gd",
|
|
3516
3516
|
style: e.columnsCssVars()
|
|
3517
3517
|
}, {}), [
|
|
@@ -3520,14 +3520,14 @@ function es(e, t, n, r, o, i) {
|
|
|
3520
3520
|
id: "builderio-columns",
|
|
3521
3521
|
styles: e.columnsStyles()
|
|
3522
3522
|
}, null, 8, ["styles"])) : M("", !0),
|
|
3523
|
-
(y(!0), T(Z, null,
|
|
3523
|
+
(y(!0), T(Z, null, Ie(e.columns, (v, h) => (y(), U(p, {
|
|
3524
3524
|
key: h,
|
|
3525
3525
|
TagName: e.getTagName(v),
|
|
3526
3526
|
actionAttributes: {},
|
|
3527
3527
|
attributes: e.getAttributes(v, h)
|
|
3528
3528
|
}, {
|
|
3529
|
-
default:
|
|
3530
|
-
se(
|
|
3529
|
+
default: Te(() => [
|
|
3530
|
+
se(u, {
|
|
3531
3531
|
path: `component.options.columns.${h}.blocks`,
|
|
3532
3532
|
parent: e.builderBlock.id,
|
|
3533
3533
|
styleProp: {
|
|
@@ -3549,7 +3549,7 @@ const ts = /* @__PURE__ */ V(Qi, [["render", es], ["__scopeId", "data-v-27a4dde0
|
|
|
3549
3549
|
});
|
|
3550
3550
|
function rs(e, t, n, r, o, i) {
|
|
3551
3551
|
return y(), T("span", null, [
|
|
3552
|
-
|
|
3552
|
+
de(e.$slots, "default")
|
|
3553
3553
|
]);
|
|
3554
3554
|
}
|
|
3555
3555
|
const os = /* @__PURE__ */ V(ns, [["render", rs]]);
|
|
@@ -3572,7 +3572,7 @@ function ss(e, t) {
|
|
|
3572
3572
|
}
|
|
3573
3573
|
return null;
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function cn(e) {
|
|
3576
3576
|
if (!e)
|
|
3577
3577
|
return e;
|
|
3578
3578
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3610,10 +3610,10 @@ const as = j({
|
|
|
3610
3610
|
return this.srcset;
|
|
3611
3611
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
3612
3612
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
3613
|
-
return console.debug("Removed given srcset"),
|
|
3613
|
+
return console.debug("Removed given srcset"), cn(t);
|
|
3614
3614
|
} else if (this.image && !this.srcset)
|
|
3615
|
-
return
|
|
3616
|
-
return
|
|
3615
|
+
return cn(t);
|
|
3616
|
+
return cn(t);
|
|
3617
3617
|
},
|
|
3618
3618
|
webpSrcSet() {
|
|
3619
3619
|
var e;
|
|
@@ -3630,12 +3630,12 @@ const as = j({
|
|
|
3630
3630
|
return this.aspectRatio ? e : void 0;
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
|
-
}), ls = ["srcset"],
|
|
3633
|
+
}), ls = ["srcset"], us = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], cs = {
|
|
3634
3634
|
key: 2,
|
|
3635
3635
|
class: "div-1pl23ac79ld-2"
|
|
3636
3636
|
};
|
|
3637
3637
|
function ps(e, t, n, r, o, i) {
|
|
3638
|
-
var a,
|
|
3638
|
+
var a, u, p, m, v, h;
|
|
3639
3639
|
return y(), T(Z, null, [
|
|
3640
3640
|
ft("picture", null, [
|
|
3641
3641
|
e.webpSrcSet ? (y(), T("source", {
|
|
@@ -3659,18 +3659,18 @@ function ps(e, t, n, r, o, i) {
|
|
|
3659
3659
|
src: e.image,
|
|
3660
3660
|
srcset: e.srcSetToUse,
|
|
3661
3661
|
sizes: e.sizes
|
|
3662
|
-
}, null, 14,
|
|
3662
|
+
}, null, 14, us)
|
|
3663
3663
|
]),
|
|
3664
|
-
e.aspectRatio && !((
|
|
3664
|
+
e.aspectRatio && !((u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent) ? (y(), T("div", {
|
|
3665
3665
|
key: 0,
|
|
3666
3666
|
class: "builder-image-sizer div-1pl23ac79ld",
|
|
3667
3667
|
style: Pe({
|
|
3668
3668
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3669
3669
|
})
|
|
3670
3670
|
}, null, 4)) : M("", !0),
|
|
3671
|
-
(m = (p = e.builderBlock) == null ? void 0 : p.children) != null && m.length && e.fitContent ?
|
|
3672
|
-
!e.fitContent && ((h = (v = e.builderBlock) == null ? void 0 : v.children) != null && h.length) ? (y(), T("div",
|
|
3673
|
-
|
|
3671
|
+
(m = (p = e.builderBlock) == null ? void 0 : p.children) != null && m.length && e.fitContent ? de(e.$slots, "default", { key: 1 }, void 0, !0) : M("", !0),
|
|
3672
|
+
!e.fitContent && ((h = (v = e.builderBlock) == null ? void 0 : v.children) != null && h.length) ? (y(), T("div", cs, [
|
|
3673
|
+
de(e.$slots, "default", {}, void 0, !0)
|
|
3674
3674
|
])) : M("", !0)
|
|
3675
3675
|
], 64);
|
|
3676
3676
|
}
|
|
@@ -3678,11 +3678,11 @@ const ds = /* @__PURE__ */ V(as, [["render", ps], ["__scopeId", "data-v-0d528855
|
|
|
3678
3678
|
name: "builder-section-component",
|
|
3679
3679
|
props: ["attributes", "maxWidth"],
|
|
3680
3680
|
data() {
|
|
3681
|
-
return { filterAttrs:
|
|
3681
|
+
return { filterAttrs: fe };
|
|
3682
3682
|
}
|
|
3683
3683
|
});
|
|
3684
3684
|
function fs(e, t, n, r, o, i) {
|
|
3685
|
-
return y(), T("section",
|
|
3685
|
+
return y(), T("section", z({
|
|
3686
3686
|
style: {
|
|
3687
3687
|
width: "100%",
|
|
3688
3688
|
alignSelf: "stretch",
|
|
@@ -3695,8 +3695,8 @@ function fs(e, t, n, r, o, i) {
|
|
|
3695
3695
|
marginLeft: "auto",
|
|
3696
3696
|
marginRight: "auto"
|
|
3697
3697
|
}
|
|
3698
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3699
|
-
|
|
3698
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3699
|
+
de(e.$slots, "default")
|
|
3700
3700
|
], 16);
|
|
3701
3701
|
}
|
|
3702
3702
|
const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
@@ -4012,11 +4012,11 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
4012
4012
|
continue;
|
|
4013
4013
|
const a = o.getBoundingClientRect();
|
|
4014
4014
|
if (a.left > i.left) {
|
|
4015
|
-
const
|
|
4015
|
+
const u = parseInt(
|
|
4016
4016
|
o.getAttribute("data-index") || "",
|
|
4017
4017
|
10
|
|
4018
4018
|
);
|
|
4019
|
-
isNaN(
|
|
4019
|
+
isNaN(u) || (i = a, e = u);
|
|
4020
4020
|
} else
|
|
4021
4021
|
break;
|
|
4022
4022
|
}
|
|
@@ -4054,7 +4054,7 @@ function Os(e, t, n, r, o, i) {
|
|
|
4054
4054
|
class: "builder-accordion",
|
|
4055
4055
|
style: Pe(e.accordionStyles)
|
|
4056
4056
|
}, [
|
|
4057
|
-
(y(!0), T(Z, null,
|
|
4057
|
+
(y(!0), T(Z, null, Ie(e.items, (u, p) => (y(), T(Z, { key: p }, [
|
|
4058
4058
|
ft("div", {
|
|
4059
4059
|
class: mt(e.getAccordionTitleClassName(p)),
|
|
4060
4060
|
style: Pe({
|
|
@@ -4066,7 +4066,7 @@ function Os(e, t, n, r, o, i) {
|
|
|
4066
4066
|
onClick: (m) => e.onClick(p)
|
|
4067
4067
|
}, [
|
|
4068
4068
|
se(a, {
|
|
4069
|
-
blocks:
|
|
4069
|
+
blocks: u.title,
|
|
4070
4070
|
path: `items.${p}.title`,
|
|
4071
4071
|
parent: e.builderBlock.id,
|
|
4072
4072
|
context: e.builderContext,
|
|
@@ -4080,7 +4080,7 @@ function Os(e, t, n, r, o, i) {
|
|
|
4080
4080
|
style: Pe(e.accordionDetailStyles)
|
|
4081
4081
|
}, [
|
|
4082
4082
|
se(a, {
|
|
4083
|
-
blocks:
|
|
4083
|
+
blocks: u.detail,
|
|
4084
4084
|
path: `items.${p}.detail`,
|
|
4085
4085
|
parent: e.builderBlock.id,
|
|
4086
4086
|
context: e.builderContext,
|
|
@@ -4303,7 +4303,7 @@ const Ps = /* @__PURE__ */ V(Rs, [["render", Os]]), js = {
|
|
|
4303
4303
|
});
|
|
4304
4304
|
}
|
|
4305
4305
|
const n = e.get("columns");
|
|
4306
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((
|
|
4306
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((u, p) => u + p.get("width"), 0) !== 100) && t();
|
|
4307
4307
|
}
|
|
4308
4308
|
}, {
|
|
4309
4309
|
name: "space",
|
|
@@ -4346,12 +4346,12 @@ const Ps = /* @__PURE__ */ V(Rs, [["render", Os]]), js = {
|
|
|
4346
4346
|
name: "image",
|
|
4347
4347
|
type: "file",
|
|
4348
4348
|
bubble: !0,
|
|
4349
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
4349
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
|
|
4350
4350
|
required: !0,
|
|
4351
4351
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
4352
4352
|
onChange: (e) => {
|
|
4353
4353
|
e.delete("srcset"), e.delete("noWebp");
|
|
4354
|
-
function n(a,
|
|
4354
|
+
function n(a, u = 6e4) {
|
|
4355
4355
|
return new Promise((p, m) => {
|
|
4356
4356
|
const v = document.createElement("img");
|
|
4357
4357
|
let h = !1;
|
|
@@ -4361,7 +4361,7 @@ const Ps = /* @__PURE__ */ V(Rs, [["render", Os]]), js = {
|
|
|
4361
4361
|
console.warn("Image load failed", C.error), m(C.error);
|
|
4362
4362
|
}), v.src = a, setTimeout(() => {
|
|
4363
4363
|
h || m(new Error("Image load timed out"));
|
|
4364
|
-
},
|
|
4364
|
+
}, u);
|
|
4365
4365
|
});
|
|
4366
4366
|
}
|
|
4367
4367
|
function r(a) {
|
|
@@ -4372,8 +4372,8 @@ const Ps = /* @__PURE__ */ V(Rs, [["render", Os]]), js = {
|
|
|
4372
4372
|
a.type.includes("svg") && e.set("noWebp", !0);
|
|
4373
4373
|
}), o && (!i || i === 0.7041))
|
|
4374
4374
|
return n(o).then((a) => {
|
|
4375
|
-
const
|
|
4376
|
-
e.get("image") === o && (!
|
|
4375
|
+
const u = e.get("aspectRatio");
|
|
4376
|
+
e.get("image") === o && (!u || u === 0.7041) && a.width && a.height && (e.set("aspectRatio", r(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
4377
4377
|
});
|
|
4378
4378
|
}
|
|
4379
4379
|
}, {
|
|
@@ -4494,13 +4494,13 @@ const Ps = /* @__PURE__ */ V(Rs, [["render", Os]]), js = {
|
|
|
4494
4494
|
props: ["builderContext", "name"]
|
|
4495
4495
|
});
|
|
4496
4496
|
function Ms(e, t, n, r, o, i) {
|
|
4497
|
-
var
|
|
4497
|
+
var u, p, m;
|
|
4498
4498
|
const a = F("Blocks");
|
|
4499
|
-
return y(), T("div",
|
|
4499
|
+
return y(), T("div", z(
|
|
4500
4500
|
{ style: {
|
|
4501
4501
|
pointerEvents: "auto"
|
|
4502
4502
|
} },
|
|
4503
|
-
!((
|
|
4503
|
+
!((u = e.builderContext.context) != null && u.symbolId) && {
|
|
4504
4504
|
"builder-slot": e.name
|
|
4505
4505
|
}
|
|
4506
4506
|
), [
|
|
@@ -4705,8 +4705,8 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4705
4705
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
4706
4706
|
}
|
|
4707
4707
|
}
|
|
4708
|
-
}),
|
|
4709
|
-
function
|
|
4708
|
+
}), qs = ["onClick"], zs = { key: 0 };
|
|
4709
|
+
function Gs(e, t, n, r, o, i) {
|
|
4710
4710
|
const a = F("Blocks");
|
|
4711
4711
|
return y(), T("div", null, [
|
|
4712
4712
|
ft("div", {
|
|
@@ -4718,7 +4718,7 @@ function qs(e, t, n, r, o, i) {
|
|
|
4718
4718
|
overflow: "auto"
|
|
4719
4719
|
})
|
|
4720
4720
|
}, [
|
|
4721
|
-
(y(!0), T(Z, null,
|
|
4721
|
+
(y(!0), T(Z, null, Ie(e.tabs, (u, p) => (y(), T("span", {
|
|
4722
4722
|
key: p,
|
|
4723
4723
|
class: mt(`builder-tab-wrap ${e.activeTab === p ? "builder-tab-active" : ""}`),
|
|
4724
4724
|
style: Pe({
|
|
@@ -4729,14 +4729,14 @@ function qs(e, t, n, r, o, i) {
|
|
|
4729
4729
|
se(a, {
|
|
4730
4730
|
parent: e.builderBlock.id,
|
|
4731
4731
|
path: `component.options.tabs.${p}.label`,
|
|
4732
|
-
blocks:
|
|
4732
|
+
blocks: u.label,
|
|
4733
4733
|
context: e.builderContext,
|
|
4734
4734
|
registeredComponents: e.builderComponents,
|
|
4735
4735
|
linkComponent: e.builderLinkComponent
|
|
4736
4736
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
4737
|
-
], 14,
|
|
4737
|
+
], 14, qs))), 128))
|
|
4738
4738
|
], 4),
|
|
4739
|
-
e.activeTabContent(e.activeTab) ? (y(), T("div",
|
|
4739
|
+
e.activeTabContent(e.activeTab) ? (y(), T("div", zs, [
|
|
4740
4740
|
se(a, {
|
|
4741
4741
|
parent: e.builderBlock.id,
|
|
4742
4742
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -4748,7 +4748,7 @@ function qs(e, t, n, r, o, i) {
|
|
|
4748
4748
|
])) : M("", !0)
|
|
4749
4749
|
]);
|
|
4750
4750
|
}
|
|
4751
|
-
const Js = /* @__PURE__ */ V(Ks, [["render",
|
|
4751
|
+
const Js = /* @__PURE__ */ V(Ks, [["render", Gs]]), _s = {
|
|
4752
4752
|
name: "Text",
|
|
4753
4753
|
static: !0,
|
|
4754
4754
|
isRSC: !0,
|
|
@@ -4855,13 +4855,16 @@ const oa = /* @__PURE__ */ V(ta, [["render", ra]]), ia = {
|
|
|
4855
4855
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
4856
4856
|
onChange: (e) => {
|
|
4857
4857
|
const t = e.get("url");
|
|
4858
|
-
if (t)
|
|
4859
|
-
|
|
4858
|
+
if (t) {
|
|
4859
|
+
e.set("content", "Loading...");
|
|
4860
|
+
const n = _iframelyApiKey;
|
|
4861
|
+
return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((r) => r.json()).then((r) => {
|
|
4860
4862
|
e.get("url") === t && (r.html ? e.set("content", r.html) : e.set("content", "Invalid url, please try another"));
|
|
4861
4863
|
}).catch((r) => {
|
|
4862
4864
|
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
4863
4865
|
});
|
|
4864
|
-
|
|
4866
|
+
} else
|
|
4867
|
+
e.delete("content");
|
|
4865
4868
|
}
|
|
4866
4869
|
}, {
|
|
4867
4870
|
name: "content",
|
|
@@ -4911,15 +4914,15 @@ const oa = /* @__PURE__ */ V(ta, [["render", ra]]), ia = {
|
|
|
4911
4914
|
}
|
|
4912
4915
|
}
|
|
4913
4916
|
}
|
|
4914
|
-
}),
|
|
4915
|
-
function
|
|
4917
|
+
}), ua = ["innerHTML"];
|
|
4918
|
+
function ca(e, t, n, r, o, i) {
|
|
4916
4919
|
return y(), T("div", {
|
|
4917
4920
|
class: "builder-embed",
|
|
4918
4921
|
ref: "elem",
|
|
4919
4922
|
innerHTML: e.content
|
|
4920
|
-
}, null, 8,
|
|
4923
|
+
}, null, 8, ua);
|
|
4921
4924
|
}
|
|
4922
|
-
const pa = /* @__PURE__ */ V(la, [["render",
|
|
4925
|
+
const pa = /* @__PURE__ */ V(la, [["render", ca]]), da = {
|
|
4923
4926
|
name: "Form:Form",
|
|
4924
4927
|
// editableTags: ['builder-form-error']
|
|
4925
4928
|
defaults: {
|
|
@@ -5187,7 +5190,7 @@ const pa = /* @__PURE__ */ V(la, [["render", ua]]), da = {
|
|
|
5187
5190
|
formState: "unsubmitted",
|
|
5188
5191
|
responseData: null,
|
|
5189
5192
|
formErrorMessage: "",
|
|
5190
|
-
filterAttrs:
|
|
5193
|
+
filterAttrs: fe
|
|
5191
5194
|
};
|
|
5192
5195
|
},
|
|
5193
5196
|
methods: {
|
|
@@ -5200,7 +5203,7 @@ const pa = /* @__PURE__ */ V(la, [["render", ua]]), da = {
|
|
|
5200
5203
|
this.builderContext.rootSetState ? (r = (n = this.builderContext).rootSetState) == null || r.call(n, t) : this.builderContext.rootState = t;
|
|
5201
5204
|
},
|
|
5202
5205
|
submissionState() {
|
|
5203
|
-
return
|
|
5206
|
+
return ue() && this.previewState || this.formState;
|
|
5204
5207
|
},
|
|
5205
5208
|
onSubmit(e) {
|
|
5206
5209
|
var n;
|
|
@@ -5215,7 +5218,7 @@ const pa = /* @__PURE__ */ V(la, [["render", ua]]), da = {
|
|
|
5215
5218
|
e.preventDefault();
|
|
5216
5219
|
const r = e.currentTarget || e.target, o = this.customHeaders || {};
|
|
5217
5220
|
let i;
|
|
5218
|
-
const a = new FormData(r),
|
|
5221
|
+
const a = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((h) => !!h.name).map((h) => {
|
|
5219
5222
|
let C;
|
|
5220
5223
|
const P = h.name;
|
|
5221
5224
|
if (h instanceof HTMLInputElement)
|
|
@@ -5240,13 +5243,13 @@ const pa = /* @__PURE__ */ V(la, [["render", ua]]), da = {
|
|
|
5240
5243
|
};
|
|
5241
5244
|
});
|
|
5242
5245
|
let p = this.contentType;
|
|
5243
|
-
if (this.sendSubmissionsTo === "email" && (p = "multipart/form-data"), Array.from(
|
|
5246
|
+
if (this.sendSubmissionsTo === "email" && (p = "multipart/form-data"), Array.from(u).forEach(({ value: h }) => {
|
|
5244
5247
|
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (p = "multipart/form-data");
|
|
5245
5248
|
}), p !== "application/json")
|
|
5246
5249
|
i = a;
|
|
5247
5250
|
else {
|
|
5248
5251
|
const h = {};
|
|
5249
|
-
Array.from(
|
|
5252
|
+
Array.from(u).forEach(({ value: C, key: P }) => {
|
|
5250
5253
|
wn(h, P, C);
|
|
5251
5254
|
}), i = JSON.stringify(h);
|
|
5252
5255
|
}
|
|
@@ -5317,40 +5320,40 @@ const pa = /* @__PURE__ */ V(la, [["render", ua]]), da = {
|
|
|
5317
5320
|
}
|
|
5318
5321
|
}), ya = ["validate", "action", "method", "name"], va = {
|
|
5319
5322
|
key: 3,
|
|
5320
|
-
class: "builder-form-error-text pre-
|
|
5323
|
+
class: "builder-form-error-text pre-3i4ezorcfhi"
|
|
5321
5324
|
};
|
|
5322
5325
|
function ba(e, t, n, r, o, i) {
|
|
5323
5326
|
var p;
|
|
5324
|
-
const a = F("Block"),
|
|
5325
|
-
return y(), T("form",
|
|
5327
|
+
const a = F("Block"), u = F("Blocks");
|
|
5328
|
+
return y(), T("form", z({
|
|
5326
5329
|
validate: e.validate,
|
|
5327
5330
|
ref: "formRef",
|
|
5328
5331
|
action: !e.sendWithJs && e.action,
|
|
5329
5332
|
method: e.method,
|
|
5330
5333
|
name: e.name,
|
|
5331
5334
|
onSubmit: t[0] || (t[0] = (m) => e.onSubmit(m))
|
|
5332
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5333
|
-
e.builderBlock && e.builderBlock.children ? (y(!0), T(Z, { key: 0 },
|
|
5335
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5336
|
+
e.builderBlock && e.builderBlock.children ? (y(!0), T(Z, { key: 0 }, Ie((p = e.builderBlock) == null ? void 0 : p.children, (m, v) => (y(), U(a, {
|
|
5334
5337
|
key: `form-block-${e.idx}`,
|
|
5335
5338
|
block: m,
|
|
5336
5339
|
context: e.builderContext,
|
|
5337
5340
|
registeredComponents: e.builderComponents,
|
|
5338
5341
|
linkComponent: e.builderLinkComponent
|
|
5339
5342
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : M("", !0),
|
|
5340
|
-
e.submissionState() === "error" ? (y(), U(
|
|
5343
|
+
e.submissionState() === "error" ? (y(), U(u, {
|
|
5341
5344
|
key: 1,
|
|
5342
5345
|
path: "errorMessage",
|
|
5343
5346
|
blocks: e.errorMessage,
|
|
5344
5347
|
context: e.builderContext
|
|
5345
5348
|
}, null, 8, ["blocks", "context"])) : M("", !0),
|
|
5346
|
-
e.submissionState() === "sending" ? (y(), U(
|
|
5349
|
+
e.submissionState() === "sending" ? (y(), U(u, {
|
|
5347
5350
|
key: 2,
|
|
5348
5351
|
path: "sendingMessage",
|
|
5349
5352
|
blocks: e.sendingMessage,
|
|
5350
5353
|
context: e.builderContext
|
|
5351
5354
|
}, null, 8, ["blocks", "context"])) : M("", !0),
|
|
5352
5355
|
e.submissionState() === "error" && e.responseData ? (y(), T("pre", va, Nt(JSON.stringify(e.responseData, null, 2)), 1)) : M("", !0),
|
|
5353
|
-
e.submissionState() === "success" ? (y(), U(
|
|
5356
|
+
e.submissionState() === "success" ? (y(), U(u, {
|
|
5354
5357
|
key: 4,
|
|
5355
5358
|
path: "successMessage",
|
|
5356
5359
|
blocks: e.successMessage,
|
|
@@ -5358,7 +5361,7 @@ function ba(e, t, n, r, o, i) {
|
|
|
5358
5361
|
}, null, 8, ["blocks", "context"])) : M("", !0)
|
|
5359
5362
|
], 16, ya);
|
|
5360
5363
|
}
|
|
5361
|
-
const ka = /* @__PURE__ */ V(ga, [["render", ba], ["__scopeId", "data-v-
|
|
5364
|
+
const ka = /* @__PURE__ */ V(ga, [["render", ba], ["__scopeId", "data-v-489330f7"]]), Sa = {
|
|
5362
5365
|
name: "Form:Input",
|
|
5363
5366
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
5364
5367
|
inputs: [
|
|
@@ -5421,11 +5424,11 @@ const ka = /* @__PURE__ */ V(ga, [["render", ba], ["__scopeId", "data-v-6e18f21b
|
|
|
5421
5424
|
"required"
|
|
5422
5425
|
],
|
|
5423
5426
|
data() {
|
|
5424
|
-
return { isEditing:
|
|
5427
|
+
return { isEditing: ue, filterAttrs: fe };
|
|
5425
5428
|
}
|
|
5426
5429
|
}), wa = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
5427
5430
|
function Ta(e, t, n, r, o, i) {
|
|
5428
|
-
return y(), T("input",
|
|
5431
|
+
return y(), T("input", z({
|
|
5429
5432
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
5430
5433
|
placeholder: e.placeholder,
|
|
5431
5434
|
type: e.type,
|
|
@@ -5433,7 +5436,7 @@ function Ta(e, t, n, r, o, i) {
|
|
|
5433
5436
|
value: e.value,
|
|
5434
5437
|
defaultValue: e.defaultValue,
|
|
5435
5438
|
required: e.required
|
|
5436
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
5439
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, wa);
|
|
5437
5440
|
}
|
|
5438
5441
|
const Ia = /* @__PURE__ */ V(Ca, [["render", Ta]]), Ea = {
|
|
5439
5442
|
name: "Form:Select",
|
|
@@ -5479,20 +5482,21 @@ const Ia = /* @__PURE__ */ V(Ca, [["render", Ta]]), Ea = {
|
|
|
5479
5482
|
noWrap: !0
|
|
5480
5483
|
}, xa = j({
|
|
5481
5484
|
name: "builder-select-component",
|
|
5482
|
-
props: ["attributes", "value", "defaultValue", "name", "options"],
|
|
5485
|
+
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
5483
5486
|
data() {
|
|
5484
|
-
return { isEditing:
|
|
5487
|
+
return { isEditing: ue, filterAttrs: fe };
|
|
5485
5488
|
}
|
|
5486
|
-
}), Aa = ["value", "defaultValue", "name"], Ra = ["value"];
|
|
5489
|
+
}), Aa = ["value", "defaultValue", "name", "required"], Ra = ["value"];
|
|
5487
5490
|
function $a(e, t, n, r, o, i) {
|
|
5488
|
-
return y(), T("select",
|
|
5491
|
+
return y(), T("select", z({
|
|
5489
5492
|
value: e.value,
|
|
5490
5493
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
5491
5494
|
defaultValue: e.defaultValue,
|
|
5492
|
-
name: e.name
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5495
|
+
name: e.name,
|
|
5496
|
+
required: e.required
|
|
5497
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5498
|
+
(y(!0), T(Z, null, Ie(e.options, (a, u) => (y(), T("option", {
|
|
5499
|
+
key: `${a.name}-${u}`,
|
|
5496
5500
|
value: a.value
|
|
5497
5501
|
}, Nt(a.name || a.value), 9, Ra))), 128))
|
|
5498
5502
|
], 16, Aa);
|
|
@@ -5526,13 +5530,72 @@ const Oa = /* @__PURE__ */ V(xa, [["render", $a]]), Pa = {
|
|
|
5526
5530
|
name: "builder-submit-button",
|
|
5527
5531
|
props: ["attributes", "text"],
|
|
5528
5532
|
data() {
|
|
5529
|
-
return { filterAttrs:
|
|
5533
|
+
return { filterAttrs: fe };
|
|
5530
5534
|
}
|
|
5531
5535
|
});
|
|
5532
5536
|
function Ba(e, t, n, r, o, i) {
|
|
5533
|
-
return y(), T("button",
|
|
5537
|
+
return y(), T("button", z({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Nt(e.text), 17);
|
|
5534
5538
|
}
|
|
5535
5539
|
const Na = /* @__PURE__ */ V(ja, [["render", Ba]]), Va = {
|
|
5540
|
+
name: "Form:TextArea",
|
|
5541
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
5542
|
+
inputs: [{
|
|
5543
|
+
advanced: !0,
|
|
5544
|
+
name: "value",
|
|
5545
|
+
type: "string"
|
|
5546
|
+
}, {
|
|
5547
|
+
name: "name",
|
|
5548
|
+
type: "string",
|
|
5549
|
+
required: !0,
|
|
5550
|
+
helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
|
|
5551
|
+
}, {
|
|
5552
|
+
name: "defaultValue",
|
|
5553
|
+
type: "string"
|
|
5554
|
+
}, {
|
|
5555
|
+
name: "placeholder",
|
|
5556
|
+
type: "string",
|
|
5557
|
+
defaultValue: "Hello there"
|
|
5558
|
+
}, {
|
|
5559
|
+
name: "required",
|
|
5560
|
+
type: "boolean",
|
|
5561
|
+
defaultValue: !1
|
|
5562
|
+
}],
|
|
5563
|
+
defaultStyles: {
|
|
5564
|
+
paddingTop: "10px",
|
|
5565
|
+
paddingBottom: "10px",
|
|
5566
|
+
paddingLeft: "10px",
|
|
5567
|
+
paddingRight: "10px",
|
|
5568
|
+
borderRadius: "3px",
|
|
5569
|
+
borderWidth: "1px",
|
|
5570
|
+
borderStyle: "solid",
|
|
5571
|
+
borderColor: "#ccc"
|
|
5572
|
+
},
|
|
5573
|
+
static: !0,
|
|
5574
|
+
noWrap: !0
|
|
5575
|
+
}, Fa = j({
|
|
5576
|
+
name: "builder-textarea",
|
|
5577
|
+
props: [
|
|
5578
|
+
"attributes",
|
|
5579
|
+
"placeholder",
|
|
5580
|
+
"name",
|
|
5581
|
+
"value",
|
|
5582
|
+
"defaultValue",
|
|
5583
|
+
"required"
|
|
5584
|
+
],
|
|
5585
|
+
data() {
|
|
5586
|
+
return { filterAttrs: fe };
|
|
5587
|
+
}
|
|
5588
|
+
}), Ua = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
5589
|
+
function Da(e, t, n, r, o, i) {
|
|
5590
|
+
return y(), T("textarea", z({
|
|
5591
|
+
placeholder: e.placeholder,
|
|
5592
|
+
name: e.name,
|
|
5593
|
+
value: e.value,
|
|
5594
|
+
defaultValue: e.defaultValue,
|
|
5595
|
+
required: e.required
|
|
5596
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ua);
|
|
5597
|
+
}
|
|
5598
|
+
const Ma = /* @__PURE__ */ V(Fa, [["render", Da]]), Wa = {
|
|
5536
5599
|
// friendlyName?
|
|
5537
5600
|
name: "Raw:Img",
|
|
5538
5601
|
hideFromInsertMenu: !0,
|
|
@@ -5546,7 +5609,7 @@ const Na = /* @__PURE__ */ V(ja, [["render", Ba]]), Va = {
|
|
|
5546
5609
|
}],
|
|
5547
5610
|
noWrap: !0,
|
|
5548
5611
|
static: !0
|
|
5549
|
-
},
|
|
5612
|
+
}, La = j({
|
|
5550
5613
|
name: "builder-img-component",
|
|
5551
5614
|
props: [
|
|
5552
5615
|
"backgroundSize",
|
|
@@ -5557,11 +5620,11 @@ const Na = /* @__PURE__ */ V(ja, [["render", Ba]]), Va = {
|
|
|
5557
5620
|
"attributes"
|
|
5558
5621
|
],
|
|
5559
5622
|
data() {
|
|
5560
|
-
return { isEditing:
|
|
5623
|
+
return { isEditing: ue, filterAttrs: fe };
|
|
5561
5624
|
}
|
|
5562
|
-
}),
|
|
5563
|
-
function
|
|
5564
|
-
return y(), T("img",
|
|
5625
|
+
}), Ha = ["alt", "src"];
|
|
5626
|
+
function Ka(e, t, n, r, o, i) {
|
|
5627
|
+
return y(), T("img", z({
|
|
5565
5628
|
style: {
|
|
5566
5629
|
objectFit: e.backgroundSize || "cover",
|
|
5567
5630
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -5569,9 +5632,9 @@ function Da(e, t, n, r, o, i) {
|
|
|
5569
5632
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
5570
5633
|
alt: e.altText,
|
|
5571
5634
|
src: e.imgSrc || e.image
|
|
5572
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
5635
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ha);
|
|
5573
5636
|
}
|
|
5574
|
-
const
|
|
5637
|
+
const qa = /* @__PURE__ */ V(La, [["render", Ka]]), za = {
|
|
5575
5638
|
name: "Video",
|
|
5576
5639
|
canHaveChildren: !0,
|
|
5577
5640
|
defaultStyles: {
|
|
@@ -5652,7 +5715,7 @@ const Ma = /* @__PURE__ */ V(Fa, [["render", Da]]), Wa = {
|
|
|
5652
5715
|
defaultValue: !0,
|
|
5653
5716
|
advanced: !0
|
|
5654
5717
|
}]
|
|
5655
|
-
},
|
|
5718
|
+
}, Ga = j({
|
|
5656
5719
|
name: "builder-video",
|
|
5657
5720
|
props: [
|
|
5658
5721
|
"autoPlay",
|
|
@@ -5697,16 +5760,16 @@ const Ma = /* @__PURE__ */ V(Fa, [["render", Da]]), Wa = {
|
|
|
5697
5760
|
};
|
|
5698
5761
|
}
|
|
5699
5762
|
}
|
|
5700
|
-
}),
|
|
5763
|
+
}), Ja = { style: {
|
|
5701
5764
|
position: "relative"
|
|
5702
|
-
} },
|
|
5765
|
+
} }, _a = ["preload", "src", "poster"], Xa = ["src"], Ya = {
|
|
5703
5766
|
key: 1,
|
|
5704
5767
|
style: {
|
|
5705
5768
|
display: "flex",
|
|
5706
5769
|
flexDirection: "column",
|
|
5707
5770
|
alignItems: "stretch"
|
|
5708
5771
|
}
|
|
5709
|
-
},
|
|
5772
|
+
}, Za = {
|
|
5710
5773
|
key: 2,
|
|
5711
5774
|
style: {
|
|
5712
5775
|
pointerEvents: "none",
|
|
@@ -5720,10 +5783,10 @@ const Ma = /* @__PURE__ */ V(Fa, [["render", Da]]), Wa = {
|
|
|
5720
5783
|
height: "100%"
|
|
5721
5784
|
}
|
|
5722
5785
|
};
|
|
5723
|
-
function
|
|
5724
|
-
var a,
|
|
5725
|
-
return y(), T("div",
|
|
5726
|
-
ft("video",
|
|
5786
|
+
function Qa(e, t, n, r, o, i) {
|
|
5787
|
+
var a, u, p, m, v, h, C;
|
|
5788
|
+
return y(), T("div", Ja, [
|
|
5789
|
+
ft("video", z({
|
|
5727
5790
|
class: "builder-video",
|
|
5728
5791
|
preload: e.preload || "metadata",
|
|
5729
5792
|
style: {
|
|
@@ -5747,9 +5810,9 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5747
5810
|
key: 0,
|
|
5748
5811
|
type: "video/mp4",
|
|
5749
5812
|
src: e.video
|
|
5750
|
-
}, null, 8,
|
|
5751
|
-
], 16,
|
|
5752
|
-
e.aspectRatio && !(e.fitContent && ((p = (
|
|
5813
|
+
}, null, 8, Xa))
|
|
5814
|
+
], 16, _a),
|
|
5815
|
+
e.aspectRatio && !(e.fitContent && ((p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length)) ? (y(), T("div", {
|
|
5753
5816
|
key: 0,
|
|
5754
5817
|
style: Pe({
|
|
5755
5818
|
width: "100%",
|
|
@@ -5758,15 +5821,15 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5758
5821
|
fontSize: "0px"
|
|
5759
5822
|
})
|
|
5760
5823
|
}, null, 4)) : M("", !0),
|
|
5761
|
-
(v = (m = e.builderBlock) == null ? void 0 : m.children) != null && v.length && e.fitContent ? (y(), T("div",
|
|
5762
|
-
|
|
5824
|
+
(v = (m = e.builderBlock) == null ? void 0 : m.children) != null && v.length && e.fitContent ? (y(), T("div", Ya, [
|
|
5825
|
+
de(e.$slots, "default")
|
|
5763
5826
|
])) : M("", !0),
|
|
5764
|
-
(C = (h = e.builderBlock) == null ? void 0 : h.children) != null && C.length && !e.fitContent ? (y(), T("div",
|
|
5765
|
-
|
|
5827
|
+
(C = (h = e.builderBlock) == null ? void 0 : h.children) != null && C.length && !e.fitContent ? (y(), T("div", Za, [
|
|
5828
|
+
de(e.$slots, "default")
|
|
5766
5829
|
])) : M("", !0)
|
|
5767
5830
|
]);
|
|
5768
5831
|
}
|
|
5769
|
-
const
|
|
5832
|
+
const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
5770
5833
|
component: oa,
|
|
5771
5834
|
...ea
|
|
5772
5835
|
}, {
|
|
@@ -5788,10 +5851,13 @@ const _a = /* @__PURE__ */ V(La, [["render", Ja]]), Xa = () => [{
|
|
|
5788
5851
|
component: Ma,
|
|
5789
5852
|
...Va
|
|
5790
5853
|
}, {
|
|
5791
|
-
component:
|
|
5854
|
+
component: qa,
|
|
5792
5855
|
...Wa
|
|
5856
|
+
}, {
|
|
5857
|
+
component: el,
|
|
5858
|
+
...za
|
|
5793
5859
|
}], Ir = () => [{
|
|
5794
|
-
component:
|
|
5860
|
+
component: qo,
|
|
5795
5861
|
...js
|
|
5796
5862
|
}, {
|
|
5797
5863
|
component: ts,
|
|
@@ -5809,7 +5875,7 @@ const _a = /* @__PURE__ */ V(La, [["render", Ja]]), Xa = () => [{
|
|
|
5809
5875
|
component: Ws,
|
|
5810
5876
|
...Us
|
|
5811
5877
|
}, {
|
|
5812
|
-
component:
|
|
5878
|
+
component: cu,
|
|
5813
5879
|
...Ls
|
|
5814
5880
|
}, {
|
|
5815
5881
|
component: Qs,
|
|
@@ -5820,22 +5886,22 @@ const _a = /* @__PURE__ */ V(La, [["render", Ja]]), Xa = () => [{
|
|
|
5820
5886
|
}, {
|
|
5821
5887
|
component: Ps,
|
|
5822
5888
|
...xs
|
|
5823
|
-
}, ...
|
|
5889
|
+
}, ...tl()], nl = (e) => ({
|
|
5824
5890
|
type: "builder.registerComponent",
|
|
5825
5891
|
data: bn(e)
|
|
5826
|
-
}),
|
|
5892
|
+
}), rl = (e) => {
|
|
5827
5893
|
const t = e.toString().trim();
|
|
5828
5894
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
5829
|
-
},
|
|
5895
|
+
}, ol = (e) => typeof e == "function" ? rl(e) : St(e), bn = ({
|
|
5830
5896
|
inputs: e,
|
|
5831
5897
|
...t
|
|
5832
5898
|
}) => ({
|
|
5833
5899
|
...St(t),
|
|
5834
5900
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
5835
5901
|
...r,
|
|
5836
|
-
[o]:
|
|
5902
|
+
[o]: ol(i)
|
|
5837
5903
|
}), {}))
|
|
5838
|
-
}),
|
|
5904
|
+
}), il = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
5839
5905
|
function getAndSetVariantId() {
|
|
5840
5906
|
function setCookie(name, value, days) {
|
|
5841
5907
|
let expires = '';
|
|
@@ -5891,7 +5957,7 @@ const _a = /* @__PURE__ */ V(La, [["render", Ja]]), Xa = () => [{
|
|
|
5891
5957
|
}).join('');
|
|
5892
5958
|
styleEl.innerHTML = newStyleStr;
|
|
5893
5959
|
}
|
|
5894
|
-
}`,
|
|
5960
|
+
}`, sl = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
5895
5961
|
if (!navigator.cookieEnabled) {
|
|
5896
5962
|
return;
|
|
5897
5963
|
}
|
|
@@ -5929,16 +5995,16 @@ const _a = /* @__PURE__ */ V(La, [["render", Ja]]), Xa = () => [{
|
|
|
5929
5995
|
...t,
|
|
5930
5996
|
testVariationId: t.id,
|
|
5931
5997
|
id: e == null ? void 0 : e.id
|
|
5932
|
-
})),
|
|
5998
|
+
})), al = ({
|
|
5933
5999
|
canTrack: e,
|
|
5934
6000
|
content: t
|
|
5935
|
-
}) => !(!(Pt(t).length > 0) || !e),
|
|
5936
|
-
window.${oo} = ${
|
|
5937
|
-
window.${io} = ${
|
|
5938
|
-
`,
|
|
6001
|
+
}) => !(!(Pt(t).length > 0) || !e), ll = (e) => e === "react" || e === "reactNative", so = ll(Q), ul = () => `
|
|
6002
|
+
window.${oo} = ${il}
|
|
6003
|
+
window.${io} = ${sl}
|
|
6004
|
+
`, cl = (e, t) => `
|
|
5939
6005
|
window.${oo}(
|
|
5940
6006
|
"${t}",${JSON.stringify(e)}, ${so}
|
|
5941
|
-
)`,
|
|
6007
|
+
)`, pl = ({
|
|
5942
6008
|
contentId: e,
|
|
5943
6009
|
variationId: t
|
|
5944
6010
|
}) => `window.${io}(
|
|
@@ -5953,17 +6019,17 @@ const _a = /* @__PURE__ */ V(La, [["render", Ja]]), Xa = () => [{
|
|
|
5953
6019
|
name: "inlined-script",
|
|
5954
6020
|
props: ["scriptStr", "id"]
|
|
5955
6021
|
});
|
|
5956
|
-
function
|
|
6022
|
+
function dl() {
|
|
5957
6023
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
5958
6024
|
}
|
|
5959
|
-
function
|
|
5960
|
-
const e =
|
|
6025
|
+
function hl() {
|
|
6026
|
+
const e = dl().fetch;
|
|
5961
6027
|
if (typeof e > "u")
|
|
5962
6028
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
5963
6029
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
5964
6030
|
return e;
|
|
5965
6031
|
}
|
|
5966
|
-
const lo =
|
|
6032
|
+
const lo = hl();
|
|
5967
6033
|
function kn(e, t = null, n = ".") {
|
|
5968
6034
|
return Object.keys(e).reduce((r, o) => {
|
|
5969
6035
|
const i = e[o], a = [t, o].filter(Boolean).join(n);
|
|
@@ -5976,28 +6042,28 @@ function kn(e, t = null, n = ".") {
|
|
|
5976
6042
|
};
|
|
5977
6043
|
}, {});
|
|
5978
6044
|
}
|
|
5979
|
-
function
|
|
6045
|
+
function uo(e, t, n = {}) {
|
|
5980
6046
|
for (const r in e) {
|
|
5981
6047
|
const o = e[r], i = t ? t + "." + r : r;
|
|
5982
|
-
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((a) => a.startsWith("$")) ?
|
|
6048
|
+
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((a) => a.startsWith("$")) ? uo(o, i, n) : n[i] = o;
|
|
5983
6049
|
}
|
|
5984
6050
|
return n;
|
|
5985
6051
|
}
|
|
5986
|
-
const
|
|
6052
|
+
const fl = "v3", Er = "builder.", ml = "options.", co = (e) => {
|
|
5987
6053
|
if (!e)
|
|
5988
6054
|
return {};
|
|
5989
6055
|
const t = Nr(e), n = {};
|
|
5990
6056
|
return Object.keys(t).forEach((r) => {
|
|
5991
6057
|
if (r.startsWith(Er)) {
|
|
5992
|
-
const o = r.replace(Er, "").replace(
|
|
6058
|
+
const o = r.replace(Er, "").replace(ml, "");
|
|
5993
6059
|
n[o] = t[r];
|
|
5994
6060
|
}
|
|
5995
6061
|
}), n;
|
|
5996
|
-
},
|
|
6062
|
+
}, gl = () => {
|
|
5997
6063
|
if (!_())
|
|
5998
6064
|
return {};
|
|
5999
6065
|
const e = new URLSearchParams(window.location.search);
|
|
6000
|
-
return
|
|
6066
|
+
return co(e);
|
|
6001
6067
|
}, xr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Dn = (e) => {
|
|
6002
6068
|
const {
|
|
6003
6069
|
limit: t = 30,
|
|
@@ -6006,8 +6072,8 @@ const cl = "v3", Er = "builder.", ul = "options.", uo = (e) => {
|
|
|
6006
6072
|
model: o,
|
|
6007
6073
|
apiKey: i,
|
|
6008
6074
|
enrich: a,
|
|
6009
|
-
locale:
|
|
6010
|
-
apiVersion: p =
|
|
6075
|
+
locale: u,
|
|
6076
|
+
apiVersion: p = fl,
|
|
6011
6077
|
fields: m,
|
|
6012
6078
|
omit: v,
|
|
6013
6079
|
offset: h,
|
|
@@ -6021,7 +6087,7 @@ const cl = "v3", Er = "builder.", ul = "options.", uo = (e) => {
|
|
|
6021
6087
|
if (!["v3"].includes(p))
|
|
6022
6088
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
6023
6089
|
const X = t !== 1, N = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
6024
|
-
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(X)), N.searchParams.set("includeRefs", String(!0)),
|
|
6090
|
+
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(X)), N.searchParams.set("includeRefs", String(!0)), u && N.searchParams.set("locale", u), a && N.searchParams.set("enrich", String(a)), N.searchParams.set("omit", v || "meta.componentsUsed"), m && N.searchParams.set("fields", m), Number.isFinite(h) && h > -1 && N.searchParams.set("offset", String(Math.floor(h))), typeof ee == "boolean" && N.searchParams.set("includeUnpublished", String(ee)), C && xr(C) && N.searchParams.set("cacheSeconds", String(C)), P && xr(P) && N.searchParams.set("staleCacheSeconds", String(P)), O) {
|
|
6025
6091
|
const oe = kn({
|
|
6026
6092
|
sort: O
|
|
6027
6093
|
});
|
|
@@ -6029,31 +6095,31 @@ const cl = "v3", Er = "builder.", ul = "options.", uo = (e) => {
|
|
|
6029
6095
|
N.searchParams.set(Ae, JSON.stringify(oe[Ae]));
|
|
6030
6096
|
}
|
|
6031
6097
|
const A = {
|
|
6032
|
-
...
|
|
6098
|
+
...gl(),
|
|
6033
6099
|
...Nr(e.options || {})
|
|
6034
6100
|
}, xe = kn(A);
|
|
6035
6101
|
for (const oe in xe)
|
|
6036
6102
|
N.searchParams.set(oe, String(xe[oe]));
|
|
6037
6103
|
if (n && N.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
6038
|
-
const oe =
|
|
6104
|
+
const oe = uo({
|
|
6039
6105
|
query: r
|
|
6040
6106
|
});
|
|
6041
6107
|
for (const Ae in oe)
|
|
6042
6108
|
N.searchParams.set(Ae, JSON.stringify(oe[Ae]));
|
|
6043
6109
|
}
|
|
6044
6110
|
return N;
|
|
6045
|
-
},
|
|
6111
|
+
}, yl = (e) => "results" in e;
|
|
6046
6112
|
async function Mn(e) {
|
|
6047
|
-
const t = await
|
|
6113
|
+
const t = await kl({
|
|
6048
6114
|
...e,
|
|
6049
6115
|
limit: 1
|
|
6050
6116
|
});
|
|
6051
6117
|
return t && t[0] || null;
|
|
6052
6118
|
}
|
|
6053
|
-
const
|
|
6119
|
+
const vl = async (e) => {
|
|
6054
6120
|
const t = Dn(e);
|
|
6055
6121
|
return await (await (e.fetch ?? lo)(t.href, e.fetchOptions)).json();
|
|
6056
|
-
},
|
|
6122
|
+
}, bl = async (e, t, n = Dn(e)) => {
|
|
6057
6123
|
const r = vt(e.canTrack);
|
|
6058
6124
|
if (n.search.includes("preview="), !r || !(_() || Q === "reactNative"))
|
|
6059
6125
|
return t.results;
|
|
@@ -6070,10 +6136,10 @@ const hl = async (e) => {
|
|
|
6070
6136
|
}
|
|
6071
6137
|
return t.results;
|
|
6072
6138
|
};
|
|
6073
|
-
async function
|
|
6139
|
+
async function kl(e) {
|
|
6074
6140
|
try {
|
|
6075
|
-
const t = Dn(e), n = await
|
|
6076
|
-
return
|
|
6141
|
+
const t = Dn(e), n = await vl(e);
|
|
6142
|
+
return yl(n) ? bl(e, n) : (ae.error("Error fetching data. ", {
|
|
6077
6143
|
url: t,
|
|
6078
6144
|
content: n,
|
|
6079
6145
|
options: e
|
|
@@ -6082,20 +6148,20 @@ async function ml(e) {
|
|
|
6082
6148
|
return ae.error("Error fetching data. ", t), null;
|
|
6083
6149
|
}
|
|
6084
6150
|
}
|
|
6085
|
-
function
|
|
6151
|
+
function Sl(e) {
|
|
6086
6152
|
const t = e || (_() ? window.location.search : void 0);
|
|
6087
6153
|
return t ? Vr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
6088
6154
|
}
|
|
6089
|
-
function
|
|
6155
|
+
function Cl() {
|
|
6090
6156
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
6091
6157
|
const t = Math.random() * 16 | 0;
|
|
6092
6158
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
6093
6159
|
});
|
|
6094
6160
|
}
|
|
6095
6161
|
function po() {
|
|
6096
|
-
return
|
|
6162
|
+
return Cl().replace(/-/g, "");
|
|
6097
6163
|
}
|
|
6098
|
-
const ho = "builderSessionId",
|
|
6164
|
+
const ho = "builderSessionId", wl = async ({
|
|
6099
6165
|
canTrack: e
|
|
6100
6166
|
}) => {
|
|
6101
6167
|
if (!e)
|
|
@@ -6107,20 +6173,20 @@ const ho = "builderSessionId", vl = async ({
|
|
|
6107
6173
|
if (Be(t))
|
|
6108
6174
|
return t;
|
|
6109
6175
|
{
|
|
6110
|
-
const n =
|
|
6111
|
-
return
|
|
6176
|
+
const n = Tl();
|
|
6177
|
+
return Il({
|
|
6112
6178
|
id: n,
|
|
6113
6179
|
canTrack: e
|
|
6114
6180
|
}), n;
|
|
6115
6181
|
}
|
|
6116
|
-
},
|
|
6182
|
+
}, Tl = () => po(), Il = ({
|
|
6117
6183
|
id: e,
|
|
6118
6184
|
canTrack: t
|
|
6119
6185
|
}) => eo({
|
|
6120
6186
|
name: ho,
|
|
6121
6187
|
value: e,
|
|
6122
6188
|
canTrack: t
|
|
6123
|
-
}), fo = () => _() && typeof localStorage < "u" ? localStorage : void 0,
|
|
6189
|
+
}), fo = () => _() && typeof localStorage < "u" ? localStorage : void 0, El = ({
|
|
6124
6190
|
key: e,
|
|
6125
6191
|
canTrack: t
|
|
6126
6192
|
}) => {
|
|
@@ -6131,7 +6197,7 @@ const ho = "builderSessionId", vl = async ({
|
|
|
6131
6197
|
console.debug("[LocalStorage] GET error: ", r);
|
|
6132
6198
|
return;
|
|
6133
6199
|
}
|
|
6134
|
-
},
|
|
6200
|
+
}, xl = ({
|
|
6135
6201
|
key: e,
|
|
6136
6202
|
canTrack: t,
|
|
6137
6203
|
value: n
|
|
@@ -6142,32 +6208,32 @@ const ho = "builderSessionId", vl = async ({
|
|
|
6142
6208
|
} catch (o) {
|
|
6143
6209
|
console.debug("[LocalStorage] SET error: ", o);
|
|
6144
6210
|
}
|
|
6145
|
-
}, mo = "builderVisitorId",
|
|
6211
|
+
}, mo = "builderVisitorId", Al = ({
|
|
6146
6212
|
canTrack: e
|
|
6147
6213
|
}) => {
|
|
6148
6214
|
if (!e)
|
|
6149
6215
|
return;
|
|
6150
|
-
const t =
|
|
6216
|
+
const t = El({
|
|
6151
6217
|
key: mo,
|
|
6152
6218
|
canTrack: e
|
|
6153
6219
|
});
|
|
6154
6220
|
if (Be(t))
|
|
6155
6221
|
return t;
|
|
6156
6222
|
{
|
|
6157
|
-
const n =
|
|
6158
|
-
return
|
|
6223
|
+
const n = Rl();
|
|
6224
|
+
return $l({
|
|
6159
6225
|
id: n,
|
|
6160
6226
|
canTrack: e
|
|
6161
6227
|
}), n;
|
|
6162
6228
|
}
|
|
6163
|
-
},
|
|
6229
|
+
}, Rl = () => po(), $l = ({
|
|
6164
6230
|
id: e,
|
|
6165
6231
|
canTrack: t
|
|
6166
|
-
}) =>
|
|
6232
|
+
}) => xl({
|
|
6167
6233
|
key: mo,
|
|
6168
6234
|
value: e,
|
|
6169
6235
|
canTrack: t
|
|
6170
|
-
}),
|
|
6236
|
+
}), Ol = async ({
|
|
6171
6237
|
canTrack: e
|
|
6172
6238
|
}) => {
|
|
6173
6239
|
if (!e)
|
|
@@ -6175,16 +6241,16 @@ const ho = "builderSessionId", vl = async ({
|
|
|
6175
6241
|
visitorId: void 0,
|
|
6176
6242
|
sessionId: void 0
|
|
6177
6243
|
};
|
|
6178
|
-
const t = await
|
|
6244
|
+
const t = await wl({
|
|
6179
6245
|
canTrack: e
|
|
6180
|
-
}), n =
|
|
6246
|
+
}), n = Al({
|
|
6181
6247
|
canTrack: e
|
|
6182
6248
|
});
|
|
6183
6249
|
return {
|
|
6184
6250
|
sessionId: t,
|
|
6185
6251
|
visitorId: n
|
|
6186
6252
|
};
|
|
6187
|
-
},
|
|
6253
|
+
}, Pl = async ({
|
|
6188
6254
|
type: e,
|
|
6189
6255
|
canTrack: t,
|
|
6190
6256
|
apiKey: n,
|
|
@@ -6198,7 +6264,7 @@ const ho = "builderSessionId", vl = async ({
|
|
|
6198
6264
|
url: location.href,
|
|
6199
6265
|
...r
|
|
6200
6266
|
},
|
|
6201
|
-
...await
|
|
6267
|
+
...await Ol({
|
|
6202
6268
|
canTrack: t
|
|
6203
6269
|
}),
|
|
6204
6270
|
userAttributes: Fr(),
|
|
@@ -6210,11 +6276,11 @@ async function Sn(e) {
|
|
|
6210
6276
|
ae.error("Missing API key for track call. Please provide your API key.");
|
|
6211
6277
|
return;
|
|
6212
6278
|
}
|
|
6213
|
-
if (e.canTrack && !
|
|
6279
|
+
if (e.canTrack && !ue() && (_() || Q === "reactNative"))
|
|
6214
6280
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
6215
6281
|
method: "POST",
|
|
6216
6282
|
body: JSON.stringify({
|
|
6217
|
-
events: [await
|
|
6283
|
+
events: [await Pl(e)]
|
|
6218
6284
|
}),
|
|
6219
6285
|
headers: {
|
|
6220
6286
|
"content-type": "application/json"
|
|
@@ -6224,14 +6290,14 @@ async function Sn(e) {
|
|
|
6224
6290
|
console.error("Failed to track: ", t);
|
|
6225
6291
|
});
|
|
6226
6292
|
}
|
|
6227
|
-
const
|
|
6293
|
+
const vu = (e) => Sn({
|
|
6228
6294
|
...e,
|
|
6229
6295
|
canTrack: !0
|
|
6230
6296
|
});
|
|
6231
6297
|
function Ar(e) {
|
|
6232
6298
|
return Math.round(e * 1e3) / 1e3;
|
|
6233
6299
|
}
|
|
6234
|
-
const
|
|
6300
|
+
const jl = (e, t, n = !0) => {
|
|
6235
6301
|
if (!(e instanceof HTMLElement))
|
|
6236
6302
|
return null;
|
|
6237
6303
|
let r = n ? e : e.parentElement;
|
|
@@ -6242,7 +6308,7 @@ const Al = (e, t, n = !0) => {
|
|
|
6242
6308
|
return r;
|
|
6243
6309
|
} while (r = r.parentElement);
|
|
6244
6310
|
return null;
|
|
6245
|
-
},
|
|
6311
|
+
}, Bl = (e) => jl(e, (t) => {
|
|
6246
6312
|
const n = t.getAttribute("builder-id") || t.id;
|
|
6247
6313
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
6248
6314
|
}), Rr = ({
|
|
@@ -6254,8 +6320,8 @@ const Al = (e, t, n = !0) => {
|
|
|
6254
6320
|
x: i,
|
|
6255
6321
|
y: a
|
|
6256
6322
|
};
|
|
6257
|
-
},
|
|
6258
|
-
const t = e.target, n = t &&
|
|
6323
|
+
}, Nl = (e) => {
|
|
6324
|
+
const t = e.target, n = t && Bl(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
6259
6325
|
return {
|
|
6260
6326
|
targetBuilderElement: r || void 0,
|
|
6261
6327
|
metadata: {
|
|
@@ -6270,15 +6336,15 @@ const Al = (e, t, n = !0) => {
|
|
|
6270
6336
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
6271
6337
|
}
|
|
6272
6338
|
};
|
|
6273
|
-
},
|
|
6339
|
+
}, Vl = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
6274
6340
|
function go(e, t) {
|
|
6275
6341
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
6276
6342
|
return !1;
|
|
6277
6343
|
const n = new URL(t.origin), r = n.hostname;
|
|
6278
|
-
return (e ||
|
|
6344
|
+
return (e || Vl).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
6279
6345
|
}
|
|
6280
|
-
const
|
|
6281
|
-
function
|
|
6346
|
+
const Fl = "1.0.36", $r = {};
|
|
6347
|
+
function Ul(e, t) {
|
|
6282
6348
|
let n = $r[e];
|
|
6283
6349
|
if (n || (n = $r[e] = []), n.push(t), _()) {
|
|
6284
6350
|
const r = {
|
|
@@ -6295,8 +6361,8 @@ function jl(e, t) {
|
|
|
6295
6361
|
}
|
|
6296
6362
|
}
|
|
6297
6363
|
}
|
|
6298
|
-
const
|
|
6299
|
-
|
|
6364
|
+
const Dl = () => {
|
|
6365
|
+
Ul("insertMenu", {
|
|
6300
6366
|
name: "_default",
|
|
6301
6367
|
default: !0,
|
|
6302
6368
|
items: [{
|
|
@@ -6325,7 +6391,7 @@ const yo = (e = {}) => {
|
|
|
6325
6391
|
type: "builder.sdkInfo",
|
|
6326
6392
|
data: {
|
|
6327
6393
|
target: Q,
|
|
6328
|
-
version:
|
|
6394
|
+
version: Fl,
|
|
6329
6395
|
supportsPatchUpdates: !1,
|
|
6330
6396
|
// Supports builder-model="..." attribute which is needed to
|
|
6331
6397
|
// scope our '+ add block' button styling
|
|
@@ -6347,7 +6413,7 @@ const yo = (e = {}) => {
|
|
|
6347
6413
|
if (o != null && o.type)
|
|
6348
6414
|
switch (o.type) {
|
|
6349
6415
|
case "builder.evaluate": {
|
|
6350
|
-
const
|
|
6416
|
+
const u = o.data.text, p = o.data.arguments || [], m = o.data.id, v = new Function(u);
|
|
6351
6417
|
let h, C = null;
|
|
6352
6418
|
try {
|
|
6353
6419
|
h = v.apply(null, p);
|
|
@@ -6401,12 +6467,12 @@ const yo = (e = {}) => {
|
|
|
6401
6467
|
break;
|
|
6402
6468
|
}
|
|
6403
6469
|
case "builder.contentUpdate": {
|
|
6404
|
-
const i = o.data, a = i.key || i.alias || i.entry || i.modelName,
|
|
6405
|
-
a === e && n.contentUpdate(
|
|
6470
|
+
const i = o.data, a = i.key || i.alias || i.entry || i.modelName, u = i.data;
|
|
6471
|
+
a === e && n.contentUpdate(u);
|
|
6406
6472
|
break;
|
|
6407
6473
|
}
|
|
6408
6474
|
}
|
|
6409
|
-
},
|
|
6475
|
+
}, bu = (e, t, n) => {
|
|
6410
6476
|
if (!_)
|
|
6411
6477
|
return ae.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
6412
6478
|
};
|
|
@@ -6425,7 +6491,7 @@ const yo = (e = {}) => {
|
|
|
6425
6491
|
return window.addEventListener("message", r), () => {
|
|
6426
6492
|
window.removeEventListener("message", r);
|
|
6427
6493
|
};
|
|
6428
|
-
},
|
|
6494
|
+
}, Ml = (e) => {
|
|
6429
6495
|
var i;
|
|
6430
6496
|
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);
|
|
6431
6497
|
let o = "";
|
|
@@ -6451,15 +6517,15 @@ font-weight: ${a};
|
|
|
6451
6517
|
`.trim());
|
|
6452
6518
|
}
|
|
6453
6519
|
return o;
|
|
6454
|
-
},
|
|
6520
|
+
}, Wl = ({
|
|
6455
6521
|
customFonts: e
|
|
6456
6522
|
}) => {
|
|
6457
6523
|
var t;
|
|
6458
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6459
|
-
},
|
|
6524
|
+
return ((t = e == null ? void 0 : e.map((n) => Ml(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6525
|
+
}, Ll = ({
|
|
6460
6526
|
cssCode: e,
|
|
6461
6527
|
contentId: t
|
|
6462
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6528
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Hl = `
|
|
6463
6529
|
.builder-button {
|
|
6464
6530
|
all: unset;
|
|
6465
6531
|
}
|
|
@@ -6476,7 +6542,7 @@ font-weight: ${a};
|
|
|
6476
6542
|
text-align: inherit;
|
|
6477
6543
|
font-family: inherit;
|
|
6478
6544
|
}
|
|
6479
|
-
`,
|
|
6545
|
+
`, Kl = (e) => e ? "" : Hl, ql = (e) => `variant-${e}`, zl = j({
|
|
6480
6546
|
name: "enable-editor",
|
|
6481
6547
|
components: { DynamicDiv: Ct },
|
|
6482
6548
|
props: [
|
|
@@ -6501,7 +6567,7 @@ font-weight: ${a};
|
|
|
6501
6567
|
httpReqsPending: {},
|
|
6502
6568
|
clicked: !1,
|
|
6503
6569
|
builderContext: mn,
|
|
6504
|
-
getWrapperClassName:
|
|
6570
|
+
getWrapperClassName: ql
|
|
6505
6571
|
};
|
|
6506
6572
|
},
|
|
6507
6573
|
provide() {
|
|
@@ -6514,19 +6580,19 @@ font-weight: ${a};
|
|
|
6514
6580
|
(() => {
|
|
6515
6581
|
var n, r;
|
|
6516
6582
|
if (_()) {
|
|
6517
|
-
if (
|
|
6583
|
+
if (ue() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6518
6584
|
new CustomEvent("initeditingbldr")
|
|
6519
6585
|
), this.builderContextSignal.content && vt(this.canTrack)) {
|
|
6520
|
-
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, a = (r = this.builderContextSignal.content) == null ? void 0 : r.id,
|
|
6586
|
+
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, a = (r = this.builderContextSignal.content) == null ? void 0 : r.id, u = this.apiKey;
|
|
6521
6587
|
Sn({
|
|
6522
6588
|
type: "impression",
|
|
6523
6589
|
canTrack: !0,
|
|
6524
6590
|
contentId: a,
|
|
6525
|
-
apiKey:
|
|
6591
|
+
apiKey: u,
|
|
6526
6592
|
variationId: i !== a ? i : void 0
|
|
6527
6593
|
});
|
|
6528
6594
|
}
|
|
6529
|
-
|
|
6595
|
+
Sl() && !ue() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6530
6596
|
new CustomEvent("initpreviewingbldr")
|
|
6531
6597
|
);
|
|
6532
6598
|
}
|
|
@@ -6696,7 +6762,7 @@ font-weight: ${a};
|
|
|
6696
6762
|
contentId: o,
|
|
6697
6763
|
apiKey: this.apiKey,
|
|
6698
6764
|
variationId: r !== o ? r : void 0,
|
|
6699
|
-
|
|
6765
|
+
...Nl(e),
|
|
6700
6766
|
unique: !this.clicked
|
|
6701
6767
|
});
|
|
6702
6768
|
}
|
|
@@ -6706,14 +6772,14 @@ font-weight: ${a};
|
|
|
6706
6772
|
var t, n;
|
|
6707
6773
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
6708
6774
|
Object.entries(e).forEach(([r, o]) => {
|
|
6709
|
-
if (!o || this.httpReqsPending[r] || this.httpReqsData[r] && !
|
|
6775
|
+
if (!o || this.httpReqsPending[r] || this.httpReqsData[r] && !ue())
|
|
6710
6776
|
return;
|
|
6711
6777
|
this.httpReqsPending[r] = !0;
|
|
6712
6778
|
const i = o.replace(
|
|
6713
6779
|
/{{([^}]+)}}/g,
|
|
6714
|
-
(a,
|
|
6780
|
+
(a, u) => String(
|
|
6715
6781
|
Bt({
|
|
6716
|
-
code:
|
|
6782
|
+
code: u,
|
|
6717
6783
|
context: this.context || {},
|
|
6718
6784
|
localState: void 0,
|
|
6719
6785
|
rootState: this.builderContextSignal.rootState,
|
|
@@ -6734,7 +6800,7 @@ font-weight: ${a};
|
|
|
6734
6800
|
});
|
|
6735
6801
|
},
|
|
6736
6802
|
emitStateUpdate() {
|
|
6737
|
-
|
|
6803
|
+
ue() && window.dispatchEvent(
|
|
6738
6804
|
new CustomEvent(
|
|
6739
6805
|
"builder:component:stateChange",
|
|
6740
6806
|
{
|
|
@@ -6749,7 +6815,7 @@ font-weight: ${a};
|
|
|
6749
6815
|
);
|
|
6750
6816
|
},
|
|
6751
6817
|
elementRef_onIniteditingbldr(e) {
|
|
6752
|
-
window.addEventListener("message", this.processMessage),
|
|
6818
|
+
window.addEventListener("message", this.processMessage), Dl(), yo({
|
|
6753
6819
|
...this.locale ? {
|
|
6754
6820
|
locale: this.locale
|
|
6755
6821
|
} : {},
|
|
@@ -6763,7 +6829,7 @@ font-weight: ${a};
|
|
|
6763
6829
|
this.builderContextSignal.componentInfos
|
|
6764
6830
|
).forEach((t) => {
|
|
6765
6831
|
var r;
|
|
6766
|
-
const n =
|
|
6832
|
+
const n = nl(t);
|
|
6767
6833
|
(r = window.parent) == null || r.postMessage(n, "*");
|
|
6768
6834
|
}), window.addEventListener(
|
|
6769
6835
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -6784,58 +6850,58 @@ font-weight: ${a};
|
|
|
6784
6850
|
}
|
|
6785
6851
|
}
|
|
6786
6852
|
});
|
|
6787
|
-
function
|
|
6788
|
-
var a,
|
|
6789
|
-
return e.builderContextSignal.content ? (y(), U(
|
|
6853
|
+
function Gl(e, t, n, r, o, i) {
|
|
6854
|
+
var a, u, p;
|
|
6855
|
+
return e.builderContextSignal.content ? (y(), U(ct(e.ContentWrapper), z({
|
|
6790
6856
|
key: 0,
|
|
6791
6857
|
ref: "elementRef",
|
|
6792
6858
|
onClick: (m) => e.onClick(m),
|
|
6793
6859
|
"builder-content-id": (a = e.builderContextSignal.content) == null ? void 0 : a.id,
|
|
6794
6860
|
"builder-model": e.model,
|
|
6795
|
-
class: e.getWrapperClassName(((
|
|
6861
|
+
class: e.getWrapperClassName(((u = e.content) == null ? void 0 : u.testVariationId) || ((p = e.content) == null ? void 0 : p.id)),
|
|
6796
6862
|
onIniteditingbldr: (m) => e.elementRef_onIniteditingbldr(m),
|
|
6797
6863
|
onInitpreviewingbldr: (m) => e.elementRef_onInitpreviewingbldr(m)
|
|
6798
6864
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
6799
|
-
default:
|
|
6800
|
-
|
|
6865
|
+
default: Te(() => [
|
|
6866
|
+
de(e.$slots, "default")
|
|
6801
6867
|
]),
|
|
6802
6868
|
_: 3
|
|
6803
6869
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : M("", !0);
|
|
6804
6870
|
}
|
|
6805
|
-
const
|
|
6871
|
+
const Jl = /* @__PURE__ */ V(zl, [["render", Gl]]), _l = j({
|
|
6806
6872
|
name: "content-styles",
|
|
6807
6873
|
components: { InlinedStyles: Fn },
|
|
6808
6874
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
6809
6875
|
data() {
|
|
6810
6876
|
return {
|
|
6811
6877
|
injectedStyles: `
|
|
6812
|
-
${
|
|
6878
|
+
${Ll({
|
|
6813
6879
|
cssCode: this.cssCode,
|
|
6814
6880
|
contentId: this.contentId
|
|
6815
6881
|
})}
|
|
6816
|
-
${
|
|
6882
|
+
${Wl({
|
|
6817
6883
|
customFonts: this.customFonts
|
|
6818
6884
|
})}
|
|
6819
|
-
${
|
|
6885
|
+
${Kl(this.isNestedRender)}
|
|
6820
6886
|
`.trim()
|
|
6821
6887
|
};
|
|
6822
6888
|
}
|
|
6823
6889
|
});
|
|
6824
|
-
function
|
|
6890
|
+
function Xl(e, t, n, r, o, i) {
|
|
6825
6891
|
const a = F("InlinedStyles");
|
|
6826
6892
|
return y(), U(a, {
|
|
6827
6893
|
id: "builderio-content",
|
|
6828
6894
|
styles: e.injectedStyles
|
|
6829
6895
|
}, null, 8, ["styles"]);
|
|
6830
6896
|
}
|
|
6831
|
-
const
|
|
6897
|
+
const Yl = /* @__PURE__ */ V(_l, [["render", Xl]]), Zl = ({
|
|
6832
6898
|
content: e,
|
|
6833
6899
|
data: t,
|
|
6834
6900
|
locale: n
|
|
6835
6901
|
}) => {
|
|
6836
|
-
var i, a,
|
|
6902
|
+
var i, a, u;
|
|
6837
6903
|
const r = {}, o = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
6838
|
-
return (
|
|
6904
|
+
return (u = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || u.forEach((p) => {
|
|
6839
6905
|
p.name && p.defaultValue !== void 0 && (r[p.name] = p.defaultValue);
|
|
6840
6906
|
}), {
|
|
6841
6907
|
...r,
|
|
@@ -6845,7 +6911,7 @@ const Gl = /* @__PURE__ */ V(Kl, [["render", zl]]), ql = ({
|
|
|
6845
6911
|
locale: n
|
|
6846
6912
|
} : {}
|
|
6847
6913
|
};
|
|
6848
|
-
},
|
|
6914
|
+
}, Ql = ({
|
|
6849
6915
|
content: e,
|
|
6850
6916
|
data: t
|
|
6851
6917
|
}) => e ? {
|
|
@@ -6855,12 +6921,12 @@ const Gl = /* @__PURE__ */ V(Kl, [["render", zl]]), ql = ({
|
|
|
6855
6921
|
...t
|
|
6856
6922
|
},
|
|
6857
6923
|
meta: e == null ? void 0 : e.meta
|
|
6858
|
-
} : void 0,
|
|
6924
|
+
} : void 0, eu = Uo, tu = j({
|
|
6859
6925
|
name: "content-component",
|
|
6860
6926
|
components: {
|
|
6861
|
-
EnableEditor:
|
|
6927
|
+
EnableEditor: Jl,
|
|
6862
6928
|
InlinedScript: ao,
|
|
6863
|
-
ContentStyles:
|
|
6929
|
+
ContentStyles: Yl,
|
|
6864
6930
|
Blocks: _e,
|
|
6865
6931
|
DynamicDiv: Ct
|
|
6866
6932
|
},
|
|
@@ -6888,7 +6954,7 @@ const Gl = /* @__PURE__ */ V(Kl, [["render", zl]]), ql = ({
|
|
|
6888
6954
|
data() {
|
|
6889
6955
|
var e, t;
|
|
6890
6956
|
return {
|
|
6891
|
-
scriptStr:
|
|
6957
|
+
scriptStr: pl({
|
|
6892
6958
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6893
6959
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
6894
6960
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -6901,19 +6967,19 @@ const Gl = /* @__PURE__ */ V(Kl, [["render", zl]]), ql = ({
|
|
|
6901
6967
|
(n, { component: r, ...o }) => ({
|
|
6902
6968
|
...n,
|
|
6903
6969
|
[o.name]: {
|
|
6904
|
-
component:
|
|
6970
|
+
component: eu(r),
|
|
6905
6971
|
...bn(o)
|
|
6906
6972
|
}
|
|
6907
6973
|
}),
|
|
6908
6974
|
{}
|
|
6909
6975
|
),
|
|
6910
6976
|
builderContextSignal: {
|
|
6911
|
-
content:
|
|
6977
|
+
content: Ql({
|
|
6912
6978
|
content: this.content,
|
|
6913
6979
|
data: this.data
|
|
6914
6980
|
}),
|
|
6915
6981
|
localState: void 0,
|
|
6916
|
-
rootState:
|
|
6982
|
+
rootState: Zl({
|
|
6917
6983
|
content: this.content,
|
|
6918
6984
|
data: this.data,
|
|
6919
6985
|
locale: this.locale
|
|
@@ -6954,9 +7020,9 @@ const Gl = /* @__PURE__ */ V(Kl, [["render", zl]]), ql = ({
|
|
|
6954
7020
|
}
|
|
6955
7021
|
}
|
|
6956
7022
|
});
|
|
6957
|
-
function
|
|
6958
|
-
const a = F("InlinedScript"),
|
|
6959
|
-
return y(), U(m,
|
|
7023
|
+
function nu(e, t, n, r, o, i) {
|
|
7024
|
+
const a = F("InlinedScript"), u = F("ContentStyles"), p = F("Blocks"), m = F("EnableEditor");
|
|
7025
|
+
return y(), U(m, z({
|
|
6960
7026
|
content: e.content,
|
|
6961
7027
|
data: e.data,
|
|
6962
7028
|
model: e.model,
|
|
@@ -6971,7 +7037,7 @@ function Yl(e, t, n, r, o, i) {
|
|
|
6971
7037
|
contentWrapperProps: e.contentWrapperProps,
|
|
6972
7038
|
trustedHosts: e.trustedHosts
|
|
6973
7039
|
}, {}), {
|
|
6974
|
-
default:
|
|
7040
|
+
default: Te(() => {
|
|
6975
7041
|
var v, h, C, P, O, ee, X;
|
|
6976
7042
|
return [
|
|
6977
7043
|
e.isSsrAbTest ? (y(), U(a, {
|
|
@@ -6979,7 +7045,7 @@ function Yl(e, t, n, r, o, i) {
|
|
|
6979
7045
|
id: "builderio-variant-visibility",
|
|
6980
7046
|
scriptStr: e.scriptStr
|
|
6981
7047
|
}, null, 8, ["scriptStr"])) : M("", !0),
|
|
6982
|
-
e.TARGET !== "reactNative" ? (y(), U(
|
|
7048
|
+
e.TARGET !== "reactNative" ? (y(), U(u, {
|
|
6983
7049
|
key: 1,
|
|
6984
7050
|
isNestedRender: e.isNestedRender,
|
|
6985
7051
|
contentId: (v = e.builderContextSignal.content) == null ? void 0 : v.id,
|
|
@@ -6997,12 +7063,12 @@ function Yl(e, t, n, r, o, i) {
|
|
|
6997
7063
|
_: 1
|
|
6998
7064
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
6999
7065
|
}
|
|
7000
|
-
const
|
|
7066
|
+
const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
|
|
7001
7067
|
name: "content-variants",
|
|
7002
7068
|
components: {
|
|
7003
7069
|
InlinedScript: ao,
|
|
7004
7070
|
InlinedStyles: Fn,
|
|
7005
|
-
ContentComponent:
|
|
7071
|
+
ContentComponent: ru
|
|
7006
7072
|
},
|
|
7007
7073
|
props: [
|
|
7008
7074
|
"canTrack",
|
|
@@ -7025,12 +7091,12 @@ const Zl = /* @__PURE__ */ V(Xl, [["render", Yl]]), Ql = j({
|
|
|
7025
7091
|
],
|
|
7026
7092
|
data() {
|
|
7027
7093
|
return {
|
|
7028
|
-
shouldRenderVariants:
|
|
7094
|
+
shouldRenderVariants: al({
|
|
7029
7095
|
canTrack: vt(this.canTrack),
|
|
7030
7096
|
content: this.content
|
|
7031
7097
|
}),
|
|
7032
7098
|
TARGET: Q,
|
|
7033
|
-
getInitVariantsFnsScriptString:
|
|
7099
|
+
getInitVariantsFnsScriptString: ul,
|
|
7034
7100
|
getVariants: Pt
|
|
7035
7101
|
};
|
|
7036
7102
|
},
|
|
@@ -7039,7 +7105,7 @@ const Zl = /* @__PURE__ */ V(Xl, [["render", Yl]]), Ql = j({
|
|
|
7039
7105
|
computed: {
|
|
7040
7106
|
updateCookieAndStylesScriptStr() {
|
|
7041
7107
|
var e;
|
|
7042
|
-
return
|
|
7108
|
+
return cl(
|
|
7043
7109
|
Pt(this.content).map((t) => ({
|
|
7044
7110
|
id: t.testVariationId,
|
|
7045
7111
|
testRatio: t.testRatio
|
|
@@ -7062,8 +7128,8 @@ const Zl = /* @__PURE__ */ V(Xl, [["render", Yl]]), Ql = j({
|
|
|
7062
7128
|
}
|
|
7063
7129
|
}
|
|
7064
7130
|
});
|
|
7065
|
-
function
|
|
7066
|
-
const a = F("InlinedScript"),
|
|
7131
|
+
function iu(e, t, n, r, o, i) {
|
|
7132
|
+
const a = F("InlinedScript"), u = F("InlinedStyles"), p = F("ContentComponent");
|
|
7067
7133
|
return y(), T(Z, null, [
|
|
7068
7134
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(), U(a, {
|
|
7069
7135
|
key: 0,
|
|
@@ -7071,7 +7137,7 @@ function ec(e, t, n, r, o, i) {
|
|
|
7071
7137
|
scriptStr: e.getInitVariantsFnsScriptString()
|
|
7072
7138
|
}, null, 8, ["scriptStr"])) : M("", !0),
|
|
7073
7139
|
e.shouldRenderVariants ? (y(), T(Z, { key: 1 }, [
|
|
7074
|
-
se(
|
|
7140
|
+
se(u, {
|
|
7075
7141
|
id: "builderio-variants",
|
|
7076
7142
|
styles: e.hideVariantsStyleString
|
|
7077
7143
|
}, null, 8, ["styles"]),
|
|
@@ -7079,7 +7145,7 @@ function ec(e, t, n, r, o, i) {
|
|
|
7079
7145
|
id: "builderio-variants-visibility",
|
|
7080
7146
|
scriptStr: e.updateCookieAndStylesScriptStr
|
|
7081
7147
|
}, null, 8, ["scriptStr"]),
|
|
7082
|
-
(y(!0), T(Z, null,
|
|
7148
|
+
(y(!0), T(Z, null, Ie(e.getVariants(e.content), (m, v) => (y(), U(p, {
|
|
7083
7149
|
key: m.testVariationId,
|
|
7084
7150
|
isNestedRender: e.isNestedRender,
|
|
7085
7151
|
content: m,
|
|
@@ -7102,7 +7168,7 @@ function ec(e, t, n, r, o, i) {
|
|
|
7102
7168
|
trustedHosts: e.trustedHosts
|
|
7103
7169
|
}, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
7104
7170
|
], 64)) : M("", !0),
|
|
7105
|
-
se(p,
|
|
7171
|
+
se(p, z({
|
|
7106
7172
|
isNestedRender: e.isNestedRender,
|
|
7107
7173
|
content: e.defaultContent,
|
|
7108
7174
|
showContent: !0,
|
|
@@ -7127,7 +7193,7 @@ function ec(e, t, n, r, o, i) {
|
|
|
7127
7193
|
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7128
7194
|
], 64);
|
|
7129
7195
|
}
|
|
7130
|
-
const
|
|
7196
|
+
const su = /* @__PURE__ */ V(ou, [["render", iu]]), au = async ({
|
|
7131
7197
|
builderContextValue: e,
|
|
7132
7198
|
symbol: t
|
|
7133
7199
|
}) => {
|
|
@@ -7145,9 +7211,9 @@ const tc = /* @__PURE__ */ V(Ql, [["render", ec]]), nc = async ({
|
|
|
7145
7211
|
}).catch((n) => {
|
|
7146
7212
|
ae.error("Could not fetch symbol content: ", n);
|
|
7147
7213
|
});
|
|
7148
|
-
},
|
|
7214
|
+
}, lu = j({
|
|
7149
7215
|
name: "builder-symbol",
|
|
7150
|
-
components: { ContentVariants:
|
|
7216
|
+
components: { ContentVariants: su, DynamicDiv: Ct },
|
|
7151
7217
|
props: [
|
|
7152
7218
|
"symbol",
|
|
7153
7219
|
"attributes",
|
|
@@ -7159,7 +7225,7 @@ const tc = /* @__PURE__ */ V(Ql, [["render", ec]]), nc = async ({
|
|
|
7159
7225
|
],
|
|
7160
7226
|
data() {
|
|
7161
7227
|
var e;
|
|
7162
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
7228
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: fe };
|
|
7163
7229
|
},
|
|
7164
7230
|
mounted() {
|
|
7165
7231
|
this.setContent();
|
|
@@ -7196,7 +7262,7 @@ const tc = /* @__PURE__ */ V(Ql, [["render", ec]]), nc = async ({
|
|
|
7196
7262
|
},
|
|
7197
7263
|
methods: {
|
|
7198
7264
|
setContent() {
|
|
7199
|
-
this.contentToUse ||
|
|
7265
|
+
this.contentToUse || au({
|
|
7200
7266
|
symbol: this.symbol,
|
|
7201
7267
|
builderContextValue: this.builderContext
|
|
7202
7268
|
}).then((e) => {
|
|
@@ -7205,17 +7271,17 @@ const tc = /* @__PURE__ */ V(Ql, [["render", ec]]), nc = async ({
|
|
|
7205
7271
|
}
|
|
7206
7272
|
}
|
|
7207
7273
|
});
|
|
7208
|
-
function
|
|
7209
|
-
var
|
|
7274
|
+
function uu(e, t, n, r, o, i) {
|
|
7275
|
+
var u, p, m, v, h;
|
|
7210
7276
|
const a = F("ContentVariants");
|
|
7211
|
-
return y(), T("div",
|
|
7277
|
+
return y(), T("div", z({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
7212
7278
|
se(a, {
|
|
7213
7279
|
isNestedRender: !0,
|
|
7214
7280
|
apiVersion: e.builderContext.apiVersion,
|
|
7215
7281
|
apiKey: e.builderContext.apiKey,
|
|
7216
7282
|
context: {
|
|
7217
7283
|
...e.builderContext.context,
|
|
7218
|
-
symbolId: (
|
|
7284
|
+
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
7219
7285
|
},
|
|
7220
7286
|
customComponents: Object.values(e.builderComponents),
|
|
7221
7287
|
data: {
|
|
@@ -7232,8 +7298,8 @@ function oc(e, t, n, r, o, i) {
|
|
|
7232
7298
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7233
7299
|
], 16);
|
|
7234
7300
|
}
|
|
7235
|
-
const
|
|
7236
|
-
function
|
|
7301
|
+
const cu = /* @__PURE__ */ V(lu, [["render", uu]]), Pr = {};
|
|
7302
|
+
function ku(e) {
|
|
7237
7303
|
if (_()) {
|
|
7238
7304
|
Object.assign(Pr, e);
|
|
7239
7305
|
const t = {
|
|
@@ -7243,7 +7309,7 @@ function mc(e) {
|
|
|
7243
7309
|
parent.postMessage(t, "*");
|
|
7244
7310
|
}
|
|
7245
7311
|
}
|
|
7246
|
-
const
|
|
7312
|
+
const Su = async (e) => {
|
|
7247
7313
|
var r, o, i;
|
|
7248
7314
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
7249
7315
|
...e,
|
|
@@ -7255,7 +7321,7 @@ const gc = async (e) => {
|
|
|
7255
7321
|
urlPath: t
|
|
7256
7322
|
} : {}
|
|
7257
7323
|
},
|
|
7258
|
-
options:
|
|
7324
|
+
options: co(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
7259
7325
|
};
|
|
7260
7326
|
return {
|
|
7261
7327
|
apiKey: n.apiKey,
|
|
@@ -7264,43 +7330,43 @@ const gc = async (e) => {
|
|
|
7264
7330
|
};
|
|
7265
7331
|
};
|
|
7266
7332
|
export {
|
|
7267
|
-
|
|
7333
|
+
bl as A,
|
|
7268
7334
|
Vn as B,
|
|
7269
7335
|
ts as C,
|
|
7270
|
-
|
|
7336
|
+
kl as D,
|
|
7271
7337
|
Mn as E,
|
|
7272
7338
|
os as F,
|
|
7273
|
-
|
|
7274
|
-
|
|
7339
|
+
hu as G,
|
|
7340
|
+
gu as H,
|
|
7275
7341
|
ds as I,
|
|
7276
7342
|
ms as S,
|
|
7277
7343
|
Q as T,
|
|
7278
|
-
|
|
7344
|
+
el as V,
|
|
7279
7345
|
Fn as _,
|
|
7280
7346
|
Yi as a,
|
|
7281
|
-
|
|
7347
|
+
fu as b,
|
|
7282
7348
|
Be as c,
|
|
7283
|
-
|
|
7349
|
+
yu as d,
|
|
7284
7350
|
Nn as e,
|
|
7285
7351
|
V as f,
|
|
7286
|
-
|
|
7352
|
+
qr as g,
|
|
7287
7353
|
Bt as h,
|
|
7288
|
-
|
|
7354
|
+
mu as i,
|
|
7289
7355
|
jt as j,
|
|
7290
7356
|
mn as k,
|
|
7291
|
-
|
|
7292
|
-
|
|
7357
|
+
qo as l,
|
|
7358
|
+
cu as m,
|
|
7293
7359
|
Qs as n,
|
|
7294
7360
|
_e as o,
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7361
|
+
su as p,
|
|
7362
|
+
ue as q,
|
|
7363
|
+
Sl as r,
|
|
7364
|
+
nl as s,
|
|
7365
|
+
Ul as t,
|
|
7366
|
+
ku as u,
|
|
7367
|
+
co as v,
|
|
7368
|
+
eu as w,
|
|
7369
|
+
vu as x,
|
|
7370
|
+
bu as y,
|
|
7371
|
+
Su as z
|
|
7306
7372
|
};
|