@builder.io/sdk-vue 2.0.24 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-g25f4_3R.cjs → awaiter-a3wvmfgP.cjs} +1 -1
- package/lib/browser/{awaiter-J3HUxkGi.js → awaiter-vuM8zQLf.js} +1 -1
- package/lib/browser/{block-styles-grUICPvP.cjs → block-styles-kJHBzLSK.cjs} +1 -1
- package/lib/browser/{block-styles-TEcZV6HE.js → block-styles-n4l-jUSQ.js} +1 -1
- package/lib/browser/{block-wrapper-29DvN0g9.cjs → block-wrapper-ctT8deUt.cjs} +1 -1
- package/lib/browser/{block-wrapper-FeIbV4lJ.js → block-wrapper-s8-kAmNG.js} +3 -3
- package/lib/browser/{component-ref-XOiYQaEV.js → component-ref-gRCzH9eX.js} +3 -3
- package/lib/browser/{component-ref-0BQRfKsS.cjs → component-ref-xouuKyIf.cjs} +1 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +6 -0
- package/lib/browser/components/content/components/styles.vue.d.ts +3 -3
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/types.d.ts +4 -0
- package/lib/browser/functions/track/index.d.ts +3 -1
- package/lib/browser/{get-block-properties-AbQ4_DbB.js → get-block-properties-W8HK92DF.js} +1 -1
- package/lib/browser/{get-block-properties-9fNXyxXS.cjs → get-block-properties-pZHbg-st.cjs} +1 -1
- package/lib/browser/helpers/sdk-headers.d.ts +5 -0
- package/lib/browser/{index-VkKzZMwZ.js → index-0riickyt.js} +529 -504
- package/lib/browser/{index-eo1_2KG1.cjs → index-mN28DUmZ.cjs} +23 -23
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-3wAFgYUP.cjs → repeated-block-VILFVYYO.cjs} +1 -1
- package/lib/browser/{repeated-block-rRkup9T9.js → repeated-block-jXsbtR-B.js} +2 -2
- package/lib/edge/{awaiter-bswCddmn.js → awaiter-301eY6Ji.js} +1 -1
- package/lib/edge/{awaiter-z-FdxR2q.cjs → awaiter-S2gRZf62.cjs} +1 -1
- package/lib/edge/{block-styles-RI6klyct.cjs → block-styles-2W4KGVcA.cjs} +1 -1
- package/lib/edge/{block-styles-_Y6pfvRo.js → block-styles-za8wsXaz.js} +1 -1
- package/lib/edge/{block-wrapper-RoXrtNnJ.js → block-wrapper-P1pYQvMU.js} +3 -3
- package/lib/edge/{block-wrapper-oxJp7Q7d.cjs → block-wrapper-Zfe24aWY.cjs} +1 -1
- package/lib/edge/{component-ref-K5NE0GO1.cjs → component-ref-W6YjT1Dn.cjs} +1 -1
- package/lib/edge/{component-ref-CvZ3PHsD.js → component-ref-rDKU2T85.js} +3 -3
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -0
- package/lib/edge/components/content/components/styles.vue.d.ts +3 -3
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/types.d.ts +4 -0
- package/lib/edge/functions/track/index.d.ts +3 -1
- package/lib/edge/{get-block-properties-kxJh9lLa.cjs → get-block-properties-HZMO7-fh.cjs} +1 -1
- package/lib/edge/{get-block-properties-WJ04QqT6.js → get-block-properties-ebtXorCd.js} +1 -1
- package/lib/edge/helpers/sdk-headers.d.ts +5 -0
- package/lib/edge/{index-PB_wCbdz.cjs → index-PHR0gNDj.cjs} +31 -31
- package/lib/edge/{index-UNfETa4b.js → index-iPWGaLPH.js} +1020 -995
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-3sTRvL3l.js → repeated-block-wucps8KR.js} +2 -2
- package/lib/{node/repeated-block-1bi9_70I.cjs → edge/repeated-block-ysJic0XG.cjs} +1 -1
- package/lib/node/{awaiter--0M8C3yH.js → awaiter-cY6UQpX_.js} +1 -1
- package/lib/node/{awaiter-JHWYv1Aa.cjs → awaiter-hdxdo8Pj.cjs} +1 -1
- package/lib/node/{block-styles-6tPiAmBz.cjs → block-styles-2HjbBX_l.cjs} +1 -1
- package/lib/node/{block-styles-quUqeiHV.js → block-styles-lmv8e1Ze.js} +1 -1
- package/lib/node/{block-wrapper-1t5eBFHt.js → block-wrapper-Qt2nAP7r.js} +3 -3
- package/lib/node/{block-wrapper-RW0Dijwl.cjs → block-wrapper-gvp5A8sk.cjs} +1 -1
- package/lib/node/{component-ref-Aiwer6jd.js → component-ref-3UFoBY2-.js} +3 -3
- package/lib/node/{component-ref-VImBkRlv.cjs → component-ref-s26PV5wr.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -0
- package/lib/node/components/content/components/styles.vue.d.ts +3 -3
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/types.d.ts +4 -0
- package/lib/node/functions/track/index.d.ts +3 -1
- package/lib/node/{get-block-properties-iMgsO_St.js → get-block-properties-f3jVlPtG.js} +1 -1
- package/lib/node/{get-block-properties-l9MvlM58.cjs → get-block-properties-xjBCy99O.cjs} +1 -1
- package/lib/node/helpers/sdk-headers.d.ts +5 -0
- package/lib/node/{index-vY7Ih1wu.js → index-r5J6VLgi.js} +689 -664
- package/lib/node/{index-ncxt02LY.cjs → index-uIW0jJ9R.cjs} +23 -23
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-n_E2nVxY.js → repeated-block-jcwaWUEy.js} +2 -2
- package/lib/{edge/repeated-block-JWTG1SGC.cjs → node/repeated-block-uNMQH3Ja.cjs} +1 -1
- package/nuxt.js +3 -2
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as w, createBlock as k, resolveDynamicComponent as
|
|
3
|
-
const
|
|
2
|
+
import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as w, createBlock as k, resolveDynamicComponent as H, mergeProps as C, toHandlers as B, withCtx as W, renderSlot as x, resolveComponent as v, createTextVNode as mt, toDisplayString as ee, defineAsyncComponent as M, createVNode as $, renderList as A, createCommentVNode as S, h as Pe, createElementVNode as K, normalizeStyle as F, normalizeClass as q, markRaw as ht } from "vue";
|
|
3
|
+
const ft = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), bt = (e) => typeof e == "string" && ft.has(e.toLowerCase());
|
|
4
4
|
function V(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,11 +11,11 @@ function V(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const gt = f({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: bt };
|
|
19
19
|
}
|
|
20
20
|
}), b = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,14 +23,14 @@ const mt = f({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), k(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), k(
|
|
26
|
+
function yt(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), k(H(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (d(), m(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), k(H(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
|
|
29
29
|
default: W(() => [
|
|
30
30
|
x(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), k(
|
|
33
|
+
}, 16)) : (d(), k(H(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
|
|
34
34
|
default: W(() => [
|
|
35
35
|
x(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,11 +38,11 @@ function ht(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const de = /* @__PURE__ */ b(
|
|
41
|
+
const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: de
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), R = "vue", Z = () => {
|
|
45
|
+
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -54,7 +54,7 @@ const de = /* @__PURE__ */ b(mt, [["render", ht]]), Pi = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, kt = f({
|
|
58
58
|
name: "builder-button",
|
|
59
59
|
components: { DynamicRenderer: de },
|
|
60
60
|
props: [
|
|
@@ -83,7 +83,7 @@ const de = /* @__PURE__ */ b(mt, [["render", ht]]), Pi = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function vt(e, t, n, o, r, i) {
|
|
87
87
|
const s = v("DynamicRenderer");
|
|
88
88
|
return d(), k(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
@@ -91,12 +91,12 @@ function bt(e, t, n, o, r, i) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: W(() => [
|
|
94
|
-
|
|
94
|
+
mt(ee(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const St = /* @__PURE__ */ b(kt, [["render", vt]]), Ct = Symbol(), se = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -112,25 +112,25 @@ const gt = /* @__PURE__ */ b(ft, [["render", bt]]), yt = Symbol(), se = {
|
|
|
112
112
|
BlocksWrapperProps: {},
|
|
113
113
|
nonce: ""
|
|
114
114
|
},
|
|
115
|
-
key:
|
|
116
|
-
},
|
|
115
|
+
key: Ct
|
|
116
|
+
}, wt = Symbol(), Be = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
|
-
key:
|
|
118
|
+
key: wt
|
|
119
119
|
};
|
|
120
|
-
function
|
|
120
|
+
function Tt(e) {
|
|
121
121
|
var t;
|
|
122
122
|
return {
|
|
123
123
|
...(t = e.component) == null ? void 0 : t.options,
|
|
124
124
|
...e.options
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function It(e, ...t) {
|
|
128
128
|
const n = Object.assign({}, e);
|
|
129
129
|
for (const o of t)
|
|
130
130
|
delete n[o];
|
|
131
131
|
return n;
|
|
132
132
|
}
|
|
133
|
-
const X = "[Builder.io]: ",
|
|
133
|
+
const X = "[Builder.io]: ", P = {
|
|
134
134
|
log: (...e) => console.log(X, ...e),
|
|
135
135
|
error: (...e) => console.error(X, ...e),
|
|
136
136
|
warn: (...e) => console.warn(X, ...e),
|
|
@@ -142,27 +142,27 @@ const X = "[Builder.io]: ", E = {
|
|
|
142
142
|
function I() {
|
|
143
143
|
return typeof window < "u" && typeof document < "u";
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const $t = (e) => {
|
|
146
146
|
const t = {};
|
|
147
147
|
return e.forEach((n, o) => {
|
|
148
148
|
t[o] = n;
|
|
149
149
|
}), t;
|
|
150
|
-
}, Ae = (e) => e instanceof URLSearchParams ?
|
|
151
|
-
function
|
|
150
|
+
}, Ae = (e) => e instanceof URLSearchParams ? $t(e) : e, Ve = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
151
|
+
function Rt() {
|
|
152
152
|
return I() && window.self !== window.top;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
154
|
+
function E(e) {
|
|
155
|
+
return Rt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
156
156
|
Ve(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const Et = () => {
|
|
159
159
|
if (I()) {
|
|
160
160
|
const e = new URL(location.href);
|
|
161
161
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
162
162
|
} else
|
|
163
163
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
164
|
-
},
|
|
165
|
-
const e =
|
|
164
|
+
}, Pt = () => typeof navigator == "object" && navigator.userAgent || "", We = () => {
|
|
165
|
+
const e = Pt(), t = {
|
|
166
166
|
Android() {
|
|
167
167
|
return e.match(/Android/i);
|
|
168
168
|
},
|
|
@@ -179,15 +179,15 @@ const Tt = () => {
|
|
|
179
179
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
180
180
|
},
|
|
181
181
|
any() {
|
|
182
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
182
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
|
|
183
183
|
}
|
|
184
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
184
|
+
}, n = e.match(/Tablet|iPad/i), o = Et();
|
|
185
185
|
return {
|
|
186
186
|
urlPath: o == null ? void 0 : o.pathname,
|
|
187
187
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
188
188
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
189
189
|
};
|
|
190
|
-
},
|
|
190
|
+
}, Bt = ({
|
|
191
191
|
builder: e,
|
|
192
192
|
context: t,
|
|
193
193
|
event: n,
|
|
@@ -199,12 +199,12 @@ const Tt = () => {
|
|
|
199
199
|
builder: e,
|
|
200
200
|
context: t,
|
|
201
201
|
event: n
|
|
202
|
-
}),
|
|
203
|
-
isEditing:
|
|
202
|
+
}), xt = () => ({
|
|
203
|
+
isEditing: E(),
|
|
204
204
|
isBrowser: I(),
|
|
205
205
|
isServer: !I(),
|
|
206
206
|
getUserAttributes: () => We()
|
|
207
|
-
}),
|
|
207
|
+
}), At = (e, {
|
|
208
208
|
isExpression: t = !0
|
|
209
209
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
210
210
|
function Ne({
|
|
@@ -241,7 +241,7 @@ const ke = ({
|
|
|
241
241
|
rootSetState: i,
|
|
242
242
|
rootState: s
|
|
243
243
|
}) => {
|
|
244
|
-
const l =
|
|
244
|
+
const l = Bt({
|
|
245
245
|
builder: t,
|
|
246
246
|
context: n,
|
|
247
247
|
event: o,
|
|
@@ -253,23 +253,23 @@ const ke = ({
|
|
|
253
253
|
});
|
|
254
254
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
255
255
|
}, D = (e) => e != null;
|
|
256
|
-
function
|
|
256
|
+
function Vt() {
|
|
257
257
|
var e;
|
|
258
258
|
return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const Wt = ({
|
|
261
261
|
shouldLogWarning: e
|
|
262
262
|
}) => {
|
|
263
263
|
var r;
|
|
264
|
-
if (!
|
|
264
|
+
if (!Vt())
|
|
265
265
|
return !1;
|
|
266
266
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
267
|
-
return t && n && !o ? (e &&
|
|
268
|
-
},
|
|
267
|
+
return t && n && !o ? (e && P.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
268
|
+
}, Nt = (e) => (I() || Wt({
|
|
269
269
|
shouldLogWarning: !0
|
|
270
|
-
}), ke(e)),
|
|
270
|
+
}), ke(e)), Ot = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Ft = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Dt = (e) => {
|
|
271
271
|
var t, n, o, r, i, s;
|
|
272
|
-
return ((o = (n = (t =
|
|
272
|
+
return ((o = (n = (t = Ot.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Ft.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
273
273
|
};
|
|
274
274
|
function J({
|
|
275
275
|
code: e,
|
|
@@ -282,17 +282,17 @@ function J({
|
|
|
282
282
|
}) {
|
|
283
283
|
if (e.trim() === "")
|
|
284
284
|
return;
|
|
285
|
-
const l =
|
|
285
|
+
const l = Dt(e.trim());
|
|
286
286
|
if (l)
|
|
287
287
|
return xe({
|
|
288
288
|
...o,
|
|
289
289
|
...n
|
|
290
290
|
}, l);
|
|
291
291
|
const a = {
|
|
292
|
-
code:
|
|
292
|
+
code: At(e, {
|
|
293
293
|
isExpression: s
|
|
294
294
|
}),
|
|
295
|
-
builder:
|
|
295
|
+
builder: xt(),
|
|
296
296
|
context: t,
|
|
297
297
|
event: i,
|
|
298
298
|
rootSetState: r,
|
|
@@ -300,9 +300,9 @@ function J({
|
|
|
300
300
|
localState: n
|
|
301
301
|
};
|
|
302
302
|
try {
|
|
303
|
-
return
|
|
303
|
+
return Nt(a);
|
|
304
304
|
} catch (u) {
|
|
305
|
-
|
|
305
|
+
P.error("Failed code evaluation: " + u.message, {
|
|
306
306
|
code: e
|
|
307
307
|
});
|
|
308
308
|
return;
|
|
@@ -326,8 +326,8 @@ function ae(e) {
|
|
|
326
326
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
|
|
327
327
|
return t;
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
329
|
+
const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) => {
|
|
330
|
+
if (Lt) {
|
|
331
331
|
const t = ue(e);
|
|
332
332
|
return {
|
|
333
333
|
...t,
|
|
@@ -339,7 +339,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ot = (e) =
|
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
} else {
|
|
342
|
-
const t = ae(
|
|
342
|
+
const t = ae(It(e, "children", "meta"));
|
|
343
343
|
return {
|
|
344
344
|
...t,
|
|
345
345
|
properties: {
|
|
@@ -352,7 +352,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ot = (e) =
|
|
|
352
352
|
meta: e.meta
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
},
|
|
355
|
+
}, Mt = ({
|
|
356
356
|
block: e,
|
|
357
357
|
context: t,
|
|
358
358
|
localState: n,
|
|
@@ -361,7 +361,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ot = (e) =
|
|
|
361
361
|
}) => {
|
|
362
362
|
if (!e.bindings)
|
|
363
363
|
return e;
|
|
364
|
-
const i =
|
|
364
|
+
const i = Ut(e);
|
|
365
365
|
for (const s in e.bindings) {
|
|
366
366
|
const l = e.bindings[s], a = J({
|
|
367
367
|
code: l,
|
|
@@ -374,7 +374,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ot = (e) =
|
|
|
374
374
|
}
|
|
375
375
|
return i;
|
|
376
376
|
};
|
|
377
|
-
function
|
|
377
|
+
function Ht({
|
|
378
378
|
block: e,
|
|
379
379
|
context: t,
|
|
380
380
|
shouldEvaluateBindings: n,
|
|
@@ -383,7 +383,7 @@ function Dt({
|
|
|
383
383
|
rootSetState: i
|
|
384
384
|
}) {
|
|
385
385
|
const s = e;
|
|
386
|
-
return n ?
|
|
386
|
+
return n ? Mt({
|
|
387
387
|
block: s,
|
|
388
388
|
localState: o,
|
|
389
389
|
rootState: r,
|
|
@@ -391,22 +391,22 @@ function Dt({
|
|
|
391
391
|
context: t
|
|
392
392
|
}) : s;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function jt(e) {
|
|
395
395
|
const t = e || (I() ? window.location.search : void 0);
|
|
396
396
|
return t ? Ve(t).indexOf("builder.preview=") !== -1 : !1;
|
|
397
397
|
}
|
|
398
|
-
const
|
|
398
|
+
const Kt = (e) => ({
|
|
399
399
|
type: "builder.registerComponent",
|
|
400
400
|
data: _(e)
|
|
401
|
-
}),
|
|
401
|
+
}), qt = (e) => {
|
|
402
402
|
const t = e.toString().trim();
|
|
403
403
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
404
404
|
};
|
|
405
405
|
function _(e) {
|
|
406
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
406
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? qt(n) : n));
|
|
407
407
|
}
|
|
408
408
|
const ve = {};
|
|
409
|
-
function
|
|
409
|
+
function zt(e, t) {
|
|
410
410
|
e === "plugin" && (t = _(t));
|
|
411
411
|
let n = ve[e];
|
|
412
412
|
if (n || (n = ve[e] = []), n.push(t), I()) {
|
|
@@ -425,7 +425,7 @@ function jt(e, t) {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
const Se = {};
|
|
428
|
-
function
|
|
428
|
+
function Vi(e) {
|
|
429
429
|
if (I()) {
|
|
430
430
|
Object.assign(Se, e);
|
|
431
431
|
const t = {
|
|
@@ -435,27 +435,31 @@ function Bi(e) {
|
|
|
435
435
|
parent.postMessage(t, "*");
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
const Ce = "builder.",
|
|
438
|
+
const Ce = "builder.", Jt = "options.", Fe = (e) => {
|
|
439
439
|
if (!e)
|
|
440
440
|
return {};
|
|
441
441
|
const t = Ae(e), n = {};
|
|
442
442
|
return Object.keys(t).forEach((o) => {
|
|
443
443
|
if (o.startsWith(Ce)) {
|
|
444
|
-
const r = o.replace(Ce, "").replace(
|
|
444
|
+
const r = o.replace(Ce, "").replace(Jt, "");
|
|
445
445
|
n[r] = t[o];
|
|
446
446
|
}
|
|
447
447
|
}), n;
|
|
448
|
-
},
|
|
448
|
+
}, Gt = () => {
|
|
449
449
|
if (!I())
|
|
450
450
|
return {};
|
|
451
451
|
const e = new URLSearchParams(window.location.search);
|
|
452
452
|
return Fe(e);
|
|
453
|
-
},
|
|
453
|
+
}, De = "2.0.26", Le = () => ({
|
|
454
|
+
"X-Builder-SDK": R,
|
|
455
|
+
"X-Builder-SDK-GEN": "2",
|
|
456
|
+
"X-Builder-SDK-Version": De
|
|
457
|
+
}), Yt = (e) => {
|
|
454
458
|
if (e === "localhost" || e === "127.0.0.1")
|
|
455
459
|
return e;
|
|
456
460
|
const t = e.split(".");
|
|
457
461
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
458
|
-
},
|
|
462
|
+
}, Ue = ({
|
|
459
463
|
name: e,
|
|
460
464
|
canTrack: t
|
|
461
465
|
}) => {
|
|
@@ -463,17 +467,17 @@ const Ce = "builder.", Ht = "options.", Fe = (e) => {
|
|
|
463
467
|
try {
|
|
464
468
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
465
469
|
} catch (o) {
|
|
466
|
-
|
|
470
|
+
P.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
467
471
|
return;
|
|
468
472
|
}
|
|
469
|
-
},
|
|
473
|
+
}, Me = async (e) => Ue(e), Xt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), Qt = [["secure", ""], ["SameSite", "None"]], Zt = ({
|
|
470
474
|
name: e,
|
|
471
475
|
value: t,
|
|
472
476
|
expires: n
|
|
473
477
|
}) => {
|
|
474
|
-
const r = (I() ? location.protocol === "https:" : !0) ?
|
|
475
|
-
return
|
|
476
|
-
},
|
|
478
|
+
const r = (I() ? location.protocol === "https:" : !0) ? Qt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Yt(window.location.hostname)], ...r];
|
|
479
|
+
return Xt(s);
|
|
480
|
+
}, He = async ({
|
|
477
481
|
name: e,
|
|
478
482
|
value: t,
|
|
479
483
|
expires: n,
|
|
@@ -482,98 +486,98 @@ const Ce = "builder.", Ht = "options.", Fe = (e) => {
|
|
|
482
486
|
try {
|
|
483
487
|
if (!o)
|
|
484
488
|
return;
|
|
485
|
-
const r =
|
|
489
|
+
const r = Zt({
|
|
486
490
|
name: e,
|
|
487
491
|
value: t,
|
|
488
492
|
expires: n
|
|
489
493
|
});
|
|
490
494
|
document.cookie = r;
|
|
491
495
|
} catch (r) {
|
|
492
|
-
|
|
496
|
+
P.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
493
497
|
}
|
|
494
498
|
};
|
|
495
|
-
function
|
|
499
|
+
function _t() {
|
|
496
500
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
497
501
|
const t = Math.random() * 16 | 0;
|
|
498
502
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
499
503
|
});
|
|
500
504
|
}
|
|
501
|
-
function
|
|
502
|
-
return
|
|
505
|
+
function je() {
|
|
506
|
+
return _t().replace(/-/g, "");
|
|
503
507
|
}
|
|
504
|
-
const
|
|
508
|
+
const Ke = "builderSessionId", en = async ({
|
|
505
509
|
canTrack: e
|
|
506
510
|
}) => {
|
|
507
511
|
if (!e)
|
|
508
512
|
return;
|
|
509
|
-
const t = await
|
|
510
|
-
name:
|
|
513
|
+
const t = await Me({
|
|
514
|
+
name: Ke,
|
|
511
515
|
canTrack: e
|
|
512
516
|
});
|
|
513
517
|
if (D(t))
|
|
514
518
|
return t;
|
|
515
519
|
{
|
|
516
|
-
const n =
|
|
517
|
-
return
|
|
520
|
+
const n = tn();
|
|
521
|
+
return nn({
|
|
518
522
|
id: n,
|
|
519
523
|
canTrack: e
|
|
520
524
|
}), n;
|
|
521
525
|
}
|
|
522
|
-
},
|
|
526
|
+
}, tn = () => je(), nn = ({
|
|
523
527
|
id: e,
|
|
524
528
|
canTrack: t
|
|
525
|
-
}) =>
|
|
526
|
-
name:
|
|
529
|
+
}) => He({
|
|
530
|
+
name: Ke,
|
|
527
531
|
value: e,
|
|
528
532
|
canTrack: t
|
|
529
|
-
}),
|
|
533
|
+
}), qe = () => I() && typeof localStorage < "u" ? localStorage : void 0, on = ({
|
|
530
534
|
key: e,
|
|
531
535
|
canTrack: t
|
|
532
536
|
}) => {
|
|
533
537
|
var n;
|
|
534
538
|
try {
|
|
535
|
-
return t ? (n =
|
|
539
|
+
return t ? (n = qe()) == null ? void 0 : n.getItem(e) : void 0;
|
|
536
540
|
} catch (o) {
|
|
537
541
|
console.debug("[LocalStorage] GET error: ", o);
|
|
538
542
|
return;
|
|
539
543
|
}
|
|
540
|
-
},
|
|
544
|
+
}, rn = ({
|
|
541
545
|
key: e,
|
|
542
546
|
canTrack: t,
|
|
543
547
|
value: n
|
|
544
548
|
}) => {
|
|
545
549
|
var o;
|
|
546
550
|
try {
|
|
547
|
-
t && ((o =
|
|
551
|
+
t && ((o = qe()) == null || o.setItem(e, n));
|
|
548
552
|
} catch (r) {
|
|
549
553
|
console.debug("[LocalStorage] SET error: ", r);
|
|
550
554
|
}
|
|
551
|
-
},
|
|
555
|
+
}, ze = "builderVisitorId", sn = ({
|
|
552
556
|
canTrack: e
|
|
553
557
|
}) => {
|
|
554
558
|
if (!e)
|
|
555
559
|
return;
|
|
556
|
-
const t =
|
|
557
|
-
key:
|
|
560
|
+
const t = on({
|
|
561
|
+
key: ze,
|
|
558
562
|
canTrack: e
|
|
559
563
|
});
|
|
560
564
|
if (D(t))
|
|
561
565
|
return t;
|
|
562
566
|
{
|
|
563
|
-
const n =
|
|
564
|
-
return
|
|
567
|
+
const n = an();
|
|
568
|
+
return ln({
|
|
565
569
|
id: n,
|
|
566
570
|
canTrack: e
|
|
567
571
|
}), n;
|
|
568
572
|
}
|
|
569
|
-
},
|
|
573
|
+
}, an = () => je(), ln = ({
|
|
570
574
|
id: e,
|
|
571
575
|
canTrack: t
|
|
572
|
-
}) =>
|
|
573
|
-
key:
|
|
576
|
+
}) => rn({
|
|
577
|
+
key: ze,
|
|
574
578
|
value: e,
|
|
575
579
|
canTrack: t
|
|
576
|
-
}),
|
|
580
|
+
}), cn = async ({
|
|
577
581
|
canTrack: e
|
|
578
582
|
}) => {
|
|
579
583
|
if (!e)
|
|
@@ -581,16 +585,16 @@ const je = "builderSessionId", Xt = async ({
|
|
|
581
585
|
visitorId: void 0,
|
|
582
586
|
sessionId: void 0
|
|
583
587
|
};
|
|
584
|
-
const t = await
|
|
588
|
+
const t = await en({
|
|
585
589
|
canTrack: e
|
|
586
|
-
}), n =
|
|
590
|
+
}), n = sn({
|
|
587
591
|
canTrack: e
|
|
588
592
|
});
|
|
589
593
|
return {
|
|
590
594
|
sessionId: t,
|
|
591
595
|
visitorId: n
|
|
592
596
|
};
|
|
593
|
-
},
|
|
597
|
+
}, dn = async ({
|
|
594
598
|
type: e,
|
|
595
599
|
canTrack: t,
|
|
596
600
|
apiKey: n,
|
|
@@ -604,44 +608,47 @@ const je = "builderSessionId", Xt = async ({
|
|
|
604
608
|
url: location.href,
|
|
605
609
|
...o
|
|
606
610
|
},
|
|
607
|
-
...await
|
|
611
|
+
...await cn({
|
|
608
612
|
canTrack: t
|
|
609
613
|
}),
|
|
610
614
|
userAttributes: We(),
|
|
611
615
|
ownerId: n
|
|
612
616
|
}
|
|
613
617
|
});
|
|
614
|
-
async function le(
|
|
615
|
-
|
|
616
|
-
|
|
618
|
+
async function le({
|
|
619
|
+
apiHost: e,
|
|
620
|
+
...t
|
|
621
|
+
}) {
|
|
622
|
+
if (!t.apiKey) {
|
|
623
|
+
P.error("Missing API key for track call. Please provide your API key.");
|
|
617
624
|
return;
|
|
618
625
|
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
626
|
+
return !t.canTrack || E() || !(I() || R === "reactNative") ? void 0 : fetch(`${e || "https://cdn.builder.io"}/api/v1/track`, {
|
|
627
|
+
method: "POST",
|
|
628
|
+
body: JSON.stringify({
|
|
629
|
+
events: [await dn(t)]
|
|
630
|
+
}),
|
|
631
|
+
headers: {
|
|
632
|
+
"content-type": "application/json",
|
|
633
|
+
...Le()
|
|
634
|
+
},
|
|
635
|
+
mode: "cors"
|
|
636
|
+
}).catch((o) => {
|
|
637
|
+
console.error("Failed to track: ", o);
|
|
638
|
+
});
|
|
632
639
|
}
|
|
633
|
-
const
|
|
640
|
+
const Wi = (e) => le({
|
|
634
641
|
...e,
|
|
635
642
|
canTrack: !0
|
|
636
|
-
}),
|
|
637
|
-
function
|
|
643
|
+
}), un = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
644
|
+
function Je(e, t) {
|
|
638
645
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
639
646
|
return !1;
|
|
640
647
|
const n = new URL(t.origin), o = n.hostname;
|
|
641
|
-
return (e ||
|
|
648
|
+
return (e || un).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
642
649
|
}
|
|
643
|
-
const
|
|
644
|
-
|
|
650
|
+
const pn = () => {
|
|
651
|
+
zt("insertMenu", {
|
|
645
652
|
name: "_default",
|
|
646
653
|
default: !0,
|
|
647
654
|
items: [{
|
|
@@ -664,13 +671,13 @@ const ln = "2.0.24", cn = () => {
|
|
|
664
671
|
});
|
|
665
672
|
};
|
|
666
673
|
let we = !1;
|
|
667
|
-
const
|
|
674
|
+
const Ge = (e = {}) => {
|
|
668
675
|
var t, n;
|
|
669
676
|
we || (we = !0, I() && ((t = window.parent) == null || t.postMessage({
|
|
670
677
|
type: "builder.sdkInfo",
|
|
671
678
|
data: {
|
|
672
|
-
target:
|
|
673
|
-
version:
|
|
679
|
+
target: R,
|
|
680
|
+
version: De,
|
|
674
681
|
supportsPatchUpdates: !1,
|
|
675
682
|
// Supports builder-model="..." attribute which is needed to
|
|
676
683
|
// scope our '+ add block' button styling
|
|
@@ -684,7 +691,7 @@ const ze = (e = {}) => {
|
|
|
684
691
|
}
|
|
685
692
|
}, "*"), window.addEventListener("message", (o) => {
|
|
686
693
|
var i, s;
|
|
687
|
-
if (!
|
|
694
|
+
if (!Je(e.trustedHosts, o))
|
|
688
695
|
return;
|
|
689
696
|
const {
|
|
690
697
|
data: r
|
|
@@ -725,12 +732,12 @@ const ze = (e = {}) => {
|
|
|
725
732
|
}
|
|
726
733
|
}
|
|
727
734
|
})));
|
|
728
|
-
},
|
|
735
|
+
}, Ye = ({
|
|
729
736
|
model: e,
|
|
730
737
|
trustedHosts: t,
|
|
731
738
|
callbacks: n
|
|
732
739
|
}) => (o) => {
|
|
733
|
-
if (!
|
|
740
|
+
if (!Je(t, o))
|
|
734
741
|
return;
|
|
735
742
|
const {
|
|
736
743
|
data: r
|
|
@@ -751,12 +758,12 @@ const ze = (e = {}) => {
|
|
|
751
758
|
break;
|
|
752
759
|
}
|
|
753
760
|
}
|
|
754
|
-
},
|
|
761
|
+
}, Ni = (e, t, n) => {
|
|
755
762
|
if (!I)
|
|
756
|
-
return
|
|
763
|
+
return P.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
757
764
|
};
|
|
758
|
-
|
|
759
|
-
const o =
|
|
765
|
+
Ge();
|
|
766
|
+
const o = Ye({
|
|
760
767
|
callbacks: {
|
|
761
768
|
contentUpdate: t,
|
|
762
769
|
animation: () => {
|
|
@@ -770,24 +777,24 @@ const ze = (e = {}) => {
|
|
|
770
777
|
return window.addEventListener("message", o), () => {
|
|
771
778
|
window.removeEventListener("message", o);
|
|
772
779
|
};
|
|
773
|
-
},
|
|
780
|
+
}, mn = "builder.tests", pe = (e) => `${mn}.${e}`, hn = ({
|
|
774
781
|
contentId: e
|
|
775
|
-
}) =>
|
|
782
|
+
}) => Me({
|
|
776
783
|
name: pe(e),
|
|
777
784
|
canTrack: !0
|
|
778
|
-
}),
|
|
785
|
+
}), fn = ({
|
|
779
786
|
contentId: e
|
|
780
|
-
}) =>
|
|
787
|
+
}) => Ue({
|
|
781
788
|
name: pe(e),
|
|
782
789
|
canTrack: !0
|
|
783
|
-
}),
|
|
790
|
+
}), bn = ({
|
|
784
791
|
contentId: e,
|
|
785
792
|
value: t
|
|
786
|
-
}) =>
|
|
793
|
+
}) => He({
|
|
787
794
|
name: pe(e),
|
|
788
795
|
value: t,
|
|
789
796
|
canTrack: !0
|
|
790
|
-
}),
|
|
797
|
+
}), Xe = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, gn = ({
|
|
791
798
|
id: e,
|
|
792
799
|
variations: t
|
|
793
800
|
}) => {
|
|
@@ -800,15 +807,15 @@ const ze = (e = {}) => {
|
|
|
800
807
|
return i;
|
|
801
808
|
}
|
|
802
809
|
return e;
|
|
803
|
-
},
|
|
804
|
-
const t =
|
|
805
|
-
return
|
|
810
|
+
}, Qe = (e) => {
|
|
811
|
+
const t = gn(e);
|
|
812
|
+
return bn({
|
|
806
813
|
contentId: e.id,
|
|
807
814
|
value: t
|
|
808
815
|
}).catch((n) => {
|
|
809
|
-
|
|
816
|
+
P.error("could not store A/B test variation: ", n);
|
|
810
817
|
}), t;
|
|
811
|
-
},
|
|
818
|
+
}, Ze = ({
|
|
812
819
|
item: e,
|
|
813
820
|
testGroupId: t
|
|
814
821
|
}) => {
|
|
@@ -822,7 +829,7 @@ const ze = (e = {}) => {
|
|
|
822
829
|
testVariationId: n.id,
|
|
823
830
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
824
831
|
};
|
|
825
|
-
},
|
|
832
|
+
}, yn = ({
|
|
826
833
|
item: e,
|
|
827
834
|
canTrack: t
|
|
828
835
|
}) => {
|
|
@@ -830,14 +837,14 @@ const ze = (e = {}) => {
|
|
|
830
837
|
return e;
|
|
831
838
|
if (!e)
|
|
832
839
|
return;
|
|
833
|
-
if (!
|
|
840
|
+
if (!Xe(e))
|
|
834
841
|
return e;
|
|
835
|
-
const n =
|
|
842
|
+
const n = fn({
|
|
836
843
|
contentId: e.id
|
|
837
|
-
}) ||
|
|
844
|
+
}) || Qe({
|
|
838
845
|
variations: e.variations,
|
|
839
846
|
id: e.id
|
|
840
|
-
}), o =
|
|
847
|
+
}), o = Ze({
|
|
841
848
|
item: e,
|
|
842
849
|
testGroupId: n
|
|
843
850
|
});
|
|
@@ -845,18 +852,18 @@ const ze = (e = {}) => {
|
|
|
845
852
|
...e,
|
|
846
853
|
...o
|
|
847
854
|
};
|
|
848
|
-
},
|
|
855
|
+
}, kn = async ({
|
|
849
856
|
item: e,
|
|
850
857
|
canTrack: t
|
|
851
858
|
}) => {
|
|
852
|
-
if (!t || !
|
|
859
|
+
if (!t || !Xe(e))
|
|
853
860
|
return e;
|
|
854
|
-
const o = await
|
|
861
|
+
const o = await hn({
|
|
855
862
|
contentId: e.id
|
|
856
|
-
}) ||
|
|
863
|
+
}) || Qe({
|
|
857
864
|
variations: e.variations,
|
|
858
865
|
id: e.id
|
|
859
|
-
}), r =
|
|
866
|
+
}), r = Ze({
|
|
860
867
|
item: e,
|
|
861
868
|
testGroupId: o
|
|
862
869
|
});
|
|
@@ -865,17 +872,17 @@ const ze = (e = {}) => {
|
|
|
865
872
|
...r
|
|
866
873
|
};
|
|
867
874
|
}, z = (e) => D(e) ? e : !0;
|
|
868
|
-
function
|
|
875
|
+
function vn() {
|
|
869
876
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
870
877
|
}
|
|
871
|
-
function
|
|
872
|
-
const e =
|
|
878
|
+
function Sn() {
|
|
879
|
+
const e = vn().fetch;
|
|
873
880
|
if (typeof e > "u")
|
|
874
881
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
875
882
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
876
883
|
return e;
|
|
877
884
|
}
|
|
878
|
-
const
|
|
885
|
+
const Cn = Sn();
|
|
879
886
|
function ce(e, t = null, n = ".") {
|
|
880
887
|
return Object.keys(e).reduce((o, r) => {
|
|
881
888
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -888,14 +895,14 @@ function ce(e, t = null, n = ".") {
|
|
|
888
895
|
};
|
|
889
896
|
}, {});
|
|
890
897
|
}
|
|
891
|
-
function
|
|
898
|
+
function _e(e, t, n = {}) {
|
|
892
899
|
for (const o in e) {
|
|
893
900
|
const r = e[o], i = t ? t + "." + o : o;
|
|
894
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
901
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? _e(r, i, n) : n[i] = r;
|
|
895
902
|
}
|
|
896
903
|
return n;
|
|
897
904
|
}
|
|
898
|
-
const
|
|
905
|
+
const wn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (e) => {
|
|
899
906
|
const {
|
|
900
907
|
limit: t = 30,
|
|
901
908
|
userAttributes: n,
|
|
@@ -904,82 +911,90 @@ const vn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (
|
|
|
904
911
|
apiKey: i,
|
|
905
912
|
enrich: s,
|
|
906
913
|
locale: l,
|
|
907
|
-
apiVersion: a =
|
|
914
|
+
apiVersion: a = wn,
|
|
908
915
|
fields: u,
|
|
909
916
|
omit: h,
|
|
910
917
|
offset: c,
|
|
911
918
|
cacheSeconds: p,
|
|
912
919
|
staleCacheSeconds: y,
|
|
913
920
|
sort: g,
|
|
914
|
-
includeUnpublished: N
|
|
921
|
+
includeUnpublished: N,
|
|
922
|
+
apiHost: Y
|
|
915
923
|
} = e;
|
|
916
924
|
if (!i)
|
|
917
925
|
throw new Error("Missing API key");
|
|
918
926
|
if (!["v3"].includes(a))
|
|
919
927
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
920
|
-
const
|
|
921
|
-
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(
|
|
928
|
+
const dt = t !== 1, ut = Y || "https://cdn.builder.io", T = new URL(`${ut}/api/${a}/content/${r}`);
|
|
929
|
+
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(dt)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", h || "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && T.searchParams.set("offset", String(Math.floor(c))), typeof N == "boolean" && T.searchParams.set("includeUnpublished", String(N)), p && Te(p) && T.searchParams.set("cacheSeconds", String(p)), y && Te(y) && T.searchParams.set("staleCacheSeconds", String(y)), g) {
|
|
922
930
|
const O = ce({
|
|
923
931
|
sort: g
|
|
924
932
|
});
|
|
925
933
|
for (const U in O)
|
|
926
934
|
T.searchParams.set(U, JSON.stringify(O[U]));
|
|
927
935
|
}
|
|
928
|
-
const
|
|
929
|
-
...
|
|
936
|
+
const pt = {
|
|
937
|
+
...Gt(),
|
|
930
938
|
...Ae(e.options || {})
|
|
931
|
-
}, ye = ce(
|
|
939
|
+
}, ye = ce(pt);
|
|
932
940
|
for (const O in ye)
|
|
933
941
|
T.searchParams.set(O, String(ye[O]));
|
|
934
942
|
if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
935
|
-
const O =
|
|
943
|
+
const O = _e({
|
|
936
944
|
query: o
|
|
937
945
|
});
|
|
938
946
|
for (const U in O)
|
|
939
947
|
T.searchParams.set(U, JSON.stringify(O[U]));
|
|
940
948
|
}
|
|
941
949
|
return T;
|
|
942
|
-
},
|
|
950
|
+
}, Tn = (e) => "results" in e;
|
|
943
951
|
async function he(e) {
|
|
944
|
-
const t = await
|
|
952
|
+
const t = await Rn({
|
|
945
953
|
...e,
|
|
946
954
|
limit: 1
|
|
947
955
|
});
|
|
948
956
|
return t && t[0] || null;
|
|
949
957
|
}
|
|
950
|
-
const
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
958
|
+
const In = async (e) => {
|
|
959
|
+
var s;
|
|
960
|
+
const t = me(e), n = e.fetch ?? Cn, o = {
|
|
961
|
+
...e.fetchOptions,
|
|
962
|
+
headers: {
|
|
963
|
+
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
964
|
+
...Le()
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
return await (await n(t.href, o)).json();
|
|
968
|
+
}, $n = async (e, t, n = me(e)) => {
|
|
954
969
|
const o = z(e.canTrack);
|
|
955
|
-
if (n.search.includes("preview="), !o || !(I() ||
|
|
970
|
+
if (n.search.includes("preview="), !o || !(I() || R === "reactNative"))
|
|
956
971
|
return t.results;
|
|
957
972
|
try {
|
|
958
973
|
const r = [];
|
|
959
974
|
for (const i of t.results)
|
|
960
|
-
r.push(await
|
|
975
|
+
r.push(await kn({
|
|
961
976
|
item: i,
|
|
962
977
|
canTrack: o
|
|
963
978
|
}));
|
|
964
979
|
t.results = r;
|
|
965
980
|
} catch (r) {
|
|
966
|
-
|
|
981
|
+
P.error("Could not process A/B tests. ", r);
|
|
967
982
|
}
|
|
968
983
|
return t.results;
|
|
969
984
|
};
|
|
970
|
-
async function
|
|
985
|
+
async function Rn(e) {
|
|
971
986
|
try {
|
|
972
|
-
const t = me(e), n = await
|
|
973
|
-
return
|
|
987
|
+
const t = me(e), n = await In(e);
|
|
988
|
+
return Tn(n) ? $n(e, n) : (P.error("Error fetching data. ", {
|
|
974
989
|
url: t,
|
|
975
990
|
content: n,
|
|
976
991
|
options: e
|
|
977
992
|
}), null);
|
|
978
993
|
} catch (t) {
|
|
979
|
-
return
|
|
994
|
+
return P.error("Error fetching data. ", t), null;
|
|
980
995
|
}
|
|
981
996
|
}
|
|
982
|
-
const
|
|
997
|
+
const Oi = async (e) => {
|
|
983
998
|
var o, r, i;
|
|
984
999
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
985
1000
|
...e,
|
|
@@ -999,7 +1014,7 @@ const Vi = async (e) => {
|
|
|
999
1014
|
content: await he(n)
|
|
1000
1015
|
};
|
|
1001
1016
|
}, fe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1002
|
-
function
|
|
1017
|
+
function En(e, t, n = {}) {
|
|
1003
1018
|
let o, r, i, s = null, l = 0;
|
|
1004
1019
|
const a = function() {
|
|
1005
1020
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -1011,7 +1026,7 @@ function In(e, t, n = {}) {
|
|
|
1011
1026
|
return o = this, r = arguments, h <= 0 || h > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, h)), i;
|
|
1012
1027
|
};
|
|
1013
1028
|
}
|
|
1014
|
-
function
|
|
1029
|
+
function j(e, ...t) {
|
|
1015
1030
|
const n = Object(e);
|
|
1016
1031
|
for (let o = 1; o < arguments.length; o++) {
|
|
1017
1032
|
const r = arguments[o];
|
|
@@ -1021,64 +1036,64 @@ function H(e, ...t) {
|
|
|
1021
1036
|
}
|
|
1022
1037
|
return n;
|
|
1023
1038
|
}
|
|
1024
|
-
function
|
|
1039
|
+
function Pn(e) {
|
|
1025
1040
|
for (const t of e)
|
|
1026
1041
|
switch (t.trigger) {
|
|
1027
1042
|
case "pageLoad":
|
|
1028
|
-
|
|
1043
|
+
nt(t);
|
|
1029
1044
|
break;
|
|
1030
1045
|
case "scrollInView":
|
|
1031
|
-
|
|
1046
|
+
xn(t);
|
|
1032
1047
|
break;
|
|
1033
1048
|
}
|
|
1034
1049
|
}
|
|
1035
|
-
function
|
|
1050
|
+
function et(e) {
|
|
1036
1051
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1037
1052
|
}
|
|
1038
|
-
function
|
|
1039
|
-
const n =
|
|
1053
|
+
function tt(e, t) {
|
|
1054
|
+
const n = Bn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1040
1055
|
for (const l of s)
|
|
1041
1056
|
for (const a of n)
|
|
1042
1057
|
a in l || (l[a] = o[a]);
|
|
1043
1058
|
}
|
|
1044
|
-
function
|
|
1059
|
+
function Bn(e) {
|
|
1045
1060
|
const t = [];
|
|
1046
1061
|
for (const n of e.steps)
|
|
1047
1062
|
for (const o in n.styles)
|
|
1048
1063
|
t.indexOf(o) === -1 && t.push(o);
|
|
1049
1064
|
return t;
|
|
1050
1065
|
}
|
|
1051
|
-
function
|
|
1066
|
+
function nt(e) {
|
|
1052
1067
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1053
1068
|
if (!t.length) {
|
|
1054
|
-
|
|
1069
|
+
et(e.elementId || e.id || "");
|
|
1055
1070
|
return;
|
|
1056
1071
|
}
|
|
1057
1072
|
Array.from(t).forEach((n) => {
|
|
1058
|
-
|
|
1059
|
-
n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1073
|
+
tt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1074
|
+
n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1060
1075
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1061
1076
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1062
1077
|
});
|
|
1063
1078
|
});
|
|
1064
1079
|
}
|
|
1065
|
-
function
|
|
1080
|
+
function xn(e) {
|
|
1066
1081
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1067
1082
|
if (!t.length) {
|
|
1068
|
-
|
|
1083
|
+
et(e.elementId || e.id || "");
|
|
1069
1084
|
return;
|
|
1070
1085
|
}
|
|
1071
1086
|
Array.from(t).forEach((n) => {
|
|
1072
|
-
|
|
1087
|
+
tt(e, n);
|
|
1073
1088
|
let o = !1, r = !1;
|
|
1074
1089
|
function i() {
|
|
1075
1090
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1076
|
-
|
|
1091
|
+
j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1077
1092
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1078
1093
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1079
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1094
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, j(n.style, e.steps[0].styles));
|
|
1080
1095
|
}
|
|
1081
|
-
const s =
|
|
1096
|
+
const s = En(i, 200, {
|
|
1082
1097
|
leading: !1
|
|
1083
1098
|
});
|
|
1084
1099
|
function l(h) {
|
|
@@ -1087,7 +1102,7 @@ function En(e) {
|
|
|
1087
1102
|
}
|
|
1088
1103
|
const a = e.steps[0].styles;
|
|
1089
1104
|
function u() {
|
|
1090
|
-
|
|
1105
|
+
j(n.style, a);
|
|
1091
1106
|
}
|
|
1092
1107
|
u(), setTimeout(() => {
|
|
1093
1108
|
n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -1097,42 +1112,42 @@ function En(e) {
|
|
|
1097
1112
|
}), i();
|
|
1098
1113
|
});
|
|
1099
1114
|
}
|
|
1100
|
-
const
|
|
1115
|
+
const ot = (e) => Object.entries(e).map(([n, o]) => {
|
|
1101
1116
|
if (typeof o == "string")
|
|
1102
1117
|
return `${fe(n)}: ${o};`;
|
|
1103
|
-
}).filter(D),
|
|
1104
|
-
`),
|
|
1118
|
+
}).filter(D), An = (e) => ot(e).join(`
|
|
1119
|
+
`), Fi = ({
|
|
1105
1120
|
mediaQuery: e,
|
|
1106
1121
|
className: t,
|
|
1107
1122
|
styles: n
|
|
1108
1123
|
}) => {
|
|
1109
1124
|
const o = `.${t} {
|
|
1110
|
-
${
|
|
1125
|
+
${An(n)}
|
|
1111
1126
|
}`;
|
|
1112
1127
|
return e ? `${e} {
|
|
1113
1128
|
${o}
|
|
1114
1129
|
}` : o;
|
|
1115
1130
|
};
|
|
1116
|
-
function
|
|
1131
|
+
function Vn({
|
|
1117
1132
|
style: e
|
|
1118
1133
|
}) {
|
|
1119
1134
|
return e;
|
|
1120
1135
|
}
|
|
1121
|
-
const
|
|
1136
|
+
const Di = ({
|
|
1122
1137
|
block: e,
|
|
1123
1138
|
context: t
|
|
1124
|
-
}) =>
|
|
1139
|
+
}) => rt(Vn({
|
|
1125
1140
|
style: e.style || {},
|
|
1126
1141
|
context: t,
|
|
1127
1142
|
block: e
|
|
1128
1143
|
}));
|
|
1129
|
-
function
|
|
1130
|
-
switch (
|
|
1144
|
+
function rt(e) {
|
|
1145
|
+
switch (R) {
|
|
1131
1146
|
case "svelte":
|
|
1132
1147
|
case "vue":
|
|
1133
1148
|
case "solid":
|
|
1134
1149
|
case "angular":
|
|
1135
|
-
return
|
|
1150
|
+
return ot(e).join(" ");
|
|
1136
1151
|
case "qwik":
|
|
1137
1152
|
case "reactNative":
|
|
1138
1153
|
case "react":
|
|
@@ -1140,7 +1155,7 @@ function nt(e) {
|
|
|
1140
1155
|
return e;
|
|
1141
1156
|
}
|
|
1142
1157
|
}
|
|
1143
|
-
const
|
|
1158
|
+
const Wn = ({
|
|
1144
1159
|
block: e,
|
|
1145
1160
|
registeredComponents: t
|
|
1146
1161
|
}) => {
|
|
@@ -1154,7 +1169,7 @@ const xn = ({
|
|
|
1154
1169
|
console.warn(`
|
|
1155
1170
|
Could not find a registered component named "${n}".
|
|
1156
1171
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1157
|
-
},
|
|
1172
|
+
}, Nn = ({
|
|
1158
1173
|
block: e,
|
|
1159
1174
|
context: t
|
|
1160
1175
|
}) => {
|
|
@@ -1187,59 +1202,59 @@ const xn = ({
|
|
|
1187
1202
|
},
|
|
1188
1203
|
block: o
|
|
1189
1204
|
}));
|
|
1190
|
-
},
|
|
1205
|
+
}, On = (e, t) => {
|
|
1191
1206
|
var n;
|
|
1192
1207
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1193
1208
|
builderLinkComponent: t
|
|
1194
1209
|
} : {};
|
|
1195
|
-
},
|
|
1210
|
+
}, Fn = (e, t) => {
|
|
1196
1211
|
var n;
|
|
1197
1212
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
1198
1213
|
builderComponents: t
|
|
1199
1214
|
} : {};
|
|
1200
|
-
},
|
|
1215
|
+
}, Dn = (e, t) => {
|
|
1201
1216
|
var n;
|
|
1202
1217
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1203
1218
|
builderBlock: t
|
|
1204
1219
|
} : {};
|
|
1205
|
-
},
|
|
1220
|
+
}, Ln = (e, t) => {
|
|
1206
1221
|
var n;
|
|
1207
1222
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1208
1223
|
builderContext: t
|
|
1209
1224
|
} : {};
|
|
1210
|
-
},
|
|
1225
|
+
}, Un = () => Promise.resolve().then(() => eo).then((e) => e.default).catch((e) => {
|
|
1211
1226
|
throw console.error(
|
|
1212
1227
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1213
1228
|
e
|
|
1214
1229
|
), e;
|
|
1215
|
-
}),
|
|
1230
|
+
}), Mn = () => import("./block-styles-n4l-jUSQ.js").then((e) => e.default).catch((e) => {
|
|
1216
1231
|
throw console.error(
|
|
1217
1232
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1218
1233
|
e
|
|
1219
1234
|
), e;
|
|
1220
|
-
}),
|
|
1235
|
+
}), Hn = () => import("./block-wrapper-s8-kAmNG.js").then((e) => e.default).catch((e) => {
|
|
1221
1236
|
throw console.error(
|
|
1222
1237
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1223
1238
|
e
|
|
1224
1239
|
), e;
|
|
1225
|
-
}),
|
|
1240
|
+
}), jn = () => import("./component-ref-gRCzH9eX.js").then((e) => e.default).catch((e) => {
|
|
1226
1241
|
throw console.error(
|
|
1227
1242
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1228
1243
|
e
|
|
1229
1244
|
), e;
|
|
1230
|
-
}),
|
|
1245
|
+
}), Kn = () => import("./repeated-block-jXsbtR-B.js").then((e) => e.default).catch((e) => {
|
|
1231
1246
|
throw console.error(
|
|
1232
1247
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1233
1248
|
e
|
|
1234
1249
|
), e;
|
|
1235
|
-
}),
|
|
1250
|
+
}), qn = f({
|
|
1236
1251
|
name: "block",
|
|
1237
1252
|
components: {
|
|
1238
|
-
BlockStyles: M(
|
|
1239
|
-
RepeatedBlock: M(
|
|
1240
|
-
ComponentRef: M(
|
|
1241
|
-
BlockWrapper: M(
|
|
1242
|
-
DynamicDiv: M(
|
|
1253
|
+
BlockStyles: M(Mn),
|
|
1254
|
+
RepeatedBlock: M(Kn),
|
|
1255
|
+
ComponentRef: M(jn),
|
|
1256
|
+
BlockWrapper: M(Hn),
|
|
1257
|
+
DynamicDiv: M(Un)
|
|
1243
1258
|
},
|
|
1244
1259
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1245
1260
|
data() {
|
|
@@ -1252,7 +1267,7 @@ const xn = ({
|
|
|
1252
1267
|
},
|
|
1253
1268
|
mounted() {
|
|
1254
1269
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1255
|
-
t && e &&
|
|
1270
|
+
t && e && Pn(
|
|
1256
1271
|
t.map((n) => ({
|
|
1257
1272
|
...n,
|
|
1258
1273
|
elementId: e
|
|
@@ -1263,14 +1278,14 @@ const xn = ({
|
|
|
1263
1278
|
},
|
|
1264
1279
|
computed: {
|
|
1265
1280
|
repeatItem() {
|
|
1266
|
-
return
|
|
1281
|
+
return Nn({
|
|
1267
1282
|
block: this.block,
|
|
1268
1283
|
context: this.context
|
|
1269
1284
|
});
|
|
1270
1285
|
},
|
|
1271
1286
|
processedBlock() {
|
|
1272
1287
|
var t;
|
|
1273
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1288
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Ht({
|
|
1274
1289
|
block: this.block,
|
|
1275
1290
|
localState: this.context.localState,
|
|
1276
1291
|
rootState: this.context.rootState,
|
|
@@ -1280,7 +1295,7 @@ const xn = ({
|
|
|
1280
1295
|
});
|
|
1281
1296
|
},
|
|
1282
1297
|
blockComponent() {
|
|
1283
|
-
return
|
|
1298
|
+
return Wn({
|
|
1284
1299
|
block: this.processedBlock,
|
|
1285
1300
|
registeredComponents: this.registeredComponents
|
|
1286
1301
|
});
|
|
@@ -1306,11 +1321,11 @@ const xn = ({
|
|
|
1306
1321
|
blockChildren: this.processedBlock.children ?? [],
|
|
1307
1322
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1308
1323
|
componentOptions: {
|
|
1309
|
-
...
|
|
1310
|
-
...
|
|
1311
|
-
...
|
|
1312
|
-
...
|
|
1313
|
-
...
|
|
1324
|
+
...Tt(this.processedBlock),
|
|
1325
|
+
...Dn(this.blockComponent, this.processedBlock),
|
|
1326
|
+
...Ln(this.blockComponent, this.context),
|
|
1327
|
+
...On(this.blockComponent, this.linkComponent),
|
|
1328
|
+
...Fn(
|
|
1314
1329
|
this.blockComponent,
|
|
1315
1330
|
this.registeredComponents
|
|
1316
1331
|
)
|
|
@@ -1320,12 +1335,12 @@ const xn = ({
|
|
|
1320
1335
|
registeredComponents: this.registeredComponents,
|
|
1321
1336
|
builderBlock: this.processedBlock,
|
|
1322
1337
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1323
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1338
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
|
|
1324
1339
|
};
|
|
1325
1340
|
}
|
|
1326
1341
|
}
|
|
1327
1342
|
});
|
|
1328
|
-
function
|
|
1343
|
+
function zn(e, t, n, o, r, i) {
|
|
1329
1344
|
var c;
|
|
1330
1345
|
const s = v("BlockStyles"), l = v("ComponentRef"), a = v("Block", !0), u = v("BlockWrapper"), h = v("RepeatedBlock");
|
|
1331
1346
|
return e.canShowBlock ? (d(), m(w, { key: 0 }, [
|
|
@@ -1390,10 +1405,10 @@ function Hn(e, t, n, o, r, i) {
|
|
|
1390
1405
|
], 64))
|
|
1391
1406
|
], 64)) : S("", !0);
|
|
1392
1407
|
}
|
|
1393
|
-
const be = /* @__PURE__ */ b(
|
|
1408
|
+
const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1394
1409
|
__proto__: null,
|
|
1395
1410
|
default: be
|
|
1396
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1411
|
+
}, Symbol.toStringTag, { value: "Module" })), Jn = f({
|
|
1397
1412
|
name: "builder-blocks-wrapper",
|
|
1398
1413
|
props: [
|
|
1399
1414
|
"blocks",
|
|
@@ -1419,7 +1434,7 @@ const be = /* @__PURE__ */ b(jn, [["render", Hn]]), Oi = /* @__PURE__ */ Object.
|
|
|
1419
1434
|
methods: {
|
|
1420
1435
|
onClick() {
|
|
1421
1436
|
var e, t;
|
|
1422
|
-
|
|
1437
|
+
E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1423
1438
|
{
|
|
1424
1439
|
type: "builder.clickEmptyBlocks",
|
|
1425
1440
|
data: {
|
|
@@ -1432,7 +1447,7 @@ const be = /* @__PURE__ */ b(jn, [["render", Hn]]), Oi = /* @__PURE__ */ Object.
|
|
|
1432
1447
|
},
|
|
1433
1448
|
onMouseEnter() {
|
|
1434
1449
|
var e, t;
|
|
1435
|
-
|
|
1450
|
+
E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1436
1451
|
{
|
|
1437
1452
|
type: "builder.hoverEmptyBlocks",
|
|
1438
1453
|
data: {
|
|
@@ -1445,8 +1460,8 @@ const be = /* @__PURE__ */ b(jn, [["render", Hn]]), Oi = /* @__PURE__ */ Object.
|
|
|
1445
1460
|
}
|
|
1446
1461
|
}
|
|
1447
1462
|
});
|
|
1448
|
-
function
|
|
1449
|
-
return d(), k(
|
|
1463
|
+
function Gn(e, t, n, o, r, i) {
|
|
1464
|
+
return d(), k(H(e.BlocksWrapper), C({
|
|
1450
1465
|
ref: "blocksWrapperRef",
|
|
1451
1466
|
class: e.className + " component-1k2igrjdg3x",
|
|
1452
1467
|
"builder-path": e.path,
|
|
@@ -1462,9 +1477,9 @@ function qn(e, t, n, o, r, i) {
|
|
|
1462
1477
|
_: 3
|
|
1463
1478
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1464
1479
|
}
|
|
1465
|
-
const
|
|
1480
|
+
const Yn = /* @__PURE__ */ b(Jn, [["render", Gn], ["__scopeId", "data-v-e241e088"]]), Xn = f({
|
|
1466
1481
|
name: "builder-blocks",
|
|
1467
|
-
components: { BlocksWrapper:
|
|
1482
|
+
components: { BlocksWrapper: Yn, Block: be },
|
|
1468
1483
|
props: [
|
|
1469
1484
|
"blocks",
|
|
1470
1485
|
"parent",
|
|
@@ -1480,7 +1495,7 @@ const zn = /* @__PURE__ */ b(Kn, [["render", qn], ["__scopeId", "data-v-e241e088
|
|
|
1480
1495
|
componentsContext: Be.key
|
|
1481
1496
|
}
|
|
1482
1497
|
});
|
|
1483
|
-
function
|
|
1498
|
+
function Qn(e, t, n, o, r, i) {
|
|
1484
1499
|
var a, u, h, c;
|
|
1485
1500
|
const s = v("Block"), l = v("BlocksWrapper");
|
|
1486
1501
|
return d(), k(l, {
|
|
@@ -1507,16 +1522,16 @@ function Gn(e, t, n, o, r, i) {
|
|
|
1507
1522
|
_: 1
|
|
1508
1523
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1509
1524
|
}
|
|
1510
|
-
const L = /* @__PURE__ */ b(
|
|
1525
|
+
const L = /* @__PURE__ */ b(Xn, [["render", Qn]]), Zn = f({
|
|
1511
1526
|
name: "dynamic-div",
|
|
1512
1527
|
props: []
|
|
1513
1528
|
});
|
|
1514
|
-
function
|
|
1529
|
+
function _n(e, t, n, o, r, i) {
|
|
1515
1530
|
return d(), m("div", null, [
|
|
1516
1531
|
x(e.$slots, "default")
|
|
1517
1532
|
]);
|
|
1518
1533
|
}
|
|
1519
|
-
const G = /* @__PURE__ */ b(
|
|
1534
|
+
const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1520
1535
|
__proto__: null,
|
|
1521
1536
|
default: G
|
|
1522
1537
|
}, Symbol.toStringTag, { value: "Module" })), ge = f({
|
|
@@ -1529,7 +1544,7 @@ const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.f
|
|
|
1529
1544
|
},
|
|
1530
1545
|
name: "inlined-styles",
|
|
1531
1546
|
props: ["styles", "id", "nonce"]
|
|
1532
|
-
}),
|
|
1547
|
+
}), it = {
|
|
1533
1548
|
small: {
|
|
1534
1549
|
min: 320,
|
|
1535
1550
|
default: 321,
|
|
@@ -1545,11 +1560,11 @@ const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.f
|
|
|
1545
1560
|
default: 991,
|
|
1546
1561
|
max: 1200
|
|
1547
1562
|
}
|
|
1548
|
-
},
|
|
1563
|
+
}, Ui = (e, t = it) => `@media (max-width: ${t[e].max}px)`, to = ({
|
|
1549
1564
|
small: e,
|
|
1550
1565
|
medium: t
|
|
1551
1566
|
}) => {
|
|
1552
|
-
const n = ue(
|
|
1567
|
+
const n = ue(it);
|
|
1553
1568
|
if (!e || !t)
|
|
1554
1569
|
return n;
|
|
1555
1570
|
const o = Math.floor(e / 2);
|
|
@@ -1571,7 +1586,7 @@ const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.f
|
|
|
1571
1586
|
min: i,
|
|
1572
1587
|
default: i + 1
|
|
1573
1588
|
}, n;
|
|
1574
|
-
},
|
|
1589
|
+
}, no = (e) => `builder-columns ${e}-breakpoints`, oo = f({
|
|
1575
1590
|
name: "builder-columns",
|
|
1576
1591
|
components: {
|
|
1577
1592
|
InlinedStyles: ge,
|
|
@@ -1595,8 +1610,8 @@ const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.f
|
|
|
1595
1610
|
cols: this.columns || [],
|
|
1596
1611
|
stackAt: this.stackColumnsAt || "tablet",
|
|
1597
1612
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
1598
|
-
TARGET:
|
|
1599
|
-
getColumnsClass:
|
|
1613
|
+
TARGET: R,
|
|
1614
|
+
getColumnsClass: no
|
|
1600
1615
|
};
|
|
1601
1616
|
},
|
|
1602
1617
|
methods: {
|
|
@@ -1662,7 +1677,7 @@ const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.f
|
|
|
1662
1677
|
},
|
|
1663
1678
|
getWidthForBreakpointSize(e) {
|
|
1664
1679
|
var n, o;
|
|
1665
|
-
return
|
|
1680
|
+
return to(
|
|
1666
1681
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1667
1682
|
)[e].max;
|
|
1668
1683
|
},
|
|
@@ -1700,12 +1715,12 @@ const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.f
|
|
|
1700
1715
|
href: e.link
|
|
1701
1716
|
} : {},
|
|
1702
1717
|
[Z()]: "builder-column",
|
|
1703
|
-
style:
|
|
1718
|
+
style: rt(this.columnCssVars(t))
|
|
1704
1719
|
};
|
|
1705
1720
|
}
|
|
1706
1721
|
}
|
|
1707
1722
|
});
|
|
1708
|
-
function
|
|
1723
|
+
function ro(e, t, n, o, r, i) {
|
|
1709
1724
|
var u;
|
|
1710
1725
|
const s = v("InlinedStyles"), l = v("Blocks"), a = v("DynamicRenderer");
|
|
1711
1726
|
return d(), m("div", C({
|
|
@@ -1741,24 +1756,24 @@ function to(e, t, n, o, r, i) {
|
|
|
1741
1756
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1742
1757
|
], 16);
|
|
1743
1758
|
}
|
|
1744
|
-
const
|
|
1759
|
+
const io = /* @__PURE__ */ b(oo, [["render", ro], ["__scopeId", "data-v-adc066fc"]]), so = f({
|
|
1745
1760
|
name: "builder-fragment-component",
|
|
1746
1761
|
props: []
|
|
1747
1762
|
});
|
|
1748
|
-
function
|
|
1763
|
+
function ao(e, t, n, o, r, i) {
|
|
1749
1764
|
return d(), m("span", null, [
|
|
1750
1765
|
x(e.$slots, "default")
|
|
1751
1766
|
]);
|
|
1752
1767
|
}
|
|
1753
|
-
const
|
|
1768
|
+
const lo = /* @__PURE__ */ b(so, [["render", ao]]);
|
|
1754
1769
|
function Ie(e) {
|
|
1755
1770
|
return e.replace(/http(s)?:/, "");
|
|
1756
1771
|
}
|
|
1757
|
-
function
|
|
1772
|
+
function co(e = "", t, n) {
|
|
1758
1773
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1759
1774
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1760
1775
|
}
|
|
1761
|
-
function
|
|
1776
|
+
function uo(e, t) {
|
|
1762
1777
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1763
1778
|
return e;
|
|
1764
1779
|
if (t === "master")
|
|
@@ -1777,11 +1792,11 @@ function te(e) {
|
|
|
1777
1792
|
if (e.match(/builder\.io/)) {
|
|
1778
1793
|
let n = e;
|
|
1779
1794
|
const o = Number(e.split("?width=")[1]);
|
|
1780
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1795
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${co(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1781
1796
|
}
|
|
1782
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1797
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [uo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1783
1798
|
}
|
|
1784
|
-
const
|
|
1799
|
+
const po = f({
|
|
1785
1800
|
name: "builder-image",
|
|
1786
1801
|
props: [
|
|
1787
1802
|
"image",
|
|
@@ -1832,11 +1847,11 @@ const lo = f({
|
|
|
1832
1847
|
return this.aspectRatio ? e : void 0;
|
|
1833
1848
|
}
|
|
1834
1849
|
}
|
|
1835
|
-
}),
|
|
1850
|
+
}), mo = ["srcset"], ho = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], fo = {
|
|
1836
1851
|
key: 2,
|
|
1837
1852
|
class: "div-29wpyomtntv-2"
|
|
1838
1853
|
};
|
|
1839
|
-
function
|
|
1854
|
+
function bo(e, t, n, o, r, i) {
|
|
1840
1855
|
var s, l, a, u, h, c;
|
|
1841
1856
|
return d(), m(w, null, [
|
|
1842
1857
|
K("picture", null, [
|
|
@@ -1844,7 +1859,7 @@ function mo(e, t, n, o, r, i) {
|
|
|
1844
1859
|
key: 0,
|
|
1845
1860
|
type: "image/webp",
|
|
1846
1861
|
srcset: e.webpSrcSet
|
|
1847
|
-
}, null, 8,
|
|
1862
|
+
}, null, 8, mo)) : S("", !0),
|
|
1848
1863
|
K("img", {
|
|
1849
1864
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1850
1865
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -1861,7 +1876,7 @@ function mo(e, t, n, o, r, i) {
|
|
|
1861
1876
|
src: e.image,
|
|
1862
1877
|
srcset: e.srcSetToUse,
|
|
1863
1878
|
sizes: e.sizes
|
|
1864
|
-
}, null, 14,
|
|
1879
|
+
}, null, 14, ho)
|
|
1865
1880
|
]),
|
|
1866
1881
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), m("div", {
|
|
1867
1882
|
key: 0,
|
|
@@ -1871,19 +1886,19 @@ function mo(e, t, n, o, r, i) {
|
|
|
1871
1886
|
})
|
|
1872
1887
|
}, null, 4)) : S("", !0),
|
|
1873
1888
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1874
|
-
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div",
|
|
1889
|
+
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div", fo, [
|
|
1875
1890
|
x(e.$slots, "default", {}, void 0, !0)
|
|
1876
1891
|
])) : S("", !0)
|
|
1877
1892
|
], 64);
|
|
1878
1893
|
}
|
|
1879
|
-
const
|
|
1894
|
+
const go = /* @__PURE__ */ b(po, [["render", bo], ["__scopeId", "data-v-77f8a6c4"]]), yo = f({
|
|
1880
1895
|
name: "builder-section-component",
|
|
1881
1896
|
props: ["attributes", "maxWidth"],
|
|
1882
1897
|
data() {
|
|
1883
1898
|
return { filterAttrs: V };
|
|
1884
1899
|
}
|
|
1885
1900
|
});
|
|
1886
|
-
function
|
|
1901
|
+
function ko(e, t, n, o, r, i) {
|
|
1887
1902
|
return d(), m("section", C({
|
|
1888
1903
|
style: {
|
|
1889
1904
|
width: "100%",
|
|
@@ -1901,7 +1916,7 @@ function bo(e, t, n, o, r, i) {
|
|
|
1901
1916
|
x(e.$slots, "default")
|
|
1902
1917
|
], 16);
|
|
1903
1918
|
}
|
|
1904
|
-
const
|
|
1919
|
+
const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
|
|
1905
1920
|
"@type": "@builder.io/sdk:Element",
|
|
1906
1921
|
layerName: "Accordion item title",
|
|
1907
1922
|
responsiveStyles: {
|
|
@@ -1961,7 +1976,7 @@ const go = /* @__PURE__ */ b(fo, [["render", bo]]), ne = {
|
|
|
1961
1976
|
}
|
|
1962
1977
|
}
|
|
1963
1978
|
}]
|
|
1964
|
-
},
|
|
1979
|
+
}, So = {
|
|
1965
1980
|
name: "Builder:Accordion",
|
|
1966
1981
|
canHaveChildren: !0,
|
|
1967
1982
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2025,7 +2040,7 @@ const go = /* @__PURE__ */ b(fo, [["render", bo]]), ne = {
|
|
|
2025
2040
|
builderComponents: !0,
|
|
2026
2041
|
builderLinkComponent: !0
|
|
2027
2042
|
}
|
|
2028
|
-
},
|
|
2043
|
+
}, Co = (e) => e.toString(), wo = f({
|
|
2029
2044
|
name: "builder-accordion",
|
|
2030
2045
|
components: { Blocks: L },
|
|
2031
2046
|
props: [
|
|
@@ -2039,7 +2054,7 @@ const go = /* @__PURE__ */ b(fo, [["render", bo]]), ne = {
|
|
|
2039
2054
|
"builderLinkComponent"
|
|
2040
2055
|
],
|
|
2041
2056
|
data() {
|
|
2042
|
-
return { open: [], convertOrderNumberToString:
|
|
2057
|
+
return { open: [], convertOrderNumberToString: Co };
|
|
2043
2058
|
},
|
|
2044
2059
|
computed: {
|
|
2045
2060
|
onlyOneAtATime() {
|
|
@@ -2120,8 +2135,8 @@ const go = /* @__PURE__ */ b(fo, [["render", bo]]), ne = {
|
|
|
2120
2135
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2121
2136
|
}
|
|
2122
2137
|
}
|
|
2123
|
-
}),
|
|
2124
|
-
function
|
|
2138
|
+
}), To = ["data-index", "onClick"];
|
|
2139
|
+
function Io(e, t, n, o, r, i) {
|
|
2125
2140
|
const s = v("Blocks");
|
|
2126
2141
|
return d(), m("div", {
|
|
2127
2142
|
class: "builder-accordion",
|
|
@@ -2146,7 +2161,7 @@ function Co(e, t, n, o, r, i) {
|
|
|
2146
2161
|
registeredComponents: e.builderComponents,
|
|
2147
2162
|
linkComponent: e.builderLinkComponent
|
|
2148
2163
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2149
|
-
], 14,
|
|
2164
|
+
], 14, To),
|
|
2150
2165
|
e.open.includes(a) ? (d(), m("div", {
|
|
2151
2166
|
key: 0,
|
|
2152
2167
|
class: q(e.getAccordionDetailClassName(a)),
|
|
@@ -2164,7 +2179,7 @@ function Co(e, t, n, o, r, i) {
|
|
|
2164
2179
|
], 64))), 128))
|
|
2165
2180
|
], 4);
|
|
2166
2181
|
}
|
|
2167
|
-
const
|
|
2182
|
+
const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
2168
2183
|
name: "Core:Button",
|
|
2169
2184
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2170
2185
|
defaultStyles: {
|
|
@@ -2200,7 +2215,7 @@ const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
|
2200
2215
|
shouldReceiveBuilderProps: {
|
|
2201
2216
|
builderLinkComponent: !0
|
|
2202
2217
|
}
|
|
2203
|
-
},
|
|
2218
|
+
}, Eo = {
|
|
2204
2219
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2205
2220
|
name: "Columns",
|
|
2206
2221
|
isRSC: !0,
|
|
@@ -2407,13 +2422,13 @@ const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
|
2407
2422
|
builderComponents: !0,
|
|
2408
2423
|
builderLinkComponent: !0
|
|
2409
2424
|
}
|
|
2410
|
-
},
|
|
2425
|
+
}, Po = {
|
|
2411
2426
|
name: "Fragment",
|
|
2412
2427
|
static: !0,
|
|
2413
2428
|
hidden: !0,
|
|
2414
2429
|
canHaveChildren: !0,
|
|
2415
2430
|
noWrap: !0
|
|
2416
|
-
},
|
|
2431
|
+
}, Bo = {
|
|
2417
2432
|
name: "Image",
|
|
2418
2433
|
static: !0,
|
|
2419
2434
|
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",
|
|
@@ -2521,7 +2536,7 @@ const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
|
2521
2536
|
shouldReceiveBuilderProps: {
|
|
2522
2537
|
builderBlock: !0
|
|
2523
2538
|
}
|
|
2524
|
-
},
|
|
2539
|
+
}, xo = {
|
|
2525
2540
|
name: "Core:Section",
|
|
2526
2541
|
static: !0,
|
|
2527
2542
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2560,7 +2575,7 @@ const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
|
2560
2575
|
}
|
|
2561
2576
|
}
|
|
2562
2577
|
}]
|
|
2563
|
-
},
|
|
2578
|
+
}, Ao = {
|
|
2564
2579
|
name: "Slot",
|
|
2565
2580
|
isRSC: !0,
|
|
2566
2581
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2577,12 +2592,12 @@ const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
|
2577
2592
|
builderContext: !0,
|
|
2578
2593
|
builderComponents: !0
|
|
2579
2594
|
}
|
|
2580
|
-
},
|
|
2595
|
+
}, Vo = f({
|
|
2581
2596
|
name: "builder-slot",
|
|
2582
2597
|
components: { Blocks: L },
|
|
2583
2598
|
props: ["builderContext", "name", "builderComponents"]
|
|
2584
2599
|
});
|
|
2585
|
-
function
|
|
2600
|
+
function Wo(e, t, n, o, r, i) {
|
|
2586
2601
|
var l, a, u;
|
|
2587
2602
|
const s = v("Blocks");
|
|
2588
2603
|
return d(), m("div", C(
|
|
@@ -2602,7 +2617,7 @@ function xo(e, t, n, o, r, i) {
|
|
|
2602
2617
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2603
2618
|
], 16);
|
|
2604
2619
|
}
|
|
2605
|
-
const
|
|
2620
|
+
const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
|
|
2606
2621
|
name: "Symbol",
|
|
2607
2622
|
noWrap: !0,
|
|
2608
2623
|
static: !0,
|
|
@@ -2679,7 +2694,7 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", xo]]), Vo = {
|
|
|
2679
2694
|
text: "New tab content "
|
|
2680
2695
|
}
|
|
2681
2696
|
}
|
|
2682
|
-
},
|
|
2697
|
+
}, Fo = {
|
|
2683
2698
|
name: "Builder: Tabs",
|
|
2684
2699
|
inputs: [{
|
|
2685
2700
|
name: "tabs",
|
|
@@ -2782,7 +2797,7 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", xo]]), Vo = {
|
|
|
2782
2797
|
builderComponents: !0,
|
|
2783
2798
|
builderLinkComponent: !0
|
|
2784
2799
|
}
|
|
2785
|
-
},
|
|
2800
|
+
}, Do = f({
|
|
2786
2801
|
name: "builder-tabs",
|
|
2787
2802
|
components: { Blocks: L },
|
|
2788
2803
|
props: [
|
|
@@ -2807,8 +2822,8 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", xo]]), Vo = {
|
|
|
2807
2822
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2808
2823
|
}
|
|
2809
2824
|
}
|
|
2810
|
-
}),
|
|
2811
|
-
function
|
|
2825
|
+
}), Lo = ["onClick"], Uo = { key: 0 };
|
|
2826
|
+
function Mo(e, t, n, o, r, i) {
|
|
2812
2827
|
const s = v("Blocks");
|
|
2813
2828
|
return d(), m("div", null, [
|
|
2814
2829
|
K("div", {
|
|
@@ -2836,9 +2851,9 @@ function Do(e, t, n, o, r, i) {
|
|
|
2836
2851
|
registeredComponents: e.builderComponents,
|
|
2837
2852
|
linkComponent: e.builderLinkComponent
|
|
2838
2853
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2839
|
-
], 14,
|
|
2854
|
+
], 14, Lo))), 128))
|
|
2840
2855
|
], 4),
|
|
2841
|
-
e.activeTabContent(e.activeTab) ? (d(), m("div",
|
|
2856
|
+
e.activeTabContent(e.activeTab) ? (d(), m("div", Uo, [
|
|
2842
2857
|
$(s, {
|
|
2843
2858
|
parent: e.builderBlock.id,
|
|
2844
2859
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -2850,7 +2865,7 @@ function Do(e, t, n, o, r, i) {
|
|
|
2850
2865
|
])) : S("", !0)
|
|
2851
2866
|
]);
|
|
2852
2867
|
}
|
|
2853
|
-
const
|
|
2868
|
+
const Ho = /* @__PURE__ */ b(Do, [["render", Mo]]), jo = {
|
|
2854
2869
|
shouldReceiveBuilderProps: {
|
|
2855
2870
|
builderBlock: !1,
|
|
2856
2871
|
builderContext: !0
|
|
@@ -2872,7 +2887,7 @@ const Lo = /* @__PURE__ */ b(No, [["render", Do]]), Uo = {
|
|
|
2872
2887
|
height: "auto",
|
|
2873
2888
|
textAlign: "center"
|
|
2874
2889
|
}
|
|
2875
|
-
},
|
|
2890
|
+
}, Ko = f({
|
|
2876
2891
|
name: "builder-text",
|
|
2877
2892
|
props: ["builderContext", "text"],
|
|
2878
2893
|
computed: {
|
|
@@ -2896,17 +2911,17 @@ const Lo = /* @__PURE__ */ b(No, [["render", Do]]), Uo = {
|
|
|
2896
2911
|
);
|
|
2897
2912
|
}
|
|
2898
2913
|
}
|
|
2899
|
-
}),
|
|
2900
|
-
function
|
|
2914
|
+
}), qo = ["innerHTML"];
|
|
2915
|
+
function zo(e, t, n, o, r, i) {
|
|
2901
2916
|
return d(), m("div", {
|
|
2902
2917
|
class: "builder-text",
|
|
2903
2918
|
innerHTML: e.processedText,
|
|
2904
2919
|
style: {
|
|
2905
2920
|
outline: "none"
|
|
2906
2921
|
}
|
|
2907
|
-
}, null, 8,
|
|
2922
|
+
}, null, 8, qo);
|
|
2908
2923
|
}
|
|
2909
|
-
const
|
|
2924
|
+
const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
|
|
2910
2925
|
name: "Custom Code",
|
|
2911
2926
|
static: !0,
|
|
2912
2927
|
requiredPermissions: ["editCode"],
|
|
@@ -2928,7 +2943,7 @@ const Ko = /* @__PURE__ */ b(Mo, [["render", Ho]]), qo = {
|
|
|
2928
2943
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2929
2944
|
advanced: !0
|
|
2930
2945
|
}]
|
|
2931
|
-
},
|
|
2946
|
+
}, Yo = f({
|
|
2932
2947
|
name: "builder-custom-code",
|
|
2933
2948
|
props: ["replaceNodes", "code"],
|
|
2934
2949
|
data() {
|
|
@@ -2962,15 +2977,15 @@ const Ko = /* @__PURE__ */ b(Mo, [["render", Ho]]), qo = {
|
|
|
2962
2977
|
}
|
|
2963
2978
|
}
|
|
2964
2979
|
}
|
|
2965
|
-
}),
|
|
2966
|
-
function
|
|
2980
|
+
}), Xo = ["innerHTML"];
|
|
2981
|
+
function Qo(e, t, n, o, r, i) {
|
|
2967
2982
|
return d(), m("div", {
|
|
2968
2983
|
ref: "elementRef",
|
|
2969
2984
|
class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2970
2985
|
innerHTML: e.code
|
|
2971
|
-
}, null, 10,
|
|
2986
|
+
}, null, 10, Xo);
|
|
2972
2987
|
}
|
|
2973
|
-
const
|
|
2988
|
+
const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
2974
2989
|
name: "Embed",
|
|
2975
2990
|
static: !0,
|
|
2976
2991
|
inputs: [{
|
|
@@ -2985,7 +3000,7 @@ const Yo = /* @__PURE__ */ b(zo, [["render", Go]]), Xo = {
|
|
|
2985
3000
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2986
3001
|
hideFromUI: !0
|
|
2987
3002
|
}]
|
|
2988
|
-
},
|
|
3003
|
+
}, er = ["text/javascript", "application/javascript", "application/ecmascript"], tr = (e) => er.includes(e.type), nr = f({
|
|
2989
3004
|
name: "builder-embed",
|
|
2990
3005
|
props: ["content"],
|
|
2991
3006
|
data() {
|
|
@@ -3018,7 +3033,7 @@ const Yo = /* @__PURE__ */ b(zo, [["render", Go]]), Xo = {
|
|
|
3018
3033
|
this.scriptsInserted.push(n.src);
|
|
3019
3034
|
const o = document.createElement("script");
|
|
3020
3035
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3021
|
-
} else if (
|
|
3036
|
+
} else if (tr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3022
3037
|
try {
|
|
3023
3038
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3024
3039
|
} catch (o) {
|
|
@@ -3027,15 +3042,15 @@ const Yo = /* @__PURE__ */ b(zo, [["render", Go]]), Xo = {
|
|
|
3027
3042
|
}
|
|
3028
3043
|
}
|
|
3029
3044
|
}
|
|
3030
|
-
}),
|
|
3031
|
-
function
|
|
3045
|
+
}), or = ["innerHTML"];
|
|
3046
|
+
function rr(e, t, n, o, r, i) {
|
|
3032
3047
|
return d(), m("div", {
|
|
3033
3048
|
class: "builder-embed",
|
|
3034
3049
|
ref: "elem",
|
|
3035
3050
|
innerHTML: e.content
|
|
3036
|
-
}, null, 8,
|
|
3051
|
+
}, null, 8, or);
|
|
3037
3052
|
}
|
|
3038
|
-
const
|
|
3053
|
+
const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
|
|
3039
3054
|
name: "Form:Form",
|
|
3040
3055
|
// editableTags: ['builder-form-error']
|
|
3041
3056
|
defaults: {
|
|
@@ -3272,10 +3287,10 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3272
3287
|
builderComponents: !0,
|
|
3273
3288
|
builderLinkComponent: !0
|
|
3274
3289
|
}
|
|
3275
|
-
},
|
|
3290
|
+
}, ar = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], lr = () => {
|
|
3276
3291
|
const e = process.env.NODE_ENV || "production";
|
|
3277
|
-
return
|
|
3278
|
-
},
|
|
3292
|
+
return ar.includes(e) ? e : "production";
|
|
3293
|
+
}, cr = f({
|
|
3279
3294
|
name: "builder-form-component",
|
|
3280
3295
|
components: { Block: be, Blocks: L },
|
|
3281
3296
|
props: [
|
|
@@ -3319,7 +3334,7 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3319
3334
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
3320
3335
|
},
|
|
3321
3336
|
submissionState() {
|
|
3322
|
-
return
|
|
3337
|
+
return E() && this.previewState || this.formState;
|
|
3323
3338
|
},
|
|
3324
3339
|
onSubmit(e) {
|
|
3325
3340
|
var n;
|
|
@@ -3378,7 +3393,7 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3378
3393
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3379
3394
|
return;
|
|
3380
3395
|
this.formState = "sending";
|
|
3381
|
-
const h = `${
|
|
3396
|
+
const h = `${lr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3382
3397
|
this.sendSubmissionsToEmail || ""
|
|
3383
3398
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
3384
3399
|
fetch(
|
|
@@ -3434,11 +3449,11 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3434
3449
|
}
|
|
3435
3450
|
}
|
|
3436
3451
|
}
|
|
3437
|
-
}),
|
|
3452
|
+
}), dr = ["validate", "action", "method", "name"], ur = {
|
|
3438
3453
|
key: 3,
|
|
3439
3454
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3440
3455
|
};
|
|
3441
|
-
function
|
|
3456
|
+
function pr(e, t, n, o, r, i) {
|
|
3442
3457
|
var a;
|
|
3443
3458
|
const s = v("Block"), l = v("Blocks");
|
|
3444
3459
|
return d(), m("form", C({
|
|
@@ -3468,16 +3483,16 @@ function cr(e, t, n, o, r, i) {
|
|
|
3468
3483
|
blocks: e.sendingMessage,
|
|
3469
3484
|
context: e.builderContext
|
|
3470
3485
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3471
|
-
e.submissionState() === "error" && e.responseData ? (d(), m("pre",
|
|
3486
|
+
e.submissionState() === "error" && e.responseData ? (d(), m("pre", ur, ee(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3472
3487
|
e.submissionState() === "success" ? (d(), k(l, {
|
|
3473
3488
|
key: 4,
|
|
3474
3489
|
path: "successMessage",
|
|
3475
3490
|
blocks: e.successMessage,
|
|
3476
3491
|
context: e.builderContext
|
|
3477
3492
|
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
3478
|
-
], 16,
|
|
3493
|
+
], 16, dr);
|
|
3479
3494
|
}
|
|
3480
|
-
const
|
|
3495
|
+
const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b"]]), hr = {
|
|
3481
3496
|
name: "Form:Input",
|
|
3482
3497
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3483
3498
|
inputs: [
|
|
@@ -3528,7 +3543,7 @@ const dr = /* @__PURE__ */ b(sr, [["render", cr], ["__scopeId", "data-v-6e18f21b
|
|
|
3528
3543
|
borderStyle: "solid",
|
|
3529
3544
|
borderColor: "#ccc"
|
|
3530
3545
|
}
|
|
3531
|
-
},
|
|
3546
|
+
}, fr = f({
|
|
3532
3547
|
name: "builder-form-input-component",
|
|
3533
3548
|
props: [
|
|
3534
3549
|
"attributes",
|
|
@@ -3540,10 +3555,10 @@ const dr = /* @__PURE__ */ b(sr, [["render", cr], ["__scopeId", "data-v-6e18f21b
|
|
|
3540
3555
|
"required"
|
|
3541
3556
|
],
|
|
3542
3557
|
data() {
|
|
3543
|
-
return { isEditing:
|
|
3558
|
+
return { isEditing: E, filterAttrs: V };
|
|
3544
3559
|
}
|
|
3545
|
-
}),
|
|
3546
|
-
function
|
|
3560
|
+
}), br = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3561
|
+
function gr(e, t, n, o, r, i) {
|
|
3547
3562
|
return d(), m("input", C({
|
|
3548
3563
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3549
3564
|
placeholder: e.placeholder,
|
|
@@ -3552,9 +3567,9 @@ function hr(e, t, n, o, r, i) {
|
|
|
3552
3567
|
value: e.value,
|
|
3553
3568
|
defaultValue: e.defaultValue,
|
|
3554
3569
|
required: e.required
|
|
3555
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3570
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, br);
|
|
3556
3571
|
}
|
|
3557
|
-
const
|
|
3572
|
+
const yr = /* @__PURE__ */ b(fr, [["render", gr]]), kr = {
|
|
3558
3573
|
name: "Form:Select",
|
|
3559
3574
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3560
3575
|
defaultStyles: {
|
|
@@ -3596,14 +3611,14 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), br = {
|
|
|
3596
3611
|
}],
|
|
3597
3612
|
static: !0,
|
|
3598
3613
|
noWrap: !0
|
|
3599
|
-
},
|
|
3614
|
+
}, vr = f({
|
|
3600
3615
|
name: "builder-select-component",
|
|
3601
3616
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3602
3617
|
data() {
|
|
3603
|
-
return { isEditing:
|
|
3618
|
+
return { isEditing: E, filterAttrs: V };
|
|
3604
3619
|
}
|
|
3605
|
-
}),
|
|
3606
|
-
function
|
|
3620
|
+
}), Sr = ["value", "defaultValue", "name", "required"], Cr = ["value"];
|
|
3621
|
+
function wr(e, t, n, o, r, i) {
|
|
3607
3622
|
return d(), m("select", C({
|
|
3608
3623
|
value: e.value,
|
|
3609
3624
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -3614,10 +3629,10 @@ function vr(e, t, n, o, r, i) {
|
|
|
3614
3629
|
(d(!0), m(w, null, A(e.options, (s, l) => (d(), m("option", {
|
|
3615
3630
|
key: `${s.name}-${l}`,
|
|
3616
3631
|
value: s.value
|
|
3617
|
-
}, ee(s.name || s.value), 9,
|
|
3618
|
-
], 16,
|
|
3632
|
+
}, ee(s.name || s.value), 9, Cr))), 128))
|
|
3633
|
+
], 16, Sr);
|
|
3619
3634
|
}
|
|
3620
|
-
const
|
|
3635
|
+
const Tr = /* @__PURE__ */ b(vr, [["render", wr]]), Ir = {
|
|
3621
3636
|
name: "Form:SubmitButton",
|
|
3622
3637
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3623
3638
|
defaultStyles: {
|
|
@@ -3642,17 +3657,17 @@ const Sr = /* @__PURE__ */ b(gr, [["render", vr]]), Cr = {
|
|
|
3642
3657
|
// that only shows if advanced setting is flipped
|
|
3643
3658
|
// TODO: defaultChildren
|
|
3644
3659
|
// canHaveChildren: true,
|
|
3645
|
-
},
|
|
3660
|
+
}, $r = f({
|
|
3646
3661
|
name: "builder-submit-button",
|
|
3647
3662
|
props: ["attributes", "text"],
|
|
3648
3663
|
data() {
|
|
3649
3664
|
return { filterAttrs: V };
|
|
3650
3665
|
}
|
|
3651
3666
|
});
|
|
3652
|
-
function
|
|
3667
|
+
function Rr(e, t, n, o, r, i) {
|
|
3653
3668
|
return d(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
|
|
3654
3669
|
}
|
|
3655
|
-
const
|
|
3670
|
+
const Er = /* @__PURE__ */ b($r, [["render", Rr]]), Pr = {
|
|
3656
3671
|
name: "Form:TextArea",
|
|
3657
3672
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3658
3673
|
inputs: [{
|
|
@@ -3688,7 +3703,7 @@ const Ir = /* @__PURE__ */ b(wr, [["render", Tr]]), $r = {
|
|
|
3688
3703
|
},
|
|
3689
3704
|
static: !0,
|
|
3690
3705
|
noWrap: !0
|
|
3691
|
-
},
|
|
3706
|
+
}, Br = f({
|
|
3692
3707
|
name: "builder-textarea",
|
|
3693
3708
|
props: [
|
|
3694
3709
|
"attributes",
|
|
@@ -3701,17 +3716,17 @@ const Ir = /* @__PURE__ */ b(wr, [["render", Tr]]), $r = {
|
|
|
3701
3716
|
data() {
|
|
3702
3717
|
return { filterAttrs: V };
|
|
3703
3718
|
}
|
|
3704
|
-
}),
|
|
3705
|
-
function
|
|
3719
|
+
}), xr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3720
|
+
function Ar(e, t, n, o, r, i) {
|
|
3706
3721
|
return d(), m("textarea", C({
|
|
3707
3722
|
placeholder: e.placeholder,
|
|
3708
3723
|
name: e.name,
|
|
3709
3724
|
value: e.value,
|
|
3710
3725
|
defaultValue: e.defaultValue,
|
|
3711
3726
|
required: e.required
|
|
3712
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3727
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, xr);
|
|
3713
3728
|
}
|
|
3714
|
-
const
|
|
3729
|
+
const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
|
|
3715
3730
|
// friendlyName?
|
|
3716
3731
|
name: "Raw:Img",
|
|
3717
3732
|
hideFromInsertMenu: !0,
|
|
@@ -3725,7 +3740,7 @@ const Br = /* @__PURE__ */ b(Rr, [["render", Pr]]), xr = {
|
|
|
3725
3740
|
}],
|
|
3726
3741
|
noWrap: !0,
|
|
3727
3742
|
static: !0
|
|
3728
|
-
},
|
|
3743
|
+
}, Nr = f({
|
|
3729
3744
|
name: "builder-img-component",
|
|
3730
3745
|
props: [
|
|
3731
3746
|
"backgroundSize",
|
|
@@ -3736,10 +3751,10 @@ const Br = /* @__PURE__ */ b(Rr, [["render", Pr]]), xr = {
|
|
|
3736
3751
|
"attributes"
|
|
3737
3752
|
],
|
|
3738
3753
|
data() {
|
|
3739
|
-
return { isEditing:
|
|
3754
|
+
return { isEditing: E, filterAttrs: V };
|
|
3740
3755
|
}
|
|
3741
|
-
}),
|
|
3742
|
-
function
|
|
3756
|
+
}), Or = ["alt", "src"];
|
|
3757
|
+
function Fr(e, t, n, o, r, i) {
|
|
3743
3758
|
return d(), m("img", C({
|
|
3744
3759
|
style: {
|
|
3745
3760
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -3748,9 +3763,9 @@ function Wr(e, t, n, o, r, i) {
|
|
|
3748
3763
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3749
3764
|
alt: e.altText,
|
|
3750
3765
|
src: e.imgSrc || e.image
|
|
3751
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3766
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Or);
|
|
3752
3767
|
}
|
|
3753
|
-
const
|
|
3768
|
+
const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
|
|
3754
3769
|
name: "Video",
|
|
3755
3770
|
canHaveChildren: !0,
|
|
3756
3771
|
defaultStyles: {
|
|
@@ -3834,7 +3849,7 @@ const Nr = /* @__PURE__ */ b(Ar, [["render", Wr]]), Or = {
|
|
|
3834
3849
|
shouldReceiveBuilderProps: {
|
|
3835
3850
|
builderBlock: !0
|
|
3836
3851
|
}
|
|
3837
|
-
},
|
|
3852
|
+
}, Ur = f({
|
|
3838
3853
|
name: "builder-video",
|
|
3839
3854
|
props: [
|
|
3840
3855
|
"autoPlay",
|
|
@@ -3879,16 +3894,16 @@ const Nr = /* @__PURE__ */ b(Ar, [["render", Wr]]), Or = {
|
|
|
3879
3894
|
};
|
|
3880
3895
|
}
|
|
3881
3896
|
}
|
|
3882
|
-
}),
|
|
3897
|
+
}), Mr = { style: {
|
|
3883
3898
|
position: "relative"
|
|
3884
|
-
} },
|
|
3899
|
+
} }, Hr = ["preload", "src", "poster"], jr = ["src"], Kr = {
|
|
3885
3900
|
key: 1,
|
|
3886
3901
|
style: {
|
|
3887
3902
|
display: "flex",
|
|
3888
3903
|
flexDirection: "column",
|
|
3889
3904
|
alignItems: "stretch"
|
|
3890
3905
|
}
|
|
3891
|
-
},
|
|
3906
|
+
}, qr = {
|
|
3892
3907
|
key: 2,
|
|
3893
3908
|
style: {
|
|
3894
3909
|
pointerEvents: "none",
|
|
@@ -3902,9 +3917,9 @@ const Nr = /* @__PURE__ */ b(Ar, [["render", Wr]]), Or = {
|
|
|
3902
3917
|
height: "100%"
|
|
3903
3918
|
}
|
|
3904
3919
|
};
|
|
3905
|
-
function
|
|
3920
|
+
function zr(e, t, n, o, r, i) {
|
|
3906
3921
|
var s, l, a, u, h, c, p;
|
|
3907
|
-
return d(), m("div",
|
|
3922
|
+
return d(), m("div", Mr, [
|
|
3908
3923
|
K("video", C({
|
|
3909
3924
|
class: "builder-video",
|
|
3910
3925
|
preload: e.preload || "metadata",
|
|
@@ -3929,8 +3944,8 @@ function Hr(e, t, n, o, r, i) {
|
|
|
3929
3944
|
key: 0,
|
|
3930
3945
|
type: "video/mp4",
|
|
3931
3946
|
src: e.video
|
|
3932
|
-
}, null, 8,
|
|
3933
|
-
], 16,
|
|
3947
|
+
}, null, 8, jr))
|
|
3948
|
+
], 16, Hr),
|
|
3934
3949
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), m("div", {
|
|
3935
3950
|
key: 0,
|
|
3936
3951
|
style: F({
|
|
@@ -3940,72 +3955,72 @@ function Hr(e, t, n, o, r, i) {
|
|
|
3940
3955
|
fontSize: "0px"
|
|
3941
3956
|
})
|
|
3942
3957
|
}, null, 4)) : S("", !0),
|
|
3943
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div",
|
|
3958
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div", Kr, [
|
|
3944
3959
|
x(e.$slots, "default")
|
|
3945
3960
|
])) : S("", !0),
|
|
3946
|
-
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div",
|
|
3961
|
+
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div", qr, [
|
|
3947
3962
|
x(e.$slots, "default")
|
|
3948
3963
|
])) : S("", !0)
|
|
3949
3964
|
]);
|
|
3950
3965
|
}
|
|
3951
|
-
const
|
|
3952
|
-
component:
|
|
3953
|
-
...
|
|
3966
|
+
const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
|
|
3967
|
+
component: Zo,
|
|
3968
|
+
...Go
|
|
3954
3969
|
}, {
|
|
3955
|
-
component:
|
|
3956
|
-
...
|
|
3970
|
+
component: ir,
|
|
3971
|
+
..._o
|
|
3957
3972
|
}, {
|
|
3958
|
-
component:
|
|
3959
|
-
...
|
|
3973
|
+
component: mr,
|
|
3974
|
+
...sr
|
|
3960
3975
|
}, {
|
|
3961
|
-
component:
|
|
3962
|
-
...
|
|
3976
|
+
component: yr,
|
|
3977
|
+
...hr
|
|
3963
3978
|
}, {
|
|
3964
|
-
component:
|
|
3965
|
-
...
|
|
3979
|
+
component: Er,
|
|
3980
|
+
...Ir
|
|
3966
3981
|
}, {
|
|
3967
|
-
component:
|
|
3968
|
-
...
|
|
3982
|
+
component: Tr,
|
|
3983
|
+
...kr
|
|
3969
3984
|
}, {
|
|
3970
|
-
component:
|
|
3971
|
-
|
|
3985
|
+
component: Vr,
|
|
3986
|
+
...Pr
|
|
3972
3987
|
}, {
|
|
3973
|
-
component:
|
|
3974
|
-
...
|
|
3988
|
+
component: Dr,
|
|
3989
|
+
...Wr
|
|
3975
3990
|
}, {
|
|
3976
|
-
component:
|
|
3977
|
-
...
|
|
3991
|
+
component: Jr,
|
|
3992
|
+
...Lr
|
|
3978
3993
|
}], $e = () => [{
|
|
3979
|
-
component:
|
|
3980
|
-
...
|
|
3981
|
-
}, {
|
|
3982
|
-
component: no,
|
|
3983
|
-
...Io
|
|
3994
|
+
component: St,
|
|
3995
|
+
...Ro
|
|
3984
3996
|
}, {
|
|
3985
3997
|
component: io,
|
|
3986
|
-
|
|
3998
|
+
...Eo
|
|
3987
3999
|
}, {
|
|
3988
|
-
component:
|
|
3989
|
-
...
|
|
4000
|
+
component: lo,
|
|
4001
|
+
...Po
|
|
3990
4002
|
}, {
|
|
3991
4003
|
component: go,
|
|
3992
|
-
...
|
|
4004
|
+
...Bo
|
|
3993
4005
|
}, {
|
|
3994
|
-
component:
|
|
3995
|
-
...
|
|
4006
|
+
component: vo,
|
|
4007
|
+
...xo
|
|
4008
|
+
}, {
|
|
4009
|
+
component: No,
|
|
4010
|
+
...Ao
|
|
3996
4011
|
}, {
|
|
3997
|
-
component:
|
|
3998
|
-
...
|
|
4012
|
+
component: Pi,
|
|
4013
|
+
...Oo
|
|
3999
4014
|
}, {
|
|
4000
|
-
component:
|
|
4001
|
-
...
|
|
4015
|
+
component: Jo,
|
|
4016
|
+
...jo
|
|
4002
4017
|
}, {
|
|
4003
|
-
component:
|
|
4004
|
-
...
|
|
4018
|
+
component: Ho,
|
|
4019
|
+
...Fo
|
|
4005
4020
|
}, {
|
|
4006
|
-
component:
|
|
4007
|
-
...
|
|
4008
|
-
}, ...
|
|
4021
|
+
component: $o,
|
|
4022
|
+
...So
|
|
4023
|
+
}, ...Gr()], Yr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4009
4024
|
function getAndSetVariantId() {
|
|
4010
4025
|
function setCookie(name, value, days) {
|
|
4011
4026
|
let expires = '';
|
|
@@ -4061,7 +4076,7 @@ const Kr = /* @__PURE__ */ b(Fr, [["render", Hr]]), qr = () => [{
|
|
|
4061
4076
|
}).join('');
|
|
4062
4077
|
styleEl.innerHTML = newStyleStr;
|
|
4063
4078
|
}
|
|
4064
|
-
}`,
|
|
4079
|
+
}`, Xr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4065
4080
|
if (!navigator.cookieEnabled) {
|
|
4066
4081
|
return;
|
|
4067
4082
|
}
|
|
@@ -4095,25 +4110,25 @@ const Kr = /* @__PURE__ */ b(Fr, [["render", Hr]]), qr = () => [{
|
|
|
4095
4110
|
thisScriptEl?.remove();
|
|
4096
4111
|
}
|
|
4097
4112
|
return;
|
|
4098
|
-
}`,
|
|
4113
|
+
}`, st = "builderIoAbTest", at = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4099
4114
|
...t,
|
|
4100
4115
|
testVariationId: t.id,
|
|
4101
4116
|
id: e == null ? void 0 : e.id
|
|
4102
|
-
})),
|
|
4117
|
+
})), Qr = ({
|
|
4103
4118
|
canTrack: e,
|
|
4104
4119
|
content: t
|
|
4105
|
-
}) => !(!(Q(t).length > 0) || !e),
|
|
4106
|
-
window.${
|
|
4107
|
-
window.${
|
|
4108
|
-
`,
|
|
4109
|
-
window.${
|
|
4110
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4111
|
-
)`,
|
|
4120
|
+
}) => !(!(Q(t).length > 0) || !e), Zr = (e) => e === "react" || e === "reactNative", lt = Zr(R), _r = () => `
|
|
4121
|
+
window.${st} = ${Yr}
|
|
4122
|
+
window.${at} = ${Xr}
|
|
4123
|
+
`, ei = (e, t) => `
|
|
4124
|
+
window.${st}(
|
|
4125
|
+
"${t}",${JSON.stringify(e)}, ${lt}
|
|
4126
|
+
)`, ti = ({
|
|
4112
4127
|
contentId: e,
|
|
4113
4128
|
variationId: t
|
|
4114
|
-
}) => `window.${
|
|
4115
|
-
"${t}", "${e}", ${
|
|
4116
|
-
)`,
|
|
4129
|
+
}) => `window.${at}(
|
|
4130
|
+
"${t}", "${e}", ${lt}
|
|
4131
|
+
)`, ct = f({
|
|
4117
4132
|
render() {
|
|
4118
4133
|
return Pe("script", {
|
|
4119
4134
|
innerHTML: this.scriptStr,
|
|
@@ -4127,7 +4142,7 @@ const Kr = /* @__PURE__ */ b(Fr, [["render", Hr]]), qr = () => [{
|
|
|
4127
4142
|
function Re(e) {
|
|
4128
4143
|
return Math.round(e * 1e3) / 1e3;
|
|
4129
4144
|
}
|
|
4130
|
-
const
|
|
4145
|
+
const ni = (e, t, n = !0) => {
|
|
4131
4146
|
if (!(e instanceof HTMLElement))
|
|
4132
4147
|
return null;
|
|
4133
4148
|
let o = n ? e : e.parentElement;
|
|
@@ -4138,7 +4153,7 @@ const _r = (e, t, n = !0) => {
|
|
|
4138
4153
|
return o;
|
|
4139
4154
|
} while (o = o.parentElement);
|
|
4140
4155
|
return null;
|
|
4141
|
-
},
|
|
4156
|
+
}, oi = (e) => ni(e, (t) => {
|
|
4142
4157
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4143
4158
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4144
4159
|
}), Ee = ({
|
|
@@ -4150,8 +4165,8 @@ const _r = (e, t, n = !0) => {
|
|
|
4150
4165
|
x: i,
|
|
4151
4166
|
y: s
|
|
4152
4167
|
};
|
|
4153
|
-
},
|
|
4154
|
-
const t = e.target, n = t &&
|
|
4168
|
+
}, ri = (e) => {
|
|
4169
|
+
const t = e.target, n = t && oi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4155
4170
|
return {
|
|
4156
4171
|
targetBuilderElement: o || void 0,
|
|
4157
4172
|
metadata: {
|
|
@@ -4166,7 +4181,7 @@ const _r = (e, t, n = !0) => {
|
|
|
4166
4181
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4167
4182
|
}
|
|
4168
4183
|
};
|
|
4169
|
-
},
|
|
4184
|
+
}, ii = (e) => {
|
|
4170
4185
|
var i;
|
|
4171
4186
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4172
4187
|
let r = "";
|
|
@@ -4192,15 +4207,15 @@ font-weight: ${s};
|
|
|
4192
4207
|
`.trim());
|
|
4193
4208
|
}
|
|
4194
4209
|
return r;
|
|
4195
|
-
},
|
|
4210
|
+
}, si = ({
|
|
4196
4211
|
customFonts: e
|
|
4197
4212
|
}) => {
|
|
4198
4213
|
var t;
|
|
4199
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4200
|
-
},
|
|
4214
|
+
return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4215
|
+
}, ai = ({
|
|
4201
4216
|
cssCode: e,
|
|
4202
4217
|
contentId: t
|
|
4203
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4218
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", li = `
|
|
4204
4219
|
.builder-button {
|
|
4205
4220
|
all: unset;
|
|
4206
4221
|
}
|
|
@@ -4217,13 +4232,15 @@ font-weight: ${s};
|
|
|
4217
4232
|
text-align: inherit;
|
|
4218
4233
|
font-family: inherit;
|
|
4219
4234
|
}
|
|
4220
|
-
`,
|
|
4235
|
+
`, ci = (e) => e ? "" : li, di = (e) => `variant-${e}`, ui = f({
|
|
4221
4236
|
name: "enable-editor",
|
|
4222
4237
|
components: { DynamicDiv: G },
|
|
4223
4238
|
props: [
|
|
4239
|
+
"isNestedRender",
|
|
4224
4240
|
"builderContextSignal",
|
|
4225
4241
|
"canTrack",
|
|
4226
4242
|
"apiKey",
|
|
4243
|
+
"apiHost",
|
|
4227
4244
|
"locale",
|
|
4228
4245
|
"enrich",
|
|
4229
4246
|
"trustedHosts",
|
|
@@ -4242,7 +4259,7 @@ font-weight: ${s};
|
|
|
4242
4259
|
httpReqsPending: {},
|
|
4243
4260
|
clicked: !1,
|
|
4244
4261
|
builderContext: se,
|
|
4245
|
-
getWrapperClassName:
|
|
4262
|
+
getWrapperClassName: di
|
|
4246
4263
|
};
|
|
4247
4264
|
},
|
|
4248
4265
|
provide() {
|
|
@@ -4257,11 +4274,12 @@ font-weight: ${s};
|
|
|
4257
4274
|
mounted() {
|
|
4258
4275
|
var e, t;
|
|
4259
4276
|
if (I()) {
|
|
4260
|
-
if (
|
|
4277
|
+
if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4261
4278
|
new CustomEvent("initeditingbldr")
|
|
4262
4279
|
), this.builderContextSignal.content && z(this.canTrack)) {
|
|
4263
4280
|
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
|
|
4264
4281
|
le({
|
|
4282
|
+
apiHost: this.apiHost,
|
|
4265
4283
|
type: "impression",
|
|
4266
4284
|
canTrack: !0,
|
|
4267
4285
|
contentId: r,
|
|
@@ -4269,7 +4287,7 @@ font-weight: ${s};
|
|
|
4269
4287
|
variationId: o !== r ? o : void 0
|
|
4270
4288
|
});
|
|
4271
4289
|
}
|
|
4272
|
-
|
|
4290
|
+
jt() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4273
4291
|
new CustomEvent("initpreviewingbldr")
|
|
4274
4292
|
);
|
|
4275
4293
|
}
|
|
@@ -4363,7 +4381,7 @@ font-weight: ${s};
|
|
|
4363
4381
|
this.builderContextSignal.content = t;
|
|
4364
4382
|
},
|
|
4365
4383
|
processMessage(e) {
|
|
4366
|
-
return
|
|
4384
|
+
return Ye({
|
|
4367
4385
|
model: this.model,
|
|
4368
4386
|
trustedHosts: this.trustedHosts,
|
|
4369
4387
|
callbacks: {
|
|
@@ -4377,7 +4395,7 @@ font-weight: ${s};
|
|
|
4377
4395
|
});
|
|
4378
4396
|
},
|
|
4379
4397
|
animation: (t) => {
|
|
4380
|
-
|
|
4398
|
+
nt(t);
|
|
4381
4399
|
},
|
|
4382
4400
|
contentUpdate: (t) => {
|
|
4383
4401
|
this.mergeNewContent(t);
|
|
@@ -4390,12 +4408,13 @@ font-weight: ${s};
|
|
|
4390
4408
|
if (this.builderContextSignal.content) {
|
|
4391
4409
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4392
4410
|
le({
|
|
4411
|
+
apiHost: this.apiHost,
|
|
4393
4412
|
type: "click",
|
|
4394
4413
|
canTrack: z(this.canTrack),
|
|
4395
4414
|
contentId: r,
|
|
4396
4415
|
apiKey: this.apiKey,
|
|
4397
4416
|
variationId: o !== r ? o : void 0,
|
|
4398
|
-
...
|
|
4417
|
+
...ri(e),
|
|
4399
4418
|
unique: !this.clicked
|
|
4400
4419
|
});
|
|
4401
4420
|
}
|
|
@@ -4405,7 +4424,7 @@ font-weight: ${s};
|
|
|
4405
4424
|
var t, n;
|
|
4406
4425
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
4407
4426
|
Object.entries(e).forEach(([o, r]) => {
|
|
4408
|
-
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
4427
|
+
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
|
|
4409
4428
|
return;
|
|
4410
4429
|
this.httpReqsPending[o] = !0;
|
|
4411
4430
|
const i = r.replace(
|
|
@@ -4432,7 +4451,7 @@ font-weight: ${s};
|
|
|
4432
4451
|
});
|
|
4433
4452
|
},
|
|
4434
4453
|
emitStateUpdate() {
|
|
4435
|
-
|
|
4454
|
+
E() && window.dispatchEvent(
|
|
4436
4455
|
new CustomEvent(
|
|
4437
4456
|
"builder:component:stateChange",
|
|
4438
4457
|
{
|
|
@@ -4447,7 +4466,7 @@ font-weight: ${s};
|
|
|
4447
4466
|
);
|
|
4448
4467
|
},
|
|
4449
4468
|
elementRef_onIniteditingbldr(e) {
|
|
4450
|
-
window.addEventListener("message", this.processMessage),
|
|
4469
|
+
window.addEventListener("message", this.processMessage), pn(), Ge({
|
|
4451
4470
|
...this.locale ? {
|
|
4452
4471
|
locale: this.locale
|
|
4453
4472
|
} : {},
|
|
@@ -4461,7 +4480,7 @@ font-weight: ${s};
|
|
|
4461
4480
|
this.builderContextSignal.componentInfos
|
|
4462
4481
|
).forEach((t) => {
|
|
4463
4482
|
var o;
|
|
4464
|
-
const n =
|
|
4483
|
+
const n = Kt(t);
|
|
4465
4484
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4466
4485
|
}), window.addEventListener(
|
|
4467
4486
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4482,9 +4501,9 @@ font-weight: ${s};
|
|
|
4482
4501
|
}
|
|
4483
4502
|
}
|
|
4484
4503
|
});
|
|
4485
|
-
function
|
|
4504
|
+
function pi(e, t, n, o, r, i) {
|
|
4486
4505
|
var s, l, a;
|
|
4487
|
-
return e.builderContextSignal.content ? (d(), k(
|
|
4506
|
+
return e.builderContextSignal.content ? (d(), k(H(e.ContentWrapper), C({
|
|
4488
4507
|
key: 0,
|
|
4489
4508
|
ref: "elementRef",
|
|
4490
4509
|
onClick: (u) => e.onClick(u),
|
|
@@ -4500,26 +4519,26 @@ function ci(e, t, n, o, r, i) {
|
|
|
4500
4519
|
_: 3
|
|
4501
4520
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4502
4521
|
}
|
|
4503
|
-
const
|
|
4522
|
+
const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = f({
|
|
4504
4523
|
name: "content-styles",
|
|
4505
4524
|
components: { InlinedStyles: ge },
|
|
4506
4525
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4507
4526
|
data() {
|
|
4508
4527
|
return {
|
|
4509
4528
|
injectedStyles: `
|
|
4510
|
-
${
|
|
4529
|
+
${ai({
|
|
4511
4530
|
cssCode: this.cssCode,
|
|
4512
4531
|
contentId: this.contentId
|
|
4513
4532
|
})}
|
|
4514
|
-
${
|
|
4533
|
+
${si({
|
|
4515
4534
|
customFonts: this.customFonts
|
|
4516
4535
|
})}
|
|
4517
|
-
${
|
|
4536
|
+
${ci(this.isNestedRender)}
|
|
4518
4537
|
`.trim()
|
|
4519
4538
|
};
|
|
4520
4539
|
}
|
|
4521
4540
|
});
|
|
4522
|
-
function
|
|
4541
|
+
function fi(e, t, n, o, r, i) {
|
|
4523
4542
|
const s = v("InlinedStyles");
|
|
4524
4543
|
return d(), k(s, {
|
|
4525
4544
|
id: "builderio-content",
|
|
@@ -4527,7 +4546,7 @@ function pi(e, t, n, o, r, i) {
|
|
|
4527
4546
|
nonce: e.nonce
|
|
4528
4547
|
}, null, 8, ["styles", "nonce"]);
|
|
4529
4548
|
}
|
|
4530
|
-
const
|
|
4549
|
+
const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
4531
4550
|
content: e,
|
|
4532
4551
|
data: t,
|
|
4533
4552
|
locale: n
|
|
@@ -4544,7 +4563,7 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4544
4563
|
locale: n
|
|
4545
4564
|
} : {}
|
|
4546
4565
|
};
|
|
4547
|
-
},
|
|
4566
|
+
}, yi = ({
|
|
4548
4567
|
content: e,
|
|
4549
4568
|
data: t
|
|
4550
4569
|
}) => e ? {
|
|
@@ -4554,12 +4573,12 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4554
4573
|
...t
|
|
4555
4574
|
},
|
|
4556
4575
|
meta: e == null ? void 0 : e.meta
|
|
4557
|
-
} : void 0,
|
|
4576
|
+
} : void 0, ki = ht, vi = f({
|
|
4558
4577
|
name: "content-component",
|
|
4559
4578
|
components: {
|
|
4560
|
-
EnableEditor:
|
|
4561
|
-
InlinedScript:
|
|
4562
|
-
ContentStyles:
|
|
4579
|
+
EnableEditor: mi,
|
|
4580
|
+
InlinedScript: ct,
|
|
4581
|
+
ContentStyles: bi,
|
|
4563
4582
|
Blocks: L,
|
|
4564
4583
|
DynamicDiv: G
|
|
4565
4584
|
},
|
|
@@ -4576,19 +4595,20 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4576
4595
|
"blocksWrapper",
|
|
4577
4596
|
"blocksWrapperProps",
|
|
4578
4597
|
"nonce",
|
|
4598
|
+
"apiHost",
|
|
4579
4599
|
"enrich",
|
|
4580
4600
|
"showContent",
|
|
4581
4601
|
"contentWrapper",
|
|
4582
4602
|
"contentWrapperProps",
|
|
4583
4603
|
"trustedHosts",
|
|
4584
|
-
"isSsrAbTest",
|
|
4585
4604
|
"isNestedRender",
|
|
4605
|
+
"isSsrAbTest",
|
|
4586
4606
|
"linkComponent"
|
|
4587
4607
|
],
|
|
4588
4608
|
data() {
|
|
4589
4609
|
var e, t, n, o;
|
|
4590
4610
|
return {
|
|
4591
|
-
scriptStr:
|
|
4611
|
+
scriptStr: ti({
|
|
4592
4612
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4593
4613
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4594
4614
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4601,19 +4621,19 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4601
4621
|
(r, { component: i, ...s }) => ({
|
|
4602
4622
|
...r,
|
|
4603
4623
|
[s.name]: {
|
|
4604
|
-
component:
|
|
4624
|
+
component: ki(i),
|
|
4605
4625
|
..._(s)
|
|
4606
4626
|
}
|
|
4607
4627
|
}),
|
|
4608
4628
|
{}
|
|
4609
4629
|
),
|
|
4610
4630
|
builderContextSignal: {
|
|
4611
|
-
content:
|
|
4631
|
+
content: yi({
|
|
4612
4632
|
content: this.content,
|
|
4613
4633
|
data: this.data
|
|
4614
4634
|
}),
|
|
4615
4635
|
localState: void 0,
|
|
4616
|
-
rootState:
|
|
4636
|
+
rootState: gi({
|
|
4617
4637
|
content: this.content,
|
|
4618
4638
|
data: this.data,
|
|
4619
4639
|
locale: this.locale
|
|
@@ -4638,7 +4658,7 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4638
4658
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4639
4659
|
nonce: this.nonce || ""
|
|
4640
4660
|
},
|
|
4641
|
-
TARGET:
|
|
4661
|
+
TARGET: R
|
|
4642
4662
|
};
|
|
4643
4663
|
},
|
|
4644
4664
|
provide() {
|
|
@@ -4651,7 +4671,7 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4651
4671
|
},
|
|
4652
4672
|
created() {
|
|
4653
4673
|
var t, n;
|
|
4654
|
-
this.apiKey ||
|
|
4674
|
+
this.apiKey || P.error(
|
|
4655
4675
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4656
4676
|
);
|
|
4657
4677
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -4672,9 +4692,10 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4672
4692
|
}
|
|
4673
4693
|
}
|
|
4674
4694
|
});
|
|
4675
|
-
function
|
|
4695
|
+
function Si(e, t, n, o, r, i) {
|
|
4676
4696
|
const s = v("InlinedScript"), l = v("ContentStyles"), a = v("Blocks"), u = v("EnableEditor");
|
|
4677
4697
|
return d(), k(u, C({
|
|
4698
|
+
apiHost: e.apiHost,
|
|
4678
4699
|
nonce: e.nonce,
|
|
4679
4700
|
content: e.content,
|
|
4680
4701
|
data: e.data,
|
|
@@ -4688,7 +4709,8 @@ function yi(e, t, n, o, r, i) {
|
|
|
4688
4709
|
builderContextSignal: e.builderContextSignal,
|
|
4689
4710
|
contentWrapper: e.contentWrapper,
|
|
4690
4711
|
contentWrapperProps: e.contentWrapperProps,
|
|
4691
|
-
trustedHosts: e.trustedHosts
|
|
4712
|
+
trustedHosts: e.trustedHosts,
|
|
4713
|
+
isNestedRender: e.isNestedRender
|
|
4692
4714
|
}, {}), {
|
|
4693
4715
|
default: W(() => {
|
|
4694
4716
|
var h, c, p, y, g, N, Y;
|
|
@@ -4716,20 +4738,21 @@ function yi(e, t, n, o, r, i) {
|
|
|
4716
4738
|
];
|
|
4717
4739
|
}),
|
|
4718
4740
|
_: 1
|
|
4719
|
-
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
4741
|
+
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4720
4742
|
}
|
|
4721
|
-
const
|
|
4743
|
+
const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
|
|
4722
4744
|
name: "content-variants",
|
|
4723
4745
|
components: {
|
|
4724
|
-
InlinedScript:
|
|
4746
|
+
InlinedScript: ct,
|
|
4725
4747
|
InlinedStyles: ge,
|
|
4726
|
-
ContentComponent:
|
|
4748
|
+
ContentComponent: Ci
|
|
4727
4749
|
},
|
|
4728
4750
|
props: [
|
|
4729
4751
|
"canTrack",
|
|
4730
4752
|
"content",
|
|
4731
4753
|
"isNestedRender",
|
|
4732
4754
|
"nonce",
|
|
4755
|
+
"apiHost",
|
|
4733
4756
|
"model",
|
|
4734
4757
|
"data",
|
|
4735
4758
|
"context",
|
|
@@ -4747,12 +4770,12 @@ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
|
|
|
4747
4770
|
],
|
|
4748
4771
|
data() {
|
|
4749
4772
|
return {
|
|
4750
|
-
shouldRenderVariants:
|
|
4773
|
+
shouldRenderVariants: Qr({
|
|
4751
4774
|
canTrack: z(this.canTrack),
|
|
4752
4775
|
content: this.content
|
|
4753
4776
|
}),
|
|
4754
|
-
TARGET:
|
|
4755
|
-
getInitVariantsFnsScriptString:
|
|
4777
|
+
TARGET: R,
|
|
4778
|
+
getInitVariantsFnsScriptString: _r,
|
|
4756
4779
|
getVariants: Q
|
|
4757
4780
|
};
|
|
4758
4781
|
},
|
|
@@ -4761,7 +4784,7 @@ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
|
|
|
4761
4784
|
computed: {
|
|
4762
4785
|
updateCookieAndStylesScriptStr() {
|
|
4763
4786
|
var e;
|
|
4764
|
-
return
|
|
4787
|
+
return ei(
|
|
4765
4788
|
Q(this.content).map((t) => ({
|
|
4766
4789
|
id: t.testVariationId,
|
|
4767
4790
|
testRatio: t.testRatio
|
|
@@ -4777,14 +4800,14 @@ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
|
|
|
4777
4800
|
return this.shouldRenderVariants ? {
|
|
4778
4801
|
...this.content,
|
|
4779
4802
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4780
|
-
} :
|
|
4803
|
+
} : yn({
|
|
4781
4804
|
item: this.content,
|
|
4782
4805
|
canTrack: z(this.canTrack)
|
|
4783
4806
|
});
|
|
4784
4807
|
}
|
|
4785
4808
|
}
|
|
4786
4809
|
});
|
|
4787
|
-
function
|
|
4810
|
+
function Ti(e, t, n, o, r, i) {
|
|
4788
4811
|
const s = v("InlinedScript"), l = v("InlinedStyles"), a = v("ContentComponent");
|
|
4789
4812
|
return d(), m(w, null, [
|
|
4790
4813
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
@@ -4806,6 +4829,7 @@ function Si(e, t, n, o, r, i) {
|
|
|
4806
4829
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4807
4830
|
(d(!0), m(w, null, A(e.getVariants(e.content), (u, h) => (d(), k(a, C({
|
|
4808
4831
|
key: u.testVariationId,
|
|
4832
|
+
apiHost: e.apiHost,
|
|
4809
4833
|
isNestedRender: e.isNestedRender,
|
|
4810
4834
|
nonce: e.nonce,
|
|
4811
4835
|
content: u,
|
|
@@ -4826,9 +4850,10 @@ function Si(e, t, n, o, r, i) {
|
|
|
4826
4850
|
contentWrapper: e.contentWrapper,
|
|
4827
4851
|
contentWrapperProps: e.contentWrapperProps,
|
|
4828
4852
|
trustedHosts: e.trustedHosts
|
|
4829
|
-
}, {}), null, 16, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4853
|
+
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4830
4854
|
], 64)) : S("", !0),
|
|
4831
4855
|
$(a, C({
|
|
4856
|
+
apiHost: e.apiHost,
|
|
4832
4857
|
nonce: e.nonce,
|
|
4833
4858
|
isNestedRender: e.isNestedRender,
|
|
4834
4859
|
content: e.defaultContent,
|
|
@@ -4851,10 +4876,10 @@ function Si(e, t, n, o, r, i) {
|
|
|
4851
4876
|
trustedHosts: e.trustedHosts
|
|
4852
4877
|
}, {
|
|
4853
4878
|
key: e.shouldRenderVariants.toString()
|
|
4854
|
-
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4879
|
+
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4855
4880
|
], 64);
|
|
4856
4881
|
}
|
|
4857
|
-
const
|
|
4882
|
+
const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
4858
4883
|
builderContextValue: e,
|
|
4859
4884
|
symbol: t
|
|
4860
4885
|
}) => {
|
|
@@ -4870,11 +4895,11 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = async ({
|
|
|
4870
4895
|
}
|
|
4871
4896
|
}
|
|
4872
4897
|
}).catch((n) => {
|
|
4873
|
-
|
|
4898
|
+
P.error("Could not fetch symbol content: ", n);
|
|
4874
4899
|
});
|
|
4875
|
-
},
|
|
4900
|
+
}, Ri = f({
|
|
4876
4901
|
name: "builder-symbol",
|
|
4877
|
-
components: { ContentVariants:
|
|
4902
|
+
components: { ContentVariants: Ii, DynamicDiv: G },
|
|
4878
4903
|
props: [
|
|
4879
4904
|
"symbol",
|
|
4880
4905
|
"attributes",
|
|
@@ -4923,7 +4948,7 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = async ({
|
|
|
4923
4948
|
},
|
|
4924
4949
|
methods: {
|
|
4925
4950
|
setContent() {
|
|
4926
|
-
this.contentToUse ||
|
|
4951
|
+
this.contentToUse || $i({
|
|
4927
4952
|
symbol: this.symbol,
|
|
4928
4953
|
builderContextValue: this.builderContext
|
|
4929
4954
|
}).then((e) => {
|
|
@@ -4932,7 +4957,7 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = async ({
|
|
|
4932
4957
|
}
|
|
4933
4958
|
}
|
|
4934
4959
|
});
|
|
4935
|
-
function
|
|
4960
|
+
function Ei(e, t, n, o, r, i) {
|
|
4936
4961
|
var l, a, u, h, c;
|
|
4937
4962
|
const s = v("ContentVariants");
|
|
4938
4963
|
return d(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -4960,44 +4985,44 @@ function Ii(e, t, n, o, r, i) {
|
|
|
4960
4985
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4961
4986
|
], 16);
|
|
4962
4987
|
}
|
|
4963
|
-
const
|
|
4988
|
+
const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]);
|
|
4964
4989
|
export {
|
|
4965
|
-
|
|
4990
|
+
Rn as A,
|
|
4966
4991
|
be as B,
|
|
4967
|
-
|
|
4992
|
+
io as C,
|
|
4968
4993
|
he as D,
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4994
|
+
Ai as E,
|
|
4995
|
+
lo as F,
|
|
4996
|
+
Li as G,
|
|
4997
|
+
go as I,
|
|
4998
|
+
vo as S,
|
|
4999
|
+
R as T,
|
|
5000
|
+
Jr as V,
|
|
4976
5001
|
ge as _,
|
|
4977
|
-
|
|
4978
|
-
|
|
5002
|
+
Fi as a,
|
|
5003
|
+
Ui as b,
|
|
4979
5004
|
D as c,
|
|
4980
5005
|
fe as d,
|
|
4981
5006
|
b as e,
|
|
4982
5007
|
J as f,
|
|
4983
|
-
|
|
4984
|
-
|
|
5008
|
+
to as g,
|
|
5009
|
+
Di as h,
|
|
4985
5010
|
Z as i,
|
|
4986
5011
|
se as j,
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
5012
|
+
St as k,
|
|
5013
|
+
Pi as l,
|
|
5014
|
+
Jo as m,
|
|
4990
5015
|
L as n,
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
5016
|
+
Ii as o,
|
|
5017
|
+
E as p,
|
|
5018
|
+
jt as q,
|
|
5019
|
+
Kt as r,
|
|
5020
|
+
zt as s,
|
|
5021
|
+
Vi as t,
|
|
4997
5022
|
Fe as u,
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5023
|
+
Wi as v,
|
|
5024
|
+
ki as w,
|
|
5025
|
+
Ni as x,
|
|
5026
|
+
Oi as y,
|
|
5027
|
+
$n as z
|
|
5003
5028
|
};
|