@builder.io/sdk-vue 3.0.5 → 3.0.6
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-xWDd6I0t.cjs → awaiter-B_2yazFf.cjs} +1 -1
- package/lib/browser/{awaiter-HIb4sYti.js → awaiter-sU4SDpX0.js} +1 -1
- package/lib/browser/{block-styles-lsb_KdIv.js → block-styles-K1JPlueX.js} +1 -1
- package/lib/browser/{block-styles-a3Qov2aa.cjs → block-styles-rosksv3P.cjs} +1 -1
- package/lib/browser/{block-wrapper-AGYEnT9b.cjs → block-wrapper-cNFnfUiY.cjs} +1 -1
- package/lib/browser/{block-wrapper-wgruUtvA.js → block-wrapper-sJoVtUVt.js} +3 -3
- package/lib/browser/blocks/personalization-container/component-info.d.ts +2 -0
- package/lib/browser/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/lib/browser/blocks/personalization-container/helpers.d.ts +27 -0
- package/lib/browser/blocks/personalization-container/index.d.ts +1 -0
- package/lib/browser/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/lib/browser/blocks/personalization-container/personalization-container.vue.d.ts +33 -0
- package/lib/browser/{component-ref-vtmUy--R.js → component-ref-InYIqrKn.js} +3 -3
- package/lib/browser/{component-ref-L4m5v5Wy.cjs → component-ref-Lo1xYT1R.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-w5SNmgYD.cjs → get-block-properties-CKOWhK-0.cjs} +1 -1
- package/lib/browser/{get-block-properties-8WqRWNVK.js → get-block-properties-aoErppFn.js} +1 -1
- package/lib/browser/helpers/user-attributes.d.ts +17 -0
- package/lib/browser/{index-E3hEz780.js → index-B6NDWuX_.js} +657 -616
- package/lib/browser/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/browser/index-kfabrDm6.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +17 -16
- package/lib/browser/{repeated-block-YYmu12kh.cjs → repeated-block-KGwyg5jh.cjs} +1 -1
- package/lib/browser/{repeated-block-vu-vd9Qj.js → repeated-block-P2xyBE88.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/input.d.ts +1 -0
- package/lib/edge/{awaiter-CUt_5Lvh.cjs → awaiter-EmQONKEI.cjs} +1 -1
- package/lib/edge/{awaiter-ViNwDb7Z.js → awaiter-fXaD_JAB.js} +1 -1
- package/lib/edge/{block-styles-EM6CqjQV.cjs → block-styles-ET_8Qv_h.cjs} +1 -1
- package/lib/edge/{block-styles-UWqIwj6d.js → block-styles-V2TEosdx.js} +1 -1
- package/lib/edge/{block-wrapper-UDhPsV2i.js → block-wrapper-0SD0oCxs.js} +3 -3
- package/lib/edge/{block-wrapper-RT3WZdPP.cjs → block-wrapper-eADCpP6y.cjs} +1 -1
- package/lib/edge/blocks/personalization-container/component-info.d.ts +2 -0
- package/lib/edge/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/lib/edge/blocks/personalization-container/helpers.d.ts +27 -0
- package/lib/edge/blocks/personalization-container/index.d.ts +1 -0
- package/lib/edge/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/lib/edge/blocks/personalization-container/personalization-container.vue.d.ts +33 -0
- package/lib/edge/{component-ref-wjx7VJFz.cjs → component-ref-gyS-V1Pb.cjs} +1 -1
- package/lib/edge/{component-ref-8TcFZYaz.js → component-ref-jFmm1Yr5.js} +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-N5o1BfSo.js → get-block-properties-rOVHCadT.js} +1 -1
- package/lib/edge/{get-block-properties-VI0RpGQw.cjs → get-block-properties-uNDsnJ_q.cjs} +1 -1
- package/lib/edge/helpers/user-attributes.d.ts +17 -0
- package/lib/edge/{index-aOfrtP4-.cjs → index-L-qMWRJU.cjs} +31 -31
- package/lib/edge/{index-taUiLCrC.js → index-NtpyQKYV.js} +957 -916
- package/lib/edge/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +18 -17
- package/lib/{node/repeated-block-t1xK6Eml.cjs → edge/repeated-block-LZ0_ayRt.cjs} +1 -1
- package/lib/edge/{repeated-block-6gIkzT9B.js → repeated-block-sEp_7OeP.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/input.d.ts +1 -0
- package/lib/node/{awaiter-iLczFafd.cjs → awaiter-2QzOhSsm.cjs} +1 -1
- package/lib/node/{awaiter-YFLE2xNK.js → awaiter-vuOYJM0Z.js} +1 -1
- package/lib/node/{block-styles-puDhatJi.js → block-styles-ZraAZYMV.js} +1 -1
- package/lib/node/{block-styles-X0Yal7gl.cjs → block-styles-oEhFbcHe.cjs} +1 -1
- package/lib/node/{block-wrapper-T3bTZ7up.js → block-wrapper-QmVhjKN-.js} +3 -3
- package/lib/node/{block-wrapper-pNzy0_tb.cjs → block-wrapper-lX2JGnCZ.cjs} +1 -1
- package/lib/node/blocks/personalization-container/component-info.d.ts +2 -0
- package/lib/node/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/lib/node/blocks/personalization-container/helpers.d.ts +27 -0
- package/lib/node/blocks/personalization-container/index.d.ts +1 -0
- package/lib/node/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/lib/node/blocks/personalization-container/personalization-container.vue.d.ts +33 -0
- package/lib/node/{component-ref-oTG7sOLn.cjs → component-ref-I3kUaCp3.cjs} +1 -1
- package/lib/node/{component-ref-_L8PY6Zh.js → component-ref-KxI6DtDP.js} +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-3rEDCEQD.js → get-block-properties-767HBW90.js} +1 -1
- package/lib/node/{get-block-properties-P-xnWokf.cjs → get-block-properties-DkXAWgRI.cjs} +1 -1
- package/lib/node/helpers/user-attributes.d.ts +17 -0
- package/lib/node/index-2pJd7fhw.cjs +166 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/node/{index-wtum4hyc.js → index-n5uLpvet.js} +624 -583
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +13 -12
- package/lib/node/{repeated-block-jEy76re4.js → repeated-block-ldoaTwur.js} +2 -2
- package/lib/{edge/repeated-block-qe-61pYU.cjs → node/repeated-block-vtexff4h.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/input.d.ts +1 -0
- package/package.json +1 -1
- package/lib/browser/index-kRaZYwBL.cjs +0 -166
- package/lib/node/index-4h5AimzW.cjs +0 -166
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { T as E, g as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as I, createBlock as y, resolveDynamicComponent as K, mergeProps as C, toHandlers as A, withCtx as N, renderSlot as B, resolveComponent as k, createTextVNode as yt, toDisplayString as te, defineAsyncComponent as j, createVNode as R, renderList as W, createCommentVNode as S, h as Ne, createElementVNode as z, normalizeStyle as O, normalizeClass as J, markRaw as kt } from "vue";
|
|
2
|
+
import { T as E, g as vt, f as St, i as $, s as Ct, r as Tt, p as wt, a as It, l as x, b as Fe, c as pe, d as $t, n as Oe, e as U, h as P, j as Rt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
3
|
+
const Et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Pt = (e) => typeof e == "string" && Et.has(e.toLowerCase());
|
|
4
4
|
function V(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,26 +11,26 @@ function V(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Bt = b({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Pt };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), g = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
22
22
|
for (const [o, r] of t)
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes,
|
|
28
|
-
typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes,
|
|
26
|
+
function At(e, t, n, o, r, s) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), null, 16)) : (c(), p(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes, A(e.actionAttributes)), {
|
|
29
29
|
default: N(() => [
|
|
30
30
|
B(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes,
|
|
33
|
+
}, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), {
|
|
34
34
|
default: N(() => [
|
|
35
35
|
B(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,7 +38,7 @@ function Pt(e, t, n, o, r, s) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const me = /* @__PURE__ */
|
|
41
|
+
const me = /* @__PURE__ */ g(Bt, [["render", At]]), Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: me
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), Z = () => {
|
|
@@ -54,7 +54,7 @@ const me = /* @__PURE__ */ b(Et, [["render", Pt]]), Ks = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, xt = b({
|
|
58
58
|
name: "builder-button",
|
|
59
59
|
components: { DynamicRenderer: me },
|
|
60
60
|
props: [
|
|
@@ -83,7 +83,7 @@ const me = /* @__PURE__ */ b(Et, [["render", Pt]]), Ks = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function Vt(e, t, n, o, r, s) {
|
|
87
87
|
const i = k("DynamicRenderer");
|
|
88
88
|
return c(), y(i, {
|
|
89
89
|
attributes: e.attrs(),
|
|
@@ -91,12 +91,12 @@ function xt(e, t, n, o, r, s) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: N(() => [
|
|
94
|
-
|
|
94
|
+
yt(te(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Wt = /* @__PURE__ */ g(xt, [["render", Vt]]), Nt = Symbol(), le = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,14 +113,14 @@ const At = /* @__PURE__ */ b(Bt, [["render", xt]]), Vt = Symbol(), le = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: Nt
|
|
117
|
+
}, Ft = Symbol(), De = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
119
|
+
key: Ft
|
|
120
|
+
}, Ue = (e, t, n) => {
|
|
121
121
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
|
|
122
122
|
return o === void 0 || o === e ? n : o;
|
|
123
|
-
},
|
|
123
|
+
}, Ot = ({
|
|
124
124
|
code: e,
|
|
125
125
|
builder: t,
|
|
126
126
|
context: n,
|
|
@@ -129,22 +129,22 @@ const At = /* @__PURE__ */ b(Bt, [["render", xt]]), Vt = Symbol(), le = {
|
|
|
129
129
|
rootSetState: s,
|
|
130
130
|
rootState: i
|
|
131
131
|
}) => {
|
|
132
|
-
const l =
|
|
132
|
+
const l = vt({
|
|
133
133
|
builder: t,
|
|
134
134
|
context: n,
|
|
135
135
|
event: o,
|
|
136
|
-
state:
|
|
136
|
+
state: St({
|
|
137
137
|
rootState: i,
|
|
138
138
|
localState: r,
|
|
139
139
|
rootSetState: s
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
143
|
-
},
|
|
143
|
+
}, Dt = (e) => $() || Ct({
|
|
144
144
|
shouldLogWarning: !0
|
|
145
|
-
}) ?
|
|
145
|
+
}) ? Ot(e) : Tt(e), Ut = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Lt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ht = (e) => {
|
|
146
146
|
var t, n, o, r, s, i;
|
|
147
|
-
return ((o = (n = (t =
|
|
147
|
+
return ((o = (n = (t = Ut.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = Lt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
|
|
148
148
|
};
|
|
149
149
|
function Y({
|
|
150
150
|
code: e,
|
|
@@ -157,17 +157,17 @@ function Y({
|
|
|
157
157
|
}) {
|
|
158
158
|
if (e.trim() === "")
|
|
159
159
|
return;
|
|
160
|
-
const l =
|
|
160
|
+
const l = Ht(e.trim());
|
|
161
161
|
if (l)
|
|
162
|
-
return
|
|
162
|
+
return Ue({
|
|
163
163
|
...o,
|
|
164
164
|
...n
|
|
165
165
|
}, l);
|
|
166
166
|
const a = {
|
|
167
|
-
code:
|
|
167
|
+
code: wt(e, {
|
|
168
168
|
isExpression: i
|
|
169
169
|
}),
|
|
170
|
-
builder:
|
|
170
|
+
builder: It(),
|
|
171
171
|
context: t,
|
|
172
172
|
event: s,
|
|
173
173
|
rootSetState: r,
|
|
@@ -175,23 +175,23 @@ function Y({
|
|
|
175
175
|
localState: n
|
|
176
176
|
};
|
|
177
177
|
try {
|
|
178
|
-
return
|
|
178
|
+
return Dt(a);
|
|
179
179
|
} catch (u) {
|
|
180
|
-
|
|
180
|
+
x.error("Failed code evaluation: " + u.message, {
|
|
181
181
|
code: e
|
|
182
182
|
});
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Mt(e, t) {
|
|
187
187
|
var n;
|
|
188
188
|
return {
|
|
189
189
|
...(n = e.component) == null ? void 0 : n.options,
|
|
190
190
|
...e.options,
|
|
191
|
-
...
|
|
191
|
+
...jt(e, t)
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const jt = (e, t) => {
|
|
195
195
|
var n, o;
|
|
196
196
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
197
197
|
return {
|
|
@@ -205,7 +205,7 @@ const Ht = (e, t) => {
|
|
|
205
205
|
}))
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
function
|
|
208
|
+
function Kt(e, ...t) {
|
|
209
209
|
const n = Object.assign({}, e);
|
|
210
210
|
for (const o of t)
|
|
211
211
|
delete n[o];
|
|
@@ -228,28 +228,28 @@ function _(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
228
228
|
}), _(i, t, e, s, r);
|
|
229
229
|
}));
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Le(e) {
|
|
232
232
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function qt(e) {
|
|
235
235
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
236
236
|
return !1;
|
|
237
237
|
let t = !1;
|
|
238
238
|
return _(e, (n) => {
|
|
239
|
-
if (
|
|
239
|
+
if (Le(n)) {
|
|
240
240
|
t = !0;
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
243
|
}), t;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function zt(e, t) {
|
|
246
246
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (_(e, (n, o) => {
|
|
247
|
-
|
|
247
|
+
Le(n) && o(n[t] ?? void 0);
|
|
248
248
|
}), e);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Jt(e, t) {
|
|
251
251
|
var n, o;
|
|
252
|
-
return (n = e.component) != null && n.options &&
|
|
252
|
+
return (n = e.component) != null && n.options && qt((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = zt(e.component.options, t ?? "Default")), e;
|
|
253
253
|
}
|
|
254
254
|
function ce(e) {
|
|
255
255
|
if (e === null || typeof e != "object")
|
|
@@ -263,8 +263,8 @@ function ce(e) {
|
|
|
263
263
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
|
|
264
264
|
return t;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
266
|
+
const Gt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Yt = (e) => {
|
|
267
|
+
if (Gt) {
|
|
268
268
|
const t = pe(e);
|
|
269
269
|
return {
|
|
270
270
|
...t,
|
|
@@ -276,7 +276,7 @@ const zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Gt = (e) =
|
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
} else {
|
|
279
|
-
const t = ce(
|
|
279
|
+
const t = ce(Kt(e, "children", "meta"));
|
|
280
280
|
return {
|
|
281
281
|
...t,
|
|
282
282
|
properties: {
|
|
@@ -289,7 +289,7 @@ const zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Gt = (e) =
|
|
|
289
289
|
meta: e.meta
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
},
|
|
292
|
+
}, Xt = ({
|
|
293
293
|
block: e,
|
|
294
294
|
context: t,
|
|
295
295
|
localState: n,
|
|
@@ -298,7 +298,7 @@ const zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Gt = (e) =
|
|
|
298
298
|
}) => {
|
|
299
299
|
if (!e.bindings)
|
|
300
300
|
return e;
|
|
301
|
-
const s =
|
|
301
|
+
const s = Yt(e);
|
|
302
302
|
for (const i in e.bindings) {
|
|
303
303
|
const l = e.bindings[i], a = Y({
|
|
304
304
|
code: l,
|
|
@@ -307,19 +307,19 @@ const zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Gt = (e) =
|
|
|
307
307
|
rootSetState: r,
|
|
308
308
|
context: t
|
|
309
309
|
});
|
|
310
|
-
|
|
310
|
+
Fe(s, i, a);
|
|
311
311
|
}
|
|
312
312
|
return s;
|
|
313
313
|
};
|
|
314
|
-
function
|
|
314
|
+
function Qt({
|
|
315
315
|
block: e,
|
|
316
316
|
context: t,
|
|
317
317
|
localState: n,
|
|
318
318
|
rootState: o,
|
|
319
319
|
rootSetState: r
|
|
320
320
|
}) {
|
|
321
|
-
let s =
|
|
322
|
-
return s = s,
|
|
321
|
+
let s = Jt(e, o.locale);
|
|
322
|
+
return s = s, Xt({
|
|
323
323
|
block: s,
|
|
324
324
|
localState: n,
|
|
325
325
|
rootState: o,
|
|
@@ -327,25 +327,25 @@ function Yt({
|
|
|
327
327
|
context: t
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function He(e) {
|
|
331
331
|
const t = e || ($() ? window.location.search : void 0);
|
|
332
|
-
return t ?
|
|
332
|
+
return t ? $t(t).indexOf("builder.preview=") !== -1 : !1;
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const Zt = (e) => ({
|
|
335
335
|
type: "builder.registerComponent",
|
|
336
336
|
data: ee(e)
|
|
337
|
-
}),
|
|
337
|
+
}), _t = (e) => {
|
|
338
338
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
339
339
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
340
340
|
};
|
|
341
341
|
function ee(e) {
|
|
342
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
342
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? _t(n) : n));
|
|
343
343
|
}
|
|
344
|
-
const
|
|
345
|
-
function
|
|
344
|
+
const Ie = {};
|
|
345
|
+
function en(e, t) {
|
|
346
346
|
e === "plugin" && (t = ee(t));
|
|
347
|
-
let n =
|
|
348
|
-
if (n || (n =
|
|
347
|
+
let n = Ie[e];
|
|
348
|
+
if (n || (n = Ie[e] = []), n.push(t), $()) {
|
|
349
349
|
const o = {
|
|
350
350
|
type: "builder.register",
|
|
351
351
|
data: {
|
|
@@ -360,42 +360,42 @@ function Zt(e, t) {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
const
|
|
364
|
-
function
|
|
363
|
+
const $e = {};
|
|
364
|
+
function Gs(e) {
|
|
365
365
|
if ($()) {
|
|
366
|
-
Object.assign(
|
|
366
|
+
Object.assign($e, e);
|
|
367
367
|
const t = {
|
|
368
368
|
type: "builder.settingsChange",
|
|
369
|
-
data:
|
|
369
|
+
data: $e
|
|
370
370
|
};
|
|
371
371
|
parent.postMessage(t, "*");
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const
|
|
374
|
+
const Re = "builder.", tn = "options.", Me = (e) => {
|
|
375
375
|
if (!e)
|
|
376
376
|
return {};
|
|
377
|
-
const t =
|
|
377
|
+
const t = Oe(e), n = {};
|
|
378
378
|
return Object.keys(t).forEach((o) => {
|
|
379
|
-
if (o.startsWith(
|
|
380
|
-
const r = o.replace(
|
|
379
|
+
if (o.startsWith(Re)) {
|
|
380
|
+
const r = o.replace(Re, "").replace(tn, "");
|
|
381
381
|
n[r] = t[o];
|
|
382
382
|
}
|
|
383
383
|
}), n;
|
|
384
|
-
},
|
|
384
|
+
}, nn = () => {
|
|
385
385
|
if (!$())
|
|
386
386
|
return {};
|
|
387
387
|
const e = new URLSearchParams(window.location.search);
|
|
388
|
-
return
|
|
389
|
-
},
|
|
388
|
+
return Me(e);
|
|
389
|
+
}, je = "3.0.6", Ke = () => ({
|
|
390
390
|
"X-Builder-SDK": E,
|
|
391
391
|
"X-Builder-SDK-GEN": "2",
|
|
392
|
-
"X-Builder-SDK-Version":
|
|
393
|
-
}),
|
|
392
|
+
"X-Builder-SDK-Version": je
|
|
393
|
+
}), on = (e) => {
|
|
394
394
|
if (e === "localhost" || e === "127.0.0.1")
|
|
395
395
|
return e;
|
|
396
396
|
const t = e.split(".");
|
|
397
397
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
398
|
-
},
|
|
398
|
+
}, he = ({
|
|
399
399
|
name: e,
|
|
400
400
|
canTrack: t
|
|
401
401
|
}) => {
|
|
@@ -403,17 +403,17 @@ const Ie = "builder.", _t = "options.", Le = (e) => {
|
|
|
403
403
|
try {
|
|
404
404
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
405
405
|
} catch (o) {
|
|
406
|
-
|
|
406
|
+
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
|
-
},
|
|
409
|
+
}, qe = async (e) => he(e), rn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(U).join("; "), sn = [["secure", ""], ["SameSite", "None"]], an = ({
|
|
410
410
|
name: e,
|
|
411
411
|
value: t,
|
|
412
412
|
expires: n
|
|
413
413
|
}) => {
|
|
414
|
-
const r = ($() ? location.protocol === "https:" : !0) ?
|
|
415
|
-
return
|
|
416
|
-
},
|
|
414
|
+
const r = ($() ? location.protocol === "https:" : !0) ? sn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", on(window.location.hostname)], ...r];
|
|
415
|
+
return rn(i);
|
|
416
|
+
}, fe = async ({
|
|
417
417
|
name: e,
|
|
418
418
|
value: t,
|
|
419
419
|
expires: n,
|
|
@@ -422,51 +422,51 @@ const Ie = "builder.", _t = "options.", Le = (e) => {
|
|
|
422
422
|
try {
|
|
423
423
|
if (!o)
|
|
424
424
|
return;
|
|
425
|
-
const r =
|
|
425
|
+
const r = an({
|
|
426
426
|
name: e,
|
|
427
427
|
value: t,
|
|
428
428
|
expires: n
|
|
429
429
|
});
|
|
430
430
|
document.cookie = r;
|
|
431
431
|
} catch (r) {
|
|
432
|
-
|
|
432
|
+
x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
|
-
function
|
|
435
|
+
function ln() {
|
|
436
436
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
437
437
|
const t = Math.random() * 16 | 0;
|
|
438
438
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
441
|
+
function ze() {
|
|
442
|
+
return ln().replace(/-/g, "");
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const Je = "builderSessionId", cn = async ({
|
|
445
445
|
canTrack: e
|
|
446
446
|
}) => {
|
|
447
447
|
if (!e)
|
|
448
448
|
return;
|
|
449
|
-
const t = await
|
|
450
|
-
name:
|
|
449
|
+
const t = await qe({
|
|
450
|
+
name: Je,
|
|
451
451
|
canTrack: e
|
|
452
452
|
});
|
|
453
|
-
if (
|
|
453
|
+
if (U(t))
|
|
454
454
|
return t;
|
|
455
455
|
{
|
|
456
|
-
const n =
|
|
457
|
-
return
|
|
456
|
+
const n = dn();
|
|
457
|
+
return un({
|
|
458
458
|
id: n,
|
|
459
459
|
canTrack: e
|
|
460
460
|
}), n;
|
|
461
461
|
}
|
|
462
|
-
},
|
|
462
|
+
}, dn = () => ze(), un = ({
|
|
463
463
|
id: e,
|
|
464
464
|
canTrack: t
|
|
465
|
-
}) =>
|
|
466
|
-
name:
|
|
465
|
+
}) => fe({
|
|
466
|
+
name: Je,
|
|
467
467
|
value: e,
|
|
468
468
|
canTrack: t
|
|
469
|
-
}), Ge = () => $() && typeof localStorage < "u" ? localStorage : void 0,
|
|
469
|
+
}), Ge = () => $() && typeof localStorage < "u" ? localStorage : void 0, pn = ({
|
|
470
470
|
key: e,
|
|
471
471
|
canTrack: t
|
|
472
472
|
}) => {
|
|
@@ -477,7 +477,7 @@ const ze = "builderSessionId", an = async ({
|
|
|
477
477
|
console.debug("[LocalStorage] GET error: ", o);
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
480
|
-
},
|
|
480
|
+
}, mn = ({
|
|
481
481
|
key: e,
|
|
482
482
|
canTrack: t,
|
|
483
483
|
value: n
|
|
@@ -488,37 +488,37 @@ const ze = "builderSessionId", an = async ({
|
|
|
488
488
|
} catch (r) {
|
|
489
489
|
console.debug("[LocalStorage] SET error: ", r);
|
|
490
490
|
}
|
|
491
|
-
},
|
|
491
|
+
}, Ye = "builderVisitorId", hn = ({
|
|
492
492
|
canTrack: e
|
|
493
493
|
}) => {
|
|
494
494
|
if (!e)
|
|
495
495
|
return;
|
|
496
|
-
const t =
|
|
497
|
-
key:
|
|
496
|
+
const t = pn({
|
|
497
|
+
key: Ye,
|
|
498
498
|
canTrack: e
|
|
499
499
|
});
|
|
500
|
-
if (
|
|
500
|
+
if (U(t))
|
|
501
501
|
return t;
|
|
502
502
|
{
|
|
503
|
-
const n =
|
|
504
|
-
return
|
|
503
|
+
const n = fn();
|
|
504
|
+
return bn({
|
|
505
505
|
id: n,
|
|
506
506
|
canTrack: e
|
|
507
507
|
}), n;
|
|
508
508
|
}
|
|
509
|
-
},
|
|
509
|
+
}, fn = () => ze(), bn = ({
|
|
510
510
|
id: e,
|
|
511
511
|
canTrack: t
|
|
512
|
-
}) =>
|
|
513
|
-
key:
|
|
512
|
+
}) => mn({
|
|
513
|
+
key: Ye,
|
|
514
514
|
value: e,
|
|
515
515
|
canTrack: t
|
|
516
516
|
});
|
|
517
|
-
function
|
|
517
|
+
function be(e) {
|
|
518
518
|
var t;
|
|
519
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
519
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && x.log(e);
|
|
520
520
|
}
|
|
521
|
-
const
|
|
521
|
+
const gn = async ({
|
|
522
522
|
canTrack: e
|
|
523
523
|
}) => {
|
|
524
524
|
if (!e)
|
|
@@ -526,16 +526,16 @@ const fn = async ({
|
|
|
526
526
|
visitorId: void 0,
|
|
527
527
|
sessionId: void 0
|
|
528
528
|
};
|
|
529
|
-
const t = await
|
|
529
|
+
const t = await cn({
|
|
530
530
|
canTrack: e
|
|
531
|
-
}), n =
|
|
531
|
+
}), n = hn({
|
|
532
532
|
canTrack: e
|
|
533
533
|
});
|
|
534
534
|
return {
|
|
535
535
|
sessionId: t,
|
|
536
536
|
visitorId: n
|
|
537
537
|
};
|
|
538
|
-
},
|
|
538
|
+
}, yn = async ({
|
|
539
539
|
type: e,
|
|
540
540
|
canTrack: t,
|
|
541
541
|
apiKey: n,
|
|
@@ -549,10 +549,10 @@ const fn = async ({
|
|
|
549
549
|
url: location.href,
|
|
550
550
|
...o
|
|
551
551
|
},
|
|
552
|
-
...await
|
|
552
|
+
...await gn({
|
|
553
553
|
canTrack: t
|
|
554
554
|
}),
|
|
555
|
-
userAttributes:
|
|
555
|
+
userAttributes: Rt(),
|
|
556
556
|
ownerId: n
|
|
557
557
|
}
|
|
558
558
|
});
|
|
@@ -561,38 +561,38 @@ async function de({
|
|
|
561
561
|
...t
|
|
562
562
|
}) {
|
|
563
563
|
if (!t.apiKey) {
|
|
564
|
-
|
|
564
|
+
x.error("Missing API key for track call. Please provide your API key.");
|
|
565
565
|
return;
|
|
566
566
|
}
|
|
567
567
|
if (!t.canTrack || P() || !($() || E === "reactNative"))
|
|
568
568
|
return;
|
|
569
569
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
570
|
-
return
|
|
570
|
+
return be(o), fetch(o, {
|
|
571
571
|
method: "POST",
|
|
572
572
|
body: JSON.stringify({
|
|
573
|
-
events: [await
|
|
573
|
+
events: [await yn(t)]
|
|
574
574
|
}),
|
|
575
575
|
headers: {
|
|
576
576
|
"content-type": "application/json",
|
|
577
|
-
...
|
|
577
|
+
...Ke()
|
|
578
578
|
},
|
|
579
579
|
mode: "cors"
|
|
580
580
|
}).catch((r) => {
|
|
581
581
|
console.error("Failed to track: ", r);
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
const
|
|
584
|
+
const Ys = (e) => de({
|
|
585
585
|
...e,
|
|
586
586
|
canTrack: !0
|
|
587
|
-
}),
|
|
588
|
-
function
|
|
587
|
+
}), kn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
588
|
+
function Xe(e, t) {
|
|
589
589
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
590
590
|
return !1;
|
|
591
591
|
const n = new URL(t.origin), o = n.hostname;
|
|
592
|
-
return (e ||
|
|
592
|
+
return (e || kn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
593
593
|
}
|
|
594
|
-
const
|
|
595
|
-
|
|
594
|
+
const vn = () => {
|
|
595
|
+
en("insertMenu", {
|
|
596
596
|
name: "_default",
|
|
597
597
|
default: !0,
|
|
598
598
|
items: [{
|
|
@@ -614,19 +614,20 @@ const yn = () => {
|
|
|
614
614
|
}]
|
|
615
615
|
});
|
|
616
616
|
};
|
|
617
|
-
let
|
|
618
|
-
const
|
|
617
|
+
let Ee = !1;
|
|
618
|
+
const Qe = (e = {}) => {
|
|
619
619
|
var t, n;
|
|
620
|
-
|
|
620
|
+
Ee || (Ee = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
621
621
|
type: "builder.sdkInfo",
|
|
622
622
|
data: {
|
|
623
623
|
target: E,
|
|
624
|
-
version:
|
|
624
|
+
version: je,
|
|
625
625
|
supportsPatchUpdates: !1,
|
|
626
626
|
// Supports builder-model="..." attribute which is needed to
|
|
627
627
|
// scope our '+ add block' button styling
|
|
628
628
|
supportsAddBlockScoping: !0,
|
|
629
|
-
supportsCustomBreakpoints: !0
|
|
629
|
+
supportsCustomBreakpoints: !0,
|
|
630
|
+
blockLevelPersonalization: !0
|
|
630
631
|
}
|
|
631
632
|
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
632
633
|
type: "builder.updateContent",
|
|
@@ -635,7 +636,7 @@ const Xe = (e = {}) => {
|
|
|
635
636
|
}
|
|
636
637
|
}, "*"), window.addEventListener("message", (o) => {
|
|
637
638
|
var s, i;
|
|
638
|
-
if (!
|
|
639
|
+
if (!Xe(e.trustedHosts, o))
|
|
639
640
|
return;
|
|
640
641
|
const {
|
|
641
642
|
data: r
|
|
@@ -676,12 +677,12 @@ const Xe = (e = {}) => {
|
|
|
676
677
|
}
|
|
677
678
|
}
|
|
678
679
|
})));
|
|
679
|
-
},
|
|
680
|
+
}, Ze = ({
|
|
680
681
|
model: e,
|
|
681
682
|
trustedHosts: t,
|
|
682
683
|
callbacks: n
|
|
683
684
|
}) => (o) => {
|
|
684
|
-
if (!
|
|
685
|
+
if (!Xe(t, o))
|
|
685
686
|
return;
|
|
686
687
|
const {
|
|
687
688
|
data: r
|
|
@@ -702,12 +703,12 @@ const Xe = (e = {}) => {
|
|
|
702
703
|
break;
|
|
703
704
|
}
|
|
704
705
|
}
|
|
705
|
-
},
|
|
706
|
+
}, Xs = (e, t, n) => {
|
|
706
707
|
if (!$)
|
|
707
|
-
return
|
|
708
|
+
return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
708
709
|
};
|
|
709
|
-
|
|
710
|
-
const o =
|
|
710
|
+
Qe();
|
|
711
|
+
const o = Ze({
|
|
711
712
|
callbacks: {
|
|
712
713
|
contentUpdate: t,
|
|
713
714
|
animation: () => {
|
|
@@ -721,24 +722,24 @@ const Xe = (e = {}) => {
|
|
|
721
722
|
return window.addEventListener("message", o), () => {
|
|
722
723
|
window.removeEventListener("message", o);
|
|
723
724
|
};
|
|
724
|
-
},
|
|
725
|
+
}, Sn = "builder.tests", ge = (e) => `${Sn}.${e}`, Cn = ({
|
|
725
726
|
contentId: e
|
|
726
|
-
}) =>
|
|
727
|
-
name:
|
|
727
|
+
}) => qe({
|
|
728
|
+
name: ge(e),
|
|
728
729
|
canTrack: !0
|
|
729
|
-
}),
|
|
730
|
+
}), Tn = ({
|
|
730
731
|
contentId: e
|
|
731
|
-
}) =>
|
|
732
|
-
name:
|
|
732
|
+
}) => he({
|
|
733
|
+
name: ge(e),
|
|
733
734
|
canTrack: !0
|
|
734
|
-
}),
|
|
735
|
+
}), wn = ({
|
|
735
736
|
contentId: e,
|
|
736
737
|
value: t
|
|
737
|
-
}) =>
|
|
738
|
-
name:
|
|
738
|
+
}) => fe({
|
|
739
|
+
name: ge(e),
|
|
739
740
|
value: t,
|
|
740
741
|
canTrack: !0
|
|
741
|
-
}),
|
|
742
|
+
}), _e = (e) => U(e.id) && U(e.variations) && Object.keys(e.variations).length > 0, In = ({
|
|
742
743
|
id: e,
|
|
743
744
|
variations: t
|
|
744
745
|
}) => {
|
|
@@ -751,15 +752,15 @@ const Xe = (e = {}) => {
|
|
|
751
752
|
return s;
|
|
752
753
|
}
|
|
753
754
|
return e;
|
|
754
|
-
},
|
|
755
|
-
const t =
|
|
756
|
-
return
|
|
755
|
+
}, et = (e) => {
|
|
756
|
+
const t = In(e);
|
|
757
|
+
return wn({
|
|
757
758
|
contentId: e.id,
|
|
758
759
|
value: t
|
|
759
760
|
}).catch((n) => {
|
|
760
|
-
|
|
761
|
+
x.error("could not store A/B test variation: ", n);
|
|
761
762
|
}), t;
|
|
762
|
-
},
|
|
763
|
+
}, tt = ({
|
|
763
764
|
item: e,
|
|
764
765
|
testGroupId: t
|
|
765
766
|
}) => {
|
|
@@ -773,7 +774,7 @@ const Xe = (e = {}) => {
|
|
|
773
774
|
testVariationId: n.id,
|
|
774
775
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
775
776
|
};
|
|
776
|
-
},
|
|
777
|
+
}, $n = ({
|
|
777
778
|
item: e,
|
|
778
779
|
canTrack: t
|
|
779
780
|
}) => {
|
|
@@ -781,14 +782,14 @@ const Xe = (e = {}) => {
|
|
|
781
782
|
return e;
|
|
782
783
|
if (!e)
|
|
783
784
|
return;
|
|
784
|
-
if (!
|
|
785
|
+
if (!_e(e))
|
|
785
786
|
return e;
|
|
786
|
-
const n =
|
|
787
|
+
const n = Tn({
|
|
787
788
|
contentId: e.id
|
|
788
|
-
}) ||
|
|
789
|
+
}) || et({
|
|
789
790
|
variations: e.variations,
|
|
790
791
|
id: e.id
|
|
791
|
-
}), o =
|
|
792
|
+
}), o = tt({
|
|
792
793
|
item: e,
|
|
793
794
|
testGroupId: n
|
|
794
795
|
});
|
|
@@ -796,18 +797,18 @@ const Xe = (e = {}) => {
|
|
|
796
797
|
...e,
|
|
797
798
|
...o
|
|
798
799
|
};
|
|
799
|
-
},
|
|
800
|
+
}, Rn = async ({
|
|
800
801
|
item: e,
|
|
801
802
|
canTrack: t
|
|
802
803
|
}) => {
|
|
803
|
-
if (!t || !
|
|
804
|
+
if (!t || !_e(e))
|
|
804
805
|
return e;
|
|
805
|
-
const o = await
|
|
806
|
+
const o = await Cn({
|
|
806
807
|
contentId: e.id
|
|
807
|
-
}) ||
|
|
808
|
+
}) || et({
|
|
808
809
|
variations: e.variations,
|
|
809
810
|
id: e.id
|
|
810
|
-
}), r =
|
|
811
|
+
}), r = tt({
|
|
811
812
|
item: e,
|
|
812
813
|
testGroupId: o
|
|
813
814
|
});
|
|
@@ -815,18 +816,57 @@ const Xe = (e = {}) => {
|
|
|
815
816
|
...e,
|
|
816
817
|
...r
|
|
817
818
|
};
|
|
818
|
-
},
|
|
819
|
-
function
|
|
819
|
+
}, Pe = "builder.userAttributes";
|
|
820
|
+
function En() {
|
|
821
|
+
let e = !0;
|
|
822
|
+
const t = /* @__PURE__ */ new Set();
|
|
823
|
+
return {
|
|
824
|
+
setUserAttributes(n) {
|
|
825
|
+
if (!$())
|
|
826
|
+
return;
|
|
827
|
+
const o = {
|
|
828
|
+
...this.getUserAttributes(),
|
|
829
|
+
...n
|
|
830
|
+
};
|
|
831
|
+
fe({
|
|
832
|
+
name: Pe,
|
|
833
|
+
value: JSON.stringify(o),
|
|
834
|
+
canTrack: e
|
|
835
|
+
}), t.forEach((r) => r(o));
|
|
836
|
+
},
|
|
837
|
+
getUserAttributes() {
|
|
838
|
+
return $() ? JSON.parse(he({
|
|
839
|
+
name: Pe,
|
|
840
|
+
canTrack: e
|
|
841
|
+
}) || "{}") : {};
|
|
842
|
+
},
|
|
843
|
+
subscribeOnUserAttributesChange(n) {
|
|
844
|
+
return t.add(n), () => {
|
|
845
|
+
t.delete(n);
|
|
846
|
+
};
|
|
847
|
+
},
|
|
848
|
+
setCanTrack(n) {
|
|
849
|
+
e = n;
|
|
850
|
+
}
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
const nt = En(), Qs = (e) => {
|
|
854
|
+
nt.setUserAttributes(e);
|
|
855
|
+
}, G = (e) => {
|
|
856
|
+
const t = U(e) ? e : !0;
|
|
857
|
+
return nt.setCanTrack(t), t;
|
|
858
|
+
};
|
|
859
|
+
function Pn() {
|
|
820
860
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
821
861
|
}
|
|
822
|
-
function
|
|
823
|
-
const e =
|
|
862
|
+
function Bn() {
|
|
863
|
+
const e = Pn().fetch;
|
|
824
864
|
if (typeof e > "u")
|
|
825
865
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
826
866
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
827
867
|
return e;
|
|
828
868
|
}
|
|
829
|
-
const
|
|
869
|
+
const An = Bn();
|
|
830
870
|
function ue(e, t = null, n = ".") {
|
|
831
871
|
return Object.keys(e).reduce((o, r) => {
|
|
832
872
|
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
@@ -839,14 +879,14 @@ function ue(e, t = null, n = ".") {
|
|
|
839
879
|
};
|
|
840
880
|
}, {});
|
|
841
881
|
}
|
|
842
|
-
function
|
|
882
|
+
function ot(e, t, n = {}) {
|
|
843
883
|
for (const o in e) {
|
|
844
884
|
const r = e[o], s = t ? t + "." + o : o;
|
|
845
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ?
|
|
885
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? ot(r, s, n) : n[s] = r;
|
|
846
886
|
}
|
|
847
887
|
return n;
|
|
848
888
|
}
|
|
849
|
-
function
|
|
889
|
+
function xn(e) {
|
|
850
890
|
const t = {};
|
|
851
891
|
for (const n in e) {
|
|
852
892
|
const o = n.split(".");
|
|
@@ -858,7 +898,7 @@ function Pn(e) {
|
|
|
858
898
|
}
|
|
859
899
|
return t;
|
|
860
900
|
}
|
|
861
|
-
const
|
|
901
|
+
const Vn = "v3", Be = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ye = (e) => {
|
|
862
902
|
const {
|
|
863
903
|
limit: t = 30,
|
|
864
904
|
userAttributes: n,
|
|
@@ -867,7 +907,7 @@ const Bn = "v3", Re = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ge = (
|
|
|
867
907
|
apiKey: s,
|
|
868
908
|
enrich: i,
|
|
869
909
|
locale: l,
|
|
870
|
-
apiVersion: a =
|
|
910
|
+
apiVersion: a = Vn,
|
|
871
911
|
fields: u,
|
|
872
912
|
omit: h,
|
|
873
913
|
offset: m,
|
|
@@ -875,105 +915,105 @@ const Bn = "v3", Re = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ge = (
|
|
|
875
915
|
staleCacheSeconds: f,
|
|
876
916
|
sort: v,
|
|
877
917
|
includeUnpublished: T,
|
|
878
|
-
apiHost:
|
|
918
|
+
apiHost: D
|
|
879
919
|
} = e;
|
|
880
920
|
if (!s)
|
|
881
921
|
throw new Error("Missing API key");
|
|
882
922
|
if (!["v3"].includes(a))
|
|
883
923
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
884
|
-
const
|
|
885
|
-
w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(
|
|
924
|
+
const bt = t !== 1, gt = D || "https://cdn.builder.io", w = new URL(`${gt}/api/${a}/content/${r}`);
|
|
925
|
+
w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(bt)), w.searchParams.set("includeRefs", String(!0));
|
|
886
926
|
const ne = l || (n == null ? void 0 : n.locale);
|
|
887
|
-
let
|
|
888
|
-
if (ne && (w.searchParams.set("locale", ne),
|
|
927
|
+
let L = n || {};
|
|
928
|
+
if (ne && (w.searchParams.set("locale", ne), L = {
|
|
889
929
|
locale: ne,
|
|
890
|
-
...
|
|
891
|
-
}), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && w.searchParams.set("offset", String(Math.floor(m))), typeof T == "boolean" && w.searchParams.set("includeUnpublished", String(T)), d &&
|
|
930
|
+
...L
|
|
931
|
+
}), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && w.searchParams.set("offset", String(Math.floor(m))), typeof T == "boolean" && w.searchParams.set("includeUnpublished", String(T)), d && Be(d) && w.searchParams.set("cacheSeconds", String(d)), f && Be(f) && w.searchParams.set("staleCacheSeconds", String(f)), v) {
|
|
892
932
|
const F = ue({
|
|
893
933
|
sort: v
|
|
894
934
|
});
|
|
895
935
|
for (const M in F)
|
|
896
936
|
w.searchParams.set(M, JSON.stringify(F[M]));
|
|
897
937
|
}
|
|
898
|
-
const
|
|
899
|
-
...
|
|
900
|
-
...
|
|
938
|
+
const Te = {
|
|
939
|
+
...nn(),
|
|
940
|
+
...Oe(e.options || {})
|
|
901
941
|
};
|
|
902
|
-
|
|
903
|
-
...
|
|
904
|
-
...
|
|
942
|
+
L = {
|
|
943
|
+
...L,
|
|
944
|
+
...Nn(Te)
|
|
905
945
|
};
|
|
906
|
-
const
|
|
907
|
-
for (const F in
|
|
908
|
-
w.searchParams.set(F, String(
|
|
909
|
-
if (Object.keys(
|
|
910
|
-
const F =
|
|
946
|
+
const we = ue(Te);
|
|
947
|
+
for (const F in we)
|
|
948
|
+
w.searchParams.set(F, String(we[F]));
|
|
949
|
+
if (Object.keys(L).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(L)), o) {
|
|
950
|
+
const F = ot({
|
|
911
951
|
query: o
|
|
912
952
|
});
|
|
913
953
|
for (const M in F)
|
|
914
954
|
w.searchParams.set(M, JSON.stringify(F[M]));
|
|
915
955
|
}
|
|
916
956
|
return w;
|
|
917
|
-
},
|
|
957
|
+
}, Wn = (e) => {
|
|
918
958
|
const t = {};
|
|
919
959
|
for (const n in e)
|
|
920
960
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
921
961
|
return t;
|
|
922
|
-
},
|
|
962
|
+
}, Nn = (e) => {
|
|
923
963
|
if ($() && e.preview === "BUILDER_STUDIO") {
|
|
924
964
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
925
|
-
const t =
|
|
965
|
+
const t = Wn(e), {
|
|
926
966
|
userAttributes: n
|
|
927
|
-
} =
|
|
967
|
+
} = xn(t);
|
|
928
968
|
return n;
|
|
929
969
|
}
|
|
930
970
|
return {};
|
|
931
|
-
},
|
|
932
|
-
async function
|
|
933
|
-
const t = await
|
|
971
|
+
}, Fn = (e) => "results" in e;
|
|
972
|
+
async function ke(e) {
|
|
973
|
+
const t = await Un({
|
|
934
974
|
...e,
|
|
935
975
|
limit: 1
|
|
936
976
|
});
|
|
937
977
|
return t && t[0] || null;
|
|
938
978
|
}
|
|
939
|
-
const
|
|
979
|
+
const On = async (e) => {
|
|
940
980
|
var i;
|
|
941
|
-
const t =
|
|
981
|
+
const t = ye(e), n = e.fetch ?? An, o = {
|
|
942
982
|
...e.fetchOptions,
|
|
943
983
|
headers: {
|
|
944
984
|
...(i = e.fetchOptions) == null ? void 0 : i.headers,
|
|
945
|
-
...
|
|
985
|
+
...Ke()
|
|
946
986
|
}
|
|
947
987
|
};
|
|
948
988
|
return await (await n(t.href, o)).json();
|
|
949
|
-
},
|
|
950
|
-
const o =
|
|
989
|
+
}, Dn = async (e, t, n = ye(e)) => {
|
|
990
|
+
const o = G(e.canTrack);
|
|
951
991
|
if (n.search.includes("preview="), !o || !($() || E === "reactNative"))
|
|
952
992
|
return t.results;
|
|
953
993
|
try {
|
|
954
994
|
const r = [];
|
|
955
995
|
for (const s of t.results)
|
|
956
|
-
r.push(await
|
|
996
|
+
r.push(await Rn({
|
|
957
997
|
item: s,
|
|
958
998
|
canTrack: o
|
|
959
999
|
}));
|
|
960
1000
|
t.results = r;
|
|
961
1001
|
} catch (r) {
|
|
962
|
-
|
|
1002
|
+
x.error("Could not process A/B tests. ", r);
|
|
963
1003
|
}
|
|
964
1004
|
return t.results;
|
|
965
1005
|
};
|
|
966
|
-
async function
|
|
967
|
-
const t =
|
|
968
|
-
if (!
|
|
969
|
-
throw
|
|
1006
|
+
async function Un(e) {
|
|
1007
|
+
const t = ye(e), n = await On(e);
|
|
1008
|
+
if (!Fn(n))
|
|
1009
|
+
throw x.error("Error fetching data. ", {
|
|
970
1010
|
url: t,
|
|
971
1011
|
content: n,
|
|
972
1012
|
options: e
|
|
973
1013
|
}), n;
|
|
974
|
-
return
|
|
1014
|
+
return Dn(e, n);
|
|
975
1015
|
}
|
|
976
|
-
const
|
|
1016
|
+
const Zs = async (e) => {
|
|
977
1017
|
var o, r, s;
|
|
978
1018
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
979
1019
|
...e,
|
|
@@ -985,15 +1025,15 @@ const Js = async (e) => {
|
|
|
985
1025
|
urlPath: t
|
|
986
1026
|
} : {}
|
|
987
1027
|
},
|
|
988
|
-
options:
|
|
1028
|
+
options: Me(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
989
1029
|
};
|
|
990
1030
|
return {
|
|
991
1031
|
apiKey: n.apiKey,
|
|
992
1032
|
model: n.model,
|
|
993
|
-
content: await
|
|
1033
|
+
content: await ke(n)
|
|
994
1034
|
};
|
|
995
|
-
},
|
|
996
|
-
function
|
|
1035
|
+
}, ve = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1036
|
+
function Ln(e, t, n = {}) {
|
|
997
1037
|
let o, r, s, i = null, l = 0;
|
|
998
1038
|
const a = function() {
|
|
999
1039
|
l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
|
|
@@ -1015,55 +1055,55 @@ function q(e, ...t) {
|
|
|
1015
1055
|
}
|
|
1016
1056
|
return n;
|
|
1017
1057
|
}
|
|
1018
|
-
function
|
|
1058
|
+
function Hn(e) {
|
|
1019
1059
|
for (const t of e)
|
|
1020
1060
|
switch (t.trigger) {
|
|
1021
1061
|
case "pageLoad":
|
|
1022
|
-
|
|
1062
|
+
it(t);
|
|
1023
1063
|
break;
|
|
1024
1064
|
case "scrollInView":
|
|
1025
|
-
|
|
1065
|
+
jn(t);
|
|
1026
1066
|
break;
|
|
1027
1067
|
}
|
|
1028
1068
|
}
|
|
1029
|
-
function
|
|
1069
|
+
function rt(e) {
|
|
1030
1070
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1031
1071
|
}
|
|
1032
|
-
function
|
|
1033
|
-
const n =
|
|
1072
|
+
function st(e, t) {
|
|
1073
|
+
const n = Mn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
|
|
1034
1074
|
for (const l of i)
|
|
1035
1075
|
for (const a of n)
|
|
1036
1076
|
a in l || (l[a] = o[a]);
|
|
1037
1077
|
}
|
|
1038
|
-
function
|
|
1078
|
+
function Mn(e) {
|
|
1039
1079
|
const t = [];
|
|
1040
1080
|
for (const n of e.steps)
|
|
1041
1081
|
for (const o in n.styles)
|
|
1042
1082
|
t.indexOf(o) === -1 && t.push(o);
|
|
1043
1083
|
return t;
|
|
1044
1084
|
}
|
|
1045
|
-
function
|
|
1085
|
+
function it(e) {
|
|
1046
1086
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1047
1087
|
if (!t.length) {
|
|
1048
|
-
|
|
1088
|
+
rt(e.elementId || e.id || "");
|
|
1049
1089
|
return;
|
|
1050
1090
|
}
|
|
1051
1091
|
Array.from(t).forEach((n) => {
|
|
1052
|
-
|
|
1053
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1092
|
+
st(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1093
|
+
n.style.transition = `all ${e.duration}s ${ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1054
1094
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1055
1095
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1056
1096
|
});
|
|
1057
1097
|
});
|
|
1058
1098
|
}
|
|
1059
|
-
function
|
|
1099
|
+
function jn(e) {
|
|
1060
1100
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1061
1101
|
if (!t.length) {
|
|
1062
|
-
|
|
1102
|
+
rt(e.elementId || e.id || "");
|
|
1063
1103
|
return;
|
|
1064
1104
|
}
|
|
1065
1105
|
Array.from(t).forEach((n) => {
|
|
1066
|
-
|
|
1106
|
+
st(e, n);
|
|
1067
1107
|
let o = !1, r = !1;
|
|
1068
1108
|
function s() {
|
|
1069
1109
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -1072,7 +1112,7 @@ function Un(e) {
|
|
|
1072
1112
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1073
1113
|
})) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
|
|
1074
1114
|
}
|
|
1075
|
-
const i =
|
|
1115
|
+
const i = Ln(s, 200, {
|
|
1076
1116
|
leading: !1
|
|
1077
1117
|
});
|
|
1078
1118
|
function l(h) {
|
|
@@ -1084,49 +1124,49 @@ function Un(e) {
|
|
|
1084
1124
|
q(n.style, a);
|
|
1085
1125
|
}
|
|
1086
1126
|
u(), setTimeout(() => {
|
|
1087
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1127
|
+
n.style.transition = `all ${e.duration}s ${ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1088
1128
|
}), document.addEventListener("scroll", i, {
|
|
1089
1129
|
capture: !0,
|
|
1090
1130
|
passive: !0
|
|
1091
1131
|
}), s();
|
|
1092
1132
|
});
|
|
1093
1133
|
}
|
|
1094
|
-
const
|
|
1134
|
+
const at = (e) => Object.entries(e).map(([n, o]) => {
|
|
1095
1135
|
if (typeof o == "string")
|
|
1096
|
-
return `${
|
|
1097
|
-
}).filter(
|
|
1098
|
-
`),
|
|
1136
|
+
return `${ve(n)}: ${o};`;
|
|
1137
|
+
}).filter(U), Kn = (e) => at(e).join(`
|
|
1138
|
+
`), _s = ({
|
|
1099
1139
|
mediaQuery: e,
|
|
1100
1140
|
className: t,
|
|
1101
1141
|
styles: n
|
|
1102
1142
|
}) => {
|
|
1103
1143
|
const o = `.${t} {
|
|
1104
|
-
${
|
|
1144
|
+
${Kn(n)}
|
|
1105
1145
|
}`;
|
|
1106
1146
|
return e ? `${e} {
|
|
1107
1147
|
${o}
|
|
1108
1148
|
}` : o;
|
|
1109
1149
|
};
|
|
1110
|
-
function
|
|
1150
|
+
function qn({
|
|
1111
1151
|
style: e
|
|
1112
1152
|
}) {
|
|
1113
1153
|
return e;
|
|
1114
1154
|
}
|
|
1115
|
-
const
|
|
1155
|
+
const ei = ({
|
|
1116
1156
|
block: e,
|
|
1117
1157
|
context: t
|
|
1118
|
-
}) =>
|
|
1158
|
+
}) => lt(qn({
|
|
1119
1159
|
style: e.style || {},
|
|
1120
1160
|
context: t,
|
|
1121
1161
|
block: e
|
|
1122
1162
|
}));
|
|
1123
|
-
function
|
|
1163
|
+
function lt(e) {
|
|
1124
1164
|
switch (E) {
|
|
1125
1165
|
case "svelte":
|
|
1126
1166
|
case "vue":
|
|
1127
1167
|
case "solid":
|
|
1128
1168
|
case "angular":
|
|
1129
|
-
return
|
|
1169
|
+
return at(e).join(" ");
|
|
1130
1170
|
case "qwik":
|
|
1131
1171
|
case "reactNative":
|
|
1132
1172
|
case "react":
|
|
@@ -1134,7 +1174,7 @@ function it(e) {
|
|
|
1134
1174
|
return e;
|
|
1135
1175
|
}
|
|
1136
1176
|
}
|
|
1137
|
-
const
|
|
1177
|
+
const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, zn = ({
|
|
1138
1178
|
block: e,
|
|
1139
1179
|
registeredComponents: t,
|
|
1140
1180
|
model: n
|
|
@@ -1144,14 +1184,14 @@ const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1144
1184
|
if (!o)
|
|
1145
1185
|
return null;
|
|
1146
1186
|
const r = t[o];
|
|
1147
|
-
if (!r ||
|
|
1187
|
+
if (!r || ct(r, n)) {
|
|
1148
1188
|
console.warn(`
|
|
1149
1189
|
Could not find a registered component named "${o}".
|
|
1150
1190
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1151
1191
|
return;
|
|
1152
1192
|
} else
|
|
1153
1193
|
return r;
|
|
1154
|
-
},
|
|
1194
|
+
}, Jn = ({
|
|
1155
1195
|
block: e,
|
|
1156
1196
|
context: t
|
|
1157
1197
|
}) => {
|
|
@@ -1184,59 +1224,59 @@ const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1184
1224
|
},
|
|
1185
1225
|
block: o
|
|
1186
1226
|
}));
|
|
1187
|
-
},
|
|
1227
|
+
}, Gn = (e, t) => {
|
|
1188
1228
|
var n;
|
|
1189
1229
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1190
1230
|
builderLinkComponent: t
|
|
1191
1231
|
} : {};
|
|
1192
|
-
},
|
|
1232
|
+
}, Yn = (e, t, n) => {
|
|
1193
1233
|
var o;
|
|
1194
1234
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1195
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !
|
|
1235
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !ct(i, n)))
|
|
1196
1236
|
} : {};
|
|
1197
|
-
},
|
|
1237
|
+
}, Xn = (e, t) => {
|
|
1198
1238
|
var n;
|
|
1199
1239
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1200
1240
|
builderBlock: t
|
|
1201
1241
|
} : {};
|
|
1202
|
-
},
|
|
1242
|
+
}, Qn = (e, t) => {
|
|
1203
1243
|
var n;
|
|
1204
1244
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1205
1245
|
builderContext: t
|
|
1206
1246
|
} : {};
|
|
1207
|
-
},
|
|
1247
|
+
}, Zn = () => Promise.resolve().then(() => mo).then((e) => e.default).catch((e) => {
|
|
1208
1248
|
throw console.error(
|
|
1209
1249
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1210
1250
|
e
|
|
1211
1251
|
), e;
|
|
1212
|
-
}),
|
|
1252
|
+
}), _n = () => import("./block-styles-ZraAZYMV.js").then((e) => e.default).catch((e) => {
|
|
1213
1253
|
throw console.error(
|
|
1214
1254
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1215
1255
|
e
|
|
1216
1256
|
), e;
|
|
1217
|
-
}),
|
|
1257
|
+
}), eo = () => import("./block-wrapper-QmVhjKN-.js").then((e) => e.default).catch((e) => {
|
|
1218
1258
|
throw console.error(
|
|
1219
1259
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1220
1260
|
e
|
|
1221
1261
|
), e;
|
|
1222
|
-
}),
|
|
1262
|
+
}), to = () => import("./component-ref-KxI6DtDP.js").then((e) => e.default).catch((e) => {
|
|
1223
1263
|
throw console.error(
|
|
1224
1264
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1225
1265
|
e
|
|
1226
1266
|
), e;
|
|
1227
|
-
}),
|
|
1267
|
+
}), no = () => import("./repeated-block-ldoaTwur.js").then((e) => e.default).catch((e) => {
|
|
1228
1268
|
throw console.error(
|
|
1229
1269
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1230
1270
|
e
|
|
1231
1271
|
), e;
|
|
1232
|
-
}),
|
|
1272
|
+
}), oo = b({
|
|
1233
1273
|
name: "block",
|
|
1234
1274
|
components: {
|
|
1235
|
-
BlockStyles: j(
|
|
1236
|
-
RepeatedBlock: j(
|
|
1237
|
-
ComponentRef: j(
|
|
1238
|
-
BlockWrapper: j(
|
|
1239
|
-
DynamicDiv: j(
|
|
1275
|
+
BlockStyles: j(_n),
|
|
1276
|
+
RepeatedBlock: j(no),
|
|
1277
|
+
ComponentRef: j(to),
|
|
1278
|
+
BlockWrapper: j(eo),
|
|
1279
|
+
DynamicDiv: j(Zn)
|
|
1240
1280
|
},
|
|
1241
1281
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1242
1282
|
data() {
|
|
@@ -1249,7 +1289,7 @@ const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1249
1289
|
},
|
|
1250
1290
|
mounted() {
|
|
1251
1291
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1252
|
-
t && e &&
|
|
1292
|
+
t && e && Hn(
|
|
1253
1293
|
t.map((n) => ({
|
|
1254
1294
|
...n,
|
|
1255
1295
|
elementId: e
|
|
@@ -1260,14 +1300,14 @@ const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1260
1300
|
},
|
|
1261
1301
|
computed: {
|
|
1262
1302
|
repeatItem() {
|
|
1263
|
-
return
|
|
1303
|
+
return Jn({
|
|
1264
1304
|
block: this.block,
|
|
1265
1305
|
context: this.context
|
|
1266
1306
|
});
|
|
1267
1307
|
},
|
|
1268
1308
|
processedBlock() {
|
|
1269
1309
|
var t;
|
|
1270
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1310
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Qt({
|
|
1271
1311
|
block: this.block,
|
|
1272
1312
|
localState: this.context.localState,
|
|
1273
1313
|
rootState: this.context.rootState,
|
|
@@ -1276,7 +1316,7 @@ const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1276
1316
|
});
|
|
1277
1317
|
},
|
|
1278
1318
|
blockComponent() {
|
|
1279
|
-
return
|
|
1319
|
+
return zn({
|
|
1280
1320
|
block: this.processedBlock,
|
|
1281
1321
|
registeredComponents: this.registeredComponents,
|
|
1282
1322
|
model: this.context.model
|
|
@@ -1303,11 +1343,11 @@ const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1303
1343
|
blockChildren: this.processedBlock.children ?? [],
|
|
1304
1344
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1305
1345
|
componentOptions: {
|
|
1306
|
-
...
|
|
1307
|
-
...
|
|
1308
|
-
...
|
|
1309
|
-
...
|
|
1310
|
-
...
|
|
1346
|
+
...Mt(this.processedBlock, this.context),
|
|
1347
|
+
...Xn(this.blockComponent, this.processedBlock),
|
|
1348
|
+
...Qn(this.blockComponent, this.context),
|
|
1349
|
+
...Gn(this.blockComponent, this.linkComponent),
|
|
1350
|
+
...Yn(
|
|
1311
1351
|
this.blockComponent,
|
|
1312
1352
|
this.registeredComponents,
|
|
1313
1353
|
this.context.model
|
|
@@ -1323,7 +1363,7 @@ const at = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1323
1363
|
}
|
|
1324
1364
|
}
|
|
1325
1365
|
});
|
|
1326
|
-
function
|
|
1366
|
+
function ro(e, t, n, o, r, s) {
|
|
1327
1367
|
var m;
|
|
1328
1368
|
const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), h = k("RepeatedBlock");
|
|
1329
1369
|
return e.canShowBlock ? (c(), p(I, { key: 0 }, [
|
|
@@ -1388,10 +1428,10 @@ function to(e, t, n, o, r, s) {
|
|
|
1388
1428
|
], 64))
|
|
1389
1429
|
], 64)) : S("", !0);
|
|
1390
1430
|
}
|
|
1391
|
-
const
|
|
1431
|
+
const dt = /* @__PURE__ */ g(oo, [["render", ro]]), ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1392
1432
|
__proto__: null,
|
|
1393
|
-
default:
|
|
1394
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1433
|
+
default: dt
|
|
1434
|
+
}, Symbol.toStringTag, { value: "Module" })), so = b({
|
|
1395
1435
|
name: "builder-blocks-wrapper",
|
|
1396
1436
|
props: [
|
|
1397
1437
|
"blocks",
|
|
@@ -1416,8 +1456,8 @@ const lt = /* @__PURE__ */ b(eo, [["render", to]]), Qs = /* @__PURE__ */ Object.
|
|
|
1416
1456
|
dataPath() {
|
|
1417
1457
|
if (!this.path)
|
|
1418
1458
|
return;
|
|
1419
|
-
const e = "component.options.";
|
|
1420
|
-
return this.path.startsWith(e) ? this.path : `${
|
|
1459
|
+
const e = "this.", t = "component.options.";
|
|
1460
|
+
return this.path.startsWith(e) ? this.path.replace(e, "") : this.path.startsWith(t) ? this.path : `${t}${this.path || ""}`;
|
|
1421
1461
|
}
|
|
1422
1462
|
},
|
|
1423
1463
|
methods: {
|
|
@@ -1449,10 +1489,10 @@ const lt = /* @__PURE__ */ b(eo, [["render", to]]), Qs = /* @__PURE__ */ Object.
|
|
|
1449
1489
|
}
|
|
1450
1490
|
}
|
|
1451
1491
|
});
|
|
1452
|
-
function
|
|
1492
|
+
function io(e, t, n, o, r, s) {
|
|
1453
1493
|
return c(), y(K(e.BlocksWrapper), C({
|
|
1454
1494
|
ref: "blocksWrapperRef",
|
|
1455
|
-
class: e.className + " component-
|
|
1495
|
+
class: e.className + " component-tqyw9m0iue",
|
|
1456
1496
|
"builder-path": e.dataPath,
|
|
1457
1497
|
"builder-parent-id": e.parent,
|
|
1458
1498
|
style: e.styleProp,
|
|
@@ -1466,9 +1506,9 @@ function oo(e, t, n, o, r, s) {
|
|
|
1466
1506
|
_: 3
|
|
1467
1507
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1468
1508
|
}
|
|
1469
|
-
const
|
|
1509
|
+
const ao = /* @__PURE__ */ g(so, [["render", io], ["__scopeId", "data-v-4755f88c"]]), lo = b({
|
|
1470
1510
|
name: "builder-blocks",
|
|
1471
|
-
components: { BlocksWrapper:
|
|
1511
|
+
components: { BlocksWrapper: ao, Block: dt },
|
|
1472
1512
|
props: [
|
|
1473
1513
|
"blocks",
|
|
1474
1514
|
"parent",
|
|
@@ -1481,10 +1521,10 @@ const ro = /* @__PURE__ */ b(no, [["render", oo], ["__scopeId", "data-v-ba2bc5c0
|
|
|
1481
1521
|
],
|
|
1482
1522
|
inject: {
|
|
1483
1523
|
builderContext: le.key,
|
|
1484
|
-
componentsContext:
|
|
1524
|
+
componentsContext: De.key
|
|
1485
1525
|
}
|
|
1486
1526
|
});
|
|
1487
|
-
function
|
|
1527
|
+
function co(e, t, n, o, r, s) {
|
|
1488
1528
|
var a, u, h, m;
|
|
1489
1529
|
const i = k("Block"), l = k("BlocksWrapper");
|
|
1490
1530
|
return c(), y(l, {
|
|
@@ -1511,21 +1551,21 @@ function io(e, t, n, o, r, s) {
|
|
|
1511
1551
|
_: 1
|
|
1512
1552
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1513
1553
|
}
|
|
1514
|
-
const H = /* @__PURE__ */
|
|
1554
|
+
const H = /* @__PURE__ */ g(lo, [["render", co]]), uo = b({
|
|
1515
1555
|
name: "dynamic-div",
|
|
1516
1556
|
props: []
|
|
1517
1557
|
});
|
|
1518
|
-
function
|
|
1558
|
+
function po(e, t, n, o, r, s) {
|
|
1519
1559
|
return c(), p("div", null, [
|
|
1520
1560
|
B(e.$slots, "default")
|
|
1521
1561
|
]);
|
|
1522
1562
|
}
|
|
1523
|
-
const X = /* @__PURE__ */
|
|
1563
|
+
const X = /* @__PURE__ */ g(uo, [["render", po]]), mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1524
1564
|
__proto__: null,
|
|
1525
1565
|
default: X
|
|
1526
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1566
|
+
}, Symbol.toStringTag, { value: "Module" })), Se = b({
|
|
1527
1567
|
render() {
|
|
1528
|
-
return
|
|
1568
|
+
return Ne("style", {
|
|
1529
1569
|
innerHTML: this.styles,
|
|
1530
1570
|
"data-id": this.id,
|
|
1531
1571
|
nonce: this.nonce
|
|
@@ -1533,7 +1573,7 @@ const X = /* @__PURE__ */ b(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1533
1573
|
},
|
|
1534
1574
|
name: "inlined-styles",
|
|
1535
1575
|
props: ["styles", "id", "nonce"]
|
|
1536
|
-
}),
|
|
1576
|
+
}), ut = {
|
|
1537
1577
|
small: {
|
|
1538
1578
|
min: 320,
|
|
1539
1579
|
default: 321,
|
|
@@ -1549,11 +1589,11 @@ const X = /* @__PURE__ */ b(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1549
1589
|
default: 991,
|
|
1550
1590
|
max: 1200
|
|
1551
1591
|
}
|
|
1552
|
-
},
|
|
1592
|
+
}, ni = (e, t = ut) => `@media (max-width: ${t[e].max}px)`, ho = ({
|
|
1553
1593
|
small: e,
|
|
1554
1594
|
medium: t
|
|
1555
1595
|
}) => {
|
|
1556
|
-
const n = pe(
|
|
1596
|
+
const n = pe(ut);
|
|
1557
1597
|
if (!e || !t)
|
|
1558
1598
|
return n;
|
|
1559
1599
|
const o = Math.floor(e / 2);
|
|
@@ -1575,10 +1615,10 @@ const X = /* @__PURE__ */ b(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1575
1615
|
min: s,
|
|
1576
1616
|
default: s + 1
|
|
1577
1617
|
}, n;
|
|
1578
|
-
},
|
|
1618
|
+
}, fo = (e) => `builder-columns ${e}-breakpoints`, bo = b({
|
|
1579
1619
|
name: "builder-columns",
|
|
1580
1620
|
components: {
|
|
1581
|
-
InlinedStyles:
|
|
1621
|
+
InlinedStyles: Se,
|
|
1582
1622
|
DynamicRenderer: me,
|
|
1583
1623
|
Blocks: H,
|
|
1584
1624
|
DynamicDiv: X
|
|
@@ -1594,7 +1634,7 @@ const X = /* @__PURE__ */ b(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1594
1634
|
"builderComponents"
|
|
1595
1635
|
],
|
|
1596
1636
|
data() {
|
|
1597
|
-
return { TARGET: E, getColumnsClass:
|
|
1637
|
+
return { TARGET: E, getColumnsClass: fo };
|
|
1598
1638
|
},
|
|
1599
1639
|
computed: {
|
|
1600
1640
|
gutterSize() {
|
|
@@ -1673,7 +1713,7 @@ const X = /* @__PURE__ */ b(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1673
1713
|
},
|
|
1674
1714
|
getWidthForBreakpointSize(e) {
|
|
1675
1715
|
var n, o;
|
|
1676
|
-
return
|
|
1716
|
+
return ho(
|
|
1677
1717
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1678
1718
|
)[e].max;
|
|
1679
1719
|
},
|
|
@@ -1711,12 +1751,12 @@ const X = /* @__PURE__ */ b(ao, [["render", lo]]), co = /* @__PURE__ */ Object.f
|
|
|
1711
1751
|
href: e.link
|
|
1712
1752
|
} : {},
|
|
1713
1753
|
[Z()]: "builder-column",
|
|
1714
|
-
style:
|
|
1754
|
+
style: lt(this.columnCssVars(t))
|
|
1715
1755
|
};
|
|
1716
1756
|
}
|
|
1717
1757
|
}
|
|
1718
1758
|
});
|
|
1719
|
-
function
|
|
1759
|
+
function go(e, t, n, o, r, s) {
|
|
1720
1760
|
var u;
|
|
1721
1761
|
const i = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1722
1762
|
return c(), p("div", C({
|
|
@@ -1752,32 +1792,32 @@ function ho(e, t, n, o, r, s) {
|
|
|
1752
1792
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1753
1793
|
], 16);
|
|
1754
1794
|
}
|
|
1755
|
-
const
|
|
1795
|
+
const yo = /* @__PURE__ */ g(bo, [["render", go], ["__scopeId", "data-v-bdc9da04"]]), ko = b({
|
|
1756
1796
|
name: "builder-fragment-component",
|
|
1757
1797
|
props: []
|
|
1758
1798
|
});
|
|
1759
|
-
function
|
|
1799
|
+
function vo(e, t, n, o, r, s) {
|
|
1760
1800
|
return c(), p("span", null, [
|
|
1761
1801
|
B(e.$slots, "default")
|
|
1762
1802
|
]);
|
|
1763
1803
|
}
|
|
1764
|
-
const
|
|
1765
|
-
function
|
|
1804
|
+
const So = /* @__PURE__ */ g(ko, [["render", vo]]);
|
|
1805
|
+
function Ae(e) {
|
|
1766
1806
|
return e.replace(/http(s)?:/, "");
|
|
1767
1807
|
}
|
|
1768
|
-
function
|
|
1808
|
+
function Co(e = "", t, n) {
|
|
1769
1809
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1770
1810
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1771
1811
|
}
|
|
1772
|
-
function
|
|
1812
|
+
function To(e, t) {
|
|
1773
1813
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1774
1814
|
return e;
|
|
1775
1815
|
if (t === "master")
|
|
1776
|
-
return
|
|
1816
|
+
return Ae(e);
|
|
1777
1817
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1778
1818
|
if (n) {
|
|
1779
1819
|
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
1780
|
-
return
|
|
1820
|
+
return Ae(`${o[0]}_${s}${r}`);
|
|
1781
1821
|
}
|
|
1782
1822
|
return null;
|
|
1783
1823
|
}
|
|
@@ -1788,11 +1828,11 @@ function oe(e) {
|
|
|
1788
1828
|
if (e.match(/builder\.io/)) {
|
|
1789
1829
|
let n = e;
|
|
1790
1830
|
const o = Number(e.split("?width=")[1]);
|
|
1791
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1831
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Co(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1792
1832
|
}
|
|
1793
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1833
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [To(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1794
1834
|
}
|
|
1795
|
-
const
|
|
1835
|
+
const wo = b({
|
|
1796
1836
|
name: "builder-image",
|
|
1797
1837
|
props: [
|
|
1798
1838
|
"image",
|
|
@@ -1841,11 +1881,11 @@ const So = g({
|
|
|
1841
1881
|
return this.aspectRatio ? e : void 0;
|
|
1842
1882
|
}
|
|
1843
1883
|
}
|
|
1844
|
-
}),
|
|
1884
|
+
}), Io = ["srcset"], $o = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], Ro = {
|
|
1845
1885
|
key: 2,
|
|
1846
1886
|
class: "div-29wpyomtntv-2"
|
|
1847
1887
|
};
|
|
1848
|
-
function
|
|
1888
|
+
function Eo(e, t, n, o, r, s) {
|
|
1849
1889
|
var i, l, a, u, h, m;
|
|
1850
1890
|
return c(), p(I, null, [
|
|
1851
1891
|
z("picture", null, [
|
|
@@ -1853,46 +1893,46 @@ function Io(e, t, n, o, r, s) {
|
|
|
1853
1893
|
key: 0,
|
|
1854
1894
|
type: "image/webp",
|
|
1855
1895
|
srcset: e.webpSrcSet
|
|
1856
|
-
}, null, 8,
|
|
1896
|
+
}, null, 8, Io)) : S("", !0),
|
|
1857
1897
|
z("img", {
|
|
1858
1898
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1859
1899
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1860
1900
|
alt: e.altText,
|
|
1861
1901
|
role: e.altText ? void 0 : "presentation",
|
|
1862
|
-
style:
|
|
1902
|
+
style: O({
|
|
1863
1903
|
objectPosition: e.backgroundPosition || "center",
|
|
1864
1904
|
objectFit: e.backgroundSize || "cover",
|
|
1865
1905
|
...e.aspectRatioCss
|
|
1866
1906
|
}),
|
|
1867
|
-
class:
|
|
1907
|
+
class: J(
|
|
1868
1908
|
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
1869
1909
|
),
|
|
1870
1910
|
src: e.image,
|
|
1871
1911
|
srcset: e.srcSetToUse,
|
|
1872
1912
|
sizes: e.sizes
|
|
1873
|
-
}, null, 14,
|
|
1913
|
+
}, null, 14, $o)
|
|
1874
1914
|
]),
|
|
1875
1915
|
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (c(), p("div", {
|
|
1876
1916
|
key: 0,
|
|
1877
1917
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1878
|
-
style:
|
|
1918
|
+
style: O({
|
|
1879
1919
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1880
1920
|
})
|
|
1881
1921
|
}, null, 4)) : S("", !0),
|
|
1882
1922
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1883
|
-
!e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? (c(), p("div",
|
|
1923
|
+
!e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? (c(), p("div", Ro, [
|
|
1884
1924
|
B(e.$slots, "default", {}, void 0, !0)
|
|
1885
1925
|
])) : S("", !0)
|
|
1886
1926
|
], 64);
|
|
1887
1927
|
}
|
|
1888
|
-
const
|
|
1928
|
+
const Po = /* @__PURE__ */ g(wo, [["render", Eo], ["__scopeId", "data-v-33d4f353"]]), Bo = b({
|
|
1889
1929
|
name: "builder-section-component",
|
|
1890
1930
|
props: ["attributes", "maxWidth"],
|
|
1891
1931
|
data() {
|
|
1892
1932
|
return { filterAttrs: V };
|
|
1893
1933
|
}
|
|
1894
1934
|
});
|
|
1895
|
-
function
|
|
1935
|
+
function Ao(e, t, n, o, r, s) {
|
|
1896
1936
|
return c(), p("section", C({
|
|
1897
1937
|
style: {
|
|
1898
1938
|
width: "100%",
|
|
@@ -1906,11 +1946,11 @@ function Eo(e, t, n, o, r, s) {
|
|
|
1906
1946
|
marginLeft: "auto",
|
|
1907
1947
|
marginRight: "auto"
|
|
1908
1948
|
}
|
|
1909
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1949
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1910
1950
|
B(e.$slots, "default")
|
|
1911
1951
|
], 16);
|
|
1912
1952
|
}
|
|
1913
|
-
const
|
|
1953
|
+
const xo = /* @__PURE__ */ g(Bo, [["render", Ao]]), re = {
|
|
1914
1954
|
"@type": "@builder.io/sdk:Element",
|
|
1915
1955
|
layerName: "Accordion item title",
|
|
1916
1956
|
responsiveStyles: {
|
|
@@ -1970,7 +2010,7 @@ const Po = /* @__PURE__ */ b(Ro, [["render", Eo]]), re = {
|
|
|
1970
2010
|
}
|
|
1971
2011
|
}
|
|
1972
2012
|
}]
|
|
1973
|
-
},
|
|
2013
|
+
}, Vo = {
|
|
1974
2014
|
name: "Builder:Accordion",
|
|
1975
2015
|
canHaveChildren: !0,
|
|
1976
2016
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2034,7 +2074,7 @@ const Po = /* @__PURE__ */ b(Ro, [["render", Eo]]), re = {
|
|
|
2034
2074
|
builderComponents: !0,
|
|
2035
2075
|
builderLinkComponent: !0
|
|
2036
2076
|
}
|
|
2037
|
-
},
|
|
2077
|
+
}, Wo = (e) => e.toString(), No = b({
|
|
2038
2078
|
name: "builder-accordion",
|
|
2039
2079
|
components: { Blocks: H },
|
|
2040
2080
|
props: [
|
|
@@ -2048,7 +2088,7 @@ const Po = /* @__PURE__ */ b(Ro, [["render", Eo]]), re = {
|
|
|
2048
2088
|
"builderLinkComponent"
|
|
2049
2089
|
],
|
|
2050
2090
|
data() {
|
|
2051
|
-
return { open: [], convertOrderNumberToString:
|
|
2091
|
+
return { open: [], convertOrderNumberToString: Wo };
|
|
2052
2092
|
},
|
|
2053
2093
|
computed: {
|
|
2054
2094
|
onlyOneAtATime() {
|
|
@@ -2129,17 +2169,17 @@ const Po = /* @__PURE__ */ b(Ro, [["render", Eo]]), re = {
|
|
|
2129
2169
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2130
2170
|
}
|
|
2131
2171
|
}
|
|
2132
|
-
}),
|
|
2133
|
-
function
|
|
2172
|
+
}), Fo = ["data-index", "onClick"];
|
|
2173
|
+
function Oo(e, t, n, o, r, s) {
|
|
2134
2174
|
const i = k("Blocks");
|
|
2135
2175
|
return c(), p("div", {
|
|
2136
2176
|
class: "builder-accordion",
|
|
2137
|
-
style:
|
|
2177
|
+
style: O(e.accordionStyles)
|
|
2138
2178
|
}, [
|
|
2139
2179
|
(c(!0), p(I, null, W(e.items, (l, a) => (c(), p(I, { key: a }, [
|
|
2140
2180
|
z("div", {
|
|
2141
|
-
class:
|
|
2142
|
-
style:
|
|
2181
|
+
class: J(e.getAccordionTitleClassName(a)),
|
|
2182
|
+
style: O({
|
|
2143
2183
|
...e.accordionTitleStyles,
|
|
2144
2184
|
...e.grid && {
|
|
2145
2185
|
width: e.gridRowWidth,
|
|
@@ -2157,11 +2197,11 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2157
2197
|
registeredComponents: e.builderComponents,
|
|
2158
2198
|
linkComponent: e.builderLinkComponent
|
|
2159
2199
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2160
|
-
], 14,
|
|
2200
|
+
], 14, Fo),
|
|
2161
2201
|
e.open.includes(a) ? (c(), p("div", {
|
|
2162
2202
|
key: 0,
|
|
2163
|
-
class:
|
|
2164
|
-
style:
|
|
2203
|
+
class: J(e.getAccordionDetailClassName(a)),
|
|
2204
|
+
style: O(e.accordionDetailStyles)
|
|
2165
2205
|
}, [
|
|
2166
2206
|
R(i, {
|
|
2167
2207
|
blocks: l.detail,
|
|
@@ -2175,7 +2215,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2175
2215
|
], 64))), 128))
|
|
2176
2216
|
], 4);
|
|
2177
2217
|
}
|
|
2178
|
-
const
|
|
2218
|
+
const Do = /* @__PURE__ */ g(No, [["render", Oo]]), Uo = {
|
|
2179
2219
|
name: "Core:Button",
|
|
2180
2220
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2181
2221
|
defaultStyles: {
|
|
@@ -2211,7 +2251,7 @@ const No = /* @__PURE__ */ b(Ao, [["render", Wo]]), Fo = {
|
|
|
2211
2251
|
shouldReceiveBuilderProps: {
|
|
2212
2252
|
builderLinkComponent: !0
|
|
2213
2253
|
}
|
|
2214
|
-
},
|
|
2254
|
+
}, Lo = {
|
|
2215
2255
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2216
2256
|
name: "Columns",
|
|
2217
2257
|
isRSC: !0,
|
|
@@ -2418,13 +2458,13 @@ const No = /* @__PURE__ */ b(Ao, [["render", Wo]]), Fo = {
|
|
|
2418
2458
|
builderComponents: !0,
|
|
2419
2459
|
builderLinkComponent: !0
|
|
2420
2460
|
}
|
|
2421
|
-
},
|
|
2461
|
+
}, Ho = {
|
|
2422
2462
|
name: "Fragment",
|
|
2423
2463
|
static: !0,
|
|
2424
2464
|
hidden: !0,
|
|
2425
2465
|
canHaveChildren: !0,
|
|
2426
2466
|
noWrap: !0
|
|
2427
|
-
},
|
|
2467
|
+
}, Ce = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Mo = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], jo = {
|
|
2428
2468
|
name: "Image",
|
|
2429
2469
|
static: !0,
|
|
2430
2470
|
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",
|
|
@@ -2439,7 +2479,7 @@ const No = /* @__PURE__ */ b(Ao, [["render", Wo]]), Fo = {
|
|
|
2439
2479
|
name: "image",
|
|
2440
2480
|
type: "file",
|
|
2441
2481
|
bubble: !0,
|
|
2442
|
-
allowedFileTypes:
|
|
2482
|
+
allowedFileTypes: Ce,
|
|
2443
2483
|
required: !0,
|
|
2444
2484
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2445
2485
|
onChange: (e) => {
|
|
@@ -2532,7 +2572,17 @@ const No = /* @__PURE__ */ b(Ao, [["render", Wo]]), Fo = {
|
|
|
2532
2572
|
shouldReceiveBuilderProps: {
|
|
2533
2573
|
builderBlock: !0
|
|
2534
2574
|
}
|
|
2535
|
-
},
|
|
2575
|
+
}, pt = b({
|
|
2576
|
+
render() {
|
|
2577
|
+
return Ne("script", {
|
|
2578
|
+
innerHTML: this.scriptStr,
|
|
2579
|
+
"data-id": this.id,
|
|
2580
|
+
nonce: this.nonce
|
|
2581
|
+
});
|
|
2582
|
+
},
|
|
2583
|
+
name: "inlined-script",
|
|
2584
|
+
props: ["scriptStr", "id", "nonce"]
|
|
2585
|
+
}), Ko = {
|
|
2536
2586
|
name: "Core:Section",
|
|
2537
2587
|
static: !0,
|
|
2538
2588
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2571,7 +2621,7 @@ const No = /* @__PURE__ */ b(Ao, [["render", Wo]]), Fo = {
|
|
|
2571
2621
|
}
|
|
2572
2622
|
}
|
|
2573
2623
|
}]
|
|
2574
|
-
},
|
|
2624
|
+
}, qo = {
|
|
2575
2625
|
name: "Slot",
|
|
2576
2626
|
isRSC: !0,
|
|
2577
2627
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2588,12 +2638,12 @@ const No = /* @__PURE__ */ b(Ao, [["render", Wo]]), Fo = {
|
|
|
2588
2638
|
builderContext: !0,
|
|
2589
2639
|
builderComponents: !0
|
|
2590
2640
|
}
|
|
2591
|
-
},
|
|
2641
|
+
}, zo = b({
|
|
2592
2642
|
name: "builder-slot",
|
|
2593
2643
|
components: { Blocks: H },
|
|
2594
2644
|
props: ["builderContext", "name", "builderComponents"]
|
|
2595
2645
|
});
|
|
2596
|
-
function
|
|
2646
|
+
function Jo(e, t, n, o, r, s) {
|
|
2597
2647
|
var l, a, u;
|
|
2598
2648
|
const i = k("Blocks");
|
|
2599
2649
|
return c(), p("div", C(
|
|
@@ -2613,7 +2663,7 @@ function Ko(e, t, n, o, r, s) {
|
|
|
2613
2663
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2614
2664
|
], 16);
|
|
2615
2665
|
}
|
|
2616
|
-
const
|
|
2666
|
+
const Go = /* @__PURE__ */ g(zo, [["render", Jo]]), Yo = {
|
|
2617
2667
|
name: "Symbol",
|
|
2618
2668
|
noWrap: !0,
|
|
2619
2669
|
static: !0,
|
|
@@ -2690,7 +2740,7 @@ const qo = /* @__PURE__ */ b(jo, [["render", Ko]]), zo = {
|
|
|
2690
2740
|
text: "New tab content "
|
|
2691
2741
|
}
|
|
2692
2742
|
}
|
|
2693
|
-
},
|
|
2743
|
+
}, Xo = {
|
|
2694
2744
|
name: "Builder: Tabs",
|
|
2695
2745
|
inputs: [{
|
|
2696
2746
|
name: "tabs",
|
|
@@ -2793,7 +2843,7 @@ const qo = /* @__PURE__ */ b(jo, [["render", Ko]]), zo = {
|
|
|
2793
2843
|
builderComponents: !0,
|
|
2794
2844
|
builderLinkComponent: !0
|
|
2795
2845
|
}
|
|
2796
|
-
},
|
|
2846
|
+
}, Qo = b({
|
|
2797
2847
|
name: "builder-tabs",
|
|
2798
2848
|
components: { Blocks: H },
|
|
2799
2849
|
props: [
|
|
@@ -2818,13 +2868,13 @@ const qo = /* @__PURE__ */ b(jo, [["render", Ko]]), zo = {
|
|
|
2818
2868
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2819
2869
|
}
|
|
2820
2870
|
}
|
|
2821
|
-
}),
|
|
2822
|
-
function
|
|
2871
|
+
}), Zo = ["onClick"], _o = { key: 0 };
|
|
2872
|
+
function er(e, t, n, o, r, s) {
|
|
2823
2873
|
const i = k("Blocks");
|
|
2824
2874
|
return c(), p("div", null, [
|
|
2825
2875
|
z("div", {
|
|
2826
2876
|
class: "builder-tabs-wrap",
|
|
2827
|
-
style:
|
|
2877
|
+
style: O({
|
|
2828
2878
|
display: "flex",
|
|
2829
2879
|
flexDirection: "row",
|
|
2830
2880
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
@@ -2833,8 +2883,8 @@ function Qo(e, t, n, o, r, s) {
|
|
|
2833
2883
|
}, [
|
|
2834
2884
|
(c(!0), p(I, null, W(e.tabs, (l, a) => (c(), p("span", {
|
|
2835
2885
|
key: a,
|
|
2836
|
-
class:
|
|
2837
|
-
style:
|
|
2886
|
+
class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2887
|
+
style: O({
|
|
2838
2888
|
...e.activeTab === a ? e.activeTabStyle : {}
|
|
2839
2889
|
}),
|
|
2840
2890
|
onClick: async (u) => e.onClick(a)
|
|
@@ -2847,9 +2897,9 @@ function Qo(e, t, n, o, r, s) {
|
|
|
2847
2897
|
registeredComponents: e.builderComponents,
|
|
2848
2898
|
linkComponent: e.builderLinkComponent
|
|
2849
2899
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2850
|
-
], 14,
|
|
2900
|
+
], 14, Zo))), 128))
|
|
2851
2901
|
], 4),
|
|
2852
|
-
e.activeTabContent(e.activeTab) ? (c(), p("div",
|
|
2902
|
+
e.activeTabContent(e.activeTab) ? (c(), p("div", _o, [
|
|
2853
2903
|
R(i, {
|
|
2854
2904
|
parent: e.builderBlock.id,
|
|
2855
2905
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -2861,7 +2911,7 @@ function Qo(e, t, n, o, r, s) {
|
|
|
2861
2911
|
])) : S("", !0)
|
|
2862
2912
|
]);
|
|
2863
2913
|
}
|
|
2864
|
-
const
|
|
2914
|
+
const tr = /* @__PURE__ */ g(Qo, [["render", er]]), nr = {
|
|
2865
2915
|
shouldReceiveBuilderProps: {
|
|
2866
2916
|
builderBlock: !1,
|
|
2867
2917
|
builderContext: !0
|
|
@@ -2883,11 +2933,11 @@ const Zo = /* @__PURE__ */ b(Jo, [["render", Qo]]), _o = {
|
|
|
2883
2933
|
height: "auto",
|
|
2884
2934
|
textAlign: "center"
|
|
2885
2935
|
}
|
|
2886
|
-
},
|
|
2936
|
+
}, or = b({
|
|
2887
2937
|
name: "builder-text",
|
|
2888
2938
|
props: ["text"]
|
|
2889
|
-
}),
|
|
2890
|
-
function
|
|
2939
|
+
}), rr = ["innerHTML"];
|
|
2940
|
+
function sr(e, t, n, o, r, s) {
|
|
2891
2941
|
var i;
|
|
2892
2942
|
return c(), p("div", {
|
|
2893
2943
|
class: "builder-text",
|
|
@@ -2895,9 +2945,9 @@ function nr(e, t, n, o, r, s) {
|
|
|
2895
2945
|
style: {
|
|
2896
2946
|
outline: "none"
|
|
2897
2947
|
}
|
|
2898
|
-
}, null, 8,
|
|
2948
|
+
}, null, 8, rr);
|
|
2899
2949
|
}
|
|
2900
|
-
const
|
|
2950
|
+
const ir = /* @__PURE__ */ g(or, [["render", sr]]), ar = {
|
|
2901
2951
|
name: "Custom Code",
|
|
2902
2952
|
static: !0,
|
|
2903
2953
|
requiredPermissions: ["editCode"],
|
|
@@ -2919,7 +2969,7 @@ const or = /* @__PURE__ */ b(er, [["render", nr]]), rr = {
|
|
|
2919
2969
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2920
2970
|
advanced: !0
|
|
2921
2971
|
}]
|
|
2922
|
-
},
|
|
2972
|
+
}, lr = b({
|
|
2923
2973
|
name: "builder-custom-code",
|
|
2924
2974
|
props: ["replaceNodes", "code"],
|
|
2925
2975
|
data() {
|
|
@@ -2953,15 +3003,15 @@ const or = /* @__PURE__ */ b(er, [["render", nr]]), rr = {
|
|
|
2953
3003
|
}
|
|
2954
3004
|
}
|
|
2955
3005
|
}
|
|
2956
|
-
}),
|
|
2957
|
-
function
|
|
3006
|
+
}), cr = ["innerHTML"];
|
|
3007
|
+
function dr(e, t, n, o, r, s) {
|
|
2958
3008
|
return c(), p("div", {
|
|
2959
3009
|
ref: "elementRef",
|
|
2960
|
-
class:
|
|
3010
|
+
class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2961
3011
|
innerHTML: e.code
|
|
2962
|
-
}, null, 10,
|
|
3012
|
+
}, null, 10, cr);
|
|
2963
3013
|
}
|
|
2964
|
-
const
|
|
3014
|
+
const ur = /* @__PURE__ */ g(lr, [["render", dr]]), pr = {
|
|
2965
3015
|
name: "Embed",
|
|
2966
3016
|
static: !0,
|
|
2967
3017
|
inputs: [{
|
|
@@ -2976,7 +3026,7 @@ const lr = /* @__PURE__ */ b(sr, [["render", ar]]), cr = {
|
|
|
2976
3026
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2977
3027
|
hideFromUI: !0
|
|
2978
3028
|
}]
|
|
2979
|
-
},
|
|
3029
|
+
}, mr = ["text/javascript", "application/javascript", "application/ecmascript"], hr = (e) => mr.includes(e.type), fr = b({
|
|
2980
3030
|
name: "builder-embed",
|
|
2981
3031
|
props: ["content"],
|
|
2982
3032
|
data() {
|
|
@@ -3009,7 +3059,7 @@ const lr = /* @__PURE__ */ b(sr, [["render", ar]]), cr = {
|
|
|
3009
3059
|
this.scriptsInserted.push(n.src);
|
|
3010
3060
|
const o = document.createElement("script");
|
|
3011
3061
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3012
|
-
} else if (
|
|
3062
|
+
} else if (hr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3013
3063
|
try {
|
|
3014
3064
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3015
3065
|
} catch (o) {
|
|
@@ -3018,15 +3068,15 @@ const lr = /* @__PURE__ */ b(sr, [["render", ar]]), cr = {
|
|
|
3018
3068
|
}
|
|
3019
3069
|
}
|
|
3020
3070
|
}
|
|
3021
|
-
}),
|
|
3022
|
-
function
|
|
3071
|
+
}), br = ["innerHTML"];
|
|
3072
|
+
function gr(e, t, n, o, r, s) {
|
|
3023
3073
|
return c(), p("div", {
|
|
3024
3074
|
class: "builder-embed",
|
|
3025
3075
|
ref: "elem",
|
|
3026
3076
|
innerHTML: e.content
|
|
3027
|
-
}, null, 8,
|
|
3077
|
+
}, null, 8, br);
|
|
3028
3078
|
}
|
|
3029
|
-
const
|
|
3079
|
+
const yr = /* @__PURE__ */ g(fr, [["render", gr]]), kr = {
|
|
3030
3080
|
name: "Form:Form",
|
|
3031
3081
|
// editableTags: ['builder-form-error']
|
|
3032
3082
|
defaults: {
|
|
@@ -3263,10 +3313,10 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), gr = {
|
|
|
3263
3313
|
builderComponents: !0,
|
|
3264
3314
|
builderLinkComponent: !0
|
|
3265
3315
|
}
|
|
3266
|
-
},
|
|
3316
|
+
}, vr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Sr = () => {
|
|
3267
3317
|
const e = process.env.NODE_ENV || "production";
|
|
3268
|
-
return
|
|
3269
|
-
},
|
|
3318
|
+
return vr.includes(e) ? e : "production";
|
|
3319
|
+
}, Cr = b({
|
|
3270
3320
|
name: "builder-form-component",
|
|
3271
3321
|
components: { Blocks: H },
|
|
3272
3322
|
props: [
|
|
@@ -3354,7 +3404,7 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), gr = {
|
|
|
3354
3404
|
else {
|
|
3355
3405
|
const d = {};
|
|
3356
3406
|
Array.from(l).forEach(({ value: f, key: v }) => {
|
|
3357
|
-
|
|
3407
|
+
Fe(d, v, f);
|
|
3358
3408
|
}), s = JSON.stringify(d);
|
|
3359
3409
|
}
|
|
3360
3410
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3366,10 +3416,10 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), gr = {
|
|
|
3366
3416
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3367
3417
|
return;
|
|
3368
3418
|
this.formState = "sending";
|
|
3369
|
-
const h = `${
|
|
3419
|
+
const h = `${Sr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3370
3420
|
this.sendSubmissionsToEmail || ""
|
|
3371
3421
|
)}&name=${encodeURIComponent(this.name || "")}`, m = this.sendSubmissionsTo === "email" ? h : this.action;
|
|
3372
|
-
|
|
3422
|
+
be(m), fetch(m, {
|
|
3373
3423
|
body: s,
|
|
3374
3424
|
headers: r,
|
|
3375
3425
|
method: this.method || "post"
|
|
@@ -3378,7 +3428,7 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), gr = {
|
|
|
3378
3428
|
let f;
|
|
3379
3429
|
const v = d.headers.get("content-type");
|
|
3380
3430
|
if (v && v.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3381
|
-
let T =
|
|
3431
|
+
let T = Ue(f, this.errorMessagePath);
|
|
3382
3432
|
T && (typeof T != "string" && (T = JSON.stringify(T)), this.formErrorMessage = T, this.mergeNewRootState({
|
|
3383
3433
|
formErrorMessage: T
|
|
3384
3434
|
}));
|
|
@@ -3397,12 +3447,12 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), gr = {
|
|
|
3397
3447
|
}
|
|
3398
3448
|
if (this.successUrl)
|
|
3399
3449
|
if (this.$refs.formRef) {
|
|
3400
|
-
const
|
|
3450
|
+
const D = new CustomEvent("route", {
|
|
3401
3451
|
detail: {
|
|
3402
3452
|
url: this.successUrl
|
|
3403
3453
|
}
|
|
3404
3454
|
});
|
|
3405
|
-
this.$refs.formRef.dispatchEvent(
|
|
3455
|
+
this.$refs.formRef.dispatchEvent(D), D.defaultPrevented || (location.href = this.successUrl);
|
|
3406
3456
|
} else
|
|
3407
3457
|
location.href = this.successUrl;
|
|
3408
3458
|
}
|
|
@@ -3419,11 +3469,11 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), gr = {
|
|
|
3419
3469
|
}
|
|
3420
3470
|
}
|
|
3421
3471
|
}
|
|
3422
|
-
}),
|
|
3472
|
+
}), Tr = ["validate", "action", "method", "name"], wr = {
|
|
3423
3473
|
key: 2,
|
|
3424
|
-
class: "builder-form-error-text pre-
|
|
3474
|
+
class: "builder-form-error-text pre-1hjwvu3r5mj"
|
|
3425
3475
|
};
|
|
3426
|
-
function
|
|
3476
|
+
function Ir(e, t, n, o, r, s) {
|
|
3427
3477
|
const i = k("Blocks");
|
|
3428
3478
|
return c(), p("form", C({
|
|
3429
3479
|
validate: e.validate,
|
|
@@ -3432,7 +3482,7 @@ function Cr(e, t, n, o, r, s) {
|
|
|
3432
3482
|
method: e.method,
|
|
3433
3483
|
name: e.name,
|
|
3434
3484
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
3435
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3485
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3436
3486
|
B(e.$slots, "default", {}, void 0, !0),
|
|
3437
3487
|
e.submissionState() === "error" ? (c(), y(i, {
|
|
3438
3488
|
key: 0,
|
|
@@ -3446,16 +3496,16 @@ function Cr(e, t, n, o, r, s) {
|
|
|
3446
3496
|
blocks: e.sendingMessage,
|
|
3447
3497
|
context: e.builderContext
|
|
3448
3498
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3449
|
-
e.submissionState() === "error" && e.responseData ? (c(), p("pre",
|
|
3499
|
+
e.submissionState() === "error" && e.responseData ? (c(), p("pre", wr, te(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3450
3500
|
e.submissionState() === "success" ? (c(), y(i, {
|
|
3451
3501
|
key: 3,
|
|
3452
3502
|
path: "successMessage",
|
|
3453
3503
|
blocks: e.successMessage,
|
|
3454
3504
|
context: e.builderContext
|
|
3455
3505
|
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
3456
|
-
], 16,
|
|
3506
|
+
], 16, Tr);
|
|
3457
3507
|
}
|
|
3458
|
-
const
|
|
3508
|
+
const $r = /* @__PURE__ */ g(Cr, [["render", Ir], ["__scopeId", "data-v-4ef43cdd"]]), Rr = {
|
|
3459
3509
|
name: "Form:Input",
|
|
3460
3510
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3461
3511
|
inputs: [
|
|
@@ -3506,7 +3556,7 @@ const Tr = /* @__PURE__ */ b(kr, [["render", Cr], ["__scopeId", "data-v-77d3dc14
|
|
|
3506
3556
|
borderStyle: "solid",
|
|
3507
3557
|
borderColor: "#ccc"
|
|
3508
3558
|
}
|
|
3509
|
-
},
|
|
3559
|
+
}, Er = b({
|
|
3510
3560
|
name: "builder-form-input-component",
|
|
3511
3561
|
props: [
|
|
3512
3562
|
"attributes",
|
|
@@ -3520,8 +3570,8 @@ const Tr = /* @__PURE__ */ b(kr, [["render", Cr], ["__scopeId", "data-v-77d3dc14
|
|
|
3520
3570
|
data() {
|
|
3521
3571
|
return { isEditing: P, filterAttrs: V };
|
|
3522
3572
|
}
|
|
3523
|
-
}),
|
|
3524
|
-
function
|
|
3573
|
+
}), Pr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3574
|
+
function Br(e, t, n, o, r, s) {
|
|
3525
3575
|
return c(), p("input", C({
|
|
3526
3576
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3527
3577
|
placeholder: e.placeholder,
|
|
@@ -3530,9 +3580,9 @@ function Rr(e, t, n, o, r, s) {
|
|
|
3530
3580
|
value: e.value,
|
|
3531
3581
|
defaultValue: e.defaultValue,
|
|
3532
3582
|
required: e.required
|
|
3533
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3583
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pr);
|
|
3534
3584
|
}
|
|
3535
|
-
const
|
|
3585
|
+
const Ar = /* @__PURE__ */ g(Er, [["render", Br]]), xr = {
|
|
3536
3586
|
name: "Form:Select",
|
|
3537
3587
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3538
3588
|
defaultStyles: {
|
|
@@ -3574,28 +3624,28 @@ const Er = /* @__PURE__ */ b(Ir, [["render", Rr]]), Pr = {
|
|
|
3574
3624
|
}],
|
|
3575
3625
|
static: !0,
|
|
3576
3626
|
noWrap: !0
|
|
3577
|
-
},
|
|
3627
|
+
}, Vr = b({
|
|
3578
3628
|
name: "builder-select-component",
|
|
3579
3629
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3580
3630
|
data() {
|
|
3581
3631
|
return { isEditing: P, filterAttrs: V };
|
|
3582
3632
|
}
|
|
3583
|
-
}),
|
|
3584
|
-
function
|
|
3633
|
+
}), Wr = ["value", "defaultValue", "name", "required"], Nr = ["value"];
|
|
3634
|
+
function Fr(e, t, n, o, r, s) {
|
|
3585
3635
|
return c(), p("select", C({
|
|
3586
3636
|
value: e.value,
|
|
3587
3637
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3588
3638
|
defaultValue: e.defaultValue,
|
|
3589
3639
|
name: e.name,
|
|
3590
3640
|
required: e.required
|
|
3591
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3641
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3592
3642
|
(c(!0), p(I, null, W(e.options, (i, l) => (c(), p("option", {
|
|
3593
3643
|
key: `${i.name}-${l}`,
|
|
3594
3644
|
value: i.value
|
|
3595
|
-
}, te(i.name || i.value), 9,
|
|
3596
|
-
], 16,
|
|
3645
|
+
}, te(i.name || i.value), 9, Nr))), 128))
|
|
3646
|
+
], 16, Wr);
|
|
3597
3647
|
}
|
|
3598
|
-
const
|
|
3648
|
+
const Or = /* @__PURE__ */ g(Vr, [["render", Fr]]), Dr = {
|
|
3599
3649
|
name: "Form:SubmitButton",
|
|
3600
3650
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3601
3651
|
defaultStyles: {
|
|
@@ -3620,17 +3670,17 @@ const Wr = /* @__PURE__ */ b(Br, [["render", Vr]]), Nr = {
|
|
|
3620
3670
|
// that only shows if advanced setting is flipped
|
|
3621
3671
|
// TODO: defaultChildren
|
|
3622
3672
|
// canHaveChildren: true,
|
|
3623
|
-
},
|
|
3673
|
+
}, Ur = b({
|
|
3624
3674
|
name: "builder-submit-button",
|
|
3625
3675
|
props: ["attributes", "text"],
|
|
3626
3676
|
data() {
|
|
3627
3677
|
return { filterAttrs: V };
|
|
3628
3678
|
}
|
|
3629
3679
|
});
|
|
3630
|
-
function
|
|
3631
|
-
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3680
|
+
function Lr(e, t, n, o, r, s) {
|
|
3681
|
+
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
|
|
3632
3682
|
}
|
|
3633
|
-
const
|
|
3683
|
+
const Hr = /* @__PURE__ */ g(Ur, [["render", Lr]]), Mr = {
|
|
3634
3684
|
name: "Form:TextArea",
|
|
3635
3685
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3636
3686
|
inputs: [{
|
|
@@ -3666,7 +3716,7 @@ const Or = /* @__PURE__ */ b(Fr, [["render", Dr]]), Lr = {
|
|
|
3666
3716
|
},
|
|
3667
3717
|
static: !0,
|
|
3668
3718
|
noWrap: !0
|
|
3669
|
-
},
|
|
3719
|
+
}, jr = b({
|
|
3670
3720
|
name: "builder-textarea",
|
|
3671
3721
|
props: [
|
|
3672
3722
|
"attributes",
|
|
@@ -3679,17 +3729,17 @@ const Or = /* @__PURE__ */ b(Fr, [["render", Dr]]), Lr = {
|
|
|
3679
3729
|
data() {
|
|
3680
3730
|
return { filterAttrs: V };
|
|
3681
3731
|
}
|
|
3682
|
-
}),
|
|
3683
|
-
function
|
|
3732
|
+
}), Kr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3733
|
+
function qr(e, t, n, o, r, s) {
|
|
3684
3734
|
return c(), p("textarea", C({
|
|
3685
3735
|
placeholder: e.placeholder,
|
|
3686
3736
|
name: e.name,
|
|
3687
3737
|
value: e.value,
|
|
3688
3738
|
defaultValue: e.defaultValue,
|
|
3689
3739
|
required: e.required
|
|
3690
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3740
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Kr);
|
|
3691
3741
|
}
|
|
3692
|
-
const
|
|
3742
|
+
const zr = /* @__PURE__ */ g(jr, [["render", qr]]), Jr = {
|
|
3693
3743
|
// friendlyName?
|
|
3694
3744
|
name: "Raw:Img",
|
|
3695
3745
|
hideFromInsertMenu: !0,
|
|
@@ -3698,12 +3748,12 @@ const jr = /* @__PURE__ */ b(Ur, [["render", Mr]]), Kr = {
|
|
|
3698
3748
|
name: "image",
|
|
3699
3749
|
bubble: !0,
|
|
3700
3750
|
type: "file",
|
|
3701
|
-
allowedFileTypes:
|
|
3751
|
+
allowedFileTypes: Ce,
|
|
3702
3752
|
required: !0
|
|
3703
3753
|
}],
|
|
3704
3754
|
noWrap: !0,
|
|
3705
3755
|
static: !0
|
|
3706
|
-
},
|
|
3756
|
+
}, Gr = b({
|
|
3707
3757
|
name: "builder-img-component",
|
|
3708
3758
|
props: [
|
|
3709
3759
|
"backgroundSize",
|
|
@@ -3716,8 +3766,8 @@ const jr = /* @__PURE__ */ b(Ur, [["render", Mr]]), Kr = {
|
|
|
3716
3766
|
data() {
|
|
3717
3767
|
return { isEditing: P, filterAttrs: V };
|
|
3718
3768
|
}
|
|
3719
|
-
}),
|
|
3720
|
-
function
|
|
3769
|
+
}), Yr = ["alt", "src"];
|
|
3770
|
+
function Xr(e, t, n, o, r, s) {
|
|
3721
3771
|
return c(), p("img", C({
|
|
3722
3772
|
style: {
|
|
3723
3773
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -3726,9 +3776,9 @@ function Gr(e, t, n, o, r, s) {
|
|
|
3726
3776
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3727
3777
|
alt: e.altText,
|
|
3728
3778
|
src: e.imgSrc || e.image
|
|
3729
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3779
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yr);
|
|
3730
3780
|
}
|
|
3731
|
-
const
|
|
3781
|
+
const Qr = /* @__PURE__ */ g(Gr, [["render", Xr]]), Zr = {
|
|
3732
3782
|
name: "Video",
|
|
3733
3783
|
canHaveChildren: !0,
|
|
3734
3784
|
defaultStyles: {
|
|
@@ -3739,14 +3789,14 @@ const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
|
|
|
3739
3789
|
inputs: [{
|
|
3740
3790
|
name: "video",
|
|
3741
3791
|
type: "file",
|
|
3742
|
-
allowedFileTypes:
|
|
3792
|
+
allowedFileTypes: Mo,
|
|
3743
3793
|
bubble: !0,
|
|
3744
3794
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3745
3795
|
required: !0
|
|
3746
3796
|
}, {
|
|
3747
3797
|
name: "posterImage",
|
|
3748
3798
|
type: "file",
|
|
3749
|
-
allowedFileTypes:
|
|
3799
|
+
allowedFileTypes: Ce,
|
|
3750
3800
|
helperText: "Image to show before the video plays"
|
|
3751
3801
|
}, {
|
|
3752
3802
|
name: "autoPlay",
|
|
@@ -3812,7 +3862,7 @@ const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
|
|
|
3812
3862
|
shouldReceiveBuilderProps: {
|
|
3813
3863
|
builderBlock: !0
|
|
3814
3864
|
}
|
|
3815
|
-
},
|
|
3865
|
+
}, _r = b({
|
|
3816
3866
|
name: "builder-video",
|
|
3817
3867
|
props: [
|
|
3818
3868
|
"autoPlay",
|
|
@@ -3857,16 +3907,16 @@ const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
|
|
|
3857
3907
|
};
|
|
3858
3908
|
}
|
|
3859
3909
|
}
|
|
3860
|
-
}),
|
|
3910
|
+
}), es = { style: {
|
|
3861
3911
|
position: "relative"
|
|
3862
|
-
} },
|
|
3912
|
+
} }, ts = ["preload", "src", "poster"], ns = ["src"], os = {
|
|
3863
3913
|
key: 1,
|
|
3864
3914
|
style: {
|
|
3865
3915
|
display: "flex",
|
|
3866
3916
|
flexDirection: "column",
|
|
3867
3917
|
alignItems: "stretch"
|
|
3868
3918
|
}
|
|
3869
|
-
},
|
|
3919
|
+
}, rs = {
|
|
3870
3920
|
key: 2,
|
|
3871
3921
|
style: {
|
|
3872
3922
|
pointerEvents: "none",
|
|
@@ -3880,9 +3930,9 @@ const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
|
|
|
3880
3930
|
height: "100%"
|
|
3881
3931
|
}
|
|
3882
3932
|
};
|
|
3883
|
-
function
|
|
3933
|
+
function ss(e, t, n, o, r, s) {
|
|
3884
3934
|
var i, l, a, u, h, m, d;
|
|
3885
|
-
return c(), p("div",
|
|
3935
|
+
return c(), p("div", es, [
|
|
3886
3936
|
z("video", C({
|
|
3887
3937
|
class: "builder-video",
|
|
3888
3938
|
preload: e.preload || "metadata",
|
|
@@ -3906,83 +3956,83 @@ function ns(e, t, n, o, r, s) {
|
|
|
3906
3956
|
key: 0,
|
|
3907
3957
|
type: "video/mp4",
|
|
3908
3958
|
src: e.video
|
|
3909
|
-
}, null, 8,
|
|
3910
|
-
], 16,
|
|
3959
|
+
}, null, 8, ns))
|
|
3960
|
+
], 16, ts),
|
|
3911
3961
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
|
|
3912
3962
|
key: 0,
|
|
3913
|
-
style:
|
|
3963
|
+
style: O({
|
|
3914
3964
|
width: "100%",
|
|
3915
3965
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
3916
3966
|
pointerEvents: "none",
|
|
3917
3967
|
fontSize: "0px"
|
|
3918
3968
|
})
|
|
3919
3969
|
}, null, 4)) : S("", !0),
|
|
3920
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div",
|
|
3970
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div", os, [
|
|
3921
3971
|
B(e.$slots, "default")
|
|
3922
3972
|
])) : S("", !0),
|
|
3923
|
-
(d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div",
|
|
3973
|
+
(d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div", rs, [
|
|
3924
3974
|
B(e.$slots, "default")
|
|
3925
3975
|
])) : S("", !0)
|
|
3926
3976
|
]);
|
|
3927
3977
|
}
|
|
3928
|
-
const
|
|
3929
|
-
component:
|
|
3930
|
-
...
|
|
3978
|
+
const is = /* @__PURE__ */ g(_r, [["render", ss]]), as = () => [{
|
|
3979
|
+
component: ur,
|
|
3980
|
+
...ar
|
|
3931
3981
|
}, {
|
|
3932
|
-
component:
|
|
3933
|
-
...
|
|
3982
|
+
component: yr,
|
|
3983
|
+
...pr
|
|
3934
3984
|
}, {
|
|
3935
|
-
component:
|
|
3936
|
-
...
|
|
3985
|
+
component: $r,
|
|
3986
|
+
...kr
|
|
3937
3987
|
}, {
|
|
3938
|
-
component:
|
|
3939
|
-
...
|
|
3988
|
+
component: Ar,
|
|
3989
|
+
...Rr
|
|
3940
3990
|
}, {
|
|
3941
|
-
component:
|
|
3942
|
-
...
|
|
3943
|
-
}, {
|
|
3944
|
-
component: Wr,
|
|
3945
|
-
...Pr
|
|
3991
|
+
component: Hr,
|
|
3992
|
+
...Dr
|
|
3946
3993
|
}, {
|
|
3947
|
-
component:
|
|
3948
|
-
...
|
|
3994
|
+
component: Or,
|
|
3995
|
+
...xr
|
|
3949
3996
|
}, {
|
|
3950
|
-
component:
|
|
3951
|
-
...
|
|
3997
|
+
component: zr,
|
|
3998
|
+
...Mr
|
|
3952
3999
|
}, {
|
|
3953
|
-
component:
|
|
3954
|
-
...
|
|
3955
|
-
}], Pe = () => [{
|
|
3956
|
-
component: At,
|
|
3957
|
-
...Fo
|
|
4000
|
+
component: Qr,
|
|
4001
|
+
...Jr
|
|
3958
4002
|
}, {
|
|
3959
|
-
component:
|
|
3960
|
-
...
|
|
4003
|
+
component: is,
|
|
4004
|
+
...Zr
|
|
4005
|
+
}], xe = () => [{
|
|
4006
|
+
component: Wt,
|
|
4007
|
+
...Uo
|
|
3961
4008
|
}, {
|
|
3962
4009
|
component: yo,
|
|
3963
|
-
...
|
|
4010
|
+
...Lo
|
|
3964
4011
|
}, {
|
|
3965
|
-
component:
|
|
3966
|
-
...
|
|
4012
|
+
component: So,
|
|
4013
|
+
...Ho
|
|
3967
4014
|
}, {
|
|
3968
4015
|
component: Po,
|
|
3969
|
-
...
|
|
4016
|
+
...jo
|
|
3970
4017
|
}, {
|
|
3971
|
-
component:
|
|
3972
|
-
...
|
|
4018
|
+
component: xo,
|
|
4019
|
+
...Ko
|
|
3973
4020
|
}, {
|
|
3974
|
-
component:
|
|
3975
|
-
...
|
|
4021
|
+
component: Go,
|
|
4022
|
+
...qo
|
|
3976
4023
|
}, {
|
|
3977
|
-
component:
|
|
3978
|
-
...
|
|
4024
|
+
component: Ks,
|
|
4025
|
+
...Yo
|
|
3979
4026
|
}, {
|
|
3980
|
-
component:
|
|
3981
|
-
...
|
|
4027
|
+
component: ir,
|
|
4028
|
+
...nr
|
|
3982
4029
|
}, {
|
|
3983
|
-
component:
|
|
3984
|
-
...
|
|
3985
|
-
},
|
|
4030
|
+
component: tr,
|
|
4031
|
+
...Xo
|
|
4032
|
+
}, {
|
|
4033
|
+
component: Do,
|
|
4034
|
+
...Vo
|
|
4035
|
+
}, ...as()], ls = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3986
4036
|
function getAndSetVariantId() {
|
|
3987
4037
|
function setCookie(name, value, days) {
|
|
3988
4038
|
let expires = '';
|
|
@@ -4038,7 +4088,7 @@ const os = /* @__PURE__ */ b(Xr, [["render", ns]]), rs = () => [{
|
|
|
4038
4088
|
}).join('');
|
|
4039
4089
|
styleEl.innerHTML = newStyleStr;
|
|
4040
4090
|
}
|
|
4041
|
-
}`,
|
|
4091
|
+
}`, cs = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4042
4092
|
if (!navigator.cookieEnabled) {
|
|
4043
4093
|
return;
|
|
4044
4094
|
}
|
|
@@ -4072,39 +4122,29 @@ const os = /* @__PURE__ */ b(Xr, [["render", ns]]), rs = () => [{
|
|
|
4072
4122
|
thisScriptEl?.remove();
|
|
4073
4123
|
}
|
|
4074
4124
|
return;
|
|
4075
|
-
}`,
|
|
4125
|
+
}`, mt = "builderIoAbTest", ht = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4076
4126
|
...t,
|
|
4077
4127
|
testVariationId: t.id,
|
|
4078
4128
|
id: e == null ? void 0 : e.id
|
|
4079
|
-
})),
|
|
4129
|
+
})), ds = ({
|
|
4080
4130
|
canTrack: e,
|
|
4081
4131
|
content: t
|
|
4082
|
-
}) => !(!(Q(t).length > 0) || !e),
|
|
4083
|
-
window.${
|
|
4084
|
-
window.${
|
|
4085
|
-
`,
|
|
4086
|
-
window.${
|
|
4087
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4088
|
-
)`,
|
|
4132
|
+
}) => !(!(Q(t).length > 0) || !e), us = (e) => e === "react" || e === "reactNative", ft = us(E), ps = () => `
|
|
4133
|
+
window.${mt} = ${ls}
|
|
4134
|
+
window.${ht} = ${cs}
|
|
4135
|
+
`, ms = (e, t) => `
|
|
4136
|
+
window.${mt}(
|
|
4137
|
+
"${t}",${JSON.stringify(e)}, ${ft}
|
|
4138
|
+
)`, hs = ({
|
|
4089
4139
|
contentId: e,
|
|
4090
4140
|
variationId: t
|
|
4091
|
-
}) => `window.${
|
|
4092
|
-
"${t}", "${e}", ${
|
|
4093
|
-
)
|
|
4094
|
-
|
|
4095
|
-
return Ae("script", {
|
|
4096
|
-
innerHTML: this.scriptStr,
|
|
4097
|
-
"data-id": this.id,
|
|
4098
|
-
nonce: this.nonce
|
|
4099
|
-
});
|
|
4100
|
-
},
|
|
4101
|
-
name: "inlined-script",
|
|
4102
|
-
props: ["scriptStr", "id", "nonce"]
|
|
4103
|
-
});
|
|
4104
|
-
function Be(e) {
|
|
4141
|
+
}) => `window.${ht}(
|
|
4142
|
+
"${t}", "${e}", ${ft}
|
|
4143
|
+
)`;
|
|
4144
|
+
function Ve(e) {
|
|
4105
4145
|
return Math.round(e * 1e3) / 1e3;
|
|
4106
4146
|
}
|
|
4107
|
-
const
|
|
4147
|
+
const fs = (e, t, n = !0) => {
|
|
4108
4148
|
if (!(e instanceof HTMLElement))
|
|
4109
4149
|
return null;
|
|
4110
4150
|
let o = n ? e : e.parentElement;
|
|
@@ -4115,35 +4155,35 @@ const ps = (e, t, n = !0) => {
|
|
|
4115
4155
|
return o;
|
|
4116
4156
|
} while (o = o.parentElement);
|
|
4117
4157
|
return null;
|
|
4118
|
-
},
|
|
4158
|
+
}, bs = (e) => fs(e, (t) => {
|
|
4119
4159
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4120
4160
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4121
|
-
}),
|
|
4161
|
+
}), We = ({
|
|
4122
4162
|
event: e,
|
|
4123
4163
|
target: t
|
|
4124
4164
|
}) => {
|
|
4125
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s =
|
|
4165
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Ve(o / n.width), i = Ve(r / n.height);
|
|
4126
4166
|
return {
|
|
4127
4167
|
x: s,
|
|
4128
4168
|
y: i
|
|
4129
4169
|
};
|
|
4130
|
-
},
|
|
4131
|
-
const t = e.target, n = t &&
|
|
4170
|
+
}, gs = (e) => {
|
|
4171
|
+
const t = e.target, n = t && bs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4132
4172
|
return {
|
|
4133
4173
|
targetBuilderElement: o || void 0,
|
|
4134
4174
|
metadata: {
|
|
4135
|
-
targetOffset: t ?
|
|
4175
|
+
targetOffset: t ? We({
|
|
4136
4176
|
event: e,
|
|
4137
4177
|
target: t
|
|
4138
4178
|
}) : void 0,
|
|
4139
|
-
builderTargetOffset: n ?
|
|
4179
|
+
builderTargetOffset: n ? We({
|
|
4140
4180
|
event: e,
|
|
4141
4181
|
target: n
|
|
4142
4182
|
}) : void 0,
|
|
4143
4183
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4144
4184
|
}
|
|
4145
4185
|
};
|
|
4146
|
-
},
|
|
4186
|
+
}, ys = ["svelte", "qwik", "vue"], ks = () => ys.includes(E) && (P() || He()), vs = (e) => {
|
|
4147
4187
|
var s;
|
|
4148
4188
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
|
|
4149
4189
|
let r = "";
|
|
@@ -4169,15 +4209,15 @@ font-weight: ${i};
|
|
|
4169
4209
|
`.trim());
|
|
4170
4210
|
}
|
|
4171
4211
|
return r;
|
|
4172
|
-
},
|
|
4212
|
+
}, Ss = ({
|
|
4173
4213
|
customFonts: e
|
|
4174
4214
|
}) => {
|
|
4175
4215
|
var t;
|
|
4176
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4177
|
-
},
|
|
4216
|
+
return ((t = e == null ? void 0 : e.map((n) => vs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4217
|
+
}, Cs = ({
|
|
4178
4218
|
cssCode: e,
|
|
4179
4219
|
contentId: t
|
|
4180
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4220
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ts = `
|
|
4181
4221
|
.builder-button {
|
|
4182
4222
|
all: unset;
|
|
4183
4223
|
}
|
|
@@ -4194,7 +4234,7 @@ font-weight: ${i};
|
|
|
4194
4234
|
text-align: inherit;
|
|
4195
4235
|
font-family: inherit;
|
|
4196
4236
|
}
|
|
4197
|
-
`,
|
|
4237
|
+
`, ws = (e) => e ? "" : Ts, Is = (e) => `variant-${e}`, $s = b({
|
|
4198
4238
|
name: "enable-editor",
|
|
4199
4239
|
components: { DynamicDiv: X },
|
|
4200
4240
|
props: [
|
|
@@ -4221,8 +4261,8 @@ font-weight: ${i};
|
|
|
4221
4261
|
httpReqsPending: {},
|
|
4222
4262
|
clicked: !1,
|
|
4223
4263
|
builderContext: le,
|
|
4224
|
-
needsElementRefDivForEditing:
|
|
4225
|
-
getWrapperClassName:
|
|
4264
|
+
needsElementRefDivForEditing: ks,
|
|
4265
|
+
getWrapperClassName: Is
|
|
4226
4266
|
};
|
|
4227
4267
|
},
|
|
4228
4268
|
provide() {
|
|
@@ -4239,7 +4279,7 @@ font-weight: ${i};
|
|
|
4239
4279
|
if ($()) {
|
|
4240
4280
|
if (P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4241
4281
|
new CustomEvent("initeditingbldr")
|
|
4242
|
-
), this.builderContextSignal.content &&
|
|
4282
|
+
), this.builderContextSignal.content && G(this.canTrack)) {
|
|
4243
4283
|
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, s = this.apiKey;
|
|
4244
4284
|
de({
|
|
4245
4285
|
apiHost: this.apiHost,
|
|
@@ -4250,7 +4290,7 @@ font-weight: ${i};
|
|
|
4250
4290
|
variationId: o !== r ? o : void 0
|
|
4251
4291
|
});
|
|
4252
4292
|
}
|
|
4253
|
-
|
|
4293
|
+
He() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4254
4294
|
new CustomEvent("initpreviewingbldr")
|
|
4255
4295
|
);
|
|
4256
4296
|
}
|
|
@@ -4344,7 +4384,7 @@ font-weight: ${i};
|
|
|
4344
4384
|
this.builderContextSignal.content = t;
|
|
4345
4385
|
},
|
|
4346
4386
|
processMessage(e) {
|
|
4347
|
-
return
|
|
4387
|
+
return Ze({
|
|
4348
4388
|
model: this.model,
|
|
4349
4389
|
trustedHosts: this.trustedHosts,
|
|
4350
4390
|
callbacks: {
|
|
@@ -4358,7 +4398,7 @@ font-weight: ${i};
|
|
|
4358
4398
|
});
|
|
4359
4399
|
},
|
|
4360
4400
|
animation: (t) => {
|
|
4361
|
-
|
|
4401
|
+
it(t);
|
|
4362
4402
|
},
|
|
4363
4403
|
contentUpdate: (t) => {
|
|
4364
4404
|
this.mergeNewContent(t);
|
|
@@ -4373,11 +4413,11 @@ font-weight: ${i};
|
|
|
4373
4413
|
de({
|
|
4374
4414
|
apiHost: this.apiHost,
|
|
4375
4415
|
type: "click",
|
|
4376
|
-
canTrack:
|
|
4416
|
+
canTrack: G(this.canTrack),
|
|
4377
4417
|
contentId: r,
|
|
4378
4418
|
apiKey: this.apiKey,
|
|
4379
4419
|
variationId: o !== r ? o : void 0,
|
|
4380
|
-
...
|
|
4420
|
+
...gs(e),
|
|
4381
4421
|
unique: !this.clicked
|
|
4382
4422
|
});
|
|
4383
4423
|
}
|
|
@@ -4402,7 +4442,7 @@ font-weight: ${i};
|
|
|
4402
4442
|
})
|
|
4403
4443
|
)
|
|
4404
4444
|
);
|
|
4405
|
-
|
|
4445
|
+
be(s), fetch(s).then((i) => i.json()).then((i) => {
|
|
4406
4446
|
this.mergeNewRootState({
|
|
4407
4447
|
[o]: i
|
|
4408
4448
|
}), this.httpReqsData[o] = !0;
|
|
@@ -4429,7 +4469,7 @@ font-weight: ${i};
|
|
|
4429
4469
|
);
|
|
4430
4470
|
},
|
|
4431
4471
|
elementRef_onIniteditingbldr(e) {
|
|
4432
|
-
window.addEventListener("message", this.processMessage),
|
|
4472
|
+
window.addEventListener("message", this.processMessage), vn(), Qe({
|
|
4433
4473
|
...this.locale ? {
|
|
4434
4474
|
locale: this.locale
|
|
4435
4475
|
} : {},
|
|
@@ -4444,7 +4484,7 @@ font-weight: ${i};
|
|
|
4444
4484
|
).forEach((t) => {
|
|
4445
4485
|
var n, o;
|
|
4446
4486
|
if (!this.model || !((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
4447
|
-
const r =
|
|
4487
|
+
const r = Zt(t);
|
|
4448
4488
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
4449
4489
|
}
|
|
4450
4490
|
}), window.addEventListener(
|
|
@@ -4457,7 +4497,7 @@ font-weight: ${i};
|
|
|
4457
4497
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
4458
4498
|
`builder.overrides.${n}`
|
|
4459
4499
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4460
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
4500
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && ke({
|
|
4461
4501
|
model: this.model || "",
|
|
4462
4502
|
apiKey: this.apiKey,
|
|
4463
4503
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -4472,7 +4512,7 @@ font-weight: ${i};
|
|
|
4472
4512
|
}
|
|
4473
4513
|
}
|
|
4474
4514
|
});
|
|
4475
|
-
function
|
|
4515
|
+
function Rs(e, t, n, o, r, s) {
|
|
4476
4516
|
var i, l, a;
|
|
4477
4517
|
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(K(e.ContentWrapper), C({
|
|
4478
4518
|
key: 0,
|
|
@@ -4493,26 +4533,26 @@ function ws(e, t, n, o, r, s) {
|
|
|
4493
4533
|
_: 3
|
|
4494
4534
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4495
4535
|
}
|
|
4496
|
-
const
|
|
4536
|
+
const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = b({
|
|
4497
4537
|
name: "content-styles",
|
|
4498
|
-
components: { InlinedStyles:
|
|
4538
|
+
components: { InlinedStyles: Se },
|
|
4499
4539
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4500
4540
|
data() {
|
|
4501
4541
|
return {
|
|
4502
4542
|
injectedStyles: `
|
|
4503
|
-
${
|
|
4543
|
+
${Cs({
|
|
4504
4544
|
cssCode: this.cssCode,
|
|
4505
4545
|
contentId: this.contentId
|
|
4506
4546
|
})}
|
|
4507
|
-
${
|
|
4547
|
+
${Ss({
|
|
4508
4548
|
customFonts: this.customFonts
|
|
4509
4549
|
})}
|
|
4510
|
-
${
|
|
4550
|
+
${ws(this.isNestedRender)}
|
|
4511
4551
|
`.trim()
|
|
4512
4552
|
};
|
|
4513
4553
|
}
|
|
4514
4554
|
});
|
|
4515
|
-
function
|
|
4555
|
+
function Bs(e, t, n, o, r, s) {
|
|
4516
4556
|
const i = k("InlinedStyles");
|
|
4517
4557
|
return c(), y(i, {
|
|
4518
4558
|
id: "builderio-content",
|
|
@@ -4520,7 +4560,7 @@ function Rs(e, t, n, o, r, s) {
|
|
|
4520
4560
|
nonce: e.nonce
|
|
4521
4561
|
}, null, 8, ["styles", "nonce"]);
|
|
4522
4562
|
}
|
|
4523
|
-
const
|
|
4563
|
+
const As = /* @__PURE__ */ g(Ps, [["render", Bs]]), xs = ({
|
|
4524
4564
|
content: e,
|
|
4525
4565
|
data: t,
|
|
4526
4566
|
locale: n
|
|
@@ -4537,7 +4577,7 @@ const Es = /* @__PURE__ */ b($s, [["render", Rs]]), Ps = ({
|
|
|
4537
4577
|
locale: n
|
|
4538
4578
|
} : {}
|
|
4539
4579
|
};
|
|
4540
|
-
},
|
|
4580
|
+
}, Vs = ({
|
|
4541
4581
|
content: e,
|
|
4542
4582
|
data: t
|
|
4543
4583
|
}) => e ? {
|
|
@@ -4547,12 +4587,12 @@ const Es = /* @__PURE__ */ b($s, [["render", Rs]]), Ps = ({
|
|
|
4547
4587
|
...t
|
|
4548
4588
|
},
|
|
4549
4589
|
meta: e == null ? void 0 : e.meta
|
|
4550
|
-
} : void 0,
|
|
4590
|
+
} : void 0, Ws = kt, Ns = b({
|
|
4551
4591
|
name: "content-component",
|
|
4552
4592
|
components: {
|
|
4553
|
-
EnableEditor:
|
|
4554
|
-
InlinedScript:
|
|
4555
|
-
ContentStyles:
|
|
4593
|
+
EnableEditor: Es,
|
|
4594
|
+
InlinedScript: pt,
|
|
4595
|
+
ContentStyles: As,
|
|
4556
4596
|
Blocks: H,
|
|
4557
4597
|
DynamicDiv: X
|
|
4558
4598
|
},
|
|
@@ -4582,32 +4622,32 @@ const Es = /* @__PURE__ */ b($s, [["render", Rs]]), Ps = ({
|
|
|
4582
4622
|
data() {
|
|
4583
4623
|
var e, t;
|
|
4584
4624
|
return {
|
|
4585
|
-
scriptStr:
|
|
4625
|
+
scriptStr: hs({
|
|
4586
4626
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4587
4627
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4588
4628
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4589
4629
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
4590
4630
|
}),
|
|
4591
4631
|
registeredComponents: [
|
|
4592
|
-
...
|
|
4632
|
+
...xe(),
|
|
4593
4633
|
...this.customComponents || []
|
|
4594
4634
|
].reduce(
|
|
4595
4635
|
(n, { component: o, ...r }) => ({
|
|
4596
4636
|
...n,
|
|
4597
4637
|
[r.name]: {
|
|
4598
|
-
component:
|
|
4638
|
+
component: Ws(o),
|
|
4599
4639
|
...ee(r)
|
|
4600
4640
|
}
|
|
4601
4641
|
}),
|
|
4602
4642
|
{}
|
|
4603
4643
|
),
|
|
4604
4644
|
builderContextSignal: {
|
|
4605
|
-
content:
|
|
4645
|
+
content: Vs({
|
|
4606
4646
|
content: this.content,
|
|
4607
4647
|
data: this.data
|
|
4608
4648
|
}),
|
|
4609
4649
|
localState: void 0,
|
|
4610
|
-
rootState:
|
|
4650
|
+
rootState: xs({
|
|
4611
4651
|
content: this.content,
|
|
4612
4652
|
data: this.data,
|
|
4613
4653
|
locale: this.locale
|
|
@@ -4618,7 +4658,7 @@ const Es = /* @__PURE__ */ b($s, [["render", Rs]]), Ps = ({
|
|
|
4618
4658
|
apiKey: this.apiKey,
|
|
4619
4659
|
apiVersion: this.apiVersion,
|
|
4620
4660
|
componentInfos: [
|
|
4621
|
-
...
|
|
4661
|
+
...xe(),
|
|
4622
4662
|
...this.customComponents || []
|
|
4623
4663
|
].reduce(
|
|
4624
4664
|
(n, { component: o, ...r }) => ({
|
|
@@ -4639,14 +4679,14 @@ const Es = /* @__PURE__ */ b($s, [["render", Rs]]), Ps = ({
|
|
|
4639
4679
|
provide() {
|
|
4640
4680
|
const e = this;
|
|
4641
4681
|
return {
|
|
4642
|
-
[
|
|
4682
|
+
[De.key]: {
|
|
4643
4683
|
registeredComponents: e.registeredComponents
|
|
4644
4684
|
}
|
|
4645
4685
|
};
|
|
4646
4686
|
},
|
|
4647
4687
|
created() {
|
|
4648
4688
|
var t, n;
|
|
4649
|
-
this.apiKey ||
|
|
4689
|
+
this.apiKey || x.error(
|
|
4650
4690
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4651
4691
|
);
|
|
4652
4692
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -4667,7 +4707,7 @@ const Es = /* @__PURE__ */ b($s, [["render", Rs]]), Ps = ({
|
|
|
4667
4707
|
}
|
|
4668
4708
|
}
|
|
4669
4709
|
});
|
|
4670
|
-
function
|
|
4710
|
+
function Fs(e, t, n, o, r, s) {
|
|
4671
4711
|
const i = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
4672
4712
|
return c(), y(u, C({
|
|
4673
4713
|
apiHost: e.apiHost,
|
|
@@ -4688,7 +4728,7 @@ function Vs(e, t, n, o, r, s) {
|
|
|
4688
4728
|
isNestedRender: e.isNestedRender
|
|
4689
4729
|
}, {}), {
|
|
4690
4730
|
default: N(() => {
|
|
4691
|
-
var h, m, d, f, v, T,
|
|
4731
|
+
var h, m, d, f, v, T, D;
|
|
4692
4732
|
return [
|
|
4693
4733
|
e.isSsrAbTest ? (c(), y(i, {
|
|
4694
4734
|
key: 0,
|
|
@@ -4705,7 +4745,7 @@ function Vs(e, t, n, o, r, s) {
|
|
|
4705
4745
|
customFonts: (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
|
|
4706
4746
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4707
4747
|
R(a, {
|
|
4708
|
-
blocks: (
|
|
4748
|
+
blocks: (D = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : D.blocks,
|
|
4709
4749
|
context: e.builderContextSignal,
|
|
4710
4750
|
registeredComponents: e.registeredComponents,
|
|
4711
4751
|
linkComponent: e.linkComponent
|
|
@@ -4715,12 +4755,12 @@ function Vs(e, t, n, o, r, s) {
|
|
|
4715
4755
|
_: 1
|
|
4716
4756
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4717
4757
|
}
|
|
4718
|
-
const
|
|
4758
|
+
const Os = /* @__PURE__ */ g(Ns, [["render", Fs]]), Ds = b({
|
|
4719
4759
|
name: "content-variants",
|
|
4720
4760
|
components: {
|
|
4721
|
-
InlinedScript:
|
|
4722
|
-
InlinedStyles:
|
|
4723
|
-
ContentComponent:
|
|
4761
|
+
InlinedScript: pt,
|
|
4762
|
+
InlinedStyles: Se,
|
|
4763
|
+
ContentComponent: Os
|
|
4724
4764
|
},
|
|
4725
4765
|
props: [
|
|
4726
4766
|
"canTrack",
|
|
@@ -4745,12 +4785,12 @@ const Ws = /* @__PURE__ */ b(As, [["render", Vs]]), Ns = g({
|
|
|
4745
4785
|
],
|
|
4746
4786
|
data() {
|
|
4747
4787
|
return {
|
|
4748
|
-
shouldRenderVariants:
|
|
4749
|
-
canTrack:
|
|
4788
|
+
shouldRenderVariants: ds({
|
|
4789
|
+
canTrack: G(this.canTrack),
|
|
4750
4790
|
content: this.content
|
|
4751
4791
|
}),
|
|
4752
4792
|
TARGET: E,
|
|
4753
|
-
getInitVariantsFnsScriptString:
|
|
4793
|
+
getInitVariantsFnsScriptString: ps,
|
|
4754
4794
|
getVariants: Q
|
|
4755
4795
|
};
|
|
4756
4796
|
},
|
|
@@ -4759,7 +4799,7 @@ const Ws = /* @__PURE__ */ b(As, [["render", Vs]]), Ns = g({
|
|
|
4759
4799
|
computed: {
|
|
4760
4800
|
updateCookieAndStylesScriptStr() {
|
|
4761
4801
|
var e;
|
|
4762
|
-
return
|
|
4802
|
+
return ms(
|
|
4763
4803
|
Q(this.content).map((t) => ({
|
|
4764
4804
|
id: t.testVariationId,
|
|
4765
4805
|
testRatio: t.testRatio
|
|
@@ -4775,14 +4815,14 @@ const Ws = /* @__PURE__ */ b(As, [["render", Vs]]), Ns = g({
|
|
|
4775
4815
|
return this.shouldRenderVariants ? {
|
|
4776
4816
|
...this.content,
|
|
4777
4817
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4778
|
-
} :
|
|
4818
|
+
} : $n({
|
|
4779
4819
|
item: this.content,
|
|
4780
|
-
canTrack:
|
|
4820
|
+
canTrack: G(this.canTrack)
|
|
4781
4821
|
});
|
|
4782
4822
|
}
|
|
4783
4823
|
}
|
|
4784
4824
|
});
|
|
4785
|
-
function
|
|
4825
|
+
function Us(e, t, n, o, r, s) {
|
|
4786
4826
|
const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
4787
4827
|
return c(), p(I, null, [
|
|
4788
4828
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
@@ -4854,13 +4894,13 @@ function Fs(e, t, n, o, r, s) {
|
|
|
4854
4894
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4855
4895
|
], 64);
|
|
4856
4896
|
}
|
|
4857
|
-
const
|
|
4897
|
+
const Ls = /* @__PURE__ */ g(Ds, [["render", Us]]), Hs = async ({
|
|
4858
4898
|
builderContextValue: e,
|
|
4859
4899
|
symbol: t
|
|
4860
4900
|
}) => {
|
|
4861
4901
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4862
4902
|
(e != null && e.apiKey))
|
|
4863
|
-
return
|
|
4903
|
+
return ke({
|
|
4864
4904
|
model: t.model,
|
|
4865
4905
|
apiKey: e.apiKey,
|
|
4866
4906
|
apiVersion: e.apiVersion,
|
|
@@ -4870,11 +4910,11 @@ const Ds = /* @__PURE__ */ b(Ns, [["render", Fs]]), Os = async ({
|
|
|
4870
4910
|
}
|
|
4871
4911
|
}
|
|
4872
4912
|
}).catch((n) => {
|
|
4873
|
-
|
|
4913
|
+
x.error("Could not fetch symbol content: ", n);
|
|
4874
4914
|
});
|
|
4875
|
-
},
|
|
4915
|
+
}, Ms = b({
|
|
4876
4916
|
name: "builder-symbol",
|
|
4877
|
-
components: { ContentVariants:
|
|
4917
|
+
components: { ContentVariants: Ls, DynamicDiv: X },
|
|
4878
4918
|
props: [
|
|
4879
4919
|
"symbol",
|
|
4880
4920
|
"attributes",
|
|
@@ -4923,7 +4963,7 @@ const Ds = /* @__PURE__ */ b(Ns, [["render", Fs]]), Os = async ({
|
|
|
4923
4963
|
},
|
|
4924
4964
|
methods: {
|
|
4925
4965
|
setContent() {
|
|
4926
|
-
this.contentToUse ||
|
|
4966
|
+
this.contentToUse || Hs({
|
|
4927
4967
|
symbol: this.symbol,
|
|
4928
4968
|
builderContextValue: this.builderContext
|
|
4929
4969
|
}).then((e) => {
|
|
@@ -4932,10 +4972,10 @@ const Ds = /* @__PURE__ */ b(Ns, [["render", Fs]]), Os = async ({
|
|
|
4932
4972
|
}
|
|
4933
4973
|
}
|
|
4934
4974
|
});
|
|
4935
|
-
function
|
|
4975
|
+
function js(e, t, n, o, r, s) {
|
|
4936
4976
|
var l, a, u, h, m;
|
|
4937
4977
|
const i = k("ContentVariants");
|
|
4938
|
-
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4978
|
+
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4939
4979
|
R(i, {
|
|
4940
4980
|
nonce: e.builderContext.nonce,
|
|
4941
4981
|
isNestedRender: !0,
|
|
@@ -4960,41 +5000,42 @@ function Us(e, t, n, o, r, s) {
|
|
|
4960
5000
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4961
5001
|
], 16);
|
|
4962
5002
|
}
|
|
4963
|
-
const
|
|
5003
|
+
const Ks = /* @__PURE__ */ g(Ms, [["render", js]]);
|
|
4964
5004
|
export {
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
Po as
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
5005
|
+
Js as A,
|
|
5006
|
+
dt as B,
|
|
5007
|
+
yo as C,
|
|
5008
|
+
ti as D,
|
|
5009
|
+
So as F,
|
|
5010
|
+
Po as I,
|
|
5011
|
+
xo as S,
|
|
5012
|
+
ir as T,
|
|
5013
|
+
is as V,
|
|
5014
|
+
Se as _,
|
|
5015
|
+
ni as a,
|
|
5016
|
+
ve as b,
|
|
5017
|
+
_s as c,
|
|
5018
|
+
g as d,
|
|
4978
5019
|
Y as e,
|
|
4979
|
-
|
|
4980
|
-
|
|
5020
|
+
ei as f,
|
|
5021
|
+
ho as g,
|
|
4981
5022
|
Z as h,
|
|
4982
5023
|
le as i,
|
|
4983
|
-
|
|
4984
|
-
|
|
5024
|
+
Wt as j,
|
|
5025
|
+
Ks as k,
|
|
4985
5026
|
H as l,
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5027
|
+
Ls as m,
|
|
5028
|
+
He as n,
|
|
5029
|
+
Zt as o,
|
|
5030
|
+
Gs as p,
|
|
5031
|
+
Me as q,
|
|
5032
|
+
en as r,
|
|
5033
|
+
Qs as s,
|
|
5034
|
+
Ys as t,
|
|
5035
|
+
Xs as u,
|
|
5036
|
+
Zs as v,
|
|
5037
|
+
Ws as w,
|
|
5038
|
+
Dn as x,
|
|
5039
|
+
Un as y,
|
|
5040
|
+
ke as z
|
|
5000
5041
|
};
|