@builder.io/sdk-vue 5.2.12 → 5.2.14
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-nbyjYGTm.js → awaiter-Tk-uzs05.js} +1 -1
- package/lib/browser/{awaiter-_vJybpjE.cjs → awaiter-kpfXcn3P.cjs} +1 -1
- package/lib/browser/{block-wrapper-H2uWRFfl.js → block-wrapper--DIgpG8b.js} +3 -3
- package/lib/browser/{block-wrapper-LaZs4cQn.cjs → block-wrapper-KjvCvLp3.cjs} +1 -1
- package/lib/browser/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
- package/lib/browser/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
- package/lib/browser/{component-ref-VXY67QLx.cjs → component-ref-MchEmL6v.cjs} +1 -1
- package/lib/browser/{component-ref-pzekKy-e.js → component-ref-wPMzznC-.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-k4bCVM0L.cjs → get-block-properties-V6ujGOJX.cjs} +1 -1
- package/lib/browser/{get-block-properties-pJvtXJrC.js → get-block-properties-sC22Pd4M.js} +1 -1
- package/lib/browser/helpers/studio-user-attributes.d.ts +6 -0
- package/lib/browser/helpers/user-attributes.d.ts +6 -2
- package/lib/browser/{index-FQjXUcZa.cjs → index-eYd0n1Z9.cjs} +47 -29
- package/lib/browser/{index-3BT-zvy_.js → index-q5KAlbTD.js} +666 -628
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-f81HRMwD.js → live-edit-1s4rW-oi.js} +1 -1
- package/lib/browser/{live-edit-QecbSljF.cjs → live-edit-9XphbhT5.cjs} +1 -1
- package/lib/browser/{repeated-block-z4-Tq0vb.js → repeated-block-6I_L8WXH.js} +2 -2
- package/lib/browser/{repeated-block-pzyWtt9k.cjs → repeated-block-qqRzg5S3.cjs} +1 -1
- package/lib/browser/{style-wrapper-XQIDj12j.js → style-wrapper-AiMrF8oQ.js} +1 -1
- package/lib/browser/{style-wrapper-wOCgRtEf.cjs → style-wrapper-oXSOdp7i.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-cczNFZYf.js → awaiter-i2AdsCLA.js} +1 -1
- package/lib/edge/{awaiter-kqWOzygI.cjs → awaiter-oLM9Kafz.cjs} +1 -1
- package/lib/edge/{block-wrapper-TCG6J1wM.js → block-wrapper-nYJgVIz5.js} +3 -3
- package/lib/{node/block-wrapper-B7fQ00-T.cjs → edge/block-wrapper-rZzzi9tk.cjs} +1 -1
- package/lib/edge/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
- package/lib/edge/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
- package/lib/edge/{component-ref-ke62ODDh.js → component-ref-8BywBvXD.js} +4 -4
- package/lib/edge/{component-ref-zHNGcCjv.cjs → component-ref-odWOhi_i.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-GLe5pKJ-.js → get-block-properties-gH_Kp754.js} +1 -1
- package/lib/edge/{get-block-properties-g3UUmViz.cjs → get-block-properties-mzlco-kS.cjs} +1 -1
- package/lib/edge/helpers/studio-user-attributes.d.ts +6 -0
- package/lib/edge/helpers/user-attributes.d.ts +6 -2
- package/lib/edge/{index-Q1mE-A20.cjs → index-fLvRlV0a.cjs} +55 -37
- package/lib/edge/{index-NPl2zFFt.js → index-uUniK2S-.js} +1016 -978
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-Qt7v1n8V.cjs → edge/live-edit-8fBzO7UA.cjs} +1 -1
- package/lib/edge/{live-edit-mfyAZvt8.js → live-edit-uzPvpQRs.js} +1 -1
- package/lib/edge/{repeated-block-lZx6tufR.js → repeated-block-KJK6coeA.js} +2 -2
- package/lib/edge/{repeated-block-fItsEFz7.cjs → repeated-block-eRX3Ydm1.cjs} +1 -1
- package/lib/edge/{style-wrapper-C9W8emFx.js → style-wrapper-RcIKOtCX.js} +1 -1
- package/lib/edge/{style-wrapper-9SPXPEOl.cjs → style-wrapper-WHWVSrwf.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-Se1nH_ny.cjs → awaiter-7RsOWoyq.cjs} +1 -1
- package/lib/node/{awaiter-if1ZrvLi.js → awaiter-IvU_d6zV.js} +1 -1
- package/lib/{edge/block-wrapper-WHxKG2JN.cjs → node/block-wrapper-O3lGNLaZ.cjs} +1 -1
- package/lib/node/{block-wrapper-Nkj9awCA.js → block-wrapper-oh8Zqv4S.js} +3 -3
- package/lib/node/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
- package/lib/node/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
- package/lib/node/{component-ref-IheEdKTm.js → component-ref-1qW10r9i.js} +5 -5
- package/lib/node/{component-ref-BFKh4Vpb.cjs → component-ref-E-hRkGgX.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-I05vUwHl.js → get-block-properties-3-Ytk96K.js} +2 -2
- package/lib/node/{get-block-properties-NSTAD_o0.cjs → get-block-properties-FntOk9gG.cjs} +1 -1
- package/lib/node/helpers/studio-user-attributes.d.ts +6 -0
- package/lib/node/helpers/user-attributes.d.ts +6 -2
- package/lib/node/{index-jBWgo8LI.cjs → index-Ebn2XpZy.cjs} +47 -29
- package/lib/node/{index-vP-oPL56.js → index-JPN0TMGI.js} +557 -519
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-NlcA1TEi.cjs → node/live-edit-Fyy2dLmN.cjs} +1 -1
- package/lib/node/{live-edit-yKSQ0yqr.js → live-edit-nQcPabEF.js} +1 -1
- package/lib/node/{repeated-block-EN_RXDs9.js → repeated-block-mWvg20A4.js} +2 -2
- package/lib/node/{repeated-block-KjQeddn3.cjs → repeated-block-n7SlKEY8.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cWvDK4Td.js → should-force-browser-runtime-in-node-7WfMMOj3.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node--WFVCCbl.cjs → should-force-browser-runtime-in-node-iVwYxZAp.cjs} +1 -1
- package/lib/node/{style-wrapper-GM8YDWdR.js → style-wrapper-BuUTAhVf.js} +2 -2
- package/lib/node/{style-wrapper-tpv235Ma.cjs → style-wrapper-kIHE4aIy.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as
|
|
2
|
-
import { T as R, g as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as _, mergeProps as I, toHandlers as U, withCtx as D, renderSlot as V, resolveComponent as k, createTextVNode as $t, toDisplayString as de, defineAsyncComponent as Y, createVNode as $, renderList as x, createCommentVNode as T, h as Ze, createElementVNode as K, normalizeStyle as H, normalizeClass as Z, markRaw as Rt } from "vue";
|
|
2
|
+
import { T as R, g as Et, f as Pt, i as E, s as At, r as Bt, p as Vt, a as Nt, l as F, b as et, c as Ie, d as Wt, n as tt, S as Dt, e as $e, h as se, j as Ot, k as nt, m as Ut, o as A, q as ot, _ as Ue } from "./should-force-browser-runtime-in-node-7WfMMOj3.js";
|
|
3
|
+
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ft = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
4
4
|
function N(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,11 +11,11 @@ function N(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Lt = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Ft };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,14 +23,14 @@ const xt = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(
|
|
26
|
+
function Ht(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(_(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(_(e.TagName), I({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
29
|
default: D(() => [
|
|
30
30
|
V(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(
|
|
33
|
+
}, 16)) : (d(), S(_(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), {
|
|
34
34
|
default: D(() => [
|
|
35
35
|
V(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,7 +38,7 @@ function Ut(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const Re = /* @__PURE__ */ v(
|
|
41
|
+
const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: Re
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), M = () => {
|
|
@@ -54,7 +54,7 @@ const Re = /* @__PURE__ */ v(xt, [["render", Ut]]), _i = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Mt = y({
|
|
58
58
|
name: "builder-button",
|
|
59
59
|
components: { DynamicRenderer: Re },
|
|
60
60
|
props: [
|
|
@@ -83,7 +83,7 @@ const Re = /* @__PURE__ */ v(xt, [["render", Ut]]), _i = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function zt(e, t, n, o, r, i) {
|
|
87
87
|
const s = k("DynamicRenderer");
|
|
88
88
|
return d(), S(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
@@ -91,12 +91,12 @@ function Lt(e, t, n, o, r, i) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: D(() => [
|
|
94
|
-
|
|
94
|
+
$t(de(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,14 +113,14 @@ const Ht = /* @__PURE__ */ v(Ft, [["render", Lt]]), Mt = Symbol(), be = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: qt
|
|
117
|
+
}, Kt = Symbol(), rt = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
119
|
+
key: Kt
|
|
120
|
+
}, it = (e, t, n) => {
|
|
121
121
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
122
122
|
return o === void 0 || o === e ? n : o;
|
|
123
|
-
},
|
|
123
|
+
}, Jt = ({
|
|
124
124
|
code: e,
|
|
125
125
|
builder: t,
|
|
126
126
|
context: n,
|
|
@@ -129,22 +129,22 @@ const Ht = /* @__PURE__ */ v(Ft, [["render", Lt]]), Mt = Symbol(), be = {
|
|
|
129
129
|
rootSetState: i,
|
|
130
130
|
rootState: s
|
|
131
131
|
}) => {
|
|
132
|
-
const l =
|
|
132
|
+
const l = Et({
|
|
133
133
|
builder: t,
|
|
134
134
|
context: n,
|
|
135
135
|
event: o,
|
|
136
|
-
state:
|
|
136
|
+
state: Pt({
|
|
137
137
|
rootState: s,
|
|
138
138
|
localState: r,
|
|
139
139
|
rootSetState: i
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
143
|
-
},
|
|
143
|
+
}, Gt = (e) => E() || At({
|
|
144
144
|
shouldLogWarning: !0
|
|
145
|
-
}) ?
|
|
145
|
+
}) ? Jt(e) : Bt(e), Qt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Yt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, _t = (e) => {
|
|
146
146
|
var t, n, o, r, i, s;
|
|
147
|
-
return ((o = (n = (t =
|
|
147
|
+
return ((o = (n = (t = Qt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Yt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
148
148
|
};
|
|
149
149
|
function ee({
|
|
150
150
|
code: e,
|
|
@@ -158,17 +158,17 @@ function ee({
|
|
|
158
158
|
}) {
|
|
159
159
|
if (e.trim() === "")
|
|
160
160
|
return;
|
|
161
|
-
const a =
|
|
161
|
+
const a = _t(e.trim());
|
|
162
162
|
if (a)
|
|
163
|
-
return
|
|
163
|
+
return it({
|
|
164
164
|
...o,
|
|
165
165
|
...n
|
|
166
166
|
}, a);
|
|
167
167
|
const u = {
|
|
168
|
-
code:
|
|
168
|
+
code: Vt(e, {
|
|
169
169
|
isExpression: s
|
|
170
170
|
}),
|
|
171
|
-
builder:
|
|
171
|
+
builder: Nt(l),
|
|
172
172
|
context: t,
|
|
173
173
|
event: i,
|
|
174
174
|
rootSetState: r,
|
|
@@ -176,7 +176,7 @@ function ee({
|
|
|
176
176
|
localState: n
|
|
177
177
|
};
|
|
178
178
|
try {
|
|
179
|
-
return
|
|
179
|
+
return Gt(u);
|
|
180
180
|
} catch (p) {
|
|
181
181
|
F.error("Failed code evaluation: " + p.message, {
|
|
182
182
|
code: e
|
|
@@ -184,15 +184,15 @@ function ee({
|
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Xt(e, t) {
|
|
188
188
|
var n;
|
|
189
189
|
return {
|
|
190
190
|
...(n = e.component) == null ? void 0 : n.options,
|
|
191
191
|
...e.options,
|
|
192
|
-
...
|
|
192
|
+
...Zt(e, t)
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const Zt = (e, t) => {
|
|
196
196
|
var n, o;
|
|
197
197
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
198
198
|
return {
|
|
@@ -206,7 +206,7 @@ const Yt = (e, t) => {
|
|
|
206
206
|
}))
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function en(e, ...t) {
|
|
210
210
|
const n = Object.assign({}, e);
|
|
211
211
|
for (const o of t)
|
|
212
212
|
delete n[o];
|
|
@@ -229,28 +229,28 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
229
229
|
}), ae(s, t, e, i, r);
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function st(e) {
|
|
233
233
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function tn(e) {
|
|
236
236
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
237
237
|
return !1;
|
|
238
238
|
let t = !1;
|
|
239
239
|
return ae(e, (n) => {
|
|
240
|
-
if (
|
|
240
|
+
if (st(n)) {
|
|
241
241
|
t = !0;
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
}), t;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function nn(e, t) {
|
|
247
247
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
248
|
-
|
|
248
|
+
st(n) && o(n[t] ?? void 0);
|
|
249
249
|
}), e);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function on(e, t) {
|
|
252
252
|
var n, o;
|
|
253
|
-
return (n = e.component) != null && n.options &&
|
|
253
|
+
return (n = e.component) != null && n.options && tn((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 = nn(e.component.options, t ?? "Default")), e;
|
|
254
254
|
}
|
|
255
255
|
function ge(e) {
|
|
256
256
|
if (e === null || typeof e != "object")
|
|
@@ -264,8 +264,8 @@ function ge(e) {
|
|
|
264
264
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
267
|
+
const rn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), sn = (e) => {
|
|
268
|
+
if (rn) {
|
|
269
269
|
const t = Ie(e);
|
|
270
270
|
return {
|
|
271
271
|
...t,
|
|
@@ -277,7 +277,7 @@ const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), nn = (e) =
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
} else {
|
|
280
|
-
const t = ge(
|
|
280
|
+
const t = ge(en(e, "children", "meta"));
|
|
281
281
|
return {
|
|
282
282
|
...t,
|
|
283
283
|
properties: {
|
|
@@ -290,7 +290,7 @@ const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), nn = (e) =
|
|
|
290
290
|
meta: e.meta
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, an = ({
|
|
294
294
|
block: e,
|
|
295
295
|
context: t,
|
|
296
296
|
localState: n,
|
|
@@ -299,7 +299,7 @@ const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), nn = (e) =
|
|
|
299
299
|
}) => {
|
|
300
300
|
if (!e.bindings)
|
|
301
301
|
return e;
|
|
302
|
-
const i =
|
|
302
|
+
const i = sn(e);
|
|
303
303
|
for (const s in e.bindings) {
|
|
304
304
|
const l = e.bindings[s], a = ee({
|
|
305
305
|
code: l,
|
|
@@ -308,11 +308,11 @@ const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), nn = (e) =
|
|
|
308
308
|
rootSetState: r,
|
|
309
309
|
context: t
|
|
310
310
|
});
|
|
311
|
-
|
|
311
|
+
et(i, s, a);
|
|
312
312
|
}
|
|
313
313
|
return i;
|
|
314
314
|
};
|
|
315
|
-
function
|
|
315
|
+
function ln({
|
|
316
316
|
block: e,
|
|
317
317
|
context: t,
|
|
318
318
|
localState: n,
|
|
@@ -320,33 +320,33 @@ function rn({
|
|
|
320
320
|
rootSetState: r
|
|
321
321
|
}) {
|
|
322
322
|
let i = e;
|
|
323
|
-
return i =
|
|
323
|
+
return i = an({
|
|
324
324
|
block: i,
|
|
325
325
|
localState: n,
|
|
326
326
|
rootState: o,
|
|
327
327
|
rootSetState: r,
|
|
328
328
|
context: t
|
|
329
|
-
}), i =
|
|
329
|
+
}), i = on(i, o.locale), i;
|
|
330
330
|
}
|
|
331
331
|
function Ee(e) {
|
|
332
332
|
const t = e || (E() ? window.location.search : void 0);
|
|
333
|
-
return t ?
|
|
333
|
+
return t ? Wt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
334
334
|
}
|
|
335
|
-
const
|
|
335
|
+
const cn = (e) => ({
|
|
336
336
|
type: "builder.registerComponent",
|
|
337
337
|
data: le(e)
|
|
338
|
-
}),
|
|
338
|
+
}), dn = (e) => {
|
|
339
339
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
340
340
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
341
341
|
};
|
|
342
342
|
function le(e) {
|
|
343
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
343
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? dn(n) : n));
|
|
344
344
|
}
|
|
345
|
-
const
|
|
346
|
-
function
|
|
345
|
+
const xe = {};
|
|
346
|
+
function as(e, t) {
|
|
347
347
|
e === "plugin" && (t = le(t));
|
|
348
|
-
let n =
|
|
349
|
-
if (n || (n =
|
|
348
|
+
let n = xe[e];
|
|
349
|
+
if (n || (n = xe[e] = []), n.push(t), E()) {
|
|
350
350
|
const o = {
|
|
351
351
|
type: "builder.register",
|
|
352
352
|
data: {
|
|
@@ -361,7 +361,7 @@ function es(e, t) {
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function ls(e) {
|
|
365
365
|
var t;
|
|
366
366
|
if (E()) {
|
|
367
367
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -372,7 +372,7 @@ function ts(e) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
const Fe = {};
|
|
375
|
-
function
|
|
375
|
+
function cs(e) {
|
|
376
376
|
if (E()) {
|
|
377
377
|
Object.assign(Fe, e);
|
|
378
378
|
const t = {
|
|
@@ -382,39 +382,39 @@ function ns(e) {
|
|
|
382
382
|
parent.postMessage(t, "*");
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
const Le = "builder.",
|
|
385
|
+
const Le = "builder.", un = "options.", at = (e) => {
|
|
386
386
|
if (!e)
|
|
387
387
|
return {};
|
|
388
|
-
const t =
|
|
388
|
+
const t = tt(e), n = {};
|
|
389
389
|
return Object.keys(t).forEach((o) => {
|
|
390
390
|
if (o.startsWith(Le)) {
|
|
391
|
-
const r = o.replace(Le, "").replace(
|
|
391
|
+
const r = o.replace(Le, "").replace(un, "");
|
|
392
392
|
n[r] = t[o];
|
|
393
393
|
}
|
|
394
394
|
}), n;
|
|
395
|
-
},
|
|
395
|
+
}, pn = () => {
|
|
396
396
|
if (!E())
|
|
397
397
|
return {};
|
|
398
398
|
const e = new URLSearchParams(window.location.search);
|
|
399
|
-
return
|
|
400
|
-
},
|
|
401
|
-
function
|
|
399
|
+
return at(e);
|
|
400
|
+
}, mn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
401
|
+
function lt(e, t) {
|
|
402
402
|
let n;
|
|
403
403
|
try {
|
|
404
404
|
n = new URL(t.origin);
|
|
405
405
|
} catch {
|
|
406
406
|
return !1;
|
|
407
407
|
}
|
|
408
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
408
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || mn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
409
409
|
}
|
|
410
410
|
let He = !1;
|
|
411
|
-
const
|
|
411
|
+
const ct = (e) => {
|
|
412
412
|
var t, n;
|
|
413
413
|
He || (He = !0, E() && ((t = window.parent) == null || t.postMessage({
|
|
414
414
|
type: "builder.sdkInfo",
|
|
415
415
|
data: {
|
|
416
416
|
target: R,
|
|
417
|
-
version:
|
|
417
|
+
version: Dt,
|
|
418
418
|
supportsPatchUpdates: !1,
|
|
419
419
|
// Supports builder-model="..." attribute which is needed to
|
|
420
420
|
// scope our '+ add block' button styling
|
|
@@ -432,7 +432,7 @@ const st = (e) => {
|
|
|
432
432
|
}
|
|
433
433
|
}, "*"), window.addEventListener("message", (o) => {
|
|
434
434
|
var i, s;
|
|
435
|
-
if (!
|
|
435
|
+
if (!lt(e.trustedHosts, o))
|
|
436
436
|
return;
|
|
437
437
|
const {
|
|
438
438
|
data: r
|
|
@@ -473,12 +473,12 @@ const st = (e) => {
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
})));
|
|
476
|
-
},
|
|
476
|
+
}, dt = ({
|
|
477
477
|
model: e,
|
|
478
478
|
trustedHosts: t,
|
|
479
479
|
callbacks: n
|
|
480
480
|
}) => (o) => {
|
|
481
|
-
if (!
|
|
481
|
+
if (!lt(t, o))
|
|
482
482
|
return;
|
|
483
483
|
const {
|
|
484
484
|
data: r
|
|
@@ -504,7 +504,7 @@ const st = (e) => {
|
|
|
504
504
|
break;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
},
|
|
507
|
+
}, ds = ({
|
|
508
508
|
model: e,
|
|
509
509
|
apiKey: t,
|
|
510
510
|
callback: n,
|
|
@@ -513,11 +513,11 @@ const st = (e) => {
|
|
|
513
513
|
if (!E)
|
|
514
514
|
return F.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
515
515
|
};
|
|
516
|
-
|
|
516
|
+
ct({
|
|
517
517
|
modelName: e,
|
|
518
518
|
apiKey: t
|
|
519
519
|
});
|
|
520
|
-
const r =
|
|
520
|
+
const r = dt({
|
|
521
521
|
callbacks: {
|
|
522
522
|
contentUpdate: n,
|
|
523
523
|
animation: () => {
|
|
@@ -533,24 +533,24 @@ const st = (e) => {
|
|
|
533
533
|
return window.addEventListener("message", r), () => {
|
|
534
534
|
window.removeEventListener("message", r);
|
|
535
535
|
};
|
|
536
|
-
},
|
|
536
|
+
}, hn = "builder.tests", Pe = (e) => `${hn}.${e}`, fn = ({
|
|
537
537
|
contentId: e
|
|
538
|
-
}) =>
|
|
538
|
+
}) => Ot({
|
|
539
539
|
name: Pe(e),
|
|
540
540
|
canTrack: !0
|
|
541
|
-
}),
|
|
541
|
+
}), bn = ({
|
|
542
542
|
contentId: e
|
|
543
543
|
}) => $e({
|
|
544
544
|
name: Pe(e),
|
|
545
545
|
canTrack: !0
|
|
546
|
-
}),
|
|
546
|
+
}), gn = ({
|
|
547
547
|
contentId: e,
|
|
548
548
|
value: t
|
|
549
|
-
}) =>
|
|
549
|
+
}) => nt({
|
|
550
550
|
name: Pe(e),
|
|
551
551
|
value: t,
|
|
552
552
|
canTrack: !0
|
|
553
|
-
}),
|
|
553
|
+
}), ut = (e) => se(e.id) && se(e.variations) && Object.keys(e.variations).length > 0, yn = ({
|
|
554
554
|
id: e,
|
|
555
555
|
variations: t
|
|
556
556
|
}) => {
|
|
@@ -563,15 +563,15 @@ const st = (e) => {
|
|
|
563
563
|
return i;
|
|
564
564
|
}
|
|
565
565
|
return e;
|
|
566
|
-
},
|
|
567
|
-
const t =
|
|
568
|
-
return
|
|
566
|
+
}, pt = (e) => {
|
|
567
|
+
const t = yn(e);
|
|
568
|
+
return gn({
|
|
569
569
|
contentId: e.id,
|
|
570
570
|
value: t
|
|
571
571
|
}).catch((n) => {
|
|
572
572
|
F.error("could not store A/B test variation: ", n);
|
|
573
573
|
}), t;
|
|
574
|
-
},
|
|
574
|
+
}, mt = ({
|
|
575
575
|
item: e,
|
|
576
576
|
testGroupId: t
|
|
577
577
|
}) => {
|
|
@@ -585,7 +585,7 @@ const st = (e) => {
|
|
|
585
585
|
testVariationId: n.id,
|
|
586
586
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
587
587
|
};
|
|
588
|
-
},
|
|
588
|
+
}, vn = ({
|
|
589
589
|
item: e,
|
|
590
590
|
canTrack: t
|
|
591
591
|
}) => {
|
|
@@ -593,14 +593,14 @@ const st = (e) => {
|
|
|
593
593
|
return e;
|
|
594
594
|
if (!e)
|
|
595
595
|
return;
|
|
596
|
-
if (!
|
|
596
|
+
if (!ut(e))
|
|
597
597
|
return e;
|
|
598
|
-
const n =
|
|
598
|
+
const n = bn({
|
|
599
599
|
contentId: e.id
|
|
600
|
-
}) ||
|
|
600
|
+
}) || pt({
|
|
601
601
|
variations: e.variations,
|
|
602
602
|
id: e.id
|
|
603
|
-
}), o =
|
|
603
|
+
}), o = mt({
|
|
604
604
|
item: e,
|
|
605
605
|
testGroupId: n
|
|
606
606
|
});
|
|
@@ -608,18 +608,18 @@ const st = (e) => {
|
|
|
608
608
|
...e,
|
|
609
609
|
...o
|
|
610
610
|
};
|
|
611
|
-
},
|
|
611
|
+
}, Sn = async ({
|
|
612
612
|
item: e,
|
|
613
613
|
canTrack: t
|
|
614
614
|
}) => {
|
|
615
|
-
if (!t || !
|
|
615
|
+
if (!t || !ut(e))
|
|
616
616
|
return e;
|
|
617
|
-
const o = await
|
|
617
|
+
const o = await fn({
|
|
618
618
|
contentId: e.id
|
|
619
|
-
}) ||
|
|
619
|
+
}) || pt({
|
|
620
620
|
variations: e.variations,
|
|
621
621
|
id: e.id
|
|
622
|
-
}), r =
|
|
622
|
+
}), r = mt({
|
|
623
623
|
item: e,
|
|
624
624
|
testGroupId: o
|
|
625
625
|
});
|
|
@@ -628,61 +628,82 @@ const st = (e) => {
|
|
|
628
628
|
...r
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
|
-
const Me = "builder.userAttributes"
|
|
632
|
-
|
|
631
|
+
const kn = "builder.preview", Cn = "BUILDER_STUDIO", Me = "builder.userAttributes.", Tn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, ze = () => {
|
|
632
|
+
if (!E())
|
|
633
|
+
return {};
|
|
634
|
+
const e = new URLSearchParams(window.location.search);
|
|
635
|
+
if (e.get(kn) !== Cn)
|
|
636
|
+
return {};
|
|
637
|
+
const t = {};
|
|
638
|
+
return e.forEach((n, o) => {
|
|
639
|
+
o.startsWith(Me) && (t[o.slice(Me.length)] = Tn(n));
|
|
640
|
+
}), t;
|
|
641
|
+
}, je = "builder.userAttributes";
|
|
642
|
+
function qe() {
|
|
633
643
|
let e = !0;
|
|
634
|
-
const t = /* @__PURE__ */ new Set()
|
|
644
|
+
const t = /* @__PURE__ */ new Set(), n = () => {
|
|
645
|
+
const o = $e({
|
|
646
|
+
name: je,
|
|
647
|
+
canTrack: e
|
|
648
|
+
});
|
|
649
|
+
return o ? JSON.parse(o) : {};
|
|
650
|
+
};
|
|
635
651
|
return {
|
|
636
|
-
setUserAttributes(
|
|
652
|
+
setUserAttributes(o) {
|
|
637
653
|
if (!E())
|
|
638
654
|
return;
|
|
639
|
-
const
|
|
640
|
-
...
|
|
641
|
-
...
|
|
655
|
+
const r = {
|
|
656
|
+
...n(),
|
|
657
|
+
...o
|
|
642
658
|
};
|
|
643
|
-
|
|
644
|
-
name:
|
|
645
|
-
value: JSON.stringify(
|
|
659
|
+
nt({
|
|
660
|
+
name: je,
|
|
661
|
+
value: JSON.stringify(r),
|
|
646
662
|
canTrack: e
|
|
647
|
-
})
|
|
663
|
+
});
|
|
664
|
+
const i = ze();
|
|
665
|
+
t.forEach((s) => s({
|
|
666
|
+
...r,
|
|
667
|
+
...i
|
|
668
|
+
}));
|
|
648
669
|
},
|
|
649
670
|
getUserAttributes() {
|
|
650
|
-
return E() ?
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}
|
|
671
|
+
return E() ? {
|
|
672
|
+
...n(),
|
|
673
|
+
...ze()
|
|
674
|
+
} : {};
|
|
654
675
|
},
|
|
655
|
-
subscribeOnUserAttributesChange(
|
|
656
|
-
fireImmediately:
|
|
676
|
+
subscribeOnUserAttributesChange(o, {
|
|
677
|
+
fireImmediately: r
|
|
657
678
|
} = {}) {
|
|
658
|
-
return t.add(
|
|
659
|
-
t.delete(
|
|
679
|
+
return t.add(o), r && o(this.getUserAttributes()), function() {
|
|
680
|
+
t.delete(o);
|
|
660
681
|
};
|
|
661
682
|
},
|
|
662
|
-
setCanTrack(
|
|
663
|
-
e =
|
|
683
|
+
setCanTrack(o) {
|
|
684
|
+
e = o;
|
|
664
685
|
}
|
|
665
686
|
};
|
|
666
687
|
}
|
|
667
688
|
let ye;
|
|
668
|
-
E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
669
|
-
const ce = ye,
|
|
689
|
+
E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = qe()), ye = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ye = qe();
|
|
690
|
+
const ce = ye, us = (e) => {
|
|
670
691
|
ce.setUserAttributes(e);
|
|
671
692
|
}, J = (e) => {
|
|
672
693
|
const t = se(e) ? e : !0;
|
|
673
694
|
return ce.setCanTrack(t), t;
|
|
674
695
|
};
|
|
675
|
-
function
|
|
696
|
+
function wn() {
|
|
676
697
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
677
698
|
}
|
|
678
|
-
function
|
|
679
|
-
const e =
|
|
699
|
+
function In() {
|
|
700
|
+
const e = wn().fetch;
|
|
680
701
|
if (typeof e > "u")
|
|
681
702
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
682
703
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
683
704
|
return e;
|
|
684
705
|
}
|
|
685
|
-
const
|
|
706
|
+
const $n = In();
|
|
686
707
|
function ve(e, t = null, n = ".") {
|
|
687
708
|
return Object.keys(e).reduce((o, r) => {
|
|
688
709
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -695,14 +716,14 @@ function ve(e, t = null, n = ".") {
|
|
|
695
716
|
};
|
|
696
717
|
}, {});
|
|
697
718
|
}
|
|
698
|
-
function
|
|
719
|
+
function ht(e, t, n = {}) {
|
|
699
720
|
for (const o in e) {
|
|
700
721
|
const r = e[o], i = t ? t + "." + o : o;
|
|
701
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
722
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? ht(r, i, n) : n[i] = r;
|
|
702
723
|
}
|
|
703
724
|
return n;
|
|
704
725
|
}
|
|
705
|
-
function
|
|
726
|
+
function Rn(e) {
|
|
706
727
|
const t = {};
|
|
707
728
|
for (const n in e) {
|
|
708
729
|
const o = n.split(".");
|
|
@@ -714,7 +735,7 @@ function kn(e) {
|
|
|
714
735
|
}
|
|
715
736
|
return t;
|
|
716
737
|
}
|
|
717
|
-
const
|
|
738
|
+
const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (e) => {
|
|
718
739
|
const {
|
|
719
740
|
limit: t = 30,
|
|
720
741
|
userAttributes: n,
|
|
@@ -724,7 +745,7 @@ const Cn = "v3", je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
|
|
|
724
745
|
enrich: s,
|
|
725
746
|
enrichOptions: l,
|
|
726
747
|
locale: a,
|
|
727
|
-
apiVersion: u =
|
|
748
|
+
apiVersion: u = En,
|
|
728
749
|
fields: p,
|
|
729
750
|
omit: b,
|
|
730
751
|
offset: c,
|
|
@@ -741,7 +762,7 @@ const Cn = "v3", je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
|
|
|
741
762
|
const B = t !== 1, q = O || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
|
|
742
763
|
C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(B)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
|
|
743
764
|
let z = n || {};
|
|
744
|
-
if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m &&
|
|
765
|
+
if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m && Ke(m) && C.searchParams.set("cacheSeconds", String(m)), f && Ke(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
745
766
|
const W = ve({
|
|
746
767
|
sort: g
|
|
747
768
|
});
|
|
@@ -749,39 +770,39 @@ const Cn = "v3", je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
|
|
|
749
770
|
C.searchParams.set(L, JSON.stringify(W[L]));
|
|
750
771
|
}
|
|
751
772
|
const G = {
|
|
752
|
-
...
|
|
753
|
-
...
|
|
773
|
+
...pn(),
|
|
774
|
+
...tt(e.options || {})
|
|
754
775
|
};
|
|
755
776
|
z = {
|
|
756
777
|
...z,
|
|
757
|
-
...
|
|
778
|
+
...Bn(G)
|
|
758
779
|
};
|
|
759
780
|
const Q = ve(G);
|
|
760
781
|
for (const W in Q)
|
|
761
782
|
C.searchParams.set(W, String(Q[W]));
|
|
762
783
|
if (Object.keys(z).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(z)), o) {
|
|
763
|
-
const W =
|
|
784
|
+
const W = ht({
|
|
764
785
|
query: o
|
|
765
786
|
});
|
|
766
787
|
for (const L in W)
|
|
767
788
|
C.searchParams.set(L, JSON.stringify(W[L]));
|
|
768
789
|
}
|
|
769
790
|
return C;
|
|
770
|
-
},
|
|
791
|
+
}, Pn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, An = (e) => {
|
|
771
792
|
const t = {};
|
|
772
793
|
for (const n in e)
|
|
773
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
794
|
+
n.startsWith("userAttributes.") && (t[n] = Pn(e[n]), delete e[n]);
|
|
774
795
|
return t;
|
|
775
|
-
},
|
|
796
|
+
}, Bn = (e) => {
|
|
776
797
|
if (E() && e.preview === "BUILDER_STUDIO") {
|
|
777
798
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
778
|
-
const t =
|
|
799
|
+
const t = An(e), {
|
|
779
800
|
userAttributes: n
|
|
780
|
-
} =
|
|
801
|
+
} = Rn(t);
|
|
781
802
|
return n;
|
|
782
803
|
}
|
|
783
804
|
return {};
|
|
784
|
-
},
|
|
805
|
+
}, Vn = (e) => "results" in e;
|
|
785
806
|
async function Be(e) {
|
|
786
807
|
var o;
|
|
787
808
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
@@ -789,30 +810,30 @@ async function Be(e) {
|
|
|
789
810
|
locale: t,
|
|
790
811
|
...e.userAttributes
|
|
791
812
|
});
|
|
792
|
-
const n = await
|
|
813
|
+
const n = await Dn({
|
|
793
814
|
...e,
|
|
794
815
|
limit: 1
|
|
795
816
|
});
|
|
796
817
|
return n && n[0] || null;
|
|
797
818
|
}
|
|
798
|
-
const
|
|
819
|
+
const Nn = async (e) => {
|
|
799
820
|
var s;
|
|
800
|
-
const t = Ae(e), n = e.fetch ??
|
|
821
|
+
const t = Ae(e), n = e.fetch ?? $n, o = {
|
|
801
822
|
...e.fetchOptions,
|
|
802
823
|
headers: {
|
|
803
824
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
804
|
-
...
|
|
825
|
+
...Ut()
|
|
805
826
|
}
|
|
806
827
|
};
|
|
807
828
|
return await (await n(t.href, o)).json();
|
|
808
|
-
},
|
|
829
|
+
}, Wn = async (e, t, n = Ae(e)) => {
|
|
809
830
|
const o = J(e.canTrack);
|
|
810
831
|
if (n.search.includes("preview="), !o || !(E() || R === "reactNative"))
|
|
811
832
|
return t.results;
|
|
812
833
|
try {
|
|
813
834
|
const r = [];
|
|
814
835
|
for (const i of t.results)
|
|
815
|
-
r.push(await
|
|
836
|
+
r.push(await Sn({
|
|
816
837
|
item: i,
|
|
817
838
|
canTrack: o
|
|
818
839
|
}));
|
|
@@ -822,17 +843,17 @@ const Rn = async (e) => {
|
|
|
822
843
|
}
|
|
823
844
|
return t.results;
|
|
824
845
|
};
|
|
825
|
-
async function
|
|
826
|
-
const t = Ae(e), n = await
|
|
827
|
-
if (
|
|
846
|
+
async function Dn(e) {
|
|
847
|
+
const t = Ae(e), n = await Nn(e);
|
|
848
|
+
if (!Vn(n))
|
|
828
849
|
throw F.error("Error fetching data. ", {
|
|
829
850
|
url: t,
|
|
830
851
|
content: n,
|
|
831
852
|
options: e
|
|
832
853
|
}), n;
|
|
833
|
-
return
|
|
854
|
+
return Wn(e, n);
|
|
834
855
|
}
|
|
835
|
-
const
|
|
856
|
+
const ps = async (e) => {
|
|
836
857
|
var o, r, i;
|
|
837
858
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
838
859
|
...e,
|
|
@@ -844,7 +865,7 @@ const is = async (e) => {
|
|
|
844
865
|
urlPath: t
|
|
845
866
|
} : {}
|
|
846
867
|
},
|
|
847
|
-
options:
|
|
868
|
+
options: at(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
848
869
|
};
|
|
849
870
|
return {
|
|
850
871
|
apiKey: n.apiKey,
|
|
@@ -852,7 +873,7 @@ const is = async (e) => {
|
|
|
852
873
|
content: await Be(n)
|
|
853
874
|
};
|
|
854
875
|
}, Ve = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
855
|
-
function
|
|
876
|
+
function On(e, t, n = {}) {
|
|
856
877
|
let o, r, i, s = null, l = 0;
|
|
857
878
|
const a = function() {
|
|
858
879
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -864,7 +885,7 @@ function An(e, t, n = {}) {
|
|
|
864
885
|
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
|
|
865
886
|
};
|
|
866
887
|
}
|
|
867
|
-
function
|
|
888
|
+
function X(e, ...t) {
|
|
868
889
|
const n = Object(e);
|
|
869
890
|
for (let o = 1; o < arguments.length; o++) {
|
|
870
891
|
const r = arguments[o];
|
|
@@ -874,64 +895,64 @@ function Z(e, ...t) {
|
|
|
874
895
|
}
|
|
875
896
|
return n;
|
|
876
897
|
}
|
|
877
|
-
function
|
|
898
|
+
function Un(e) {
|
|
878
899
|
for (const t of e)
|
|
879
900
|
switch (t.trigger) {
|
|
880
901
|
case "pageLoad":
|
|
881
|
-
|
|
902
|
+
gt(t);
|
|
882
903
|
break;
|
|
883
904
|
case "scrollInView":
|
|
884
|
-
|
|
905
|
+
Fn(t);
|
|
885
906
|
break;
|
|
886
907
|
}
|
|
887
908
|
}
|
|
888
|
-
function
|
|
909
|
+
function ft(e) {
|
|
889
910
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
890
911
|
}
|
|
891
|
-
function
|
|
892
|
-
const n =
|
|
912
|
+
function bt(e, t) {
|
|
913
|
+
const n = xn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
893
914
|
for (const l of s)
|
|
894
915
|
for (const a of n)
|
|
895
916
|
a in l || (l[a] = o[a]);
|
|
896
917
|
}
|
|
897
|
-
function
|
|
918
|
+
function xn(e) {
|
|
898
919
|
const t = [];
|
|
899
920
|
for (const n of e.steps)
|
|
900
921
|
for (const o in n.styles)
|
|
901
922
|
t.indexOf(o) === -1 && t.push(o);
|
|
902
923
|
return t;
|
|
903
924
|
}
|
|
904
|
-
function
|
|
925
|
+
function gt(e) {
|
|
905
926
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
906
927
|
if (!t.length) {
|
|
907
|
-
|
|
928
|
+
ft(e.elementId || e.id || "");
|
|
908
929
|
return;
|
|
909
930
|
}
|
|
910
931
|
Array.from(t).forEach((n) => {
|
|
911
|
-
|
|
912
|
-
n.style.transition = `all ${e.duration}s ${Ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
932
|
+
bt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
933
|
+
n.style.transition = `all ${e.duration}s ${Ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
|
|
913
934
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
914
935
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
915
936
|
});
|
|
916
937
|
});
|
|
917
938
|
}
|
|
918
|
-
function
|
|
939
|
+
function Fn(e) {
|
|
919
940
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
920
941
|
if (!t.length) {
|
|
921
|
-
|
|
942
|
+
ft(e.elementId || e.id || "");
|
|
922
943
|
return;
|
|
923
944
|
}
|
|
924
945
|
Array.from(t).forEach((n) => {
|
|
925
|
-
|
|
946
|
+
bt(e, n);
|
|
926
947
|
let o = !1, r = !1;
|
|
927
948
|
function i() {
|
|
928
949
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
929
|
-
|
|
950
|
+
X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
930
951
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
931
952
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
932
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
953
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, X(n.style, e.steps[0].styles));
|
|
933
954
|
}
|
|
934
|
-
const s =
|
|
955
|
+
const s = On(i, 200, {
|
|
935
956
|
leading: !1
|
|
936
957
|
});
|
|
937
958
|
function l(p) {
|
|
@@ -940,7 +961,7 @@ function Nn(e) {
|
|
|
940
961
|
}
|
|
941
962
|
const a = e.steps[0].styles;
|
|
942
963
|
function u() {
|
|
943
|
-
|
|
964
|
+
X(n.style, a);
|
|
944
965
|
}
|
|
945
966
|
u(), setTimeout(() => {
|
|
946
967
|
n.style.transition = `all ${e.duration}s ${Ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -956,48 +977,48 @@ const ne = (e, t) => {
|
|
|
956
977
|
...e,
|
|
957
978
|
"--builder-image-position": n
|
|
958
979
|
} : e;
|
|
959
|
-
},
|
|
980
|
+
}, ms = (e, t) => t ? {
|
|
960
981
|
...e,
|
|
961
982
|
large: ne(e == null ? void 0 : e.large, "initial"),
|
|
962
983
|
medium: ne(e == null ? void 0 : e.medium),
|
|
963
984
|
small: ne(e == null ? void 0 : e.small),
|
|
964
985
|
xsmall: ne(e == null ? void 0 : e.xsmall)
|
|
965
|
-
} : e,
|
|
986
|
+
} : e, yt = (e) => Object.entries(e).map(([n, o]) => {
|
|
966
987
|
if (typeof o == "string")
|
|
967
988
|
return `${Ve(n)}: ${o};`;
|
|
968
|
-
}).filter(se),
|
|
969
|
-
`),
|
|
989
|
+
}).filter(se), Ln = (e) => yt(e).join(`
|
|
990
|
+
`), hs = ({
|
|
970
991
|
mediaQuery: e,
|
|
971
992
|
className: t,
|
|
972
993
|
styles: n
|
|
973
994
|
}) => {
|
|
974
995
|
const o = `.${t} {
|
|
975
|
-
${
|
|
996
|
+
${Ln(n)}
|
|
976
997
|
}`;
|
|
977
998
|
return e ? `${e} {
|
|
978
999
|
${o}
|
|
979
1000
|
}` : o;
|
|
980
1001
|
};
|
|
981
|
-
function
|
|
1002
|
+
function Hn({
|
|
982
1003
|
style: e
|
|
983
1004
|
}) {
|
|
984
1005
|
return e;
|
|
985
1006
|
}
|
|
986
|
-
const
|
|
1007
|
+
const fs = ({
|
|
987
1008
|
block: e,
|
|
988
1009
|
context: t
|
|
989
|
-
}) =>
|
|
1010
|
+
}) => vt(Hn({
|
|
990
1011
|
style: e.style || {},
|
|
991
1012
|
context: t,
|
|
992
1013
|
block: e
|
|
993
1014
|
}));
|
|
994
|
-
function
|
|
1015
|
+
function vt(e) {
|
|
995
1016
|
switch (R) {
|
|
996
1017
|
case "svelte":
|
|
997
1018
|
case "vue":
|
|
998
1019
|
case "solid":
|
|
999
1020
|
case "angular":
|
|
1000
|
-
return
|
|
1021
|
+
return yt(e).join(" ");
|
|
1001
1022
|
case "qwik":
|
|
1002
1023
|
case "reactNative":
|
|
1003
1024
|
case "react":
|
|
@@ -1005,7 +1026,7 @@ function bt(e) {
|
|
|
1005
1026
|
return e;
|
|
1006
1027
|
}
|
|
1007
1028
|
}
|
|
1008
|
-
const
|
|
1029
|
+
const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Mn = ({
|
|
1009
1030
|
block: e,
|
|
1010
1031
|
registeredComponents: t,
|
|
1011
1032
|
model: n
|
|
@@ -1015,14 +1036,14 @@ const gt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1015
1036
|
if (!o)
|
|
1016
1037
|
return null;
|
|
1017
1038
|
const r = t[o];
|
|
1018
|
-
if (!r ||
|
|
1039
|
+
if (!r || St(r, n)) {
|
|
1019
1040
|
console.warn(`
|
|
1020
1041
|
Could not find a registered component named "${o}".
|
|
1021
1042
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1022
1043
|
return;
|
|
1023
1044
|
} else
|
|
1024
1045
|
return r;
|
|
1025
|
-
},
|
|
1046
|
+
}, zn = ({
|
|
1026
1047
|
block: e,
|
|
1027
1048
|
context: t
|
|
1028
1049
|
}) => {
|
|
@@ -1055,59 +1076,59 @@ const gt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1055
1076
|
},
|
|
1056
1077
|
block: o
|
|
1057
1078
|
}));
|
|
1058
|
-
},
|
|
1079
|
+
}, jn = (e, t) => {
|
|
1059
1080
|
var n;
|
|
1060
1081
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1061
1082
|
builderLinkComponent: t
|
|
1062
1083
|
} : {};
|
|
1063
|
-
},
|
|
1084
|
+
}, qn = (e, t, n) => {
|
|
1064
1085
|
var o;
|
|
1065
1086
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1066
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1087
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !St(s, n)))
|
|
1067
1088
|
} : {};
|
|
1068
|
-
},
|
|
1089
|
+
}, Kn = (e, t) => {
|
|
1069
1090
|
var n;
|
|
1070
1091
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1071
1092
|
builderBlock: t
|
|
1072
1093
|
} : {};
|
|
1073
|
-
},
|
|
1094
|
+
}, Jn = (e, t) => {
|
|
1074
1095
|
var n;
|
|
1075
1096
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1076
1097
|
builderContext: t
|
|
1077
1098
|
} : {};
|
|
1078
|
-
},
|
|
1099
|
+
}, Gn = (e) => e.toString(), Qn = () => Promise.resolve().then(() => co).then((e) => e.default).catch((e) => {
|
|
1079
1100
|
throw console.error(
|
|
1080
1101
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1081
1102
|
e
|
|
1082
1103
|
), e;
|
|
1083
|
-
}),
|
|
1104
|
+
}), Yn = () => import("./block-wrapper-oh8Zqv4S.js").then((e) => e.default).catch((e) => {
|
|
1084
1105
|
throw console.error(
|
|
1085
1106
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1086
1107
|
e
|
|
1087
1108
|
), e;
|
|
1088
|
-
}),
|
|
1109
|
+
}), _n = () => import("./component-ref-1qW10r9i.js").then((e) => e.default).catch((e) => {
|
|
1089
1110
|
throw console.error(
|
|
1090
1111
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1091
1112
|
e
|
|
1092
1113
|
), e;
|
|
1093
|
-
}),
|
|
1114
|
+
}), Xn = () => import("./repeated-block-mWvg20A4.js").then((e) => e.default).catch((e) => {
|
|
1094
1115
|
throw console.error(
|
|
1095
1116
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1096
1117
|
e
|
|
1097
1118
|
), e;
|
|
1098
|
-
}),
|
|
1119
|
+
}), Zn = () => import("./style-wrapper-BuUTAhVf.js").then((e) => e.default).catch((e) => {
|
|
1099
1120
|
throw console.error(
|
|
1100
1121
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1101
1122
|
e
|
|
1102
1123
|
), e;
|
|
1103
|
-
}),
|
|
1124
|
+
}), eo = y({
|
|
1104
1125
|
name: "block",
|
|
1105
1126
|
components: {
|
|
1106
|
-
StyleWrapper: Y(
|
|
1107
|
-
RepeatedBlock: Y(
|
|
1108
|
-
ComponentRef: Y(
|
|
1109
|
-
BlockWrapper: Y(
|
|
1110
|
-
DynamicDiv: Y(
|
|
1127
|
+
StyleWrapper: Y(Zn),
|
|
1128
|
+
RepeatedBlock: Y(Xn),
|
|
1129
|
+
ComponentRef: Y(_n),
|
|
1130
|
+
BlockWrapper: Y(Yn),
|
|
1131
|
+
DynamicDiv: Y(Qn)
|
|
1111
1132
|
},
|
|
1112
1133
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1113
1134
|
data() {
|
|
@@ -1116,12 +1137,12 @@ const gt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1116
1137
|
value: null,
|
|
1117
1138
|
update: !1
|
|
1118
1139
|
},
|
|
1119
|
-
generateKey:
|
|
1140
|
+
generateKey: Gn
|
|
1120
1141
|
};
|
|
1121
1142
|
},
|
|
1122
1143
|
mounted() {
|
|
1123
1144
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1124
|
-
t && e &&
|
|
1145
|
+
t && e && Un(
|
|
1125
1146
|
t.map((n) => ({
|
|
1126
1147
|
...n,
|
|
1127
1148
|
elementId: e
|
|
@@ -1132,14 +1153,14 @@ const gt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1132
1153
|
},
|
|
1133
1154
|
computed: {
|
|
1134
1155
|
repeatItem() {
|
|
1135
|
-
return
|
|
1156
|
+
return zn({
|
|
1136
1157
|
block: this.block,
|
|
1137
1158
|
context: this.context
|
|
1138
1159
|
});
|
|
1139
1160
|
},
|
|
1140
1161
|
processedBlock() {
|
|
1141
1162
|
var t;
|
|
1142
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1163
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : ln({
|
|
1143
1164
|
block: this.block,
|
|
1144
1165
|
localState: this.context.localState,
|
|
1145
1166
|
rootState: this.context.rootState,
|
|
@@ -1148,7 +1169,7 @@ const gt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1148
1169
|
});
|
|
1149
1170
|
},
|
|
1150
1171
|
blockComponent() {
|
|
1151
|
-
return
|
|
1172
|
+
return Mn({
|
|
1152
1173
|
block: this.processedBlock,
|
|
1153
1174
|
registeredComponents: this.registeredComponents,
|
|
1154
1175
|
model: this.context.model
|
|
@@ -1175,11 +1196,11 @@ const gt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1175
1196
|
blockChildren: this.processedBlock.children ?? [],
|
|
1176
1197
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1177
1198
|
componentOptions: {
|
|
1178
|
-
...
|
|
1179
|
-
...
|
|
1180
|
-
...
|
|
1181
|
-
...
|
|
1182
|
-
...
|
|
1199
|
+
...Xt(this.processedBlock, this.context),
|
|
1200
|
+
...Kn(this.blockComponent, this.processedBlock),
|
|
1201
|
+
...Jn(this.blockComponent, this.context),
|
|
1202
|
+
...jn(this.blockComponent, this.linkComponent),
|
|
1203
|
+
...qn(
|
|
1183
1204
|
this.blockComponent,
|
|
1184
1205
|
this.registeredComponents,
|
|
1185
1206
|
this.context.model
|
|
@@ -1195,7 +1216,7 @@ const gt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1195
1216
|
}
|
|
1196
1217
|
}
|
|
1197
1218
|
});
|
|
1198
|
-
function
|
|
1219
|
+
function to(e, t, n, o, r, i) {
|
|
1199
1220
|
var b;
|
|
1200
1221
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1201
1222
|
return e.canShowBlock ? (d(), h(w, { key: 0 }, [
|
|
@@ -1205,7 +1226,7 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1205
1226
|
id: e.block.id
|
|
1206
1227
|
}, null, 8, ["block", "context", "id"]),
|
|
1207
1228
|
(b = e.blockComponent) != null && b.noWrap ? (d(), h(w, { key: 1 }, [
|
|
1208
|
-
e.repeatItem ? (d(!0), h(w, { key: 1 },
|
|
1229
|
+
e.repeatItem ? (d(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1209
1230
|
key: e.generateKey(m),
|
|
1210
1231
|
repeatContext: c.context,
|
|
1211
1232
|
block: c.block,
|
|
@@ -1224,7 +1245,7 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1224
1245
|
isInteractive: e.componentRefProps.isInteractive
|
|
1225
1246
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1226
1247
|
], 64)) : (d(), h(w, { key: 0 }, [
|
|
1227
|
-
e.repeatItem ? (d(!0), h(w, { key: 1 },
|
|
1248
|
+
e.repeatItem ? (d(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1228
1249
|
key: e.generateKey(m),
|
|
1229
1250
|
repeatContext: c.context,
|
|
1230
1251
|
block: c.block,
|
|
@@ -1248,7 +1269,7 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1248
1269
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1249
1270
|
isInteractive: e.componentRefProps.isInteractive
|
|
1250
1271
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1251
|
-
(d(!0), h(w, null,
|
|
1272
|
+
(d(!0), h(w, null, x(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1252
1273
|
key: c.id,
|
|
1253
1274
|
block: c,
|
|
1254
1275
|
registeredComponents: e.registeredComponents,
|
|
@@ -1261,10 +1282,10 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1261
1282
|
], 64))
|
|
1262
1283
|
], 64)) : T("", !0);
|
|
1263
1284
|
}
|
|
1264
|
-
const
|
|
1285
|
+
const kt = /* @__PURE__ */ v(eo, [["render", to]]), bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1265
1286
|
__proto__: null,
|
|
1266
|
-
default:
|
|
1267
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1287
|
+
default: kt
|
|
1288
|
+
}, Symbol.toStringTag, { value: "Module" })), no = y({
|
|
1268
1289
|
name: "builder-blocks-wrapper",
|
|
1269
1290
|
props: [
|
|
1270
1291
|
"blocks",
|
|
@@ -1334,8 +1355,8 @@ const yt = /* @__PURE__ */ v(Gn, [["render", Qn]]), cs = /* @__PURE__ */ Object.
|
|
|
1334
1355
|
}
|
|
1335
1356
|
}
|
|
1336
1357
|
});
|
|
1337
|
-
function
|
|
1338
|
-
return d(), S(
|
|
1358
|
+
function oo(e, t, n, o, r, i) {
|
|
1359
|
+
return d(), S(_(e.BlocksWrapper), I({
|
|
1339
1360
|
ref: "blocksWrapperRef",
|
|
1340
1361
|
class: e.className + " component-5vz8uirn7sc",
|
|
1341
1362
|
"builder-path": e.dataPath,
|
|
@@ -1351,9 +1372,9 @@ function Xn(e, t, n, o, r, i) {
|
|
|
1351
1372
|
_: 3
|
|
1352
1373
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1353
1374
|
}
|
|
1354
|
-
const
|
|
1375
|
+
const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-82fc93d6"]]), io = y({
|
|
1355
1376
|
name: "builder-blocks",
|
|
1356
|
-
components: { BlocksWrapper:
|
|
1377
|
+
components: { BlocksWrapper: ro, Block: kt },
|
|
1357
1378
|
props: [
|
|
1358
1379
|
"blocks",
|
|
1359
1380
|
"parent",
|
|
@@ -1367,10 +1388,10 @@ const Zn = /* @__PURE__ */ v(Yn, [["render", Xn], ["__scopeId", "data-v-82fc93d6
|
|
|
1367
1388
|
],
|
|
1368
1389
|
inject: {
|
|
1369
1390
|
builderContext: be.key,
|
|
1370
|
-
componentsContext:
|
|
1391
|
+
componentsContext: rt.key
|
|
1371
1392
|
}
|
|
1372
1393
|
});
|
|
1373
|
-
function
|
|
1394
|
+
function so(e, t, n, o, r, i) {
|
|
1374
1395
|
var a, u, p, b;
|
|
1375
1396
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1376
1397
|
return d(), S(l, {
|
|
@@ -1384,7 +1405,7 @@ function eo(e, t, n, o, r, i) {
|
|
|
1384
1405
|
}, {
|
|
1385
1406
|
default: D(() => [
|
|
1386
1407
|
V(e.$slots, "default"),
|
|
1387
|
-
e.blocks ? (d(!0), h(w, { key: 0 },
|
|
1408
|
+
e.blocks ? (d(!0), h(w, { key: 0 }, x(e.blocks, (c, m) => {
|
|
1388
1409
|
var f;
|
|
1389
1410
|
return d(), S(s, {
|
|
1390
1411
|
key: c.id,
|
|
@@ -1398,21 +1419,21 @@ function eo(e, t, n, o, r, i) {
|
|
|
1398
1419
|
_: 3
|
|
1399
1420
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1400
1421
|
}
|
|
1401
|
-
const j = /* @__PURE__ */ v(
|
|
1422
|
+
const j = /* @__PURE__ */ v(io, [["render", so]]), ao = y({
|
|
1402
1423
|
name: "dynamic-div",
|
|
1403
1424
|
props: []
|
|
1404
1425
|
});
|
|
1405
|
-
function
|
|
1426
|
+
function lo(e, t, n, o, r, i) {
|
|
1406
1427
|
return d(), h("div", null, [
|
|
1407
1428
|
V(e.$slots, "default")
|
|
1408
1429
|
]);
|
|
1409
1430
|
}
|
|
1410
|
-
const te = /* @__PURE__ */ v(
|
|
1431
|
+
const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1411
1432
|
__proto__: null,
|
|
1412
1433
|
default: te
|
|
1413
1434
|
}, Symbol.toStringTag, { value: "Module" })), ue = y({
|
|
1414
1435
|
render() {
|
|
1415
|
-
return
|
|
1436
|
+
return Ze("style", {
|
|
1416
1437
|
innerHTML: this.styles,
|
|
1417
1438
|
"data-id": this.id,
|
|
1418
1439
|
nonce: this.nonce
|
|
@@ -1420,7 +1441,7 @@ const te = /* @__PURE__ */ v(to, [["render", no]]), oo = /* @__PURE__ */ Object.
|
|
|
1420
1441
|
},
|
|
1421
1442
|
name: "inlined-styles",
|
|
1422
1443
|
props: ["styles", "id", "nonce"]
|
|
1423
|
-
}),
|
|
1444
|
+
}), Ct = {
|
|
1424
1445
|
xsmall: {
|
|
1425
1446
|
min: 0,
|
|
1426
1447
|
default: 160,
|
|
@@ -1441,8 +1462,8 @@ const te = /* @__PURE__ */ v(to, [["render", no]]), oo = /* @__PURE__ */ Object.
|
|
|
1441
1462
|
default: 991,
|
|
1442
1463
|
max: 1200
|
|
1443
1464
|
}
|
|
1444
|
-
},
|
|
1445
|
-
const t = Ie(
|
|
1465
|
+
}, gs = (e, t = Ct) => `@media (max-width: ${t[e].max}px)`, uo = (e) => {
|
|
1466
|
+
const t = Ie(Ct);
|
|
1446
1467
|
if (!e)
|
|
1447
1468
|
return t;
|
|
1448
1469
|
const {
|
|
@@ -1479,7 +1500,7 @@ const te = /* @__PURE__ */ v(to, [["render", no]]), oo = /* @__PURE__ */ Object.
|
|
|
1479
1500
|
min: l,
|
|
1480
1501
|
default: l + 1
|
|
1481
1502
|
}, t;
|
|
1482
|
-
},
|
|
1503
|
+
}, po = (e) => `builder-columns ${e}-breakpoints`, mo = y({
|
|
1483
1504
|
name: "builder-columns",
|
|
1484
1505
|
components: {
|
|
1485
1506
|
InlinedStyles: ue,
|
|
@@ -1498,7 +1519,7 @@ const te = /* @__PURE__ */ v(to, [["render", no]]), oo = /* @__PURE__ */ Object.
|
|
|
1498
1519
|
"builderComponents"
|
|
1499
1520
|
],
|
|
1500
1521
|
data() {
|
|
1501
|
-
return { TARGET: R, getColumnsClass:
|
|
1522
|
+
return { TARGET: R, getColumnsClass: po };
|
|
1502
1523
|
},
|
|
1503
1524
|
computed: {
|
|
1504
1525
|
gutterSize() {
|
|
@@ -1577,7 +1598,7 @@ const te = /* @__PURE__ */ v(to, [["render", no]]), oo = /* @__PURE__ */ Object.
|
|
|
1577
1598
|
},
|
|
1578
1599
|
getWidthForBreakpointSize(e) {
|
|
1579
1600
|
var n, o;
|
|
1580
|
-
return
|
|
1601
|
+
return uo(
|
|
1581
1602
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1582
1603
|
)[e].max;
|
|
1583
1604
|
},
|
|
@@ -1615,12 +1636,12 @@ const te = /* @__PURE__ */ v(to, [["render", no]]), oo = /* @__PURE__ */ Object.
|
|
|
1615
1636
|
href: e.link
|
|
1616
1637
|
} : {},
|
|
1617
1638
|
[M()]: "builder-column",
|
|
1618
|
-
style:
|
|
1639
|
+
style: vt(this.columnCssVars(t))
|
|
1619
1640
|
};
|
|
1620
1641
|
}
|
|
1621
1642
|
}
|
|
1622
1643
|
});
|
|
1623
|
-
function
|
|
1644
|
+
function ho(e, t, n, o, r, i) {
|
|
1624
1645
|
var u;
|
|
1625
1646
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1626
1647
|
return d(), h("div", I({
|
|
@@ -1633,7 +1654,7 @@ function ao(e, t, n, o, r, i) {
|
|
|
1633
1654
|
styles: e.columnsStyles(),
|
|
1634
1655
|
nonce: e.builderContext.nonce
|
|
1635
1656
|
}, null, 8, ["styles", "nonce"])) : T("", !0),
|
|
1636
|
-
(d(!0), h(w, null,
|
|
1657
|
+
(d(!0), h(w, null, x(e.columns, (p, b) => (d(), S(a, {
|
|
1637
1658
|
key: b,
|
|
1638
1659
|
TagName: e.getTagName(p),
|
|
1639
1660
|
actionAttributes: {},
|
|
@@ -1656,32 +1677,32 @@ function ao(e, t, n, o, r, i) {
|
|
|
1656
1677
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1657
1678
|
], 16);
|
|
1658
1679
|
}
|
|
1659
|
-
const
|
|
1680
|
+
const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-ab15749a"]]), bo = y({
|
|
1660
1681
|
name: "builder-fragment-component",
|
|
1661
1682
|
props: []
|
|
1662
1683
|
});
|
|
1663
|
-
function
|
|
1684
|
+
function go(e, t, n, o, r, i) {
|
|
1664
1685
|
return d(), h("span", null, [
|
|
1665
1686
|
V(e.$slots, "default")
|
|
1666
1687
|
]);
|
|
1667
1688
|
}
|
|
1668
|
-
const
|
|
1669
|
-
function
|
|
1689
|
+
const yo = /* @__PURE__ */ v(bo, [["render", go]]);
|
|
1690
|
+
function Je(e) {
|
|
1670
1691
|
return e.replace(/http(s)?:/, "");
|
|
1671
1692
|
}
|
|
1672
|
-
function
|
|
1693
|
+
function vo(e = "", t, n) {
|
|
1673
1694
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1674
1695
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1675
1696
|
}
|
|
1676
|
-
function
|
|
1697
|
+
function So(e, t) {
|
|
1677
1698
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1678
1699
|
return e;
|
|
1679
1700
|
if (t === "master")
|
|
1680
|
-
return
|
|
1701
|
+
return Je(e);
|
|
1681
1702
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1682
1703
|
if (n) {
|
|
1683
1704
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1684
|
-
return
|
|
1705
|
+
return Je(`${o[0]}_${i}${r}`);
|
|
1685
1706
|
}
|
|
1686
1707
|
return null;
|
|
1687
1708
|
}
|
|
@@ -1692,11 +1713,11 @@ function oe(e) {
|
|
|
1692
1713
|
if (e.match(/builder\.io/)) {
|
|
1693
1714
|
let n = e;
|
|
1694
1715
|
const o = Number(e.split("?width=")[1]);
|
|
1695
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1716
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${vo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1696
1717
|
}
|
|
1697
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1718
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [So(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1698
1719
|
}
|
|
1699
|
-
const
|
|
1720
|
+
const ko = y({
|
|
1700
1721
|
name: "builder-image",
|
|
1701
1722
|
props: [
|
|
1702
1723
|
"lazy",
|
|
@@ -1750,11 +1771,11 @@ const fo = y({
|
|
|
1750
1771
|
return this.aspectRatio ? e : void 0;
|
|
1751
1772
|
}
|
|
1752
1773
|
}
|
|
1753
|
-
}),
|
|
1774
|
+
}), Co = ["srcset", "sizes"], To = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], wo = {
|
|
1754
1775
|
key: 2,
|
|
1755
1776
|
class: "div-t43jfuqn6g-2"
|
|
1756
1777
|
};
|
|
1757
|
-
function
|
|
1778
|
+
function Io(e, t, n, o, r, i) {
|
|
1758
1779
|
var s, l, a, u, p, b;
|
|
1759
1780
|
return d(), h(w, null, [
|
|
1760
1781
|
K("picture", null, [
|
|
@@ -1763,25 +1784,24 @@ function vo(e, t, n, o, r, i) {
|
|
|
1763
1784
|
type: "image/webp",
|
|
1764
1785
|
srcset: e.webpSrcSet,
|
|
1765
1786
|
sizes: e.sizesToUse
|
|
1766
|
-
}, null, 8,
|
|
1787
|
+
}, null, 8, Co)) : T("", !0),
|
|
1767
1788
|
K("img", {
|
|
1768
1789
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1769
1790
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1770
1791
|
alt: e.altText || "",
|
|
1771
1792
|
title: e.title,
|
|
1772
|
-
role: e.altText ? void 0 : "presentation",
|
|
1773
1793
|
style: H({
|
|
1774
1794
|
objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
|
|
1775
1795
|
objectFit: e.backgroundSize || "cover",
|
|
1776
1796
|
...e.aspectRatioCss
|
|
1777
1797
|
}),
|
|
1778
|
-
class:
|
|
1798
|
+
class: Z(
|
|
1779
1799
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
1780
1800
|
),
|
|
1781
1801
|
src: e.image,
|
|
1782
1802
|
srcset: e.srcSetToUse,
|
|
1783
1803
|
sizes: e.sizesToUse
|
|
1784
|
-
}, null, 14,
|
|
1804
|
+
}, null, 14, To)
|
|
1785
1805
|
]),
|
|
1786
1806
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
1787
1807
|
key: 0,
|
|
@@ -1791,19 +1811,19 @@ function vo(e, t, n, o, r, i) {
|
|
|
1791
1811
|
})
|
|
1792
1812
|
}, null, 4)) : T("", !0),
|
|
1793
1813
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
|
|
1794
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div",
|
|
1814
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", wo, [
|
|
1795
1815
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1796
1816
|
])) : T("", !0)
|
|
1797
1817
|
], 64);
|
|
1798
1818
|
}
|
|
1799
|
-
const
|
|
1819
|
+
const $o = /* @__PURE__ */ v(ko, [["render", Io], ["__scopeId", "data-v-8fff0ea5"]]), Ro = y({
|
|
1800
1820
|
name: "builder-section-component",
|
|
1801
1821
|
props: ["attributes", "maxWidth"],
|
|
1802
1822
|
data() {
|
|
1803
1823
|
return { filterAttrs: N };
|
|
1804
1824
|
}
|
|
1805
1825
|
});
|
|
1806
|
-
function
|
|
1826
|
+
function Eo(e, t, n, o, r, i) {
|
|
1807
1827
|
return d(), h("section", I({
|
|
1808
1828
|
style: {
|
|
1809
1829
|
width: "100%",
|
|
@@ -1817,12 +1837,12 @@ function Co(e, t, n, o, r, i) {
|
|
|
1817
1837
|
marginLeft: "auto",
|
|
1818
1838
|
marginRight: "auto"
|
|
1819
1839
|
}
|
|
1820
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1840
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1821
1841
|
V(e.$slots, "default")
|
|
1822
1842
|
], 16);
|
|
1823
1843
|
}
|
|
1824
|
-
const
|
|
1825
|
-
function
|
|
1844
|
+
const Po = /* @__PURE__ */ v(Ro, [["render", Eo]]);
|
|
1845
|
+
function Ao(e, t, n, o) {
|
|
1826
1846
|
function r(u) {
|
|
1827
1847
|
return typeof u == "string";
|
|
1828
1848
|
}
|
|
@@ -1879,7 +1899,20 @@ function wo(e, t, n, o) {
|
|
|
1879
1899
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1880
1900
|
return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => s(e, u));
|
|
1881
1901
|
}
|
|
1882
|
-
const
|
|
1902
|
+
const Bo = `function getStudioUserAttributes() {
|
|
1903
|
+
const params = new URLSearchParams(window.location.search);
|
|
1904
|
+
if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
|
|
1905
|
+
return {};
|
|
1906
|
+
}
|
|
1907
|
+
const prefix = 'builder.userAttributes.';
|
|
1908
|
+
const attributes = {};
|
|
1909
|
+
params.forEach(function (value, key) {
|
|
1910
|
+
if (key.indexOf(prefix) === 0) {
|
|
1911
|
+
attributes[key.slice(prefix.length)] = value === 'true' ? true : value === 'false' ? false : value;
|
|
1912
|
+
}
|
|
1913
|
+
});
|
|
1914
|
+
return attributes;
|
|
1915
|
+
}`, Vo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1883
1916
|
if (!navigator.cookieEnabled) {
|
|
1884
1917
|
return;
|
|
1885
1918
|
}
|
|
@@ -1897,6 +1930,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1897
1930
|
if (locale) {
|
|
1898
1931
|
attributes.locale = locale;
|
|
1899
1932
|
}
|
|
1933
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
1900
1934
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
1901
1935
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
1902
1936
|
});
|
|
@@ -1924,7 +1958,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1924
1958
|
thisScript.remove();
|
|
1925
1959
|
}
|
|
1926
1960
|
}
|
|
1927
|
-
}`,
|
|
1961
|
+
}`, No = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1928
1962
|
function isString(val) {
|
|
1929
1963
|
return typeof val === 'string';
|
|
1930
1964
|
}
|
|
@@ -2002,7 +2036,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2002
2036
|
return item.query.every(filter => {
|
|
2003
2037
|
return objectMatchesQuery(userAttributes, filter);
|
|
2004
2038
|
});
|
|
2005
|
-
}`,
|
|
2039
|
+
}`, Wo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2006
2040
|
function getCookie(name) {
|
|
2007
2041
|
const nameEQ = name + '=';
|
|
2008
2042
|
const ca = document.cookie.split(';');
|
|
@@ -2028,6 +2062,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2028
2062
|
if (locale) {
|
|
2029
2063
|
attributes.locale = locale;
|
|
2030
2064
|
}
|
|
2065
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
2031
2066
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2032
2067
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2033
2068
|
});
|
|
@@ -2040,11 +2075,11 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2040
2075
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2041
2076
|
}
|
|
2042
2077
|
}
|
|
2043
|
-
}`, re = "default",
|
|
2044
|
-
function
|
|
2045
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2078
|
+
}`, re = "default", Ge = "filterWithCustomTargeting", Se = "builderIoPersonalization", ke = "updateVisibilityStylesScript", Qe = "builderIoStudioUserAttributes", Do = "PersonalizationContainer", Tt = ["react", "vue", "svelte", "qwik"], wt = ["vue", "svelte", "qwik"];
|
|
2079
|
+
function Oo(e, t) {
|
|
2080
|
+
return !(e && e.length > 0) || !t ? !1 : wt.includes(R) ? !0 : !E();
|
|
2046
2081
|
}
|
|
2047
|
-
function
|
|
2082
|
+
function Uo({
|
|
2048
2083
|
variants: e,
|
|
2049
2084
|
previewingIndex: t,
|
|
2050
2085
|
isHydrated: n,
|
|
@@ -2084,20 +2119,23 @@ function Ao({
|
|
|
2084
2119
|
}
|
|
2085
2120
|
const Ce = (e) => {
|
|
2086
2121
|
var t;
|
|
2087
|
-
return Array.isArray(e) ? e.some(Ce) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) ===
|
|
2088
|
-
},
|
|
2122
|
+
return Array.isArray(e) ? e.some(Ce) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Do ? !0 : Object.values(e).some(Ce);
|
|
2123
|
+
}, xo = (e) => Ce(e), Fo = () => `
|
|
2089
2124
|
(function() {
|
|
2090
|
-
if (!window.${
|
|
2091
|
-
window.${
|
|
2125
|
+
if (!window.${Qe}) {
|
|
2126
|
+
window.${Qe} = ${Bo};
|
|
2127
|
+
}
|
|
2128
|
+
if (!window.${Ge}) {
|
|
2129
|
+
window.${Ge} = ${No};
|
|
2092
2130
|
}
|
|
2093
2131
|
if (!window.${Se}) {
|
|
2094
|
-
window.${Se} = ${
|
|
2132
|
+
window.${Se} = ${Vo};
|
|
2095
2133
|
}
|
|
2096
2134
|
if (!window.${ke}) {
|
|
2097
|
-
window.${ke} = ${
|
|
2135
|
+
window.${ke} = ${Wo};
|
|
2098
2136
|
}
|
|
2099
2137
|
})();
|
|
2100
|
-
`,
|
|
2138
|
+
`, It = R === "react", Lo = (e, t, n) => `window.${Se}(${JSON.stringify(e)}, "${t}", ${It}${n ? `, "${n}"` : ""})`, Ho = (e, t, n) => `window.${ke}(${JSON.stringify(e)}, "${t}", ${It}${n ? `, "${n}"` : ""})`, pe = {
|
|
2101
2139
|
"@type": "@builder.io/sdk:Element",
|
|
2102
2140
|
layerName: "Accordion item title",
|
|
2103
2141
|
responsiveStyles: {
|
|
@@ -2157,7 +2195,7 @@ const Ce = (e) => {
|
|
|
2157
2195
|
}
|
|
2158
2196
|
}
|
|
2159
2197
|
}]
|
|
2160
|
-
},
|
|
2198
|
+
}, Mo = {
|
|
2161
2199
|
name: "Builder:Accordion",
|
|
2162
2200
|
canHaveChildren: !0,
|
|
2163
2201
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2221,7 +2259,7 @@ const Ce = (e) => {
|
|
|
2221
2259
|
builderComponents: !0,
|
|
2222
2260
|
builderLinkComponent: !0
|
|
2223
2261
|
}
|
|
2224
|
-
},
|
|
2262
|
+
}, zo = (e) => e.toString(), jo = y({
|
|
2225
2263
|
name: "builder-accordion",
|
|
2226
2264
|
components: { Blocks: j },
|
|
2227
2265
|
props: [
|
|
@@ -2235,7 +2273,7 @@ const Ce = (e) => {
|
|
|
2235
2273
|
"builderLinkComponent"
|
|
2236
2274
|
],
|
|
2237
2275
|
data() {
|
|
2238
|
-
return { open: [], convertOrderNumberToString:
|
|
2276
|
+
return { open: [], convertOrderNumberToString: zo };
|
|
2239
2277
|
},
|
|
2240
2278
|
computed: {
|
|
2241
2279
|
onlyOneAtATime() {
|
|
@@ -2316,16 +2354,16 @@ const Ce = (e) => {
|
|
|
2316
2354
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2317
2355
|
}
|
|
2318
2356
|
}
|
|
2319
|
-
}),
|
|
2320
|
-
function
|
|
2357
|
+
}), qo = ["data-index", "onClick"];
|
|
2358
|
+
function Ko(e, t, n, o, r, i) {
|
|
2321
2359
|
const s = k("Blocks");
|
|
2322
2360
|
return d(), h("div", {
|
|
2323
2361
|
class: "builder-accordion",
|
|
2324
2362
|
style: H(e.accordionStyles)
|
|
2325
2363
|
}, [
|
|
2326
|
-
(d(!0), h(w, null,
|
|
2364
|
+
(d(!0), h(w, null, x(e.items, (l, a) => (d(), h(w, { key: a }, [
|
|
2327
2365
|
K("div", {
|
|
2328
|
-
class:
|
|
2366
|
+
class: Z(e.getAccordionTitleClassName(a)),
|
|
2329
2367
|
style: H({
|
|
2330
2368
|
...e.accordionTitleStyles,
|
|
2331
2369
|
...e.grid && {
|
|
@@ -2344,10 +2382,10 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2344
2382
|
registeredComponents: e.builderComponents,
|
|
2345
2383
|
linkComponent: e.builderLinkComponent
|
|
2346
2384
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2347
|
-
], 14,
|
|
2385
|
+
], 14, qo),
|
|
2348
2386
|
e.open.includes(a) ? (d(), h("div", {
|
|
2349
2387
|
key: 0,
|
|
2350
|
-
class:
|
|
2388
|
+
class: Z(e.getAccordionDetailClassName(a)),
|
|
2351
2389
|
style: H(e.accordionDetailStyles)
|
|
2352
2390
|
}, [
|
|
2353
2391
|
$(s, {
|
|
@@ -2362,7 +2400,7 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2362
2400
|
], 64))), 128))
|
|
2363
2401
|
], 4);
|
|
2364
2402
|
}
|
|
2365
|
-
const
|
|
2403
|
+
const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
2366
2404
|
name: "Core:Button",
|
|
2367
2405
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2368
2406
|
defaultStyles: {
|
|
@@ -2398,7 +2436,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2398
2436
|
shouldReceiveBuilderProps: {
|
|
2399
2437
|
builderLinkComponent: !0
|
|
2400
2438
|
}
|
|
2401
|
-
},
|
|
2439
|
+
}, Qo = {
|
|
2402
2440
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2403
2441
|
name: "Columns",
|
|
2404
2442
|
isRSC: !0,
|
|
@@ -2605,13 +2643,13 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2605
2643
|
builderComponents: !0,
|
|
2606
2644
|
builderLinkComponent: !0
|
|
2607
2645
|
}
|
|
2608
|
-
},
|
|
2646
|
+
}, Yo = {
|
|
2609
2647
|
name: "Fragment",
|
|
2610
2648
|
static: !0,
|
|
2611
2649
|
hidden: !0,
|
|
2612
2650
|
canHaveChildren: !0,
|
|
2613
2651
|
noWrap: !0
|
|
2614
|
-
}, Ne = ["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"],
|
|
2652
|
+
}, Ne = ["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"], _o = ["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"], Xo = {
|
|
2615
2653
|
name: "Image",
|
|
2616
2654
|
static: !0,
|
|
2617
2655
|
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",
|
|
@@ -2724,7 +2762,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2724
2762
|
shouldReceiveBuilderProps: {
|
|
2725
2763
|
builderBlock: !0
|
|
2726
2764
|
}
|
|
2727
|
-
},
|
|
2765
|
+
}, Zo = {
|
|
2728
2766
|
name: "PersonalizationContainer",
|
|
2729
2767
|
shouldReceiveBuilderProps: {
|
|
2730
2768
|
builderBlock: !0,
|
|
@@ -2762,7 +2800,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2762
2800
|
}]
|
|
2763
2801
|
}, We = y({
|
|
2764
2802
|
render() {
|
|
2765
|
-
return
|
|
2803
|
+
return Ze("script", {
|
|
2766
2804
|
innerHTML: this.scriptStr,
|
|
2767
2805
|
"data-id": this.id,
|
|
2768
2806
|
nonce: this.nonce
|
|
@@ -2770,7 +2808,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2770
2808
|
},
|
|
2771
2809
|
name: "inlined-script",
|
|
2772
2810
|
props: ["scriptStr", "id", "nonce"]
|
|
2773
|
-
}),
|
|
2811
|
+
}), er = y({
|
|
2774
2812
|
name: "builder-personalization-container",
|
|
2775
2813
|
components: {
|
|
2776
2814
|
Blocks: j,
|
|
@@ -2789,25 +2827,25 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2789
2827
|
var e, t, n, o, r, i, s;
|
|
2790
2828
|
return {
|
|
2791
2829
|
userAttributes: ce.getUserAttributes(),
|
|
2792
|
-
scriptStr:
|
|
2830
|
+
scriptStr: Lo(
|
|
2793
2831
|
this.variants,
|
|
2794
2832
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2795
2833
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2796
2834
|
),
|
|
2797
|
-
updateVisibilityStylesScript:
|
|
2835
|
+
updateVisibilityStylesScript: Ho(
|
|
2798
2836
|
this.variants,
|
|
2799
2837
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2800
2838
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2801
2839
|
),
|
|
2802
2840
|
unsubscribers: [],
|
|
2803
|
-
shouldRenderVariants:
|
|
2841
|
+
shouldRenderVariants: Oo(
|
|
2804
2842
|
this.variants,
|
|
2805
2843
|
J((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2806
2844
|
),
|
|
2807
2845
|
shouldResetVariants: !1,
|
|
2808
2846
|
TARGET: R,
|
|
2809
2847
|
DEFAULT_INDEX: re,
|
|
2810
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2848
|
+
SDKS_REQUIRING_RESET_APPROACH: wt
|
|
2811
2849
|
};
|
|
2812
2850
|
},
|
|
2813
2851
|
mounted() {
|
|
@@ -2862,7 +2900,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2862
2900
|
filteredVariants() {
|
|
2863
2901
|
return (this.variants || []).filter((e) => {
|
|
2864
2902
|
var t, n, o, r;
|
|
2865
|
-
return
|
|
2903
|
+
return Ao(
|
|
2866
2904
|
{
|
|
2867
2905
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
2868
2906
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -2877,7 +2915,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2877
2915
|
},
|
|
2878
2916
|
blocksToRender() {
|
|
2879
2917
|
var e;
|
|
2880
|
-
return
|
|
2918
|
+
return Uo({
|
|
2881
2919
|
variants: this.variants,
|
|
2882
2920
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
2883
2921
|
isHydrated: this.shouldResetVariants,
|
|
@@ -2895,7 +2933,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2895
2933
|
}
|
|
2896
2934
|
}
|
|
2897
2935
|
});
|
|
2898
|
-
function
|
|
2936
|
+
function tr(e, t, n, o, r, i) {
|
|
2899
2937
|
var u, p, b, c, m, f, g, P, O, B;
|
|
2900
2938
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
2901
2939
|
return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
|
|
@@ -2923,7 +2961,7 @@ function Go(e, t, n, o, r, i) {
|
|
|
2923
2961
|
scriptStr: e.updateVisibilityStylesScript,
|
|
2924
2962
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
2925
2963
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
2926
|
-
(d(!0), h(w, null,
|
|
2964
|
+
(d(!0), h(w, null, x(e.variants, (q, C) => {
|
|
2927
2965
|
var z, G, Q, W;
|
|
2928
2966
|
return d(), S(s, {
|
|
2929
2967
|
key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
|
|
@@ -2980,7 +3018,7 @@ function Go(e, t, n, o, r, i) {
|
|
|
2980
3018
|
], 64)) : T("", !0)
|
|
2981
3019
|
], 16);
|
|
2982
3020
|
}
|
|
2983
|
-
const
|
|
3021
|
+
const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
|
|
2984
3022
|
name: "Core:Section",
|
|
2985
3023
|
static: !0,
|
|
2986
3024
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3019,7 +3057,7 @@ const Qo = /* @__PURE__ */ v(Jo, [["render", Go]]), Yo = {
|
|
|
3019
3057
|
}
|
|
3020
3058
|
}
|
|
3021
3059
|
}]
|
|
3022
|
-
},
|
|
3060
|
+
}, rr = {
|
|
3023
3061
|
name: "Slot",
|
|
3024
3062
|
isRSC: !0,
|
|
3025
3063
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3036,12 +3074,12 @@ const Qo = /* @__PURE__ */ v(Jo, [["render", Go]]), Yo = {
|
|
|
3036
3074
|
builderContext: !0,
|
|
3037
3075
|
builderComponents: !0
|
|
3038
3076
|
}
|
|
3039
|
-
},
|
|
3077
|
+
}, ir = y({
|
|
3040
3078
|
name: "builder-slot",
|
|
3041
3079
|
components: { Blocks: j },
|
|
3042
3080
|
props: ["builderContext", "name", "builderComponents"]
|
|
3043
3081
|
});
|
|
3044
|
-
function
|
|
3082
|
+
function sr(e, t, n, o, r, i) {
|
|
3045
3083
|
var l, a, u;
|
|
3046
3084
|
const s = k("Blocks");
|
|
3047
3085
|
return d(), h("div", I(
|
|
@@ -3061,7 +3099,7 @@ function _o(e, t, n, o, r, i) {
|
|
|
3061
3099
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3062
3100
|
], 16);
|
|
3063
3101
|
}
|
|
3064
|
-
const
|
|
3102
|
+
const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
3065
3103
|
name: "Symbol",
|
|
3066
3104
|
noWrap: !0,
|
|
3067
3105
|
static: !0,
|
|
@@ -3138,7 +3176,7 @@ const er = /* @__PURE__ */ v(Zo, [["render", _o]]), tr = {
|
|
|
3138
3176
|
text: "New tab content "
|
|
3139
3177
|
}
|
|
3140
3178
|
}
|
|
3141
|
-
},
|
|
3179
|
+
}, cr = {
|
|
3142
3180
|
name: "Builder: Tabs",
|
|
3143
3181
|
inputs: [{
|
|
3144
3182
|
name: "tabs",
|
|
@@ -3241,7 +3279,7 @@ const er = /* @__PURE__ */ v(Zo, [["render", _o]]), tr = {
|
|
|
3241
3279
|
builderComponents: !0,
|
|
3242
3280
|
builderLinkComponent: !0
|
|
3243
3281
|
}
|
|
3244
|
-
},
|
|
3282
|
+
}, dr = y({
|
|
3245
3283
|
name: "builder-tabs",
|
|
3246
3284
|
components: { Blocks: j },
|
|
3247
3285
|
props: [
|
|
@@ -3269,8 +3307,8 @@ const er = /* @__PURE__ */ v(Zo, [["render", _o]]), tr = {
|
|
|
3269
3307
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3270
3308
|
}
|
|
3271
3309
|
}
|
|
3272
|
-
}),
|
|
3273
|
-
function
|
|
3310
|
+
}), ur = ["onClick"], pr = { key: 0 };
|
|
3311
|
+
function mr(e, t, n, o, r, i) {
|
|
3274
3312
|
const s = k("Blocks");
|
|
3275
3313
|
return d(), h("div", null, [
|
|
3276
3314
|
K("div", {
|
|
@@ -3282,9 +3320,9 @@ function sr(e, t, n, o, r, i) {
|
|
|
3282
3320
|
overflow: "auto"
|
|
3283
3321
|
})
|
|
3284
3322
|
}, [
|
|
3285
|
-
(d(!0), h(w, null,
|
|
3323
|
+
(d(!0), h(w, null, x(e.tabs, (l, a) => (d(), h("span", {
|
|
3286
3324
|
key: a,
|
|
3287
|
-
class:
|
|
3325
|
+
class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3288
3326
|
style: H(e.getTabStyle(a)),
|
|
3289
3327
|
onClick: async (u) => e.onClick(a)
|
|
3290
3328
|
}, [
|
|
@@ -3296,9 +3334,9 @@ function sr(e, t, n, o, r, i) {
|
|
|
3296
3334
|
registeredComponents: e.builderComponents,
|
|
3297
3335
|
linkComponent: e.builderLinkComponent
|
|
3298
3336
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3299
|
-
], 14,
|
|
3337
|
+
], 14, ur))), 128))
|
|
3300
3338
|
], 4),
|
|
3301
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3339
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", pr, [
|
|
3302
3340
|
$(s, {
|
|
3303
3341
|
parent: e.builderBlock.id,
|
|
3304
3342
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3310,7 +3348,7 @@ function sr(e, t, n, o, r, i) {
|
|
|
3310
3348
|
])) : T("", !0)
|
|
3311
3349
|
]);
|
|
3312
3350
|
}
|
|
3313
|
-
const
|
|
3351
|
+
const hr = /* @__PURE__ */ v(dr, [["render", mr]]), fr = {
|
|
3314
3352
|
shouldReceiveBuilderProps: {},
|
|
3315
3353
|
name: "Text",
|
|
3316
3354
|
static: !0,
|
|
@@ -3328,11 +3366,11 @@ const ar = /* @__PURE__ */ v(or, [["render", sr]]), lr = {
|
|
|
3328
3366
|
height: "auto",
|
|
3329
3367
|
textAlign: "center"
|
|
3330
3368
|
}
|
|
3331
|
-
},
|
|
3369
|
+
}, br = y({
|
|
3332
3370
|
name: "builder-text",
|
|
3333
3371
|
props: ["text"]
|
|
3334
|
-
}),
|
|
3335
|
-
function
|
|
3372
|
+
}), gr = ["innerHTML"];
|
|
3373
|
+
function yr(e, t, n, o, r, i) {
|
|
3336
3374
|
var s;
|
|
3337
3375
|
return d(), h("div", {
|
|
3338
3376
|
class: "builder-text",
|
|
@@ -3340,9 +3378,9 @@ function ur(e, t, n, o, r, i) {
|
|
|
3340
3378
|
style: {
|
|
3341
3379
|
outline: "none"
|
|
3342
3380
|
}
|
|
3343
|
-
}, null, 8,
|
|
3381
|
+
}, null, 8, gr);
|
|
3344
3382
|
}
|
|
3345
|
-
const
|
|
3383
|
+
const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
3346
3384
|
name: "Custom Code",
|
|
3347
3385
|
static: !0,
|
|
3348
3386
|
requiredPermissions: ["editCode"],
|
|
@@ -3364,7 +3402,7 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
|
3364
3402
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3365
3403
|
advanced: !0
|
|
3366
3404
|
}]
|
|
3367
|
-
},
|
|
3405
|
+
}, kr = y({
|
|
3368
3406
|
name: "builder-custom-code",
|
|
3369
3407
|
props: ["code", "replaceNodes"],
|
|
3370
3408
|
data() {
|
|
@@ -3423,15 +3461,15 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
|
3423
3461
|
}
|
|
3424
3462
|
}
|
|
3425
3463
|
}
|
|
3426
|
-
}),
|
|
3427
|
-
function
|
|
3464
|
+
}), Cr = ["innerHTML"];
|
|
3465
|
+
function Tr(e, t, n, o, r, i) {
|
|
3428
3466
|
return d(), h("div", {
|
|
3429
3467
|
ref: "elementRef",
|
|
3430
|
-
class:
|
|
3468
|
+
class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3431
3469
|
innerHTML: e.code
|
|
3432
|
-
}, null, 10,
|
|
3470
|
+
}, null, 10, Cr);
|
|
3433
3471
|
}
|
|
3434
|
-
const
|
|
3472
|
+
const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
3435
3473
|
name: "Embed",
|
|
3436
3474
|
static: !0,
|
|
3437
3475
|
inputs: [{
|
|
@@ -3446,7 +3484,7 @@ const gr = /* @__PURE__ */ v(hr, [["render", br]]), yr = {
|
|
|
3446
3484
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3447
3485
|
hideFromUI: !0
|
|
3448
3486
|
}]
|
|
3449
|
-
},
|
|
3487
|
+
}, $r = ["text/javascript", "application/javascript", "application/ecmascript"], Rr = (e) => $r.includes(e.type), Er = y({
|
|
3450
3488
|
name: "builder-embed",
|
|
3451
3489
|
props: ["content"],
|
|
3452
3490
|
data() {
|
|
@@ -3479,7 +3517,7 @@ const gr = /* @__PURE__ */ v(hr, [["render", br]]), yr = {
|
|
|
3479
3517
|
this.scriptsInserted.push(n.src);
|
|
3480
3518
|
const o = document.createElement("script");
|
|
3481
3519
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3482
|
-
} else if (
|
|
3520
|
+
} else if (Rr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3483
3521
|
try {
|
|
3484
3522
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3485
3523
|
} catch (o) {
|
|
@@ -3488,15 +3526,15 @@ const gr = /* @__PURE__ */ v(hr, [["render", br]]), yr = {
|
|
|
3488
3526
|
}
|
|
3489
3527
|
}
|
|
3490
3528
|
}
|
|
3491
|
-
}),
|
|
3492
|
-
function
|
|
3529
|
+
}), Pr = ["innerHTML"];
|
|
3530
|
+
function Ar(e, t, n, o, r, i) {
|
|
3493
3531
|
return d(), h("div", {
|
|
3494
3532
|
class: "builder-embed",
|
|
3495
3533
|
ref: "elem",
|
|
3496
3534
|
innerHTML: e.content
|
|
3497
|
-
}, null, 8,
|
|
3535
|
+
}, null, 8, Pr);
|
|
3498
3536
|
}
|
|
3499
|
-
const
|
|
3537
|
+
const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
3500
3538
|
name: "Form:Form",
|
|
3501
3539
|
// editableTags: ['builder-form-error']
|
|
3502
3540
|
defaults: {
|
|
@@ -3733,10 +3771,10 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3733
3771
|
builderComponents: !0,
|
|
3734
3772
|
builderLinkComponent: !0
|
|
3735
3773
|
}
|
|
3736
|
-
},
|
|
3774
|
+
}, Nr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Wr = () => {
|
|
3737
3775
|
const e = process.env.NODE_ENV || "production";
|
|
3738
|
-
return
|
|
3739
|
-
},
|
|
3776
|
+
return Nr.includes(e) ? e : "production";
|
|
3777
|
+
}, Dr = y({
|
|
3740
3778
|
name: "builder-form-component",
|
|
3741
3779
|
components: { Blocks: j },
|
|
3742
3780
|
props: [
|
|
@@ -3829,7 +3867,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3829
3867
|
else {
|
|
3830
3868
|
const c = {};
|
|
3831
3869
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
3832
|
-
|
|
3870
|
+
et(c, f, m);
|
|
3833
3871
|
}), i = JSON.stringify(c);
|
|
3834
3872
|
}
|
|
3835
3873
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3847,10 +3885,10 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3847
3885
|
});
|
|
3848
3886
|
return;
|
|
3849
3887
|
}
|
|
3850
|
-
const p = `${
|
|
3888
|
+
const p = `${Wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3851
3889
|
this.sendSubmissionsToEmail || ""
|
|
3852
3890
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
3853
|
-
|
|
3891
|
+
ot(b), fetch(b, {
|
|
3854
3892
|
body: i,
|
|
3855
3893
|
headers: r,
|
|
3856
3894
|
method: this.method || "post"
|
|
@@ -3871,7 +3909,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3871
3909
|
), O.defaultPrevented))
|
|
3872
3910
|
return;
|
|
3873
3911
|
this.responseData = m, this.formState = "error";
|
|
3874
|
-
let B = this.errorMessagePath ?
|
|
3912
|
+
let B = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
|
|
3875
3913
|
typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
|
|
3876
3914
|
formErrorMessage: B
|
|
3877
3915
|
});
|
|
@@ -3913,11 +3951,11 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3913
3951
|
}
|
|
3914
3952
|
}
|
|
3915
3953
|
}
|
|
3916
|
-
}),
|
|
3954
|
+
}), Or = ["validate", "action", "method", "name"], Ur = {
|
|
3917
3955
|
key: 2,
|
|
3918
3956
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
3919
3957
|
};
|
|
3920
|
-
function
|
|
3958
|
+
function xr(e, t, n, o, r, i) {
|
|
3921
3959
|
const s = k("Blocks");
|
|
3922
3960
|
return d(), h("form", I({
|
|
3923
3961
|
validate: e.validate,
|
|
@@ -3926,7 +3964,7 @@ function Br(e, t, n, o, r, i) {
|
|
|
3926
3964
|
method: e.method,
|
|
3927
3965
|
name: e.name,
|
|
3928
3966
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
3929
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3967
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3930
3968
|
V(e.$slots, "default", {}, void 0, !0),
|
|
3931
3969
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
3932
3970
|
key: 0,
|
|
@@ -3940,16 +3978,16 @@ function Br(e, t, n, o, r, i) {
|
|
|
3940
3978
|
blocks: e.sendingMessage,
|
|
3941
3979
|
context: e.builderContext
|
|
3942
3980
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
3943
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre",
|
|
3981
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Ur, de(e.errorResponse(e.responseData)), 1)) : T("", !0),
|
|
3944
3982
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
3945
3983
|
key: 3,
|
|
3946
3984
|
path: "successMessage",
|
|
3947
3985
|
blocks: e.successMessage,
|
|
3948
3986
|
context: e.builderContext
|
|
3949
3987
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
3950
|
-
], 16,
|
|
3988
|
+
], 16, Or);
|
|
3951
3989
|
}
|
|
3952
|
-
const
|
|
3990
|
+
const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c"]]), Lr = {
|
|
3953
3991
|
name: "Form:Input",
|
|
3954
3992
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3955
3993
|
inputs: [
|
|
@@ -4000,7 +4038,7 @@ const Vr = /* @__PURE__ */ v(Er, [["render", Br], ["__scopeId", "data-v-77c7888c
|
|
|
4000
4038
|
borderStyle: "solid",
|
|
4001
4039
|
borderColor: "#ccc"
|
|
4002
4040
|
}
|
|
4003
|
-
},
|
|
4041
|
+
}, Hr = y({
|
|
4004
4042
|
name: "builder-form-input-component",
|
|
4005
4043
|
props: [
|
|
4006
4044
|
"attributes",
|
|
@@ -4014,8 +4052,8 @@ const Vr = /* @__PURE__ */ v(Er, [["render", Br], ["__scopeId", "data-v-77c7888c
|
|
|
4014
4052
|
data() {
|
|
4015
4053
|
return { isEditing: A, filterAttrs: N };
|
|
4016
4054
|
}
|
|
4017
|
-
}),
|
|
4018
|
-
function
|
|
4055
|
+
}), Mr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4056
|
+
function zr(e, t, n, o, r, i) {
|
|
4019
4057
|
return d(), h("input", I({
|
|
4020
4058
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4021
4059
|
placeholder: e.placeholder,
|
|
@@ -4024,9 +4062,9 @@ function Or(e, t, n, o, r, i) {
|
|
|
4024
4062
|
value: e.value,
|
|
4025
4063
|
defaultValue: e.defaultValue,
|
|
4026
4064
|
required: e.required
|
|
4027
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4065
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Mr);
|
|
4028
4066
|
}
|
|
4029
|
-
const
|
|
4067
|
+
const jr = /* @__PURE__ */ v(Hr, [["render", zr]]), qr = {
|
|
4030
4068
|
name: "Form:Select",
|
|
4031
4069
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4032
4070
|
defaultStyles: {
|
|
@@ -4068,28 +4106,28 @@ const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
|
|
|
4068
4106
|
}],
|
|
4069
4107
|
static: !0,
|
|
4070
4108
|
noWrap: !0
|
|
4071
|
-
},
|
|
4109
|
+
}, Kr = y({
|
|
4072
4110
|
name: "builder-select-component",
|
|
4073
4111
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4074
4112
|
data() {
|
|
4075
4113
|
return { isEditing: A, filterAttrs: N };
|
|
4076
4114
|
}
|
|
4077
|
-
}),
|
|
4078
|
-
function
|
|
4115
|
+
}), Jr = ["value", "defaultValue", "name", "required"], Gr = ["value"];
|
|
4116
|
+
function Qr(e, t, n, o, r, i) {
|
|
4079
4117
|
return d(), h("select", I({
|
|
4080
4118
|
value: e.value,
|
|
4081
4119
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4082
4120
|
defaultValue: e.defaultValue,
|
|
4083
4121
|
name: e.name,
|
|
4084
4122
|
required: e.required
|
|
4085
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4086
|
-
(d(!0), h(w, null,
|
|
4123
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4124
|
+
(d(!0), h(w, null, x(e.options, (s, l) => (d(), h("option", {
|
|
4087
4125
|
key: `${s.name}-${l}`,
|
|
4088
4126
|
value: s.value
|
|
4089
|
-
}, de(s.name || s.value), 9,
|
|
4090
|
-
], 16,
|
|
4127
|
+
}, de(s.name || s.value), 9, Gr))), 128))
|
|
4128
|
+
], 16, Jr);
|
|
4091
4129
|
}
|
|
4092
|
-
const
|
|
4130
|
+
const Yr = /* @__PURE__ */ v(Kr, [["render", Qr]]), _r = {
|
|
4093
4131
|
name: "Form:SubmitButton",
|
|
4094
4132
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4095
4133
|
defaultStyles: {
|
|
@@ -4114,17 +4152,17 @@ const zr = /* @__PURE__ */ v(Fr, [["render", Mr]]), jr = {
|
|
|
4114
4152
|
// that only shows if advanced setting is flipped
|
|
4115
4153
|
// TODO: defaultChildren
|
|
4116
4154
|
// canHaveChildren: true,
|
|
4117
|
-
},
|
|
4155
|
+
}, Xr = y({
|
|
4118
4156
|
name: "builder-submit-button",
|
|
4119
4157
|
props: ["attributes", "text"],
|
|
4120
4158
|
data() {
|
|
4121
4159
|
return { filterAttrs: N };
|
|
4122
4160
|
}
|
|
4123
4161
|
});
|
|
4124
|
-
function
|
|
4125
|
-
return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4162
|
+
function Zr(e, t, n, o, r, i) {
|
|
4163
|
+
return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
|
|
4126
4164
|
}
|
|
4127
|
-
const
|
|
4165
|
+
const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
|
|
4128
4166
|
name: "Form:TextArea",
|
|
4129
4167
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4130
4168
|
inputs: [{
|
|
@@ -4160,7 +4198,7 @@ const Jr = /* @__PURE__ */ v(qr, [["render", Kr]]), Gr = {
|
|
|
4160
4198
|
},
|
|
4161
4199
|
static: !0,
|
|
4162
4200
|
noWrap: !0
|
|
4163
|
-
},
|
|
4201
|
+
}, ni = y({
|
|
4164
4202
|
name: "builder-textarea",
|
|
4165
4203
|
props: [
|
|
4166
4204
|
"attributes",
|
|
@@ -4173,17 +4211,17 @@ const Jr = /* @__PURE__ */ v(qr, [["render", Kr]]), Gr = {
|
|
|
4173
4211
|
data() {
|
|
4174
4212
|
return { filterAttrs: N };
|
|
4175
4213
|
}
|
|
4176
|
-
}),
|
|
4177
|
-
function
|
|
4214
|
+
}), oi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4215
|
+
function ri(e, t, n, o, r, i) {
|
|
4178
4216
|
return d(), h("textarea", I({
|
|
4179
4217
|
placeholder: e.placeholder,
|
|
4180
4218
|
name: e.name,
|
|
4181
4219
|
value: e.value,
|
|
4182
4220
|
defaultValue: e.defaultValue,
|
|
4183
4221
|
required: e.required
|
|
4184
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4222
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, oi);
|
|
4185
4223
|
}
|
|
4186
|
-
const
|
|
4224
|
+
const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
4187
4225
|
name: "Raw:Img",
|
|
4188
4226
|
hideFromInsertMenu: !0,
|
|
4189
4227
|
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",
|
|
@@ -4227,7 +4265,7 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4227
4265
|
defaultValue: 0.7041
|
|
4228
4266
|
}],
|
|
4229
4267
|
noWrap: !0
|
|
4230
|
-
},
|
|
4268
|
+
}, ai = y({
|
|
4231
4269
|
name: "builder-img-component",
|
|
4232
4270
|
props: [
|
|
4233
4271
|
"imgSrc",
|
|
@@ -4257,8 +4295,8 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4257
4295
|
return delete e.style, e;
|
|
4258
4296
|
}
|
|
4259
4297
|
}
|
|
4260
|
-
}),
|
|
4261
|
-
function
|
|
4298
|
+
}), li = ["alt", "title", "src"];
|
|
4299
|
+
function ci(e, t, n, o, r, i) {
|
|
4262
4300
|
var s;
|
|
4263
4301
|
return d(), h("img", I({
|
|
4264
4302
|
loading: "lazy",
|
|
@@ -4272,9 +4310,9 @@ function ni(e, t, n, o, r, i) {
|
|
|
4272
4310
|
aspectRatio: e.aspectRatio || void 0,
|
|
4273
4311
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4274
4312
|
}
|
|
4275
|
-
}, e.imgAttrs), null, 16,
|
|
4313
|
+
}, e.imgAttrs), null, 16, li);
|
|
4276
4314
|
}
|
|
4277
|
-
const
|
|
4315
|
+
const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
4278
4316
|
name: "Video",
|
|
4279
4317
|
canHaveChildren: !0,
|
|
4280
4318
|
defaultStyles: {
|
|
@@ -4285,7 +4323,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4285
4323
|
inputs: [{
|
|
4286
4324
|
name: "video",
|
|
4287
4325
|
type: "file",
|
|
4288
|
-
allowedFileTypes:
|
|
4326
|
+
allowedFileTypes: _o,
|
|
4289
4327
|
bubble: !0,
|
|
4290
4328
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4291
4329
|
required: !0
|
|
@@ -4358,7 +4396,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4358
4396
|
shouldReceiveBuilderProps: {
|
|
4359
4397
|
builderBlock: !0
|
|
4360
4398
|
}
|
|
4361
|
-
},
|
|
4399
|
+
}, pi = y({
|
|
4362
4400
|
name: "builder-video",
|
|
4363
4401
|
props: [
|
|
4364
4402
|
"lazyLoad",
|
|
@@ -4431,16 +4469,16 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4431
4469
|
};
|
|
4432
4470
|
}
|
|
4433
4471
|
}
|
|
4434
|
-
}),
|
|
4472
|
+
}), mi = { style: {
|
|
4435
4473
|
position: "relative"
|
|
4436
|
-
} },
|
|
4474
|
+
} }, hi = ["preload", "poster"], fi = {
|
|
4437
4475
|
key: 1,
|
|
4438
4476
|
style: {
|
|
4439
4477
|
display: "flex",
|
|
4440
4478
|
flexDirection: "column",
|
|
4441
4479
|
alignItems: "stretch"
|
|
4442
4480
|
}
|
|
4443
|
-
},
|
|
4481
|
+
}, bi = {
|
|
4444
4482
|
key: 2,
|
|
4445
4483
|
style: {
|
|
4446
4484
|
pointerEvents: "none",
|
|
@@ -4454,9 +4492,9 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4454
4492
|
height: "100%"
|
|
4455
4493
|
}
|
|
4456
4494
|
};
|
|
4457
|
-
function
|
|
4495
|
+
function gi(e, t, n, o, r, i) {
|
|
4458
4496
|
var s, l, a, u, p, b, c;
|
|
4459
|
-
return d(), h("div",
|
|
4497
|
+
return d(), h("div", mi, [
|
|
4460
4498
|
K("video", I({
|
|
4461
4499
|
class: "builder-video",
|
|
4462
4500
|
ref: "videoRef",
|
|
@@ -4484,7 +4522,7 @@ function di(e, t, n, o, r, i) {
|
|
|
4484
4522
|
src: e.video
|
|
4485
4523
|
}
|
|
4486
4524
|
), null, 16)
|
|
4487
|
-
], 16,
|
|
4525
|
+
], 16, hi),
|
|
4488
4526
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4489
4527
|
key: 0,
|
|
4490
4528
|
style: H({
|
|
@@ -4494,75 +4532,75 @@ function di(e, t, n, o, r, i) {
|
|
|
4494
4532
|
fontSize: "0px"
|
|
4495
4533
|
})
|
|
4496
4534
|
}, null, 4)) : T("", !0),
|
|
4497
|
-
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div",
|
|
4535
|
+
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", fi, [
|
|
4498
4536
|
V(e.$slots, "default")
|
|
4499
4537
|
])) : T("", !0),
|
|
4500
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4538
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", bi, [
|
|
4501
4539
|
V(e.$slots, "default")
|
|
4502
4540
|
])) : T("", !0)
|
|
4503
4541
|
]);
|
|
4504
4542
|
}
|
|
4505
|
-
const
|
|
4506
|
-
component: gr,
|
|
4507
|
-
...mr
|
|
4508
|
-
}, {
|
|
4543
|
+
const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
|
|
4509
4544
|
component: wr,
|
|
4510
|
-
...
|
|
4545
|
+
...Sr
|
|
4511
4546
|
}, {
|
|
4512
|
-
component:
|
|
4547
|
+
component: Br,
|
|
4513
4548
|
...Ir
|
|
4514
4549
|
}, {
|
|
4515
|
-
component:
|
|
4516
|
-
...
|
|
4517
|
-
}, {
|
|
4518
|
-
component: Jr,
|
|
4519
|
-
...jr
|
|
4550
|
+
component: Fr,
|
|
4551
|
+
...Vr
|
|
4520
4552
|
}, {
|
|
4521
|
-
component:
|
|
4522
|
-
...
|
|
4553
|
+
component: jr,
|
|
4554
|
+
...Lr
|
|
4523
4555
|
}, {
|
|
4524
|
-
component:
|
|
4525
|
-
...Gr
|
|
4526
|
-
}, {
|
|
4527
|
-
component: oi,
|
|
4556
|
+
component: ei,
|
|
4528
4557
|
..._r
|
|
4529
4558
|
}, {
|
|
4530
|
-
component:
|
|
4531
|
-
...
|
|
4532
|
-
}], Je = () => [{
|
|
4533
|
-
component: Ht,
|
|
4534
|
-
...Ho
|
|
4559
|
+
component: Yr,
|
|
4560
|
+
...qr
|
|
4535
4561
|
}, {
|
|
4536
|
-
component:
|
|
4537
|
-
...
|
|
4562
|
+
component: ii,
|
|
4563
|
+
...ti
|
|
4564
|
+
}, {
|
|
4565
|
+
component: di,
|
|
4566
|
+
...si
|
|
4538
4567
|
}, {
|
|
4539
|
-
component:
|
|
4540
|
-
...
|
|
4568
|
+
component: yi,
|
|
4569
|
+
...ui
|
|
4570
|
+
}], Ye = () => [{
|
|
4571
|
+
component: jt,
|
|
4572
|
+
...Go
|
|
4541
4573
|
}, {
|
|
4542
|
-
component:
|
|
4543
|
-
...
|
|
4574
|
+
component: fo,
|
|
4575
|
+
...Qo
|
|
4544
4576
|
}, {
|
|
4545
|
-
component:
|
|
4577
|
+
component: yo,
|
|
4546
4578
|
...Yo
|
|
4547
4579
|
}, {
|
|
4548
|
-
component:
|
|
4580
|
+
component: $o,
|
|
4549
4581
|
...Xo
|
|
4550
4582
|
}, {
|
|
4551
|
-
component:
|
|
4552
|
-
...
|
|
4583
|
+
component: Po,
|
|
4584
|
+
...or
|
|
4585
|
+
}, {
|
|
4586
|
+
component: ar,
|
|
4587
|
+
...rr
|
|
4553
4588
|
}, {
|
|
4554
|
-
component:
|
|
4589
|
+
component: os,
|
|
4555
4590
|
...lr
|
|
4556
|
-
},
|
|
4557
|
-
component:
|
|
4558
|
-
...
|
|
4591
|
+
}, {
|
|
4592
|
+
component: vr,
|
|
4593
|
+
...fr
|
|
4594
|
+
}, ...Tt.includes(R) ? [{
|
|
4595
|
+
component: nr,
|
|
4596
|
+
...Zo
|
|
4559
4597
|
}] : [], {
|
|
4560
|
-
component:
|
|
4561
|
-
...
|
|
4598
|
+
component: hr,
|
|
4599
|
+
...cr
|
|
4562
4600
|
}, {
|
|
4563
|
-
component:
|
|
4564
|
-
...
|
|
4565
|
-
}, ...
|
|
4601
|
+
component: Jo,
|
|
4602
|
+
...Mo
|
|
4603
|
+
}, ...vi()], Si = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4566
4604
|
function getAndSetVariantId() {
|
|
4567
4605
|
function setCookie(name, value, days) {
|
|
4568
4606
|
let expires = '';
|
|
@@ -4621,7 +4659,7 @@ const ui = /* @__PURE__ */ v(ii, [["render", di]]), pi = () => [{
|
|
|
4621
4659
|
}).join('');
|
|
4622
4660
|
styleEl.innerHTML = newStyleStr;
|
|
4623
4661
|
}
|
|
4624
|
-
}`,
|
|
4662
|
+
}`, ki = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4625
4663
|
if (!navigator.cookieEnabled) {
|
|
4626
4664
|
return;
|
|
4627
4665
|
}
|
|
@@ -4659,33 +4697,33 @@ const ui = /* @__PURE__ */ v(ii, [["render", di]]), pi = () => [{
|
|
|
4659
4697
|
...t,
|
|
4660
4698
|
testVariationId: t.id,
|
|
4661
4699
|
id: e == null ? void 0 : e.id
|
|
4662
|
-
})),
|
|
4700
|
+
})), Ci = ({
|
|
4663
4701
|
canTrack: e,
|
|
4664
4702
|
content: t
|
|
4665
|
-
}) => !(!(ie(t).length > 0) || !e),
|
|
4703
|
+
}) => !(!(ie(t).length > 0) || !e), Ti = (e) => e === "react" || e === "reactNative", wi = R === "angular", De = Ti(R), Ii = () => `
|
|
4666
4704
|
(function() {
|
|
4667
4705
|
if (!window.${Te}) {
|
|
4668
|
-
window.${Te} = ${
|
|
4706
|
+
window.${Te} = ${Si};
|
|
4669
4707
|
}
|
|
4670
4708
|
if (!window.${we}) {
|
|
4671
|
-
window.${we} = ${
|
|
4709
|
+
window.${we} = ${ki};
|
|
4672
4710
|
}${De ? `
|
|
4673
4711
|
var thisScriptEl = document.currentScript;
|
|
4674
4712
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4675
4713
|
})();
|
|
4676
|
-
`,
|
|
4714
|
+
`, $i = (e, t) => `
|
|
4677
4715
|
window.${Te}(
|
|
4678
|
-
"${t}",${JSON.stringify(e)}, ${De}, ${
|
|
4679
|
-
)`,
|
|
4716
|
+
"${t}",${JSON.stringify(e)}, ${De}, ${wi}
|
|
4717
|
+
)`, Ri = ({
|
|
4680
4718
|
contentId: e,
|
|
4681
4719
|
variationId: t
|
|
4682
4720
|
}) => `window.${we}(
|
|
4683
4721
|
"${t}", "${e}", ${De}
|
|
4684
4722
|
)`;
|
|
4685
|
-
function
|
|
4723
|
+
function _e(e) {
|
|
4686
4724
|
return Math.round(e * 1e3) / 1e3;
|
|
4687
4725
|
}
|
|
4688
|
-
const
|
|
4726
|
+
const Ei = (e, t, n = !0) => {
|
|
4689
4727
|
if (!(e instanceof HTMLElement))
|
|
4690
4728
|
return null;
|
|
4691
4729
|
let o = n ? e : e.parentElement;
|
|
@@ -4696,35 +4734,35 @@ const ki = (e, t, n = !0) => {
|
|
|
4696
4734
|
return o;
|
|
4697
4735
|
} while (o = o.parentElement);
|
|
4698
4736
|
return null;
|
|
4699
|
-
},
|
|
4737
|
+
}, Pi = (e) => Ei(e, (t) => {
|
|
4700
4738
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4701
4739
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4702
|
-
}),
|
|
4740
|
+
}), Xe = ({
|
|
4703
4741
|
event: e,
|
|
4704
4742
|
target: t
|
|
4705
4743
|
}) => {
|
|
4706
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4744
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = _e(o / n.width), s = _e(r / n.height);
|
|
4707
4745
|
return {
|
|
4708
4746
|
x: i,
|
|
4709
4747
|
y: s
|
|
4710
4748
|
};
|
|
4711
|
-
},
|
|
4712
|
-
const t = e.target, n = t &&
|
|
4749
|
+
}, Ai = (e) => {
|
|
4750
|
+
const t = e.target, n = t && Pi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4713
4751
|
return {
|
|
4714
4752
|
targetBuilderElement: o || void 0,
|
|
4715
4753
|
metadata: {
|
|
4716
|
-
targetOffset: t ?
|
|
4754
|
+
targetOffset: t ? Xe({
|
|
4717
4755
|
event: e,
|
|
4718
4756
|
target: t
|
|
4719
4757
|
}) : void 0,
|
|
4720
|
-
builderTargetOffset: n ?
|
|
4758
|
+
builderTargetOffset: n ? Xe({
|
|
4721
4759
|
event: e,
|
|
4722
4760
|
target: n
|
|
4723
4761
|
}) : void 0,
|
|
4724
4762
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4725
4763
|
}
|
|
4726
4764
|
};
|
|
4727
|
-
},
|
|
4765
|
+
}, Bi = ["svelte", "qwik", "vue"], Vi = () => Bi.includes(R) && (A() || Ee()), Ni = (e) => {
|
|
4728
4766
|
var i;
|
|
4729
4767
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4730
4768
|
let r = "";
|
|
@@ -4750,15 +4788,15 @@ font-weight: ${s};
|
|
|
4750
4788
|
`.trim());
|
|
4751
4789
|
}
|
|
4752
4790
|
return r;
|
|
4753
|
-
},
|
|
4791
|
+
}, Wi = ({
|
|
4754
4792
|
customFonts: e
|
|
4755
4793
|
}) => {
|
|
4756
4794
|
var t;
|
|
4757
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4758
|
-
},
|
|
4795
|
+
return ((t = e == null ? void 0 : e.map((n) => Ni(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4796
|
+
}, Di = ({
|
|
4759
4797
|
cssCode: e,
|
|
4760
4798
|
contentId: t
|
|
4761
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4799
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Oi = `
|
|
4762
4800
|
.builder-button {
|
|
4763
4801
|
all: unset;
|
|
4764
4802
|
}
|
|
@@ -4775,7 +4813,7 @@ font-weight: ${s};
|
|
|
4775
4813
|
text-align: inherit;
|
|
4776
4814
|
font-family: inherit;
|
|
4777
4815
|
}
|
|
4778
|
-
`,
|
|
4816
|
+
`, Ui = (e) => e ? "" : Oi, xi = (e) => `variant-${e}`, Fi = y({
|
|
4779
4817
|
name: "enable-editor",
|
|
4780
4818
|
components: { DynamicDiv: te },
|
|
4781
4819
|
props: [
|
|
@@ -4808,8 +4846,8 @@ font-weight: ${s};
|
|
|
4808
4846
|
httpReqsPending: {},
|
|
4809
4847
|
clicked: !1,
|
|
4810
4848
|
builderContext: be,
|
|
4811
|
-
needsElementRefDivForEditing:
|
|
4812
|
-
getWrapperClassName:
|
|
4849
|
+
needsElementRefDivForEditing: Vi,
|
|
4850
|
+
getWrapperClassName: xi
|
|
4813
4851
|
};
|
|
4814
4852
|
},
|
|
4815
4853
|
provide() {
|
|
@@ -4833,7 +4871,7 @@ font-weight: ${s};
|
|
|
4833
4871
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4834
4872
|
if (o && i === r) {
|
|
4835
4873
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
4836
|
-
|
|
4874
|
+
Ue({
|
|
4837
4875
|
apiHost: this.apiHost,
|
|
4838
4876
|
type: "impression",
|
|
4839
4877
|
canTrack: !0,
|
|
@@ -4944,7 +4982,7 @@ font-weight: ${s};
|
|
|
4944
4982
|
this.builderContextSignal.content = n;
|
|
4945
4983
|
},
|
|
4946
4984
|
processMessage(e) {
|
|
4947
|
-
return
|
|
4985
|
+
return dt({
|
|
4948
4986
|
model: this.model,
|
|
4949
4987
|
trustedHosts: this.trustedHosts,
|
|
4950
4988
|
callbacks: {
|
|
@@ -4958,7 +4996,7 @@ font-weight: ${s};
|
|
|
4958
4996
|
});
|
|
4959
4997
|
},
|
|
4960
4998
|
animation: (t) => {
|
|
4961
|
-
|
|
4999
|
+
gt(t);
|
|
4962
5000
|
},
|
|
4963
5001
|
contentUpdate: (t, n) => {
|
|
4964
5002
|
this.mergeNewContent(t, n);
|
|
@@ -4973,14 +5011,14 @@ font-weight: ${s};
|
|
|
4973
5011
|
var t, n;
|
|
4974
5012
|
if (this.builderContextSignal.content) {
|
|
4975
5013
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4976
|
-
|
|
5014
|
+
Ue({
|
|
4977
5015
|
apiHost: this.apiHost,
|
|
4978
5016
|
type: "click",
|
|
4979
5017
|
canTrack: J(this.canTrack),
|
|
4980
5018
|
contentId: r,
|
|
4981
5019
|
apiKey: this.apiKey,
|
|
4982
5020
|
variationId: o !== r ? o : void 0,
|
|
4983
|
-
...
|
|
5021
|
+
...Ai(e),
|
|
4984
5022
|
unique: !this.clicked
|
|
4985
5023
|
});
|
|
4986
5024
|
}
|
|
@@ -5018,7 +5056,7 @@ font-weight: ${s};
|
|
|
5018
5056
|
url: l,
|
|
5019
5057
|
method: "GET"
|
|
5020
5058
|
};
|
|
5021
|
-
|
|
5059
|
+
ot(JSON.stringify(a));
|
|
5022
5060
|
const u = {
|
|
5023
5061
|
method: a.method,
|
|
5024
5062
|
headers: a.headers,
|
|
@@ -5056,7 +5094,7 @@ font-weight: ${s};
|
|
|
5056
5094
|
);
|
|
5057
5095
|
},
|
|
5058
5096
|
elementRef_onIniteditingbldr(e) {
|
|
5059
|
-
window.addEventListener("message", this.processMessage),
|
|
5097
|
+
window.addEventListener("message", this.processMessage), ct({
|
|
5060
5098
|
...this.locale ? {
|
|
5061
5099
|
locale: this.locale
|
|
5062
5100
|
} : {},
|
|
@@ -5076,7 +5114,7 @@ font-weight: ${s};
|
|
|
5076
5114
|
).forEach((t) => {
|
|
5077
5115
|
var n, o;
|
|
5078
5116
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5079
|
-
const r =
|
|
5117
|
+
const r = cn(t);
|
|
5080
5118
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5081
5119
|
}
|
|
5082
5120
|
}), window.addEventListener(
|
|
@@ -5104,9 +5142,9 @@ font-weight: ${s};
|
|
|
5104
5142
|
}
|
|
5105
5143
|
}
|
|
5106
5144
|
});
|
|
5107
|
-
function
|
|
5145
|
+
function Li(e, t, n, o, r, i) {
|
|
5108
5146
|
var s, l, a;
|
|
5109
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5147
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(_(e.ContentWrapper), I({
|
|
5110
5148
|
key: 0,
|
|
5111
5149
|
ref: "elementRef",
|
|
5112
5150
|
onClick: (u) => e.onClick(u),
|
|
@@ -5125,26 +5163,26 @@ function Ni(e, t, n, o, r, i) {
|
|
|
5125
5163
|
_: 3
|
|
5126
5164
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5127
5165
|
}
|
|
5128
|
-
const
|
|
5166
|
+
const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = y({
|
|
5129
5167
|
name: "content-styles",
|
|
5130
5168
|
components: { InlinedStyles: ue },
|
|
5131
5169
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5132
5170
|
data() {
|
|
5133
5171
|
return {
|
|
5134
5172
|
injectedStyles: `
|
|
5135
|
-
${
|
|
5173
|
+
${Di({
|
|
5136
5174
|
cssCode: this.cssCode,
|
|
5137
5175
|
contentId: this.contentId
|
|
5138
5176
|
})}
|
|
5139
|
-
${
|
|
5177
|
+
${Wi({
|
|
5140
5178
|
customFonts: this.customFonts
|
|
5141
5179
|
})}
|
|
5142
|
-
${
|
|
5180
|
+
${Ui(this.isNestedRender)}
|
|
5143
5181
|
`.trim()
|
|
5144
5182
|
};
|
|
5145
5183
|
}
|
|
5146
5184
|
});
|
|
5147
|
-
function
|
|
5185
|
+
function zi(e, t, n, o, r, i) {
|
|
5148
5186
|
const s = k("InlinedStyles");
|
|
5149
5187
|
return d(), S(s, {
|
|
5150
5188
|
id: "builderio-content",
|
|
@@ -5152,7 +5190,7 @@ function Oi(e, t, n, o, r, i) {
|
|
|
5152
5190
|
nonce: e.nonce
|
|
5153
5191
|
}, null, 8, ["styles", "nonce"]);
|
|
5154
5192
|
}
|
|
5155
|
-
const
|
|
5193
|
+
const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
5156
5194
|
content: e,
|
|
5157
5195
|
data: t,
|
|
5158
5196
|
locale: n
|
|
@@ -5169,7 +5207,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5169
5207
|
locale: n
|
|
5170
5208
|
} : {}
|
|
5171
5209
|
};
|
|
5172
|
-
},
|
|
5210
|
+
}, Ki = ({
|
|
5173
5211
|
content: e,
|
|
5174
5212
|
data: t
|
|
5175
5213
|
}) => e ? {
|
|
@@ -5179,12 +5217,12 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5179
5217
|
...t
|
|
5180
5218
|
},
|
|
5181
5219
|
meta: e == null ? void 0 : e.meta
|
|
5182
|
-
} : void 0,
|
|
5220
|
+
} : void 0, Ji = Rt, Gi = y({
|
|
5183
5221
|
name: "content-component",
|
|
5184
5222
|
components: {
|
|
5185
|
-
EnableEditor:
|
|
5223
|
+
EnableEditor: Hi,
|
|
5186
5224
|
InlinedScript: We,
|
|
5187
|
-
ContentStyles:
|
|
5225
|
+
ContentStyles: ji,
|
|
5188
5226
|
Blocks: j,
|
|
5189
5227
|
DynamicDiv: te
|
|
5190
5228
|
},
|
|
@@ -5215,32 +5253,32 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5215
5253
|
data() {
|
|
5216
5254
|
var e, t;
|
|
5217
5255
|
return {
|
|
5218
|
-
scriptStr:
|
|
5256
|
+
scriptStr: Ri({
|
|
5219
5257
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5220
5258
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5221
5259
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5222
5260
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5223
5261
|
}),
|
|
5224
5262
|
registeredComponents: [
|
|
5225
|
-
...
|
|
5263
|
+
...Ye(),
|
|
5226
5264
|
...this.customComponents || []
|
|
5227
5265
|
].reduce(
|
|
5228
5266
|
(n, { component: o, ...r }) => ({
|
|
5229
5267
|
...n,
|
|
5230
5268
|
[r.name]: {
|
|
5231
|
-
component:
|
|
5269
|
+
component: Ji(o),
|
|
5232
5270
|
...le(r)
|
|
5233
5271
|
}
|
|
5234
5272
|
}),
|
|
5235
5273
|
{}
|
|
5236
5274
|
),
|
|
5237
5275
|
builderContextSignal: {
|
|
5238
|
-
content:
|
|
5276
|
+
content: Ki({
|
|
5239
5277
|
content: this.content,
|
|
5240
5278
|
data: this.data
|
|
5241
5279
|
}),
|
|
5242
5280
|
localState: void 0,
|
|
5243
|
-
rootState:
|
|
5281
|
+
rootState: qi({
|
|
5244
5282
|
content: this.content,
|
|
5245
5283
|
data: this.data,
|
|
5246
5284
|
locale: this.locale
|
|
@@ -5251,7 +5289,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5251
5289
|
apiKey: this.apiKey,
|
|
5252
5290
|
apiVersion: this.apiVersion,
|
|
5253
5291
|
componentInfos: [
|
|
5254
|
-
...
|
|
5292
|
+
...Ye(),
|
|
5255
5293
|
...this.customComponents || []
|
|
5256
5294
|
].reduce(
|
|
5257
5295
|
(n, { component: o, ...r }) => ({
|
|
@@ -5272,7 +5310,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5272
5310
|
provide() {
|
|
5273
5311
|
const e = this;
|
|
5274
5312
|
return {
|
|
5275
|
-
[
|
|
5313
|
+
[rt.key]: {
|
|
5276
5314
|
registeredComponents: e.registeredComponents
|
|
5277
5315
|
}
|
|
5278
5316
|
};
|
|
@@ -5316,7 +5354,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5316
5354
|
}
|
|
5317
5355
|
}
|
|
5318
5356
|
});
|
|
5319
|
-
function
|
|
5357
|
+
function Qi(e, t, n, o, r, i) {
|
|
5320
5358
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5321
5359
|
return d(), S(u, I({
|
|
5322
5360
|
apiHost: e.apiHost,
|
|
@@ -5365,12 +5403,12 @@ function Mi(e, t, n, o, r, i) {
|
|
|
5365
5403
|
_: 1
|
|
5366
5404
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5367
5405
|
}
|
|
5368
|
-
const
|
|
5406
|
+
const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
5369
5407
|
name: "content-variants",
|
|
5370
5408
|
components: {
|
|
5371
5409
|
InlinedScript: We,
|
|
5372
5410
|
InlinedStyles: ue,
|
|
5373
|
-
ContentComponent:
|
|
5411
|
+
ContentComponent: Yi
|
|
5374
5412
|
},
|
|
5375
5413
|
props: [
|
|
5376
5414
|
"canTrack",
|
|
@@ -5396,15 +5434,15 @@ const zi = /* @__PURE__ */ v(Hi, [["render", Mi]]), ji = y({
|
|
|
5396
5434
|
],
|
|
5397
5435
|
data() {
|
|
5398
5436
|
return {
|
|
5399
|
-
shouldRenderVariants:
|
|
5437
|
+
shouldRenderVariants: Ci({
|
|
5400
5438
|
canTrack: J(this.canTrack),
|
|
5401
5439
|
content: this.content
|
|
5402
5440
|
}),
|
|
5403
|
-
shouldEmitPersonalizationFns:
|
|
5404
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5405
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5441
|
+
shouldEmitPersonalizationFns: xo(this.content),
|
|
5442
|
+
SDKS_SUPPORTING_PERSONALIZATION: Tt,
|
|
5443
|
+
getInitPersonalizationVariantsFnsScriptString: Fo,
|
|
5406
5444
|
TARGET: R,
|
|
5407
|
-
getInitVariantsFnsScriptString:
|
|
5445
|
+
getInitVariantsFnsScriptString: Ii,
|
|
5408
5446
|
getVariants: ie
|
|
5409
5447
|
};
|
|
5410
5448
|
},
|
|
@@ -5413,7 +5451,7 @@ const zi = /* @__PURE__ */ v(Hi, [["render", Mi]]), ji = y({
|
|
|
5413
5451
|
computed: {
|
|
5414
5452
|
updateCookieAndStylesScriptStr() {
|
|
5415
5453
|
var e;
|
|
5416
|
-
return
|
|
5454
|
+
return $i(
|
|
5417
5455
|
ie(this.content).map((t) => ({
|
|
5418
5456
|
id: t.testVariationId,
|
|
5419
5457
|
testRatio: t.testRatio
|
|
@@ -5429,14 +5467,14 @@ const zi = /* @__PURE__ */ v(Hi, [["render", Mi]]), ji = y({
|
|
|
5429
5467
|
return this.shouldRenderVariants ? {
|
|
5430
5468
|
...this.content,
|
|
5431
5469
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5432
|
-
} :
|
|
5470
|
+
} : vn({
|
|
5433
5471
|
item: this.content,
|
|
5434
5472
|
canTrack: J(this.canTrack)
|
|
5435
5473
|
});
|
|
5436
5474
|
}
|
|
5437
5475
|
}
|
|
5438
5476
|
});
|
|
5439
|
-
function
|
|
5477
|
+
function Xi(e, t, n, o, r, i) {
|
|
5440
5478
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5441
5479
|
return d(), h(w, null, [
|
|
5442
5480
|
e.shouldEmitPersonalizationFns ? (d(), h(w, { key: 0 }, [
|
|
@@ -5463,7 +5501,7 @@ function qi(e, t, n, o, r, i) {
|
|
|
5463
5501
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5464
5502
|
nonce: e.nonce || ""
|
|
5465
5503
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5466
|
-
(d(!0), h(w, null,
|
|
5504
|
+
(d(!0), h(w, null, x(e.getVariants(e.content), (u, p) => (d(), S(a, I({
|
|
5467
5505
|
key: u.testVariationId,
|
|
5468
5506
|
apiHost: e.apiHost,
|
|
5469
5507
|
isNestedRender: e.isNestedRender,
|
|
@@ -5517,7 +5555,7 @@ function qi(e, t, n, o, r, i) {
|
|
|
5517
5555
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5518
5556
|
], 64);
|
|
5519
5557
|
}
|
|
5520
|
-
const
|
|
5558
|
+
const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
5521
5559
|
builderContextValue: e,
|
|
5522
5560
|
symbol: t
|
|
5523
5561
|
}) => {
|
|
@@ -5535,9 +5573,9 @@ const Ki = /* @__PURE__ */ v(ji, [["render", qi]]), Ji = async ({
|
|
|
5535
5573
|
}).catch((n) => {
|
|
5536
5574
|
F.error("Could not fetch symbol content: ", n);
|
|
5537
5575
|
});
|
|
5538
|
-
},
|
|
5576
|
+
}, ts = y({
|
|
5539
5577
|
name: "builder-symbol",
|
|
5540
|
-
components: { ContentVariants:
|
|
5578
|
+
components: { ContentVariants: Zi, DynamicDiv: te },
|
|
5541
5579
|
props: [
|
|
5542
5580
|
"symbol",
|
|
5543
5581
|
"builderComponents",
|
|
@@ -5594,7 +5632,7 @@ const Ki = /* @__PURE__ */ v(ji, [["render", qi]]), Ji = async ({
|
|
|
5594
5632
|
methods: {
|
|
5595
5633
|
setContent() {
|
|
5596
5634
|
var e;
|
|
5597
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5635
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || es({
|
|
5598
5636
|
symbol: this.symbol,
|
|
5599
5637
|
builderContextValue: this.builderContext
|
|
5600
5638
|
}).then((t) => {
|
|
@@ -5604,10 +5642,10 @@ const Ki = /* @__PURE__ */ v(ji, [["render", qi]]), Ji = async ({
|
|
|
5604
5642
|
}
|
|
5605
5643
|
}
|
|
5606
5644
|
});
|
|
5607
|
-
function
|
|
5645
|
+
function ns(e, t, n, o, r, i) {
|
|
5608
5646
|
var l, a, u, p, b, c, m;
|
|
5609
5647
|
const s = k("ContentVariants");
|
|
5610
|
-
return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5648
|
+
return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5611
5649
|
$(s, {
|
|
5612
5650
|
nonce: e.builderContext.nonce,
|
|
5613
5651
|
isNestedRender: !0,
|
|
@@ -5632,44 +5670,44 @@ function Qi(e, t, n, o, r, i) {
|
|
|
5632
5670
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5633
5671
|
], 16);
|
|
5634
5672
|
}
|
|
5635
|
-
const
|
|
5673
|
+
const os = /* @__PURE__ */ v(ts, [["render", ns]]);
|
|
5636
5674
|
export {
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5675
|
+
Dn as A,
|
|
5676
|
+
kt as B,
|
|
5677
|
+
fo as C,
|
|
5640
5678
|
Be as D,
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5679
|
+
ss as E,
|
|
5680
|
+
yo as F,
|
|
5681
|
+
bs as G,
|
|
5682
|
+
$o as I,
|
|
5683
|
+
Po as S,
|
|
5684
|
+
vr as T,
|
|
5685
|
+
yi as V,
|
|
5648
5686
|
v as _,
|
|
5649
5687
|
M as a,
|
|
5650
5688
|
be as b,
|
|
5651
5689
|
ue as c,
|
|
5652
|
-
|
|
5690
|
+
ms as d,
|
|
5653
5691
|
ee as e,
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5692
|
+
uo as f,
|
|
5693
|
+
fs as g,
|
|
5694
|
+
hs as h,
|
|
5695
|
+
gs as i,
|
|
5658
5696
|
Ve as j,
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5697
|
+
ln as k,
|
|
5698
|
+
jt as l,
|
|
5699
|
+
os as m,
|
|
5662
5700
|
j as n,
|
|
5663
|
-
|
|
5701
|
+
Zi as o,
|
|
5664
5702
|
Ee as p,
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5703
|
+
cn as q,
|
|
5704
|
+
as as r,
|
|
5705
|
+
us as s,
|
|
5706
|
+
ls as t,
|
|
5707
|
+
cs as u,
|
|
5708
|
+
at as v,
|
|
5709
|
+
Ji as w,
|
|
5710
|
+
ds as x,
|
|
5711
|
+
ps as y,
|
|
5712
|
+
Wn as z
|
|
5675
5713
|
};
|