@builder.io/sdk-vue 2.0.24 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-g25f4_3R.cjs → awaiter-23x9Wk9g.cjs} +1 -1
- package/lib/browser/{awaiter-J3HUxkGi.js → awaiter-tjkV0OML.js} +1 -1
- package/lib/browser/{block-styles-TEcZV6HE.js → block-styles-iSXgxy2c.js} +1 -1
- package/lib/browser/{block-styles-grUICPvP.cjs → block-styles-kRQCCX9t.cjs} +1 -1
- package/lib/browser/{block-wrapper-FeIbV4lJ.js → block-wrapper-7G8ua10s.js} +3 -3
- package/lib/browser/{block-wrapper-29DvN0g9.cjs → block-wrapper-b0FL4A4o.cjs} +1 -1
- package/lib/browser/{component-ref-XOiYQaEV.js → component-ref-23RPWonP.js} +3 -3
- package/lib/browser/{component-ref-0BQRfKsS.cjs → component-ref-quKGEuEz.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-9fNXyxXS.cjs → get-block-properties-_P9vw3zA.cjs} +1 -1
- package/lib/browser/{get-block-properties-AbQ4_DbB.js → get-block-properties-yY8QiK7p.js} +1 -1
- package/lib/browser/helpers/sdk-headers.d.ts +5 -0
- package/lib/browser/{index-eo1_2KG1.cjs → index-DMWpqZ_2.cjs} +23 -23
- package/lib/browser/{index-VkKzZMwZ.js → index-udCKeeEB.js} +483 -471
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-3wAFgYUP.cjs → repeated-block-7mJZ0k_W.cjs} +1 -1
- package/lib/browser/{repeated-block-rRkup9T9.js → repeated-block-ZXjysCEP.js} +2 -2
- package/lib/edge/{awaiter-bswCddmn.js → awaiter-8UIL439V.js} +1 -1
- package/lib/edge/{awaiter-z-FdxR2q.cjs → awaiter-q7QPf2ls.cjs} +1 -1
- package/lib/edge/{block-styles-_Y6pfvRo.js → block-styles-TaCD-AEs.js} +1 -1
- package/lib/edge/{block-styles-RI6klyct.cjs → block-styles-btF9xO7m.cjs} +1 -1
- package/lib/edge/{block-wrapper-RoXrtNnJ.js → block-wrapper-dEWTROXs.js} +3 -3
- package/lib/edge/{block-wrapper-oxJp7Q7d.cjs → block-wrapper-mJEc21SN.cjs} +1 -1
- package/lib/edge/{component-ref-K5NE0GO1.cjs → component-ref-ZtE936HW.cjs} +1 -1
- package/lib/edge/{component-ref-CvZ3PHsD.js → component-ref-s40H3oSA.js} +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-WJ04QqT6.js → get-block-properties-E6IlSVtd.js} +1 -1
- package/lib/edge/{get-block-properties-kxJh9lLa.cjs → get-block-properties-cPpFrJzo.cjs} +1 -1
- package/lib/edge/helpers/sdk-headers.d.ts +5 -0
- package/lib/edge/{index-UNfETa4b.js → index-C9ugK_z9.js} +528 -516
- package/lib/edge/{index-PB_wCbdz.cjs → index-e-9o30rZ.cjs} +31 -31
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-1bi9_70I.cjs → edge/repeated-block-H93-mkPL.cjs} +1 -1
- package/lib/edge/{repeated-block-3sTRvL3l.js → repeated-block-bCWBWRos.js} +2 -2
- package/lib/node/{awaiter-JHWYv1Aa.cjs → awaiter-5RC_NBfF.cjs} +1 -1
- package/lib/node/{awaiter--0M8C3yH.js → awaiter-RtzoFcgF.js} +1 -1
- package/lib/node/{block-styles-6tPiAmBz.cjs → block-styles--Z2ga0ww.cjs} +1 -1
- package/lib/node/{block-styles-quUqeiHV.js → block-styles-p9EVZ--A.js} +1 -1
- package/lib/node/{block-wrapper-1t5eBFHt.js → block-wrapper-3KYjgNSM.js} +3 -3
- package/lib/node/{block-wrapper-RW0Dijwl.cjs → block-wrapper-X3JbYLjC.cjs} +1 -1
- package/lib/node/{component-ref-Aiwer6jd.js → component-ref-otsSnHPE.js} +3 -3
- package/lib/node/{component-ref-VImBkRlv.cjs → component-ref-sqw7jB13.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-l9MvlM58.cjs → get-block-properties-P9abw_Qq.cjs} +1 -1
- package/lib/node/{get-block-properties-iMgsO_St.js → get-block-properties-e8oSlHVZ.js} +1 -1
- package/lib/node/helpers/sdk-headers.d.ts +5 -0
- package/lib/node/{index-vY7Ih1wu.js → index-IksZ0BcQ.js} +485 -473
- package/lib/node/{index-ncxt02LY.cjs → index-wlUebKy9.cjs} +23 -23
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-JWTG1SGC.cjs → node/repeated-block-3r29TWSO.cjs} +1 -1
- package/lib/node/{repeated-block-n_E2nVxY.js → repeated-block-mD49LdDR.js} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as j, openBlock as y, createElementBlock as T, Fragment as z, createBlock as V, resolveDynamicComponent as lt, mergeProps as q, toHandlers as pe, withCtx as Te, renderSlot as de, resolveComponent as D, createTextVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as j, openBlock as y, createElementBlock as T, Fragment as z, createBlock as V, resolveDynamicComponent as lt, mergeProps as q, toHandlers as pe, withCtx as Te, renderSlot as de, resolveComponent as D, createTextVNode as Bo, toDisplayString as jt, defineAsyncComponent as nt, createVNode as oe, renderList as fe, createCommentVNode as W, h as Pr, createElementVNode as dt, normalizeStyle as Pe, normalizeClass as ht, markRaw as No } from "vue";
|
|
2
|
+
const Vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Do = (e) => typeof e == "string" && Vo.has(e.toLowerCase());
|
|
3
3
|
function me(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
for (const o in e) {
|
|
@@ -10,11 +10,11 @@ function me(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return r;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Uo = j({
|
|
14
14
|
name: "dynamic-renderer",
|
|
15
15
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
16
16
|
data() {
|
|
17
|
-
return { isEmptyElement:
|
|
17
|
+
return { isEmptyElement: Do };
|
|
18
18
|
}
|
|
19
19
|
}), N = (e, t) => {
|
|
20
20
|
const n = e.__vccOpts || e;
|
|
@@ -22,7 +22,7 @@ const Vo = j({
|
|
|
22
22
|
n[r] = o;
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function Fo(e, t, n, r, o, i) {
|
|
26
26
|
return e.isEmptyElement(e.TagName) ? (y(), V(lt(e.TagName), q({ key: 1 }, e.attributes, pe(e.actionAttributes)), null, 16)) : (y(), T(z, { key: 0 }, [
|
|
27
27
|
typeof e.TagName == "string" ? (y(), V(lt(e.TagName), q({ key: 0 }, e.attributes, pe(e.actionAttributes)), {
|
|
28
28
|
default: Te(() => [
|
|
@@ -37,11 +37,11 @@ function Do(e, t, n, r, o, i) {
|
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const bn = /* @__PURE__ */ N(
|
|
40
|
+
const bn = /* @__PURE__ */ N(Uo, [["render", Fo]]), mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
42
|
default: bn
|
|
43
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
44
|
-
switch (
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" })), se = "vue", Pt = () => {
|
|
44
|
+
switch (se) {
|
|
45
45
|
case "react":
|
|
46
46
|
case "reactNative":
|
|
47
47
|
case "rsc":
|
|
@@ -53,7 +53,7 @@ const bn = /* @__PURE__ */ N(Vo, [["render", Do]]), fu = /* @__PURE__ */ Object.
|
|
|
53
53
|
case "angular":
|
|
54
54
|
return "class";
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, Wo = j({
|
|
57
57
|
name: "builder-button",
|
|
58
58
|
components: { DynamicRenderer: bn },
|
|
59
59
|
props: [
|
|
@@ -82,7 +82,7 @@ const bn = /* @__PURE__ */ N(Vo, [["render", Do]]), fu = /* @__PURE__ */ Object.
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
function
|
|
85
|
+
function Mo(e, t, n, r, o, i) {
|
|
86
86
|
const s = D("DynamicRenderer");
|
|
87
87
|
return y(), V(s, {
|
|
88
88
|
attributes: e.attrs(),
|
|
@@ -90,12 +90,12 @@ function Fo(e, t, n, r, o, i) {
|
|
|
90
90
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
91
91
|
}, {
|
|
92
92
|
default: Te(() => [
|
|
93
|
-
|
|
93
|
+
Bo(jt(e.text), 1)
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const Lo = /* @__PURE__ */ N(Wo, [["render", Mo]]), Ho = Symbol(), dn = {
|
|
99
99
|
Builder: {
|
|
100
100
|
content: null,
|
|
101
101
|
context: {},
|
|
@@ -111,19 +111,19 @@ const Wo = /* @__PURE__ */ N(Uo, [["render", Fo]]), Mo = Symbol(), dn = {
|
|
|
111
111
|
BlocksWrapperProps: {},
|
|
112
112
|
nonce: ""
|
|
113
113
|
},
|
|
114
|
-
key:
|
|
115
|
-
},
|
|
114
|
+
key: Ho
|
|
115
|
+
}, Ko = Symbol(), Or = {
|
|
116
116
|
Components: { registeredComponents: {} },
|
|
117
|
-
key:
|
|
117
|
+
key: Ko
|
|
118
118
|
};
|
|
119
|
-
function
|
|
119
|
+
function qo(e) {
|
|
120
120
|
var t;
|
|
121
121
|
return {
|
|
122
122
|
...(t = e.component) == null ? void 0 : t.options,
|
|
123
123
|
...e.options
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Go(e, ...t) {
|
|
127
127
|
const n = Object.assign({}, e);
|
|
128
128
|
for (const r of t)
|
|
129
129
|
delete n[r];
|
|
@@ -141,27 +141,27 @@ const At = "[Builder.io]: ", ie = {
|
|
|
141
141
|
function Y() {
|
|
142
142
|
return typeof window < "u" && typeof document < "u";
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const zo = (e) => {
|
|
145
145
|
const t = {};
|
|
146
146
|
return e.forEach((n, r) => {
|
|
147
147
|
t[r] = n;
|
|
148
148
|
}), t;
|
|
149
|
-
}, Br = (e) => e instanceof URLSearchParams ?
|
|
150
|
-
function
|
|
149
|
+
}, Br = (e) => e instanceof URLSearchParams ? zo(e) : e, Nr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
150
|
+
function _o() {
|
|
151
151
|
return Y() && window.self !== window.top;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function le(e) {
|
|
154
|
+
return _o() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
155
155
|
Nr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const Jo = () => {
|
|
158
158
|
if (Y()) {
|
|
159
159
|
const e = new URL(location.href);
|
|
160
160
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
161
161
|
} else
|
|
162
162
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
163
|
-
},
|
|
164
|
-
const e =
|
|
163
|
+
}, Xo = () => typeof navigator == "object" && navigator.userAgent || "", Vr = () => {
|
|
164
|
+
const e = Xo(), t = {
|
|
165
165
|
Android() {
|
|
166
166
|
return e.match(/Android/i);
|
|
167
167
|
},
|
|
@@ -178,9 +178,9 @@ const zo = () => {
|
|
|
178
178
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
179
179
|
},
|
|
180
180
|
any() {
|
|
181
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
181
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || se === "reactNative";
|
|
182
182
|
}
|
|
183
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
183
|
+
}, n = e.match(/Tablet|iPad/i), r = Jo();
|
|
184
184
|
return {
|
|
185
185
|
urlPath: r == null ? void 0 : r.pathname,
|
|
186
186
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -198,12 +198,12 @@ const zo = () => {
|
|
|
198
198
|
builder: e,
|
|
199
199
|
context: t,
|
|
200
200
|
event: n
|
|
201
|
-
}),
|
|
202
|
-
isEditing:
|
|
201
|
+
}), Yo = () => ({
|
|
202
|
+
isEditing: le(),
|
|
203
203
|
isBrowser: Y(),
|
|
204
204
|
isServer: !Y(),
|
|
205
205
|
getUserAttributes: () => Vr()
|
|
206
|
-
}),
|
|
206
|
+
}), Zo = (e, {
|
|
207
207
|
isExpression: t = !0
|
|
208
208
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
209
209
|
function kn({
|
|
@@ -231,7 +231,7 @@ function kn({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const Qo = ({
|
|
235
235
|
code: e,
|
|
236
236
|
builder: t,
|
|
237
237
|
context: n,
|
|
@@ -252,9 +252,9 @@ const Yo = ({
|
|
|
252
252
|
});
|
|
253
253
|
return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
|
|
254
254
|
};
|
|
255
|
-
var B,
|
|
255
|
+
var B, ei = function(e) {
|
|
256
256
|
function t(a) {
|
|
257
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
257
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Oo.test(String.fromCharCode(a));
|
|
258
258
|
}
|
|
259
259
|
function n(a) {
|
|
260
260
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && mr.test(String.fromCharCode(a));
|
|
@@ -285,7 +285,7 @@ var B, Zo = function(e) {
|
|
|
285
285
|
this.line = Ne, this.ab = d - ve;
|
|
286
286
|
}
|
|
287
287
|
function s(a, l) {
|
|
288
|
-
Ue = d, R.C && (qt = new i()), E = a, p(),
|
|
288
|
+
Ue = d, R.C && (qt = new i()), E = a, p(), ae = l, Ye = a.m;
|
|
289
289
|
}
|
|
290
290
|
function u() {
|
|
291
291
|
for (var a = d, l = R.va && R.C && new i(), c = k.charCodeAt(d += 2); d < De && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -317,7 +317,7 @@ var B, Zo = function(e) {
|
|
|
317
317
|
break;
|
|
318
318
|
else if (a === 160)
|
|
319
319
|
++d;
|
|
320
|
-
else if (5760 <= a &&
|
|
320
|
+
else if (5760 <= a && Po.test(String.fromCharCode(a)))
|
|
321
321
|
++d;
|
|
322
322
|
else
|
|
323
323
|
break;
|
|
@@ -430,26 +430,26 @@ var B, Zo = function(e) {
|
|
|
430
430
|
return;
|
|
431
431
|
case 37:
|
|
432
432
|
case 42:
|
|
433
|
-
k.charCodeAt(d + 1) === 61 ? h(Ve, 2) : h(
|
|
433
|
+
k.charCodeAt(d + 1) === 61 ? h(Ve, 2) : h(Ro, 1);
|
|
434
434
|
return;
|
|
435
435
|
case 124:
|
|
436
436
|
case 38:
|
|
437
|
-
l = k.charCodeAt(d + 1), l === a ? h(a === 124 ? dr : hr, 2) : l === 61 ? h(Ve, 2) : h(a === 124 ?
|
|
437
|
+
l = k.charCodeAt(d + 1), l === a ? h(a === 124 ? dr : hr, 2) : l === 61 ? h(Ve, 2) : h(a === 124 ? So : wo, 1);
|
|
438
438
|
return;
|
|
439
439
|
case 94:
|
|
440
|
-
k.charCodeAt(d + 1) === 61 ? h(Ve, 2) : h(
|
|
440
|
+
k.charCodeAt(d + 1) === 61 ? h(Ve, 2) : h(Co, 1);
|
|
441
441
|
return;
|
|
442
442
|
case 43:
|
|
443
443
|
case 45:
|
|
444
|
-
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && xt.test(k.slice(Ae, d)) ? (d += 3, u(), p(), v()) : h(
|
|
444
|
+
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && xt.test(k.slice(Ae, d)) ? (d += 3, u(), p(), v()) : h(ko, 2) : l === 61 ? h(Ve, 2) : h(xo, 1);
|
|
445
445
|
return;
|
|
446
446
|
case 60:
|
|
447
447
|
case 62:
|
|
448
|
-
l = k.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + c) === 61 ? h(Ve, c + 1) : h(
|
|
448
|
+
l = k.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + c) === 61 ? h(Ve, c + 1) : h(Io, c)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), p(), v()) : (l === 61 && (c = k.charCodeAt(d + 2) === 61 ? 3 : 2), h(Eo, c));
|
|
449
449
|
return;
|
|
450
450
|
case 61:
|
|
451
451
|
case 33:
|
|
452
|
-
k.charCodeAt(d + 1) === 61 ? h(
|
|
452
|
+
k.charCodeAt(d + 1) === 61 ? h(To, k.charCodeAt(d + 2) === 61 ? 3 : 2) : h(a === 61 ? cr : pr, 1);
|
|
453
453
|
return;
|
|
454
454
|
case 126:
|
|
455
455
|
return h(pr, 1);
|
|
@@ -534,7 +534,7 @@ var B, Zo = function(e) {
|
|
|
534
534
|
}
|
|
535
535
|
function U() {
|
|
536
536
|
var a = ne(), l = Fe;
|
|
537
|
-
!Me &&
|
|
537
|
+
!Me && $o(a) && (l = bo[a]), s(l, a);
|
|
538
538
|
}
|
|
539
539
|
function A() {
|
|
540
540
|
Gt = K, Ae = Ue, zt = qt, v();
|
|
@@ -585,7 +585,7 @@ var B, Zo = function(e) {
|
|
|
585
585
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), re && a.type === "Identifier" && It(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
586
586
|
}
|
|
587
587
|
function ce() {
|
|
588
|
-
(E === ur || E === Ve &&
|
|
588
|
+
(E === ur || E === Ve && ae === "/=") && v(!0);
|
|
589
589
|
var a = E, l = J();
|
|
590
590
|
switch (a) {
|
|
591
591
|
case Jt:
|
|
@@ -612,7 +612,7 @@ var B, Zo = function(e) {
|
|
|
612
612
|
case Zn:
|
|
613
613
|
return Ze || R.Ib || r(K, "'return' outside of function"), A(), F(ke) || St() ? l.K = null : (l.K = Z(), Be()), x(l, "ReturnStatement");
|
|
614
614
|
case Zt:
|
|
615
|
-
for (A(), l.Qb = _e(), l.tb = [], L(et), H.push(
|
|
615
|
+
for (A(), l.Qb = _e(), l.tb = [], L(et), H.push(jo); E !== We; )
|
|
616
616
|
E === Xt || E === Gn ? (a = E === Xt, f && x(f, "SwitchCase"), l.tb.push(f = J()), f.da = [], A(), a ? f.test = Z() : (c && r(Gt, "Multiple default clauses"), c = !0, f.test = null), L(tt)) : (f || ge(), f.da.push(ce()));
|
|
617
617
|
return f && x(f, "SwitchCase"), A(), H.pop(), x(l, "SwitchStatement");
|
|
618
618
|
case Qn:
|
|
@@ -630,7 +630,7 @@ var B, Zo = function(e) {
|
|
|
630
630
|
case ke:
|
|
631
631
|
return A(), x(l, "EmptyStatement");
|
|
632
632
|
default:
|
|
633
|
-
if (c =
|
|
633
|
+
if (c = ae, I = Z(), a === Fe && I.type === "Identifier" && F(tt)) {
|
|
634
634
|
for (f = 0; f < H.length; ++f)
|
|
635
635
|
H[f].name === c && r(I.start, "Label '" + c + "' is already declared");
|
|
636
636
|
return H.push({
|
|
@@ -686,23 +686,23 @@ var B, Zo = function(e) {
|
|
|
686
686
|
var c = Re(l);
|
|
687
687
|
c.test = l, c.da = Z(!0), L(tt), c.alternate = Z(!0, a), l = x(c, "ConditionalExpression");
|
|
688
688
|
}
|
|
689
|
-
return E.Cb ? (c = Re(l), c.operator =
|
|
689
|
+
return E.Cb ? (c = Re(l), c.operator = ae, c.left = l, A(), c.right = Ut(a), Ct(l), x(c, "AssignmentExpression")) : l;
|
|
690
690
|
}
|
|
691
691
|
function Ft(a, l, c) {
|
|
692
692
|
var f = E.L;
|
|
693
693
|
if (f !== null && (!c || E !== Et) && f > l) {
|
|
694
694
|
var I = Re(a);
|
|
695
|
-
return I.left = a, I.operator =
|
|
695
|
+
return I.left = a, I.operator = ae, a = E, A(), I.right = Ft(Wt(), f, c), f = x(I, a === dr || a === hr ? "LogicalExpression" : "BinaryExpression"), Ft(f, l, c);
|
|
696
696
|
}
|
|
697
697
|
return a;
|
|
698
698
|
}
|
|
699
699
|
function Wt() {
|
|
700
700
|
if (E.prefix) {
|
|
701
701
|
var a = J(), l = E.$b;
|
|
702
|
-
return a.operator =
|
|
702
|
+
return a.operator = ae, Ye = a.prefix = !0, A(), a.K = Wt(), l ? Ct(a.K) : re && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), x(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
703
703
|
}
|
|
704
704
|
for (l = Xe(wt()); E.cc && !St(); )
|
|
705
|
-
a = Re(l), a.operator =
|
|
705
|
+
a = Re(l), a.operator = ae, a.prefix = !1, a.K = l, Ct(l), A(), l = x(a, "UpdateExpression");
|
|
706
706
|
return l;
|
|
707
707
|
}
|
|
708
708
|
function Xe(a, l) {
|
|
@@ -722,7 +722,7 @@ var B, Zo = function(e) {
|
|
|
722
722
|
case Qe:
|
|
723
723
|
case Tt:
|
|
724
724
|
case Ln:
|
|
725
|
-
return a = J(), a.value =
|
|
725
|
+
return a = J(), a.value = ae, a.raw = k.slice(K, Ue), A(), x(a, "Literal");
|
|
726
726
|
case or:
|
|
727
727
|
case ir:
|
|
728
728
|
case sr:
|
|
@@ -763,7 +763,7 @@ var B, Zo = function(e) {
|
|
|
763
763
|
case Yt:
|
|
764
764
|
return a = J(), A(), Mt(a, !1);
|
|
765
765
|
case nr:
|
|
766
|
-
return a = J(), A(), a.callee = Xe(wt(), !0), a.arguments = F(be) ? Lt(he, !1) :
|
|
766
|
+
return a = J(), A(), a.callee = Xe(wt(), !0), a.arguments = F(be) ? Lt(he, !1) : vo, x(a, "NewExpression");
|
|
767
767
|
}
|
|
768
768
|
ge();
|
|
769
769
|
}
|
|
@@ -794,7 +794,7 @@ var B, Zo = function(e) {
|
|
|
794
794
|
}
|
|
795
795
|
function ye(a) {
|
|
796
796
|
var l = J();
|
|
797
|
-
return a && R.yb === "everywhere" && (a = !1), E === Fe ? (!a && (R.yb &&
|
|
797
|
+
return a && R.yb === "everywhere" && (a = !1), E === Fe ? (!a && (R.yb && Ao(ae) || re && fr(ae)) && k.slice(K, Ue).indexOf("\\") === -1 && r(K, "The keyword '" + ae + "' is reserved"), l.name = ae) : a && E.l ? l.name = E.l : ge(), Ye = !1, A(), x(l, "Identifier");
|
|
798
798
|
}
|
|
799
799
|
e.version = "0.5.0";
|
|
800
800
|
var R, k = "", De, Ht;
|
|
@@ -817,7 +817,7 @@ var B, Zo = function(e) {
|
|
|
817
817
|
dc: null,
|
|
818
818
|
sourceFile: null,
|
|
819
819
|
vb: null
|
|
820
|
-
}, d = 0, K = 0, Ue = 0, Kt, qt, E,
|
|
820
|
+
}, d = 0, K = 0, Ue = 0, Kt, qt, E, ae, Ye, Ne, ve, Gt = 0, Ae = 0, zt, Ze, H, re, vo = [], Qe = {
|
|
821
821
|
type: "num"
|
|
822
822
|
}, Ln = {
|
|
823
823
|
type: "regexp"
|
|
@@ -890,7 +890,7 @@ var B, Zo = function(e) {
|
|
|
890
890
|
l: "in",
|
|
891
891
|
L: 7,
|
|
892
892
|
m: !0
|
|
893
|
-
},
|
|
893
|
+
}, bo = {
|
|
894
894
|
break: Jt,
|
|
895
895
|
case: Xt,
|
|
896
896
|
catch: Hn,
|
|
@@ -974,7 +974,7 @@ var B, Zo = function(e) {
|
|
|
974
974
|
}, Ve = {
|
|
975
975
|
Cb: !0,
|
|
976
976
|
m: !0
|
|
977
|
-
},
|
|
977
|
+
}, ko = {
|
|
978
978
|
cc: !0,
|
|
979
979
|
prefix: !0,
|
|
980
980
|
$b: !0
|
|
@@ -987,38 +987,38 @@ var B, Zo = function(e) {
|
|
|
987
987
|
}, hr = {
|
|
988
988
|
L: 2,
|
|
989
989
|
m: !0
|
|
990
|
-
},
|
|
990
|
+
}, So = {
|
|
991
991
|
L: 3,
|
|
992
992
|
m: !0
|
|
993
|
-
},
|
|
993
|
+
}, Co = {
|
|
994
994
|
L: 4,
|
|
995
995
|
m: !0
|
|
996
|
-
},
|
|
996
|
+
}, wo = {
|
|
997
997
|
L: 5,
|
|
998
998
|
m: !0
|
|
999
|
-
},
|
|
999
|
+
}, To = {
|
|
1000
1000
|
L: 6,
|
|
1001
1001
|
m: !0
|
|
1002
|
-
},
|
|
1002
|
+
}, Eo = {
|
|
1003
1003
|
L: 7,
|
|
1004
1004
|
m: !0
|
|
1005
|
-
},
|
|
1005
|
+
}, Io = {
|
|
1006
1006
|
L: 8,
|
|
1007
1007
|
m: !0
|
|
1008
|
-
},
|
|
1008
|
+
}, xo = {
|
|
1009
1009
|
L: 9,
|
|
1010
1010
|
prefix: !0,
|
|
1011
1011
|
m: !0
|
|
1012
|
-
},
|
|
1012
|
+
}, Ro = {
|
|
1013
1013
|
L: 10,
|
|
1014
1014
|
m: !0
|
|
1015
|
-
},
|
|
1015
|
+
}, Ao = o("class enum extends super const export import"), fr = o("implements interface let package private protected public static yield"), It = o("eval arguments"), $o = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Po = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, mr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Oo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), xt = /[\n\r\u2028\u2029]/, Rt = /\r\n|[\n\r\u2028\u2029]/g, Me, rn = {
|
|
1016
1016
|
kind: "loop"
|
|
1017
|
-
},
|
|
1017
|
+
}, jo = {
|
|
1018
1018
|
kind: "switch"
|
|
1019
1019
|
};
|
|
1020
1020
|
}, hn = hn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1021
|
-
|
|
1021
|
+
ei(hn.j || (hn.j = {}));
|
|
1022
1022
|
function m(e, t) {
|
|
1023
1023
|
typeof e == "string" && (e = Ke(e, "code"));
|
|
1024
1024
|
var n = e.constructor;
|
|
@@ -1068,7 +1068,7 @@ var gr = {
|
|
|
1068
1068
|
VALUE_IN_DESCRIPTOR: !0
|
|
1069
1069
|
}, He = {
|
|
1070
1070
|
REGEXP_TIMEOUT: !0
|
|
1071
|
-
}, vr = [], Ce = null, ut = null, Oe = typeof globalThis > "u" ? void 0 : globalThis,
|
|
1071
|
+
}, vr = [], Ce = null, ut = null, Oe = typeof globalThis > "u" ? void 0 : globalThis, ti = ["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();", "};"];
|
|
1072
1072
|
function Cn(e) {
|
|
1073
1073
|
var t = e >>> 0;
|
|
1074
1074
|
return t === Number(e) ? t : NaN;
|
|
@@ -1150,8 +1150,8 @@ B.Eb = function() {
|
|
|
1150
1150
|
;
|
|
1151
1151
|
return this.za;
|
|
1152
1152
|
};
|
|
1153
|
-
function
|
|
1154
|
-
e.g(t, "NaN", NaN, rt), e.g(t, "Infinity", 1 / 0, rt), e.g(t, "undefined", void 0, rt), e.g(t, "window", t, Sn), e.g(t, "this", t, rt), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M),
|
|
1153
|
+
function ni(e, t) {
|
|
1154
|
+
e.g(t, "NaN", NaN, rt), e.g(t, "Infinity", 1 / 0, rt), e.g(t, "undefined", void 0, rt), e.g(t, "window", t, Sn), e.g(t, "this", t, rt), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), ri(e, t), oi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ii(e, t), si(e, t), ai(e, t), li(e, t), ui(e, t), ci(e, t), pi(e, t), di(e, t), hi(e, t);
|
|
1155
1155
|
var n = e.i(function() {
|
|
1156
1156
|
throw EvalError("Can't happen");
|
|
1157
1157
|
}, !1);
|
|
@@ -1177,7 +1177,7 @@ function ei(e, t) {
|
|
|
1177
1177
|
}, e.g(t, "clearInterval", e.i(n, !1), S), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1178
1178
|
}
|
|
1179
1179
|
B.Wb = 0;
|
|
1180
|
-
function
|
|
1180
|
+
function ri(e, t) {
|
|
1181
1181
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1182
1182
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1183
1183
|
if (s) {
|
|
@@ -1211,7 +1211,7 @@ function ti(e, t) {
|
|
|
1211
1211
|
return this.valueOf();
|
|
1212
1212
|
}, _(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), S);
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function oi(e, t) {
|
|
1215
1215
|
function n(o) {
|
|
1216
1216
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1217
1217
|
}
|
|
@@ -1256,7 +1256,7 @@ function ni(e, t) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
}, _(e, e.v, "isPrototypeOf", r);
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function ii(e, t) {
|
|
1260
1260
|
var n = function(r) {
|
|
1261
1261
|
var o = Ee(e) ? this : qe(e), i = arguments[0];
|
|
1262
1262
|
if (arguments.length === 1 && typeof i == "number")
|
|
@@ -1276,7 +1276,7 @@ function ri(e, t) {
|
|
|
1276
1276
|
writable: !0
|
|
1277
1277
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function si(e, t) {
|
|
1280
1280
|
var n = function(r) {
|
|
1281
1281
|
return r = arguments.length ? Oe.String(r) : "", Ee(e) ? (this.data = r, this) : r;
|
|
1282
1282
|
};
|
|
@@ -1359,12 +1359,12 @@ function oi(e, t) {
|
|
|
1359
1359
|
i(s.replace(r, o));
|
|
1360
1360
|
}, at(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;", "};", "})();", "");
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function ai(e, t) {
|
|
1363
1363
|
e.mb = e.i(function(n) {
|
|
1364
1364
|
return n = Oe.Boolean(n), Ee(e) ? (this.data = n, this) : n;
|
|
1365
1365
|
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function li(e, t) {
|
|
1368
1368
|
var n = function(r) {
|
|
1369
1369
|
return r = arguments.length ? Oe.Number(r) : 0, Ee(e) ? (this.data = r, this) : r;
|
|
1370
1370
|
};
|
|
@@ -1403,7 +1403,7 @@ function si(e, t) {
|
|
|
1403
1403
|
}
|
|
1404
1404
|
}, _(e, e.aa, "toLocaleString", n);
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function ui(e, t) {
|
|
1407
1407
|
var n = function(o, i) {
|
|
1408
1408
|
if (!Ee(e))
|
|
1409
1409
|
return Oe.Date();
|
|
@@ -1422,7 +1422,7 @@ function ai(e, t) {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
}(t[r]), _(e, e.$, t[r], n);
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function ci(e, t) {
|
|
1426
1426
|
var n = function(r, o) {
|
|
1427
1427
|
if (Ee(e))
|
|
1428
1428
|
var i = this;
|
|
@@ -1464,7 +1464,7 @@ function li(e, t) {
|
|
|
1464
1464
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1465
1465
|
}, at(e, e.I, "exec", n);
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function pi(e, t) {
|
|
1468
1468
|
function n(r) {
|
|
1469
1469
|
var o = e.i(function(i) {
|
|
1470
1470
|
var s = Ee(e) ? this : e.Aa(o);
|
|
@@ -1477,7 +1477,7 @@ function ui(e, t) {
|
|
|
1477
1477
|
return fn(e, o, r), o;
|
|
1478
1478
|
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function di(e, t) {
|
|
1481
1481
|
var n = e.s(e.M);
|
|
1482
1482
|
e.g(t, "Math", n, S);
|
|
1483
1483
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1486,7 +1486,7 @@ function ci(e, t) {
|
|
|
1486
1486
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1487
1487
|
e.g(n, r[t], e.i(Math[r[t]], !1), S);
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1489
|
+
function hi(e, t) {
|
|
1490
1490
|
var n = e.s(e.M);
|
|
1491
1491
|
e.g(t, "JSON", n, S), t = function(r) {
|
|
1492
1492
|
try {
|
|
@@ -1541,7 +1541,7 @@ function fn(e, t, n) {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
B.ha = function() {
|
|
1543
1543
|
var e = this.ha.Mb;
|
|
1544
|
-
return e || (e = new Blob([
|
|
1544
|
+
return e || (e = new Blob([ti.join(`
|
|
1545
1545
|
`)], {
|
|
1546
1546
|
type: "application/javascript"
|
|
1547
1547
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1820,7 +1820,7 @@ function mn(e, t, n) {
|
|
|
1820
1820
|
var o = t.body && t.body[0];
|
|
1821
1821
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1822
1822
|
}
|
|
1823
|
-
return o = e.s(null), r = new Lr(n, r, o), n ||
|
|
1823
|
+
return o = e.s(null), r = new Lr(n, r, o), n || ni(e, r.object), mt(e, t, r), r;
|
|
1824
1824
|
}
|
|
1825
1825
|
function xn(e, t, n) {
|
|
1826
1826
|
if (!t)
|
|
@@ -2005,7 +2005,7 @@ function br(e, t, n) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], Bt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2007
2007
|
}
|
|
2008
|
-
return t = new
|
|
2008
|
+
return t = new fi(u, o, r, s, t ? n : -1), Mr(e, t, n), t.Db;
|
|
2009
2009
|
}
|
|
2010
2010
|
function Mr(e, t, n) {
|
|
2011
2011
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -2109,10 +2109,10 @@ B.toString = function() {
|
|
|
2109
2109
|
B.valueOf = function() {
|
|
2110
2110
|
return !ut || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2111
2111
|
};
|
|
2112
|
-
function
|
|
2113
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2112
|
+
function fi(e, t, n, r, o) {
|
|
2113
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++mi, this.time = 0;
|
|
2114
2114
|
}
|
|
2115
|
-
var
|
|
2115
|
+
var mi = 0;
|
|
2116
2116
|
m.prototype.stepArrayExpression = function(e, t, n) {
|
|
2117
2117
|
n = n.elements;
|
|
2118
2118
|
var r = t.A || 0;
|
|
@@ -2660,7 +2660,7 @@ m.prototype.getGlobalScope = m.prototype.Xb;
|
|
|
2660
2660
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2661
2661
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2662
2662
|
m.VALUE_IN_DESCRIPTOR = ft;
|
|
2663
|
-
function
|
|
2663
|
+
function gi() {
|
|
2664
2664
|
const e = m.prototype.getProperty, t = m.prototype.setProperty;
|
|
2665
2665
|
function n(s, u) {
|
|
2666
2666
|
if (s == null || !s._connected)
|
|
@@ -2685,11 +2685,11 @@ function fi() {
|
|
|
2685
2685
|
return u._connected = s, u;
|
|
2686
2686
|
};
|
|
2687
2687
|
}
|
|
2688
|
-
|
|
2689
|
-
const
|
|
2688
|
+
gi();
|
|
2689
|
+
const yi = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2690
2690
|
var __awaiter = function (e, t, n, r) {return r()},
|
|
2691
2691
|
__generator = function (e, t) { return t() };
|
|
2692
|
-
function main()`).replace(/\?\./g, "."), Sr = (e) => e + "JSON",
|
|
2692
|
+
function main()`).replace(/\?\./g, "."), Sr = (e) => e + "JSON", vi = ({
|
|
2693
2693
|
builder: e,
|
|
2694
2694
|
context: t,
|
|
2695
2695
|
event: n,
|
|
@@ -2711,7 +2711,7 @@ function main()`).replace(/\?\./g, "."), Sr = (e) => e + "JSON", gi = ({
|
|
|
2711
2711
|
const ne = Sr(M);
|
|
2712
2712
|
return M === "state" ? "" : `var ${M} = ${ne} === undefined ? undefined : JSON.parse(${ne});`;
|
|
2713
2713
|
}).join(`
|
|
2714
|
-
`), v =
|
|
2714
|
+
`), v = yi(s);
|
|
2715
2715
|
if (v === "") {
|
|
2716
2716
|
ie.warn("Skipping evaluation of empty code block.");
|
|
2717
2717
|
return;
|
|
@@ -2735,23 +2735,23 @@ theFunction();
|
|
|
2735
2735
|
}, $ = new m(h, b);
|
|
2736
2736
|
return $.run(), $.pseudoToNative($.value);
|
|
2737
2737
|
}, je = (e) => e != null;
|
|
2738
|
-
function
|
|
2738
|
+
function bi() {
|
|
2739
2739
|
var e;
|
|
2740
2740
|
return typeof process < "u" && je((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2741
2741
|
}
|
|
2742
|
-
const
|
|
2742
|
+
const ki = ({
|
|
2743
2743
|
shouldLogWarning: e
|
|
2744
2744
|
}) => {
|
|
2745
2745
|
var o;
|
|
2746
|
-
if (!
|
|
2746
|
+
if (!bi())
|
|
2747
2747
|
return !1;
|
|
2748
2748
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2749
2749
|
return t && n && !r ? (e && ie.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;
|
|
2750
|
-
},
|
|
2750
|
+
}, Si = (e) => Y() || ki({
|
|
2751
2751
|
shouldLogWarning: !0
|
|
2752
|
-
}) ?
|
|
2752
|
+
}) ? Qo(e) : vi(e), Ci = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wi = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ti = (e) => {
|
|
2753
2753
|
var t, n, r, o, i, s;
|
|
2754
|
-
return ((r = (n = (t =
|
|
2754
|
+
return ((r = (n = (t = Ci.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : r.slice(1)) || ((s = (i = (o = wi.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
2755
2755
|
};
|
|
2756
2756
|
function bt({
|
|
2757
2757
|
code: e,
|
|
@@ -2764,17 +2764,17 @@ function bt({
|
|
|
2764
2764
|
}) {
|
|
2765
2765
|
if (e.trim() === "")
|
|
2766
2766
|
return;
|
|
2767
|
-
const u =
|
|
2767
|
+
const u = Ti(e.trim());
|
|
2768
2768
|
if (u)
|
|
2769
2769
|
return jr({
|
|
2770
2770
|
...r,
|
|
2771
2771
|
...n
|
|
2772
2772
|
}, u);
|
|
2773
2773
|
const p = {
|
|
2774
|
-
code:
|
|
2774
|
+
code: Zo(e, {
|
|
2775
2775
|
isExpression: s
|
|
2776
2776
|
}),
|
|
2777
|
-
builder:
|
|
2777
|
+
builder: Yo(),
|
|
2778
2778
|
context: t,
|
|
2779
2779
|
event: i,
|
|
2780
2780
|
rootSetState: o,
|
|
@@ -2782,7 +2782,7 @@ function bt({
|
|
|
2782
2782
|
localState: n
|
|
2783
2783
|
};
|
|
2784
2784
|
try {
|
|
2785
|
-
return
|
|
2785
|
+
return Si(p);
|
|
2786
2786
|
} catch (g) {
|
|
2787
2787
|
ie.error("Failed code evaluation: " + g.message, {
|
|
2788
2788
|
code: e
|
|
@@ -2808,8 +2808,8 @@ function gn(e) {
|
|
|
2808
2808
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = gn(e[n]));
|
|
2809
2809
|
return t;
|
|
2810
2810
|
}
|
|
2811
|
-
const
|
|
2812
|
-
if (
|
|
2811
|
+
const Ei = ["svelte", "vue", "angular", "qwik", "solid"].includes(se), Ii = (e) => {
|
|
2812
|
+
if (Ei) {
|
|
2813
2813
|
const t = On(e);
|
|
2814
2814
|
return {
|
|
2815
2815
|
...t,
|
|
@@ -2821,7 +2821,7 @@ const wi = ["svelte", "vue", "angular", "qwik", "solid"].includes(le), Ti = (e)
|
|
|
2821
2821
|
}
|
|
2822
2822
|
};
|
|
2823
2823
|
} else {
|
|
2824
|
-
const t = gn(
|
|
2824
|
+
const t = gn(Go(e, "children", "meta"));
|
|
2825
2825
|
return {
|
|
2826
2826
|
...t,
|
|
2827
2827
|
properties: {
|
|
@@ -2834,7 +2834,7 @@ const wi = ["svelte", "vue", "angular", "qwik", "solid"].includes(le), Ti = (e)
|
|
|
2834
2834
|
meta: e.meta
|
|
2835
2835
|
};
|
|
2836
2836
|
}
|
|
2837
|
-
},
|
|
2837
|
+
}, xi = ({
|
|
2838
2838
|
block: e,
|
|
2839
2839
|
context: t,
|
|
2840
2840
|
localState: n,
|
|
@@ -2843,7 +2843,7 @@ const wi = ["svelte", "vue", "angular", "qwik", "solid"].includes(le), Ti = (e)
|
|
|
2843
2843
|
}) => {
|
|
2844
2844
|
if (!e.bindings)
|
|
2845
2845
|
return e;
|
|
2846
|
-
const i =
|
|
2846
|
+
const i = Ii(e);
|
|
2847
2847
|
for (const s in e.bindings) {
|
|
2848
2848
|
const u = e.bindings[s], p = bt({
|
|
2849
2849
|
code: u,
|
|
@@ -2856,7 +2856,7 @@ const wi = ["svelte", "vue", "angular", "qwik", "solid"].includes(le), Ti = (e)
|
|
|
2856
2856
|
}
|
|
2857
2857
|
return i;
|
|
2858
2858
|
};
|
|
2859
|
-
function
|
|
2859
|
+
function Ri({
|
|
2860
2860
|
block: e,
|
|
2861
2861
|
context: t,
|
|
2862
2862
|
shouldEvaluateBindings: n,
|
|
@@ -2865,7 +2865,7 @@ function Ii({
|
|
|
2865
2865
|
rootSetState: i
|
|
2866
2866
|
}) {
|
|
2867
2867
|
const s = e;
|
|
2868
|
-
return n ?
|
|
2868
|
+
return n ? xi({
|
|
2869
2869
|
block: s,
|
|
2870
2870
|
localState: r,
|
|
2871
2871
|
rootState: o,
|
|
@@ -2873,22 +2873,22 @@ function Ii({
|
|
|
2873
2873
|
context: t
|
|
2874
2874
|
}) : s;
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2876
|
+
function Ai(e) {
|
|
2877
2877
|
const t = e || (Y() ? window.location.search : void 0);
|
|
2878
2878
|
return t ? Nr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
2879
2879
|
}
|
|
2880
|
-
const
|
|
2880
|
+
const $i = (e) => ({
|
|
2881
2881
|
type: "builder.registerComponent",
|
|
2882
2882
|
data: Ot(e)
|
|
2883
|
-
}),
|
|
2883
|
+
}), Pi = (e) => {
|
|
2884
2884
|
const t = e.toString().trim();
|
|
2885
2885
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2886
2886
|
};
|
|
2887
2887
|
function Ot(e) {
|
|
2888
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
2888
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Pi(n) : n));
|
|
2889
2889
|
}
|
|
2890
2890
|
const Cr = {};
|
|
2891
|
-
function
|
|
2891
|
+
function Oi(e, t) {
|
|
2892
2892
|
e === "plugin" && (t = Ot(t));
|
|
2893
2893
|
let n = Cr[e];
|
|
2894
2894
|
if (n || (n = Cr[e] = []), n.push(t), Y()) {
|
|
@@ -2907,7 +2907,7 @@ function $i(e, t) {
|
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
2909
|
const wr = {};
|
|
2910
|
-
function
|
|
2910
|
+
function gu(e) {
|
|
2911
2911
|
if (Y()) {
|
|
2912
2912
|
Object.assign(wr, e);
|
|
2913
2913
|
const t = {
|
|
@@ -2917,27 +2917,31 @@ function mu(e) {
|
|
|
2917
2917
|
parent.postMessage(t, "*");
|
|
2918
2918
|
}
|
|
2919
2919
|
}
|
|
2920
|
-
const Tr = "builder.",
|
|
2920
|
+
const Tr = "builder.", ji = "options.", Kr = (e) => {
|
|
2921
2921
|
if (!e)
|
|
2922
2922
|
return {};
|
|
2923
2923
|
const t = Br(e), n = {};
|
|
2924
2924
|
return Object.keys(t).forEach((r) => {
|
|
2925
2925
|
if (r.startsWith(Tr)) {
|
|
2926
|
-
const o = r.replace(Tr, "").replace(
|
|
2926
|
+
const o = r.replace(Tr, "").replace(ji, "");
|
|
2927
2927
|
n[o] = t[r];
|
|
2928
2928
|
}
|
|
2929
2929
|
}), n;
|
|
2930
|
-
},
|
|
2930
|
+
}, Bi = () => {
|
|
2931
2931
|
if (!Y())
|
|
2932
2932
|
return {};
|
|
2933
2933
|
const e = new URLSearchParams(window.location.search);
|
|
2934
2934
|
return Kr(e);
|
|
2935
|
-
},
|
|
2935
|
+
}, qr = "2.0.25", Gr = () => ({
|
|
2936
|
+
"X-Builder-SDK": se,
|
|
2937
|
+
"X-Builder-SDK-GEN": "2",
|
|
2938
|
+
"X-Builder-SDK-Version": qr
|
|
2939
|
+
}), Ni = (e) => {
|
|
2936
2940
|
if (e === "localhost" || e === "127.0.0.1")
|
|
2937
2941
|
return e;
|
|
2938
2942
|
const t = e.split(".");
|
|
2939
2943
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
2940
|
-
},
|
|
2944
|
+
}, zr = ({
|
|
2941
2945
|
name: e,
|
|
2942
2946
|
canTrack: t
|
|
2943
2947
|
}) => {
|
|
@@ -2948,14 +2952,14 @@ const Tr = "builder.", Pi = "options.", Kr = (e) => {
|
|
|
2948
2952
|
ie.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
2949
2953
|
return;
|
|
2950
2954
|
}
|
|
2951
|
-
},
|
|
2955
|
+
}, _r = async (e) => zr(e), Vi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(je).join("; "), Di = [["secure", ""], ["SameSite", "None"]], Ui = ({
|
|
2952
2956
|
name: e,
|
|
2953
2957
|
value: t,
|
|
2954
2958
|
expires: n
|
|
2955
2959
|
}) => {
|
|
2956
|
-
const o = (Y() ? location.protocol === "https:" : !0) ?
|
|
2957
|
-
return
|
|
2958
|
-
},
|
|
2960
|
+
const o = (Y() ? location.protocol === "https:" : !0) ? Di : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Ni(window.location.hostname)], ...o];
|
|
2961
|
+
return Vi(s);
|
|
2962
|
+
}, Jr = async ({
|
|
2959
2963
|
name: e,
|
|
2960
2964
|
value: t,
|
|
2961
2965
|
expires: n,
|
|
@@ -2964,7 +2968,7 @@ const Tr = "builder.", Pi = "options.", Kr = (e) => {
|
|
|
2964
2968
|
try {
|
|
2965
2969
|
if (!r)
|
|
2966
2970
|
return;
|
|
2967
|
-
const o =
|
|
2971
|
+
const o = Ui({
|
|
2968
2972
|
name: e,
|
|
2969
2973
|
value: t,
|
|
2970
2974
|
expires: n
|
|
@@ -2974,88 +2978,88 @@ const Tr = "builder.", Pi = "options.", Kr = (e) => {
|
|
|
2974
2978
|
ie.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
2975
2979
|
}
|
|
2976
2980
|
};
|
|
2977
|
-
function
|
|
2981
|
+
function Fi() {
|
|
2978
2982
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2979
2983
|
const t = Math.random() * 16 | 0;
|
|
2980
2984
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2981
2985
|
});
|
|
2982
2986
|
}
|
|
2983
|
-
function
|
|
2984
|
-
return
|
|
2987
|
+
function Xr() {
|
|
2988
|
+
return Fi().replace(/-/g, "");
|
|
2985
2989
|
}
|
|
2986
|
-
const
|
|
2990
|
+
const Yr = "builderSessionId", Wi = async ({
|
|
2987
2991
|
canTrack: e
|
|
2988
2992
|
}) => {
|
|
2989
2993
|
if (!e)
|
|
2990
2994
|
return;
|
|
2991
|
-
const t = await
|
|
2992
|
-
name:
|
|
2995
|
+
const t = await _r({
|
|
2996
|
+
name: Yr,
|
|
2993
2997
|
canTrack: e
|
|
2994
2998
|
});
|
|
2995
2999
|
if (je(t))
|
|
2996
3000
|
return t;
|
|
2997
3001
|
{
|
|
2998
|
-
const n =
|
|
2999
|
-
return
|
|
3002
|
+
const n = Mi();
|
|
3003
|
+
return Li({
|
|
3000
3004
|
id: n,
|
|
3001
3005
|
canTrack: e
|
|
3002
3006
|
}), n;
|
|
3003
3007
|
}
|
|
3004
|
-
},
|
|
3008
|
+
}, Mi = () => Xr(), Li = ({
|
|
3005
3009
|
id: e,
|
|
3006
3010
|
canTrack: t
|
|
3007
|
-
}) =>
|
|
3008
|
-
name:
|
|
3011
|
+
}) => Jr({
|
|
3012
|
+
name: Yr,
|
|
3009
3013
|
value: e,
|
|
3010
3014
|
canTrack: t
|
|
3011
|
-
}),
|
|
3015
|
+
}), Zr = () => Y() && typeof localStorage < "u" ? localStorage : void 0, Hi = ({
|
|
3012
3016
|
key: e,
|
|
3013
3017
|
canTrack: t
|
|
3014
3018
|
}) => {
|
|
3015
3019
|
var n;
|
|
3016
3020
|
try {
|
|
3017
|
-
return t ? (n =
|
|
3021
|
+
return t ? (n = Zr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
3018
3022
|
} catch (r) {
|
|
3019
3023
|
console.debug("[LocalStorage] GET error: ", r);
|
|
3020
3024
|
return;
|
|
3021
3025
|
}
|
|
3022
|
-
},
|
|
3026
|
+
}, Ki = ({
|
|
3023
3027
|
key: e,
|
|
3024
3028
|
canTrack: t,
|
|
3025
3029
|
value: n
|
|
3026
3030
|
}) => {
|
|
3027
3031
|
var r;
|
|
3028
3032
|
try {
|
|
3029
|
-
t && ((r =
|
|
3033
|
+
t && ((r = Zr()) == null || r.setItem(e, n));
|
|
3030
3034
|
} catch (o) {
|
|
3031
3035
|
console.debug("[LocalStorage] SET error: ", o);
|
|
3032
3036
|
}
|
|
3033
|
-
},
|
|
3037
|
+
}, Qr = "builderVisitorId", qi = ({
|
|
3034
3038
|
canTrack: e
|
|
3035
3039
|
}) => {
|
|
3036
3040
|
if (!e)
|
|
3037
3041
|
return;
|
|
3038
|
-
const t =
|
|
3039
|
-
key:
|
|
3042
|
+
const t = Hi({
|
|
3043
|
+
key: Qr,
|
|
3040
3044
|
canTrack: e
|
|
3041
3045
|
});
|
|
3042
3046
|
if (je(t))
|
|
3043
3047
|
return t;
|
|
3044
3048
|
{
|
|
3045
|
-
const n =
|
|
3046
|
-
return
|
|
3049
|
+
const n = Gi();
|
|
3050
|
+
return zi({
|
|
3047
3051
|
id: n,
|
|
3048
3052
|
canTrack: e
|
|
3049
3053
|
}), n;
|
|
3050
3054
|
}
|
|
3051
|
-
},
|
|
3055
|
+
}, Gi = () => Xr(), zi = ({
|
|
3052
3056
|
id: e,
|
|
3053
3057
|
canTrack: t
|
|
3054
|
-
}) =>
|
|
3055
|
-
key:
|
|
3058
|
+
}) => Ki({
|
|
3059
|
+
key: Qr,
|
|
3056
3060
|
value: e,
|
|
3057
3061
|
canTrack: t
|
|
3058
|
-
}),
|
|
3062
|
+
}), _i = async ({
|
|
3059
3063
|
canTrack: e
|
|
3060
3064
|
}) => {
|
|
3061
3065
|
if (!e)
|
|
@@ -3063,16 +3067,16 @@ const Jr = "builderSessionId", Ui = async ({
|
|
|
3063
3067
|
visitorId: void 0,
|
|
3064
3068
|
sessionId: void 0
|
|
3065
3069
|
};
|
|
3066
|
-
const t = await
|
|
3070
|
+
const t = await Wi({
|
|
3067
3071
|
canTrack: e
|
|
3068
|
-
}), n =
|
|
3072
|
+
}), n = qi({
|
|
3069
3073
|
canTrack: e
|
|
3070
3074
|
});
|
|
3071
3075
|
return {
|
|
3072
3076
|
sessionId: t,
|
|
3073
3077
|
visitorId: n
|
|
3074
3078
|
};
|
|
3075
|
-
},
|
|
3079
|
+
}, Ji = async ({
|
|
3076
3080
|
type: e,
|
|
3077
3081
|
canTrack: t,
|
|
3078
3082
|
apiKey: n,
|
|
@@ -3086,7 +3090,7 @@ const Jr = "builderSessionId", Ui = async ({
|
|
|
3086
3090
|
url: location.href,
|
|
3087
3091
|
...r
|
|
3088
3092
|
},
|
|
3089
|
-
...await
|
|
3093
|
+
...await _i({
|
|
3090
3094
|
canTrack: t
|
|
3091
3095
|
}),
|
|
3092
3096
|
userAttributes: Vr(),
|
|
@@ -3098,32 +3102,33 @@ async function yn(e) {
|
|
|
3098
3102
|
ie.error("Missing API key for track call. Please provide your API key.");
|
|
3099
3103
|
return;
|
|
3100
3104
|
}
|
|
3101
|
-
if (e.canTrack && !
|
|
3105
|
+
if (e.canTrack && !le() && (Y() || se === "reactNative"))
|
|
3102
3106
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
3103
3107
|
method: "POST",
|
|
3104
3108
|
body: JSON.stringify({
|
|
3105
|
-
events: [await
|
|
3109
|
+
events: [await Ji(e)]
|
|
3106
3110
|
}),
|
|
3107
3111
|
headers: {
|
|
3108
|
-
"content-type": "application/json"
|
|
3112
|
+
"content-type": "application/json",
|
|
3113
|
+
...Gr()
|
|
3109
3114
|
},
|
|
3110
3115
|
mode: "cors"
|
|
3111
3116
|
}).catch((t) => {
|
|
3112
3117
|
console.error("Failed to track: ", t);
|
|
3113
3118
|
});
|
|
3114
3119
|
}
|
|
3115
|
-
const
|
|
3120
|
+
const yu = (e) => yn({
|
|
3116
3121
|
...e,
|
|
3117
3122
|
canTrack: !0
|
|
3118
|
-
}),
|
|
3119
|
-
function
|
|
3123
|
+
}), Xi = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3124
|
+
function eo(e, t) {
|
|
3120
3125
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
3121
3126
|
return !1;
|
|
3122
3127
|
const n = new URL(t.origin), r = n.hostname;
|
|
3123
|
-
return (e ||
|
|
3128
|
+
return (e || Xi).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
3124
3129
|
}
|
|
3125
|
-
const
|
|
3126
|
-
|
|
3130
|
+
const Yi = () => {
|
|
3131
|
+
Oi("insertMenu", {
|
|
3127
3132
|
name: "_default",
|
|
3128
3133
|
default: !0,
|
|
3129
3134
|
items: [{
|
|
@@ -3146,13 +3151,13 @@ const Ji = "2.0.24", Xi = () => {
|
|
|
3146
3151
|
});
|
|
3147
3152
|
};
|
|
3148
3153
|
let Er = !1;
|
|
3149
|
-
const
|
|
3154
|
+
const to = (e = {}) => {
|
|
3150
3155
|
var t, n;
|
|
3151
3156
|
Er || (Er = !0, Y() && ((t = window.parent) == null || t.postMessage({
|
|
3152
3157
|
type: "builder.sdkInfo",
|
|
3153
3158
|
data: {
|
|
3154
|
-
target:
|
|
3155
|
-
version:
|
|
3159
|
+
target: se,
|
|
3160
|
+
version: qr,
|
|
3156
3161
|
supportsPatchUpdates: !1,
|
|
3157
3162
|
// Supports builder-model="..." attribute which is needed to
|
|
3158
3163
|
// scope our '+ add block' button styling
|
|
@@ -3166,7 +3171,7 @@ const Qr = (e = {}) => {
|
|
|
3166
3171
|
}
|
|
3167
3172
|
}, "*"), window.addEventListener("message", (r) => {
|
|
3168
3173
|
var i, s;
|
|
3169
|
-
if (!
|
|
3174
|
+
if (!eo(e.trustedHosts, r))
|
|
3170
3175
|
return;
|
|
3171
3176
|
const {
|
|
3172
3177
|
data: o
|
|
@@ -3207,12 +3212,12 @@ const Qr = (e = {}) => {
|
|
|
3207
3212
|
}
|
|
3208
3213
|
}
|
|
3209
3214
|
})));
|
|
3210
|
-
},
|
|
3215
|
+
}, no = ({
|
|
3211
3216
|
model: e,
|
|
3212
3217
|
trustedHosts: t,
|
|
3213
3218
|
callbacks: n
|
|
3214
3219
|
}) => (r) => {
|
|
3215
|
-
if (!
|
|
3220
|
+
if (!eo(t, r))
|
|
3216
3221
|
return;
|
|
3217
3222
|
const {
|
|
3218
3223
|
data: o
|
|
@@ -3233,12 +3238,12 @@ const Qr = (e = {}) => {
|
|
|
3233
3238
|
break;
|
|
3234
3239
|
}
|
|
3235
3240
|
}
|
|
3236
|
-
},
|
|
3241
|
+
}, vu = (e, t, n) => {
|
|
3237
3242
|
if (!Y)
|
|
3238
3243
|
return ie.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3239
3244
|
};
|
|
3240
|
-
|
|
3241
|
-
const r =
|
|
3245
|
+
to();
|
|
3246
|
+
const r = no({
|
|
3242
3247
|
callbacks: {
|
|
3243
3248
|
contentUpdate: t,
|
|
3244
3249
|
animation: () => {
|
|
@@ -3252,24 +3257,24 @@ const Qr = (e = {}) => {
|
|
|
3252
3257
|
return window.addEventListener("message", r), () => {
|
|
3253
3258
|
window.removeEventListener("message", r);
|
|
3254
3259
|
};
|
|
3255
|
-
},
|
|
3260
|
+
}, Zi = "builder.tests", jn = (e) => `${Zi}.${e}`, Qi = ({
|
|
3256
3261
|
contentId: e
|
|
3257
|
-
}) =>
|
|
3262
|
+
}) => _r({
|
|
3258
3263
|
name: jn(e),
|
|
3259
3264
|
canTrack: !0
|
|
3260
|
-
}),
|
|
3265
|
+
}), es = ({
|
|
3261
3266
|
contentId: e
|
|
3262
|
-
}) =>
|
|
3267
|
+
}) => zr({
|
|
3263
3268
|
name: jn(e),
|
|
3264
3269
|
canTrack: !0
|
|
3265
|
-
}),
|
|
3270
|
+
}), ts = ({
|
|
3266
3271
|
contentId: e,
|
|
3267
3272
|
value: t
|
|
3268
|
-
}) =>
|
|
3273
|
+
}) => Jr({
|
|
3269
3274
|
name: jn(e),
|
|
3270
3275
|
value: t,
|
|
3271
3276
|
canTrack: !0
|
|
3272
|
-
}),
|
|
3277
|
+
}), ro = (e) => je(e.id) && je(e.variations) && Object.keys(e.variations).length > 0, ns = ({
|
|
3273
3278
|
id: e,
|
|
3274
3279
|
variations: t
|
|
3275
3280
|
}) => {
|
|
@@ -3282,15 +3287,15 @@ const Qr = (e = {}) => {
|
|
|
3282
3287
|
return i;
|
|
3283
3288
|
}
|
|
3284
3289
|
return e;
|
|
3285
|
-
},
|
|
3286
|
-
const t =
|
|
3287
|
-
return
|
|
3290
|
+
}, oo = (e) => {
|
|
3291
|
+
const t = ns(e);
|
|
3292
|
+
return ts({
|
|
3288
3293
|
contentId: e.id,
|
|
3289
3294
|
value: t
|
|
3290
3295
|
}).catch((n) => {
|
|
3291
3296
|
ie.error("could not store A/B test variation: ", n);
|
|
3292
3297
|
}), t;
|
|
3293
|
-
},
|
|
3298
|
+
}, io = ({
|
|
3294
3299
|
item: e,
|
|
3295
3300
|
testGroupId: t
|
|
3296
3301
|
}) => {
|
|
@@ -3304,7 +3309,7 @@ const Qr = (e = {}) => {
|
|
|
3304
3309
|
testVariationId: n.id,
|
|
3305
3310
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3306
3311
|
};
|
|
3307
|
-
},
|
|
3312
|
+
}, rs = ({
|
|
3308
3313
|
item: e,
|
|
3309
3314
|
canTrack: t
|
|
3310
3315
|
}) => {
|
|
@@ -3312,14 +3317,14 @@ const Qr = (e = {}) => {
|
|
|
3312
3317
|
return e;
|
|
3313
3318
|
if (!e)
|
|
3314
3319
|
return;
|
|
3315
|
-
if (!
|
|
3320
|
+
if (!ro(e))
|
|
3316
3321
|
return e;
|
|
3317
|
-
const n =
|
|
3322
|
+
const n = es({
|
|
3318
3323
|
contentId: e.id
|
|
3319
|
-
}) ||
|
|
3324
|
+
}) || oo({
|
|
3320
3325
|
variations: e.variations,
|
|
3321
3326
|
id: e.id
|
|
3322
|
-
}), r =
|
|
3327
|
+
}), r = io({
|
|
3323
3328
|
item: e,
|
|
3324
3329
|
testGroupId: n
|
|
3325
3330
|
});
|
|
@@ -3327,18 +3332,18 @@ const Qr = (e = {}) => {
|
|
|
3327
3332
|
...e,
|
|
3328
3333
|
...r
|
|
3329
3334
|
};
|
|
3330
|
-
},
|
|
3335
|
+
}, os = async ({
|
|
3331
3336
|
item: e,
|
|
3332
3337
|
canTrack: t
|
|
3333
3338
|
}) => {
|
|
3334
|
-
if (!t || !
|
|
3339
|
+
if (!t || !ro(e))
|
|
3335
3340
|
return e;
|
|
3336
|
-
const r = await
|
|
3341
|
+
const r = await Qi({
|
|
3337
3342
|
contentId: e.id
|
|
3338
|
-
}) ||
|
|
3343
|
+
}) || oo({
|
|
3339
3344
|
variations: e.variations,
|
|
3340
3345
|
id: e.id
|
|
3341
|
-
}), o =
|
|
3346
|
+
}), o = io({
|
|
3342
3347
|
item: e,
|
|
3343
3348
|
testGroupId: r
|
|
3344
3349
|
});
|
|
@@ -3347,17 +3352,17 @@ const Qr = (e = {}) => {
|
|
|
3347
3352
|
...o
|
|
3348
3353
|
};
|
|
3349
3354
|
}, gt = (e) => je(e) ? e : !0;
|
|
3350
|
-
function
|
|
3355
|
+
function is() {
|
|
3351
3356
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
3352
3357
|
}
|
|
3353
|
-
function
|
|
3354
|
-
const e =
|
|
3358
|
+
function ss() {
|
|
3359
|
+
const e = is().fetch;
|
|
3355
3360
|
if (typeof e > "u")
|
|
3356
3361
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
3357
3362
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
3358
3363
|
return e;
|
|
3359
3364
|
}
|
|
3360
|
-
const
|
|
3365
|
+
const as = ss();
|
|
3361
3366
|
function vn(e, t = null, n = ".") {
|
|
3362
3367
|
return Object.keys(e).reduce((r, o) => {
|
|
3363
3368
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -3370,14 +3375,14 @@ function vn(e, t = null, n = ".") {
|
|
|
3370
3375
|
};
|
|
3371
3376
|
}, {});
|
|
3372
3377
|
}
|
|
3373
|
-
function
|
|
3378
|
+
function so(e, t, n = {}) {
|
|
3374
3379
|
for (const r in e) {
|
|
3375
3380
|
const o = e[r], i = t ? t + "." + r : r;
|
|
3376
|
-
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ?
|
|
3381
|
+
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ? so(o, i, n) : n[i] = o;
|
|
3377
3382
|
}
|
|
3378
3383
|
return n;
|
|
3379
3384
|
}
|
|
3380
|
-
const
|
|
3385
|
+
const ls = "v3", Ir = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Bn = (e) => {
|
|
3381
3386
|
const {
|
|
3382
3387
|
limit: t = 30,
|
|
3383
3388
|
userAttributes: n,
|
|
@@ -3386,7 +3391,7 @@ const as = "v3", Ir = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Bn = (
|
|
|
3386
3391
|
apiKey: i,
|
|
3387
3392
|
enrich: s,
|
|
3388
3393
|
locale: u,
|
|
3389
|
-
apiVersion: p =
|
|
3394
|
+
apiVersion: p = ls,
|
|
3390
3395
|
fields: g,
|
|
3391
3396
|
omit: v,
|
|
3392
3397
|
offset: h,
|
|
@@ -3408,38 +3413,45 @@ const as = "v3", Ir = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Bn = (
|
|
|
3408
3413
|
U.searchParams.set(xe, JSON.stringify(ue[xe]));
|
|
3409
3414
|
}
|
|
3410
3415
|
const A = {
|
|
3411
|
-
...
|
|
3416
|
+
...Bi(),
|
|
3412
3417
|
...Br(e.options || {})
|
|
3413
3418
|
}, Ie = vn(A);
|
|
3414
3419
|
for (const ue in Ie)
|
|
3415
3420
|
U.searchParams.set(ue, String(Ie[ue]));
|
|
3416
3421
|
if (n && U.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
3417
|
-
const ue =
|
|
3422
|
+
const ue = so({
|
|
3418
3423
|
query: r
|
|
3419
3424
|
});
|
|
3420
3425
|
for (const xe in ue)
|
|
3421
3426
|
U.searchParams.set(xe, JSON.stringify(ue[xe]));
|
|
3422
3427
|
}
|
|
3423
3428
|
return U;
|
|
3424
|
-
},
|
|
3429
|
+
}, us = (e) => "results" in e;
|
|
3425
3430
|
async function Nn(e) {
|
|
3426
|
-
const t = await
|
|
3431
|
+
const t = await ds({
|
|
3427
3432
|
...e,
|
|
3428
3433
|
limit: 1
|
|
3429
3434
|
});
|
|
3430
3435
|
return t && t[0] || null;
|
|
3431
3436
|
}
|
|
3432
|
-
const
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3437
|
+
const cs = async (e) => {
|
|
3438
|
+
var s;
|
|
3439
|
+
const t = Bn(e), n = e.fetch ?? as, r = {
|
|
3440
|
+
...e.fetchOptions,
|
|
3441
|
+
headers: {
|
|
3442
|
+
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
3443
|
+
...Gr()
|
|
3444
|
+
}
|
|
3445
|
+
};
|
|
3446
|
+
return await (await n(t.href, r)).json();
|
|
3447
|
+
}, ps = async (e, t, n = Bn(e)) => {
|
|
3436
3448
|
const r = gt(e.canTrack);
|
|
3437
|
-
if (n.search.includes("preview="), !r || !(Y() ||
|
|
3449
|
+
if (n.search.includes("preview="), !r || !(Y() || se === "reactNative"))
|
|
3438
3450
|
return t.results;
|
|
3439
3451
|
try {
|
|
3440
3452
|
const o = [];
|
|
3441
3453
|
for (const i of t.results)
|
|
3442
|
-
o.push(await
|
|
3454
|
+
o.push(await os({
|
|
3443
3455
|
item: i,
|
|
3444
3456
|
canTrack: r
|
|
3445
3457
|
}));
|
|
@@ -3449,10 +3461,10 @@ const us = async (e) => {
|
|
|
3449
3461
|
}
|
|
3450
3462
|
return t.results;
|
|
3451
3463
|
};
|
|
3452
|
-
async function
|
|
3464
|
+
async function ds(e) {
|
|
3453
3465
|
try {
|
|
3454
|
-
const t = Bn(e), n = await
|
|
3455
|
-
return
|
|
3466
|
+
const t = Bn(e), n = await cs(e);
|
|
3467
|
+
return us(n) ? ps(e, n) : (ie.error("Error fetching data. ", {
|
|
3456
3468
|
url: t,
|
|
3457
3469
|
content: n,
|
|
3458
3470
|
options: e
|
|
@@ -3461,7 +3473,7 @@ async function ps(e) {
|
|
|
3461
3473
|
return ie.error("Error fetching data. ", t), null;
|
|
3462
3474
|
}
|
|
3463
3475
|
}
|
|
3464
|
-
const
|
|
3476
|
+
const bu = async (e) => {
|
|
3465
3477
|
var r, o, i;
|
|
3466
3478
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
3467
3479
|
...e,
|
|
@@ -3481,7 +3493,7 @@ const vu = async (e) => {
|
|
|
3481
3493
|
content: await Nn(n)
|
|
3482
3494
|
};
|
|
3483
3495
|
}, Vn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
3484
|
-
function
|
|
3496
|
+
function hs(e, t, n = {}) {
|
|
3485
3497
|
let r, o, i, s = null, u = 0;
|
|
3486
3498
|
const p = function() {
|
|
3487
3499
|
u = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(r, o), s || (r = o = null);
|
|
@@ -3503,55 +3515,55 @@ function pt(e, ...t) {
|
|
|
3503
3515
|
}
|
|
3504
3516
|
return n;
|
|
3505
3517
|
}
|
|
3506
|
-
function
|
|
3518
|
+
function fs(e) {
|
|
3507
3519
|
for (const t of e)
|
|
3508
3520
|
switch (t.trigger) {
|
|
3509
3521
|
case "pageLoad":
|
|
3510
|
-
|
|
3522
|
+
uo(t);
|
|
3511
3523
|
break;
|
|
3512
3524
|
case "scrollInView":
|
|
3513
|
-
|
|
3525
|
+
gs(t);
|
|
3514
3526
|
break;
|
|
3515
3527
|
}
|
|
3516
3528
|
}
|
|
3517
|
-
function
|
|
3529
|
+
function ao(e) {
|
|
3518
3530
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
3519
3531
|
}
|
|
3520
|
-
function
|
|
3521
|
-
const n =
|
|
3532
|
+
function lo(e, t) {
|
|
3533
|
+
const n = ms(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
3522
3534
|
for (const u of s)
|
|
3523
3535
|
for (const p of n)
|
|
3524
3536
|
p in u || (u[p] = r[p]);
|
|
3525
3537
|
}
|
|
3526
|
-
function
|
|
3538
|
+
function ms(e) {
|
|
3527
3539
|
const t = [];
|
|
3528
3540
|
for (const n of e.steps)
|
|
3529
3541
|
for (const r in n.styles)
|
|
3530
3542
|
t.indexOf(r) === -1 && t.push(r);
|
|
3531
3543
|
return t;
|
|
3532
3544
|
}
|
|
3533
|
-
function
|
|
3545
|
+
function uo(e) {
|
|
3534
3546
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3535
3547
|
if (!t.length) {
|
|
3536
|
-
|
|
3548
|
+
ao(e.elementId || e.id || "");
|
|
3537
3549
|
return;
|
|
3538
3550
|
}
|
|
3539
3551
|
Array.from(t).forEach((n) => {
|
|
3540
|
-
|
|
3552
|
+
lo(e, n), n.style.transition = "none", n.style.transitionDelay = "0", pt(n.style, e.steps[0].styles), setTimeout(() => {
|
|
3541
3553
|
n.style.transition = `all ${e.duration}s ${Vn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), pt(n.style, e.steps[1].styles), setTimeout(() => {
|
|
3542
3554
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
3543
3555
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
3544
3556
|
});
|
|
3545
3557
|
});
|
|
3546
3558
|
}
|
|
3547
|
-
function
|
|
3559
|
+
function gs(e) {
|
|
3548
3560
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3549
3561
|
if (!t.length) {
|
|
3550
|
-
|
|
3562
|
+
ao(e.elementId || e.id || "");
|
|
3551
3563
|
return;
|
|
3552
3564
|
}
|
|
3553
3565
|
Array.from(t).forEach((n) => {
|
|
3554
|
-
|
|
3566
|
+
lo(e, n);
|
|
3555
3567
|
let r = !1, o = !1;
|
|
3556
3568
|
function i() {
|
|
3557
3569
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
@@ -3560,7 +3572,7 @@ function ms(e) {
|
|
|
3560
3572
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
3561
3573
|
})) : e.repeat && r && !o && !u(n) && (r = !1, pt(n.style, e.steps[0].styles));
|
|
3562
3574
|
}
|
|
3563
|
-
const s =
|
|
3575
|
+
const s = hs(i, 200, {
|
|
3564
3576
|
leading: !1
|
|
3565
3577
|
});
|
|
3566
3578
|
function u(v) {
|
|
@@ -3579,42 +3591,42 @@ function ms(e) {
|
|
|
3579
3591
|
}), i();
|
|
3580
3592
|
});
|
|
3581
3593
|
}
|
|
3582
|
-
const
|
|
3594
|
+
const co = (e) => Object.entries(e).map(([n, r]) => {
|
|
3583
3595
|
if (typeof r == "string")
|
|
3584
3596
|
return `${Vn(n)}: ${r};`;
|
|
3585
|
-
}).filter(je),
|
|
3586
|
-
`),
|
|
3597
|
+
}).filter(je), ys = (e) => co(e).join(`
|
|
3598
|
+
`), ku = ({
|
|
3587
3599
|
mediaQuery: e,
|
|
3588
3600
|
className: t,
|
|
3589
3601
|
styles: n
|
|
3590
3602
|
}) => {
|
|
3591
3603
|
const r = `.${t} {
|
|
3592
|
-
${
|
|
3604
|
+
${ys(n)}
|
|
3593
3605
|
}`;
|
|
3594
3606
|
return e ? `${e} {
|
|
3595
3607
|
${r}
|
|
3596
3608
|
}` : r;
|
|
3597
3609
|
};
|
|
3598
|
-
function
|
|
3610
|
+
function vs({
|
|
3599
3611
|
style: e
|
|
3600
3612
|
}) {
|
|
3601
3613
|
return e;
|
|
3602
3614
|
}
|
|
3603
|
-
const
|
|
3615
|
+
const Su = ({
|
|
3604
3616
|
block: e,
|
|
3605
3617
|
context: t
|
|
3606
|
-
}) =>
|
|
3618
|
+
}) => po(vs({
|
|
3607
3619
|
style: e.style || {},
|
|
3608
3620
|
context: t,
|
|
3609
3621
|
block: e
|
|
3610
3622
|
}));
|
|
3611
|
-
function
|
|
3612
|
-
switch (
|
|
3623
|
+
function po(e) {
|
|
3624
|
+
switch (se) {
|
|
3613
3625
|
case "svelte":
|
|
3614
3626
|
case "vue":
|
|
3615
3627
|
case "solid":
|
|
3616
3628
|
case "angular":
|
|
3617
|
-
return
|
|
3629
|
+
return co(e).join(" ");
|
|
3618
3630
|
case "qwik":
|
|
3619
3631
|
case "reactNative":
|
|
3620
3632
|
case "react":
|
|
@@ -3622,7 +3634,7 @@ function uo(e) {
|
|
|
3622
3634
|
return e;
|
|
3623
3635
|
}
|
|
3624
3636
|
}
|
|
3625
|
-
const
|
|
3637
|
+
const bs = ({
|
|
3626
3638
|
block: e,
|
|
3627
3639
|
registeredComponents: t
|
|
3628
3640
|
}) => {
|
|
@@ -3636,7 +3648,7 @@ const vs = ({
|
|
|
3636
3648
|
console.warn(`
|
|
3637
3649
|
Could not find a registered component named "${n}".
|
|
3638
3650
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
3639
|
-
},
|
|
3651
|
+
}, ks = ({
|
|
3640
3652
|
block: e,
|
|
3641
3653
|
context: t
|
|
3642
3654
|
}) => {
|
|
@@ -3669,59 +3681,59 @@ const vs = ({
|
|
|
3669
3681
|
},
|
|
3670
3682
|
block: r
|
|
3671
3683
|
}));
|
|
3672
|
-
},
|
|
3684
|
+
}, Ss = (e, t) => {
|
|
3673
3685
|
var n;
|
|
3674
3686
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
3675
3687
|
builderLinkComponent: t
|
|
3676
3688
|
} : {};
|
|
3677
|
-
},
|
|
3689
|
+
}, Cs = (e, t) => {
|
|
3678
3690
|
var n;
|
|
3679
3691
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
3680
3692
|
builderComponents: t
|
|
3681
3693
|
} : {};
|
|
3682
|
-
},
|
|
3694
|
+
}, ws = (e, t) => {
|
|
3683
3695
|
var n;
|
|
3684
3696
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
3685
3697
|
builderBlock: t
|
|
3686
3698
|
} : {};
|
|
3687
|
-
},
|
|
3699
|
+
}, Ts = (e, t) => {
|
|
3688
3700
|
var n;
|
|
3689
3701
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
3690
3702
|
builderContext: t
|
|
3691
3703
|
} : {};
|
|
3692
|
-
},
|
|
3704
|
+
}, Es = () => Promise.resolve().then(() => Fs).then((e) => e.default).catch((e) => {
|
|
3693
3705
|
throw console.error(
|
|
3694
3706
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3695
3707
|
e
|
|
3696
3708
|
), e;
|
|
3697
|
-
}),
|
|
3709
|
+
}), Is = () => import("./block-styles-TaCD-AEs.js").then((e) => e.default).catch((e) => {
|
|
3698
3710
|
throw console.error(
|
|
3699
3711
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3700
3712
|
e
|
|
3701
3713
|
), e;
|
|
3702
|
-
}),
|
|
3714
|
+
}), xs = () => import("./block-wrapper-dEWTROXs.js").then((e) => e.default).catch((e) => {
|
|
3703
3715
|
throw console.error(
|
|
3704
3716
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3705
3717
|
e
|
|
3706
3718
|
), e;
|
|
3707
|
-
}),
|
|
3719
|
+
}), Rs = () => import("./component-ref-s40H3oSA.js").then((e) => e.default).catch((e) => {
|
|
3708
3720
|
throw console.error(
|
|
3709
3721
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3710
3722
|
e
|
|
3711
3723
|
), e;
|
|
3712
|
-
}),
|
|
3724
|
+
}), As = () => import("./repeated-block-bCWBWRos.js").then((e) => e.default).catch((e) => {
|
|
3713
3725
|
throw console.error(
|
|
3714
3726
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3715
3727
|
e
|
|
3716
3728
|
), e;
|
|
3717
|
-
}),
|
|
3729
|
+
}), $s = j({
|
|
3718
3730
|
name: "block",
|
|
3719
3731
|
components: {
|
|
3720
|
-
BlockStyles: nt(
|
|
3721
|
-
RepeatedBlock: nt(
|
|
3722
|
-
ComponentRef: nt(
|
|
3723
|
-
BlockWrapper: nt(
|
|
3724
|
-
DynamicDiv: nt(
|
|
3732
|
+
BlockStyles: nt(Is),
|
|
3733
|
+
RepeatedBlock: nt(As),
|
|
3734
|
+
ComponentRef: nt(Rs),
|
|
3735
|
+
BlockWrapper: nt(xs),
|
|
3736
|
+
DynamicDiv: nt(Es)
|
|
3725
3737
|
},
|
|
3726
3738
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3727
3739
|
data() {
|
|
@@ -3734,7 +3746,7 @@ const vs = ({
|
|
|
3734
3746
|
},
|
|
3735
3747
|
mounted() {
|
|
3736
3748
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3737
|
-
t && e &&
|
|
3749
|
+
t && e && fs(
|
|
3738
3750
|
t.map((n) => ({
|
|
3739
3751
|
...n,
|
|
3740
3752
|
elementId: e
|
|
@@ -3745,14 +3757,14 @@ const vs = ({
|
|
|
3745
3757
|
},
|
|
3746
3758
|
computed: {
|
|
3747
3759
|
repeatItem() {
|
|
3748
|
-
return
|
|
3760
|
+
return ks({
|
|
3749
3761
|
block: this.block,
|
|
3750
3762
|
context: this.context
|
|
3751
3763
|
});
|
|
3752
3764
|
},
|
|
3753
3765
|
processedBlock() {
|
|
3754
3766
|
var t;
|
|
3755
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
3767
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Ri({
|
|
3756
3768
|
block: this.block,
|
|
3757
3769
|
localState: this.context.localState,
|
|
3758
3770
|
rootState: this.context.rootState,
|
|
@@ -3762,7 +3774,7 @@ const vs = ({
|
|
|
3762
3774
|
});
|
|
3763
3775
|
},
|
|
3764
3776
|
blockComponent() {
|
|
3765
|
-
return
|
|
3777
|
+
return bs({
|
|
3766
3778
|
block: this.processedBlock,
|
|
3767
3779
|
registeredComponents: this.registeredComponents
|
|
3768
3780
|
});
|
|
@@ -3788,11 +3800,11 @@ const vs = ({
|
|
|
3788
3800
|
blockChildren: this.processedBlock.children ?? [],
|
|
3789
3801
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
3790
3802
|
componentOptions: {
|
|
3791
|
-
...
|
|
3792
|
-
...
|
|
3793
|
-
...
|
|
3794
|
-
...
|
|
3795
|
-
...
|
|
3803
|
+
...qo(this.processedBlock),
|
|
3804
|
+
...ws(this.blockComponent, this.processedBlock),
|
|
3805
|
+
...Ts(this.blockComponent, this.context),
|
|
3806
|
+
...Ss(this.blockComponent, this.linkComponent),
|
|
3807
|
+
...Cs(
|
|
3796
3808
|
this.blockComponent,
|
|
3797
3809
|
this.registeredComponents
|
|
3798
3810
|
)
|
|
@@ -3802,12 +3814,12 @@ const vs = ({
|
|
|
3802
3814
|
registeredComponents: this.registeredComponents,
|
|
3803
3815
|
builderBlock: this.processedBlock,
|
|
3804
3816
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
3805
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
3817
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && se === "rsc")
|
|
3806
3818
|
};
|
|
3807
3819
|
}
|
|
3808
3820
|
}
|
|
3809
3821
|
});
|
|
3810
|
-
function
|
|
3822
|
+
function Ps(e, t, n, r, o, i) {
|
|
3811
3823
|
var h;
|
|
3812
3824
|
const s = D("BlockStyles"), u = D("ComponentRef"), p = D("Block", !0), g = D("BlockWrapper"), v = D("RepeatedBlock");
|
|
3813
3825
|
return e.canShowBlock ? (y(), T(z, { key: 0 }, [
|
|
@@ -3872,10 +3884,10 @@ function $s(e, t, n, r, o, i) {
|
|
|
3872
3884
|
], 64))
|
|
3873
3885
|
], 64)) : W("", !0);
|
|
3874
3886
|
}
|
|
3875
|
-
const Dn = /* @__PURE__ */ N(
|
|
3887
|
+
const Dn = /* @__PURE__ */ N($s, [["render", Ps]]), Cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3876
3888
|
__proto__: null,
|
|
3877
3889
|
default: Dn
|
|
3878
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3890
|
+
}, Symbol.toStringTag, { value: "Module" })), Os = j({
|
|
3879
3891
|
name: "builder-blocks-wrapper",
|
|
3880
3892
|
props: [
|
|
3881
3893
|
"blocks",
|
|
@@ -3901,7 +3913,7 @@ const Dn = /* @__PURE__ */ N(As, [["render", $s]]), Su = /* @__PURE__ */ Object.
|
|
|
3901
3913
|
methods: {
|
|
3902
3914
|
onClick() {
|
|
3903
3915
|
var e, t;
|
|
3904
|
-
|
|
3916
|
+
le() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
3905
3917
|
{
|
|
3906
3918
|
type: "builder.clickEmptyBlocks",
|
|
3907
3919
|
data: {
|
|
@@ -3914,7 +3926,7 @@ const Dn = /* @__PURE__ */ N(As, [["render", $s]]), Su = /* @__PURE__ */ Object.
|
|
|
3914
3926
|
},
|
|
3915
3927
|
onMouseEnter() {
|
|
3916
3928
|
var e, t;
|
|
3917
|
-
|
|
3929
|
+
le() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
3918
3930
|
{
|
|
3919
3931
|
type: "builder.hoverEmptyBlocks",
|
|
3920
3932
|
data: {
|
|
@@ -3927,7 +3939,7 @@ const Dn = /* @__PURE__ */ N(As, [["render", $s]]), Su = /* @__PURE__ */ Object.
|
|
|
3927
3939
|
}
|
|
3928
3940
|
}
|
|
3929
3941
|
});
|
|
3930
|
-
function
|
|
3942
|
+
function js(e, t, n, r, o, i) {
|
|
3931
3943
|
return y(), V(lt(e.BlocksWrapper), q({
|
|
3932
3944
|
ref: "blocksWrapperRef",
|
|
3933
3945
|
class: e.className + " component-1k2igrjdg3x",
|
|
@@ -3944,9 +3956,9 @@ function Os(e, t, n, r, o, i) {
|
|
|
3944
3956
|
_: 3
|
|
3945
3957
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3946
3958
|
}
|
|
3947
|
-
const
|
|
3959
|
+
const Bs = /* @__PURE__ */ N(Os, [["render", js], ["__scopeId", "data-v-e241e088"]]), Ns = j({
|
|
3948
3960
|
name: "builder-blocks",
|
|
3949
|
-
components: { BlocksWrapper:
|
|
3961
|
+
components: { BlocksWrapper: Bs, Block: Dn },
|
|
3950
3962
|
props: [
|
|
3951
3963
|
"blocks",
|
|
3952
3964
|
"parent",
|
|
@@ -3962,7 +3974,7 @@ const js = /* @__PURE__ */ N(Ps, [["render", Os], ["__scopeId", "data-v-e241e088
|
|
|
3962
3974
|
componentsContext: Or.key
|
|
3963
3975
|
}
|
|
3964
3976
|
});
|
|
3965
|
-
function
|
|
3977
|
+
function Vs(e, t, n, r, o, i) {
|
|
3966
3978
|
var p, g, v, h;
|
|
3967
3979
|
const s = D("Block"), u = D("BlocksWrapper");
|
|
3968
3980
|
return y(), V(u, {
|
|
@@ -3989,16 +4001,16 @@ function Ns(e, t, n, r, o, i) {
|
|
|
3989
4001
|
_: 1
|
|
3990
4002
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3991
4003
|
}
|
|
3992
|
-
const ze = /* @__PURE__ */ N(
|
|
4004
|
+
const ze = /* @__PURE__ */ N(Ns, [["render", Vs]]), Ds = j({
|
|
3993
4005
|
name: "dynamic-div",
|
|
3994
4006
|
props: []
|
|
3995
4007
|
});
|
|
3996
|
-
function
|
|
4008
|
+
function Us(e, t, n, r, o, i) {
|
|
3997
4009
|
return y(), T("div", null, [
|
|
3998
4010
|
de(e.$slots, "default")
|
|
3999
4011
|
]);
|
|
4000
4012
|
}
|
|
4001
|
-
const kt = /* @__PURE__ */ N(
|
|
4013
|
+
const kt = /* @__PURE__ */ N(Ds, [["render", Us]]), Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4002
4014
|
__proto__: null,
|
|
4003
4015
|
default: kt
|
|
4004
4016
|
}, Symbol.toStringTag, { value: "Module" })), Un = j({
|
|
@@ -4011,7 +4023,7 @@ const kt = /* @__PURE__ */ N(Vs, [["render", Ds]]), Us = /* @__PURE__ */ Object.
|
|
|
4011
4023
|
},
|
|
4012
4024
|
name: "inlined-styles",
|
|
4013
4025
|
props: ["styles", "id", "nonce"]
|
|
4014
|
-
}),
|
|
4026
|
+
}), ho = {
|
|
4015
4027
|
small: {
|
|
4016
4028
|
min: 320,
|
|
4017
4029
|
default: 321,
|
|
@@ -4027,11 +4039,11 @@ const kt = /* @__PURE__ */ N(Vs, [["render", Ds]]), Us = /* @__PURE__ */ Object.
|
|
|
4027
4039
|
default: 991,
|
|
4028
4040
|
max: 1200
|
|
4029
4041
|
}
|
|
4030
|
-
},
|
|
4042
|
+
}, wu = (e, t = ho) => `@media (max-width: ${t[e].max}px)`, Ws = ({
|
|
4031
4043
|
small: e,
|
|
4032
4044
|
medium: t
|
|
4033
4045
|
}) => {
|
|
4034
|
-
const n = On(
|
|
4046
|
+
const n = On(ho);
|
|
4035
4047
|
if (!e || !t)
|
|
4036
4048
|
return n;
|
|
4037
4049
|
const r = Math.floor(e / 2);
|
|
@@ -4053,7 +4065,7 @@ const kt = /* @__PURE__ */ N(Vs, [["render", Ds]]), Us = /* @__PURE__ */ Object.
|
|
|
4053
4065
|
min: i,
|
|
4054
4066
|
default: i + 1
|
|
4055
4067
|
}, n;
|
|
4056
|
-
},
|
|
4068
|
+
}, Ms = (e) => `builder-columns ${e}-breakpoints`, Ls = j({
|
|
4057
4069
|
name: "builder-columns",
|
|
4058
4070
|
components: {
|
|
4059
4071
|
InlinedStyles: Un,
|
|
@@ -4077,8 +4089,8 @@ const kt = /* @__PURE__ */ N(Vs, [["render", Ds]]), Us = /* @__PURE__ */ Object.
|
|
|
4077
4089
|
cols: this.columns || [],
|
|
4078
4090
|
stackAt: this.stackColumnsAt || "tablet",
|
|
4079
4091
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
4080
|
-
TARGET:
|
|
4081
|
-
getColumnsClass:
|
|
4092
|
+
TARGET: se,
|
|
4093
|
+
getColumnsClass: Ms
|
|
4082
4094
|
};
|
|
4083
4095
|
},
|
|
4084
4096
|
methods: {
|
|
@@ -4144,7 +4156,7 @@ const kt = /* @__PURE__ */ N(Vs, [["render", Ds]]), Us = /* @__PURE__ */ Object.
|
|
|
4144
4156
|
},
|
|
4145
4157
|
getWidthForBreakpointSize(e) {
|
|
4146
4158
|
var n, r;
|
|
4147
|
-
return
|
|
4159
|
+
return Ws(
|
|
4148
4160
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
4149
4161
|
)[e].max;
|
|
4150
4162
|
},
|
|
@@ -4182,12 +4194,12 @@ const kt = /* @__PURE__ */ N(Vs, [["render", Ds]]), Us = /* @__PURE__ */ Object.
|
|
|
4182
4194
|
href: e.link
|
|
4183
4195
|
} : {},
|
|
4184
4196
|
[Pt()]: "builder-column",
|
|
4185
|
-
style:
|
|
4197
|
+
style: po(this.columnCssVars(t))
|
|
4186
4198
|
};
|
|
4187
4199
|
}
|
|
4188
4200
|
}
|
|
4189
4201
|
});
|
|
4190
|
-
function
|
|
4202
|
+
function Hs(e, t, n, r, o, i) {
|
|
4191
4203
|
var g;
|
|
4192
4204
|
const s = D("InlinedStyles"), u = D("Blocks"), p = D("DynamicRenderer");
|
|
4193
4205
|
return y(), T("div", q({
|
|
@@ -4223,24 +4235,24 @@ function Ls(e, t, n, r, o, i) {
|
|
|
4223
4235
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4224
4236
|
], 16);
|
|
4225
4237
|
}
|
|
4226
|
-
const
|
|
4238
|
+
const Ks = /* @__PURE__ */ N(Ls, [["render", Hs], ["__scopeId", "data-v-adc066fc"]]), qs = j({
|
|
4227
4239
|
name: "builder-fragment-component",
|
|
4228
4240
|
props: []
|
|
4229
4241
|
});
|
|
4230
|
-
function
|
|
4242
|
+
function Gs(e, t, n, r, o, i) {
|
|
4231
4243
|
return y(), T("span", null, [
|
|
4232
4244
|
de(e.$slots, "default")
|
|
4233
4245
|
]);
|
|
4234
4246
|
}
|
|
4235
|
-
const
|
|
4247
|
+
const zs = /* @__PURE__ */ N(qs, [["render", Gs]]);
|
|
4236
4248
|
function xr(e) {
|
|
4237
4249
|
return e.replace(/http(s)?:/, "");
|
|
4238
4250
|
}
|
|
4239
|
-
function
|
|
4251
|
+
function _s(e = "", t, n) {
|
|
4240
4252
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
4241
4253
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
4242
4254
|
}
|
|
4243
|
-
function
|
|
4255
|
+
function Js(e, t) {
|
|
4244
4256
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
4245
4257
|
return e;
|
|
4246
4258
|
if (t === "master")
|
|
@@ -4259,11 +4271,11 @@ function an(e) {
|
|
|
4259
4271
|
if (e.match(/builder\.io/)) {
|
|
4260
4272
|
let n = e;
|
|
4261
4273
|
const r = Number(e.split("?width=")[1]);
|
|
4262
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
4274
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${_s(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
4263
4275
|
}
|
|
4264
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
4276
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Js(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
4265
4277
|
}
|
|
4266
|
-
const
|
|
4278
|
+
const Xs = j({
|
|
4267
4279
|
name: "builder-image",
|
|
4268
4280
|
props: [
|
|
4269
4281
|
"image",
|
|
@@ -4314,11 +4326,11 @@ const Js = j({
|
|
|
4314
4326
|
return this.aspectRatio ? e : void 0;
|
|
4315
4327
|
}
|
|
4316
4328
|
}
|
|
4317
|
-
}),
|
|
4329
|
+
}), Ys = ["srcset"], Zs = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], Qs = {
|
|
4318
4330
|
key: 2,
|
|
4319
4331
|
class: "div-29wpyomtntv-2"
|
|
4320
4332
|
};
|
|
4321
|
-
function
|
|
4333
|
+
function ea(e, t, n, r, o, i) {
|
|
4322
4334
|
var s, u, p, g, v, h;
|
|
4323
4335
|
return y(), T(z, null, [
|
|
4324
4336
|
dt("picture", null, [
|
|
@@ -4326,7 +4338,7 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4326
4338
|
key: 0,
|
|
4327
4339
|
type: "image/webp",
|
|
4328
4340
|
srcset: e.webpSrcSet
|
|
4329
|
-
}, null, 8,
|
|
4341
|
+
}, null, 8, Ys)) : W("", !0),
|
|
4330
4342
|
dt("img", {
|
|
4331
4343
|
loading: e.highPriority ? "eager" : "lazy",
|
|
4332
4344
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -4343,7 +4355,7 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4343
4355
|
src: e.image,
|
|
4344
4356
|
srcset: e.srcSetToUse,
|
|
4345
4357
|
sizes: e.sizes
|
|
4346
|
-
}, null, 14,
|
|
4358
|
+
}, null, 14, Zs)
|
|
4347
4359
|
]),
|
|
4348
4360
|
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (y(), T("div", {
|
|
4349
4361
|
key: 0,
|
|
@@ -4353,19 +4365,19 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4353
4365
|
})
|
|
4354
4366
|
}, null, 4)) : W("", !0),
|
|
4355
4367
|
(g = (p = e.builderBlock) == null ? void 0 : p.children) != null && g.length && e.fitContent ? de(e.$slots, "default", { key: 1 }, void 0, !0) : W("", !0),
|
|
4356
|
-
!e.fitContent && ((h = (v = e.builderBlock) == null ? void 0 : v.children) != null && h.length) ? (y(), T("div",
|
|
4368
|
+
!e.fitContent && ((h = (v = e.builderBlock) == null ? void 0 : v.children) != null && h.length) ? (y(), T("div", Qs, [
|
|
4357
4369
|
de(e.$slots, "default", {}, void 0, !0)
|
|
4358
4370
|
])) : W("", !0)
|
|
4359
4371
|
], 64);
|
|
4360
4372
|
}
|
|
4361
|
-
const
|
|
4373
|
+
const ta = /* @__PURE__ */ N(Xs, [["render", ea], ["__scopeId", "data-v-77f8a6c4"]]), na = j({
|
|
4362
4374
|
name: "builder-section-component",
|
|
4363
4375
|
props: ["attributes", "maxWidth"],
|
|
4364
4376
|
data() {
|
|
4365
4377
|
return { filterAttrs: me };
|
|
4366
4378
|
}
|
|
4367
4379
|
});
|
|
4368
|
-
function
|
|
4380
|
+
function ra(e, t, n, r, o, i) {
|
|
4369
4381
|
return y(), T("section", q({
|
|
4370
4382
|
style: {
|
|
4371
4383
|
width: "100%",
|
|
@@ -4383,7 +4395,7 @@ function na(e, t, n, r, o, i) {
|
|
|
4383
4395
|
de(e.$slots, "default")
|
|
4384
4396
|
], 16);
|
|
4385
4397
|
}
|
|
4386
|
-
const
|
|
4398
|
+
const oa = /* @__PURE__ */ N(na, [["render", ra]]), ln = {
|
|
4387
4399
|
"@type": "@builder.io/sdk:Element",
|
|
4388
4400
|
layerName: "Accordion item title",
|
|
4389
4401
|
responsiveStyles: {
|
|
@@ -4443,7 +4455,7 @@ const ra = /* @__PURE__ */ N(ta, [["render", na]]), ln = {
|
|
|
4443
4455
|
}
|
|
4444
4456
|
}
|
|
4445
4457
|
}]
|
|
4446
|
-
},
|
|
4458
|
+
}, ia = {
|
|
4447
4459
|
name: "Builder:Accordion",
|
|
4448
4460
|
canHaveChildren: !0,
|
|
4449
4461
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -4507,7 +4519,7 @@ const ra = /* @__PURE__ */ N(ta, [["render", na]]), ln = {
|
|
|
4507
4519
|
builderComponents: !0,
|
|
4508
4520
|
builderLinkComponent: !0
|
|
4509
4521
|
}
|
|
4510
|
-
},
|
|
4522
|
+
}, sa = (e) => e.toString(), aa = j({
|
|
4511
4523
|
name: "builder-accordion",
|
|
4512
4524
|
components: { Blocks: ze },
|
|
4513
4525
|
props: [
|
|
@@ -4521,7 +4533,7 @@ const ra = /* @__PURE__ */ N(ta, [["render", na]]), ln = {
|
|
|
4521
4533
|
"builderLinkComponent"
|
|
4522
4534
|
],
|
|
4523
4535
|
data() {
|
|
4524
|
-
return { open: [], convertOrderNumberToString:
|
|
4536
|
+
return { open: [], convertOrderNumberToString: sa };
|
|
4525
4537
|
},
|
|
4526
4538
|
computed: {
|
|
4527
4539
|
onlyOneAtATime() {
|
|
@@ -4602,8 +4614,8 @@ const ra = /* @__PURE__ */ N(ta, [["render", na]]), ln = {
|
|
|
4602
4614
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
4603
4615
|
}
|
|
4604
4616
|
}
|
|
4605
|
-
}),
|
|
4606
|
-
function
|
|
4617
|
+
}), la = ["data-index", "onClick"];
|
|
4618
|
+
function ua(e, t, n, r, o, i) {
|
|
4607
4619
|
const s = D("Blocks");
|
|
4608
4620
|
return y(), T("div", {
|
|
4609
4621
|
class: "builder-accordion",
|
|
@@ -4628,7 +4640,7 @@ function la(e, t, n, r, o, i) {
|
|
|
4628
4640
|
registeredComponents: e.builderComponents,
|
|
4629
4641
|
linkComponent: e.builderLinkComponent
|
|
4630
4642
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
4631
|
-
], 14,
|
|
4643
|
+
], 14, la),
|
|
4632
4644
|
e.open.includes(p) ? (y(), T("div", {
|
|
4633
4645
|
key: 0,
|
|
4634
4646
|
class: ht(e.getAccordionDetailClassName(p)),
|
|
@@ -4646,7 +4658,7 @@ function la(e, t, n, r, o, i) {
|
|
|
4646
4658
|
], 64))), 128))
|
|
4647
4659
|
], 4);
|
|
4648
4660
|
}
|
|
4649
|
-
const
|
|
4661
|
+
const ca = /* @__PURE__ */ N(aa, [["render", ua]]), pa = {
|
|
4650
4662
|
name: "Core:Button",
|
|
4651
4663
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
4652
4664
|
defaultStyles: {
|
|
@@ -4682,7 +4694,7 @@ const ua = /* @__PURE__ */ N(sa, [["render", la]]), ca = {
|
|
|
4682
4694
|
shouldReceiveBuilderProps: {
|
|
4683
4695
|
builderLinkComponent: !0
|
|
4684
4696
|
}
|
|
4685
|
-
},
|
|
4697
|
+
}, da = {
|
|
4686
4698
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
4687
4699
|
name: "Columns",
|
|
4688
4700
|
isRSC: !0,
|
|
@@ -4889,13 +4901,13 @@ const ua = /* @__PURE__ */ N(sa, [["render", la]]), ca = {
|
|
|
4889
4901
|
builderComponents: !0,
|
|
4890
4902
|
builderLinkComponent: !0
|
|
4891
4903
|
}
|
|
4892
|
-
},
|
|
4904
|
+
}, ha = {
|
|
4893
4905
|
name: "Fragment",
|
|
4894
4906
|
static: !0,
|
|
4895
4907
|
hidden: !0,
|
|
4896
4908
|
canHaveChildren: !0,
|
|
4897
4909
|
noWrap: !0
|
|
4898
|
-
},
|
|
4910
|
+
}, fa = {
|
|
4899
4911
|
name: "Image",
|
|
4900
4912
|
static: !0,
|
|
4901
4913
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -5003,7 +5015,7 @@ const ua = /* @__PURE__ */ N(sa, [["render", la]]), ca = {
|
|
|
5003
5015
|
shouldReceiveBuilderProps: {
|
|
5004
5016
|
builderBlock: !0
|
|
5005
5017
|
}
|
|
5006
|
-
},
|
|
5018
|
+
}, ma = {
|
|
5007
5019
|
name: "Core:Section",
|
|
5008
5020
|
static: !0,
|
|
5009
5021
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -5042,7 +5054,7 @@ const ua = /* @__PURE__ */ N(sa, [["render", la]]), ca = {
|
|
|
5042
5054
|
}
|
|
5043
5055
|
}
|
|
5044
5056
|
}]
|
|
5045
|
-
},
|
|
5057
|
+
}, ga = {
|
|
5046
5058
|
name: "Slot",
|
|
5047
5059
|
isRSC: !0,
|
|
5048
5060
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -5059,12 +5071,12 @@ const ua = /* @__PURE__ */ N(sa, [["render", la]]), ca = {
|
|
|
5059
5071
|
builderContext: !0,
|
|
5060
5072
|
builderComponents: !0
|
|
5061
5073
|
}
|
|
5062
|
-
},
|
|
5074
|
+
}, ya = j({
|
|
5063
5075
|
name: "builder-slot",
|
|
5064
5076
|
components: { Blocks: ze },
|
|
5065
5077
|
props: ["builderContext", "name", "builderComponents"]
|
|
5066
5078
|
});
|
|
5067
|
-
function
|
|
5079
|
+
function va(e, t, n, r, o, i) {
|
|
5068
5080
|
var u, p, g;
|
|
5069
5081
|
const s = D("Blocks");
|
|
5070
5082
|
return y(), T("div", q(
|
|
@@ -5084,7 +5096,7 @@ function ya(e, t, n, r, o, i) {
|
|
|
5084
5096
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
5085
5097
|
], 16);
|
|
5086
5098
|
}
|
|
5087
|
-
const
|
|
5099
|
+
const ba = /* @__PURE__ */ N(ya, [["render", va]]), ka = {
|
|
5088
5100
|
name: "Symbol",
|
|
5089
5101
|
noWrap: !0,
|
|
5090
5102
|
static: !0,
|
|
@@ -5161,7 +5173,7 @@ const va = /* @__PURE__ */ N(ga, [["render", ya]]), ba = {
|
|
|
5161
5173
|
text: "New tab content "
|
|
5162
5174
|
}
|
|
5163
5175
|
}
|
|
5164
|
-
},
|
|
5176
|
+
}, Sa = {
|
|
5165
5177
|
name: "Builder: Tabs",
|
|
5166
5178
|
inputs: [{
|
|
5167
5179
|
name: "tabs",
|
|
@@ -5264,7 +5276,7 @@ const va = /* @__PURE__ */ N(ga, [["render", ya]]), ba = {
|
|
|
5264
5276
|
builderComponents: !0,
|
|
5265
5277
|
builderLinkComponent: !0
|
|
5266
5278
|
}
|
|
5267
|
-
},
|
|
5279
|
+
}, Ca = j({
|
|
5268
5280
|
name: "builder-tabs",
|
|
5269
5281
|
components: { Blocks: ze },
|
|
5270
5282
|
props: [
|
|
@@ -5289,8 +5301,8 @@ const va = /* @__PURE__ */ N(ga, [["render", ya]]), ba = {
|
|
|
5289
5301
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
5290
5302
|
}
|
|
5291
5303
|
}
|
|
5292
|
-
}),
|
|
5293
|
-
function
|
|
5304
|
+
}), wa = ["onClick"], Ta = { key: 0 };
|
|
5305
|
+
function Ea(e, t, n, r, o, i) {
|
|
5294
5306
|
const s = D("Blocks");
|
|
5295
5307
|
return y(), T("div", null, [
|
|
5296
5308
|
dt("div", {
|
|
@@ -5318,9 +5330,9 @@ function Ta(e, t, n, r, o, i) {
|
|
|
5318
5330
|
registeredComponents: e.builderComponents,
|
|
5319
5331
|
linkComponent: e.builderLinkComponent
|
|
5320
5332
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
5321
|
-
], 14,
|
|
5333
|
+
], 14, wa))), 128))
|
|
5322
5334
|
], 4),
|
|
5323
|
-
e.activeTabContent(e.activeTab) ? (y(), T("div",
|
|
5335
|
+
e.activeTabContent(e.activeTab) ? (y(), T("div", Ta, [
|
|
5324
5336
|
oe(s, {
|
|
5325
5337
|
parent: e.builderBlock.id,
|
|
5326
5338
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -5332,7 +5344,7 @@ function Ta(e, t, n, r, o, i) {
|
|
|
5332
5344
|
])) : W("", !0)
|
|
5333
5345
|
]);
|
|
5334
5346
|
}
|
|
5335
|
-
const
|
|
5347
|
+
const Ia = /* @__PURE__ */ N(Ca, [["render", Ea]]), xa = {
|
|
5336
5348
|
shouldReceiveBuilderProps: {
|
|
5337
5349
|
builderBlock: !1,
|
|
5338
5350
|
builderContext: !0
|
|
@@ -5354,7 +5366,7 @@ const Ea = /* @__PURE__ */ N(Sa, [["render", Ta]]), Ia = {
|
|
|
5354
5366
|
height: "auto",
|
|
5355
5367
|
textAlign: "center"
|
|
5356
5368
|
}
|
|
5357
|
-
},
|
|
5369
|
+
}, Ra = j({
|
|
5358
5370
|
name: "builder-text",
|
|
5359
5371
|
props: ["builderContext", "text"],
|
|
5360
5372
|
computed: {
|
|
@@ -5378,17 +5390,17 @@ const Ea = /* @__PURE__ */ N(Sa, [["render", Ta]]), Ia = {
|
|
|
5378
5390
|
);
|
|
5379
5391
|
}
|
|
5380
5392
|
}
|
|
5381
|
-
}),
|
|
5382
|
-
function
|
|
5393
|
+
}), Aa = ["innerHTML"];
|
|
5394
|
+
function $a(e, t, n, r, o, i) {
|
|
5383
5395
|
return y(), T("div", {
|
|
5384
5396
|
class: "builder-text",
|
|
5385
5397
|
innerHTML: e.processedText,
|
|
5386
5398
|
style: {
|
|
5387
5399
|
outline: "none"
|
|
5388
5400
|
}
|
|
5389
|
-
}, null, 8,
|
|
5401
|
+
}, null, 8, Aa);
|
|
5390
5402
|
}
|
|
5391
|
-
const
|
|
5403
|
+
const Pa = /* @__PURE__ */ N(Ra, [["render", $a]]), Oa = {
|
|
5392
5404
|
name: "Custom Code",
|
|
5393
5405
|
static: !0,
|
|
5394
5406
|
requiredPermissions: ["editCode"],
|
|
@@ -5410,7 +5422,7 @@ const $a = /* @__PURE__ */ N(xa, [["render", Aa]]), Pa = {
|
|
|
5410
5422
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
5411
5423
|
advanced: !0
|
|
5412
5424
|
}]
|
|
5413
|
-
},
|
|
5425
|
+
}, ja = j({
|
|
5414
5426
|
name: "builder-custom-code",
|
|
5415
5427
|
props: ["replaceNodes", "code"],
|
|
5416
5428
|
data() {
|
|
@@ -5444,15 +5456,15 @@ const $a = /* @__PURE__ */ N(xa, [["render", Aa]]), Pa = {
|
|
|
5444
5456
|
}
|
|
5445
5457
|
}
|
|
5446
5458
|
}
|
|
5447
|
-
}),
|
|
5448
|
-
function
|
|
5459
|
+
}), Ba = ["innerHTML"];
|
|
5460
|
+
function Na(e, t, n, r, o, i) {
|
|
5449
5461
|
return y(), T("div", {
|
|
5450
5462
|
ref: "elementRef",
|
|
5451
5463
|
class: ht("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
5452
5464
|
innerHTML: e.code
|
|
5453
|
-
}, null, 10,
|
|
5465
|
+
}, null, 10, Ba);
|
|
5454
5466
|
}
|
|
5455
|
-
const
|
|
5467
|
+
const Va = /* @__PURE__ */ N(ja, [["render", Na]]), Da = {
|
|
5456
5468
|
name: "Embed",
|
|
5457
5469
|
static: !0,
|
|
5458
5470
|
inputs: [{
|
|
@@ -5467,7 +5479,7 @@ const Na = /* @__PURE__ */ N(Oa, [["render", Ba]]), Va = {
|
|
|
5467
5479
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
5468
5480
|
hideFromUI: !0
|
|
5469
5481
|
}]
|
|
5470
|
-
},
|
|
5482
|
+
}, Ua = ["text/javascript", "application/javascript", "application/ecmascript"], Fa = (e) => Ua.includes(e.type), Wa = j({
|
|
5471
5483
|
name: "builder-embed",
|
|
5472
5484
|
props: ["content"],
|
|
5473
5485
|
data() {
|
|
@@ -5500,7 +5512,7 @@ const Na = /* @__PURE__ */ N(Oa, [["render", Ba]]), Va = {
|
|
|
5500
5512
|
this.scriptsInserted.push(n.src);
|
|
5501
5513
|
const r = document.createElement("script");
|
|
5502
5514
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
5503
|
-
} else if (
|
|
5515
|
+
} else if (Fa(n) && !this.scriptsRun.includes(n.innerText))
|
|
5504
5516
|
try {
|
|
5505
5517
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
5506
5518
|
} catch (r) {
|
|
@@ -5509,15 +5521,15 @@ const Na = /* @__PURE__ */ N(Oa, [["render", Ba]]), Va = {
|
|
|
5509
5521
|
}
|
|
5510
5522
|
}
|
|
5511
5523
|
}
|
|
5512
|
-
}),
|
|
5513
|
-
function
|
|
5524
|
+
}), Ma = ["innerHTML"];
|
|
5525
|
+
function La(e, t, n, r, o, i) {
|
|
5514
5526
|
return y(), T("div", {
|
|
5515
5527
|
class: "builder-embed",
|
|
5516
5528
|
ref: "elem",
|
|
5517
5529
|
innerHTML: e.content
|
|
5518
|
-
}, null, 8,
|
|
5530
|
+
}, null, 8, Ma);
|
|
5519
5531
|
}
|
|
5520
|
-
const
|
|
5532
|
+
const Ha = /* @__PURE__ */ N(Wa, [["render", La]]), Ka = {
|
|
5521
5533
|
name: "Form:Form",
|
|
5522
5534
|
// editableTags: ['builder-form-error']
|
|
5523
5535
|
defaults: {
|
|
@@ -5754,10 +5766,10 @@ const La = /* @__PURE__ */ N(Fa, [["render", Ma]]), Ha = {
|
|
|
5754
5766
|
builderComponents: !0,
|
|
5755
5767
|
builderLinkComponent: !0
|
|
5756
5768
|
}
|
|
5757
|
-
},
|
|
5769
|
+
}, qa = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ga = () => {
|
|
5758
5770
|
const e = process.env.NODE_ENV || "production";
|
|
5759
|
-
return
|
|
5760
|
-
},
|
|
5771
|
+
return qa.includes(e) ? e : "production";
|
|
5772
|
+
}, za = j({
|
|
5761
5773
|
name: "builder-form-component",
|
|
5762
5774
|
components: { Block: Dn, Blocks: ze },
|
|
5763
5775
|
props: [
|
|
@@ -5801,7 +5813,7 @@ const La = /* @__PURE__ */ N(Fa, [["render", Ma]]), Ha = {
|
|
|
5801
5813
|
this.builderContext.rootSetState ? (r = (n = this.builderContext).rootSetState) == null || r.call(n, t) : this.builderContext.rootState = t;
|
|
5802
5814
|
},
|
|
5803
5815
|
submissionState() {
|
|
5804
|
-
return
|
|
5816
|
+
return le() && this.previewState || this.formState;
|
|
5805
5817
|
},
|
|
5806
5818
|
onSubmit(e) {
|
|
5807
5819
|
var n;
|
|
@@ -5860,7 +5872,7 @@ const La = /* @__PURE__ */ N(Fa, [["render", Ma]]), Ha = {
|
|
|
5860
5872
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented))
|
|
5861
5873
|
return;
|
|
5862
5874
|
this.formState = "sending";
|
|
5863
|
-
const v = `${
|
|
5875
|
+
const v = `${Ga() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
5864
5876
|
this.sendSubmissionsToEmail || ""
|
|
5865
5877
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
5866
5878
|
fetch(
|
|
@@ -5916,11 +5928,11 @@ const La = /* @__PURE__ */ N(Fa, [["render", Ma]]), Ha = {
|
|
|
5916
5928
|
}
|
|
5917
5929
|
}
|
|
5918
5930
|
}
|
|
5919
|
-
}),
|
|
5931
|
+
}), _a = ["validate", "action", "method", "name"], Ja = {
|
|
5920
5932
|
key: 3,
|
|
5921
5933
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
5922
5934
|
};
|
|
5923
|
-
function
|
|
5935
|
+
function Xa(e, t, n, r, o, i) {
|
|
5924
5936
|
var p;
|
|
5925
5937
|
const s = D("Block"), u = D("Blocks");
|
|
5926
5938
|
return y(), T("form", q({
|
|
@@ -5950,16 +5962,16 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5950
5962
|
blocks: e.sendingMessage,
|
|
5951
5963
|
context: e.builderContext
|
|
5952
5964
|
}, null, 8, ["blocks", "context"])) : W("", !0),
|
|
5953
|
-
e.submissionState() === "error" && e.responseData ? (y(), T("pre",
|
|
5965
|
+
e.submissionState() === "error" && e.responseData ? (y(), T("pre", Ja, jt(JSON.stringify(e.responseData, null, 2)), 1)) : W("", !0),
|
|
5954
5966
|
e.submissionState() === "success" ? (y(), V(u, {
|
|
5955
5967
|
key: 4,
|
|
5956
5968
|
path: "successMessage",
|
|
5957
5969
|
blocks: e.successMessage,
|
|
5958
5970
|
context: e.builderContext
|
|
5959
5971
|
}, null, 8, ["blocks", "context"])) : W("", !0)
|
|
5960
|
-
], 16,
|
|
5972
|
+
], 16, _a);
|
|
5961
5973
|
}
|
|
5962
|
-
const
|
|
5974
|
+
const Ya = /* @__PURE__ */ N(za, [["render", Xa], ["__scopeId", "data-v-6e18f21b"]]), Za = {
|
|
5963
5975
|
name: "Form:Input",
|
|
5964
5976
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
5965
5977
|
inputs: [
|
|
@@ -6010,7 +6022,7 @@ const Xa = /* @__PURE__ */ N(Ga, [["render", Ja], ["__scopeId", "data-v-6e18f21b
|
|
|
6010
6022
|
borderStyle: "solid",
|
|
6011
6023
|
borderColor: "#ccc"
|
|
6012
6024
|
}
|
|
6013
|
-
},
|
|
6025
|
+
}, Qa = j({
|
|
6014
6026
|
name: "builder-form-input-component",
|
|
6015
6027
|
props: [
|
|
6016
6028
|
"attributes",
|
|
@@ -6022,10 +6034,10 @@ const Xa = /* @__PURE__ */ N(Ga, [["render", Ja], ["__scopeId", "data-v-6e18f21b
|
|
|
6022
6034
|
"required"
|
|
6023
6035
|
],
|
|
6024
6036
|
data() {
|
|
6025
|
-
return { isEditing:
|
|
6037
|
+
return { isEditing: le, filterAttrs: me };
|
|
6026
6038
|
}
|
|
6027
|
-
}),
|
|
6028
|
-
function
|
|
6039
|
+
}), el = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6040
|
+
function tl(e, t, n, r, o, i) {
|
|
6029
6041
|
return y(), T("input", q({
|
|
6030
6042
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6031
6043
|
placeholder: e.placeholder,
|
|
@@ -6034,9 +6046,9 @@ function el(e, t, n, r, o, i) {
|
|
|
6034
6046
|
value: e.value,
|
|
6035
6047
|
defaultValue: e.defaultValue,
|
|
6036
6048
|
required: e.required
|
|
6037
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6049
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, el);
|
|
6038
6050
|
}
|
|
6039
|
-
const
|
|
6051
|
+
const nl = /* @__PURE__ */ N(Qa, [["render", tl]]), rl = {
|
|
6040
6052
|
name: "Form:Select",
|
|
6041
6053
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
6042
6054
|
defaultStyles: {
|
|
@@ -6078,14 +6090,14 @@ const tl = /* @__PURE__ */ N(Za, [["render", el]]), nl = {
|
|
|
6078
6090
|
}],
|
|
6079
6091
|
static: !0,
|
|
6080
6092
|
noWrap: !0
|
|
6081
|
-
},
|
|
6093
|
+
}, ol = j({
|
|
6082
6094
|
name: "builder-select-component",
|
|
6083
6095
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
6084
6096
|
data() {
|
|
6085
|
-
return { isEditing:
|
|
6097
|
+
return { isEditing: le, filterAttrs: me };
|
|
6086
6098
|
}
|
|
6087
|
-
}),
|
|
6088
|
-
function
|
|
6099
|
+
}), il = ["value", "defaultValue", "name", "required"], sl = ["value"];
|
|
6100
|
+
function al(e, t, n, r, o, i) {
|
|
6089
6101
|
return y(), T("select", q({
|
|
6090
6102
|
value: e.value,
|
|
6091
6103
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -6096,10 +6108,10 @@ function sl(e, t, n, r, o, i) {
|
|
|
6096
6108
|
(y(!0), T(z, null, fe(e.options, (s, u) => (y(), T("option", {
|
|
6097
6109
|
key: `${s.name}-${u}`,
|
|
6098
6110
|
value: s.value
|
|
6099
|
-
}, jt(s.name || s.value), 9,
|
|
6100
|
-
], 16,
|
|
6111
|
+
}, jt(s.name || s.value), 9, sl))), 128))
|
|
6112
|
+
], 16, il);
|
|
6101
6113
|
}
|
|
6102
|
-
const
|
|
6114
|
+
const ll = /* @__PURE__ */ N(ol, [["render", al]]), ul = {
|
|
6103
6115
|
name: "Form:SubmitButton",
|
|
6104
6116
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
6105
6117
|
defaultStyles: {
|
|
@@ -6124,17 +6136,17 @@ const al = /* @__PURE__ */ N(rl, [["render", sl]]), ll = {
|
|
|
6124
6136
|
// that only shows if advanced setting is flipped
|
|
6125
6137
|
// TODO: defaultChildren
|
|
6126
6138
|
// canHaveChildren: true,
|
|
6127
|
-
},
|
|
6139
|
+
}, cl = j({
|
|
6128
6140
|
name: "builder-submit-button",
|
|
6129
6141
|
props: ["attributes", "text"],
|
|
6130
6142
|
data() {
|
|
6131
6143
|
return { filterAttrs: me };
|
|
6132
6144
|
}
|
|
6133
6145
|
});
|
|
6134
|
-
function
|
|
6146
|
+
function pl(e, t, n, r, o, i) {
|
|
6135
6147
|
return y(), T("button", q({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), jt(e.text), 17);
|
|
6136
6148
|
}
|
|
6137
|
-
const
|
|
6149
|
+
const dl = /* @__PURE__ */ N(cl, [["render", pl]]), hl = {
|
|
6138
6150
|
name: "Form:TextArea",
|
|
6139
6151
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
6140
6152
|
inputs: [{
|
|
@@ -6170,7 +6182,7 @@ const pl = /* @__PURE__ */ N(ul, [["render", cl]]), dl = {
|
|
|
6170
6182
|
},
|
|
6171
6183
|
static: !0,
|
|
6172
6184
|
noWrap: !0
|
|
6173
|
-
},
|
|
6185
|
+
}, fl = j({
|
|
6174
6186
|
name: "builder-textarea",
|
|
6175
6187
|
props: [
|
|
6176
6188
|
"attributes",
|
|
@@ -6183,17 +6195,17 @@ const pl = /* @__PURE__ */ N(ul, [["render", cl]]), dl = {
|
|
|
6183
6195
|
data() {
|
|
6184
6196
|
return { filterAttrs: me };
|
|
6185
6197
|
}
|
|
6186
|
-
}),
|
|
6187
|
-
function
|
|
6198
|
+
}), ml = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
6199
|
+
function gl(e, t, n, r, o, i) {
|
|
6188
6200
|
return y(), T("textarea", q({
|
|
6189
6201
|
placeholder: e.placeholder,
|
|
6190
6202
|
name: e.name,
|
|
6191
6203
|
value: e.value,
|
|
6192
6204
|
defaultValue: e.defaultValue,
|
|
6193
6205
|
required: e.required
|
|
6194
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6206
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ml);
|
|
6195
6207
|
}
|
|
6196
|
-
const
|
|
6208
|
+
const yl = /* @__PURE__ */ N(fl, [["render", gl]]), vl = {
|
|
6197
6209
|
// friendlyName?
|
|
6198
6210
|
name: "Raw:Img",
|
|
6199
6211
|
hideFromInsertMenu: !0,
|
|
@@ -6207,7 +6219,7 @@ const gl = /* @__PURE__ */ N(hl, [["render", ml]]), yl = {
|
|
|
6207
6219
|
}],
|
|
6208
6220
|
noWrap: !0,
|
|
6209
6221
|
static: !0
|
|
6210
|
-
},
|
|
6222
|
+
}, bl = j({
|
|
6211
6223
|
name: "builder-img-component",
|
|
6212
6224
|
props: [
|
|
6213
6225
|
"backgroundSize",
|
|
@@ -6218,10 +6230,10 @@ const gl = /* @__PURE__ */ N(hl, [["render", ml]]), yl = {
|
|
|
6218
6230
|
"attributes"
|
|
6219
6231
|
],
|
|
6220
6232
|
data() {
|
|
6221
|
-
return { isEditing:
|
|
6233
|
+
return { isEditing: le, filterAttrs: me };
|
|
6222
6234
|
}
|
|
6223
|
-
}),
|
|
6224
|
-
function
|
|
6235
|
+
}), kl = ["alt", "src"];
|
|
6236
|
+
function Sl(e, t, n, r, o, i) {
|
|
6225
6237
|
return y(), T("img", q({
|
|
6226
6238
|
style: {
|
|
6227
6239
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -6230,9 +6242,9 @@ function kl(e, t, n, r, o, i) {
|
|
|
6230
6242
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
6231
6243
|
alt: e.altText,
|
|
6232
6244
|
src: e.imgSrc || e.image
|
|
6233
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6245
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, kl);
|
|
6234
6246
|
}
|
|
6235
|
-
const
|
|
6247
|
+
const Cl = /* @__PURE__ */ N(bl, [["render", Sl]]), wl = {
|
|
6236
6248
|
name: "Video",
|
|
6237
6249
|
canHaveChildren: !0,
|
|
6238
6250
|
defaultStyles: {
|
|
@@ -6316,7 +6328,7 @@ const Sl = /* @__PURE__ */ N(vl, [["render", kl]]), Cl = {
|
|
|
6316
6328
|
shouldReceiveBuilderProps: {
|
|
6317
6329
|
builderBlock: !0
|
|
6318
6330
|
}
|
|
6319
|
-
},
|
|
6331
|
+
}, Tl = j({
|
|
6320
6332
|
name: "builder-video",
|
|
6321
6333
|
props: [
|
|
6322
6334
|
"autoPlay",
|
|
@@ -6361,16 +6373,16 @@ const Sl = /* @__PURE__ */ N(vl, [["render", kl]]), Cl = {
|
|
|
6361
6373
|
};
|
|
6362
6374
|
}
|
|
6363
6375
|
}
|
|
6364
|
-
}),
|
|
6376
|
+
}), El = { style: {
|
|
6365
6377
|
position: "relative"
|
|
6366
|
-
} },
|
|
6378
|
+
} }, Il = ["preload", "src", "poster"], xl = ["src"], Rl = {
|
|
6367
6379
|
key: 1,
|
|
6368
6380
|
style: {
|
|
6369
6381
|
display: "flex",
|
|
6370
6382
|
flexDirection: "column",
|
|
6371
6383
|
alignItems: "stretch"
|
|
6372
6384
|
}
|
|
6373
|
-
},
|
|
6385
|
+
}, Al = {
|
|
6374
6386
|
key: 2,
|
|
6375
6387
|
style: {
|
|
6376
6388
|
pointerEvents: "none",
|
|
@@ -6384,9 +6396,9 @@ const Sl = /* @__PURE__ */ N(vl, [["render", kl]]), Cl = {
|
|
|
6384
6396
|
height: "100%"
|
|
6385
6397
|
}
|
|
6386
6398
|
};
|
|
6387
|
-
function
|
|
6399
|
+
function $l(e, t, n, r, o, i) {
|
|
6388
6400
|
var s, u, p, g, v, h, b;
|
|
6389
|
-
return y(), T("div",
|
|
6401
|
+
return y(), T("div", El, [
|
|
6390
6402
|
dt("video", q({
|
|
6391
6403
|
class: "builder-video",
|
|
6392
6404
|
preload: e.preload || "metadata",
|
|
@@ -6411,8 +6423,8 @@ function Al(e, t, n, r, o, i) {
|
|
|
6411
6423
|
key: 0,
|
|
6412
6424
|
type: "video/mp4",
|
|
6413
6425
|
src: e.video
|
|
6414
|
-
}, null, 8,
|
|
6415
|
-
], 16,
|
|
6426
|
+
}, null, 8, xl))
|
|
6427
|
+
], 16, Il),
|
|
6416
6428
|
e.aspectRatio && !(e.fitContent && ((p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length)) ? (y(), T("div", {
|
|
6417
6429
|
key: 0,
|
|
6418
6430
|
style: Pe({
|
|
@@ -6422,72 +6434,72 @@ function Al(e, t, n, r, o, i) {
|
|
|
6422
6434
|
fontSize: "0px"
|
|
6423
6435
|
})
|
|
6424
6436
|
}, null, 4)) : W("", !0),
|
|
6425
|
-
(v = (g = e.builderBlock) == null ? void 0 : g.children) != null && v.length && e.fitContent ? (y(), T("div",
|
|
6437
|
+
(v = (g = e.builderBlock) == null ? void 0 : g.children) != null && v.length && e.fitContent ? (y(), T("div", Rl, [
|
|
6426
6438
|
de(e.$slots, "default")
|
|
6427
6439
|
])) : W("", !0),
|
|
6428
|
-
(b = (h = e.builderBlock) == null ? void 0 : h.children) != null && b.length && !e.fitContent ? (y(), T("div",
|
|
6440
|
+
(b = (h = e.builderBlock) == null ? void 0 : h.children) != null && b.length && !e.fitContent ? (y(), T("div", Al, [
|
|
6429
6441
|
de(e.$slots, "default")
|
|
6430
6442
|
])) : W("", !0)
|
|
6431
6443
|
]);
|
|
6432
6444
|
}
|
|
6433
|
-
const
|
|
6434
|
-
component:
|
|
6435
|
-
...
|
|
6445
|
+
const Pl = /* @__PURE__ */ N(Tl, [["render", $l]]), Ol = () => [{
|
|
6446
|
+
component: Va,
|
|
6447
|
+
...Oa
|
|
6436
6448
|
}, {
|
|
6437
|
-
component:
|
|
6438
|
-
...
|
|
6449
|
+
component: Ha,
|
|
6450
|
+
...Da
|
|
6439
6451
|
}, {
|
|
6440
|
-
component:
|
|
6441
|
-
...
|
|
6452
|
+
component: Ya,
|
|
6453
|
+
...Ka
|
|
6442
6454
|
}, {
|
|
6443
|
-
component:
|
|
6444
|
-
...
|
|
6455
|
+
component: nl,
|
|
6456
|
+
...Za
|
|
6445
6457
|
}, {
|
|
6446
|
-
component:
|
|
6447
|
-
...
|
|
6458
|
+
component: dl,
|
|
6459
|
+
...ul
|
|
6448
6460
|
}, {
|
|
6449
|
-
component:
|
|
6450
|
-
...
|
|
6461
|
+
component: ll,
|
|
6462
|
+
...rl
|
|
6451
6463
|
}, {
|
|
6452
|
-
component:
|
|
6453
|
-
...
|
|
6464
|
+
component: yl,
|
|
6465
|
+
...hl
|
|
6454
6466
|
}, {
|
|
6455
|
-
component:
|
|
6456
|
-
...
|
|
6467
|
+
component: Cl,
|
|
6468
|
+
...vl
|
|
6457
6469
|
}, {
|
|
6458
|
-
component:
|
|
6459
|
-
...
|
|
6470
|
+
component: Pl,
|
|
6471
|
+
...wl
|
|
6460
6472
|
}], Rr = () => [{
|
|
6461
|
-
component:
|
|
6462
|
-
...ca
|
|
6463
|
-
}, {
|
|
6464
|
-
component: Hs,
|
|
6473
|
+
component: Lo,
|
|
6465
6474
|
...pa
|
|
6466
6475
|
}, {
|
|
6467
|
-
component:
|
|
6476
|
+
component: Ks,
|
|
6468
6477
|
...da
|
|
6469
6478
|
}, {
|
|
6470
|
-
component:
|
|
6479
|
+
component: zs,
|
|
6471
6480
|
...ha
|
|
6472
6481
|
}, {
|
|
6473
|
-
component:
|
|
6482
|
+
component: ta,
|
|
6474
6483
|
...fa
|
|
6475
6484
|
}, {
|
|
6476
|
-
component:
|
|
6485
|
+
component: oa,
|
|
6477
6486
|
...ma
|
|
6478
6487
|
}, {
|
|
6479
|
-
component:
|
|
6480
|
-
...
|
|
6481
|
-
}, {
|
|
6482
|
-
component: $a,
|
|
6483
|
-
...Ia
|
|
6488
|
+
component: ba,
|
|
6489
|
+
...ga
|
|
6484
6490
|
}, {
|
|
6485
|
-
component:
|
|
6491
|
+
component: hu,
|
|
6486
6492
|
...ka
|
|
6487
6493
|
}, {
|
|
6488
|
-
component:
|
|
6489
|
-
...
|
|
6490
|
-
},
|
|
6494
|
+
component: Pa,
|
|
6495
|
+
...xa
|
|
6496
|
+
}, {
|
|
6497
|
+
component: Ia,
|
|
6498
|
+
...Sa
|
|
6499
|
+
}, {
|
|
6500
|
+
component: ca,
|
|
6501
|
+
...ia
|
|
6502
|
+
}, ...Ol()], jl = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
6491
6503
|
function getAndSetVariantId() {
|
|
6492
6504
|
function setCookie(name, value, days) {
|
|
6493
6505
|
let expires = '';
|
|
@@ -6543,7 +6555,7 @@ const $l = /* @__PURE__ */ N(wl, [["render", Al]]), Pl = () => [{
|
|
|
6543
6555
|
}).join('');
|
|
6544
6556
|
styleEl.innerHTML = newStyleStr;
|
|
6545
6557
|
}
|
|
6546
|
-
}`,
|
|
6558
|
+
}`, Bl = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
6547
6559
|
if (!navigator.cookieEnabled) {
|
|
6548
6560
|
return;
|
|
6549
6561
|
}
|
|
@@ -6577,25 +6589,25 @@ const $l = /* @__PURE__ */ N(wl, [["render", Al]]), Pl = () => [{
|
|
|
6577
6589
|
thisScriptEl?.remove();
|
|
6578
6590
|
}
|
|
6579
6591
|
return;
|
|
6580
|
-
}`,
|
|
6592
|
+
}`, fo = "builderIoAbTest", mo = "builderIoRenderContent", $t = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
6581
6593
|
...t,
|
|
6582
6594
|
testVariationId: t.id,
|
|
6583
6595
|
id: e == null ? void 0 : e.id
|
|
6584
|
-
})),
|
|
6596
|
+
})), Nl = ({
|
|
6585
6597
|
canTrack: e,
|
|
6586
6598
|
content: t
|
|
6587
|
-
}) => !(!($t(t).length > 0) || !e),
|
|
6588
|
-
window.${
|
|
6589
|
-
window.${
|
|
6590
|
-
`,
|
|
6591
|
-
window.${
|
|
6592
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
6593
|
-
)`,
|
|
6599
|
+
}) => !(!($t(t).length > 0) || !e), Vl = (e) => e === "react" || e === "reactNative", go = Vl(se), Dl = () => `
|
|
6600
|
+
window.${fo} = ${jl}
|
|
6601
|
+
window.${mo} = ${Bl}
|
|
6602
|
+
`, Ul = (e, t) => `
|
|
6603
|
+
window.${fo}(
|
|
6604
|
+
"${t}",${JSON.stringify(e)}, ${go}
|
|
6605
|
+
)`, Fl = ({
|
|
6594
6606
|
contentId: e,
|
|
6595
6607
|
variationId: t
|
|
6596
|
-
}) => `window.${
|
|
6597
|
-
"${t}", "${e}", ${
|
|
6598
|
-
)`,
|
|
6608
|
+
}) => `window.${mo}(
|
|
6609
|
+
"${t}", "${e}", ${go}
|
|
6610
|
+
)`, yo = j({
|
|
6599
6611
|
render() {
|
|
6600
6612
|
return Pr("script", {
|
|
6601
6613
|
innerHTML: this.scriptStr,
|
|
@@ -6609,7 +6621,7 @@ const $l = /* @__PURE__ */ N(wl, [["render", Al]]), Pl = () => [{
|
|
|
6609
6621
|
function Ar(e) {
|
|
6610
6622
|
return Math.round(e * 1e3) / 1e3;
|
|
6611
6623
|
}
|
|
6612
|
-
const
|
|
6624
|
+
const Wl = (e, t, n = !0) => {
|
|
6613
6625
|
if (!(e instanceof HTMLElement))
|
|
6614
6626
|
return null;
|
|
6615
6627
|
let r = n ? e : e.parentElement;
|
|
@@ -6620,7 +6632,7 @@ const Fl = (e, t, n = !0) => {
|
|
|
6620
6632
|
return r;
|
|
6621
6633
|
} while (r = r.parentElement);
|
|
6622
6634
|
return null;
|
|
6623
|
-
},
|
|
6635
|
+
}, Ml = (e) => Wl(e, (t) => {
|
|
6624
6636
|
const n = t.getAttribute("builder-id") || t.id;
|
|
6625
6637
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
6626
6638
|
}), $r = ({
|
|
@@ -6632,8 +6644,8 @@ const Fl = (e, t, n = !0) => {
|
|
|
6632
6644
|
x: i,
|
|
6633
6645
|
y: s
|
|
6634
6646
|
};
|
|
6635
|
-
},
|
|
6636
|
-
const t = e.target, n = t &&
|
|
6647
|
+
}, Ll = (e) => {
|
|
6648
|
+
const t = e.target, n = t && Ml(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
6637
6649
|
return {
|
|
6638
6650
|
targetBuilderElement: r || void 0,
|
|
6639
6651
|
metadata: {
|
|
@@ -6648,7 +6660,7 @@ const Fl = (e, t, n = !0) => {
|
|
|
6648
6660
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
6649
6661
|
}
|
|
6650
6662
|
};
|
|
6651
|
-
},
|
|
6663
|
+
}, Hl = (e) => {
|
|
6652
6664
|
var i;
|
|
6653
6665
|
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);
|
|
6654
6666
|
let o = "";
|
|
@@ -6674,15 +6686,15 @@ font-weight: ${s};
|
|
|
6674
6686
|
`.trim());
|
|
6675
6687
|
}
|
|
6676
6688
|
return o;
|
|
6677
|
-
},
|
|
6689
|
+
}, Kl = ({
|
|
6678
6690
|
customFonts: e
|
|
6679
6691
|
}) => {
|
|
6680
6692
|
var t;
|
|
6681
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6682
|
-
},
|
|
6693
|
+
return ((t = e == null ? void 0 : e.map((n) => Hl(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6694
|
+
}, ql = ({
|
|
6683
6695
|
cssCode: e,
|
|
6684
6696
|
contentId: t
|
|
6685
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6697
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Gl = `
|
|
6686
6698
|
.builder-button {
|
|
6687
6699
|
all: unset;
|
|
6688
6700
|
}
|
|
@@ -6699,7 +6711,7 @@ font-weight: ${s};
|
|
|
6699
6711
|
text-align: inherit;
|
|
6700
6712
|
font-family: inherit;
|
|
6701
6713
|
}
|
|
6702
|
-
`,
|
|
6714
|
+
`, zl = (e) => e ? "" : Gl, _l = (e) => `variant-${e}`, Jl = j({
|
|
6703
6715
|
name: "enable-editor",
|
|
6704
6716
|
components: { DynamicDiv: kt },
|
|
6705
6717
|
props: [
|
|
@@ -6724,7 +6736,7 @@ font-weight: ${s};
|
|
|
6724
6736
|
httpReqsPending: {},
|
|
6725
6737
|
clicked: !1,
|
|
6726
6738
|
builderContext: dn,
|
|
6727
|
-
getWrapperClassName:
|
|
6739
|
+
getWrapperClassName: _l
|
|
6728
6740
|
};
|
|
6729
6741
|
},
|
|
6730
6742
|
provide() {
|
|
@@ -6739,7 +6751,7 @@ font-weight: ${s};
|
|
|
6739
6751
|
mounted() {
|
|
6740
6752
|
var e, t;
|
|
6741
6753
|
if (Y()) {
|
|
6742
|
-
if (
|
|
6754
|
+
if (le() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6743
6755
|
new CustomEvent("initeditingbldr")
|
|
6744
6756
|
), this.builderContextSignal.content && gt(this.canTrack)) {
|
|
6745
6757
|
const r = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
|
|
@@ -6751,7 +6763,7 @@ font-weight: ${s};
|
|
|
6751
6763
|
variationId: r !== o ? r : void 0
|
|
6752
6764
|
});
|
|
6753
6765
|
}
|
|
6754
|
-
|
|
6766
|
+
Ai() && !le() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6755
6767
|
new CustomEvent("initpreviewingbldr")
|
|
6756
6768
|
);
|
|
6757
6769
|
}
|
|
@@ -6845,7 +6857,7 @@ font-weight: ${s};
|
|
|
6845
6857
|
this.builderContextSignal.content = t;
|
|
6846
6858
|
},
|
|
6847
6859
|
processMessage(e) {
|
|
6848
|
-
return
|
|
6860
|
+
return no({
|
|
6849
6861
|
model: this.model,
|
|
6850
6862
|
trustedHosts: this.trustedHosts,
|
|
6851
6863
|
callbacks: {
|
|
@@ -6859,7 +6871,7 @@ font-weight: ${s};
|
|
|
6859
6871
|
});
|
|
6860
6872
|
},
|
|
6861
6873
|
animation: (t) => {
|
|
6862
|
-
|
|
6874
|
+
uo(t);
|
|
6863
6875
|
},
|
|
6864
6876
|
contentUpdate: (t) => {
|
|
6865
6877
|
this.mergeNewContent(t);
|
|
@@ -6877,7 +6889,7 @@ font-weight: ${s};
|
|
|
6877
6889
|
contentId: o,
|
|
6878
6890
|
apiKey: this.apiKey,
|
|
6879
6891
|
variationId: r !== o ? r : void 0,
|
|
6880
|
-
...
|
|
6892
|
+
...Ll(e),
|
|
6881
6893
|
unique: !this.clicked
|
|
6882
6894
|
});
|
|
6883
6895
|
}
|
|
@@ -6887,7 +6899,7 @@ font-weight: ${s};
|
|
|
6887
6899
|
var t, n;
|
|
6888
6900
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
6889
6901
|
Object.entries(e).forEach(([r, o]) => {
|
|
6890
|
-
if (!o || this.httpReqsPending[r] || this.httpReqsData[r] && !
|
|
6902
|
+
if (!o || this.httpReqsPending[r] || this.httpReqsData[r] && !le())
|
|
6891
6903
|
return;
|
|
6892
6904
|
this.httpReqsPending[r] = !0;
|
|
6893
6905
|
const i = o.replace(
|
|
@@ -6914,7 +6926,7 @@ font-weight: ${s};
|
|
|
6914
6926
|
});
|
|
6915
6927
|
},
|
|
6916
6928
|
emitStateUpdate() {
|
|
6917
|
-
|
|
6929
|
+
le() && window.dispatchEvent(
|
|
6918
6930
|
new CustomEvent(
|
|
6919
6931
|
"builder:component:stateChange",
|
|
6920
6932
|
{
|
|
@@ -6929,7 +6941,7 @@ font-weight: ${s};
|
|
|
6929
6941
|
);
|
|
6930
6942
|
},
|
|
6931
6943
|
elementRef_onIniteditingbldr(e) {
|
|
6932
|
-
window.addEventListener("message", this.processMessage),
|
|
6944
|
+
window.addEventListener("message", this.processMessage), Yi(), to({
|
|
6933
6945
|
...this.locale ? {
|
|
6934
6946
|
locale: this.locale
|
|
6935
6947
|
} : {},
|
|
@@ -6943,7 +6955,7 @@ font-weight: ${s};
|
|
|
6943
6955
|
this.builderContextSignal.componentInfos
|
|
6944
6956
|
).forEach((t) => {
|
|
6945
6957
|
var r;
|
|
6946
|
-
const n =
|
|
6958
|
+
const n = $i(t);
|
|
6947
6959
|
(r = window.parent) == null || r.postMessage(n, "*");
|
|
6948
6960
|
}), window.addEventListener(
|
|
6949
6961
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -6964,7 +6976,7 @@ font-weight: ${s};
|
|
|
6964
6976
|
}
|
|
6965
6977
|
}
|
|
6966
6978
|
});
|
|
6967
|
-
function
|
|
6979
|
+
function Xl(e, t, n, r, o, i) {
|
|
6968
6980
|
var s, u, p;
|
|
6969
6981
|
return e.builderContextSignal.content ? (y(), V(lt(e.ContentWrapper), q({
|
|
6970
6982
|
key: 0,
|
|
@@ -6982,26 +6994,26 @@ function Jl(e, t, n, r, o, i) {
|
|
|
6982
6994
|
_: 3
|
|
6983
6995
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : W("", !0);
|
|
6984
6996
|
}
|
|
6985
|
-
const
|
|
6997
|
+
const Yl = /* @__PURE__ */ N(Jl, [["render", Xl]]), Zl = j({
|
|
6986
6998
|
name: "content-styles",
|
|
6987
6999
|
components: { InlinedStyles: Un },
|
|
6988
7000
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
6989
7001
|
data() {
|
|
6990
7002
|
return {
|
|
6991
7003
|
injectedStyles: `
|
|
6992
|
-
${
|
|
7004
|
+
${ql({
|
|
6993
7005
|
cssCode: this.cssCode,
|
|
6994
7006
|
contentId: this.contentId
|
|
6995
7007
|
})}
|
|
6996
|
-
${
|
|
7008
|
+
${Kl({
|
|
6997
7009
|
customFonts: this.customFonts
|
|
6998
7010
|
})}
|
|
6999
|
-
${
|
|
7011
|
+
${zl(this.isNestedRender)}
|
|
7000
7012
|
`.trim()
|
|
7001
7013
|
};
|
|
7002
7014
|
}
|
|
7003
7015
|
});
|
|
7004
|
-
function
|
|
7016
|
+
function Ql(e, t, n, r, o, i) {
|
|
7005
7017
|
const s = D("InlinedStyles");
|
|
7006
7018
|
return y(), V(s, {
|
|
7007
7019
|
id: "builderio-content",
|
|
@@ -7009,7 +7021,7 @@ function Zl(e, t, n, r, o, i) {
|
|
|
7009
7021
|
nonce: e.nonce
|
|
7010
7022
|
}, null, 8, ["styles", "nonce"]);
|
|
7011
7023
|
}
|
|
7012
|
-
const
|
|
7024
|
+
const eu = /* @__PURE__ */ N(Zl, [["render", Ql]]), tu = ({
|
|
7013
7025
|
content: e,
|
|
7014
7026
|
data: t,
|
|
7015
7027
|
locale: n
|
|
@@ -7026,7 +7038,7 @@ const Ql = /* @__PURE__ */ N(Yl, [["render", Zl]]), eu = ({
|
|
|
7026
7038
|
locale: n
|
|
7027
7039
|
} : {}
|
|
7028
7040
|
};
|
|
7029
|
-
},
|
|
7041
|
+
}, nu = ({
|
|
7030
7042
|
content: e,
|
|
7031
7043
|
data: t
|
|
7032
7044
|
}) => e ? {
|
|
@@ -7036,12 +7048,12 @@ const Ql = /* @__PURE__ */ N(Yl, [["render", Zl]]), eu = ({
|
|
|
7036
7048
|
...t
|
|
7037
7049
|
},
|
|
7038
7050
|
meta: e == null ? void 0 : e.meta
|
|
7039
|
-
} : void 0,
|
|
7051
|
+
} : void 0, ru = No, ou = j({
|
|
7040
7052
|
name: "content-component",
|
|
7041
7053
|
components: {
|
|
7042
|
-
EnableEditor:
|
|
7043
|
-
InlinedScript:
|
|
7044
|
-
ContentStyles:
|
|
7054
|
+
EnableEditor: Yl,
|
|
7055
|
+
InlinedScript: yo,
|
|
7056
|
+
ContentStyles: eu,
|
|
7045
7057
|
Blocks: ze,
|
|
7046
7058
|
DynamicDiv: kt
|
|
7047
7059
|
},
|
|
@@ -7070,7 +7082,7 @@ const Ql = /* @__PURE__ */ N(Yl, [["render", Zl]]), eu = ({
|
|
|
7070
7082
|
data() {
|
|
7071
7083
|
var e, t, n, r;
|
|
7072
7084
|
return {
|
|
7073
|
-
scriptStr:
|
|
7085
|
+
scriptStr: Fl({
|
|
7074
7086
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
7075
7087
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
7076
7088
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -7083,19 +7095,19 @@ const Ql = /* @__PURE__ */ N(Yl, [["render", Zl]]), eu = ({
|
|
|
7083
7095
|
(o, { component: i, ...s }) => ({
|
|
7084
7096
|
...o,
|
|
7085
7097
|
[s.name]: {
|
|
7086
|
-
component:
|
|
7098
|
+
component: ru(i),
|
|
7087
7099
|
...Ot(s)
|
|
7088
7100
|
}
|
|
7089
7101
|
}),
|
|
7090
7102
|
{}
|
|
7091
7103
|
),
|
|
7092
7104
|
builderContextSignal: {
|
|
7093
|
-
content:
|
|
7105
|
+
content: nu({
|
|
7094
7106
|
content: this.content,
|
|
7095
7107
|
data: this.data
|
|
7096
7108
|
}),
|
|
7097
7109
|
localState: void 0,
|
|
7098
|
-
rootState:
|
|
7110
|
+
rootState: tu({
|
|
7099
7111
|
content: this.content,
|
|
7100
7112
|
data: this.data,
|
|
7101
7113
|
locale: this.locale
|
|
@@ -7120,7 +7132,7 @@ const Ql = /* @__PURE__ */ N(Yl, [["render", Zl]]), eu = ({
|
|
|
7120
7132
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
7121
7133
|
nonce: this.nonce || ""
|
|
7122
7134
|
},
|
|
7123
|
-
TARGET:
|
|
7135
|
+
TARGET: se
|
|
7124
7136
|
};
|
|
7125
7137
|
},
|
|
7126
7138
|
provide() {
|
|
@@ -7154,7 +7166,7 @@ const Ql = /* @__PURE__ */ N(Yl, [["render", Zl]]), eu = ({
|
|
|
7154
7166
|
}
|
|
7155
7167
|
}
|
|
7156
7168
|
});
|
|
7157
|
-
function
|
|
7169
|
+
function iu(e, t, n, r, o, i) {
|
|
7158
7170
|
const s = D("InlinedScript"), u = D("ContentStyles"), p = D("Blocks"), g = D("EnableEditor");
|
|
7159
7171
|
return y(), V(g, q({
|
|
7160
7172
|
nonce: e.nonce,
|
|
@@ -7200,12 +7212,12 @@ function ou(e, t, n, r, o, i) {
|
|
|
7200
7212
|
_: 1
|
|
7201
7213
|
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
7202
7214
|
}
|
|
7203
|
-
const
|
|
7215
|
+
const su = /* @__PURE__ */ N(ou, [["render", iu]]), au = j({
|
|
7204
7216
|
name: "content-variants",
|
|
7205
7217
|
components: {
|
|
7206
|
-
InlinedScript:
|
|
7218
|
+
InlinedScript: yo,
|
|
7207
7219
|
InlinedStyles: Un,
|
|
7208
|
-
ContentComponent:
|
|
7220
|
+
ContentComponent: su
|
|
7209
7221
|
},
|
|
7210
7222
|
props: [
|
|
7211
7223
|
"canTrack",
|
|
@@ -7229,12 +7241,12 @@ const iu = /* @__PURE__ */ N(ru, [["render", ou]]), su = j({
|
|
|
7229
7241
|
],
|
|
7230
7242
|
data() {
|
|
7231
7243
|
return {
|
|
7232
|
-
shouldRenderVariants:
|
|
7244
|
+
shouldRenderVariants: Nl({
|
|
7233
7245
|
canTrack: gt(this.canTrack),
|
|
7234
7246
|
content: this.content
|
|
7235
7247
|
}),
|
|
7236
|
-
TARGET:
|
|
7237
|
-
getInitVariantsFnsScriptString:
|
|
7248
|
+
TARGET: se,
|
|
7249
|
+
getInitVariantsFnsScriptString: Dl,
|
|
7238
7250
|
getVariants: $t
|
|
7239
7251
|
};
|
|
7240
7252
|
},
|
|
@@ -7243,7 +7255,7 @@ const iu = /* @__PURE__ */ N(ru, [["render", ou]]), su = j({
|
|
|
7243
7255
|
computed: {
|
|
7244
7256
|
updateCookieAndStylesScriptStr() {
|
|
7245
7257
|
var e;
|
|
7246
|
-
return
|
|
7258
|
+
return Ul(
|
|
7247
7259
|
$t(this.content).map((t) => ({
|
|
7248
7260
|
id: t.testVariationId,
|
|
7249
7261
|
testRatio: t.testRatio
|
|
@@ -7259,14 +7271,14 @@ const iu = /* @__PURE__ */ N(ru, [["render", ou]]), su = j({
|
|
|
7259
7271
|
return this.shouldRenderVariants ? {
|
|
7260
7272
|
...this.content,
|
|
7261
7273
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
7262
|
-
} :
|
|
7274
|
+
} : rs({
|
|
7263
7275
|
item: this.content,
|
|
7264
7276
|
canTrack: gt(this.canTrack)
|
|
7265
7277
|
});
|
|
7266
7278
|
}
|
|
7267
7279
|
}
|
|
7268
7280
|
});
|
|
7269
|
-
function
|
|
7281
|
+
function lu(e, t, n, r, o, i) {
|
|
7270
7282
|
const s = D("InlinedScript"), u = D("InlinedStyles"), p = D("ContentComponent");
|
|
7271
7283
|
return y(), T(z, null, [
|
|
7272
7284
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(), V(s, {
|
|
@@ -7336,7 +7348,7 @@ function au(e, t, n, r, o, i) {
|
|
|
7336
7348
|
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7337
7349
|
], 64);
|
|
7338
7350
|
}
|
|
7339
|
-
const
|
|
7351
|
+
const uu = /* @__PURE__ */ N(au, [["render", lu]]), cu = async ({
|
|
7340
7352
|
builderContextValue: e,
|
|
7341
7353
|
symbol: t
|
|
7342
7354
|
}) => {
|
|
@@ -7354,9 +7366,9 @@ const lu = /* @__PURE__ */ N(su, [["render", au]]), uu = async ({
|
|
|
7354
7366
|
}).catch((n) => {
|
|
7355
7367
|
ie.error("Could not fetch symbol content: ", n);
|
|
7356
7368
|
});
|
|
7357
|
-
},
|
|
7369
|
+
}, pu = j({
|
|
7358
7370
|
name: "builder-symbol",
|
|
7359
|
-
components: { ContentVariants:
|
|
7371
|
+
components: { ContentVariants: uu, DynamicDiv: kt },
|
|
7360
7372
|
props: [
|
|
7361
7373
|
"symbol",
|
|
7362
7374
|
"attributes",
|
|
@@ -7405,7 +7417,7 @@ const lu = /* @__PURE__ */ N(su, [["render", au]]), uu = async ({
|
|
|
7405
7417
|
},
|
|
7406
7418
|
methods: {
|
|
7407
7419
|
setContent() {
|
|
7408
|
-
this.contentToUse ||
|
|
7420
|
+
this.contentToUse || cu({
|
|
7409
7421
|
symbol: this.symbol,
|
|
7410
7422
|
builderContextValue: this.builderContext
|
|
7411
7423
|
}).then((e) => {
|
|
@@ -7414,7 +7426,7 @@ const lu = /* @__PURE__ */ N(su, [["render", au]]), uu = async ({
|
|
|
7414
7426
|
}
|
|
7415
7427
|
}
|
|
7416
7428
|
});
|
|
7417
|
-
function
|
|
7429
|
+
function du(e, t, n, r, o, i) {
|
|
7418
7430
|
var u, p, g, v, h;
|
|
7419
7431
|
const s = D("ContentVariants");
|
|
7420
7432
|
return y(), T("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -7442,44 +7454,44 @@ function pu(e, t, n, r, o, i) {
|
|
|
7442
7454
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7443
7455
|
], 16);
|
|
7444
7456
|
}
|
|
7445
|
-
const
|
|
7457
|
+
const hu = /* @__PURE__ */ N(pu, [["render", du]]);
|
|
7446
7458
|
export {
|
|
7447
|
-
|
|
7459
|
+
ds as A,
|
|
7448
7460
|
Dn as B,
|
|
7449
|
-
|
|
7461
|
+
Ks as C,
|
|
7450
7462
|
Nn as D,
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7463
|
+
mu as E,
|
|
7464
|
+
zs as F,
|
|
7465
|
+
Cu as G,
|
|
7466
|
+
ta as I,
|
|
7467
|
+
oa as S,
|
|
7468
|
+
se as T,
|
|
7469
|
+
Pl as V,
|
|
7458
7470
|
Un as _,
|
|
7459
|
-
|
|
7460
|
-
|
|
7471
|
+
ku as a,
|
|
7472
|
+
wu as b,
|
|
7461
7473
|
je as c,
|
|
7462
7474
|
Vn as d,
|
|
7463
7475
|
N as e,
|
|
7464
7476
|
bt as f,
|
|
7465
|
-
|
|
7466
|
-
|
|
7477
|
+
Ws as g,
|
|
7478
|
+
Su as h,
|
|
7467
7479
|
Pt as i,
|
|
7468
7480
|
dn as j,
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7481
|
+
Lo as k,
|
|
7482
|
+
hu as l,
|
|
7483
|
+
Pa as m,
|
|
7472
7484
|
ze as n,
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7485
|
+
uu as o,
|
|
7486
|
+
le as p,
|
|
7487
|
+
Ai as q,
|
|
7488
|
+
$i as r,
|
|
7489
|
+
Oi as s,
|
|
7490
|
+
gu as t,
|
|
7479
7491
|
Kr as u,
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7492
|
+
yu as v,
|
|
7493
|
+
ru as w,
|
|
7494
|
+
vu as x,
|
|
7495
|
+
bu as y,
|
|
7496
|
+
ps as z
|
|
7485
7497
|
};
|