@builder.io/sdk-vue 3.0.3 → 3.0.5
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-fYJyWUKW.js → awaiter-HIb4sYti.js} +1 -1
- package/lib/browser/{awaiter-BOE3oe-2.cjs → awaiter-xWDd6I0t.cjs} +1 -1
- package/lib/browser/{block-styles-Ac2dTxc4.cjs → block-styles-a3Qov2aa.cjs} +1 -1
- package/lib/browser/{block-styles-AkwFTcbO.js → block-styles-lsb_KdIv.js} +1 -1
- package/lib/browser/{block-wrapper-84VD_jLa.cjs → block-wrapper-AGYEnT9b.cjs} +1 -1
- package/lib/browser/{block-wrapper-fpDCjlfD.js → block-wrapper-wgruUtvA.js} +3 -3
- package/lib/browser/blocks/form/form/form.vue.d.ts +1 -9
- package/lib/browser/{component-ref-2i6kEvP5.cjs → component-ref-L4m5v5Wy.cjs} +1 -1
- package/lib/browser/{component-ref-d8yXMilU.js → component-ref-vtmUy--R.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-cnhoBeZq.js → get-block-properties-8WqRWNVK.js} +1 -1
- package/lib/browser/{get-block-properties-YOz_GV3T.cjs → get-block-properties-w5SNmgYD.cjs} +1 -1
- package/lib/browser/{index-OUDodTH_.js → index-E3hEz780.js} +322 -335
- package/lib/browser/index-kRaZYwBL.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-2vOYpXEb.cjs → repeated-block-YYmu12kh.cjs} +1 -1
- package/lib/browser/{repeated-block-YC73mMjD.js → repeated-block-vu-vd9Qj.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/components.d.ts +2 -2
- package/lib/edge/{awaiter-7y9vIvgM.cjs → awaiter-CUt_5Lvh.cjs} +1 -1
- package/lib/edge/{awaiter-45RAZ4vr.js → awaiter-ViNwDb7Z.js} +1 -1
- package/lib/edge/{block-styles-4oT6_tNs.cjs → block-styles-EM6CqjQV.cjs} +1 -1
- package/lib/edge/{block-styles-S0GMFR-E.js → block-styles-UWqIwj6d.js} +1 -1
- package/lib/edge/{block-wrapper-z2zQZEH5.cjs → block-wrapper-RT3WZdPP.cjs} +1 -1
- package/lib/edge/{block-wrapper-u1TP9krq.js → block-wrapper-UDhPsV2i.js} +3 -3
- package/lib/edge/blocks/form/form/form.vue.d.ts +1 -9
- package/lib/edge/{component-ref-egpaOyfe.js → component-ref-8TcFZYaz.js} +3 -3
- package/lib/edge/{component-ref-fINDKyFv.cjs → component-ref-wjx7VJFz.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-O5TPRWRT.js → get-block-properties-N5o1BfSo.js} +1 -1
- package/lib/edge/{get-block-properties-7UcxpKgh.cjs → get-block-properties-VI0RpGQw.cjs} +1 -1
- package/lib/edge/{index-gzbOXU-Q.cjs → index-aOfrtP4-.cjs} +14 -14
- package/lib/edge/{index-F3mzsZ0p.js → index-taUiLCrC.js} +699 -712
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-NSni9pku.js → repeated-block-6gIkzT9B.js} +2 -2
- package/lib/{node/repeated-block-5Nyck_fi.cjs → edge/repeated-block-qe-61pYU.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/components.d.ts +2 -2
- package/lib/node/{awaiter-Q1bT-TPr.js → awaiter-YFLE2xNK.js} +1 -1
- package/lib/node/{awaiter-TAyS4fk5.cjs → awaiter-iLczFafd.cjs} +1 -1
- package/lib/node/{block-styles-A8-g46IJ.cjs → block-styles-X0Yal7gl.cjs} +1 -1
- package/lib/node/{block-styles-r18EdLf4.js → block-styles-puDhatJi.js} +1 -1
- package/lib/node/{block-wrapper-XHFApIKd.js → block-wrapper-T3bTZ7up.js} +3 -3
- package/lib/node/{block-wrapper-T0V1DNf3.cjs → block-wrapper-pNzy0_tb.cjs} +1 -1
- package/lib/node/blocks/form/form/form.vue.d.ts +1 -9
- package/lib/node/{component-ref-s6TdgswK.js → component-ref-_L8PY6Zh.js} +3 -3
- package/lib/node/{component-ref-hUDJjksy.cjs → component-ref-oTG7sOLn.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Eoo-6vv-.js → get-block-properties-3rEDCEQD.js} +1 -1
- package/lib/node/{get-block-properties-ZK8tFurn.cjs → get-block-properties-P-xnWokf.cjs} +1 -1
- package/lib/node/{index-upwn_dSB.cjs → index-4h5AimzW.cjs} +8 -8
- package/lib/node/{index-Ys2hEVva.js → index-wtum4hyc.js} +370 -383
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-9G20Z3_5.js → repeated-block-jEy76re4.js} +2 -2
- package/lib/{edge/repeated-block-Wu6fB8nR.cjs → node/repeated-block-t1xK6Eml.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/lib/browser/index-Tmp8hGxZ.cjs +0 -166
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { T as E, g as yt, f as kt, i as $, s as vt, r as St, p as Ct, a as Tt, l as
|
|
1
|
+
import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as I, createBlock as y, resolveDynamicComponent as K, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as B, resolveComponent as k, createTextVNode as gt, toDisplayString as te, defineAsyncComponent as j, createVNode as R, renderList as W, createCommentVNode as S, h as Ae, createElementVNode as z, normalizeStyle as D, normalizeClass as G, markRaw as bt } from "vue";
|
|
2
|
+
import { T as E, g as yt, f as kt, i as $, s as vt, r as St, p as Ct, a as Tt, l as A, b as Ve, c as pe, d as wt, n as We, e as L, h as P, j as It } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
3
3
|
const $t = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Rt = (e) => typeof e == "string" && $t.has(e.toLowerCase());
|
|
4
|
-
function
|
|
4
|
+
function V(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -11,34 +11,34 @@ function W(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const Et =
|
|
14
|
+
const Et = g({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
18
|
return { isEmptyElement: Rt };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), b = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
22
22
|
for (const [o, r] of t)
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function Pt(e, t, n, o, r, s) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes,
|
|
28
|
-
typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes,
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
29
29
|
default: N(() => [
|
|
30
|
-
|
|
30
|
+
B(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes,
|
|
33
|
+
}, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
|
|
34
34
|
default: N(() => [
|
|
35
|
-
|
|
35
|
+
B(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const me = /* @__PURE__ */
|
|
41
|
+
const me = /* @__PURE__ */ b(Et, [["render", Pt]]), Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: me
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), Z = () => {
|
|
@@ -54,7 +54,7 @@ const me = /* @__PURE__ */ g(Et, [["render", Pt]]), Ks = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
}, Bt =
|
|
57
|
+
}, Bt = g({
|
|
58
58
|
name: "builder-button",
|
|
59
59
|
components: { DynamicRenderer: me },
|
|
60
60
|
props: [
|
|
@@ -65,12 +65,12 @@ const me = /* @__PURE__ */ g(Et, [["render", Pt]]), Ks = /* @__PURE__ */ Object.
|
|
|
65
65
|
"text"
|
|
66
66
|
],
|
|
67
67
|
data() {
|
|
68
|
-
return { filterAttrs:
|
|
68
|
+
return { filterAttrs: V };
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
73
|
+
...V(this.attributes, "v-on:", !1),
|
|
74
74
|
[Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
@@ -83,7 +83,7 @@ const me = /* @__PURE__ */ g(Et, [["render", Pt]]), Ks = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function xt(e, t, n, o, r, s) {
|
|
87
87
|
const i = k("DynamicRenderer");
|
|
88
88
|
return c(), y(i, {
|
|
89
89
|
attributes: e.attrs(),
|
|
@@ -91,12 +91,12 @@ function At(e, t, n, o, r, s) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: N(() => [
|
|
94
|
-
|
|
94
|
+
gt(te(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const At = /* @__PURE__ */ b(Bt, [["render", xt]]), Vt = Symbol(), le = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -114,10 +114,10 @@ const xt = /* @__PURE__ */ g(Bt, [["render", At]]), Vt = Symbol(), le = {
|
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
116
|
key: Vt
|
|
117
|
-
}, Wt = Symbol(),
|
|
117
|
+
}, Wt = Symbol(), Ne = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
119
|
key: Wt
|
|
120
|
-
},
|
|
120
|
+
}, Fe = (e, t, n) => {
|
|
121
121
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
|
|
122
122
|
return o === void 0 || o === e ? n : o;
|
|
123
123
|
}, Nt = ({
|
|
@@ -159,7 +159,7 @@ function Y({
|
|
|
159
159
|
return;
|
|
160
160
|
const l = Lt(e.trim());
|
|
161
161
|
if (l)
|
|
162
|
-
return
|
|
162
|
+
return Fe({
|
|
163
163
|
...o,
|
|
164
164
|
...n
|
|
165
165
|
}, l);
|
|
@@ -177,7 +177,7 @@ function Y({
|
|
|
177
177
|
try {
|
|
178
178
|
return Ft(a);
|
|
179
179
|
} catch (u) {
|
|
180
|
-
|
|
180
|
+
A.error("Failed code evaluation: " + u.message, {
|
|
181
181
|
code: e
|
|
182
182
|
});
|
|
183
183
|
return;
|
|
@@ -228,7 +228,7 @@ function _(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
228
228
|
}), _(i, t, e, s, r);
|
|
229
229
|
}));
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function De(e) {
|
|
232
232
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
233
233
|
}
|
|
234
234
|
function jt(e) {
|
|
@@ -236,7 +236,7 @@ function jt(e) {
|
|
|
236
236
|
return !1;
|
|
237
237
|
let t = !1;
|
|
238
238
|
return _(e, (n) => {
|
|
239
|
-
if (
|
|
239
|
+
if (De(n)) {
|
|
240
240
|
t = !0;
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
@@ -244,7 +244,7 @@ function jt(e) {
|
|
|
244
244
|
}
|
|
245
245
|
function Kt(e, t) {
|
|
246
246
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (_(e, (n, o) => {
|
|
247
|
-
|
|
247
|
+
De(n) && o(n[t] ?? void 0);
|
|
248
248
|
}), e);
|
|
249
249
|
}
|
|
250
250
|
function qt(e, t) {
|
|
@@ -307,7 +307,7 @@ const zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Gt = (e) =
|
|
|
307
307
|
rootSetState: r,
|
|
308
308
|
context: t
|
|
309
309
|
});
|
|
310
|
-
|
|
310
|
+
Ve(s, i, a);
|
|
311
311
|
}
|
|
312
312
|
return s;
|
|
313
313
|
};
|
|
@@ -327,7 +327,7 @@ function Yt({
|
|
|
327
327
|
context: t
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Oe(e) {
|
|
331
331
|
const t = e || ($() ? window.location.search : void 0);
|
|
332
332
|
return t ? wt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
333
333
|
}
|
|
@@ -341,11 +341,11 @@ const Xt = (e) => ({
|
|
|
341
341
|
function ee(e) {
|
|
342
342
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Qt(n) : n));
|
|
343
343
|
}
|
|
344
|
-
const
|
|
344
|
+
const Te = {};
|
|
345
345
|
function Zt(e, t) {
|
|
346
346
|
e === "plugin" && (t = ee(t));
|
|
347
|
-
let n =
|
|
348
|
-
if (n || (n =
|
|
347
|
+
let n = Te[e];
|
|
348
|
+
if (n || (n = Te[e] = []), n.push(t), $()) {
|
|
349
349
|
const o = {
|
|
350
350
|
type: "builder.register",
|
|
351
351
|
data: {
|
|
@@ -360,24 +360,24 @@ function Zt(e, t) {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
const
|
|
363
|
+
const we = {};
|
|
364
364
|
function qs(e) {
|
|
365
365
|
if ($()) {
|
|
366
|
-
Object.assign(
|
|
366
|
+
Object.assign(we, e);
|
|
367
367
|
const t = {
|
|
368
368
|
type: "builder.settingsChange",
|
|
369
|
-
data:
|
|
369
|
+
data: we
|
|
370
370
|
};
|
|
371
371
|
parent.postMessage(t, "*");
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const
|
|
374
|
+
const Ie = "builder.", _t = "options.", Le = (e) => {
|
|
375
375
|
if (!e)
|
|
376
376
|
return {};
|
|
377
|
-
const t =
|
|
377
|
+
const t = We(e), n = {};
|
|
378
378
|
return Object.keys(t).forEach((o) => {
|
|
379
|
-
if (o.startsWith(
|
|
380
|
-
const r = o.replace(
|
|
379
|
+
if (o.startsWith(Ie)) {
|
|
380
|
+
const r = o.replace(Ie, "").replace(_t, "");
|
|
381
381
|
n[r] = t[o];
|
|
382
382
|
}
|
|
383
383
|
}), n;
|
|
@@ -385,17 +385,17 @@ const $e = "builder.", _t = "options.", Ue = (e) => {
|
|
|
385
385
|
if (!$())
|
|
386
386
|
return {};
|
|
387
387
|
const e = new URLSearchParams(window.location.search);
|
|
388
|
-
return
|
|
389
|
-
},
|
|
388
|
+
return Le(e);
|
|
389
|
+
}, Ue = "3.0.5", He = () => ({
|
|
390
390
|
"X-Builder-SDK": E,
|
|
391
391
|
"X-Builder-SDK-GEN": "2",
|
|
392
|
-
"X-Builder-SDK-Version":
|
|
392
|
+
"X-Builder-SDK-Version": Ue
|
|
393
393
|
}), tn = (e) => {
|
|
394
394
|
if (e === "localhost" || e === "127.0.0.1")
|
|
395
395
|
return e;
|
|
396
396
|
const t = e.split(".");
|
|
397
397
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
398
|
-
},
|
|
398
|
+
}, Me = ({
|
|
399
399
|
name: e,
|
|
400
400
|
canTrack: t
|
|
401
401
|
}) => {
|
|
@@ -403,17 +403,17 @@ const $e = "builder.", _t = "options.", Ue = (e) => {
|
|
|
403
403
|
try {
|
|
404
404
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
405
405
|
} catch (o) {
|
|
406
|
-
|
|
406
|
+
A.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
|
-
},
|
|
409
|
+
}, je = async (e) => Me(e), nn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), on = [["secure", ""], ["SameSite", "None"]], rn = ({
|
|
410
410
|
name: e,
|
|
411
411
|
value: t,
|
|
412
412
|
expires: n
|
|
413
413
|
}) => {
|
|
414
414
|
const r = ($() ? location.protocol === "https:" : !0) ? on : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", tn(window.location.hostname)], ...r];
|
|
415
415
|
return nn(i);
|
|
416
|
-
},
|
|
416
|
+
}, Ke = async ({
|
|
417
417
|
name: e,
|
|
418
418
|
value: t,
|
|
419
419
|
expires: n,
|
|
@@ -429,7 +429,7 @@ const $e = "builder.", _t = "options.", Ue = (e) => {
|
|
|
429
429
|
});
|
|
430
430
|
document.cookie = r;
|
|
431
431
|
} catch (r) {
|
|
432
|
-
|
|
432
|
+
A.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
function sn() {
|
|
@@ -438,16 +438,16 @@ function sn() {
|
|
|
438
438
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function qe() {
|
|
442
442
|
return sn().replace(/-/g, "");
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const ze = "builderSessionId", an = async ({
|
|
445
445
|
canTrack: e
|
|
446
446
|
}) => {
|
|
447
447
|
if (!e)
|
|
448
448
|
return;
|
|
449
|
-
const t = await
|
|
450
|
-
name:
|
|
449
|
+
const t = await je({
|
|
450
|
+
name: ze,
|
|
451
451
|
canTrack: e
|
|
452
452
|
});
|
|
453
453
|
if (L(t))
|
|
@@ -459,20 +459,20 @@ const Ge = "builderSessionId", an = async ({
|
|
|
459
459
|
canTrack: e
|
|
460
460
|
}), n;
|
|
461
461
|
}
|
|
462
|
-
}, ln = () =>
|
|
462
|
+
}, ln = () => qe(), cn = ({
|
|
463
463
|
id: e,
|
|
464
464
|
canTrack: t
|
|
465
|
-
}) =>
|
|
466
|
-
name:
|
|
465
|
+
}) => Ke({
|
|
466
|
+
name: ze,
|
|
467
467
|
value: e,
|
|
468
468
|
canTrack: t
|
|
469
|
-
}),
|
|
469
|
+
}), Ge = () => $() && typeof localStorage < "u" ? localStorage : void 0, dn = ({
|
|
470
470
|
key: e,
|
|
471
471
|
canTrack: t
|
|
472
472
|
}) => {
|
|
473
473
|
var n;
|
|
474
474
|
try {
|
|
475
|
-
return t ? (n =
|
|
475
|
+
return t ? (n = Ge()) == null ? void 0 : n.getItem(e) : void 0;
|
|
476
476
|
} catch (o) {
|
|
477
477
|
console.debug("[LocalStorage] GET error: ", o);
|
|
478
478
|
return;
|
|
@@ -484,17 +484,17 @@ const Ge = "builderSessionId", an = async ({
|
|
|
484
484
|
}) => {
|
|
485
485
|
var o;
|
|
486
486
|
try {
|
|
487
|
-
t && ((o =
|
|
487
|
+
t && ((o = Ge()) == null || o.setItem(e, n));
|
|
488
488
|
} catch (r) {
|
|
489
489
|
console.debug("[LocalStorage] SET error: ", r);
|
|
490
490
|
}
|
|
491
|
-
},
|
|
491
|
+
}, Je = "builderVisitorId", pn = ({
|
|
492
492
|
canTrack: e
|
|
493
493
|
}) => {
|
|
494
494
|
if (!e)
|
|
495
495
|
return;
|
|
496
496
|
const t = dn({
|
|
497
|
-
key:
|
|
497
|
+
key: Je,
|
|
498
498
|
canTrack: e
|
|
499
499
|
});
|
|
500
500
|
if (L(t))
|
|
@@ -506,17 +506,17 @@ const Ge = "builderSessionId", an = async ({
|
|
|
506
506
|
canTrack: e
|
|
507
507
|
}), n;
|
|
508
508
|
}
|
|
509
|
-
}, mn = () =>
|
|
509
|
+
}, mn = () => qe(), hn = ({
|
|
510
510
|
id: e,
|
|
511
511
|
canTrack: t
|
|
512
512
|
}) => un({
|
|
513
|
-
key:
|
|
513
|
+
key: Je,
|
|
514
514
|
value: e,
|
|
515
515
|
canTrack: t
|
|
516
516
|
});
|
|
517
517
|
function he(e) {
|
|
518
518
|
var t;
|
|
519
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
519
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && A.log(e);
|
|
520
520
|
}
|
|
521
521
|
const fn = async ({
|
|
522
522
|
canTrack: e
|
|
@@ -535,7 +535,7 @@ const fn = async ({
|
|
|
535
535
|
sessionId: t,
|
|
536
536
|
visitorId: n
|
|
537
537
|
};
|
|
538
|
-
},
|
|
538
|
+
}, gn = async ({
|
|
539
539
|
type: e,
|
|
540
540
|
canTrack: t,
|
|
541
541
|
apiKey: n,
|
|
@@ -561,7 +561,7 @@ async function de({
|
|
|
561
561
|
...t
|
|
562
562
|
}) {
|
|
563
563
|
if (!t.apiKey) {
|
|
564
|
-
|
|
564
|
+
A.error("Missing API key for track call. Please provide your API key.");
|
|
565
565
|
return;
|
|
566
566
|
}
|
|
567
567
|
if (!t.canTrack || P() || !($() || E === "reactNative"))
|
|
@@ -570,11 +570,11 @@ async function de({
|
|
|
570
570
|
return he(o), fetch(o, {
|
|
571
571
|
method: "POST",
|
|
572
572
|
body: JSON.stringify({
|
|
573
|
-
events: [await
|
|
573
|
+
events: [await gn(t)]
|
|
574
574
|
}),
|
|
575
575
|
headers: {
|
|
576
576
|
"content-type": "application/json",
|
|
577
|
-
...
|
|
577
|
+
...He()
|
|
578
578
|
},
|
|
579
579
|
mode: "cors"
|
|
580
580
|
}).catch((r) => {
|
|
@@ -584,12 +584,12 @@ async function de({
|
|
|
584
584
|
const zs = (e) => de({
|
|
585
585
|
...e,
|
|
586
586
|
canTrack: !0
|
|
587
|
-
}),
|
|
588
|
-
function
|
|
587
|
+
}), bn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
588
|
+
function Ye(e, t) {
|
|
589
589
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
590
590
|
return !1;
|
|
591
591
|
const n = new URL(t.origin), o = n.hostname;
|
|
592
|
-
return (e ||
|
|
592
|
+
return (e || bn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
593
593
|
}
|
|
594
594
|
const yn = () => {
|
|
595
595
|
Zt("insertMenu", {
|
|
@@ -614,14 +614,14 @@ const yn = () => {
|
|
|
614
614
|
}]
|
|
615
615
|
});
|
|
616
616
|
};
|
|
617
|
-
let
|
|
618
|
-
const
|
|
617
|
+
let $e = !1;
|
|
618
|
+
const Xe = (e = {}) => {
|
|
619
619
|
var t, n;
|
|
620
|
-
|
|
620
|
+
$e || ($e = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
621
621
|
type: "builder.sdkInfo",
|
|
622
622
|
data: {
|
|
623
623
|
target: E,
|
|
624
|
-
version:
|
|
624
|
+
version: Ue,
|
|
625
625
|
supportsPatchUpdates: !1,
|
|
626
626
|
// Supports builder-model="..." attribute which is needed to
|
|
627
627
|
// scope our '+ add block' button styling
|
|
@@ -635,7 +635,7 @@ const Qe = (e = {}) => {
|
|
|
635
635
|
}
|
|
636
636
|
}, "*"), window.addEventListener("message", (o) => {
|
|
637
637
|
var s, i;
|
|
638
|
-
if (!
|
|
638
|
+
if (!Ye(e.trustedHosts, o))
|
|
639
639
|
return;
|
|
640
640
|
const {
|
|
641
641
|
data: r
|
|
@@ -643,10 +643,10 @@ const Qe = (e = {}) => {
|
|
|
643
643
|
if (r != null && r.type)
|
|
644
644
|
switch (r.type) {
|
|
645
645
|
case "builder.evaluate": {
|
|
646
|
-
const l = r.data.text, a = r.data.arguments || [], u = r.data.id,
|
|
647
|
-
let
|
|
646
|
+
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
|
|
647
|
+
let m, d = null;
|
|
648
648
|
try {
|
|
649
|
-
|
|
649
|
+
m = h.apply(null, a);
|
|
650
650
|
} catch (f) {
|
|
651
651
|
d = f;
|
|
652
652
|
}
|
|
@@ -656,9 +656,9 @@ const Qe = (e = {}) => {
|
|
|
656
656
|
id: u,
|
|
657
657
|
error: d.message
|
|
658
658
|
}
|
|
659
|
-
}, "*") :
|
|
660
|
-
var
|
|
661
|
-
(
|
|
659
|
+
}, "*") : m && typeof m.then == "function" ? m.then((f) => {
|
|
660
|
+
var v;
|
|
661
|
+
(v = window.parent) == null || v.postMessage({
|
|
662
662
|
type: "builder.evaluateResult",
|
|
663
663
|
data: {
|
|
664
664
|
id: u,
|
|
@@ -668,7 +668,7 @@ const Qe = (e = {}) => {
|
|
|
668
668
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
669
669
|
type: "builder.evaluateResult",
|
|
670
670
|
data: {
|
|
671
|
-
result:
|
|
671
|
+
result: m,
|
|
672
672
|
id: u
|
|
673
673
|
}
|
|
674
674
|
}, "*");
|
|
@@ -676,12 +676,12 @@ const Qe = (e = {}) => {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
})));
|
|
679
|
-
},
|
|
679
|
+
}, Qe = ({
|
|
680
680
|
model: e,
|
|
681
681
|
trustedHosts: t,
|
|
682
682
|
callbacks: n
|
|
683
683
|
}) => (o) => {
|
|
684
|
-
if (!
|
|
684
|
+
if (!Ye(t, o))
|
|
685
685
|
return;
|
|
686
686
|
const {
|
|
687
687
|
data: r
|
|
@@ -704,10 +704,10 @@ const Qe = (e = {}) => {
|
|
|
704
704
|
}
|
|
705
705
|
}, Gs = (e, t, n) => {
|
|
706
706
|
if (!$)
|
|
707
|
-
return
|
|
707
|
+
return A.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
708
708
|
};
|
|
709
|
-
|
|
710
|
-
const o =
|
|
709
|
+
Xe();
|
|
710
|
+
const o = Qe({
|
|
711
711
|
callbacks: {
|
|
712
712
|
contentUpdate: t,
|
|
713
713
|
animation: () => {
|
|
@@ -723,22 +723,22 @@ const Qe = (e = {}) => {
|
|
|
723
723
|
};
|
|
724
724
|
}, kn = "builder.tests", fe = (e) => `${kn}.${e}`, vn = ({
|
|
725
725
|
contentId: e
|
|
726
|
-
}) =>
|
|
726
|
+
}) => je({
|
|
727
727
|
name: fe(e),
|
|
728
728
|
canTrack: !0
|
|
729
729
|
}), Sn = ({
|
|
730
730
|
contentId: e
|
|
731
|
-
}) =>
|
|
731
|
+
}) => Me({
|
|
732
732
|
name: fe(e),
|
|
733
733
|
canTrack: !0
|
|
734
734
|
}), Cn = ({
|
|
735
735
|
contentId: e,
|
|
736
736
|
value: t
|
|
737
|
-
}) =>
|
|
737
|
+
}) => Ke({
|
|
738
738
|
name: fe(e),
|
|
739
739
|
value: t,
|
|
740
740
|
canTrack: !0
|
|
741
|
-
}),
|
|
741
|
+
}), Ze = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, Tn = ({
|
|
742
742
|
id: e,
|
|
743
743
|
variations: t
|
|
744
744
|
}) => {
|
|
@@ -751,15 +751,15 @@ const Qe = (e = {}) => {
|
|
|
751
751
|
return s;
|
|
752
752
|
}
|
|
753
753
|
return e;
|
|
754
|
-
},
|
|
754
|
+
}, _e = (e) => {
|
|
755
755
|
const t = Tn(e);
|
|
756
756
|
return Cn({
|
|
757
757
|
contentId: e.id,
|
|
758
758
|
value: t
|
|
759
759
|
}).catch((n) => {
|
|
760
|
-
|
|
760
|
+
A.error("could not store A/B test variation: ", n);
|
|
761
761
|
}), t;
|
|
762
|
-
},
|
|
762
|
+
}, et = ({
|
|
763
763
|
item: e,
|
|
764
764
|
testGroupId: t
|
|
765
765
|
}) => {
|
|
@@ -781,14 +781,14 @@ const Qe = (e = {}) => {
|
|
|
781
781
|
return e;
|
|
782
782
|
if (!e)
|
|
783
783
|
return;
|
|
784
|
-
if (!
|
|
784
|
+
if (!Ze(e))
|
|
785
785
|
return e;
|
|
786
786
|
const n = Sn({
|
|
787
787
|
contentId: e.id
|
|
788
|
-
}) ||
|
|
788
|
+
}) || _e({
|
|
789
789
|
variations: e.variations,
|
|
790
790
|
id: e.id
|
|
791
|
-
}), o =
|
|
791
|
+
}), o = et({
|
|
792
792
|
item: e,
|
|
793
793
|
testGroupId: n
|
|
794
794
|
});
|
|
@@ -800,14 +800,14 @@ const Qe = (e = {}) => {
|
|
|
800
800
|
item: e,
|
|
801
801
|
canTrack: t
|
|
802
802
|
}) => {
|
|
803
|
-
if (!t || !
|
|
803
|
+
if (!t || !Ze(e))
|
|
804
804
|
return e;
|
|
805
805
|
const o = await vn({
|
|
806
806
|
contentId: e.id
|
|
807
|
-
}) ||
|
|
807
|
+
}) || _e({
|
|
808
808
|
variations: e.variations,
|
|
809
809
|
id: e.id
|
|
810
|
-
}), r =
|
|
810
|
+
}), r = et({
|
|
811
811
|
item: e,
|
|
812
812
|
testGroupId: o
|
|
813
813
|
});
|
|
@@ -839,10 +839,10 @@ function ue(e, t = null, n = ".") {
|
|
|
839
839
|
};
|
|
840
840
|
}, {});
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function tt(e, t, n = {}) {
|
|
843
843
|
for (const o in e) {
|
|
844
844
|
const r = e[o], s = t ? t + "." + o : o;
|
|
845
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ?
|
|
845
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? tt(r, s, n) : n[s] = r;
|
|
846
846
|
}
|
|
847
847
|
return n;
|
|
848
848
|
}
|
|
@@ -858,7 +858,7 @@ function Pn(e) {
|
|
|
858
858
|
}
|
|
859
859
|
return t;
|
|
860
860
|
}
|
|
861
|
-
const Bn = "v3",
|
|
861
|
+
const Bn = "v3", Re = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ge = (e) => {
|
|
862
862
|
const {
|
|
863
863
|
limit: t = 30,
|
|
864
864
|
userAttributes: n,
|
|
@@ -869,11 +869,11 @@ const Bn = "v3", Ee = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
|
|
|
869
869
|
locale: l,
|
|
870
870
|
apiVersion: a = Bn,
|
|
871
871
|
fields: u,
|
|
872
|
-
omit:
|
|
873
|
-
offset:
|
|
872
|
+
omit: h,
|
|
873
|
+
offset: m,
|
|
874
874
|
cacheSeconds: d,
|
|
875
875
|
staleCacheSeconds: f,
|
|
876
|
-
sort:
|
|
876
|
+
sort: v,
|
|
877
877
|
includeUnpublished: T,
|
|
878
878
|
apiHost: O
|
|
879
879
|
} = e;
|
|
@@ -881,55 +881,55 @@ const Bn = "v3", Ee = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
|
|
|
881
881
|
throw new Error("Missing API key");
|
|
882
882
|
if (!["v3"].includes(a))
|
|
883
883
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
884
|
-
const ht = t !== 1, ft = O || "https://cdn.builder.io",
|
|
885
|
-
|
|
884
|
+
const ht = t !== 1, ft = O || "https://cdn.builder.io", w = new URL(`${ft}/api/${a}/content/${r}`);
|
|
885
|
+
w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(ht)), w.searchParams.set("includeRefs", String(!0));
|
|
886
886
|
const ne = l || (n == null ? void 0 : n.locale);
|
|
887
887
|
let U = n || {};
|
|
888
|
-
if (ne && (
|
|
888
|
+
if (ne && (w.searchParams.set("locale", ne), U = {
|
|
889
889
|
locale: ne,
|
|
890
890
|
...U
|
|
891
|
-
}), i &&
|
|
891
|
+
}), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && w.searchParams.set("offset", String(Math.floor(m))), typeof T == "boolean" && w.searchParams.set("includeUnpublished", String(T)), d && Re(d) && w.searchParams.set("cacheSeconds", String(d)), f && Re(f) && w.searchParams.set("staleCacheSeconds", String(f)), v) {
|
|
892
892
|
const F = ue({
|
|
893
|
-
sort:
|
|
893
|
+
sort: v
|
|
894
894
|
});
|
|
895
895
|
for (const M in F)
|
|
896
|
-
|
|
896
|
+
w.searchParams.set(M, JSON.stringify(F[M]));
|
|
897
897
|
}
|
|
898
|
-
const
|
|
898
|
+
const Se = {
|
|
899
899
|
...en(),
|
|
900
|
-
...
|
|
900
|
+
...We(e.options || {})
|
|
901
901
|
};
|
|
902
902
|
U = {
|
|
903
903
|
...U,
|
|
904
|
-
...
|
|
904
|
+
...An(Se)
|
|
905
905
|
};
|
|
906
|
-
const
|
|
907
|
-
for (const F in
|
|
908
|
-
|
|
909
|
-
if (Object.keys(U).length > 0 &&
|
|
910
|
-
const F =
|
|
906
|
+
const Ce = ue(Se);
|
|
907
|
+
for (const F in Ce)
|
|
908
|
+
w.searchParams.set(F, String(Ce[F]));
|
|
909
|
+
if (Object.keys(U).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(U)), o) {
|
|
910
|
+
const F = tt({
|
|
911
911
|
query: o
|
|
912
912
|
});
|
|
913
913
|
for (const M in F)
|
|
914
|
-
|
|
914
|
+
w.searchParams.set(M, JSON.stringify(F[M]));
|
|
915
915
|
}
|
|
916
|
-
return
|
|
917
|
-
},
|
|
916
|
+
return w;
|
|
917
|
+
}, xn = (e) => {
|
|
918
918
|
const t = {};
|
|
919
919
|
for (const n in e)
|
|
920
920
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
921
921
|
return t;
|
|
922
|
-
},
|
|
922
|
+
}, An = (e) => {
|
|
923
923
|
if ($() && e.preview === "BUILDER_STUDIO") {
|
|
924
924
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
925
|
-
const t =
|
|
925
|
+
const t = xn(e), {
|
|
926
926
|
userAttributes: n
|
|
927
927
|
} = Pn(t);
|
|
928
928
|
return n;
|
|
929
929
|
}
|
|
930
930
|
return {};
|
|
931
931
|
}, Vn = (e) => "results" in e;
|
|
932
|
-
async function
|
|
932
|
+
async function be(e) {
|
|
933
933
|
const t = await Fn({
|
|
934
934
|
...e,
|
|
935
935
|
limit: 1
|
|
@@ -938,15 +938,15 @@ async function ge(e) {
|
|
|
938
938
|
}
|
|
939
939
|
const Wn = async (e) => {
|
|
940
940
|
var i;
|
|
941
|
-
const t =
|
|
941
|
+
const t = ge(e), n = e.fetch ?? En, o = {
|
|
942
942
|
...e.fetchOptions,
|
|
943
943
|
headers: {
|
|
944
944
|
...(i = e.fetchOptions) == null ? void 0 : i.headers,
|
|
945
|
-
...
|
|
945
|
+
...He()
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
948
|
return await (await n(t.href, o)).json();
|
|
949
|
-
}, Nn = async (e, t, n =
|
|
949
|
+
}, Nn = async (e, t, n = ge(e)) => {
|
|
950
950
|
const o = J(e.canTrack);
|
|
951
951
|
if (n.search.includes("preview="), !o || !($() || E === "reactNative"))
|
|
952
952
|
return t.results;
|
|
@@ -959,14 +959,14 @@ const Wn = async (e) => {
|
|
|
959
959
|
}));
|
|
960
960
|
t.results = r;
|
|
961
961
|
} catch (r) {
|
|
962
|
-
|
|
962
|
+
A.error("Could not process A/B tests. ", r);
|
|
963
963
|
}
|
|
964
964
|
return t.results;
|
|
965
965
|
};
|
|
966
966
|
async function Fn(e) {
|
|
967
|
-
const t =
|
|
967
|
+
const t = ge(e), n = await Wn(e);
|
|
968
968
|
if (!Vn(n))
|
|
969
|
-
throw
|
|
969
|
+
throw A.error("Error fetching data. ", {
|
|
970
970
|
url: t,
|
|
971
971
|
content: n,
|
|
972
972
|
options: e
|
|
@@ -985,12 +985,12 @@ const Js = async (e) => {
|
|
|
985
985
|
urlPath: t
|
|
986
986
|
} : {}
|
|
987
987
|
},
|
|
988
|
-
options:
|
|
988
|
+
options: Le(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
989
989
|
};
|
|
990
990
|
return {
|
|
991
991
|
apiKey: n.apiKey,
|
|
992
992
|
model: n.model,
|
|
993
|
-
content: await
|
|
993
|
+
content: await be(n)
|
|
994
994
|
};
|
|
995
995
|
}, ye = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
996
996
|
function Dn(e, t, n = {}) {
|
|
@@ -1001,8 +1001,8 @@ function Dn(e, t, n = {}) {
|
|
|
1001
1001
|
return function() {
|
|
1002
1002
|
const u = Date.now();
|
|
1003
1003
|
!l && n.leading === !1 && (l = u);
|
|
1004
|
-
const
|
|
1005
|
-
return o = this, r = arguments,
|
|
1004
|
+
const h = t - (u - l);
|
|
1005
|
+
return o = this, r = arguments, h <= 0 || h > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, h)), s;
|
|
1006
1006
|
};
|
|
1007
1007
|
}
|
|
1008
1008
|
function q(e, ...t) {
|
|
@@ -1019,17 +1019,17 @@ function On(e) {
|
|
|
1019
1019
|
for (const t of e)
|
|
1020
1020
|
switch (t.trigger) {
|
|
1021
1021
|
case "pageLoad":
|
|
1022
|
-
|
|
1022
|
+
rt(t);
|
|
1023
1023
|
break;
|
|
1024
1024
|
case "scrollInView":
|
|
1025
1025
|
Un(t);
|
|
1026
1026
|
break;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function nt(e) {
|
|
1030
1030
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function ot(e, t) {
|
|
1033
1033
|
const n = Ln(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
|
|
1034
1034
|
for (const l of i)
|
|
1035
1035
|
for (const a of n)
|
|
@@ -1042,14 +1042,14 @@ function Ln(e) {
|
|
|
1042
1042
|
t.indexOf(o) === -1 && t.push(o);
|
|
1043
1043
|
return t;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function rt(e) {
|
|
1046
1046
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1047
1047
|
if (!t.length) {
|
|
1048
|
-
|
|
1048
|
+
nt(e.elementId || e.id || "");
|
|
1049
1049
|
return;
|
|
1050
1050
|
}
|
|
1051
1051
|
Array.from(t).forEach((n) => {
|
|
1052
|
-
|
|
1052
|
+
ot(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1053
1053
|
n.style.transition = `all ${e.duration}s ${ye(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1054
1054
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1055
1055
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
@@ -1059,11 +1059,11 @@ function st(e) {
|
|
|
1059
1059
|
function Un(e) {
|
|
1060
1060
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1061
1061
|
if (!t.length) {
|
|
1062
|
-
|
|
1062
|
+
nt(e.elementId || e.id || "");
|
|
1063
1063
|
return;
|
|
1064
1064
|
}
|
|
1065
1065
|
Array.from(t).forEach((n) => {
|
|
1066
|
-
|
|
1066
|
+
ot(e, n);
|
|
1067
1067
|
let o = !1, r = !1;
|
|
1068
1068
|
function s() {
|
|
1069
1069
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -1075,9 +1075,9 @@ function Un(e) {
|
|
|
1075
1075
|
const i = Dn(s, 200, {
|
|
1076
1076
|
leading: !1
|
|
1077
1077
|
});
|
|
1078
|
-
function l(
|
|
1079
|
-
const
|
|
1080
|
-
return
|
|
1078
|
+
function l(h) {
|
|
1079
|
+
const m = h.getBoundingClientRect(), d = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * d;
|
|
1080
|
+
return m.bottom > v && m.top < d - v;
|
|
1081
1081
|
}
|
|
1082
1082
|
const a = e.steps[0].styles;
|
|
1083
1083
|
function u() {
|
|
@@ -1091,10 +1091,10 @@ function Un(e) {
|
|
|
1091
1091
|
}), s();
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
|
-
const
|
|
1094
|
+
const st = (e) => Object.entries(e).map(([n, o]) => {
|
|
1095
1095
|
if (typeof o == "string")
|
|
1096
1096
|
return `${ye(n)}: ${o};`;
|
|
1097
|
-
}).filter(L), Hn = (e) =>
|
|
1097
|
+
}).filter(L), Hn = (e) => st(e).join(`
|
|
1098
1098
|
`), Ys = ({
|
|
1099
1099
|
mediaQuery: e,
|
|
1100
1100
|
className: t,
|
|
@@ -1115,18 +1115,18 @@ function Mn({
|
|
|
1115
1115
|
const Xs = ({
|
|
1116
1116
|
block: e,
|
|
1117
1117
|
context: t
|
|
1118
|
-
}) =>
|
|
1118
|
+
}) => it(Mn({
|
|
1119
1119
|
style: e.style || {},
|
|
1120
1120
|
context: t,
|
|
1121
1121
|
block: e
|
|
1122
1122
|
}));
|
|
1123
|
-
function
|
|
1123
|
+
function it(e) {
|
|
1124
1124
|
switch (E) {
|
|
1125
1125
|
case "svelte":
|
|
1126
1126
|
case "vue":
|
|
1127
1127
|
case "solid":
|
|
1128
1128
|
case "angular":
|
|
1129
|
-
return
|
|
1129
|
+
return st(e).join(" ");
|
|
1130
1130
|
case "qwik":
|
|
1131
1131
|
case "reactNative":
|
|
1132
1132
|
case "react":
|
|
@@ -1134,7 +1134,7 @@ function at(e) {
|
|
|
1134
1134
|
return e;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
|
-
const
|
|
1137
|
+
const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jn = ({
|
|
1138
1138
|
block: e,
|
|
1139
1139
|
registeredComponents: t,
|
|
1140
1140
|
model: n
|
|
@@ -1144,7 +1144,7 @@ const lt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1144
1144
|
if (!o)
|
|
1145
1145
|
return null;
|
|
1146
1146
|
const r = t[o];
|
|
1147
|
-
if (!r ||
|
|
1147
|
+
if (!r || at(r, n)) {
|
|
1148
1148
|
console.warn(`
|
|
1149
1149
|
Could not find a registered component named "${o}".
|
|
1150
1150
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -1192,7 +1192,7 @@ const lt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1192
1192
|
}, zn = (e, t, n) => {
|
|
1193
1193
|
var o;
|
|
1194
1194
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1195
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !
|
|
1195
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !at(i, n)))
|
|
1196
1196
|
} : {};
|
|
1197
1197
|
}, Gn = (e, t) => {
|
|
1198
1198
|
var n;
|
|
@@ -1209,27 +1209,27 @@ const lt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1209
1209
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1210
1210
|
e
|
|
1211
1211
|
), e;
|
|
1212
|
-
}), Xn = () => import("./block-styles-
|
|
1212
|
+
}), Xn = () => import("./block-styles-puDhatJi.js").then((e) => e.default).catch((e) => {
|
|
1213
1213
|
throw console.error(
|
|
1214
1214
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1215
1215
|
e
|
|
1216
1216
|
), e;
|
|
1217
|
-
}), Qn = () => import("./block-wrapper-
|
|
1217
|
+
}), Qn = () => import("./block-wrapper-T3bTZ7up.js").then((e) => e.default).catch((e) => {
|
|
1218
1218
|
throw console.error(
|
|
1219
1219
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1220
1220
|
e
|
|
1221
1221
|
), e;
|
|
1222
|
-
}), Zn = () => import("./component-ref-
|
|
1222
|
+
}), Zn = () => import("./component-ref-_L8PY6Zh.js").then((e) => e.default).catch((e) => {
|
|
1223
1223
|
throw console.error(
|
|
1224
1224
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1225
1225
|
e
|
|
1226
1226
|
), e;
|
|
1227
|
-
}), _n = () => import("./repeated-block-
|
|
1227
|
+
}), _n = () => import("./repeated-block-jEy76re4.js").then((e) => e.default).catch((e) => {
|
|
1228
1228
|
throw console.error(
|
|
1229
1229
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1230
1230
|
e
|
|
1231
1231
|
), e;
|
|
1232
|
-
}), eo =
|
|
1232
|
+
}), eo = g({
|
|
1233
1233
|
name: "block",
|
|
1234
1234
|
components: {
|
|
1235
1235
|
BlockStyles: j(Xn),
|
|
@@ -1324,15 +1324,15 @@ const lt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1324
1324
|
}
|
|
1325
1325
|
});
|
|
1326
1326
|
function to(e, t, n, o, r, s) {
|
|
1327
|
-
var
|
|
1328
|
-
const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"),
|
|
1329
|
-
return e.canShowBlock ? (c(), p(
|
|
1327
|
+
var m;
|
|
1328
|
+
const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), h = k("RepeatedBlock");
|
|
1329
|
+
return e.canShowBlock ? (c(), p(I, { key: 0 }, [
|
|
1330
1330
|
R(i, {
|
|
1331
1331
|
block: e.processedBlock,
|
|
1332
1332
|
context: e.context
|
|
1333
1333
|
}, null, 8, ["block", "context"]),
|
|
1334
|
-
(
|
|
1335
|
-
e.repeatItem ? (c(!0), p(
|
|
1334
|
+
(m = e.blockComponent) != null && m.noWrap ? (c(), p(I, { key: 1 }, [
|
|
1335
|
+
e.repeatItem ? (c(!0), p(I, { key: 1 }, W(e.repeatItem, (d, f) => (c(), y(h, {
|
|
1336
1336
|
key: f,
|
|
1337
1337
|
repeatContext: d.context,
|
|
1338
1338
|
block: d.block,
|
|
@@ -1350,8 +1350,8 @@ function to(e, t, n, o, r, s) {
|
|
|
1350
1350
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1351
1351
|
isInteractive: e.componentRefProps.isInteractive
|
|
1352
1352
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1353
|
-
], 64)) : (c(), p(
|
|
1354
|
-
e.repeatItem ? (c(!0), p(
|
|
1353
|
+
], 64)) : (c(), p(I, { key: 0 }, [
|
|
1354
|
+
e.repeatItem ? (c(!0), p(I, { key: 1 }, W(e.repeatItem, (d, f) => (c(), y(h, {
|
|
1355
1355
|
key: f,
|
|
1356
1356
|
repeatContext: d.context,
|
|
1357
1357
|
block: d.block,
|
|
@@ -1375,7 +1375,7 @@ function to(e, t, n, o, r, s) {
|
|
|
1375
1375
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1376
1376
|
isInteractive: e.componentRefProps.isInteractive
|
|
1377
1377
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1378
|
-
(c(!0), p(
|
|
1378
|
+
(c(!0), p(I, null, W(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
|
|
1379
1379
|
key: d.id,
|
|
1380
1380
|
block: d,
|
|
1381
1381
|
registeredComponents: e.registeredComponents,
|
|
@@ -1386,12 +1386,12 @@ function to(e, t, n, o, r, s) {
|
|
|
1386
1386
|
_: 1
|
|
1387
1387
|
}, 8, ["Wrapper", "block", "context"]))
|
|
1388
1388
|
], 64))
|
|
1389
|
-
], 64)) :
|
|
1389
|
+
], 64)) : S("", !0);
|
|
1390
1390
|
}
|
|
1391
|
-
const
|
|
1391
|
+
const lt = /* @__PURE__ */ b(eo, [["render", to]]), Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1392
1392
|
__proto__: null,
|
|
1393
|
-
default:
|
|
1394
|
-
}, Symbol.toStringTag, { value: "Module" })), no =
|
|
1393
|
+
default: lt
|
|
1394
|
+
}, Symbol.toStringTag, { value: "Module" })), no = g({
|
|
1395
1395
|
name: "builder-blocks-wrapper",
|
|
1396
1396
|
props: [
|
|
1397
1397
|
"blocks",
|
|
@@ -1461,14 +1461,14 @@ function oo(e, t, n, o, r, s) {
|
|
|
1461
1461
|
onKeyPress: (i) => e.onClick()
|
|
1462
1462
|
}, { ...e.BlocksWrapperProps }), {
|
|
1463
1463
|
default: N(() => [
|
|
1464
|
-
|
|
1464
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
1465
1465
|
]),
|
|
1466
1466
|
_: 3
|
|
1467
1467
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1468
1468
|
}
|
|
1469
|
-
const ro = /* @__PURE__ */
|
|
1469
|
+
const ro = /* @__PURE__ */ b(no, [["render", oo], ["__scopeId", "data-v-ba2bc5c0"]]), so = g({
|
|
1470
1470
|
name: "builder-blocks",
|
|
1471
|
-
components: { BlocksWrapper: ro, Block:
|
|
1471
|
+
components: { BlocksWrapper: ro, Block: lt },
|
|
1472
1472
|
props: [
|
|
1473
1473
|
"blocks",
|
|
1474
1474
|
"parent",
|
|
@@ -1481,11 +1481,11 @@ const ro = /* @__PURE__ */ g(no, [["render", oo], ["__scopeId", "data-v-ba2bc5c0
|
|
|
1481
1481
|
],
|
|
1482
1482
|
inject: {
|
|
1483
1483
|
builderContext: le.key,
|
|
1484
|
-
componentsContext:
|
|
1484
|
+
componentsContext: Ne.key
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
1487
|
function io(e, t, n, o, r, s) {
|
|
1488
|
-
var a, u,
|
|
1488
|
+
var a, u, h, m;
|
|
1489
1489
|
const i = k("Block"), l = k("BlocksWrapper");
|
|
1490
1490
|
return c(), y(l, {
|
|
1491
1491
|
blocks: e.blocks,
|
|
@@ -1494,38 +1494,38 @@ function io(e, t, n, o, r, s) {
|
|
|
1494
1494
|
styleProp: e.styleProp,
|
|
1495
1495
|
classNameProp: e.className,
|
|
1496
1496
|
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
|
|
1497
|
-
BlocksWrapperProps: ((
|
|
1497
|
+
BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((m = e.builderContext) == null ? void 0 : m.BlocksWrapperProps)
|
|
1498
1498
|
}, {
|
|
1499
1499
|
default: N(() => [
|
|
1500
|
-
e.blocks ? (c(!0), p(
|
|
1501
|
-
var
|
|
1500
|
+
e.blocks ? (c(!0), p(I, { key: 0 }, W(e.blocks, (d, f) => {
|
|
1501
|
+
var v;
|
|
1502
1502
|
return c(), y(i, {
|
|
1503
1503
|
key: d.id,
|
|
1504
1504
|
block: d,
|
|
1505
1505
|
linkComponent: e.linkComponent,
|
|
1506
1506
|
context: e.context || e.builderContext,
|
|
1507
|
-
registeredComponents: e.registeredComponents || ((
|
|
1507
|
+
registeredComponents: e.registeredComponents || ((v = e.componentsContext) == null ? void 0 : v.registeredComponents)
|
|
1508
1508
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1509
|
-
}), 128)) :
|
|
1509
|
+
}), 128)) : S("", !0)
|
|
1510
1510
|
]),
|
|
1511
1511
|
_: 1
|
|
1512
1512
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1513
1513
|
}
|
|
1514
|
-
const H = /* @__PURE__ */
|
|
1514
|
+
const H = /* @__PURE__ */ b(so, [["render", io]]), ao = g({
|
|
1515
1515
|
name: "dynamic-div",
|
|
1516
1516
|
props: []
|
|
1517
1517
|
});
|
|
1518
1518
|
function lo(e, t, n, o, r, s) {
|
|
1519
1519
|
return c(), p("div", null, [
|
|
1520
|
-
|
|
1520
|
+
B(e.$slots, "default")
|
|
1521
1521
|
]);
|
|
1522
1522
|
}
|
|
1523
|
-
const X = /* @__PURE__ */
|
|
1523
|
+
const X = /* @__PURE__ */ b(ao, [["render", lo]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1524
1524
|
__proto__: null,
|
|
1525
1525
|
default: X
|
|
1526
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1526
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = g({
|
|
1527
1527
|
render() {
|
|
1528
|
-
return
|
|
1528
|
+
return Ae("style", {
|
|
1529
1529
|
innerHTML: this.styles,
|
|
1530
1530
|
"data-id": this.id,
|
|
1531
1531
|
nonce: this.nonce
|
|
@@ -1575,10 +1575,10 @@ const X = /* @__PURE__ */ g(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1575
1575
|
min: s,
|
|
1576
1576
|
default: s + 1
|
|
1577
1577
|
}, n;
|
|
1578
|
-
}, po = (e) => `builder-columns ${e}-breakpoints`, mo =
|
|
1578
|
+
}, po = (e) => `builder-columns ${e}-breakpoints`, mo = g({
|
|
1579
1579
|
name: "builder-columns",
|
|
1580
1580
|
components: {
|
|
1581
|
-
InlinedStyles:
|
|
1581
|
+
InlinedStyles: ke,
|
|
1582
1582
|
DynamicRenderer: me,
|
|
1583
1583
|
Blocks: H,
|
|
1584
1584
|
DynamicDiv: X
|
|
@@ -1711,7 +1711,7 @@ const X = /* @__PURE__ */ g(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1711
1711
|
href: e.link
|
|
1712
1712
|
} : {},
|
|
1713
1713
|
[Z()]: "builder-column",
|
|
1714
|
-
style:
|
|
1714
|
+
style: it(this.columnCssVars(t))
|
|
1715
1715
|
};
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
@@ -1728,41 +1728,41 @@ function ho(e, t, n, o, r, s) {
|
|
|
1728
1728
|
id: "builderio-columns",
|
|
1729
1729
|
styles: e.columnsStyles(),
|
|
1730
1730
|
nonce: e.builderContext.nonce
|
|
1731
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1732
|
-
(c(!0), p(
|
|
1733
|
-
key:
|
|
1734
|
-
TagName: e.getTagName(
|
|
1731
|
+
}, null, 8, ["styles", "nonce"])) : S("", !0),
|
|
1732
|
+
(c(!0), p(I, null, W(e.columns, (h, m) => (c(), y(a, {
|
|
1733
|
+
key: m,
|
|
1734
|
+
TagName: e.getTagName(h),
|
|
1735
1735
|
actionAttributes: {},
|
|
1736
|
-
attributes: e.getAttributes(
|
|
1736
|
+
attributes: e.getAttributes(h, m)
|
|
1737
1737
|
}, {
|
|
1738
1738
|
default: N(() => [
|
|
1739
1739
|
R(l, {
|
|
1740
|
-
path: `columns.${
|
|
1740
|
+
path: `columns.${m}.blocks`,
|
|
1741
1741
|
parent: e.builderBlock.id,
|
|
1742
|
-
styleProp: {
|
|
1743
|
-
flexGrow: "1"
|
|
1744
|
-
},
|
|
1745
1742
|
context: e.builderContext,
|
|
1746
1743
|
registeredComponents: e.builderComponents,
|
|
1747
1744
|
linkComponent: e.builderLinkComponent,
|
|
1748
|
-
blocks:
|
|
1745
|
+
blocks: h.blocks,
|
|
1746
|
+
styleProp: {
|
|
1747
|
+
flexGrow: "1"
|
|
1748
|
+
}
|
|
1749
1749
|
}, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
|
|
1750
1750
|
]),
|
|
1751
1751
|
_: 2
|
|
1752
1752
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1753
1753
|
], 16);
|
|
1754
1754
|
}
|
|
1755
|
-
const fo = /* @__PURE__ */
|
|
1755
|
+
const fo = /* @__PURE__ */ b(mo, [["render", ho], ["__scopeId", "data-v-bdc9da04"]]), go = g({
|
|
1756
1756
|
name: "builder-fragment-component",
|
|
1757
1757
|
props: []
|
|
1758
1758
|
});
|
|
1759
|
-
function
|
|
1759
|
+
function bo(e, t, n, o, r, s) {
|
|
1760
1760
|
return c(), p("span", null, [
|
|
1761
|
-
|
|
1761
|
+
B(e.$slots, "default")
|
|
1762
1762
|
]);
|
|
1763
1763
|
}
|
|
1764
|
-
const yo = /* @__PURE__ */
|
|
1765
|
-
function
|
|
1764
|
+
const yo = /* @__PURE__ */ b(go, [["render", bo]]);
|
|
1765
|
+
function Ee(e) {
|
|
1766
1766
|
return e.replace(/http(s)?:/, "");
|
|
1767
1767
|
}
|
|
1768
1768
|
function ko(e = "", t, n) {
|
|
@@ -1773,11 +1773,11 @@ function vo(e, t) {
|
|
|
1773
1773
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1774
1774
|
return e;
|
|
1775
1775
|
if (t === "master")
|
|
1776
|
-
return
|
|
1776
|
+
return Ee(e);
|
|
1777
1777
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1778
1778
|
if (n) {
|
|
1779
1779
|
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
1780
|
-
return
|
|
1780
|
+
return Ee(`${o[0]}_${s}${r}`);
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
@@ -1792,7 +1792,7 @@ function oe(e) {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [vo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1794
1794
|
}
|
|
1795
|
-
const So =
|
|
1795
|
+
const So = g({
|
|
1796
1796
|
name: "builder-image",
|
|
1797
1797
|
props: [
|
|
1798
1798
|
"image",
|
|
@@ -1809,8 +1809,6 @@ const So = b({
|
|
|
1809
1809
|
"builderBlock",
|
|
1810
1810
|
"fitContent"
|
|
1811
1811
|
],
|
|
1812
|
-
mounted() {
|
|
1813
|
-
},
|
|
1814
1812
|
computed: {
|
|
1815
1813
|
srcSetToUse() {
|
|
1816
1814
|
var n;
|
|
@@ -1848,14 +1846,14 @@ const So = b({
|
|
|
1848
1846
|
class: "div-29wpyomtntv-2"
|
|
1849
1847
|
};
|
|
1850
1848
|
function Io(e, t, n, o, r, s) {
|
|
1851
|
-
var i, l, a, u,
|
|
1852
|
-
return c(), p(
|
|
1849
|
+
var i, l, a, u, h, m;
|
|
1850
|
+
return c(), p(I, null, [
|
|
1853
1851
|
z("picture", null, [
|
|
1854
1852
|
e.webpSrcSet ? (c(), p("source", {
|
|
1855
1853
|
key: 0,
|
|
1856
1854
|
type: "image/webp",
|
|
1857
1855
|
srcset: e.webpSrcSet
|
|
1858
|
-
}, null, 8, Co)) :
|
|
1856
|
+
}, null, 8, Co)) : S("", !0),
|
|
1859
1857
|
z("img", {
|
|
1860
1858
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1861
1859
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -1880,18 +1878,18 @@ function Io(e, t, n, o, r, s) {
|
|
|
1880
1878
|
style: D({
|
|
1881
1879
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1882
1880
|
})
|
|
1883
|
-
}, null, 4)) :
|
|
1884
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1885
|
-
!e.fitContent && ((
|
|
1886
|
-
|
|
1887
|
-
])) :
|
|
1881
|
+
}, null, 4)) : S("", !0),
|
|
1882
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1883
|
+
!e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? (c(), p("div", wo, [
|
|
1884
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
1885
|
+
])) : S("", !0)
|
|
1888
1886
|
], 64);
|
|
1889
1887
|
}
|
|
1890
|
-
const $o = /* @__PURE__ */
|
|
1888
|
+
const $o = /* @__PURE__ */ b(So, [["render", Io], ["__scopeId", "data-v-33d4f353"]]), Ro = g({
|
|
1891
1889
|
name: "builder-section-component",
|
|
1892
1890
|
props: ["attributes", "maxWidth"],
|
|
1893
1891
|
data() {
|
|
1894
|
-
return { filterAttrs:
|
|
1892
|
+
return { filterAttrs: V };
|
|
1895
1893
|
}
|
|
1896
1894
|
});
|
|
1897
1895
|
function Eo(e, t, n, o, r, s) {
|
|
@@ -1908,11 +1906,11 @@ function Eo(e, t, n, o, r, s) {
|
|
|
1908
1906
|
marginLeft: "auto",
|
|
1909
1907
|
marginRight: "auto"
|
|
1910
1908
|
}
|
|
1911
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1912
|
-
|
|
1909
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1910
|
+
B(e.$slots, "default")
|
|
1913
1911
|
], 16);
|
|
1914
1912
|
}
|
|
1915
|
-
const Po = /* @__PURE__ */
|
|
1913
|
+
const Po = /* @__PURE__ */ b(Ro, [["render", Eo]]), re = {
|
|
1916
1914
|
"@type": "@builder.io/sdk:Element",
|
|
1917
1915
|
layerName: "Accordion item title",
|
|
1918
1916
|
responsiveStyles: {
|
|
@@ -2036,7 +2034,7 @@ const Po = /* @__PURE__ */ g(Ro, [["render", Eo]]), re = {
|
|
|
2036
2034
|
builderComponents: !0,
|
|
2037
2035
|
builderLinkComponent: !0
|
|
2038
2036
|
}
|
|
2039
|
-
},
|
|
2037
|
+
}, xo = (e) => e.toString(), Ao = g({
|
|
2040
2038
|
name: "builder-accordion",
|
|
2041
2039
|
components: { Blocks: H },
|
|
2042
2040
|
props: [
|
|
@@ -2050,7 +2048,7 @@ const Po = /* @__PURE__ */ g(Ro, [["render", Eo]]), re = {
|
|
|
2050
2048
|
"builderLinkComponent"
|
|
2051
2049
|
],
|
|
2052
2050
|
data() {
|
|
2053
|
-
return { open: [], convertOrderNumberToString:
|
|
2051
|
+
return { open: [], convertOrderNumberToString: xo };
|
|
2054
2052
|
},
|
|
2055
2053
|
computed: {
|
|
2056
2054
|
onlyOneAtATime() {
|
|
@@ -2138,7 +2136,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2138
2136
|
class: "builder-accordion",
|
|
2139
2137
|
style: D(e.accordionStyles)
|
|
2140
2138
|
}, [
|
|
2141
|
-
(c(!0), p(
|
|
2139
|
+
(c(!0), p(I, null, W(e.items, (l, a) => (c(), p(I, { key: a }, [
|
|
2142
2140
|
z("div", {
|
|
2143
2141
|
class: G(e.getAccordionTitleClassName(a)),
|
|
2144
2142
|
style: D({
|
|
@@ -2173,11 +2171,11 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2173
2171
|
registeredComponents: e.builderComponents,
|
|
2174
2172
|
linkComponent: e.builderLinkComponent
|
|
2175
2173
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2176
|
-
], 6)) :
|
|
2174
|
+
], 6)) : S("", !0)
|
|
2177
2175
|
], 64))), 128))
|
|
2178
2176
|
], 4);
|
|
2179
2177
|
}
|
|
2180
|
-
const No = /* @__PURE__ */
|
|
2178
|
+
const No = /* @__PURE__ */ b(Ao, [["render", Wo]]), Fo = {
|
|
2181
2179
|
name: "Core:Button",
|
|
2182
2180
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2183
2181
|
defaultStyles: {
|
|
@@ -2426,7 +2424,7 @@ const No = /* @__PURE__ */ g(xo, [["render", Wo]]), Fo = {
|
|
|
2426
2424
|
hidden: !0,
|
|
2427
2425
|
canHaveChildren: !0,
|
|
2428
2426
|
noWrap: !0
|
|
2429
|
-
},
|
|
2427
|
+
}, ve = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Lo = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Uo = {
|
|
2430
2428
|
name: "Image",
|
|
2431
2429
|
static: !0,
|
|
2432
2430
|
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",
|
|
@@ -2441,21 +2439,21 @@ const No = /* @__PURE__ */ g(xo, [["render", Wo]]), Fo = {
|
|
|
2441
2439
|
name: "image",
|
|
2442
2440
|
type: "file",
|
|
2443
2441
|
bubble: !0,
|
|
2444
|
-
allowedFileTypes:
|
|
2442
|
+
allowedFileTypes: ve,
|
|
2445
2443
|
required: !0,
|
|
2446
2444
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2447
2445
|
onChange: (e) => {
|
|
2448
2446
|
e.delete("srcset"), e.delete("noWebp");
|
|
2449
2447
|
function n(i, l = 6e4) {
|
|
2450
2448
|
return new Promise((a, u) => {
|
|
2451
|
-
const
|
|
2452
|
-
let
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
},
|
|
2449
|
+
const h = document.createElement("img");
|
|
2450
|
+
let m = !1;
|
|
2451
|
+
h.onload = () => {
|
|
2452
|
+
m = !0, a(h);
|
|
2453
|
+
}, h.addEventListener("error", (d) => {
|
|
2456
2454
|
console.warn("Image load failed", d.error), u(d.error);
|
|
2457
|
-
}),
|
|
2458
|
-
|
|
2455
|
+
}), h.src = i, setTimeout(() => {
|
|
2456
|
+
m || u(new Error("Image load timed out"));
|
|
2459
2457
|
}, l);
|
|
2460
2458
|
});
|
|
2461
2459
|
}
|
|
@@ -2590,7 +2588,7 @@ const No = /* @__PURE__ */ g(xo, [["render", Wo]]), Fo = {
|
|
|
2590
2588
|
builderContext: !0,
|
|
2591
2589
|
builderComponents: !0
|
|
2592
2590
|
}
|
|
2593
|
-
}, jo =
|
|
2591
|
+
}, jo = g({
|
|
2594
2592
|
name: "builder-slot",
|
|
2595
2593
|
components: { Blocks: H },
|
|
2596
2594
|
props: ["builderContext", "name", "builderComponents"]
|
|
@@ -2615,7 +2613,7 @@ function Ko(e, t, n, o, r, s) {
|
|
|
2615
2613
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2616
2614
|
], 16);
|
|
2617
2615
|
}
|
|
2618
|
-
const qo = /* @__PURE__ */
|
|
2616
|
+
const qo = /* @__PURE__ */ b(jo, [["render", Ko]]), zo = {
|
|
2619
2617
|
name: "Symbol",
|
|
2620
2618
|
noWrap: !0,
|
|
2621
2619
|
static: !0,
|
|
@@ -2795,7 +2793,7 @@ const qo = /* @__PURE__ */ g(jo, [["render", Ko]]), zo = {
|
|
|
2795
2793
|
builderComponents: !0,
|
|
2796
2794
|
builderLinkComponent: !0
|
|
2797
2795
|
}
|
|
2798
|
-
}, Jo =
|
|
2796
|
+
}, Jo = g({
|
|
2799
2797
|
name: "builder-tabs",
|
|
2800
2798
|
components: { Blocks: H },
|
|
2801
2799
|
props: [
|
|
@@ -2833,7 +2831,7 @@ function Qo(e, t, n, o, r, s) {
|
|
|
2833
2831
|
overflow: "auto"
|
|
2834
2832
|
})
|
|
2835
2833
|
}, [
|
|
2836
|
-
(c(!0), p(
|
|
2834
|
+
(c(!0), p(I, null, W(e.tabs, (l, a) => (c(), p("span", {
|
|
2837
2835
|
key: a,
|
|
2838
2836
|
class: G(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2839
2837
|
style: D({
|
|
@@ -2860,10 +2858,10 @@ function Qo(e, t, n, o, r, s) {
|
|
|
2860
2858
|
registeredComponents: e.builderComponents,
|
|
2861
2859
|
linkComponent: e.builderLinkComponent
|
|
2862
2860
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2863
|
-
])) :
|
|
2861
|
+
])) : S("", !0)
|
|
2864
2862
|
]);
|
|
2865
2863
|
}
|
|
2866
|
-
const Zo = /* @__PURE__ */
|
|
2864
|
+
const Zo = /* @__PURE__ */ b(Jo, [["render", Qo]]), _o = {
|
|
2867
2865
|
shouldReceiveBuilderProps: {
|
|
2868
2866
|
builderBlock: !1,
|
|
2869
2867
|
builderContext: !0
|
|
@@ -2885,7 +2883,7 @@ const Zo = /* @__PURE__ */ g(Jo, [["render", Qo]]), _o = {
|
|
|
2885
2883
|
height: "auto",
|
|
2886
2884
|
textAlign: "center"
|
|
2887
2885
|
}
|
|
2888
|
-
}, er =
|
|
2886
|
+
}, er = g({
|
|
2889
2887
|
name: "builder-text",
|
|
2890
2888
|
props: ["text"]
|
|
2891
2889
|
}), tr = ["innerHTML"];
|
|
@@ -2899,7 +2897,7 @@ function nr(e, t, n, o, r, s) {
|
|
|
2899
2897
|
}
|
|
2900
2898
|
}, null, 8, tr);
|
|
2901
2899
|
}
|
|
2902
|
-
const or = /* @__PURE__ */
|
|
2900
|
+
const or = /* @__PURE__ */ b(er, [["render", nr]]), rr = {
|
|
2903
2901
|
name: "Custom Code",
|
|
2904
2902
|
static: !0,
|
|
2905
2903
|
requiredPermissions: ["editCode"],
|
|
@@ -2921,7 +2919,7 @@ const or = /* @__PURE__ */ g(er, [["render", nr]]), rr = {
|
|
|
2921
2919
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2922
2920
|
advanced: !0
|
|
2923
2921
|
}]
|
|
2924
|
-
}, sr =
|
|
2922
|
+
}, sr = g({
|
|
2925
2923
|
name: "builder-custom-code",
|
|
2926
2924
|
props: ["replaceNodes", "code"],
|
|
2927
2925
|
data() {
|
|
@@ -2963,7 +2961,7 @@ function ar(e, t, n, o, r, s) {
|
|
|
2963
2961
|
innerHTML: e.code
|
|
2964
2962
|
}, null, 10, ir);
|
|
2965
2963
|
}
|
|
2966
|
-
const lr = /* @__PURE__ */
|
|
2964
|
+
const lr = /* @__PURE__ */ b(sr, [["render", ar]]), cr = {
|
|
2967
2965
|
name: "Embed",
|
|
2968
2966
|
static: !0,
|
|
2969
2967
|
inputs: [{
|
|
@@ -2978,7 +2976,7 @@ const lr = /* @__PURE__ */ g(sr, [["render", ar]]), cr = {
|
|
|
2978
2976
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2979
2977
|
hideFromUI: !0
|
|
2980
2978
|
}]
|
|
2981
|
-
}, dr = ["text/javascript", "application/javascript", "application/ecmascript"], ur = (e) => dr.includes(e.type), pr =
|
|
2979
|
+
}, dr = ["text/javascript", "application/javascript", "application/ecmascript"], ur = (e) => dr.includes(e.type), pr = g({
|
|
2982
2980
|
name: "builder-embed",
|
|
2983
2981
|
props: ["content"],
|
|
2984
2982
|
data() {
|
|
@@ -3028,7 +3026,7 @@ function hr(e, t, n, o, r, s) {
|
|
|
3028
3026
|
innerHTML: e.content
|
|
3029
3027
|
}, null, 8, mr);
|
|
3030
3028
|
}
|
|
3031
|
-
const fr = /* @__PURE__ */
|
|
3029
|
+
const fr = /* @__PURE__ */ b(pr, [["render", hr]]), gr = {
|
|
3032
3030
|
name: "Form:Form",
|
|
3033
3031
|
// editableTags: ['builder-form-error']
|
|
3034
3032
|
defaults: {
|
|
@@ -3265,12 +3263,12 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3265
3263
|
builderComponents: !0,
|
|
3266
3264
|
builderLinkComponent: !0
|
|
3267
3265
|
}
|
|
3268
|
-
},
|
|
3266
|
+
}, br = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], yr = () => {
|
|
3269
3267
|
const e = process.env.NODE_ENV || "production";
|
|
3270
|
-
return
|
|
3271
|
-
}, kr =
|
|
3268
|
+
return br.includes(e) ? e : "production";
|
|
3269
|
+
}, kr = g({
|
|
3272
3270
|
name: "builder-form-component",
|
|
3273
|
-
components: {
|
|
3271
|
+
components: { Blocks: H },
|
|
3274
3272
|
props: [
|
|
3275
3273
|
"builderContext",
|
|
3276
3274
|
"previewState",
|
|
@@ -3287,9 +3285,6 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3287
3285
|
"successUrl",
|
|
3288
3286
|
"validate",
|
|
3289
3287
|
"attributes",
|
|
3290
|
-
"builderBlock",
|
|
3291
|
-
"builderComponents",
|
|
3292
|
-
"builderLinkComponent",
|
|
3293
3288
|
"errorMessage",
|
|
3294
3289
|
"sendingMessage",
|
|
3295
3290
|
"successMessage"
|
|
@@ -3299,7 +3294,7 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3299
3294
|
formState: "unsubmitted",
|
|
3300
3295
|
responseData: null,
|
|
3301
3296
|
formErrorMessage: "",
|
|
3302
|
-
filterAttrs:
|
|
3297
|
+
filterAttrs: V
|
|
3303
3298
|
};
|
|
3304
3299
|
},
|
|
3305
3300
|
methods: {
|
|
@@ -3329,12 +3324,12 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3329
3324
|
let s;
|
|
3330
3325
|
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
|
|
3331
3326
|
let f;
|
|
3332
|
-
const
|
|
3327
|
+
const v = d.name;
|
|
3333
3328
|
if (d instanceof HTMLInputElement)
|
|
3334
3329
|
if (d.type === "radio") {
|
|
3335
3330
|
if (d.checked)
|
|
3336
3331
|
return f = d.name, {
|
|
3337
|
-
key:
|
|
3332
|
+
key: v,
|
|
3338
3333
|
value: f
|
|
3339
3334
|
};
|
|
3340
3335
|
} else if (d.type === "checkbox")
|
|
@@ -3347,7 +3342,7 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3347
3342
|
else
|
|
3348
3343
|
f = d.value;
|
|
3349
3344
|
return {
|
|
3350
|
-
key:
|
|
3345
|
+
key: v,
|
|
3351
3346
|
value: f
|
|
3352
3347
|
};
|
|
3353
3348
|
});
|
|
@@ -3358,8 +3353,8 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3358
3353
|
s = i;
|
|
3359
3354
|
else {
|
|
3360
3355
|
const d = {};
|
|
3361
|
-
Array.from(l).forEach(({ value: f, key:
|
|
3362
|
-
|
|
3356
|
+
Array.from(l).forEach(({ value: f, key: v }) => {
|
|
3357
|
+
Ve(d, v, f);
|
|
3363
3358
|
}), s = JSON.stringify(d);
|
|
3364
3359
|
}
|
|
3365
3360
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3371,19 +3366,19 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3371
3366
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3372
3367
|
return;
|
|
3373
3368
|
this.formState = "sending";
|
|
3374
|
-
const
|
|
3369
|
+
const h = `${yr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3375
3370
|
this.sendSubmissionsToEmail || ""
|
|
3376
|
-
)}&name=${encodeURIComponent(this.name || "")}`,
|
|
3377
|
-
he(
|
|
3371
|
+
)}&name=${encodeURIComponent(this.name || "")}`, m = this.sendSubmissionsTo === "email" ? h : this.action;
|
|
3372
|
+
he(m), fetch(m, {
|
|
3378
3373
|
body: s,
|
|
3379
3374
|
headers: r,
|
|
3380
3375
|
method: this.method || "post"
|
|
3381
3376
|
}).then(
|
|
3382
3377
|
async (d) => {
|
|
3383
3378
|
let f;
|
|
3384
|
-
const
|
|
3385
|
-
if (
|
|
3386
|
-
let T =
|
|
3379
|
+
const v = d.headers.get("content-type");
|
|
3380
|
+
if (v && v.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3381
|
+
let T = Fe(f, this.errorMessagePath);
|
|
3387
3382
|
T && (typeof T != "string" && (T = JSON.stringify(T)), this.formErrorMessage = T, this.mergeNewRootState({
|
|
3388
3383
|
formErrorMessage: T
|
|
3389
3384
|
}));
|
|
@@ -3425,49 +3420,42 @@ const fr = /* @__PURE__ */ g(pr, [["render", hr]]), br = {
|
|
|
3425
3420
|
}
|
|
3426
3421
|
}
|
|
3427
3422
|
}), vr = ["validate", "action", "method", "name"], Sr = {
|
|
3428
|
-
key:
|
|
3423
|
+
key: 2,
|
|
3429
3424
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3430
3425
|
};
|
|
3431
3426
|
function Cr(e, t, n, o, r, s) {
|
|
3432
|
-
|
|
3433
|
-
const i = k("Block"), l = k("Blocks");
|
|
3427
|
+
const i = k("Blocks");
|
|
3434
3428
|
return c(), p("form", C({
|
|
3435
3429
|
validate: e.validate,
|
|
3436
3430
|
ref: "formRef",
|
|
3437
3431
|
action: !e.sendWithJs && e.action,
|
|
3438
3432
|
method: e.method,
|
|
3439
3433
|
name: e.name,
|
|
3440
|
-
onSubmit: t[0] || (t[0] = async (
|
|
3441
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3442
|
-
e
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
context: e.builderContext,
|
|
3446
|
-
registeredComponents: e.builderComponents,
|
|
3447
|
-
linkComponent: e.builderLinkComponent
|
|
3448
|
-
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : v("", !0),
|
|
3449
|
-
e.submissionState() === "error" ? (c(), y(l, {
|
|
3450
|
-
key: 1,
|
|
3434
|
+
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
3435
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3436
|
+
B(e.$slots, "default", {}, void 0, !0),
|
|
3437
|
+
e.submissionState() === "error" ? (c(), y(i, {
|
|
3438
|
+
key: 0,
|
|
3451
3439
|
path: "errorMessage",
|
|
3452
3440
|
blocks: e.errorMessage,
|
|
3453
3441
|
context: e.builderContext
|
|
3454
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3455
|
-
e.submissionState() === "sending" ? (c(), y(
|
|
3456
|
-
key:
|
|
3442
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3443
|
+
e.submissionState() === "sending" ? (c(), y(i, {
|
|
3444
|
+
key: 1,
|
|
3457
3445
|
path: "sendingMessage",
|
|
3458
3446
|
blocks: e.sendingMessage,
|
|
3459
3447
|
context: e.builderContext
|
|
3460
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3461
|
-
e.submissionState() === "error" && e.responseData ? (c(), p("pre", Sr, te(JSON.stringify(e.responseData, null, 2)), 1)) :
|
|
3462
|
-
e.submissionState() === "success" ? (c(), y(
|
|
3463
|
-
key:
|
|
3448
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3449
|
+
e.submissionState() === "error" && e.responseData ? (c(), p("pre", Sr, te(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3450
|
+
e.submissionState() === "success" ? (c(), y(i, {
|
|
3451
|
+
key: 3,
|
|
3464
3452
|
path: "successMessage",
|
|
3465
3453
|
blocks: e.successMessage,
|
|
3466
3454
|
context: e.builderContext
|
|
3467
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3455
|
+
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
3468
3456
|
], 16, vr);
|
|
3469
3457
|
}
|
|
3470
|
-
const Tr = /* @__PURE__ */
|
|
3458
|
+
const Tr = /* @__PURE__ */ b(kr, [["render", Cr], ["__scopeId", "data-v-77d3dc14"]]), wr = {
|
|
3471
3459
|
name: "Form:Input",
|
|
3472
3460
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3473
3461
|
inputs: [
|
|
@@ -3518,7 +3506,7 @@ const Tr = /* @__PURE__ */ g(kr, [["render", Cr], ["__scopeId", "data-v-92491cd4
|
|
|
3518
3506
|
borderStyle: "solid",
|
|
3519
3507
|
borderColor: "#ccc"
|
|
3520
3508
|
}
|
|
3521
|
-
}, Ir =
|
|
3509
|
+
}, Ir = g({
|
|
3522
3510
|
name: "builder-form-input-component",
|
|
3523
3511
|
props: [
|
|
3524
3512
|
"attributes",
|
|
@@ -3530,7 +3518,7 @@ const Tr = /* @__PURE__ */ g(kr, [["render", Cr], ["__scopeId", "data-v-92491cd4
|
|
|
3530
3518
|
"required"
|
|
3531
3519
|
],
|
|
3532
3520
|
data() {
|
|
3533
|
-
return { isEditing: P, filterAttrs:
|
|
3521
|
+
return { isEditing: P, filterAttrs: V };
|
|
3534
3522
|
}
|
|
3535
3523
|
}), $r = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3536
3524
|
function Rr(e, t, n, o, r, s) {
|
|
@@ -3542,9 +3530,9 @@ function Rr(e, t, n, o, r, s) {
|
|
|
3542
3530
|
value: e.value,
|
|
3543
3531
|
defaultValue: e.defaultValue,
|
|
3544
3532
|
required: e.required
|
|
3545
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3533
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, $r);
|
|
3546
3534
|
}
|
|
3547
|
-
const Er = /* @__PURE__ */
|
|
3535
|
+
const Er = /* @__PURE__ */ b(Ir, [["render", Rr]]), Pr = {
|
|
3548
3536
|
name: "Form:Select",
|
|
3549
3537
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3550
3538
|
defaultStyles: {
|
|
@@ -3586,13 +3574,13 @@ const Er = /* @__PURE__ */ g(Ir, [["render", Rr]]), Pr = {
|
|
|
3586
3574
|
}],
|
|
3587
3575
|
static: !0,
|
|
3588
3576
|
noWrap: !0
|
|
3589
|
-
}, Br =
|
|
3577
|
+
}, Br = g({
|
|
3590
3578
|
name: "builder-select-component",
|
|
3591
3579
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3592
3580
|
data() {
|
|
3593
|
-
return { isEditing: P, filterAttrs:
|
|
3581
|
+
return { isEditing: P, filterAttrs: V };
|
|
3594
3582
|
}
|
|
3595
|
-
}),
|
|
3583
|
+
}), xr = ["value", "defaultValue", "name", "required"], Ar = ["value"];
|
|
3596
3584
|
function Vr(e, t, n, o, r, s) {
|
|
3597
3585
|
return c(), p("select", C({
|
|
3598
3586
|
value: e.value,
|
|
@@ -3600,14 +3588,14 @@ function Vr(e, t, n, o, r, s) {
|
|
|
3600
3588
|
defaultValue: e.defaultValue,
|
|
3601
3589
|
name: e.name,
|
|
3602
3590
|
required: e.required
|
|
3603
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3604
|
-
(c(!0), p(
|
|
3591
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3592
|
+
(c(!0), p(I, null, W(e.options, (i, l) => (c(), p("option", {
|
|
3605
3593
|
key: `${i.name}-${l}`,
|
|
3606
3594
|
value: i.value
|
|
3607
|
-
}, te(i.name || i.value), 9,
|
|
3608
|
-
], 16,
|
|
3595
|
+
}, te(i.name || i.value), 9, Ar))), 128))
|
|
3596
|
+
], 16, xr);
|
|
3609
3597
|
}
|
|
3610
|
-
const Wr = /* @__PURE__ */
|
|
3598
|
+
const Wr = /* @__PURE__ */ b(Br, [["render", Vr]]), Nr = {
|
|
3611
3599
|
name: "Form:SubmitButton",
|
|
3612
3600
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3613
3601
|
defaultStyles: {
|
|
@@ -3632,17 +3620,17 @@ const Wr = /* @__PURE__ */ g(Br, [["render", Vr]]), Nr = {
|
|
|
3632
3620
|
// that only shows if advanced setting is flipped
|
|
3633
3621
|
// TODO: defaultChildren
|
|
3634
3622
|
// canHaveChildren: true,
|
|
3635
|
-
}, Fr =
|
|
3623
|
+
}, Fr = g({
|
|
3636
3624
|
name: "builder-submit-button",
|
|
3637
3625
|
props: ["attributes", "text"],
|
|
3638
3626
|
data() {
|
|
3639
|
-
return { filterAttrs:
|
|
3627
|
+
return { filterAttrs: V };
|
|
3640
3628
|
}
|
|
3641
3629
|
});
|
|
3642
3630
|
function Dr(e, t, n, o, r, s) {
|
|
3643
|
-
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3631
|
+
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
|
|
3644
3632
|
}
|
|
3645
|
-
const Or = /* @__PURE__ */
|
|
3633
|
+
const Or = /* @__PURE__ */ b(Fr, [["render", Dr]]), Lr = {
|
|
3646
3634
|
name: "Form:TextArea",
|
|
3647
3635
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3648
3636
|
inputs: [{
|
|
@@ -3678,7 +3666,7 @@ const Or = /* @__PURE__ */ g(Fr, [["render", Dr]]), Lr = {
|
|
|
3678
3666
|
},
|
|
3679
3667
|
static: !0,
|
|
3680
3668
|
noWrap: !0
|
|
3681
|
-
}, Ur =
|
|
3669
|
+
}, Ur = g({
|
|
3682
3670
|
name: "builder-textarea",
|
|
3683
3671
|
props: [
|
|
3684
3672
|
"attributes",
|
|
@@ -3689,7 +3677,7 @@ const Or = /* @__PURE__ */ g(Fr, [["render", Dr]]), Lr = {
|
|
|
3689
3677
|
"required"
|
|
3690
3678
|
],
|
|
3691
3679
|
data() {
|
|
3692
|
-
return { filterAttrs:
|
|
3680
|
+
return { filterAttrs: V };
|
|
3693
3681
|
}
|
|
3694
3682
|
}), Hr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3695
3683
|
function Mr(e, t, n, o, r, s) {
|
|
@@ -3699,9 +3687,9 @@ function Mr(e, t, n, o, r, s) {
|
|
|
3699
3687
|
value: e.value,
|
|
3700
3688
|
defaultValue: e.defaultValue,
|
|
3701
3689
|
required: e.required
|
|
3702
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3690
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Hr);
|
|
3703
3691
|
}
|
|
3704
|
-
const jr = /* @__PURE__ */
|
|
3692
|
+
const jr = /* @__PURE__ */ b(Ur, [["render", Mr]]), Kr = {
|
|
3705
3693
|
// friendlyName?
|
|
3706
3694
|
name: "Raw:Img",
|
|
3707
3695
|
hideFromInsertMenu: !0,
|
|
@@ -3710,12 +3698,12 @@ const jr = /* @__PURE__ */ g(Ur, [["render", Mr]]), Kr = {
|
|
|
3710
3698
|
name: "image",
|
|
3711
3699
|
bubble: !0,
|
|
3712
3700
|
type: "file",
|
|
3713
|
-
allowedFileTypes:
|
|
3701
|
+
allowedFileTypes: ve,
|
|
3714
3702
|
required: !0
|
|
3715
3703
|
}],
|
|
3716
3704
|
noWrap: !0,
|
|
3717
3705
|
static: !0
|
|
3718
|
-
}, qr =
|
|
3706
|
+
}, qr = g({
|
|
3719
3707
|
name: "builder-img-component",
|
|
3720
3708
|
props: [
|
|
3721
3709
|
"backgroundSize",
|
|
@@ -3726,7 +3714,7 @@ const jr = /* @__PURE__ */ g(Ur, [["render", Mr]]), Kr = {
|
|
|
3726
3714
|
"attributes"
|
|
3727
3715
|
],
|
|
3728
3716
|
data() {
|
|
3729
|
-
return { isEditing: P, filterAttrs:
|
|
3717
|
+
return { isEditing: P, filterAttrs: V };
|
|
3730
3718
|
}
|
|
3731
3719
|
}), zr = ["alt", "src"];
|
|
3732
3720
|
function Gr(e, t, n, o, r, s) {
|
|
@@ -3738,9 +3726,9 @@ function Gr(e, t, n, o, r, s) {
|
|
|
3738
3726
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3739
3727
|
alt: e.altText,
|
|
3740
3728
|
src: e.imgSrc || e.image
|
|
3741
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3729
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, zr);
|
|
3742
3730
|
}
|
|
3743
|
-
const Jr = /* @__PURE__ */
|
|
3731
|
+
const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
|
|
3744
3732
|
name: "Video",
|
|
3745
3733
|
canHaveChildren: !0,
|
|
3746
3734
|
defaultStyles: {
|
|
@@ -3758,7 +3746,7 @@ const Jr = /* @__PURE__ */ g(qr, [["render", Gr]]), Yr = {
|
|
|
3758
3746
|
}, {
|
|
3759
3747
|
name: "posterImage",
|
|
3760
3748
|
type: "file",
|
|
3761
|
-
allowedFileTypes:
|
|
3749
|
+
allowedFileTypes: ve,
|
|
3762
3750
|
helperText: "Image to show before the video plays"
|
|
3763
3751
|
}, {
|
|
3764
3752
|
name: "autoPlay",
|
|
@@ -3824,7 +3812,7 @@ const Jr = /* @__PURE__ */ g(qr, [["render", Gr]]), Yr = {
|
|
|
3824
3812
|
shouldReceiveBuilderProps: {
|
|
3825
3813
|
builderBlock: !0
|
|
3826
3814
|
}
|
|
3827
|
-
}, Xr =
|
|
3815
|
+
}, Xr = g({
|
|
3828
3816
|
name: "builder-video",
|
|
3829
3817
|
props: [
|
|
3830
3818
|
"autoPlay",
|
|
@@ -3893,7 +3881,7 @@ const Jr = /* @__PURE__ */ g(qr, [["render", Gr]]), Yr = {
|
|
|
3893
3881
|
}
|
|
3894
3882
|
};
|
|
3895
3883
|
function ns(e, t, n, o, r, s) {
|
|
3896
|
-
var i, l, a, u,
|
|
3884
|
+
var i, l, a, u, h, m, d;
|
|
3897
3885
|
return c(), p("div", Qr, [
|
|
3898
3886
|
z("video", C({
|
|
3899
3887
|
class: "builder-video",
|
|
@@ -3906,7 +3894,6 @@ function ns(e, t, n, o, r, s) {
|
|
|
3906
3894
|
objectPosition: e.position,
|
|
3907
3895
|
// Hack to get object fit to work as expected and
|
|
3908
3896
|
// not have the video overflow
|
|
3909
|
-
zIndex: 2,
|
|
3910
3897
|
borderRadius: "1px",
|
|
3911
3898
|
...e.aspectRatio ? {
|
|
3912
3899
|
position: "absolute"
|
|
@@ -3915,7 +3902,7 @@ function ns(e, t, n, o, r, s) {
|
|
|
3915
3902
|
src: e.video || "no-src",
|
|
3916
3903
|
poster: e.posterImage
|
|
3917
3904
|
}, e.spreadProps), [
|
|
3918
|
-
e.lazyLoad ?
|
|
3905
|
+
e.lazyLoad ? S("", !0) : (c(), p("source", {
|
|
3919
3906
|
key: 0,
|
|
3920
3907
|
type: "video/mp4",
|
|
3921
3908
|
src: e.video
|
|
@@ -3929,16 +3916,16 @@ function ns(e, t, n, o, r, s) {
|
|
|
3929
3916
|
pointerEvents: "none",
|
|
3930
3917
|
fontSize: "0px"
|
|
3931
3918
|
})
|
|
3932
|
-
}, null, 4)) :
|
|
3933
|
-
(
|
|
3934
|
-
|
|
3935
|
-
])) :
|
|
3936
|
-
(d = (
|
|
3937
|
-
|
|
3938
|
-
])) :
|
|
3919
|
+
}, null, 4)) : S("", !0),
|
|
3920
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div", es, [
|
|
3921
|
+
B(e.$slots, "default")
|
|
3922
|
+
])) : S("", !0),
|
|
3923
|
+
(d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div", ts, [
|
|
3924
|
+
B(e.$slots, "default")
|
|
3925
|
+
])) : S("", !0)
|
|
3939
3926
|
]);
|
|
3940
3927
|
}
|
|
3941
|
-
const os = /* @__PURE__ */
|
|
3928
|
+
const os = /* @__PURE__ */ b(Xr, [["render", ns]]), rs = () => [{
|
|
3942
3929
|
component: lr,
|
|
3943
3930
|
...rr
|
|
3944
3931
|
}, {
|
|
@@ -3946,7 +3933,7 @@ const os = /* @__PURE__ */ g(Xr, [["render", ns]]), rs = () => [{
|
|
|
3946
3933
|
...cr
|
|
3947
3934
|
}, {
|
|
3948
3935
|
component: Tr,
|
|
3949
|
-
...
|
|
3936
|
+
...gr
|
|
3950
3937
|
}, {
|
|
3951
3938
|
component: Er,
|
|
3952
3939
|
...wr
|
|
@@ -3965,8 +3952,8 @@ const os = /* @__PURE__ */ g(Xr, [["render", ns]]), rs = () => [{
|
|
|
3965
3952
|
}, {
|
|
3966
3953
|
component: os,
|
|
3967
3954
|
...Yr
|
|
3968
|
-
}],
|
|
3969
|
-
component:
|
|
3955
|
+
}], Pe = () => [{
|
|
3956
|
+
component: At,
|
|
3970
3957
|
...Fo
|
|
3971
3958
|
}, {
|
|
3972
3959
|
component: fo,
|
|
@@ -4103,9 +4090,9 @@ const os = /* @__PURE__ */ g(Xr, [["render", ns]]), rs = () => [{
|
|
|
4103
4090
|
variationId: t
|
|
4104
4091
|
}) => `window.${ut}(
|
|
4105
4092
|
"${t}", "${e}", ${pt}
|
|
4106
|
-
)`, mt =
|
|
4093
|
+
)`, mt = g({
|
|
4107
4094
|
render() {
|
|
4108
|
-
return
|
|
4095
|
+
return Ae("script", {
|
|
4109
4096
|
innerHTML: this.scriptStr,
|
|
4110
4097
|
"data-id": this.id,
|
|
4111
4098
|
nonce: this.nonce
|
|
@@ -4114,7 +4101,7 @@ const os = /* @__PURE__ */ g(Xr, [["render", ns]]), rs = () => [{
|
|
|
4114
4101
|
name: "inlined-script",
|
|
4115
4102
|
props: ["scriptStr", "id", "nonce"]
|
|
4116
4103
|
});
|
|
4117
|
-
function
|
|
4104
|
+
function Be(e) {
|
|
4118
4105
|
return Math.round(e * 1e3) / 1e3;
|
|
4119
4106
|
}
|
|
4120
4107
|
const ps = (e, t, n = !0) => {
|
|
@@ -4135,7 +4122,7 @@ const ps = (e, t, n = !0) => {
|
|
|
4135
4122
|
event: e,
|
|
4136
4123
|
target: t
|
|
4137
4124
|
}) => {
|
|
4138
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s =
|
|
4125
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Be(o / n.width), i = Be(r / n.height);
|
|
4139
4126
|
return {
|
|
4140
4127
|
x: s,
|
|
4141
4128
|
y: i
|
|
@@ -4156,7 +4143,7 @@ const ps = (e, t, n = !0) => {
|
|
|
4156
4143
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4157
4144
|
}
|
|
4158
4145
|
};
|
|
4159
|
-
}, fs = ["svelte", "qwik", "vue"],
|
|
4146
|
+
}, fs = ["svelte", "qwik", "vue"], gs = () => fs.includes(E) && (P() || Oe()), bs = (e) => {
|
|
4160
4147
|
var s;
|
|
4161
4148
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
|
|
4162
4149
|
let r = "";
|
|
@@ -4186,7 +4173,7 @@ font-weight: ${i};
|
|
|
4186
4173
|
customFonts: e
|
|
4187
4174
|
}) => {
|
|
4188
4175
|
var t;
|
|
4189
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4176
|
+
return ((t = e == null ? void 0 : e.map((n) => bs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4190
4177
|
}, ks = ({
|
|
4191
4178
|
cssCode: e,
|
|
4192
4179
|
contentId: t
|
|
@@ -4207,7 +4194,7 @@ font-weight: ${i};
|
|
|
4207
4194
|
text-align: inherit;
|
|
4208
4195
|
font-family: inherit;
|
|
4209
4196
|
}
|
|
4210
|
-
`, Ss = (e) => e ? "" : vs, Cs = (e) => `variant-${e}`, Ts =
|
|
4197
|
+
`, Ss = (e) => e ? "" : vs, Cs = (e) => `variant-${e}`, Ts = g({
|
|
4211
4198
|
name: "enable-editor",
|
|
4212
4199
|
components: { DynamicDiv: X },
|
|
4213
4200
|
props: [
|
|
@@ -4234,7 +4221,7 @@ font-weight: ${i};
|
|
|
4234
4221
|
httpReqsPending: {},
|
|
4235
4222
|
clicked: !1,
|
|
4236
4223
|
builderContext: le,
|
|
4237
|
-
needsElementRefDivForEditing:
|
|
4224
|
+
needsElementRefDivForEditing: gs,
|
|
4238
4225
|
getWrapperClassName: Cs
|
|
4239
4226
|
};
|
|
4240
4227
|
},
|
|
@@ -4263,7 +4250,7 @@ font-weight: ${i};
|
|
|
4263
4250
|
variationId: o !== r ? o : void 0
|
|
4264
4251
|
});
|
|
4265
4252
|
}
|
|
4266
|
-
|
|
4253
|
+
Oe() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4267
4254
|
new CustomEvent("initpreviewingbldr")
|
|
4268
4255
|
);
|
|
4269
4256
|
}
|
|
@@ -4357,7 +4344,7 @@ font-weight: ${i};
|
|
|
4357
4344
|
this.builderContextSignal.content = t;
|
|
4358
4345
|
},
|
|
4359
4346
|
processMessage(e) {
|
|
4360
|
-
return
|
|
4347
|
+
return Qe({
|
|
4361
4348
|
model: this.model,
|
|
4362
4349
|
trustedHosts: this.trustedHosts,
|
|
4363
4350
|
callbacks: {
|
|
@@ -4371,7 +4358,7 @@ font-weight: ${i};
|
|
|
4371
4358
|
});
|
|
4372
4359
|
},
|
|
4373
4360
|
animation: (t) => {
|
|
4374
|
-
|
|
4361
|
+
rt(t);
|
|
4375
4362
|
},
|
|
4376
4363
|
contentUpdate: (t) => {
|
|
4377
4364
|
this.mergeNewContent(t);
|
|
@@ -4442,7 +4429,7 @@ font-weight: ${i};
|
|
|
4442
4429
|
);
|
|
4443
4430
|
},
|
|
4444
4431
|
elementRef_onIniteditingbldr(e) {
|
|
4445
|
-
window.addEventListener("message", this.processMessage), yn(),
|
|
4432
|
+
window.addEventListener("message", this.processMessage), yn(), Xe({
|
|
4446
4433
|
...this.locale ? {
|
|
4447
4434
|
locale: this.locale
|
|
4448
4435
|
} : {},
|
|
@@ -4470,7 +4457,7 @@ font-weight: ${i};
|
|
|
4470
4457
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
4471
4458
|
`builder.overrides.${n}`
|
|
4472
4459
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4473
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
4460
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && be({
|
|
4474
4461
|
model: this.model || "",
|
|
4475
4462
|
apiKey: this.apiKey,
|
|
4476
4463
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -4501,14 +4488,14 @@ function ws(e, t, n, o, r, s) {
|
|
|
4501
4488
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4502
4489
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4503
4490
|
default: N(() => [
|
|
4504
|
-
|
|
4491
|
+
B(e.$slots, "default")
|
|
4505
4492
|
]),
|
|
4506
4493
|
_: 3
|
|
4507
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
4494
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4508
4495
|
}
|
|
4509
|
-
const Is = /* @__PURE__ */
|
|
4496
|
+
const Is = /* @__PURE__ */ b(Ts, [["render", ws]]), $s = g({
|
|
4510
4497
|
name: "content-styles",
|
|
4511
|
-
components: { InlinedStyles:
|
|
4498
|
+
components: { InlinedStyles: ke },
|
|
4512
4499
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4513
4500
|
data() {
|
|
4514
4501
|
return {
|
|
@@ -4533,7 +4520,7 @@ function Rs(e, t, n, o, r, s) {
|
|
|
4533
4520
|
nonce: e.nonce
|
|
4534
4521
|
}, null, 8, ["styles", "nonce"]);
|
|
4535
4522
|
}
|
|
4536
|
-
const Es = /* @__PURE__ */
|
|
4523
|
+
const Es = /* @__PURE__ */ b($s, [["render", Rs]]), Ps = ({
|
|
4537
4524
|
content: e,
|
|
4538
4525
|
data: t,
|
|
4539
4526
|
locale: n
|
|
@@ -4560,7 +4547,7 @@ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = ({
|
|
|
4560
4547
|
...t
|
|
4561
4548
|
},
|
|
4562
4549
|
meta: e == null ? void 0 : e.meta
|
|
4563
|
-
} : void 0,
|
|
4550
|
+
} : void 0, xs = bt, As = g({
|
|
4564
4551
|
name: "content-component",
|
|
4565
4552
|
components: {
|
|
4566
4553
|
EnableEditor: Is,
|
|
@@ -4602,13 +4589,13 @@ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = ({
|
|
|
4602
4589
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
4603
4590
|
}),
|
|
4604
4591
|
registeredComponents: [
|
|
4605
|
-
...
|
|
4592
|
+
...Pe(),
|
|
4606
4593
|
...this.customComponents || []
|
|
4607
4594
|
].reduce(
|
|
4608
4595
|
(n, { component: o, ...r }) => ({
|
|
4609
4596
|
...n,
|
|
4610
4597
|
[r.name]: {
|
|
4611
|
-
component:
|
|
4598
|
+
component: xs(o),
|
|
4612
4599
|
...ee(r)
|
|
4613
4600
|
}
|
|
4614
4601
|
}),
|
|
@@ -4631,7 +4618,7 @@ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = ({
|
|
|
4631
4618
|
apiKey: this.apiKey,
|
|
4632
4619
|
apiVersion: this.apiVersion,
|
|
4633
4620
|
componentInfos: [
|
|
4634
|
-
...
|
|
4621
|
+
...Pe(),
|
|
4635
4622
|
...this.customComponents || []
|
|
4636
4623
|
].reduce(
|
|
4637
4624
|
(n, { component: o, ...r }) => ({
|
|
@@ -4652,14 +4639,14 @@ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = ({
|
|
|
4652
4639
|
provide() {
|
|
4653
4640
|
const e = this;
|
|
4654
4641
|
return {
|
|
4655
|
-
[
|
|
4642
|
+
[Ne.key]: {
|
|
4656
4643
|
registeredComponents: e.registeredComponents
|
|
4657
4644
|
}
|
|
4658
4645
|
};
|
|
4659
4646
|
},
|
|
4660
4647
|
created() {
|
|
4661
4648
|
var t, n;
|
|
4662
|
-
this.apiKey ||
|
|
4649
|
+
this.apiKey || A.error(
|
|
4663
4650
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4664
4651
|
);
|
|
4665
4652
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -4701,22 +4688,22 @@ function Vs(e, t, n, o, r, s) {
|
|
|
4701
4688
|
isNestedRender: e.isNestedRender
|
|
4702
4689
|
}, {}), {
|
|
4703
4690
|
default: N(() => {
|
|
4704
|
-
var
|
|
4691
|
+
var h, m, d, f, v, T, O;
|
|
4705
4692
|
return [
|
|
4706
4693
|
e.isSsrAbTest ? (c(), y(i, {
|
|
4707
4694
|
key: 0,
|
|
4708
4695
|
id: "builderio-variant-visibility",
|
|
4709
4696
|
scriptStr: e.scriptStr,
|
|
4710
4697
|
nonce: e.nonce || ""
|
|
4711
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4698
|
+
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4712
4699
|
e.TARGET !== "reactNative" ? (c(), y(l, {
|
|
4713
4700
|
key: 1,
|
|
4714
4701
|
nonce: e.nonce || "",
|
|
4715
4702
|
isNestedRender: e.isNestedRender,
|
|
4716
|
-
contentId: (
|
|
4717
|
-
cssCode: (d = (
|
|
4718
|
-
customFonts: (
|
|
4719
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
4703
|
+
contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
|
|
4704
|
+
cssCode: (d = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : d.cssCode,
|
|
4705
|
+
customFonts: (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
|
|
4706
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4720
4707
|
R(a, {
|
|
4721
4708
|
blocks: (O = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : O.blocks,
|
|
4722
4709
|
context: e.builderContextSignal,
|
|
@@ -4728,11 +4715,11 @@ function Vs(e, t, n, o, r, s) {
|
|
|
4728
4715
|
_: 1
|
|
4729
4716
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4730
4717
|
}
|
|
4731
|
-
const Ws = /* @__PURE__ */
|
|
4718
|
+
const Ws = /* @__PURE__ */ b(As, [["render", Vs]]), Ns = g({
|
|
4732
4719
|
name: "content-variants",
|
|
4733
4720
|
components: {
|
|
4734
4721
|
InlinedScript: mt,
|
|
4735
|
-
InlinedStyles:
|
|
4722
|
+
InlinedStyles: ke,
|
|
4736
4723
|
ContentComponent: Ws
|
|
4737
4724
|
},
|
|
4738
4725
|
props: [
|
|
@@ -4797,14 +4784,14 @@ const Ws = /* @__PURE__ */ g(xs, [["render", Vs]]), Ns = b({
|
|
|
4797
4784
|
});
|
|
4798
4785
|
function Fs(e, t, n, o, r, s) {
|
|
4799
4786
|
const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
4800
|
-
return c(), p(
|
|
4787
|
+
return c(), p(I, null, [
|
|
4801
4788
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
4802
4789
|
key: 0,
|
|
4803
4790
|
id: "builderio-init-variants-fns",
|
|
4804
4791
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4805
4792
|
nonce: e.nonce || ""
|
|
4806
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4807
|
-
e.shouldRenderVariants ? (c(), p(
|
|
4793
|
+
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4794
|
+
e.shouldRenderVariants ? (c(), p(I, { key: 1 }, [
|
|
4808
4795
|
R(l, {
|
|
4809
4796
|
id: "builderio-variants",
|
|
4810
4797
|
styles: e.hideVariantsStyleString,
|
|
@@ -4815,7 +4802,7 @@ function Fs(e, t, n, o, r, s) {
|
|
|
4815
4802
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4816
4803
|
nonce: e.nonce || ""
|
|
4817
4804
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4818
|
-
(c(!0), p(
|
|
4805
|
+
(c(!0), p(I, null, W(e.getVariants(e.content), (u, h) => (c(), y(a, C({
|
|
4819
4806
|
key: u.testVariationId,
|
|
4820
4807
|
apiHost: e.apiHost,
|
|
4821
4808
|
isNestedRender: e.isNestedRender,
|
|
@@ -4839,7 +4826,7 @@ function Fs(e, t, n, o, r, s) {
|
|
|
4839
4826
|
contentWrapperProps: e.contentWrapperProps,
|
|
4840
4827
|
trustedHosts: e.trustedHosts
|
|
4841
4828
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4842
|
-
], 64)) :
|
|
4829
|
+
], 64)) : S("", !0),
|
|
4843
4830
|
R(a, C({
|
|
4844
4831
|
apiHost: e.apiHost,
|
|
4845
4832
|
nonce: e.nonce,
|
|
@@ -4867,13 +4854,13 @@ function Fs(e, t, n, o, r, s) {
|
|
|
4867
4854
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4868
4855
|
], 64);
|
|
4869
4856
|
}
|
|
4870
|
-
const Ds = /* @__PURE__ */
|
|
4857
|
+
const Ds = /* @__PURE__ */ b(Ns, [["render", Fs]]), Os = async ({
|
|
4871
4858
|
builderContextValue: e,
|
|
4872
4859
|
symbol: t
|
|
4873
4860
|
}) => {
|
|
4874
4861
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4875
4862
|
(e != null && e.apiKey))
|
|
4876
|
-
return
|
|
4863
|
+
return be({
|
|
4877
4864
|
model: t.model,
|
|
4878
4865
|
apiKey: e.apiKey,
|
|
4879
4866
|
apiVersion: e.apiVersion,
|
|
@@ -4883,9 +4870,9 @@ const Ds = /* @__PURE__ */ g(Ns, [["render", Fs]]), Os = async ({
|
|
|
4883
4870
|
}
|
|
4884
4871
|
}
|
|
4885
4872
|
}).catch((n) => {
|
|
4886
|
-
|
|
4873
|
+
A.error("Could not fetch symbol content: ", n);
|
|
4887
4874
|
});
|
|
4888
|
-
}, Ls =
|
|
4875
|
+
}, Ls = g({
|
|
4889
4876
|
name: "builder-symbol",
|
|
4890
4877
|
components: { ContentVariants: Ds, DynamicDiv: X },
|
|
4891
4878
|
props: [
|
|
@@ -4899,7 +4886,7 @@ const Ds = /* @__PURE__ */ g(Ns, [["render", Fs]]), Os = async ({
|
|
|
4899
4886
|
],
|
|
4900
4887
|
data() {
|
|
4901
4888
|
var e;
|
|
4902
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
4889
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
|
|
4903
4890
|
},
|
|
4904
4891
|
mounted() {
|
|
4905
4892
|
this.setContent();
|
|
@@ -4946,9 +4933,9 @@ const Ds = /* @__PURE__ */ g(Ns, [["render", Fs]]), Os = async ({
|
|
|
4946
4933
|
}
|
|
4947
4934
|
});
|
|
4948
4935
|
function Us(e, t, n, o, r, s) {
|
|
4949
|
-
var l, a, u,
|
|
4936
|
+
var l, a, u, h, m;
|
|
4950
4937
|
const i = k("ContentVariants");
|
|
4951
|
-
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4938
|
+
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4952
4939
|
R(i, {
|
|
4953
4940
|
nonce: e.builderContext.nonce,
|
|
4954
4941
|
isNestedRender: !0,
|
|
@@ -4962,10 +4949,10 @@ function Us(e, t, n, o, r, s) {
|
|
|
4962
4949
|
data: {
|
|
4963
4950
|
...(a = e.symbol) == null ? void 0 : a.data,
|
|
4964
4951
|
...e.builderContext.localState,
|
|
4965
|
-
...(
|
|
4952
|
+
...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
|
|
4966
4953
|
},
|
|
4967
4954
|
canTrack: e.builderContext.canTrack,
|
|
4968
|
-
model: (
|
|
4955
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
4969
4956
|
content: e.contentToUse,
|
|
4970
4957
|
linkComponent: e.builderLinkComponent,
|
|
4971
4958
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -4973,41 +4960,41 @@ function Us(e, t, n, o, r, s) {
|
|
|
4973
4960
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4974
4961
|
], 16);
|
|
4975
4962
|
}
|
|
4976
|
-
const Hs = /* @__PURE__ */
|
|
4963
|
+
const Hs = /* @__PURE__ */ b(Ls, [["render", Us]]);
|
|
4977
4964
|
export {
|
|
4978
4965
|
Qs as A,
|
|
4979
|
-
|
|
4966
|
+
lt as B,
|
|
4980
4967
|
fo as C,
|
|
4981
4968
|
yo as F,
|
|
4982
4969
|
$o as I,
|
|
4983
4970
|
Po as S,
|
|
4984
4971
|
or as T,
|
|
4985
4972
|
os as V,
|
|
4986
|
-
|
|
4973
|
+
ke as _,
|
|
4987
4974
|
Zs as a,
|
|
4988
4975
|
ye as b,
|
|
4989
4976
|
Ys as c,
|
|
4990
|
-
|
|
4977
|
+
b as d,
|
|
4991
4978
|
Y as e,
|
|
4992
4979
|
Xs as f,
|
|
4993
4980
|
uo as g,
|
|
4994
4981
|
Z as h,
|
|
4995
4982
|
le as i,
|
|
4996
|
-
|
|
4983
|
+
At as j,
|
|
4997
4984
|
Hs as k,
|
|
4998
4985
|
H as l,
|
|
4999
4986
|
Ds as m,
|
|
5000
|
-
|
|
4987
|
+
Oe as n,
|
|
5001
4988
|
Xt as o,
|
|
5002
|
-
|
|
4989
|
+
Le as p,
|
|
5003
4990
|
Gs as q,
|
|
5004
4991
|
Zt as r,
|
|
5005
4992
|
qs as s,
|
|
5006
4993
|
zs as t,
|
|
5007
4994
|
Js as u,
|
|
5008
4995
|
Nn as v,
|
|
5009
|
-
|
|
4996
|
+
xs as w,
|
|
5010
4997
|
Fn as x,
|
|
5011
|
-
|
|
4998
|
+
be as y,
|
|
5012
4999
|
Ks as z
|
|
5013
5000
|
};
|