@builder.io/sdk-vue 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-GjRYxPnU.cjs → awaiter-Xj7xgU8A.cjs} +1 -1
- package/lib/browser/{awaiter-5WjT5CVy.js → awaiter-fiHMd9OX.js} +1 -1
- package/lib/browser/block-wrapper-2d_iPFQQ.js +51 -0
- package/lib/browser/block-wrapper-lKLgKxgH.cjs +1 -0
- package/lib/browser/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/browser/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/browser/component-ref-Bo_fwbYK.cjs +1 -0
- package/lib/browser/component-ref-YEfZKvMy.js +185 -0
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +9 -9
- package/lib/browser/components/content/components/styles.vue.d.ts +3 -3
- package/lib/browser/components/content/content.vue.d.ts +9 -9
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +9 -9
- package/lib/browser/components/inlined-script.vue.d.ts +3 -3
- package/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/evaluate.d.ts +1 -1
- package/lib/browser/functions/evaluate/helpers.d.ts +9 -1
- package/lib/browser/functions/get-block-actions-handler.d.ts +2 -0
- package/lib/browser/functions/get-block-actions.d.ts +2 -0
- package/lib/{edge/get-block-properties--YFzBEV7.js → browser/get-block-properties-5nuoWf39.js} +9 -7
- package/lib/browser/get-block-properties-d-Ruoi4f.cjs +1 -0
- package/lib/browser/index-1GET5eOz.cjs +334 -0
- package/lib/browser/{index-EQdaCBDB.js → index-eVqO7_Qb.js} +475 -459
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-tO-V6Sv7.js → live-edit-9paJdIsz.js} +1 -1
- package/lib/browser/{live-edit-Jion_iv8.cjs → live-edit-ETOoXz63.cjs} +1 -1
- package/lib/browser/{repeated-block-kNj6mfjr.js → repeated-block-A24n6o-E.js} +2 -2
- package/lib/browser/{repeated-block-uNYlrd8d.cjs → repeated-block-RfWox6Ev.cjs} +1 -1
- package/lib/browser/{style-wrapper-jthdwC6f.cjs → style-wrapper-GTejPbe6.cjs} +1 -1
- package/lib/browser/{style-wrapper-CSSH3Epu.js → style-wrapper-tibcUSpL.js} +1 -1
- package/lib/edge/{awaiter-0PdAd6k-.cjs → awaiter-SdqgCFCT.cjs} +1 -1
- package/lib/edge/{awaiter-OJqvwrja.js → awaiter-rbgcBB2Y.js} +1 -1
- package/lib/edge/block-wrapper-DYh1gucy.js +50 -0
- package/lib/edge/block-wrapper-WT0fK9OQ.cjs +1 -0
- package/lib/edge/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/edge/component-ref-14bWdw0y.js +184 -0
- package/lib/edge/component-ref-Ari_o8qM.cjs +1 -0
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +9 -9
- package/lib/edge/components/content/components/styles.vue.d.ts +3 -3
- package/lib/edge/components/content/content.vue.d.ts +9 -9
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +9 -9
- package/lib/edge/components/inlined-script.vue.d.ts +3 -3
- package/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/evaluate.d.ts +1 -1
- package/lib/edge/functions/evaluate/helpers.d.ts +9 -1
- package/lib/edge/functions/get-block-actions-handler.d.ts +2 -0
- package/lib/edge/functions/get-block-actions.d.ts +2 -0
- package/lib/{browser/get-block-properties-dmm_DIxo.js → edge/get-block-properties-6j21Yx4_.js} +17 -17
- package/lib/edge/get-block-properties-kMAb8z5D.cjs +1 -0
- package/lib/edge/{index-ljVeDS39.cjs → index-2Armmtcs.cjs} +17 -17
- package/lib/edge/{index-Agn-gjHJ.js → index-unVH2XRb.js} +848 -832
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-jWT4dXgM.cjs → edge/live-edit-gMqK1-U2.cjs} +1 -1
- package/lib/{node/live-edit-E90Rueqo.js → edge/live-edit-yXkE9pDV.js} +1 -1
- package/lib/{node/repeated-block-gCLdrEyt.js → edge/repeated-block-F4oPiI78.js} +2 -2
- package/lib/edge/{repeated-block-GaabRNMP.cjs → repeated-block-Y0Z3ldLT.cjs} +1 -1
- package/lib/edge/{style-wrapper-I1DS5PUP.js → style-wrapper-Ad7ABy2Z.js} +1 -1
- package/lib/edge/{style-wrapper-MIBe_b13.cjs → style-wrapper-sL972lDH.cjs} +1 -1
- package/lib/node/{awaiter-qP3UIYQS.js → awaiter-_ZqW9w8N.js} +1 -1
- package/lib/node/{awaiter-ZX8mvzyL.cjs → awaiter-i0lAEAYI.cjs} +1 -1
- package/lib/node/block-wrapper-Bv_s1rr1.cjs +1 -0
- package/lib/node/block-wrapper-CnMu7UjK.js +50 -0
- package/lib/node/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/node/component-ref-LWytt0tD.cjs +1 -0
- package/lib/node/component-ref-lU9WFg32.js +185 -0
- package/lib/node/components/content/components/enable-editor.vue.d.ts +9 -9
- package/lib/node/components/content/components/styles.vue.d.ts +3 -3
- package/lib/node/components/content/content.vue.d.ts +9 -9
- package/lib/node/components/content-variants/content-variants.vue.d.ts +9 -9
- package/lib/node/components/inlined-script.vue.d.ts +3 -3
- package/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/evaluate.d.ts +1 -1
- package/lib/node/functions/evaluate/helpers.d.ts +9 -1
- package/lib/node/functions/get-block-actions-handler.d.ts +2 -0
- package/lib/node/functions/get-block-actions.d.ts +2 -0
- package/lib/node/{get-block-properties-o5VoFlz_.js → get-block-properties-oSP4WCJG.js} +18 -17
- package/lib/node/get-block-properties-sdbm535D.cjs +1 -0
- package/lib/node/{index-SH8gdiHf.js → index-9Wxomhx_.js} +702 -900
- package/lib/node/{index-AumTeVyL.cjs → index-z7Ed9MEJ.cjs} +30 -30
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +11 -11
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-TWpZ33A7.js → node/live-edit-ZjrPT1e_.js} +1 -1
- package/lib/{edge/live-edit-nHq1I7ij.cjs → node/live-edit-nQPgUSEF.cjs} +1 -1
- package/lib/node/{repeated-block-4pHYUEBM.cjs → repeated-block-G-7Wr2Ub.cjs} +1 -1
- package/lib/{edge/repeated-block-_wYfLmVg.js → node/repeated-block-zGwBOU59.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-5h08TaCf.js → should-force-browser-runtime-in-node-0jTQ7bdA.js} +261 -41
- package/lib/node/should-force-browser-runtime-in-node-kkE7IeZS.cjs +48 -0
- package/lib/node/{style-wrapper-7nh-8JLA.cjs → style-wrapper-QZvOi8Ur.cjs} +1 -1
- package/lib/node/{style-wrapper-1rHE_XSt.js → style-wrapper-QtIk1dHP.js} +10 -10
- package/package.json +1 -1
- package/lib/browser/block-wrapper-8v7I2JSB.cjs +0 -1
- package/lib/browser/block-wrapper-s3-0mqGr.js +0 -44
- package/lib/browser/component-ref-8g4g9kyF.js +0 -178
- package/lib/browser/component-ref-r7lSDLc0.cjs +0 -1
- package/lib/browser/get-block-properties-GPPIll7t.cjs +0 -1
- package/lib/browser/index-Treb985Y.cjs +0 -334
- package/lib/edge/block-wrapper-DfG53TBm.cjs +0 -1
- package/lib/edge/block-wrapper-LzMR5J5q.js +0 -43
- package/lib/edge/component-ref-30u-bbmm.js +0 -177
- package/lib/edge/component-ref-VTMpfeME.cjs +0 -1
- package/lib/edge/get-block-properties-yv9bFXVp.cjs +0 -1
- package/lib/node/block-wrapper-3FbaAWv9.js +0 -43
- package/lib/node/block-wrapper-mEOIfHOk.cjs +0 -1
- package/lib/node/component-ref-DHpSqIaD.cjs +0 -1
- package/lib/node/component-ref-MKSj3oym.js +0 -178
- package/lib/node/get-block-properties-b4xkM8mc.cjs +0 -1
- package/lib/node/should-force-browser-runtime-in-node-IsToRTN-.cjs +0 -48
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as x, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as de, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as ze, createElementVNode as z, normalizeStyle as M, normalizeClass as _, markRaw as Nt } from "vue";
|
|
3
|
+
const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
|
|
4
|
+
function W(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -11,11 +11,11 @@ function x(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Ot = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Dt };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,22 +23,22 @@ const Dt = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function xt(e, t, n, o, r, i) {
|
|
27
27
|
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
|
|
28
28
|
typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, L(e.actionAttributes)), {
|
|
29
|
-
default:
|
|
29
|
+
default: x(() => [
|
|
30
30
|
N(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
33
|
}, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), {
|
|
34
|
-
default:
|
|
34
|
+
default: x(() => [
|
|
35
35
|
N(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const ke = /* @__PURE__ */ v(
|
|
41
|
+
const ke = /* @__PURE__ */ v(Ot, [["render", xt]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: ke
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), R = "vue", j = () => {
|
|
@@ -65,12 +65,12 @@ const ke = /* @__PURE__ */ v(Dt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
65
65
|
"text"
|
|
66
66
|
],
|
|
67
67
|
data() {
|
|
68
|
-
return { filterAttrs:
|
|
68
|
+
return { filterAttrs: W };
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
73
|
+
...W(this.attributes, "v-on:", !1),
|
|
74
74
|
[j()]: `${this.link ? "" : "builder-button"} ${this.attributes[j()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
@@ -90,13 +90,13 @@ function Lt(e, t, n, o, r, i) {
|
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
Vt(
|
|
93
|
+
default: x(() => [
|
|
94
|
+
Vt(de(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(),
|
|
99
|
+
const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -174,7 +174,205 @@ const qt = () => {
|
|
|
174
174
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
175
175
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
176
176
|
};
|
|
177
|
-
},
|
|
177
|
+
}, Ze = "5.2.0", _e = () => ({
|
|
178
|
+
"X-Builder-SDK": R,
|
|
179
|
+
"X-Builder-SDK-GEN": "2",
|
|
180
|
+
"X-Builder-SDK-Version": Ze
|
|
181
|
+
}), K = (e) => e != null, Gt = (e) => {
|
|
182
|
+
if (e === "localhost" || e === "127.0.0.1")
|
|
183
|
+
return e;
|
|
184
|
+
const t = e.split(".");
|
|
185
|
+
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
186
|
+
}, ue = ({
|
|
187
|
+
name: e,
|
|
188
|
+
canTrack: t
|
|
189
|
+
}) => {
|
|
190
|
+
var n;
|
|
191
|
+
try {
|
|
192
|
+
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
193
|
+
} catch (o) {
|
|
194
|
+
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
}, et = async (e) => ue(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), Qt = [["secure", ""], ["SameSite", "None"]], Yt = ({
|
|
198
|
+
name: e,
|
|
199
|
+
value: t,
|
|
200
|
+
expires: n
|
|
201
|
+
}) => {
|
|
202
|
+
const r = (T() ? location.protocol === "https:" : !0) ? Qt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gt(window.location.hostname)], ...r];
|
|
203
|
+
return Jt(s);
|
|
204
|
+
}, Ce = async ({
|
|
205
|
+
name: e,
|
|
206
|
+
value: t,
|
|
207
|
+
expires: n,
|
|
208
|
+
canTrack: o
|
|
209
|
+
}) => {
|
|
210
|
+
try {
|
|
211
|
+
if (!o)
|
|
212
|
+
return;
|
|
213
|
+
const r = Yt({
|
|
214
|
+
name: e,
|
|
215
|
+
value: t,
|
|
216
|
+
expires: n
|
|
217
|
+
});
|
|
218
|
+
document.cookie = r;
|
|
219
|
+
} catch (r) {
|
|
220
|
+
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
function Xt() {
|
|
224
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
225
|
+
const t = Math.random() * 16 | 0;
|
|
226
|
+
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
function tt() {
|
|
230
|
+
return Xt().replace(/-/g, "");
|
|
231
|
+
}
|
|
232
|
+
const nt = "builderSessionId", Zt = async ({
|
|
233
|
+
canTrack: e
|
|
234
|
+
}) => {
|
|
235
|
+
if (!e)
|
|
236
|
+
return;
|
|
237
|
+
const t = await et({
|
|
238
|
+
name: nt,
|
|
239
|
+
canTrack: e
|
|
240
|
+
});
|
|
241
|
+
if (K(t))
|
|
242
|
+
return t;
|
|
243
|
+
{
|
|
244
|
+
const n = _t();
|
|
245
|
+
return en({
|
|
246
|
+
id: n,
|
|
247
|
+
canTrack: e
|
|
248
|
+
}), n;
|
|
249
|
+
}
|
|
250
|
+
}, _t = () => tt(), en = ({
|
|
251
|
+
id: e,
|
|
252
|
+
canTrack: t
|
|
253
|
+
}) => Ce({
|
|
254
|
+
name: nt,
|
|
255
|
+
value: e,
|
|
256
|
+
canTrack: t
|
|
257
|
+
}), ot = () => T() && typeof localStorage < "u" ? localStorage : void 0, tn = ({
|
|
258
|
+
key: e,
|
|
259
|
+
canTrack: t
|
|
260
|
+
}) => {
|
|
261
|
+
var n;
|
|
262
|
+
try {
|
|
263
|
+
return t ? (n = ot()) == null ? void 0 : n.getItem(e) : void 0;
|
|
264
|
+
} catch (o) {
|
|
265
|
+
console.debug("[LocalStorage] GET error: ", o);
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
}, nn = ({
|
|
269
|
+
key: e,
|
|
270
|
+
canTrack: t,
|
|
271
|
+
value: n
|
|
272
|
+
}) => {
|
|
273
|
+
var o;
|
|
274
|
+
try {
|
|
275
|
+
t && ((o = ot()) == null || o.setItem(e, n));
|
|
276
|
+
} catch (r) {
|
|
277
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
278
|
+
}
|
|
279
|
+
}, rt = "builderVisitorId", on = ({
|
|
280
|
+
canTrack: e
|
|
281
|
+
}) => {
|
|
282
|
+
if (!e)
|
|
283
|
+
return;
|
|
284
|
+
const t = tn({
|
|
285
|
+
key: rt,
|
|
286
|
+
canTrack: e
|
|
287
|
+
});
|
|
288
|
+
if (K(t))
|
|
289
|
+
return t;
|
|
290
|
+
{
|
|
291
|
+
const n = rn();
|
|
292
|
+
return sn({
|
|
293
|
+
id: n,
|
|
294
|
+
canTrack: e
|
|
295
|
+
}), n;
|
|
296
|
+
}
|
|
297
|
+
}, rn = () => tt(), sn = ({
|
|
298
|
+
id: e,
|
|
299
|
+
canTrack: t
|
|
300
|
+
}) => nn({
|
|
301
|
+
key: rt,
|
|
302
|
+
value: e,
|
|
303
|
+
canTrack: t
|
|
304
|
+
});
|
|
305
|
+
function Te(e) {
|
|
306
|
+
var t;
|
|
307
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
308
|
+
}
|
|
309
|
+
const an = async ({
|
|
310
|
+
canTrack: e
|
|
311
|
+
}) => {
|
|
312
|
+
if (!e)
|
|
313
|
+
return {
|
|
314
|
+
visitorId: void 0,
|
|
315
|
+
sessionId: void 0
|
|
316
|
+
};
|
|
317
|
+
const t = await Zt({
|
|
318
|
+
canTrack: e
|
|
319
|
+
}), n = on({
|
|
320
|
+
canTrack: e
|
|
321
|
+
});
|
|
322
|
+
return {
|
|
323
|
+
sessionId: t,
|
|
324
|
+
visitorId: n
|
|
325
|
+
};
|
|
326
|
+
}, ln = async ({
|
|
327
|
+
type: e,
|
|
328
|
+
canTrack: t,
|
|
329
|
+
apiKey: n,
|
|
330
|
+
metadata: o,
|
|
331
|
+
...r
|
|
332
|
+
}) => ({
|
|
333
|
+
type: e,
|
|
334
|
+
data: {
|
|
335
|
+
...r,
|
|
336
|
+
metadata: {
|
|
337
|
+
url: location.href,
|
|
338
|
+
...o
|
|
339
|
+
},
|
|
340
|
+
...await an({
|
|
341
|
+
canTrack: t
|
|
342
|
+
}),
|
|
343
|
+
userAttributes: Xe(),
|
|
344
|
+
ownerId: n
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
async function se({
|
|
348
|
+
apiHost: e,
|
|
349
|
+
...t
|
|
350
|
+
}) {
|
|
351
|
+
if (!t.apiKey) {
|
|
352
|
+
B.error("Missing API key for track call. Please provide your API key.");
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
if (!t.canTrack || A() || !(T() || R === "reactNative"))
|
|
356
|
+
return;
|
|
357
|
+
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
+
return Te(o), fetch(o, {
|
|
359
|
+
method: "POST",
|
|
360
|
+
body: JSON.stringify({
|
|
361
|
+
events: [await ln(t)]
|
|
362
|
+
}),
|
|
363
|
+
headers: {
|
|
364
|
+
"content-type": "application/json",
|
|
365
|
+
..._e()
|
|
366
|
+
},
|
|
367
|
+
mode: "cors"
|
|
368
|
+
}).catch((r) => {
|
|
369
|
+
console.error("Failed to track: ", r);
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
const Ss = (e) => se({
|
|
373
|
+
...e,
|
|
374
|
+
canTrack: !0
|
|
375
|
+
}), cn = ({
|
|
178
376
|
builder: e,
|
|
179
377
|
context: t,
|
|
180
378
|
event: n,
|
|
@@ -186,15 +384,30 @@ const qt = () => {
|
|
|
186
384
|
builder: e,
|
|
187
385
|
context: t,
|
|
188
386
|
event: n
|
|
189
|
-
}),
|
|
387
|
+
}), dn = (e) => ({
|
|
190
388
|
isEditing: A(),
|
|
191
389
|
isBrowser: T(),
|
|
192
390
|
isServer: !T(),
|
|
193
|
-
getUserAttributes: () => Xe()
|
|
194
|
-
|
|
391
|
+
getUserAttributes: () => Xe(),
|
|
392
|
+
trackConversion: (t, n) => {
|
|
393
|
+
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || se({
|
|
394
|
+
type: "conversion",
|
|
395
|
+
apiKey: e.apiKey,
|
|
396
|
+
canTrack: e.canTrack ?? !0,
|
|
397
|
+
contentId: e.contentId,
|
|
398
|
+
variationId: e.variationId !== e.contentId ? e.variationId : void 0,
|
|
399
|
+
metadata: {
|
|
400
|
+
...n || {},
|
|
401
|
+
...t !== void 0 ? {
|
|
402
|
+
amount: t
|
|
403
|
+
} : {}
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}), un = (e, {
|
|
195
408
|
isExpression: t = !0
|
|
196
409
|
}) => /* 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;
|
|
197
|
-
function
|
|
410
|
+
function it({
|
|
198
411
|
rootState: e,
|
|
199
412
|
localState: t,
|
|
200
413
|
rootSetState: n
|
|
@@ -204,7 +417,7 @@ function _e({
|
|
|
204
417
|
if (t && r in t)
|
|
205
418
|
return t[r];
|
|
206
419
|
const i = o[r];
|
|
207
|
-
return typeof i == "object" && i !== null ?
|
|
420
|
+
return typeof i == "object" && i !== null ? it({
|
|
208
421
|
rootState: i,
|
|
209
422
|
localState: void 0,
|
|
210
423
|
rootSetState: n ? (s) => {
|
|
@@ -219,7 +432,7 @@ function _e({
|
|
|
219
432
|
}
|
|
220
433
|
});
|
|
221
434
|
}
|
|
222
|
-
const
|
|
435
|
+
const We = ({
|
|
223
436
|
code: e,
|
|
224
437
|
builder: t,
|
|
225
438
|
context: n,
|
|
@@ -228,35 +441,35 @@ const xe = ({
|
|
|
228
441
|
rootSetState: i,
|
|
229
442
|
rootState: s
|
|
230
443
|
}) => {
|
|
231
|
-
const l =
|
|
444
|
+
const l = cn({
|
|
232
445
|
builder: t,
|
|
233
446
|
context: n,
|
|
234
447
|
event: o,
|
|
235
|
-
state:
|
|
448
|
+
state: it({
|
|
236
449
|
rootState: s,
|
|
237
450
|
localState: r,
|
|
238
451
|
rootSetState: i
|
|
239
452
|
})
|
|
240
453
|
});
|
|
241
454
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
242
|
-
}
|
|
243
|
-
function
|
|
455
|
+
};
|
|
456
|
+
function pn() {
|
|
244
457
|
var e;
|
|
245
458
|
return typeof process < "u" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
246
459
|
}
|
|
247
|
-
const
|
|
460
|
+
const mn = ({
|
|
248
461
|
shouldLogWarning: e
|
|
249
462
|
}) => {
|
|
250
463
|
var r;
|
|
251
|
-
if (!
|
|
464
|
+
if (!pn())
|
|
252
465
|
return !1;
|
|
253
466
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
254
467
|
return t && n && !o ? (e && B.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;
|
|
255
|
-
},
|
|
468
|
+
}, hn = (e) => (T() || mn({
|
|
256
469
|
shouldLogWarning: !0
|
|
257
|
-
}),
|
|
470
|
+
}), We(e)), fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, bn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, gn = (e) => {
|
|
258
471
|
var t, n, o, r, i, s;
|
|
259
|
-
return ((o = (n = (t =
|
|
472
|
+
return ((o = (n = (t = fn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = bn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
260
473
|
};
|
|
261
474
|
function ee({
|
|
262
475
|
code: e,
|
|
@@ -265,21 +478,22 @@ function ee({
|
|
|
265
478
|
rootState: o,
|
|
266
479
|
rootSetState: r,
|
|
267
480
|
event: i,
|
|
268
|
-
isExpression: s = !0
|
|
481
|
+
isExpression: s = !0,
|
|
482
|
+
trackingContext: l
|
|
269
483
|
}) {
|
|
270
484
|
if (e.trim() === "")
|
|
271
485
|
return;
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
486
|
+
const a = gn(e.trim());
|
|
487
|
+
if (a)
|
|
274
488
|
return Je({
|
|
275
489
|
...o,
|
|
276
490
|
...n
|
|
277
|
-
},
|
|
278
|
-
const
|
|
279
|
-
code:
|
|
491
|
+
}, a);
|
|
492
|
+
const u = {
|
|
493
|
+
code: un(e, {
|
|
280
494
|
isExpression: s
|
|
281
495
|
}),
|
|
282
|
-
builder:
|
|
496
|
+
builder: dn(l),
|
|
283
497
|
context: t,
|
|
284
498
|
event: i,
|
|
285
499
|
rootSetState: r,
|
|
@@ -287,23 +501,23 @@ function ee({
|
|
|
287
501
|
localState: n
|
|
288
502
|
};
|
|
289
503
|
try {
|
|
290
|
-
return
|
|
291
|
-
} catch (
|
|
292
|
-
B.error("Failed code evaluation: " +
|
|
504
|
+
return hn(u);
|
|
505
|
+
} catch (p) {
|
|
506
|
+
B.error("Failed code evaluation: " + p.message, {
|
|
293
507
|
code: e
|
|
294
508
|
});
|
|
295
509
|
return;
|
|
296
510
|
}
|
|
297
511
|
}
|
|
298
|
-
function
|
|
512
|
+
function yn(e, t) {
|
|
299
513
|
var n;
|
|
300
514
|
return {
|
|
301
515
|
...(n = e.component) == null ? void 0 : n.options,
|
|
302
516
|
...e.options,
|
|
303
|
-
...
|
|
517
|
+
...vn(e, t)
|
|
304
518
|
};
|
|
305
519
|
}
|
|
306
|
-
const
|
|
520
|
+
const vn = (e, t) => {
|
|
307
521
|
var n, o;
|
|
308
522
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
309
523
|
return {
|
|
@@ -317,13 +531,13 @@ const on = (e, t) => {
|
|
|
317
531
|
}))
|
|
318
532
|
};
|
|
319
533
|
};
|
|
320
|
-
function
|
|
534
|
+
function Sn(e, ...t) {
|
|
321
535
|
const n = Object.assign({}, e);
|
|
322
536
|
for (const o of t)
|
|
323
537
|
delete n[o];
|
|
324
538
|
return n;
|
|
325
539
|
}
|
|
326
|
-
function
|
|
540
|
+
function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
327
541
|
if (e == null || typeof e != "object") {
|
|
328
542
|
t(e, (i) => {
|
|
329
543
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -333,57 +547,57 @@ function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
333
547
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
334
548
|
t(i, (a) => {
|
|
335
549
|
e[s] = a;
|
|
336
|
-
}),
|
|
550
|
+
}), ae(i, t, e, s, r);
|
|
337
551
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
338
552
|
t(s, (a) => {
|
|
339
553
|
e[i] = a;
|
|
340
|
-
}),
|
|
554
|
+
}), ae(s, t, e, i, r);
|
|
341
555
|
}));
|
|
342
556
|
}
|
|
343
|
-
function
|
|
557
|
+
function st(e) {
|
|
344
558
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
345
559
|
}
|
|
346
|
-
function
|
|
560
|
+
function kn(e) {
|
|
347
561
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
348
562
|
return !1;
|
|
349
563
|
let t = !1;
|
|
350
|
-
return
|
|
351
|
-
if (
|
|
564
|
+
return ae(e, (n) => {
|
|
565
|
+
if (st(n)) {
|
|
352
566
|
t = !0;
|
|
353
567
|
return;
|
|
354
568
|
}
|
|
355
569
|
}), t;
|
|
356
570
|
}
|
|
357
|
-
function
|
|
358
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
359
|
-
|
|
571
|
+
function Cn(e, t) {
|
|
572
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
573
|
+
st(n) && o(n[t] ?? void 0);
|
|
360
574
|
}), e);
|
|
361
575
|
}
|
|
362
|
-
function
|
|
576
|
+
function Tn(e, t) {
|
|
363
577
|
var n, o;
|
|
364
|
-
return (n = e.component) != null && n.options &&
|
|
578
|
+
return (n = e.component) != null && n.options && kn((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Cn(e.component.options, t ?? "Default")), e;
|
|
365
579
|
}
|
|
366
|
-
const
|
|
580
|
+
const we = (e) => JSON.parse(JSON.stringify(e)), at = (e, t, n) => {
|
|
367
581
|
if (Object(e) !== e)
|
|
368
582
|
return e;
|
|
369
583
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
370
584
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
371
585
|
};
|
|
372
|
-
function
|
|
586
|
+
function ye(e) {
|
|
373
587
|
if (e === null || typeof e != "object")
|
|
374
588
|
return e;
|
|
375
589
|
if (Array.isArray(e))
|
|
376
|
-
return e.map((n) =>
|
|
590
|
+
return e.map((n) => ye(n));
|
|
377
591
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
378
592
|
return e;
|
|
379
593
|
const t = {};
|
|
380
594
|
for (const n in e)
|
|
381
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
595
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ye(e[n]));
|
|
382
596
|
return t;
|
|
383
597
|
}
|
|
384
|
-
const
|
|
385
|
-
if (
|
|
386
|
-
const t =
|
|
598
|
+
const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) => {
|
|
599
|
+
if (wn) {
|
|
600
|
+
const t = we(e);
|
|
387
601
|
return {
|
|
388
602
|
...t,
|
|
389
603
|
properties: {
|
|
@@ -394,7 +608,7 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
394
608
|
}
|
|
395
609
|
};
|
|
396
610
|
} else {
|
|
397
|
-
const t =
|
|
611
|
+
const t = ye(Sn(e, "children", "meta"));
|
|
398
612
|
return {
|
|
399
613
|
...t,
|
|
400
614
|
properties: {
|
|
@@ -407,7 +621,7 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
407
621
|
meta: e.meta
|
|
408
622
|
};
|
|
409
623
|
}
|
|
410
|
-
},
|
|
624
|
+
}, $n = ({
|
|
411
625
|
block: e,
|
|
412
626
|
context: t,
|
|
413
627
|
localState: n,
|
|
@@ -416,7 +630,7 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
416
630
|
}) => {
|
|
417
631
|
if (!e.bindings)
|
|
418
632
|
return e;
|
|
419
|
-
const i =
|
|
633
|
+
const i = In(e);
|
|
420
634
|
for (const s in e.bindings) {
|
|
421
635
|
const l = e.bindings[s], a = ee({
|
|
422
636
|
code: l,
|
|
@@ -425,11 +639,11 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
425
639
|
rootSetState: r,
|
|
426
640
|
context: t
|
|
427
641
|
});
|
|
428
|
-
|
|
642
|
+
at(i, s, a);
|
|
429
643
|
}
|
|
430
644
|
return i;
|
|
431
645
|
};
|
|
432
|
-
function
|
|
646
|
+
function Rn({
|
|
433
647
|
block: e,
|
|
434
648
|
context: t,
|
|
435
649
|
localState: n,
|
|
@@ -437,33 +651,33 @@ function pn({
|
|
|
437
651
|
rootSetState: r
|
|
438
652
|
}) {
|
|
439
653
|
let i = e;
|
|
440
|
-
return i =
|
|
654
|
+
return i = $n({
|
|
441
655
|
block: i,
|
|
442
656
|
localState: n,
|
|
443
657
|
rootState: o,
|
|
444
658
|
rootSetState: r,
|
|
445
659
|
context: t
|
|
446
|
-
}), i =
|
|
660
|
+
}), i = Tn(i, o.locale), i;
|
|
447
661
|
}
|
|
448
|
-
function
|
|
662
|
+
function Ie(e) {
|
|
449
663
|
const t = e || (T() ? window.location.search : void 0);
|
|
450
664
|
return t ? Ye(t).indexOf("builder.preview=") !== -1 : !1;
|
|
451
665
|
}
|
|
452
|
-
const
|
|
666
|
+
const En = (e) => ({
|
|
453
667
|
type: "builder.registerComponent",
|
|
454
|
-
data:
|
|
455
|
-
}),
|
|
668
|
+
data: le(e)
|
|
669
|
+
}), An = (e) => {
|
|
456
670
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
457
671
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
458
672
|
};
|
|
459
|
-
function
|
|
460
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
673
|
+
function le(e) {
|
|
674
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? An(n) : n));
|
|
461
675
|
}
|
|
462
|
-
const
|
|
463
|
-
function
|
|
464
|
-
e === "plugin" && (t =
|
|
465
|
-
let n =
|
|
466
|
-
if (n || (n =
|
|
676
|
+
const De = {};
|
|
677
|
+
function ks(e, t) {
|
|
678
|
+
e === "plugin" && (t = le(t));
|
|
679
|
+
let n = De[e];
|
|
680
|
+
if (n || (n = De[e] = []), n.push(t), T()) {
|
|
467
681
|
const o = {
|
|
468
682
|
type: "builder.register",
|
|
469
683
|
data: {
|
|
@@ -478,7 +692,7 @@ function Ss(e, t) {
|
|
|
478
692
|
}
|
|
479
693
|
}
|
|
480
694
|
}
|
|
481
|
-
function
|
|
695
|
+
function Cs(e) {
|
|
482
696
|
var t;
|
|
483
697
|
if (T()) {
|
|
484
698
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -488,231 +702,33 @@ function ks(e) {
|
|
|
488
702
|
}, "*");
|
|
489
703
|
}
|
|
490
704
|
}
|
|
491
|
-
const
|
|
492
|
-
function
|
|
705
|
+
const Oe = {};
|
|
706
|
+
function Ts(e) {
|
|
493
707
|
if (T()) {
|
|
494
|
-
Object.assign(
|
|
708
|
+
Object.assign(Oe, e);
|
|
495
709
|
const t = {
|
|
496
710
|
type: "builder.settingsChange",
|
|
497
|
-
data:
|
|
711
|
+
data: Oe
|
|
498
712
|
};
|
|
499
713
|
parent.postMessage(t, "*");
|
|
500
714
|
}
|
|
501
715
|
}
|
|
502
|
-
const
|
|
716
|
+
const xe = "builder.", Pn = "options.", lt = (e) => {
|
|
503
717
|
if (!e)
|
|
504
718
|
return {};
|
|
505
719
|
const t = Qe(e), n = {};
|
|
506
720
|
return Object.keys(t).forEach((o) => {
|
|
507
|
-
if (o.startsWith(
|
|
508
|
-
const r = o.replace(
|
|
721
|
+
if (o.startsWith(xe)) {
|
|
722
|
+
const r = o.replace(xe, "").replace(Pn, "");
|
|
509
723
|
n[r] = t[o];
|
|
510
724
|
}
|
|
511
725
|
}), n;
|
|
512
|
-
},
|
|
726
|
+
}, Bn = () => {
|
|
513
727
|
if (!T())
|
|
514
728
|
return {};
|
|
515
729
|
const e = new URLSearchParams(window.location.search);
|
|
516
|
-
return
|
|
517
|
-
},
|
|
518
|
-
"X-Builder-SDK": R,
|
|
519
|
-
"X-Builder-SDK-GEN": "2",
|
|
520
|
-
"X-Builder-SDK-Version": nt
|
|
521
|
-
}), gn = (e) => {
|
|
522
|
-
if (e === "localhost" || e === "127.0.0.1")
|
|
523
|
-
return e;
|
|
524
|
-
const t = e.split(".");
|
|
525
|
-
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
526
|
-
}, de = ({
|
|
527
|
-
name: e,
|
|
528
|
-
canTrack: t
|
|
529
|
-
}) => {
|
|
530
|
-
var n;
|
|
531
|
-
try {
|
|
532
|
-
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
533
|
-
} catch (o) {
|
|
534
|
-
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
}, rt = async (e) => de(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), vn = [["secure", ""], ["SameSite", "None"]], Sn = ({
|
|
538
|
-
name: e,
|
|
539
|
-
value: t,
|
|
540
|
-
expires: n
|
|
541
|
-
}) => {
|
|
542
|
-
const r = (T() ? location.protocol === "https:" : !0) ? vn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gn(window.location.hostname)], ...r];
|
|
543
|
-
return yn(s);
|
|
544
|
-
}, we = async ({
|
|
545
|
-
name: e,
|
|
546
|
-
value: t,
|
|
547
|
-
expires: n,
|
|
548
|
-
canTrack: o
|
|
549
|
-
}) => {
|
|
550
|
-
try {
|
|
551
|
-
if (!o)
|
|
552
|
-
return;
|
|
553
|
-
const r = Sn({
|
|
554
|
-
name: e,
|
|
555
|
-
value: t,
|
|
556
|
-
expires: n
|
|
557
|
-
});
|
|
558
|
-
document.cookie = r;
|
|
559
|
-
} catch (r) {
|
|
560
|
-
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
function kn() {
|
|
564
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
565
|
-
const t = Math.random() * 16 | 0;
|
|
566
|
-
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
function it() {
|
|
570
|
-
return kn().replace(/-/g, "");
|
|
571
|
-
}
|
|
572
|
-
const st = "builderSessionId", Cn = async ({
|
|
573
|
-
canTrack: e
|
|
574
|
-
}) => {
|
|
575
|
-
if (!e)
|
|
576
|
-
return;
|
|
577
|
-
const t = await rt({
|
|
578
|
-
name: st,
|
|
579
|
-
canTrack: e
|
|
580
|
-
});
|
|
581
|
-
if (K(t))
|
|
582
|
-
return t;
|
|
583
|
-
{
|
|
584
|
-
const n = Tn();
|
|
585
|
-
return wn({
|
|
586
|
-
id: n,
|
|
587
|
-
canTrack: e
|
|
588
|
-
}), n;
|
|
589
|
-
}
|
|
590
|
-
}, Tn = () => it(), wn = ({
|
|
591
|
-
id: e,
|
|
592
|
-
canTrack: t
|
|
593
|
-
}) => we({
|
|
594
|
-
name: st,
|
|
595
|
-
value: e,
|
|
596
|
-
canTrack: t
|
|
597
|
-
}), at = () => T() && typeof localStorage < "u" ? localStorage : void 0, In = ({
|
|
598
|
-
key: e,
|
|
599
|
-
canTrack: t
|
|
600
|
-
}) => {
|
|
601
|
-
var n;
|
|
602
|
-
try {
|
|
603
|
-
return t ? (n = at()) == null ? void 0 : n.getItem(e) : void 0;
|
|
604
|
-
} catch (o) {
|
|
605
|
-
console.debug("[LocalStorage] GET error: ", o);
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
|
-
}, $n = ({
|
|
609
|
-
key: e,
|
|
610
|
-
canTrack: t,
|
|
611
|
-
value: n
|
|
612
|
-
}) => {
|
|
613
|
-
var o;
|
|
614
|
-
try {
|
|
615
|
-
t && ((o = at()) == null || o.setItem(e, n));
|
|
616
|
-
} catch (r) {
|
|
617
|
-
console.debug("[LocalStorage] SET error: ", r);
|
|
618
|
-
}
|
|
619
|
-
}, lt = "builderVisitorId", Rn = ({
|
|
620
|
-
canTrack: e
|
|
621
|
-
}) => {
|
|
622
|
-
if (!e)
|
|
623
|
-
return;
|
|
624
|
-
const t = In({
|
|
625
|
-
key: lt,
|
|
626
|
-
canTrack: e
|
|
627
|
-
});
|
|
628
|
-
if (K(t))
|
|
629
|
-
return t;
|
|
630
|
-
{
|
|
631
|
-
const n = En();
|
|
632
|
-
return An({
|
|
633
|
-
id: n,
|
|
634
|
-
canTrack: e
|
|
635
|
-
}), n;
|
|
636
|
-
}
|
|
637
|
-
}, En = () => it(), An = ({
|
|
638
|
-
id: e,
|
|
639
|
-
canTrack: t
|
|
640
|
-
}) => $n({
|
|
641
|
-
key: lt,
|
|
642
|
-
value: e,
|
|
643
|
-
canTrack: t
|
|
644
|
-
});
|
|
645
|
-
function Ie(e) {
|
|
646
|
-
var t;
|
|
647
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
648
|
-
}
|
|
649
|
-
const Pn = async ({
|
|
650
|
-
canTrack: e
|
|
651
|
-
}) => {
|
|
652
|
-
if (!e)
|
|
653
|
-
return {
|
|
654
|
-
visitorId: void 0,
|
|
655
|
-
sessionId: void 0
|
|
656
|
-
};
|
|
657
|
-
const t = await Cn({
|
|
658
|
-
canTrack: e
|
|
659
|
-
}), n = Rn({
|
|
660
|
-
canTrack: e
|
|
661
|
-
});
|
|
662
|
-
return {
|
|
663
|
-
sessionId: t,
|
|
664
|
-
visitorId: n
|
|
665
|
-
};
|
|
666
|
-
}, Bn = async ({
|
|
667
|
-
type: e,
|
|
668
|
-
canTrack: t,
|
|
669
|
-
apiKey: n,
|
|
670
|
-
metadata: o,
|
|
671
|
-
...r
|
|
672
|
-
}) => ({
|
|
673
|
-
type: e,
|
|
674
|
-
data: {
|
|
675
|
-
...r,
|
|
676
|
-
metadata: {
|
|
677
|
-
url: location.href,
|
|
678
|
-
...o
|
|
679
|
-
},
|
|
680
|
-
...await Pn({
|
|
681
|
-
canTrack: t
|
|
682
|
-
}),
|
|
683
|
-
userAttributes: Xe(),
|
|
684
|
-
ownerId: n
|
|
685
|
-
}
|
|
686
|
-
});
|
|
687
|
-
async function ye({
|
|
688
|
-
apiHost: e,
|
|
689
|
-
...t
|
|
690
|
-
}) {
|
|
691
|
-
if (!t.apiKey) {
|
|
692
|
-
B.error("Missing API key for track call. Please provide your API key.");
|
|
693
|
-
return;
|
|
694
|
-
}
|
|
695
|
-
if (!t.canTrack || A() || !(T() || R === "reactNative"))
|
|
696
|
-
return;
|
|
697
|
-
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
698
|
-
return Ie(o), fetch(o, {
|
|
699
|
-
method: "POST",
|
|
700
|
-
body: JSON.stringify({
|
|
701
|
-
events: [await Bn(t)]
|
|
702
|
-
}),
|
|
703
|
-
headers: {
|
|
704
|
-
"content-type": "application/json",
|
|
705
|
-
...ot()
|
|
706
|
-
},
|
|
707
|
-
mode: "cors"
|
|
708
|
-
}).catch((r) => {
|
|
709
|
-
console.error("Failed to track: ", r);
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
const Ts = (e) => ye({
|
|
713
|
-
...e,
|
|
714
|
-
canTrack: !0
|
|
715
|
-
}), Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
730
|
+
return lt(e);
|
|
731
|
+
}, Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
716
732
|
function ct(e, t) {
|
|
717
733
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
718
734
|
return !1;
|
|
@@ -726,7 +742,7 @@ const dt = (e) => {
|
|
|
726
742
|
type: "builder.sdkInfo",
|
|
727
743
|
data: {
|
|
728
744
|
target: R,
|
|
729
|
-
version:
|
|
745
|
+
version: Ze,
|
|
730
746
|
supportsPatchUpdates: !1,
|
|
731
747
|
// Supports builder-model="..." attribute which is needed to
|
|
732
748
|
// scope our '+ add block' button styling
|
|
@@ -845,24 +861,24 @@ const dt = (e) => {
|
|
|
845
861
|
return window.addEventListener("message", r), () => {
|
|
846
862
|
window.removeEventListener("message", r);
|
|
847
863
|
};
|
|
848
|
-
}, Nn = "builder.tests", $e = (e) => `${Nn}.${e}`,
|
|
864
|
+
}, Nn = "builder.tests", $e = (e) => `${Nn}.${e}`, Wn = ({
|
|
849
865
|
contentId: e
|
|
850
|
-
}) =>
|
|
866
|
+
}) => et({
|
|
851
867
|
name: $e(e),
|
|
852
868
|
canTrack: !0
|
|
853
|
-
}),
|
|
869
|
+
}), Dn = ({
|
|
854
870
|
contentId: e
|
|
855
|
-
}) =>
|
|
871
|
+
}) => ue({
|
|
856
872
|
name: $e(e),
|
|
857
873
|
canTrack: !0
|
|
858
|
-
}),
|
|
874
|
+
}), On = ({
|
|
859
875
|
contentId: e,
|
|
860
876
|
value: t
|
|
861
|
-
}) =>
|
|
877
|
+
}) => Ce({
|
|
862
878
|
name: $e(e),
|
|
863
879
|
value: t,
|
|
864
880
|
canTrack: !0
|
|
865
|
-
}), pt = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0,
|
|
881
|
+
}), pt = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, xn = ({
|
|
866
882
|
id: e,
|
|
867
883
|
variations: t
|
|
868
884
|
}) => {
|
|
@@ -876,8 +892,8 @@ const dt = (e) => {
|
|
|
876
892
|
}
|
|
877
893
|
return e;
|
|
878
894
|
}, mt = (e) => {
|
|
879
|
-
const t =
|
|
880
|
-
return
|
|
895
|
+
const t = xn(e);
|
|
896
|
+
return On({
|
|
881
897
|
contentId: e.id,
|
|
882
898
|
value: t
|
|
883
899
|
}).catch((n) => {
|
|
@@ -907,7 +923,7 @@ const dt = (e) => {
|
|
|
907
923
|
return;
|
|
908
924
|
if (!pt(e))
|
|
909
925
|
return e;
|
|
910
|
-
const n =
|
|
926
|
+
const n = Dn({
|
|
911
927
|
contentId: e.id
|
|
912
928
|
}) || mt({
|
|
913
929
|
variations: e.variations,
|
|
@@ -926,7 +942,7 @@ const dt = (e) => {
|
|
|
926
942
|
}) => {
|
|
927
943
|
if (!t || !pt(e))
|
|
928
944
|
return e;
|
|
929
|
-
const o = await
|
|
945
|
+
const o = await Wn({
|
|
930
946
|
contentId: e.id
|
|
931
947
|
}) || mt({
|
|
932
948
|
variations: e.variations,
|
|
@@ -952,14 +968,14 @@ function Fe() {
|
|
|
952
968
|
...this.getUserAttributes(),
|
|
953
969
|
...n
|
|
954
970
|
};
|
|
955
|
-
|
|
971
|
+
Ce({
|
|
956
972
|
name: Le,
|
|
957
973
|
value: JSON.stringify(o),
|
|
958
974
|
canTrack: e
|
|
959
975
|
}), t.forEach((r) => r(o));
|
|
960
976
|
},
|
|
961
977
|
getUserAttributes() {
|
|
962
|
-
return T() ? JSON.parse(
|
|
978
|
+
return T() ? JSON.parse(ue({
|
|
963
979
|
name: Le,
|
|
964
980
|
canTrack: e
|
|
965
981
|
}) || "{}") : {};
|
|
@@ -978,11 +994,11 @@ function Fe() {
|
|
|
978
994
|
}
|
|
979
995
|
let ve;
|
|
980
996
|
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Fe()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Fe();
|
|
981
|
-
const
|
|
982
|
-
|
|
997
|
+
const ce = ve, Is = (e) => {
|
|
998
|
+
ce.setUserAttributes(e);
|
|
983
999
|
}, G = (e) => {
|
|
984
1000
|
const t = K(e) ? e : !0;
|
|
985
|
-
return
|
|
1001
|
+
return ce.setCanTrack(t), t;
|
|
986
1002
|
};
|
|
987
1003
|
function Fn() {
|
|
988
1004
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
@@ -1051,31 +1067,31 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1051
1067
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
1052
1068
|
const U = t !== 1, V = P || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
|
|
1053
1069
|
w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(U)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l);
|
|
1054
|
-
let
|
|
1070
|
+
let D = n || {};
|
|
1055
1071
|
if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1056
|
-
const
|
|
1072
|
+
const O = Se({
|
|
1057
1073
|
sort: b
|
|
1058
1074
|
});
|
|
1059
|
-
for (const H in
|
|
1060
|
-
w.searchParams.set(H, JSON.stringify(
|
|
1075
|
+
for (const H in O)
|
|
1076
|
+
w.searchParams.set(H, JSON.stringify(O[H]));
|
|
1061
1077
|
}
|
|
1062
1078
|
const J = {
|
|
1063
|
-
...
|
|
1079
|
+
...Bn(),
|
|
1064
1080
|
...Qe(e.options || {})
|
|
1065
1081
|
};
|
|
1066
|
-
|
|
1067
|
-
...
|
|
1082
|
+
D = {
|
|
1083
|
+
...D,
|
|
1068
1084
|
...zn(J)
|
|
1069
1085
|
};
|
|
1070
1086
|
const Q = Se(J);
|
|
1071
|
-
for (const
|
|
1072
|
-
w.searchParams.set(
|
|
1073
|
-
if (Object.keys(
|
|
1074
|
-
const
|
|
1087
|
+
for (const O in Q)
|
|
1088
|
+
w.searchParams.set(O, String(Q[O]));
|
|
1089
|
+
if (Object.keys(D).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(D)), o) {
|
|
1090
|
+
const O = ft({
|
|
1075
1091
|
query: o
|
|
1076
1092
|
});
|
|
1077
|
-
for (const H in
|
|
1078
|
-
w.searchParams.set(H, JSON.stringify(
|
|
1093
|
+
for (const H in O)
|
|
1094
|
+
w.searchParams.set(H, JSON.stringify(O[H]));
|
|
1079
1095
|
}
|
|
1080
1096
|
return w;
|
|
1081
1097
|
}, qn = (e) => {
|
|
@@ -1112,7 +1128,7 @@ const Jn = async (e) => {
|
|
|
1112
1128
|
...e.fetchOptions,
|
|
1113
1129
|
headers: {
|
|
1114
1130
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1115
|
-
...
|
|
1131
|
+
..._e()
|
|
1116
1132
|
}
|
|
1117
1133
|
};
|
|
1118
1134
|
return await (await n(t.href, o)).json();
|
|
@@ -1155,7 +1171,7 @@ const $s = async (e) => {
|
|
|
1155
1171
|
urlPath: t
|
|
1156
1172
|
} : {}
|
|
1157
1173
|
},
|
|
1158
|
-
options:
|
|
1174
|
+
options: lt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1159
1175
|
};
|
|
1160
1176
|
return {
|
|
1161
1177
|
apiKey: n.apiKey,
|
|
@@ -1175,7 +1191,7 @@ function Xn(e, t, n = {}) {
|
|
|
1175
1191
|
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
|
|
1176
1192
|
};
|
|
1177
1193
|
}
|
|
1178
|
-
function
|
|
1194
|
+
function Z(e, ...t) {
|
|
1179
1195
|
const n = Object(e);
|
|
1180
1196
|
for (let o = 1; o < arguments.length; o++) {
|
|
1181
1197
|
const r = arguments[o];
|
|
@@ -1185,7 +1201,7 @@ function _(e, ...t) {
|
|
|
1185
1201
|
}
|
|
1186
1202
|
return n;
|
|
1187
1203
|
}
|
|
1188
|
-
function
|
|
1204
|
+
function Zn(e) {
|
|
1189
1205
|
for (const t of e)
|
|
1190
1206
|
switch (t.trigger) {
|
|
1191
1207
|
case "pageLoad":
|
|
@@ -1200,12 +1216,12 @@ function bt(e) {
|
|
|
1200
1216
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1201
1217
|
}
|
|
1202
1218
|
function gt(e, t) {
|
|
1203
|
-
const n =
|
|
1219
|
+
const n = _n(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1204
1220
|
for (const l of s)
|
|
1205
1221
|
for (const a of n)
|
|
1206
1222
|
a in l || (l[a] = o[a]);
|
|
1207
1223
|
}
|
|
1208
|
-
function
|
|
1224
|
+
function _n(e) {
|
|
1209
1225
|
const t = [];
|
|
1210
1226
|
for (const n of e.steps)
|
|
1211
1227
|
for (const o in n.styles)
|
|
@@ -1219,8 +1235,8 @@ function yt(e) {
|
|
|
1219
1235
|
return;
|
|
1220
1236
|
}
|
|
1221
1237
|
Array.from(t).forEach((n) => {
|
|
1222
|
-
gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
1223
|
-
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1238
|
+
gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1239
|
+
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1224
1240
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1225
1241
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1226
1242
|
});
|
|
@@ -1237,10 +1253,10 @@ function eo(e) {
|
|
|
1237
1253
|
let o = !1, r = !1;
|
|
1238
1254
|
function i() {
|
|
1239
1255
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1240
|
-
|
|
1256
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1241
1257
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1242
1258
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1243
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1259
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
|
|
1244
1260
|
}
|
|
1245
1261
|
const s = Xn(i, 200, {
|
|
1246
1262
|
leading: !1
|
|
@@ -1251,7 +1267,7 @@ function eo(e) {
|
|
|
1251
1267
|
}
|
|
1252
1268
|
const a = e.steps[0].styles;
|
|
1253
1269
|
function u() {
|
|
1254
|
-
|
|
1270
|
+
Z(n.style, a);
|
|
1255
1271
|
}
|
|
1256
1272
|
u(), setTimeout(() => {
|
|
1257
1273
|
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -1379,22 +1395,22 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1379
1395
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1380
1396
|
e
|
|
1381
1397
|
), e;
|
|
1382
|
-
}), po = () => import("./block-wrapper-
|
|
1398
|
+
}), po = () => import("./block-wrapper-2d_iPFQQ.js").then((e) => e.default).catch((e) => {
|
|
1383
1399
|
throw console.error(
|
|
1384
1400
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1385
1401
|
e
|
|
1386
1402
|
), e;
|
|
1387
|
-
}), mo = () => import("./component-ref-
|
|
1403
|
+
}), mo = () => import("./component-ref-YEfZKvMy.js").then((e) => e.default).catch((e) => {
|
|
1388
1404
|
throw console.error(
|
|
1389
1405
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1390
1406
|
e
|
|
1391
1407
|
), e;
|
|
1392
|
-
}), ho = () => import("./repeated-block-
|
|
1408
|
+
}), ho = () => import("./repeated-block-A24n6o-E.js").then((e) => e.default).catch((e) => {
|
|
1393
1409
|
throw console.error(
|
|
1394
1410
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1395
1411
|
e
|
|
1396
1412
|
), e;
|
|
1397
|
-
}), fo = () => import("./style-wrapper-
|
|
1413
|
+
}), fo = () => import("./style-wrapper-tibcUSpL.js").then((e) => e.default).catch((e) => {
|
|
1398
1414
|
throw console.error(
|
|
1399
1415
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1400
1416
|
e
|
|
@@ -1420,7 +1436,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1420
1436
|
},
|
|
1421
1437
|
mounted() {
|
|
1422
1438
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1423
|
-
t && e &&
|
|
1439
|
+
t && e && Zn(
|
|
1424
1440
|
t.map((n) => ({
|
|
1425
1441
|
...n,
|
|
1426
1442
|
elementId: e
|
|
@@ -1438,7 +1454,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1438
1454
|
},
|
|
1439
1455
|
processedBlock() {
|
|
1440
1456
|
var t;
|
|
1441
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1457
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Rn({
|
|
1442
1458
|
block: this.block,
|
|
1443
1459
|
localState: this.context.localState,
|
|
1444
1460
|
rootState: this.context.rootState,
|
|
@@ -1474,7 +1490,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1474
1490
|
blockChildren: this.processedBlock.children ?? [],
|
|
1475
1491
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1476
1492
|
componentOptions: {
|
|
1477
|
-
...
|
|
1493
|
+
...yn(this.processedBlock, this.context),
|
|
1478
1494
|
...ao(this.blockComponent, this.processedBlock),
|
|
1479
1495
|
...lo(this.blockComponent, this.context),
|
|
1480
1496
|
...io(this.blockComponent, this.linkComponent),
|
|
@@ -1535,7 +1551,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1535
1551
|
block: e.processedBlock,
|
|
1536
1552
|
context: e.context
|
|
1537
1553
|
}, {
|
|
1538
|
-
default:
|
|
1554
|
+
default: x(() => [
|
|
1539
1555
|
E(l, {
|
|
1540
1556
|
componentRef: e.componentRefProps.componentRef,
|
|
1541
1557
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1644,7 +1660,7 @@ function vo(e, t, n, o, r, i) {
|
|
|
1644
1660
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1645
1661
|
onKeyPress: (s) => e.onClick()
|
|
1646
1662
|
}, { ...e.BlocksWrapperProps }), {
|
|
1647
|
-
default:
|
|
1663
|
+
default: x(() => [
|
|
1648
1664
|
N(e.$slots, "default", {}, void 0, !0)
|
|
1649
1665
|
]),
|
|
1650
1666
|
_: 3
|
|
@@ -1665,7 +1681,7 @@ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6
|
|
|
1665
1681
|
"registeredComponents"
|
|
1666
1682
|
],
|
|
1667
1683
|
inject: {
|
|
1668
|
-
builderContext:
|
|
1684
|
+
builderContext: ge.key,
|
|
1669
1685
|
componentsContext: Ge.key
|
|
1670
1686
|
}
|
|
1671
1687
|
});
|
|
@@ -1681,7 +1697,7 @@ function Co(e, t, n, o, r, i) {
|
|
|
1681
1697
|
classNameProp: e.className,
|
|
1682
1698
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
|
|
1683
1699
|
}, {
|
|
1684
|
-
default:
|
|
1700
|
+
default: x(() => [
|
|
1685
1701
|
N(e.$slots, "default"),
|
|
1686
1702
|
e.blocks ? (d(!0), h(I, { key: 0 }, F(e.blocks, (c, m) => {
|
|
1687
1703
|
var b;
|
|
@@ -1709,7 +1725,7 @@ function wo(e, t, n, o, r, i) {
|
|
|
1709
1725
|
const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1710
1726
|
__proto__: null,
|
|
1711
1727
|
default: te
|
|
1712
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1728
|
+
}, Symbol.toStringTag, { value: "Module" })), pe = y({
|
|
1713
1729
|
render() {
|
|
1714
1730
|
return ze("style", {
|
|
1715
1731
|
innerHTML: this.styles,
|
|
@@ -1741,7 +1757,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1741
1757
|
max: 1200
|
|
1742
1758
|
}
|
|
1743
1759
|
}, Ps = (e, t = Tt) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
|
|
1744
|
-
const t =
|
|
1760
|
+
const t = we(Tt);
|
|
1745
1761
|
if (!e)
|
|
1746
1762
|
return t;
|
|
1747
1763
|
const {
|
|
@@ -1781,7 +1797,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1781
1797
|
}, Ro = (e) => `builder-columns ${e}-breakpoints`, Eo = y({
|
|
1782
1798
|
name: "builder-columns",
|
|
1783
1799
|
components: {
|
|
1784
|
-
InlinedStyles:
|
|
1800
|
+
InlinedStyles: pe,
|
|
1785
1801
|
DynamicRenderer: ke,
|
|
1786
1802
|
Blocks: q,
|
|
1787
1803
|
DynamicDiv: te
|
|
@@ -1938,7 +1954,7 @@ function Ao(e, t, n, o, r, i) {
|
|
|
1938
1954
|
actionAttributes: {},
|
|
1939
1955
|
attributes: e.getAttributes(p, f)
|
|
1940
1956
|
}, {
|
|
1941
|
-
default:
|
|
1957
|
+
default: x(() => [
|
|
1942
1958
|
E(l, {
|
|
1943
1959
|
path: `columns.${f}.blocks`,
|
|
1944
1960
|
parent: e.builderBlock.id,
|
|
@@ -1968,11 +1984,11 @@ const No = /* @__PURE__ */ v(Bo, [["render", Vo]]);
|
|
|
1968
1984
|
function Me(e) {
|
|
1969
1985
|
return e.replace(/http(s)?:/, "");
|
|
1970
1986
|
}
|
|
1971
|
-
function
|
|
1987
|
+
function Wo(e = "", t, n) {
|
|
1972
1988
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1973
1989
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1974
1990
|
}
|
|
1975
|
-
function
|
|
1991
|
+
function Do(e, t) {
|
|
1976
1992
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1977
1993
|
return e;
|
|
1978
1994
|
if (t === "master")
|
|
@@ -1991,11 +2007,11 @@ function oe(e) {
|
|
|
1991
2007
|
if (e.match(/builder\.io/)) {
|
|
1992
2008
|
let n = e;
|
|
1993
2009
|
const o = Number(e.split("?width=")[1]);
|
|
1994
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
2010
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Wo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1995
2011
|
}
|
|
1996
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
2012
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Do(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1997
2013
|
}
|
|
1998
|
-
const
|
|
2014
|
+
const Oo = y({
|
|
1999
2015
|
name: "builder-image",
|
|
2000
2016
|
props: [
|
|
2001
2017
|
"lazy",
|
|
@@ -2046,7 +2062,7 @@ const Do = y({
|
|
|
2046
2062
|
return this.aspectRatio ? e : void 0;
|
|
2047
2063
|
}
|
|
2048
2064
|
}
|
|
2049
|
-
}),
|
|
2065
|
+
}), xo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Lo = {
|
|
2050
2066
|
key: 2,
|
|
2051
2067
|
class: "div-t43jfuqn6g-2"
|
|
2052
2068
|
};
|
|
@@ -2058,7 +2074,7 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2058
2074
|
key: 0,
|
|
2059
2075
|
type: "image/webp",
|
|
2060
2076
|
srcset: e.webpSrcSet
|
|
2061
|
-
}, null, 8,
|
|
2077
|
+
}, null, 8, xo)) : C("", !0),
|
|
2062
2078
|
z("img", {
|
|
2063
2079
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2064
2080
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -2070,7 +2086,7 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2070
2086
|
objectFit: e.backgroundSize || "cover",
|
|
2071
2087
|
...e.aspectRatioCss
|
|
2072
2088
|
}),
|
|
2073
|
-
class:
|
|
2089
|
+
class: _(
|
|
2074
2090
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
2075
2091
|
),
|
|
2076
2092
|
src: e.image,
|
|
@@ -2091,11 +2107,11 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2091
2107
|
])) : C("", !0)
|
|
2092
2108
|
], 64);
|
|
2093
2109
|
}
|
|
2094
|
-
const Ho = /* @__PURE__ */ v(
|
|
2110
|
+
const Ho = /* @__PURE__ */ v(Oo, [["render", Fo], ["__scopeId", "data-v-741b9bbc"]]), Mo = y({
|
|
2095
2111
|
name: "builder-section-component",
|
|
2096
2112
|
props: ["attributes", "maxWidth"],
|
|
2097
2113
|
data() {
|
|
2098
|
-
return { filterAttrs:
|
|
2114
|
+
return { filterAttrs: W };
|
|
2099
2115
|
}
|
|
2100
2116
|
});
|
|
2101
2117
|
function jo(e, t, n, o, r, i) {
|
|
@@ -2377,11 +2393,11 @@ function Xo({
|
|
|
2377
2393
|
}
|
|
2378
2394
|
return i;
|
|
2379
2395
|
}
|
|
2380
|
-
const
|
|
2396
|
+
const Zo = () => `
|
|
2381
2397
|
window.${Qo} = ${Go}
|
|
2382
2398
|
window.${wt} = ${zo}
|
|
2383
2399
|
window.${It} = ${Jo}
|
|
2384
|
-
`, Et = R === "react",
|
|
2400
|
+
`, Et = R === "react", _o = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, me = {
|
|
2385
2401
|
"@type": "@builder.io/sdk:Element",
|
|
2386
2402
|
layerName: "Accordion item title",
|
|
2387
2403
|
responsiveStyles: {
|
|
@@ -2410,7 +2426,7 @@ const _o = () => `
|
|
|
2410
2426
|
}
|
|
2411
2427
|
}
|
|
2412
2428
|
}]
|
|
2413
|
-
},
|
|
2429
|
+
}, he = {
|
|
2414
2430
|
"@type": "@builder.io/sdk:Element",
|
|
2415
2431
|
layerName: "Accordion item detail",
|
|
2416
2432
|
responsiveStyles: {
|
|
@@ -2458,19 +2474,19 @@ const _o = () => `
|
|
|
2458
2474
|
name: "title",
|
|
2459
2475
|
type: "uiBlocks",
|
|
2460
2476
|
hideFromUI: !0,
|
|
2461
|
-
defaultValue: [
|
|
2477
|
+
defaultValue: [me]
|
|
2462
2478
|
}, {
|
|
2463
2479
|
name: "detail",
|
|
2464
2480
|
type: "uiBlocks",
|
|
2465
2481
|
hideFromUI: !0,
|
|
2466
|
-
defaultValue: [
|
|
2482
|
+
defaultValue: [he]
|
|
2467
2483
|
}],
|
|
2468
2484
|
defaultValue: [{
|
|
2469
|
-
title: [
|
|
2470
|
-
detail: [
|
|
2485
|
+
title: [me],
|
|
2486
|
+
detail: [he]
|
|
2471
2487
|
}, {
|
|
2472
|
-
title: [
|
|
2473
|
-
detail: [
|
|
2488
|
+
title: [me],
|
|
2489
|
+
detail: [he]
|
|
2474
2490
|
}],
|
|
2475
2491
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2476
2492
|
}, {
|
|
@@ -2609,7 +2625,7 @@ function ir(e, t, n, o, r, i) {
|
|
|
2609
2625
|
}, [
|
|
2610
2626
|
(d(!0), h(I, null, F(e.items, (l, a) => (d(), h(I, { key: a }, [
|
|
2611
2627
|
z("div", {
|
|
2612
|
-
class:
|
|
2628
|
+
class: _(e.getAccordionTitleClassName(a)),
|
|
2613
2629
|
style: M({
|
|
2614
2630
|
...e.accordionTitleStyles,
|
|
2615
2631
|
...e.grid && {
|
|
@@ -2631,7 +2647,7 @@ function ir(e, t, n, o, r, i) {
|
|
|
2631
2647
|
], 14, rr),
|
|
2632
2648
|
e.open.includes(a) ? (d(), h("div", {
|
|
2633
2649
|
key: 0,
|
|
2634
|
-
class:
|
|
2650
|
+
class: _(e.getAccordionDetailClassName(a)),
|
|
2635
2651
|
style: M(e.accordionDetailStyles)
|
|
2636
2652
|
}, [
|
|
2637
2653
|
E(s, {
|
|
@@ -3057,7 +3073,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3057
3073
|
name: "builder-personalization-container",
|
|
3058
3074
|
components: {
|
|
3059
3075
|
Blocks: q,
|
|
3060
|
-
InlinedStyles:
|
|
3076
|
+
InlinedStyles: pe,
|
|
3061
3077
|
InlinedScript: Be
|
|
3062
3078
|
},
|
|
3063
3079
|
props: [
|
|
@@ -3071,8 +3087,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3071
3087
|
data() {
|
|
3072
3088
|
var e, t, n, o, r, i, s;
|
|
3073
3089
|
return {
|
|
3074
|
-
userAttributes:
|
|
3075
|
-
scriptStr:
|
|
3090
|
+
userAttributes: ce.getUserAttributes(),
|
|
3091
|
+
scriptStr: _o(
|
|
3076
3092
|
this.variants,
|
|
3077
3093
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3078
3094
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
@@ -3096,7 +3112,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3096
3112
|
mounted() {
|
|
3097
3113
|
var t;
|
|
3098
3114
|
this.shouldResetVariants = !0;
|
|
3099
|
-
const e =
|
|
3115
|
+
const e = ce.subscribeOnUserAttributesChange(
|
|
3100
3116
|
(n) => {
|
|
3101
3117
|
this.userAttributes = n;
|
|
3102
3118
|
},
|
|
@@ -3104,7 +3120,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3104
3120
|
fireImmediately: R === "qwik"
|
|
3105
3121
|
}
|
|
3106
3122
|
);
|
|
3107
|
-
if (!(A() ||
|
|
3123
|
+
if (!(A() || Ie())) {
|
|
3108
3124
|
const n = this.filteredVariants[0];
|
|
3109
3125
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3110
3126
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -3137,8 +3153,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3137
3153
|
computed: {
|
|
3138
3154
|
attrs() {
|
|
3139
3155
|
return {
|
|
3140
|
-
...
|
|
3141
|
-
...
|
|
3156
|
+
...W(this.attributes, "v-on:", !1),
|
|
3157
|
+
...W(this.attributes, "v-on:", !0),
|
|
3142
3158
|
[j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
|
|
3143
3159
|
};
|
|
3144
3160
|
},
|
|
@@ -3206,29 +3222,29 @@ function hr(e, t, n, o, r, i) {
|
|
|
3206
3222
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3207
3223
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3208
3224
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3209
|
-
(d(!0), h(I, null, F(e.variants, (w,
|
|
3210
|
-
var J, Q,
|
|
3225
|
+
(d(!0), h(I, null, F(e.variants, (w, D) => {
|
|
3226
|
+
var J, Q, O, H;
|
|
3211
3227
|
return d(), S(s, {
|
|
3212
|
-
key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${
|
|
3228
|
+
key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${D}`,
|
|
3213
3229
|
BlocksWrapperProps: {
|
|
3214
3230
|
...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
|
|
3215
3231
|
"aria-hidden": !0,
|
|
3216
3232
|
hidden: !0,
|
|
3217
|
-
"data-variant-id": `${(
|
|
3233
|
+
"data-variant-id": `${(O = e.builderBlock) == null ? void 0 : O.id}-${D}`
|
|
3218
3234
|
},
|
|
3219
3235
|
blocks: w.blocks,
|
|
3220
3236
|
parent: (H = e.builderBlock) == null ? void 0 : H.id,
|
|
3221
|
-
path: `component.options.variants.${
|
|
3237
|
+
path: `component.options.variants.${D}.blocks`,
|
|
3222
3238
|
context: e.builderContext,
|
|
3223
3239
|
registeredComponents: e.builderComponents
|
|
3224
3240
|
}, {
|
|
3225
|
-
default:
|
|
3241
|
+
default: x(() => {
|
|
3226
3242
|
var Ve, Ne;
|
|
3227
3243
|
return [
|
|
3228
3244
|
E(a, {
|
|
3229
3245
|
nonce: ((Ve = e.builderContext) == null ? void 0 : Ve.nonce) || "",
|
|
3230
3246
|
scriptStr: e.scriptStr,
|
|
3231
|
-
id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${
|
|
3247
|
+
id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${D}`
|
|
3232
3248
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3233
3249
|
];
|
|
3234
3250
|
}),
|
|
@@ -3247,14 +3263,14 @@ function hr(e, t, n, o, r, i) {
|
|
|
3247
3263
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3248
3264
|
}
|
|
3249
3265
|
}, {
|
|
3250
|
-
default:
|
|
3251
|
-
var w,
|
|
3266
|
+
default: x(() => {
|
|
3267
|
+
var w, D;
|
|
3252
3268
|
return [
|
|
3253
3269
|
e.shouldRenderVariants ? (d(), S(a, {
|
|
3254
3270
|
key: 0,
|
|
3255
3271
|
nonce: ((w = e.builderContext) == null ? void 0 : w.nonce) || "",
|
|
3256
3272
|
scriptStr: e.scriptStr,
|
|
3257
|
-
id: `variants-script-${(
|
|
3273
|
+
id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${e.DEFAULT_INDEX}`
|
|
3258
3274
|
}, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
|
|
3259
3275
|
];
|
|
3260
3276
|
}),
|
|
@@ -3383,7 +3399,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3383
3399
|
builderComponents: !0,
|
|
3384
3400
|
builderLinkComponent: !0
|
|
3385
3401
|
}
|
|
3386
|
-
},
|
|
3402
|
+
}, fe = {
|
|
3387
3403
|
"@type": "@builder.io/sdk:Element",
|
|
3388
3404
|
responsiveStyles: {
|
|
3389
3405
|
large: {
|
|
@@ -3405,7 +3421,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3405
3421
|
text: "New tab"
|
|
3406
3422
|
}
|
|
3407
3423
|
}
|
|
3408
|
-
},
|
|
3424
|
+
}, be = {
|
|
3409
3425
|
"@type": "@builder.io/sdk:Element",
|
|
3410
3426
|
responsiveStyles: {
|
|
3411
3427
|
large: {
|
|
@@ -3431,16 +3447,16 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3431
3447
|
name: "label",
|
|
3432
3448
|
type: "uiBlocks",
|
|
3433
3449
|
hideFromUI: !0,
|
|
3434
|
-
defaultValue: [
|
|
3450
|
+
defaultValue: [fe]
|
|
3435
3451
|
}, {
|
|
3436
3452
|
name: "content",
|
|
3437
3453
|
type: "uiBlocks",
|
|
3438
3454
|
hideFromUI: !0,
|
|
3439
|
-
defaultValue: [
|
|
3455
|
+
defaultValue: [be]
|
|
3440
3456
|
}],
|
|
3441
3457
|
defaultValue: [{
|
|
3442
3458
|
label: [{
|
|
3443
|
-
...
|
|
3459
|
+
...fe,
|
|
3444
3460
|
component: {
|
|
3445
3461
|
name: "Text",
|
|
3446
3462
|
options: {
|
|
@@ -3449,7 +3465,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3449
3465
|
}
|
|
3450
3466
|
}],
|
|
3451
3467
|
content: [{
|
|
3452
|
-
...
|
|
3468
|
+
...be,
|
|
3453
3469
|
component: {
|
|
3454
3470
|
name: "Text",
|
|
3455
3471
|
options: {
|
|
@@ -3459,7 +3475,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3459
3475
|
}]
|
|
3460
3476
|
}, {
|
|
3461
3477
|
label: [{
|
|
3462
|
-
...
|
|
3478
|
+
...fe,
|
|
3463
3479
|
component: {
|
|
3464
3480
|
name: "Text",
|
|
3465
3481
|
options: {
|
|
@@ -3468,7 +3484,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3468
3484
|
}
|
|
3469
3485
|
}],
|
|
3470
3486
|
content: [{
|
|
3471
|
-
...
|
|
3487
|
+
...be,
|
|
3472
3488
|
component: {
|
|
3473
3489
|
name: "Text",
|
|
3474
3490
|
options: {
|
|
@@ -3567,7 +3583,7 @@ function $r(e, t, n, o, r, i) {
|
|
|
3567
3583
|
}, [
|
|
3568
3584
|
(d(!0), h(I, null, F(e.tabs, (l, a) => (d(), h("span", {
|
|
3569
3585
|
key: a,
|
|
3570
|
-
class:
|
|
3586
|
+
class: _(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3571
3587
|
style: M(e.getTabStyle(a)),
|
|
3572
3588
|
onClick: async (u) => e.onClick(a)
|
|
3573
3589
|
}, [
|
|
@@ -3647,7 +3663,7 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
|
|
|
3647
3663
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3648
3664
|
advanced: !0
|
|
3649
3665
|
}]
|
|
3650
|
-
},
|
|
3666
|
+
}, Wr = y({
|
|
3651
3667
|
name: "builder-custom-code",
|
|
3652
3668
|
props: ["code", "replaceNodes"],
|
|
3653
3669
|
data() {
|
|
@@ -3706,15 +3722,15 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
|
|
|
3706
3722
|
}
|
|
3707
3723
|
}
|
|
3708
3724
|
}
|
|
3709
|
-
}),
|
|
3710
|
-
function
|
|
3725
|
+
}), Dr = ["innerHTML"];
|
|
3726
|
+
function Or(e, t, n, o, r, i) {
|
|
3711
3727
|
return d(), h("div", {
|
|
3712
3728
|
ref: "elementRef",
|
|
3713
|
-
class:
|
|
3729
|
+
class: _("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3714
3730
|
innerHTML: e.code
|
|
3715
|
-
}, null, 10,
|
|
3731
|
+
}, null, 10, Dr);
|
|
3716
3732
|
}
|
|
3717
|
-
const
|
|
3733
|
+
const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
|
|
3718
3734
|
name: "Embed",
|
|
3719
3735
|
static: !0,
|
|
3720
3736
|
inputs: [{
|
|
@@ -4047,7 +4063,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4047
4063
|
formState: "unsubmitted",
|
|
4048
4064
|
responseData: null,
|
|
4049
4065
|
formErrorMessage: "",
|
|
4050
|
-
filterAttrs:
|
|
4066
|
+
filterAttrs: W
|
|
4051
4067
|
};
|
|
4052
4068
|
},
|
|
4053
4069
|
methods: {
|
|
@@ -4112,7 +4128,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4112
4128
|
else {
|
|
4113
4129
|
const c = {};
|
|
4114
4130
|
Array.from(l).forEach(({ value: m, key: b }) => {
|
|
4115
|
-
|
|
4131
|
+
at(c, b, m);
|
|
4116
4132
|
}), i = JSON.stringify(c);
|
|
4117
4133
|
}
|
|
4118
4134
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -4133,7 +4149,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4133
4149
|
const p = `${Gr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4134
4150
|
this.sendSubmissionsToEmail || ""
|
|
4135
4151
|
)}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4136
|
-
|
|
4152
|
+
Te(f), fetch(f, {
|
|
4137
4153
|
body: i,
|
|
4138
4154
|
headers: r,
|
|
4139
4155
|
method: this.method || "post"
|
|
@@ -4223,7 +4239,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4223
4239
|
blocks: e.sendingMessage,
|
|
4224
4240
|
context: e.builderContext
|
|
4225
4241
|
}, null, 8, ["blocks", "context"])) : C("", !0),
|
|
4226
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr,
|
|
4242
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr, de(e.errorResponse(e.responseData)), 1)) : C("", !0),
|
|
4227
4243
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4228
4244
|
key: 3,
|
|
4229
4245
|
path: "successMessage",
|
|
@@ -4232,7 +4248,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4232
4248
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
4233
4249
|
], 16, Qr);
|
|
4234
4250
|
}
|
|
4235
|
-
const
|
|
4251
|
+
const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c"]]), _r = {
|
|
4236
4252
|
name: "Form:Input",
|
|
4237
4253
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4238
4254
|
inputs: [
|
|
@@ -4295,7 +4311,7 @@ const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c
|
|
|
4295
4311
|
"required"
|
|
4296
4312
|
],
|
|
4297
4313
|
data() {
|
|
4298
|
-
return { isEditing: A, filterAttrs:
|
|
4314
|
+
return { isEditing: A, filterAttrs: W };
|
|
4299
4315
|
}
|
|
4300
4316
|
}), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4301
4317
|
function ni(e, t, n, o, r, i) {
|
|
@@ -4355,7 +4371,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4355
4371
|
name: "builder-select-component",
|
|
4356
4372
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4357
4373
|
data() {
|
|
4358
|
-
return { isEditing: A, filterAttrs:
|
|
4374
|
+
return { isEditing: A, filterAttrs: W };
|
|
4359
4375
|
}
|
|
4360
4376
|
}), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
|
|
4361
4377
|
function li(e, t, n, o, r, i) {
|
|
@@ -4369,7 +4385,7 @@ function li(e, t, n, o, r, i) {
|
|
|
4369
4385
|
(d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
|
|
4370
4386
|
key: `${s.name}-${l}`,
|
|
4371
4387
|
value: s.value
|
|
4372
|
-
},
|
|
4388
|
+
}, de(s.name || s.value), 9, ai))), 128))
|
|
4373
4389
|
], 16, si);
|
|
4374
4390
|
}
|
|
4375
4391
|
const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
@@ -4401,11 +4417,11 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
|
4401
4417
|
name: "builder-submit-button",
|
|
4402
4418
|
props: ["attributes", "text"],
|
|
4403
4419
|
data() {
|
|
4404
|
-
return { filterAttrs:
|
|
4420
|
+
return { filterAttrs: W };
|
|
4405
4421
|
}
|
|
4406
4422
|
});
|
|
4407
4423
|
function pi(e, t, n, o, r, i) {
|
|
4408
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
4424
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
|
|
4409
4425
|
}
|
|
4410
4426
|
const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
4411
4427
|
name: "Form:TextArea",
|
|
@@ -4454,7 +4470,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
|
4454
4470
|
"required"
|
|
4455
4471
|
],
|
|
4456
4472
|
data() {
|
|
4457
|
-
return { filterAttrs:
|
|
4473
|
+
return { filterAttrs: W };
|
|
4458
4474
|
}
|
|
4459
4475
|
}), bi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4460
4476
|
function gi(e, t, n, o, r, i) {
|
|
@@ -4533,8 +4549,8 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4533
4549
|
},
|
|
4534
4550
|
imgAttrs() {
|
|
4535
4551
|
const e = {
|
|
4536
|
-
...
|
|
4537
|
-
...
|
|
4552
|
+
...W(this.attributes, "v-on:", !1),
|
|
4553
|
+
...W(this.attributes, "v-on:", !0),
|
|
4538
4554
|
[j()]: `builder-raw-img ${this.attributes[j()] || ""}`
|
|
4539
4555
|
};
|
|
4540
4556
|
return delete e.style, e;
|
|
@@ -4786,17 +4802,17 @@ function Pi(e, t, n, o, r, i) {
|
|
|
4786
4802
|
]);
|
|
4787
4803
|
}
|
|
4788
4804
|
const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
4789
|
-
component:
|
|
4805
|
+
component: xr,
|
|
4790
4806
|
...Nr
|
|
4791
4807
|
}, {
|
|
4792
4808
|
component: Kr,
|
|
4793
4809
|
...Ur
|
|
4794
4810
|
}, {
|
|
4795
|
-
component:
|
|
4811
|
+
component: Zr,
|
|
4796
4812
|
...qr
|
|
4797
4813
|
}, {
|
|
4798
4814
|
component: oi,
|
|
4799
|
-
...
|
|
4815
|
+
..._r
|
|
4800
4816
|
}, {
|
|
4801
4817
|
component: mi,
|
|
4802
4818
|
...di
|
|
@@ -4904,7 +4920,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4904
4920
|
}).join('');
|
|
4905
4921
|
styleEl.innerHTML = newStyleStr;
|
|
4906
4922
|
}
|
|
4907
|
-
}`,
|
|
4923
|
+
}`, Wi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4908
4924
|
if (!navigator.cookieEnabled) {
|
|
4909
4925
|
return;
|
|
4910
4926
|
}
|
|
@@ -4942,15 +4958,15 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4942
4958
|
...t,
|
|
4943
4959
|
testVariationId: t.id,
|
|
4944
4960
|
id: e == null ? void 0 : e.id
|
|
4945
|
-
})),
|
|
4961
|
+
})), Di = ({
|
|
4946
4962
|
canTrack: e,
|
|
4947
4963
|
content: t
|
|
4948
|
-
}) => !(!(ie(t).length > 0) || !e),
|
|
4964
|
+
}) => !(!(ie(t).length > 0) || !e), Oi = (e) => e === "react" || e === "reactNative", xi = R === "angular", Bt = Oi(R), Ui = () => `
|
|
4949
4965
|
window.${At} = ${Ni}
|
|
4950
|
-
window.${Pt} = ${
|
|
4966
|
+
window.${Pt} = ${Wi}
|
|
4951
4967
|
`, Li = (e, t) => `
|
|
4952
4968
|
window.${At}(
|
|
4953
|
-
"${t}",${JSON.stringify(e)}, ${Bt}, ${
|
|
4969
|
+
"${t}",${JSON.stringify(e)}, ${Bt}, ${xi}
|
|
4954
4970
|
)`, Fi = ({
|
|
4955
4971
|
contentId: e,
|
|
4956
4972
|
variationId: t
|
|
@@ -4999,7 +5015,7 @@ const Hi = (e, t, n = !0) => {
|
|
|
4999
5015
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5000
5016
|
}
|
|
5001
5017
|
};
|
|
5002
|
-
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() ||
|
|
5018
|
+
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() || Ie()), zi = (e) => {
|
|
5003
5019
|
var i;
|
|
5004
5020
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
5005
5021
|
let r = "";
|
|
@@ -5050,7 +5066,7 @@ font-weight: ${s};
|
|
|
5050
5066
|
text-align: inherit;
|
|
5051
5067
|
font-family: inherit;
|
|
5052
5068
|
}
|
|
5053
|
-
`, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`,
|
|
5069
|
+
`, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`, Zi = y({
|
|
5054
5070
|
name: "enable-editor",
|
|
5055
5071
|
components: { DynamicDiv: te },
|
|
5056
5072
|
props: [
|
|
@@ -5080,7 +5096,7 @@ font-weight: ${s};
|
|
|
5080
5096
|
httpReqsData: {},
|
|
5081
5097
|
httpReqsPending: {},
|
|
5082
5098
|
clicked: !1,
|
|
5083
|
-
builderContext:
|
|
5099
|
+
builderContext: ge,
|
|
5084
5100
|
needsElementRefDivForEditing: qi,
|
|
5085
5101
|
getWrapperClassName: Xi
|
|
5086
5102
|
};
|
|
@@ -5088,7 +5104,7 @@ font-weight: ${s};
|
|
|
5088
5104
|
provide() {
|
|
5089
5105
|
const e = this;
|
|
5090
5106
|
return {
|
|
5091
|
-
[
|
|
5107
|
+
[ge.key]: e.builderContextSignal
|
|
5092
5108
|
};
|
|
5093
5109
|
},
|
|
5094
5110
|
created() {
|
|
@@ -5100,13 +5116,13 @@ font-weight: ${s};
|
|
|
5100
5116
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5101
5117
|
new CustomEvent("initeditingbldr")
|
|
5102
5118
|
);
|
|
5103
|
-
const o = this.builderContextSignal.content && G(this.canTrack), r =
|
|
5119
|
+
const o = this.builderContextSignal.content && G(this.canTrack), r = ue({
|
|
5104
5120
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5105
5121
|
canTrack: !0
|
|
5106
5122
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5107
5123
|
if (o && i === r) {
|
|
5108
5124
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5109
|
-
|
|
5125
|
+
se({
|
|
5110
5126
|
apiHost: this.apiHost,
|
|
5111
5127
|
type: "impression",
|
|
5112
5128
|
canTrack: !0,
|
|
@@ -5115,7 +5131,7 @@ font-weight: ${s};
|
|
|
5115
5131
|
variationId: r !== s ? r : void 0
|
|
5116
5132
|
});
|
|
5117
5133
|
}
|
|
5118
|
-
|
|
5134
|
+
Ie() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5119
5135
|
new CustomEvent("initpreviewingbldr")
|
|
5120
5136
|
);
|
|
5121
5137
|
}
|
|
@@ -5246,7 +5262,7 @@ font-weight: ${s};
|
|
|
5246
5262
|
var t, n;
|
|
5247
5263
|
if (this.builderContextSignal.content) {
|
|
5248
5264
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5249
|
-
|
|
5265
|
+
se({
|
|
5250
5266
|
apiHost: this.apiHost,
|
|
5251
5267
|
type: "click",
|
|
5252
5268
|
canTrack: G(this.canTrack),
|
|
@@ -5291,7 +5307,7 @@ font-weight: ${s};
|
|
|
5291
5307
|
url: l,
|
|
5292
5308
|
method: "GET"
|
|
5293
5309
|
};
|
|
5294
|
-
|
|
5310
|
+
Te(JSON.stringify(a));
|
|
5295
5311
|
const u = {
|
|
5296
5312
|
method: a.method,
|
|
5297
5313
|
headers: a.headers,
|
|
@@ -5319,7 +5335,7 @@ font-weight: ${s};
|
|
|
5319
5335
|
"builder:component:stateChange",
|
|
5320
5336
|
{
|
|
5321
5337
|
detail: {
|
|
5322
|
-
state:
|
|
5338
|
+
state: we(this.builderContextSignal.rootState),
|
|
5323
5339
|
ref: {
|
|
5324
5340
|
name: this.model
|
|
5325
5341
|
}
|
|
@@ -5346,7 +5362,7 @@ font-weight: ${s};
|
|
|
5346
5362
|
).forEach((t) => {
|
|
5347
5363
|
var n, o;
|
|
5348
5364
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5349
|
-
const r =
|
|
5365
|
+
const r = En(t);
|
|
5350
5366
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5351
5367
|
}
|
|
5352
5368
|
}), window.addEventListener(
|
|
@@ -5374,7 +5390,7 @@ font-weight: ${s};
|
|
|
5374
5390
|
}
|
|
5375
5391
|
}
|
|
5376
5392
|
});
|
|
5377
|
-
function
|
|
5393
|
+
function _i(e, t, n, o, r, i) {
|
|
5378
5394
|
var s, l, a;
|
|
5379
5395
|
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
|
|
5380
5396
|
key: 0,
|
|
@@ -5389,15 +5405,15 @@ function Zi(e, t, n, o, r, i) {
|
|
|
5389
5405
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
5390
5406
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
5391
5407
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5392
|
-
default:
|
|
5408
|
+
default: x(() => [
|
|
5393
5409
|
N(e.$slots, "default")
|
|
5394
5410
|
]),
|
|
5395
5411
|
_: 3
|
|
5396
5412
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
|
|
5397
5413
|
}
|
|
5398
|
-
const es = /* @__PURE__ */ v(
|
|
5414
|
+
const es = /* @__PURE__ */ v(Zi, [["render", _i]]), ts = y({
|
|
5399
5415
|
name: "content-styles",
|
|
5400
|
-
components: { InlinedStyles:
|
|
5416
|
+
components: { InlinedStyles: pe },
|
|
5401
5417
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5402
5418
|
data() {
|
|
5403
5419
|
return {
|
|
@@ -5498,7 +5514,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5498
5514
|
...n,
|
|
5499
5515
|
[r.name]: {
|
|
5500
5516
|
component: ss(o),
|
|
5501
|
-
...
|
|
5517
|
+
...le(r)
|
|
5502
5518
|
}
|
|
5503
5519
|
}),
|
|
5504
5520
|
{}
|
|
@@ -5525,7 +5541,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5525
5541
|
].reduce(
|
|
5526
5542
|
(n, { component: o, ...r }) => ({
|
|
5527
5543
|
...n,
|
|
5528
|
-
[r.name]:
|
|
5544
|
+
[r.name]: le(r)
|
|
5529
5545
|
}),
|
|
5530
5546
|
{}
|
|
5531
5547
|
),
|
|
@@ -5605,7 +5621,7 @@ function ls(e, t, n, o, r, i) {
|
|
|
5605
5621
|
trustedHosts: e.trustedHosts,
|
|
5606
5622
|
isNestedRender: e.isNestedRender
|
|
5607
5623
|
}, {}), {
|
|
5608
|
-
default:
|
|
5624
|
+
default: x(() => {
|
|
5609
5625
|
var p, f, c, m, b, g, P;
|
|
5610
5626
|
return [
|
|
5611
5627
|
e.isSsrAbTest ? (d(), S(s, {
|
|
@@ -5637,7 +5653,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5637
5653
|
name: "content-variants",
|
|
5638
5654
|
components: {
|
|
5639
5655
|
InlinedScript: Be,
|
|
5640
|
-
InlinedStyles:
|
|
5656
|
+
InlinedStyles: pe,
|
|
5641
5657
|
ContentComponent: cs
|
|
5642
5658
|
},
|
|
5643
5659
|
props: [
|
|
@@ -5663,12 +5679,12 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5663
5679
|
],
|
|
5664
5680
|
data() {
|
|
5665
5681
|
return {
|
|
5666
|
-
shouldRenderVariants:
|
|
5682
|
+
shouldRenderVariants: Di({
|
|
5667
5683
|
canTrack: G(this.canTrack),
|
|
5668
5684
|
content: this.content
|
|
5669
5685
|
}),
|
|
5670
5686
|
SDKS_SUPPORTING_PERSONALIZATION: $t,
|
|
5671
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5687
|
+
getInitPersonalizationVariantsFnsScriptString: Zo,
|
|
5672
5688
|
TARGET: R,
|
|
5673
5689
|
getInitVariantsFnsScriptString: Ui,
|
|
5674
5690
|
getVariants: ie
|
|
@@ -5789,7 +5805,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5789
5805
|
(e != null && e.apiKey))
|
|
5790
5806
|
return Ee({
|
|
5791
5807
|
model: t.model,
|
|
5792
|
-
apiKey: e.apiKey,
|
|
5808
|
+
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5793
5809
|
apiVersion: e.apiVersion,
|
|
5794
5810
|
...(t == null ? void 0 : t.entry) && {
|
|
5795
5811
|
query: {
|
|
@@ -5816,7 +5832,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5816
5832
|
return {
|
|
5817
5833
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5818
5834
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5819
|
-
filterAttrs:
|
|
5835
|
+
filterAttrs: W
|
|
5820
5836
|
};
|
|
5821
5837
|
},
|
|
5822
5838
|
mounted() {
|
|
@@ -5869,26 +5885,26 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5869
5885
|
}
|
|
5870
5886
|
});
|
|
5871
5887
|
function fs(e, t, n, o, r, i) {
|
|
5872
|
-
var l, a, u, p, f;
|
|
5888
|
+
var l, a, u, p, f, c, m;
|
|
5873
5889
|
const s = k("ContentVariants");
|
|
5874
5890
|
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5875
5891
|
E(s, {
|
|
5876
5892
|
nonce: e.builderContext.nonce,
|
|
5877
5893
|
isNestedRender: !0,
|
|
5878
5894
|
apiVersion: e.builderContext.apiVersion,
|
|
5879
|
-
apiKey: e.builderContext.apiKey,
|
|
5895
|
+
apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5880
5896
|
context: {
|
|
5881
5897
|
...e.builderContext.context,
|
|
5882
|
-
symbolId: (
|
|
5898
|
+
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
5883
5899
|
},
|
|
5884
5900
|
customComponents: e.customComponents,
|
|
5885
5901
|
data: {
|
|
5886
|
-
...(
|
|
5902
|
+
...(p = e.symbol) == null ? void 0 : p.data,
|
|
5887
5903
|
...e.builderContext.localState,
|
|
5888
|
-
...(
|
|
5904
|
+
...(c = (f = e.contentToUse) == null ? void 0 : f.data) == null ? void 0 : c.state
|
|
5889
5905
|
},
|
|
5890
5906
|
canTrack: e.builderContext.canTrack,
|
|
5891
|
-
model: ((
|
|
5907
|
+
model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
|
|
5892
5908
|
content: e.contentToUse,
|
|
5893
5909
|
linkComponent: e.builderLinkComponent,
|
|
5894
5910
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -5914,8 +5930,8 @@ export {
|
|
|
5914
5930
|
Bi as V,
|
|
5915
5931
|
v as _,
|
|
5916
5932
|
j as a,
|
|
5917
|
-
|
|
5918
|
-
|
|
5933
|
+
ge as b,
|
|
5934
|
+
pe as c,
|
|
5919
5935
|
K as d,
|
|
5920
5936
|
ee as e,
|
|
5921
5937
|
$o as f,
|
|
@@ -5924,19 +5940,19 @@ export {
|
|
|
5924
5940
|
A as i,
|
|
5925
5941
|
Ps as j,
|
|
5926
5942
|
Ae as k,
|
|
5927
|
-
|
|
5943
|
+
Rn as l,
|
|
5928
5944
|
Ft as m,
|
|
5929
5945
|
bs as n,
|
|
5930
5946
|
Vr as o,
|
|
5931
5947
|
q as p,
|
|
5932
5948
|
ps as q,
|
|
5933
|
-
|
|
5949
|
+
Ie as r,
|
|
5934
5950
|
Is as s,
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5951
|
+
En as t,
|
|
5952
|
+
ks as u,
|
|
5953
|
+
Cs as v,
|
|
5938
5954
|
ss as w,
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5955
|
+
Ts as x,
|
|
5956
|
+
lt as y,
|
|
5957
|
+
Ss as z
|
|
5942
5958
|
};
|