@builder.io/sdk-vue 5.2.12 → 5.2.13
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-_vJybpjE.cjs → awaiter-Ja_QJKsd.cjs} +1 -1
- package/lib/browser/{awaiter-nbyjYGTm.js → awaiter-PAIWzl07.js} +1 -1
- package/lib/browser/{block-wrapper-LaZs4cQn.cjs → block-wrapper-CeRmNoq0.cjs} +1 -1
- package/lib/browser/{block-wrapper-H2uWRFfl.js → block-wrapper-b4XqsSBv.js} +3 -3
- 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-MNrE4dOw.cjs} +1 -1
- package/lib/browser/{component-ref-pzekKy-e.js → component-ref-RNH8q_Ct.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-k4bCVM0L.cjs → get-block-properties-C1S41sZd.cjs} +1 -1
- package/lib/browser/{get-block-properties-pJvtXJrC.js → get-block-properties-aY0jarAY.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-3BT-zvy_.js → index-Q7tlS2c1.js} +666 -627
- package/lib/browser/{index-FQjXUcZa.cjs → index-ohjTQ4ru.cjs} +47 -29
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-f81HRMwD.js → live-edit-zIE57v1M.js} +1 -1
- package/lib/browser/{live-edit-QecbSljF.cjs → live-edit-zUS6r7uc.cjs} +1 -1
- package/lib/browser/{repeated-block-pzyWtt9k.cjs → repeated-block-XFgvkCPh.cjs} +1 -1
- package/lib/browser/{repeated-block-z4-Tq0vb.js → repeated-block-qKqkpCg_.js} +2 -2
- package/lib/browser/{style-wrapper-XQIDj12j.js → style-wrapper-nYNv2BeU.js} +1 -1
- package/lib/browser/{style-wrapper-wOCgRtEf.cjs → style-wrapper-zgP9Exwf.cjs} +1 -1
- package/lib/edge/{awaiter-cczNFZYf.js → awaiter-Mugw26Wi.js} +1 -1
- package/lib/edge/{awaiter-kqWOzygI.cjs → awaiter-N8Gr0F79.cjs} +1 -1
- package/lib/edge/{block-wrapper-TCG6J1wM.js → block-wrapper-0c3wPm9h.js} +3 -3
- package/lib/{node/block-wrapper-B7fQ00-T.cjs → edge/block-wrapper-KQrzy0mA.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-R_Q4TOb7.js} +4 -4
- package/lib/edge/{component-ref-zHNGcCjv.cjs → component-ref-e3xYDpNG.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-GLe5pKJ-.js → get-block-properties-TtYKEgAO.js} +1 -1
- package/lib/edge/{get-block-properties-g3UUmViz.cjs → get-block-properties-d0E5ZkZj.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-NPl2zFFt.js → index-5jMXhHfs.js} +1016 -977
- package/lib/edge/{index-Q1mE-A20.cjs → index-_dQKp9LH.cjs} +55 -37
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{live-edit-mfyAZvt8.js → live-edit-7Dc7Q2yS.js} +1 -1
- package/lib/{node/live-edit-Qt7v1n8V.cjs → edge/live-edit-oGxYZa_V.cjs} +1 -1
- package/lib/edge/{repeated-block-lZx6tufR.js → repeated-block-GESRSjst.js} +2 -2
- package/lib/edge/{repeated-block-fItsEFz7.cjs → repeated-block-K9b4UbOC.cjs} +1 -1
- package/lib/edge/{style-wrapper-9SPXPEOl.cjs → style-wrapper-dmNB8lmp.cjs} +1 -1
- package/lib/edge/{style-wrapper-C9W8emFx.js → style-wrapper-rh9YxCiw.js} +1 -1
- package/lib/node/{awaiter-Se1nH_ny.cjs → awaiter-0EtumND-.cjs} +1 -1
- package/lib/node/{awaiter-if1ZrvLi.js → awaiter-9zCUlZB9.js} +1 -1
- package/lib/{edge/block-wrapper-WHxKG2JN.cjs → node/block-wrapper-c0gZ4j4I.cjs} +1 -1
- package/lib/node/{block-wrapper-Nkj9awCA.js → block-wrapper-s8zLAxlL.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-PPsTcld8.js} +5 -5
- package/lib/node/{component-ref-BFKh4Vpb.cjs → component-ref-lWzA5guw.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-I05vUwHl.js → get-block-properties-AwCMGMPi.js} +2 -2
- package/lib/node/{get-block-properties-NSTAD_o0.cjs → get-block-properties-DKvJS4pV.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-vP-oPL56.js → index-DWznrY3w.js} +557 -518
- package/lib/node/{index-jBWgo8LI.cjs → index-funKFPCj.cjs} +47 -29
- 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-Bw84zZeV.cjs} +1 -1
- package/lib/node/{live-edit-yKSQ0yqr.js → live-edit-GVvl4apL.js} +1 -1
- package/lib/node/{repeated-block-EN_RXDs9.js → repeated-block-SP8WaEQp.js} +2 -2
- package/lib/node/{repeated-block-KjQeddn3.cjs → repeated-block-ux8wkluB.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node--WFVCCbl.cjs → should-force-browser-runtime-in-node-5MPjjLJt.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cWvDK4Td.js → should-force-browser-runtime-in-node-nOG6zu2k.js} +1 -1
- package/lib/node/{style-wrapper-GM8YDWdR.js → style-wrapper-5BoLwggo.js} +2 -2
- package/lib/node/{style-wrapper-tpv235Ma.cjs → style-wrapper-aKufn4zn.cjs} +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-nOG6zu2k.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-s8zLAxlL.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-PPsTcld8.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-SP8WaEQp.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-5BoLwggo.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", "role", "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,7 +1784,7 @@ 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",
|
|
@@ -1775,13 +1796,13 @@ function vo(e, t, n, o, r, i) {
|
|
|
1775
1796
|
objectFit: e.backgroundSize || "cover",
|
|
1776
1797
|
...e.aspectRatioCss
|
|
1777
1798
|
}),
|
|
1778
|
-
class:
|
|
1799
|
+
class: Z(
|
|
1779
1800
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
1780
1801
|
),
|
|
1781
1802
|
src: e.image,
|
|
1782
1803
|
srcset: e.srcSetToUse,
|
|
1783
1804
|
sizes: e.sizesToUse
|
|
1784
|
-
}, null, 14,
|
|
1805
|
+
}, null, 14, To)
|
|
1785
1806
|
]),
|
|
1786
1807
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
1787
1808
|
key: 0,
|
|
@@ -1791,19 +1812,19 @@ function vo(e, t, n, o, r, i) {
|
|
|
1791
1812
|
})
|
|
1792
1813
|
}, null, 4)) : T("", !0),
|
|
1793
1814
|
(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",
|
|
1815
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", wo, [
|
|
1795
1816
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1796
1817
|
])) : T("", !0)
|
|
1797
1818
|
], 64);
|
|
1798
1819
|
}
|
|
1799
|
-
const
|
|
1820
|
+
const $o = /* @__PURE__ */ v(ko, [["render", Io], ["__scopeId", "data-v-f109a7da"]]), Ro = y({
|
|
1800
1821
|
name: "builder-section-component",
|
|
1801
1822
|
props: ["attributes", "maxWidth"],
|
|
1802
1823
|
data() {
|
|
1803
1824
|
return { filterAttrs: N };
|
|
1804
1825
|
}
|
|
1805
1826
|
});
|
|
1806
|
-
function
|
|
1827
|
+
function Eo(e, t, n, o, r, i) {
|
|
1807
1828
|
return d(), h("section", I({
|
|
1808
1829
|
style: {
|
|
1809
1830
|
width: "100%",
|
|
@@ -1817,12 +1838,12 @@ function Co(e, t, n, o, r, i) {
|
|
|
1817
1838
|
marginLeft: "auto",
|
|
1818
1839
|
marginRight: "auto"
|
|
1819
1840
|
}
|
|
1820
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1841
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1821
1842
|
V(e.$slots, "default")
|
|
1822
1843
|
], 16);
|
|
1823
1844
|
}
|
|
1824
|
-
const
|
|
1825
|
-
function
|
|
1845
|
+
const Po = /* @__PURE__ */ v(Ro, [["render", Eo]]);
|
|
1846
|
+
function Ao(e, t, n, o) {
|
|
1826
1847
|
function r(u) {
|
|
1827
1848
|
return typeof u == "string";
|
|
1828
1849
|
}
|
|
@@ -1879,7 +1900,20 @@ function wo(e, t, n, o) {
|
|
|
1879
1900
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1880
1901
|
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
1902
|
}
|
|
1882
|
-
const
|
|
1903
|
+
const Bo = `function getStudioUserAttributes() {
|
|
1904
|
+
const params = new URLSearchParams(window.location.search);
|
|
1905
|
+
if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
|
|
1906
|
+
return {};
|
|
1907
|
+
}
|
|
1908
|
+
const prefix = 'builder.userAttributes.';
|
|
1909
|
+
const attributes = {};
|
|
1910
|
+
params.forEach(function (value, key) {
|
|
1911
|
+
if (key.indexOf(prefix) === 0) {
|
|
1912
|
+
attributes[key.slice(prefix.length)] = value === 'true' ? true : value === 'false' ? false : value;
|
|
1913
|
+
}
|
|
1914
|
+
});
|
|
1915
|
+
return attributes;
|
|
1916
|
+
}`, Vo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1883
1917
|
if (!navigator.cookieEnabled) {
|
|
1884
1918
|
return;
|
|
1885
1919
|
}
|
|
@@ -1897,6 +1931,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1897
1931
|
if (locale) {
|
|
1898
1932
|
attributes.locale = locale;
|
|
1899
1933
|
}
|
|
1934
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
1900
1935
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
1901
1936
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
1902
1937
|
});
|
|
@@ -1924,7 +1959,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1924
1959
|
thisScript.remove();
|
|
1925
1960
|
}
|
|
1926
1961
|
}
|
|
1927
|
-
}`,
|
|
1962
|
+
}`, No = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1928
1963
|
function isString(val) {
|
|
1929
1964
|
return typeof val === 'string';
|
|
1930
1965
|
}
|
|
@@ -2002,7 +2037,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2002
2037
|
return item.query.every(filter => {
|
|
2003
2038
|
return objectMatchesQuery(userAttributes, filter);
|
|
2004
2039
|
});
|
|
2005
|
-
}`,
|
|
2040
|
+
}`, Wo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2006
2041
|
function getCookie(name) {
|
|
2007
2042
|
const nameEQ = name + '=';
|
|
2008
2043
|
const ca = document.cookie.split(';');
|
|
@@ -2028,6 +2063,7 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2028
2063
|
if (locale) {
|
|
2029
2064
|
attributes.locale = locale;
|
|
2030
2065
|
}
|
|
2066
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
2031
2067
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2032
2068
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2033
2069
|
});
|
|
@@ -2040,11 +2076,11 @@ const Io = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2040
2076
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2041
2077
|
}
|
|
2042
2078
|
}
|
|
2043
|
-
}`, re = "default",
|
|
2044
|
-
function
|
|
2045
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2079
|
+
}`, re = "default", Ge = "filterWithCustomTargeting", Se = "builderIoPersonalization", ke = "updateVisibilityStylesScript", Qe = "builderIoStudioUserAttributes", Do = "PersonalizationContainer", Tt = ["react", "vue", "svelte", "qwik"], wt = ["vue", "svelte", "qwik"];
|
|
2080
|
+
function Oo(e, t) {
|
|
2081
|
+
return !(e && e.length > 0) || !t ? !1 : wt.includes(R) ? !0 : !E();
|
|
2046
2082
|
}
|
|
2047
|
-
function
|
|
2083
|
+
function Uo({
|
|
2048
2084
|
variants: e,
|
|
2049
2085
|
previewingIndex: t,
|
|
2050
2086
|
isHydrated: n,
|
|
@@ -2084,20 +2120,23 @@ function Ao({
|
|
|
2084
2120
|
}
|
|
2085
2121
|
const Ce = (e) => {
|
|
2086
2122
|
var t;
|
|
2087
|
-
return Array.isArray(e) ? e.some(Ce) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) ===
|
|
2088
|
-
},
|
|
2123
|
+
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);
|
|
2124
|
+
}, xo = (e) => Ce(e), Fo = () => `
|
|
2089
2125
|
(function() {
|
|
2090
|
-
if (!window.${
|
|
2091
|
-
window.${
|
|
2126
|
+
if (!window.${Qe}) {
|
|
2127
|
+
window.${Qe} = ${Bo};
|
|
2128
|
+
}
|
|
2129
|
+
if (!window.${Ge}) {
|
|
2130
|
+
window.${Ge} = ${No};
|
|
2092
2131
|
}
|
|
2093
2132
|
if (!window.${Se}) {
|
|
2094
|
-
window.${Se} = ${
|
|
2133
|
+
window.${Se} = ${Vo};
|
|
2095
2134
|
}
|
|
2096
2135
|
if (!window.${ke}) {
|
|
2097
|
-
window.${ke} = ${
|
|
2136
|
+
window.${ke} = ${Wo};
|
|
2098
2137
|
}
|
|
2099
2138
|
})();
|
|
2100
|
-
`,
|
|
2139
|
+
`, 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
2140
|
"@type": "@builder.io/sdk:Element",
|
|
2102
2141
|
layerName: "Accordion item title",
|
|
2103
2142
|
responsiveStyles: {
|
|
@@ -2157,7 +2196,7 @@ const Ce = (e) => {
|
|
|
2157
2196
|
}
|
|
2158
2197
|
}
|
|
2159
2198
|
}]
|
|
2160
|
-
},
|
|
2199
|
+
}, Mo = {
|
|
2161
2200
|
name: "Builder:Accordion",
|
|
2162
2201
|
canHaveChildren: !0,
|
|
2163
2202
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2221,7 +2260,7 @@ const Ce = (e) => {
|
|
|
2221
2260
|
builderComponents: !0,
|
|
2222
2261
|
builderLinkComponent: !0
|
|
2223
2262
|
}
|
|
2224
|
-
},
|
|
2263
|
+
}, zo = (e) => e.toString(), jo = y({
|
|
2225
2264
|
name: "builder-accordion",
|
|
2226
2265
|
components: { Blocks: j },
|
|
2227
2266
|
props: [
|
|
@@ -2235,7 +2274,7 @@ const Ce = (e) => {
|
|
|
2235
2274
|
"builderLinkComponent"
|
|
2236
2275
|
],
|
|
2237
2276
|
data() {
|
|
2238
|
-
return { open: [], convertOrderNumberToString:
|
|
2277
|
+
return { open: [], convertOrderNumberToString: zo };
|
|
2239
2278
|
},
|
|
2240
2279
|
computed: {
|
|
2241
2280
|
onlyOneAtATime() {
|
|
@@ -2316,16 +2355,16 @@ const Ce = (e) => {
|
|
|
2316
2355
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2317
2356
|
}
|
|
2318
2357
|
}
|
|
2319
|
-
}),
|
|
2320
|
-
function
|
|
2358
|
+
}), qo = ["data-index", "onClick"];
|
|
2359
|
+
function Ko(e, t, n, o, r, i) {
|
|
2321
2360
|
const s = k("Blocks");
|
|
2322
2361
|
return d(), h("div", {
|
|
2323
2362
|
class: "builder-accordion",
|
|
2324
2363
|
style: H(e.accordionStyles)
|
|
2325
2364
|
}, [
|
|
2326
|
-
(d(!0), h(w, null,
|
|
2365
|
+
(d(!0), h(w, null, x(e.items, (l, a) => (d(), h(w, { key: a }, [
|
|
2327
2366
|
K("div", {
|
|
2328
|
-
class:
|
|
2367
|
+
class: Z(e.getAccordionTitleClassName(a)),
|
|
2329
2368
|
style: H({
|
|
2330
2369
|
...e.accordionTitleStyles,
|
|
2331
2370
|
...e.grid && {
|
|
@@ -2344,10 +2383,10 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2344
2383
|
registeredComponents: e.builderComponents,
|
|
2345
2384
|
linkComponent: e.builderLinkComponent
|
|
2346
2385
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2347
|
-
], 14,
|
|
2386
|
+
], 14, qo),
|
|
2348
2387
|
e.open.includes(a) ? (d(), h("div", {
|
|
2349
2388
|
key: 0,
|
|
2350
|
-
class:
|
|
2389
|
+
class: Z(e.getAccordionDetailClassName(a)),
|
|
2351
2390
|
style: H(e.accordionDetailStyles)
|
|
2352
2391
|
}, [
|
|
2353
2392
|
$(s, {
|
|
@@ -2362,7 +2401,7 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2362
2401
|
], 64))), 128))
|
|
2363
2402
|
], 4);
|
|
2364
2403
|
}
|
|
2365
|
-
const
|
|
2404
|
+
const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
2366
2405
|
name: "Core:Button",
|
|
2367
2406
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2368
2407
|
defaultStyles: {
|
|
@@ -2398,7 +2437,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2398
2437
|
shouldReceiveBuilderProps: {
|
|
2399
2438
|
builderLinkComponent: !0
|
|
2400
2439
|
}
|
|
2401
|
-
},
|
|
2440
|
+
}, Qo = {
|
|
2402
2441
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2403
2442
|
name: "Columns",
|
|
2404
2443
|
isRSC: !0,
|
|
@@ -2605,13 +2644,13 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2605
2644
|
builderComponents: !0,
|
|
2606
2645
|
builderLinkComponent: !0
|
|
2607
2646
|
}
|
|
2608
|
-
},
|
|
2647
|
+
}, Yo = {
|
|
2609
2648
|
name: "Fragment",
|
|
2610
2649
|
static: !0,
|
|
2611
2650
|
hidden: !0,
|
|
2612
2651
|
canHaveChildren: !0,
|
|
2613
2652
|
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"],
|
|
2653
|
+
}, 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
2654
|
name: "Image",
|
|
2616
2655
|
static: !0,
|
|
2617
2656
|
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 +2763,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2724
2763
|
shouldReceiveBuilderProps: {
|
|
2725
2764
|
builderBlock: !0
|
|
2726
2765
|
}
|
|
2727
|
-
},
|
|
2766
|
+
}, Zo = {
|
|
2728
2767
|
name: "PersonalizationContainer",
|
|
2729
2768
|
shouldReceiveBuilderProps: {
|
|
2730
2769
|
builderBlock: !0,
|
|
@@ -2762,7 +2801,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2762
2801
|
}]
|
|
2763
2802
|
}, We = y({
|
|
2764
2803
|
render() {
|
|
2765
|
-
return
|
|
2804
|
+
return Ze("script", {
|
|
2766
2805
|
innerHTML: this.scriptStr,
|
|
2767
2806
|
"data-id": this.id,
|
|
2768
2807
|
nonce: this.nonce
|
|
@@ -2770,7 +2809,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2770
2809
|
},
|
|
2771
2810
|
name: "inlined-script",
|
|
2772
2811
|
props: ["scriptStr", "id", "nonce"]
|
|
2773
|
-
}),
|
|
2812
|
+
}), er = y({
|
|
2774
2813
|
name: "builder-personalization-container",
|
|
2775
2814
|
components: {
|
|
2776
2815
|
Blocks: j,
|
|
@@ -2789,25 +2828,25 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2789
2828
|
var e, t, n, o, r, i, s;
|
|
2790
2829
|
return {
|
|
2791
2830
|
userAttributes: ce.getUserAttributes(),
|
|
2792
|
-
scriptStr:
|
|
2831
|
+
scriptStr: Lo(
|
|
2793
2832
|
this.variants,
|
|
2794
2833
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2795
2834
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2796
2835
|
),
|
|
2797
|
-
updateVisibilityStylesScript:
|
|
2836
|
+
updateVisibilityStylesScript: Ho(
|
|
2798
2837
|
this.variants,
|
|
2799
2838
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2800
2839
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2801
2840
|
),
|
|
2802
2841
|
unsubscribers: [],
|
|
2803
|
-
shouldRenderVariants:
|
|
2842
|
+
shouldRenderVariants: Oo(
|
|
2804
2843
|
this.variants,
|
|
2805
2844
|
J((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2806
2845
|
),
|
|
2807
2846
|
shouldResetVariants: !1,
|
|
2808
2847
|
TARGET: R,
|
|
2809
2848
|
DEFAULT_INDEX: re,
|
|
2810
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2849
|
+
SDKS_REQUIRING_RESET_APPROACH: wt
|
|
2811
2850
|
};
|
|
2812
2851
|
},
|
|
2813
2852
|
mounted() {
|
|
@@ -2862,7 +2901,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2862
2901
|
filteredVariants() {
|
|
2863
2902
|
return (this.variants || []).filter((e) => {
|
|
2864
2903
|
var t, n, o, r;
|
|
2865
|
-
return
|
|
2904
|
+
return Ao(
|
|
2866
2905
|
{
|
|
2867
2906
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
2868
2907
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -2877,7 +2916,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2877
2916
|
},
|
|
2878
2917
|
blocksToRender() {
|
|
2879
2918
|
var e;
|
|
2880
|
-
return
|
|
2919
|
+
return Uo({
|
|
2881
2920
|
variants: this.variants,
|
|
2882
2921
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
2883
2922
|
isHydrated: this.shouldResetVariants,
|
|
@@ -2895,7 +2934,7 @@ const Lo = /* @__PURE__ */ v(xo, [["render", Fo]]), Ho = {
|
|
|
2895
2934
|
}
|
|
2896
2935
|
}
|
|
2897
2936
|
});
|
|
2898
|
-
function
|
|
2937
|
+
function tr(e, t, n, o, r, i) {
|
|
2899
2938
|
var u, p, b, c, m, f, g, P, O, B;
|
|
2900
2939
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
2901
2940
|
return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
|
|
@@ -2923,7 +2962,7 @@ function Go(e, t, n, o, r, i) {
|
|
|
2923
2962
|
scriptStr: e.updateVisibilityStylesScript,
|
|
2924
2963
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
2925
2964
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
2926
|
-
(d(!0), h(w, null,
|
|
2965
|
+
(d(!0), h(w, null, x(e.variants, (q, C) => {
|
|
2927
2966
|
var z, G, Q, W;
|
|
2928
2967
|
return d(), S(s, {
|
|
2929
2968
|
key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
|
|
@@ -2980,7 +3019,7 @@ function Go(e, t, n, o, r, i) {
|
|
|
2980
3019
|
], 64)) : T("", !0)
|
|
2981
3020
|
], 16);
|
|
2982
3021
|
}
|
|
2983
|
-
const
|
|
3022
|
+
const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
|
|
2984
3023
|
name: "Core:Section",
|
|
2985
3024
|
static: !0,
|
|
2986
3025
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3019,7 +3058,7 @@ const Qo = /* @__PURE__ */ v(Jo, [["render", Go]]), Yo = {
|
|
|
3019
3058
|
}
|
|
3020
3059
|
}
|
|
3021
3060
|
}]
|
|
3022
|
-
},
|
|
3061
|
+
}, rr = {
|
|
3023
3062
|
name: "Slot",
|
|
3024
3063
|
isRSC: !0,
|
|
3025
3064
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3036,12 +3075,12 @@ const Qo = /* @__PURE__ */ v(Jo, [["render", Go]]), Yo = {
|
|
|
3036
3075
|
builderContext: !0,
|
|
3037
3076
|
builderComponents: !0
|
|
3038
3077
|
}
|
|
3039
|
-
},
|
|
3078
|
+
}, ir = y({
|
|
3040
3079
|
name: "builder-slot",
|
|
3041
3080
|
components: { Blocks: j },
|
|
3042
3081
|
props: ["builderContext", "name", "builderComponents"]
|
|
3043
3082
|
});
|
|
3044
|
-
function
|
|
3083
|
+
function sr(e, t, n, o, r, i) {
|
|
3045
3084
|
var l, a, u;
|
|
3046
3085
|
const s = k("Blocks");
|
|
3047
3086
|
return d(), h("div", I(
|
|
@@ -3061,7 +3100,7 @@ function _o(e, t, n, o, r, i) {
|
|
|
3061
3100
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3062
3101
|
], 16);
|
|
3063
3102
|
}
|
|
3064
|
-
const
|
|
3103
|
+
const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
3065
3104
|
name: "Symbol",
|
|
3066
3105
|
noWrap: !0,
|
|
3067
3106
|
static: !0,
|
|
@@ -3138,7 +3177,7 @@ const er = /* @__PURE__ */ v(Zo, [["render", _o]]), tr = {
|
|
|
3138
3177
|
text: "New tab content "
|
|
3139
3178
|
}
|
|
3140
3179
|
}
|
|
3141
|
-
},
|
|
3180
|
+
}, cr = {
|
|
3142
3181
|
name: "Builder: Tabs",
|
|
3143
3182
|
inputs: [{
|
|
3144
3183
|
name: "tabs",
|
|
@@ -3241,7 +3280,7 @@ const er = /* @__PURE__ */ v(Zo, [["render", _o]]), tr = {
|
|
|
3241
3280
|
builderComponents: !0,
|
|
3242
3281
|
builderLinkComponent: !0
|
|
3243
3282
|
}
|
|
3244
|
-
},
|
|
3283
|
+
}, dr = y({
|
|
3245
3284
|
name: "builder-tabs",
|
|
3246
3285
|
components: { Blocks: j },
|
|
3247
3286
|
props: [
|
|
@@ -3269,8 +3308,8 @@ const er = /* @__PURE__ */ v(Zo, [["render", _o]]), tr = {
|
|
|
3269
3308
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3270
3309
|
}
|
|
3271
3310
|
}
|
|
3272
|
-
}),
|
|
3273
|
-
function
|
|
3311
|
+
}), ur = ["onClick"], pr = { key: 0 };
|
|
3312
|
+
function mr(e, t, n, o, r, i) {
|
|
3274
3313
|
const s = k("Blocks");
|
|
3275
3314
|
return d(), h("div", null, [
|
|
3276
3315
|
K("div", {
|
|
@@ -3282,9 +3321,9 @@ function sr(e, t, n, o, r, i) {
|
|
|
3282
3321
|
overflow: "auto"
|
|
3283
3322
|
})
|
|
3284
3323
|
}, [
|
|
3285
|
-
(d(!0), h(w, null,
|
|
3324
|
+
(d(!0), h(w, null, x(e.tabs, (l, a) => (d(), h("span", {
|
|
3286
3325
|
key: a,
|
|
3287
|
-
class:
|
|
3326
|
+
class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3288
3327
|
style: H(e.getTabStyle(a)),
|
|
3289
3328
|
onClick: async (u) => e.onClick(a)
|
|
3290
3329
|
}, [
|
|
@@ -3296,9 +3335,9 @@ function sr(e, t, n, o, r, i) {
|
|
|
3296
3335
|
registeredComponents: e.builderComponents,
|
|
3297
3336
|
linkComponent: e.builderLinkComponent
|
|
3298
3337
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3299
|
-
], 14,
|
|
3338
|
+
], 14, ur))), 128))
|
|
3300
3339
|
], 4),
|
|
3301
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3340
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", pr, [
|
|
3302
3341
|
$(s, {
|
|
3303
3342
|
parent: e.builderBlock.id,
|
|
3304
3343
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3310,7 +3349,7 @@ function sr(e, t, n, o, r, i) {
|
|
|
3310
3349
|
])) : T("", !0)
|
|
3311
3350
|
]);
|
|
3312
3351
|
}
|
|
3313
|
-
const
|
|
3352
|
+
const hr = /* @__PURE__ */ v(dr, [["render", mr]]), fr = {
|
|
3314
3353
|
shouldReceiveBuilderProps: {},
|
|
3315
3354
|
name: "Text",
|
|
3316
3355
|
static: !0,
|
|
@@ -3328,11 +3367,11 @@ const ar = /* @__PURE__ */ v(or, [["render", sr]]), lr = {
|
|
|
3328
3367
|
height: "auto",
|
|
3329
3368
|
textAlign: "center"
|
|
3330
3369
|
}
|
|
3331
|
-
},
|
|
3370
|
+
}, br = y({
|
|
3332
3371
|
name: "builder-text",
|
|
3333
3372
|
props: ["text"]
|
|
3334
|
-
}),
|
|
3335
|
-
function
|
|
3373
|
+
}), gr = ["innerHTML"];
|
|
3374
|
+
function yr(e, t, n, o, r, i) {
|
|
3336
3375
|
var s;
|
|
3337
3376
|
return d(), h("div", {
|
|
3338
3377
|
class: "builder-text",
|
|
@@ -3340,9 +3379,9 @@ function ur(e, t, n, o, r, i) {
|
|
|
3340
3379
|
style: {
|
|
3341
3380
|
outline: "none"
|
|
3342
3381
|
}
|
|
3343
|
-
}, null, 8,
|
|
3382
|
+
}, null, 8, gr);
|
|
3344
3383
|
}
|
|
3345
|
-
const
|
|
3384
|
+
const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
3346
3385
|
name: "Custom Code",
|
|
3347
3386
|
static: !0,
|
|
3348
3387
|
requiredPermissions: ["editCode"],
|
|
@@ -3364,7 +3403,7 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
|
3364
3403
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3365
3404
|
advanced: !0
|
|
3366
3405
|
}]
|
|
3367
|
-
},
|
|
3406
|
+
}, kr = y({
|
|
3368
3407
|
name: "builder-custom-code",
|
|
3369
3408
|
props: ["code", "replaceNodes"],
|
|
3370
3409
|
data() {
|
|
@@ -3423,15 +3462,15 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
|
3423
3462
|
}
|
|
3424
3463
|
}
|
|
3425
3464
|
}
|
|
3426
|
-
}),
|
|
3427
|
-
function
|
|
3465
|
+
}), Cr = ["innerHTML"];
|
|
3466
|
+
function Tr(e, t, n, o, r, i) {
|
|
3428
3467
|
return d(), h("div", {
|
|
3429
3468
|
ref: "elementRef",
|
|
3430
|
-
class:
|
|
3469
|
+
class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3431
3470
|
innerHTML: e.code
|
|
3432
|
-
}, null, 10,
|
|
3471
|
+
}, null, 10, Cr);
|
|
3433
3472
|
}
|
|
3434
|
-
const
|
|
3473
|
+
const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
3435
3474
|
name: "Embed",
|
|
3436
3475
|
static: !0,
|
|
3437
3476
|
inputs: [{
|
|
@@ -3446,7 +3485,7 @@ const gr = /* @__PURE__ */ v(hr, [["render", br]]), yr = {
|
|
|
3446
3485
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3447
3486
|
hideFromUI: !0
|
|
3448
3487
|
}]
|
|
3449
|
-
},
|
|
3488
|
+
}, $r = ["text/javascript", "application/javascript", "application/ecmascript"], Rr = (e) => $r.includes(e.type), Er = y({
|
|
3450
3489
|
name: "builder-embed",
|
|
3451
3490
|
props: ["content"],
|
|
3452
3491
|
data() {
|
|
@@ -3479,7 +3518,7 @@ const gr = /* @__PURE__ */ v(hr, [["render", br]]), yr = {
|
|
|
3479
3518
|
this.scriptsInserted.push(n.src);
|
|
3480
3519
|
const o = document.createElement("script");
|
|
3481
3520
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3482
|
-
} else if (
|
|
3521
|
+
} else if (Rr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3483
3522
|
try {
|
|
3484
3523
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3485
3524
|
} catch (o) {
|
|
@@ -3488,15 +3527,15 @@ const gr = /* @__PURE__ */ v(hr, [["render", br]]), yr = {
|
|
|
3488
3527
|
}
|
|
3489
3528
|
}
|
|
3490
3529
|
}
|
|
3491
|
-
}),
|
|
3492
|
-
function
|
|
3530
|
+
}), Pr = ["innerHTML"];
|
|
3531
|
+
function Ar(e, t, n, o, r, i) {
|
|
3493
3532
|
return d(), h("div", {
|
|
3494
3533
|
class: "builder-embed",
|
|
3495
3534
|
ref: "elem",
|
|
3496
3535
|
innerHTML: e.content
|
|
3497
|
-
}, null, 8,
|
|
3536
|
+
}, null, 8, Pr);
|
|
3498
3537
|
}
|
|
3499
|
-
const
|
|
3538
|
+
const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
3500
3539
|
name: "Form:Form",
|
|
3501
3540
|
// editableTags: ['builder-form-error']
|
|
3502
3541
|
defaults: {
|
|
@@ -3733,10 +3772,10 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3733
3772
|
builderComponents: !0,
|
|
3734
3773
|
builderLinkComponent: !0
|
|
3735
3774
|
}
|
|
3736
|
-
},
|
|
3775
|
+
}, Nr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Wr = () => {
|
|
3737
3776
|
const e = process.env.NODE_ENV || "production";
|
|
3738
|
-
return
|
|
3739
|
-
},
|
|
3777
|
+
return Nr.includes(e) ? e : "production";
|
|
3778
|
+
}, Dr = y({
|
|
3740
3779
|
name: "builder-form-component",
|
|
3741
3780
|
components: { Blocks: j },
|
|
3742
3781
|
props: [
|
|
@@ -3829,7 +3868,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3829
3868
|
else {
|
|
3830
3869
|
const c = {};
|
|
3831
3870
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
3832
|
-
|
|
3871
|
+
et(c, f, m);
|
|
3833
3872
|
}), i = JSON.stringify(c);
|
|
3834
3873
|
}
|
|
3835
3874
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3847,10 +3886,10 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3847
3886
|
});
|
|
3848
3887
|
return;
|
|
3849
3888
|
}
|
|
3850
|
-
const p = `${
|
|
3889
|
+
const p = `${Wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3851
3890
|
this.sendSubmissionsToEmail || ""
|
|
3852
3891
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
3853
|
-
|
|
3892
|
+
ot(b), fetch(b, {
|
|
3854
3893
|
body: i,
|
|
3855
3894
|
headers: r,
|
|
3856
3895
|
method: this.method || "post"
|
|
@@ -3871,7 +3910,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3871
3910
|
), O.defaultPrevented))
|
|
3872
3911
|
return;
|
|
3873
3912
|
this.responseData = m, this.formState = "error";
|
|
3874
|
-
let B = this.errorMessagePath ?
|
|
3913
|
+
let B = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
|
|
3875
3914
|
typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
|
|
3876
3915
|
formErrorMessage: B
|
|
3877
3916
|
});
|
|
@@ -3913,11 +3952,11 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3913
3952
|
}
|
|
3914
3953
|
}
|
|
3915
3954
|
}
|
|
3916
|
-
}),
|
|
3955
|
+
}), Or = ["validate", "action", "method", "name"], Ur = {
|
|
3917
3956
|
key: 2,
|
|
3918
3957
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
3919
3958
|
};
|
|
3920
|
-
function
|
|
3959
|
+
function xr(e, t, n, o, r, i) {
|
|
3921
3960
|
const s = k("Blocks");
|
|
3922
3961
|
return d(), h("form", I({
|
|
3923
3962
|
validate: e.validate,
|
|
@@ -3926,7 +3965,7 @@ function Br(e, t, n, o, r, i) {
|
|
|
3926
3965
|
method: e.method,
|
|
3927
3966
|
name: e.name,
|
|
3928
3967
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
3929
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3968
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3930
3969
|
V(e.$slots, "default", {}, void 0, !0),
|
|
3931
3970
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
3932
3971
|
key: 0,
|
|
@@ -3940,16 +3979,16 @@ function Br(e, t, n, o, r, i) {
|
|
|
3940
3979
|
blocks: e.sendingMessage,
|
|
3941
3980
|
context: e.builderContext
|
|
3942
3981
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
3943
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre",
|
|
3982
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Ur, de(e.errorResponse(e.responseData)), 1)) : T("", !0),
|
|
3944
3983
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
3945
3984
|
key: 3,
|
|
3946
3985
|
path: "successMessage",
|
|
3947
3986
|
blocks: e.successMessage,
|
|
3948
3987
|
context: e.builderContext
|
|
3949
3988
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
3950
|
-
], 16,
|
|
3989
|
+
], 16, Or);
|
|
3951
3990
|
}
|
|
3952
|
-
const
|
|
3991
|
+
const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c"]]), Lr = {
|
|
3953
3992
|
name: "Form:Input",
|
|
3954
3993
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3955
3994
|
inputs: [
|
|
@@ -4000,7 +4039,7 @@ const Vr = /* @__PURE__ */ v(Er, [["render", Br], ["__scopeId", "data-v-77c7888c
|
|
|
4000
4039
|
borderStyle: "solid",
|
|
4001
4040
|
borderColor: "#ccc"
|
|
4002
4041
|
}
|
|
4003
|
-
},
|
|
4042
|
+
}, Hr = y({
|
|
4004
4043
|
name: "builder-form-input-component",
|
|
4005
4044
|
props: [
|
|
4006
4045
|
"attributes",
|
|
@@ -4014,8 +4053,8 @@ const Vr = /* @__PURE__ */ v(Er, [["render", Br], ["__scopeId", "data-v-77c7888c
|
|
|
4014
4053
|
data() {
|
|
4015
4054
|
return { isEditing: A, filterAttrs: N };
|
|
4016
4055
|
}
|
|
4017
|
-
}),
|
|
4018
|
-
function
|
|
4056
|
+
}), Mr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4057
|
+
function zr(e, t, n, o, r, i) {
|
|
4019
4058
|
return d(), h("input", I({
|
|
4020
4059
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4021
4060
|
placeholder: e.placeholder,
|
|
@@ -4024,9 +4063,9 @@ function Or(e, t, n, o, r, i) {
|
|
|
4024
4063
|
value: e.value,
|
|
4025
4064
|
defaultValue: e.defaultValue,
|
|
4026
4065
|
required: e.required
|
|
4027
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4066
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Mr);
|
|
4028
4067
|
}
|
|
4029
|
-
const
|
|
4068
|
+
const jr = /* @__PURE__ */ v(Hr, [["render", zr]]), qr = {
|
|
4030
4069
|
name: "Form:Select",
|
|
4031
4070
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4032
4071
|
defaultStyles: {
|
|
@@ -4068,28 +4107,28 @@ const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
|
|
|
4068
4107
|
}],
|
|
4069
4108
|
static: !0,
|
|
4070
4109
|
noWrap: !0
|
|
4071
|
-
},
|
|
4110
|
+
}, Kr = y({
|
|
4072
4111
|
name: "builder-select-component",
|
|
4073
4112
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4074
4113
|
data() {
|
|
4075
4114
|
return { isEditing: A, filterAttrs: N };
|
|
4076
4115
|
}
|
|
4077
|
-
}),
|
|
4078
|
-
function
|
|
4116
|
+
}), Jr = ["value", "defaultValue", "name", "required"], Gr = ["value"];
|
|
4117
|
+
function Qr(e, t, n, o, r, i) {
|
|
4079
4118
|
return d(), h("select", I({
|
|
4080
4119
|
value: e.value,
|
|
4081
4120
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4082
4121
|
defaultValue: e.defaultValue,
|
|
4083
4122
|
name: e.name,
|
|
4084
4123
|
required: e.required
|
|
4085
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4086
|
-
(d(!0), h(w, null,
|
|
4124
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4125
|
+
(d(!0), h(w, null, x(e.options, (s, l) => (d(), h("option", {
|
|
4087
4126
|
key: `${s.name}-${l}`,
|
|
4088
4127
|
value: s.value
|
|
4089
|
-
}, de(s.name || s.value), 9,
|
|
4090
|
-
], 16,
|
|
4128
|
+
}, de(s.name || s.value), 9, Gr))), 128))
|
|
4129
|
+
], 16, Jr);
|
|
4091
4130
|
}
|
|
4092
|
-
const
|
|
4131
|
+
const Yr = /* @__PURE__ */ v(Kr, [["render", Qr]]), _r = {
|
|
4093
4132
|
name: "Form:SubmitButton",
|
|
4094
4133
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4095
4134
|
defaultStyles: {
|
|
@@ -4114,17 +4153,17 @@ const zr = /* @__PURE__ */ v(Fr, [["render", Mr]]), jr = {
|
|
|
4114
4153
|
// that only shows if advanced setting is flipped
|
|
4115
4154
|
// TODO: defaultChildren
|
|
4116
4155
|
// canHaveChildren: true,
|
|
4117
|
-
},
|
|
4156
|
+
}, Xr = y({
|
|
4118
4157
|
name: "builder-submit-button",
|
|
4119
4158
|
props: ["attributes", "text"],
|
|
4120
4159
|
data() {
|
|
4121
4160
|
return { filterAttrs: N };
|
|
4122
4161
|
}
|
|
4123
4162
|
});
|
|
4124
|
-
function
|
|
4125
|
-
return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4163
|
+
function Zr(e, t, n, o, r, i) {
|
|
4164
|
+
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
4165
|
}
|
|
4127
|
-
const
|
|
4166
|
+
const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
|
|
4128
4167
|
name: "Form:TextArea",
|
|
4129
4168
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4130
4169
|
inputs: [{
|
|
@@ -4160,7 +4199,7 @@ const Jr = /* @__PURE__ */ v(qr, [["render", Kr]]), Gr = {
|
|
|
4160
4199
|
},
|
|
4161
4200
|
static: !0,
|
|
4162
4201
|
noWrap: !0
|
|
4163
|
-
},
|
|
4202
|
+
}, ni = y({
|
|
4164
4203
|
name: "builder-textarea",
|
|
4165
4204
|
props: [
|
|
4166
4205
|
"attributes",
|
|
@@ -4173,17 +4212,17 @@ const Jr = /* @__PURE__ */ v(qr, [["render", Kr]]), Gr = {
|
|
|
4173
4212
|
data() {
|
|
4174
4213
|
return { filterAttrs: N };
|
|
4175
4214
|
}
|
|
4176
|
-
}),
|
|
4177
|
-
function
|
|
4215
|
+
}), oi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4216
|
+
function ri(e, t, n, o, r, i) {
|
|
4178
4217
|
return d(), h("textarea", I({
|
|
4179
4218
|
placeholder: e.placeholder,
|
|
4180
4219
|
name: e.name,
|
|
4181
4220
|
value: e.value,
|
|
4182
4221
|
defaultValue: e.defaultValue,
|
|
4183
4222
|
required: e.required
|
|
4184
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4223
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, oi);
|
|
4185
4224
|
}
|
|
4186
|
-
const
|
|
4225
|
+
const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
4187
4226
|
name: "Raw:Img",
|
|
4188
4227
|
hideFromInsertMenu: !0,
|
|
4189
4228
|
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 +4266,7 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4227
4266
|
defaultValue: 0.7041
|
|
4228
4267
|
}],
|
|
4229
4268
|
noWrap: !0
|
|
4230
|
-
},
|
|
4269
|
+
}, ai = y({
|
|
4231
4270
|
name: "builder-img-component",
|
|
4232
4271
|
props: [
|
|
4233
4272
|
"imgSrc",
|
|
@@ -4257,8 +4296,8 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4257
4296
|
return delete e.style, e;
|
|
4258
4297
|
}
|
|
4259
4298
|
}
|
|
4260
|
-
}),
|
|
4261
|
-
function
|
|
4299
|
+
}), li = ["alt", "title", "src"];
|
|
4300
|
+
function ci(e, t, n, o, r, i) {
|
|
4262
4301
|
var s;
|
|
4263
4302
|
return d(), h("img", I({
|
|
4264
4303
|
loading: "lazy",
|
|
@@ -4272,9 +4311,9 @@ function ni(e, t, n, o, r, i) {
|
|
|
4272
4311
|
aspectRatio: e.aspectRatio || void 0,
|
|
4273
4312
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4274
4313
|
}
|
|
4275
|
-
}, e.imgAttrs), null, 16,
|
|
4314
|
+
}, e.imgAttrs), null, 16, li);
|
|
4276
4315
|
}
|
|
4277
|
-
const
|
|
4316
|
+
const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
4278
4317
|
name: "Video",
|
|
4279
4318
|
canHaveChildren: !0,
|
|
4280
4319
|
defaultStyles: {
|
|
@@ -4285,7 +4324,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4285
4324
|
inputs: [{
|
|
4286
4325
|
name: "video",
|
|
4287
4326
|
type: "file",
|
|
4288
|
-
allowedFileTypes:
|
|
4327
|
+
allowedFileTypes: _o,
|
|
4289
4328
|
bubble: !0,
|
|
4290
4329
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4291
4330
|
required: !0
|
|
@@ -4358,7 +4397,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4358
4397
|
shouldReceiveBuilderProps: {
|
|
4359
4398
|
builderBlock: !0
|
|
4360
4399
|
}
|
|
4361
|
-
},
|
|
4400
|
+
}, pi = y({
|
|
4362
4401
|
name: "builder-video",
|
|
4363
4402
|
props: [
|
|
4364
4403
|
"lazyLoad",
|
|
@@ -4431,16 +4470,16 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4431
4470
|
};
|
|
4432
4471
|
}
|
|
4433
4472
|
}
|
|
4434
|
-
}),
|
|
4473
|
+
}), mi = { style: {
|
|
4435
4474
|
position: "relative"
|
|
4436
|
-
} },
|
|
4475
|
+
} }, hi = ["preload", "poster"], fi = {
|
|
4437
4476
|
key: 1,
|
|
4438
4477
|
style: {
|
|
4439
4478
|
display: "flex",
|
|
4440
4479
|
flexDirection: "column",
|
|
4441
4480
|
alignItems: "stretch"
|
|
4442
4481
|
}
|
|
4443
|
-
},
|
|
4482
|
+
}, bi = {
|
|
4444
4483
|
key: 2,
|
|
4445
4484
|
style: {
|
|
4446
4485
|
pointerEvents: "none",
|
|
@@ -4454,9 +4493,9 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4454
4493
|
height: "100%"
|
|
4455
4494
|
}
|
|
4456
4495
|
};
|
|
4457
|
-
function
|
|
4496
|
+
function gi(e, t, n, o, r, i) {
|
|
4458
4497
|
var s, l, a, u, p, b, c;
|
|
4459
|
-
return d(), h("div",
|
|
4498
|
+
return d(), h("div", mi, [
|
|
4460
4499
|
K("video", I({
|
|
4461
4500
|
class: "builder-video",
|
|
4462
4501
|
ref: "videoRef",
|
|
@@ -4484,7 +4523,7 @@ function di(e, t, n, o, r, i) {
|
|
|
4484
4523
|
src: e.video
|
|
4485
4524
|
}
|
|
4486
4525
|
), null, 16)
|
|
4487
|
-
], 16,
|
|
4526
|
+
], 16, hi),
|
|
4488
4527
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4489
4528
|
key: 0,
|
|
4490
4529
|
style: H({
|
|
@@ -4494,75 +4533,75 @@ function di(e, t, n, o, r, i) {
|
|
|
4494
4533
|
fontSize: "0px"
|
|
4495
4534
|
})
|
|
4496
4535
|
}, null, 4)) : T("", !0),
|
|
4497
|
-
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div",
|
|
4536
|
+
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", fi, [
|
|
4498
4537
|
V(e.$slots, "default")
|
|
4499
4538
|
])) : T("", !0),
|
|
4500
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4539
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", bi, [
|
|
4501
4540
|
V(e.$slots, "default")
|
|
4502
4541
|
])) : T("", !0)
|
|
4503
4542
|
]);
|
|
4504
4543
|
}
|
|
4505
|
-
const
|
|
4506
|
-
component: gr,
|
|
4507
|
-
...mr
|
|
4508
|
-
}, {
|
|
4544
|
+
const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
|
|
4509
4545
|
component: wr,
|
|
4510
|
-
...
|
|
4546
|
+
...Sr
|
|
4511
4547
|
}, {
|
|
4512
|
-
component:
|
|
4548
|
+
component: Br,
|
|
4513
4549
|
...Ir
|
|
4514
4550
|
}, {
|
|
4515
|
-
component:
|
|
4516
|
-
...
|
|
4517
|
-
}, {
|
|
4518
|
-
component: Jr,
|
|
4519
|
-
...jr
|
|
4551
|
+
component: Fr,
|
|
4552
|
+
...Vr
|
|
4520
4553
|
}, {
|
|
4521
|
-
component:
|
|
4522
|
-
...
|
|
4554
|
+
component: jr,
|
|
4555
|
+
...Lr
|
|
4523
4556
|
}, {
|
|
4524
|
-
component:
|
|
4525
|
-
...Gr
|
|
4526
|
-
}, {
|
|
4527
|
-
component: oi,
|
|
4557
|
+
component: ei,
|
|
4528
4558
|
..._r
|
|
4529
4559
|
}, {
|
|
4530
|
-
component:
|
|
4531
|
-
...
|
|
4532
|
-
}], Je = () => [{
|
|
4533
|
-
component: Ht,
|
|
4534
|
-
...Ho
|
|
4560
|
+
component: Yr,
|
|
4561
|
+
...qr
|
|
4535
4562
|
}, {
|
|
4536
|
-
component:
|
|
4537
|
-
...
|
|
4563
|
+
component: ii,
|
|
4564
|
+
...ti
|
|
4565
|
+
}, {
|
|
4566
|
+
component: di,
|
|
4567
|
+
...si
|
|
4538
4568
|
}, {
|
|
4539
|
-
component:
|
|
4540
|
-
...
|
|
4569
|
+
component: yi,
|
|
4570
|
+
...ui
|
|
4571
|
+
}], Ye = () => [{
|
|
4572
|
+
component: jt,
|
|
4573
|
+
...Go
|
|
4541
4574
|
}, {
|
|
4542
|
-
component:
|
|
4543
|
-
...
|
|
4575
|
+
component: fo,
|
|
4576
|
+
...Qo
|
|
4544
4577
|
}, {
|
|
4545
|
-
component:
|
|
4578
|
+
component: yo,
|
|
4546
4579
|
...Yo
|
|
4547
4580
|
}, {
|
|
4548
|
-
component:
|
|
4581
|
+
component: $o,
|
|
4549
4582
|
...Xo
|
|
4550
4583
|
}, {
|
|
4551
|
-
component:
|
|
4552
|
-
...
|
|
4584
|
+
component: Po,
|
|
4585
|
+
...or
|
|
4586
|
+
}, {
|
|
4587
|
+
component: ar,
|
|
4588
|
+
...rr
|
|
4553
4589
|
}, {
|
|
4554
|
-
component:
|
|
4590
|
+
component: os,
|
|
4555
4591
|
...lr
|
|
4556
|
-
},
|
|
4557
|
-
component:
|
|
4558
|
-
...
|
|
4592
|
+
}, {
|
|
4593
|
+
component: vr,
|
|
4594
|
+
...fr
|
|
4595
|
+
}, ...Tt.includes(R) ? [{
|
|
4596
|
+
component: nr,
|
|
4597
|
+
...Zo
|
|
4559
4598
|
}] : [], {
|
|
4560
|
-
component:
|
|
4561
|
-
...
|
|
4599
|
+
component: hr,
|
|
4600
|
+
...cr
|
|
4562
4601
|
}, {
|
|
4563
|
-
component:
|
|
4564
|
-
...
|
|
4565
|
-
}, ...
|
|
4602
|
+
component: Jo,
|
|
4603
|
+
...Mo
|
|
4604
|
+
}, ...vi()], Si = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4566
4605
|
function getAndSetVariantId() {
|
|
4567
4606
|
function setCookie(name, value, days) {
|
|
4568
4607
|
let expires = '';
|
|
@@ -4621,7 +4660,7 @@ const ui = /* @__PURE__ */ v(ii, [["render", di]]), pi = () => [{
|
|
|
4621
4660
|
}).join('');
|
|
4622
4661
|
styleEl.innerHTML = newStyleStr;
|
|
4623
4662
|
}
|
|
4624
|
-
}`,
|
|
4663
|
+
}`, ki = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4625
4664
|
if (!navigator.cookieEnabled) {
|
|
4626
4665
|
return;
|
|
4627
4666
|
}
|
|
@@ -4659,33 +4698,33 @@ const ui = /* @__PURE__ */ v(ii, [["render", di]]), pi = () => [{
|
|
|
4659
4698
|
...t,
|
|
4660
4699
|
testVariationId: t.id,
|
|
4661
4700
|
id: e == null ? void 0 : e.id
|
|
4662
|
-
})),
|
|
4701
|
+
})), Ci = ({
|
|
4663
4702
|
canTrack: e,
|
|
4664
4703
|
content: t
|
|
4665
|
-
}) => !(!(ie(t).length > 0) || !e),
|
|
4704
|
+
}) => !(!(ie(t).length > 0) || !e), Ti = (e) => e === "react" || e === "reactNative", wi = R === "angular", De = Ti(R), Ii = () => `
|
|
4666
4705
|
(function() {
|
|
4667
4706
|
if (!window.${Te}) {
|
|
4668
|
-
window.${Te} = ${
|
|
4707
|
+
window.${Te} = ${Si};
|
|
4669
4708
|
}
|
|
4670
4709
|
if (!window.${we}) {
|
|
4671
|
-
window.${we} = ${
|
|
4710
|
+
window.${we} = ${ki};
|
|
4672
4711
|
}${De ? `
|
|
4673
4712
|
var thisScriptEl = document.currentScript;
|
|
4674
4713
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4675
4714
|
})();
|
|
4676
|
-
`,
|
|
4715
|
+
`, $i = (e, t) => `
|
|
4677
4716
|
window.${Te}(
|
|
4678
|
-
"${t}",${JSON.stringify(e)}, ${De}, ${
|
|
4679
|
-
)`,
|
|
4717
|
+
"${t}",${JSON.stringify(e)}, ${De}, ${wi}
|
|
4718
|
+
)`, Ri = ({
|
|
4680
4719
|
contentId: e,
|
|
4681
4720
|
variationId: t
|
|
4682
4721
|
}) => `window.${we}(
|
|
4683
4722
|
"${t}", "${e}", ${De}
|
|
4684
4723
|
)`;
|
|
4685
|
-
function
|
|
4724
|
+
function _e(e) {
|
|
4686
4725
|
return Math.round(e * 1e3) / 1e3;
|
|
4687
4726
|
}
|
|
4688
|
-
const
|
|
4727
|
+
const Ei = (e, t, n = !0) => {
|
|
4689
4728
|
if (!(e instanceof HTMLElement))
|
|
4690
4729
|
return null;
|
|
4691
4730
|
let o = n ? e : e.parentElement;
|
|
@@ -4696,35 +4735,35 @@ const ki = (e, t, n = !0) => {
|
|
|
4696
4735
|
return o;
|
|
4697
4736
|
} while (o = o.parentElement);
|
|
4698
4737
|
return null;
|
|
4699
|
-
},
|
|
4738
|
+
}, Pi = (e) => Ei(e, (t) => {
|
|
4700
4739
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4701
4740
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4702
|
-
}),
|
|
4741
|
+
}), Xe = ({
|
|
4703
4742
|
event: e,
|
|
4704
4743
|
target: t
|
|
4705
4744
|
}) => {
|
|
4706
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4745
|
+
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
4746
|
return {
|
|
4708
4747
|
x: i,
|
|
4709
4748
|
y: s
|
|
4710
4749
|
};
|
|
4711
|
-
},
|
|
4712
|
-
const t = e.target, n = t &&
|
|
4750
|
+
}, Ai = (e) => {
|
|
4751
|
+
const t = e.target, n = t && Pi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4713
4752
|
return {
|
|
4714
4753
|
targetBuilderElement: o || void 0,
|
|
4715
4754
|
metadata: {
|
|
4716
|
-
targetOffset: t ?
|
|
4755
|
+
targetOffset: t ? Xe({
|
|
4717
4756
|
event: e,
|
|
4718
4757
|
target: t
|
|
4719
4758
|
}) : void 0,
|
|
4720
|
-
builderTargetOffset: n ?
|
|
4759
|
+
builderTargetOffset: n ? Xe({
|
|
4721
4760
|
event: e,
|
|
4722
4761
|
target: n
|
|
4723
4762
|
}) : void 0,
|
|
4724
4763
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4725
4764
|
}
|
|
4726
4765
|
};
|
|
4727
|
-
},
|
|
4766
|
+
}, Bi = ["svelte", "qwik", "vue"], Vi = () => Bi.includes(R) && (A() || Ee()), Ni = (e) => {
|
|
4728
4767
|
var i;
|
|
4729
4768
|
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
4769
|
let r = "";
|
|
@@ -4750,15 +4789,15 @@ font-weight: ${s};
|
|
|
4750
4789
|
`.trim());
|
|
4751
4790
|
}
|
|
4752
4791
|
return r;
|
|
4753
|
-
},
|
|
4792
|
+
}, Wi = ({
|
|
4754
4793
|
customFonts: e
|
|
4755
4794
|
}) => {
|
|
4756
4795
|
var t;
|
|
4757
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4758
|
-
},
|
|
4796
|
+
return ((t = e == null ? void 0 : e.map((n) => Ni(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4797
|
+
}, Di = ({
|
|
4759
4798
|
cssCode: e,
|
|
4760
4799
|
contentId: t
|
|
4761
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4800
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Oi = `
|
|
4762
4801
|
.builder-button {
|
|
4763
4802
|
all: unset;
|
|
4764
4803
|
}
|
|
@@ -4775,7 +4814,7 @@ font-weight: ${s};
|
|
|
4775
4814
|
text-align: inherit;
|
|
4776
4815
|
font-family: inherit;
|
|
4777
4816
|
}
|
|
4778
|
-
`,
|
|
4817
|
+
`, Ui = (e) => e ? "" : Oi, xi = (e) => `variant-${e}`, Fi = y({
|
|
4779
4818
|
name: "enable-editor",
|
|
4780
4819
|
components: { DynamicDiv: te },
|
|
4781
4820
|
props: [
|
|
@@ -4808,8 +4847,8 @@ font-weight: ${s};
|
|
|
4808
4847
|
httpReqsPending: {},
|
|
4809
4848
|
clicked: !1,
|
|
4810
4849
|
builderContext: be,
|
|
4811
|
-
needsElementRefDivForEditing:
|
|
4812
|
-
getWrapperClassName:
|
|
4850
|
+
needsElementRefDivForEditing: Vi,
|
|
4851
|
+
getWrapperClassName: xi
|
|
4813
4852
|
};
|
|
4814
4853
|
},
|
|
4815
4854
|
provide() {
|
|
@@ -4833,7 +4872,7 @@ font-weight: ${s};
|
|
|
4833
4872
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4834
4873
|
if (o && i === r) {
|
|
4835
4874
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
4836
|
-
|
|
4875
|
+
Ue({
|
|
4837
4876
|
apiHost: this.apiHost,
|
|
4838
4877
|
type: "impression",
|
|
4839
4878
|
canTrack: !0,
|
|
@@ -4944,7 +4983,7 @@ font-weight: ${s};
|
|
|
4944
4983
|
this.builderContextSignal.content = n;
|
|
4945
4984
|
},
|
|
4946
4985
|
processMessage(e) {
|
|
4947
|
-
return
|
|
4986
|
+
return dt({
|
|
4948
4987
|
model: this.model,
|
|
4949
4988
|
trustedHosts: this.trustedHosts,
|
|
4950
4989
|
callbacks: {
|
|
@@ -4958,7 +4997,7 @@ font-weight: ${s};
|
|
|
4958
4997
|
});
|
|
4959
4998
|
},
|
|
4960
4999
|
animation: (t) => {
|
|
4961
|
-
|
|
5000
|
+
gt(t);
|
|
4962
5001
|
},
|
|
4963
5002
|
contentUpdate: (t, n) => {
|
|
4964
5003
|
this.mergeNewContent(t, n);
|
|
@@ -4973,14 +5012,14 @@ font-weight: ${s};
|
|
|
4973
5012
|
var t, n;
|
|
4974
5013
|
if (this.builderContextSignal.content) {
|
|
4975
5014
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4976
|
-
|
|
5015
|
+
Ue({
|
|
4977
5016
|
apiHost: this.apiHost,
|
|
4978
5017
|
type: "click",
|
|
4979
5018
|
canTrack: J(this.canTrack),
|
|
4980
5019
|
contentId: r,
|
|
4981
5020
|
apiKey: this.apiKey,
|
|
4982
5021
|
variationId: o !== r ? o : void 0,
|
|
4983
|
-
...
|
|
5022
|
+
...Ai(e),
|
|
4984
5023
|
unique: !this.clicked
|
|
4985
5024
|
});
|
|
4986
5025
|
}
|
|
@@ -5018,7 +5057,7 @@ font-weight: ${s};
|
|
|
5018
5057
|
url: l,
|
|
5019
5058
|
method: "GET"
|
|
5020
5059
|
};
|
|
5021
|
-
|
|
5060
|
+
ot(JSON.stringify(a));
|
|
5022
5061
|
const u = {
|
|
5023
5062
|
method: a.method,
|
|
5024
5063
|
headers: a.headers,
|
|
@@ -5056,7 +5095,7 @@ font-weight: ${s};
|
|
|
5056
5095
|
);
|
|
5057
5096
|
},
|
|
5058
5097
|
elementRef_onIniteditingbldr(e) {
|
|
5059
|
-
window.addEventListener("message", this.processMessage),
|
|
5098
|
+
window.addEventListener("message", this.processMessage), ct({
|
|
5060
5099
|
...this.locale ? {
|
|
5061
5100
|
locale: this.locale
|
|
5062
5101
|
} : {},
|
|
@@ -5076,7 +5115,7 @@ font-weight: ${s};
|
|
|
5076
5115
|
).forEach((t) => {
|
|
5077
5116
|
var n, o;
|
|
5078
5117
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5079
|
-
const r =
|
|
5118
|
+
const r = cn(t);
|
|
5080
5119
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5081
5120
|
}
|
|
5082
5121
|
}), window.addEventListener(
|
|
@@ -5104,9 +5143,9 @@ font-weight: ${s};
|
|
|
5104
5143
|
}
|
|
5105
5144
|
}
|
|
5106
5145
|
});
|
|
5107
|
-
function
|
|
5146
|
+
function Li(e, t, n, o, r, i) {
|
|
5108
5147
|
var s, l, a;
|
|
5109
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5148
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(_(e.ContentWrapper), I({
|
|
5110
5149
|
key: 0,
|
|
5111
5150
|
ref: "elementRef",
|
|
5112
5151
|
onClick: (u) => e.onClick(u),
|
|
@@ -5125,26 +5164,26 @@ function Ni(e, t, n, o, r, i) {
|
|
|
5125
5164
|
_: 3
|
|
5126
5165
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5127
5166
|
}
|
|
5128
|
-
const
|
|
5167
|
+
const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = y({
|
|
5129
5168
|
name: "content-styles",
|
|
5130
5169
|
components: { InlinedStyles: ue },
|
|
5131
5170
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5132
5171
|
data() {
|
|
5133
5172
|
return {
|
|
5134
5173
|
injectedStyles: `
|
|
5135
|
-
${
|
|
5174
|
+
${Di({
|
|
5136
5175
|
cssCode: this.cssCode,
|
|
5137
5176
|
contentId: this.contentId
|
|
5138
5177
|
})}
|
|
5139
|
-
${
|
|
5178
|
+
${Wi({
|
|
5140
5179
|
customFonts: this.customFonts
|
|
5141
5180
|
})}
|
|
5142
|
-
${
|
|
5181
|
+
${Ui(this.isNestedRender)}
|
|
5143
5182
|
`.trim()
|
|
5144
5183
|
};
|
|
5145
5184
|
}
|
|
5146
5185
|
});
|
|
5147
|
-
function
|
|
5186
|
+
function zi(e, t, n, o, r, i) {
|
|
5148
5187
|
const s = k("InlinedStyles");
|
|
5149
5188
|
return d(), S(s, {
|
|
5150
5189
|
id: "builderio-content",
|
|
@@ -5152,7 +5191,7 @@ function Oi(e, t, n, o, r, i) {
|
|
|
5152
5191
|
nonce: e.nonce
|
|
5153
5192
|
}, null, 8, ["styles", "nonce"]);
|
|
5154
5193
|
}
|
|
5155
|
-
const
|
|
5194
|
+
const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
5156
5195
|
content: e,
|
|
5157
5196
|
data: t,
|
|
5158
5197
|
locale: n
|
|
@@ -5169,7 +5208,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5169
5208
|
locale: n
|
|
5170
5209
|
} : {}
|
|
5171
5210
|
};
|
|
5172
|
-
},
|
|
5211
|
+
}, Ki = ({
|
|
5173
5212
|
content: e,
|
|
5174
5213
|
data: t
|
|
5175
5214
|
}) => e ? {
|
|
@@ -5179,12 +5218,12 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5179
5218
|
...t
|
|
5180
5219
|
},
|
|
5181
5220
|
meta: e == null ? void 0 : e.meta
|
|
5182
|
-
} : void 0,
|
|
5221
|
+
} : void 0, Ji = Rt, Gi = y({
|
|
5183
5222
|
name: "content-component",
|
|
5184
5223
|
components: {
|
|
5185
|
-
EnableEditor:
|
|
5224
|
+
EnableEditor: Hi,
|
|
5186
5225
|
InlinedScript: We,
|
|
5187
|
-
ContentStyles:
|
|
5226
|
+
ContentStyles: ji,
|
|
5188
5227
|
Blocks: j,
|
|
5189
5228
|
DynamicDiv: te
|
|
5190
5229
|
},
|
|
@@ -5215,32 +5254,32 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5215
5254
|
data() {
|
|
5216
5255
|
var e, t;
|
|
5217
5256
|
return {
|
|
5218
|
-
scriptStr:
|
|
5257
|
+
scriptStr: Ri({
|
|
5219
5258
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5220
5259
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5221
5260
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5222
5261
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5223
5262
|
}),
|
|
5224
5263
|
registeredComponents: [
|
|
5225
|
-
...
|
|
5264
|
+
...Ye(),
|
|
5226
5265
|
...this.customComponents || []
|
|
5227
5266
|
].reduce(
|
|
5228
5267
|
(n, { component: o, ...r }) => ({
|
|
5229
5268
|
...n,
|
|
5230
5269
|
[r.name]: {
|
|
5231
|
-
component:
|
|
5270
|
+
component: Ji(o),
|
|
5232
5271
|
...le(r)
|
|
5233
5272
|
}
|
|
5234
5273
|
}),
|
|
5235
5274
|
{}
|
|
5236
5275
|
),
|
|
5237
5276
|
builderContextSignal: {
|
|
5238
|
-
content:
|
|
5277
|
+
content: Ki({
|
|
5239
5278
|
content: this.content,
|
|
5240
5279
|
data: this.data
|
|
5241
5280
|
}),
|
|
5242
5281
|
localState: void 0,
|
|
5243
|
-
rootState:
|
|
5282
|
+
rootState: qi({
|
|
5244
5283
|
content: this.content,
|
|
5245
5284
|
data: this.data,
|
|
5246
5285
|
locale: this.locale
|
|
@@ -5251,7 +5290,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5251
5290
|
apiKey: this.apiKey,
|
|
5252
5291
|
apiVersion: this.apiVersion,
|
|
5253
5292
|
componentInfos: [
|
|
5254
|
-
...
|
|
5293
|
+
...Ye(),
|
|
5255
5294
|
...this.customComponents || []
|
|
5256
5295
|
].reduce(
|
|
5257
5296
|
(n, { component: o, ...r }) => ({
|
|
@@ -5272,7 +5311,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5272
5311
|
provide() {
|
|
5273
5312
|
const e = this;
|
|
5274
5313
|
return {
|
|
5275
|
-
[
|
|
5314
|
+
[rt.key]: {
|
|
5276
5315
|
registeredComponents: e.registeredComponents
|
|
5277
5316
|
}
|
|
5278
5317
|
};
|
|
@@ -5316,7 +5355,7 @@ const xi = /* @__PURE__ */ v(Di, [["render", Oi]]), Ui = ({
|
|
|
5316
5355
|
}
|
|
5317
5356
|
}
|
|
5318
5357
|
});
|
|
5319
|
-
function
|
|
5358
|
+
function Qi(e, t, n, o, r, i) {
|
|
5320
5359
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5321
5360
|
return d(), S(u, I({
|
|
5322
5361
|
apiHost: e.apiHost,
|
|
@@ -5365,12 +5404,12 @@ function Mi(e, t, n, o, r, i) {
|
|
|
5365
5404
|
_: 1
|
|
5366
5405
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5367
5406
|
}
|
|
5368
|
-
const
|
|
5407
|
+
const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
5369
5408
|
name: "content-variants",
|
|
5370
5409
|
components: {
|
|
5371
5410
|
InlinedScript: We,
|
|
5372
5411
|
InlinedStyles: ue,
|
|
5373
|
-
ContentComponent:
|
|
5412
|
+
ContentComponent: Yi
|
|
5374
5413
|
},
|
|
5375
5414
|
props: [
|
|
5376
5415
|
"canTrack",
|
|
@@ -5396,15 +5435,15 @@ const zi = /* @__PURE__ */ v(Hi, [["render", Mi]]), ji = y({
|
|
|
5396
5435
|
],
|
|
5397
5436
|
data() {
|
|
5398
5437
|
return {
|
|
5399
|
-
shouldRenderVariants:
|
|
5438
|
+
shouldRenderVariants: Ci({
|
|
5400
5439
|
canTrack: J(this.canTrack),
|
|
5401
5440
|
content: this.content
|
|
5402
5441
|
}),
|
|
5403
|
-
shouldEmitPersonalizationFns:
|
|
5404
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5405
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5442
|
+
shouldEmitPersonalizationFns: xo(this.content),
|
|
5443
|
+
SDKS_SUPPORTING_PERSONALIZATION: Tt,
|
|
5444
|
+
getInitPersonalizationVariantsFnsScriptString: Fo,
|
|
5406
5445
|
TARGET: R,
|
|
5407
|
-
getInitVariantsFnsScriptString:
|
|
5446
|
+
getInitVariantsFnsScriptString: Ii,
|
|
5408
5447
|
getVariants: ie
|
|
5409
5448
|
};
|
|
5410
5449
|
},
|
|
@@ -5413,7 +5452,7 @@ const zi = /* @__PURE__ */ v(Hi, [["render", Mi]]), ji = y({
|
|
|
5413
5452
|
computed: {
|
|
5414
5453
|
updateCookieAndStylesScriptStr() {
|
|
5415
5454
|
var e;
|
|
5416
|
-
return
|
|
5455
|
+
return $i(
|
|
5417
5456
|
ie(this.content).map((t) => ({
|
|
5418
5457
|
id: t.testVariationId,
|
|
5419
5458
|
testRatio: t.testRatio
|
|
@@ -5429,14 +5468,14 @@ const zi = /* @__PURE__ */ v(Hi, [["render", Mi]]), ji = y({
|
|
|
5429
5468
|
return this.shouldRenderVariants ? {
|
|
5430
5469
|
...this.content,
|
|
5431
5470
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5432
|
-
} :
|
|
5471
|
+
} : vn({
|
|
5433
5472
|
item: this.content,
|
|
5434
5473
|
canTrack: J(this.canTrack)
|
|
5435
5474
|
});
|
|
5436
5475
|
}
|
|
5437
5476
|
}
|
|
5438
5477
|
});
|
|
5439
|
-
function
|
|
5478
|
+
function Xi(e, t, n, o, r, i) {
|
|
5440
5479
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5441
5480
|
return d(), h(w, null, [
|
|
5442
5481
|
e.shouldEmitPersonalizationFns ? (d(), h(w, { key: 0 }, [
|
|
@@ -5463,7 +5502,7 @@ function qi(e, t, n, o, r, i) {
|
|
|
5463
5502
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5464
5503
|
nonce: e.nonce || ""
|
|
5465
5504
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5466
|
-
(d(!0), h(w, null,
|
|
5505
|
+
(d(!0), h(w, null, x(e.getVariants(e.content), (u, p) => (d(), S(a, I({
|
|
5467
5506
|
key: u.testVariationId,
|
|
5468
5507
|
apiHost: e.apiHost,
|
|
5469
5508
|
isNestedRender: e.isNestedRender,
|
|
@@ -5517,7 +5556,7 @@ function qi(e, t, n, o, r, i) {
|
|
|
5517
5556
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5518
5557
|
], 64);
|
|
5519
5558
|
}
|
|
5520
|
-
const
|
|
5559
|
+
const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
5521
5560
|
builderContextValue: e,
|
|
5522
5561
|
symbol: t
|
|
5523
5562
|
}) => {
|
|
@@ -5535,9 +5574,9 @@ const Ki = /* @__PURE__ */ v(ji, [["render", qi]]), Ji = async ({
|
|
|
5535
5574
|
}).catch((n) => {
|
|
5536
5575
|
F.error("Could not fetch symbol content: ", n);
|
|
5537
5576
|
});
|
|
5538
|
-
},
|
|
5577
|
+
}, ts = y({
|
|
5539
5578
|
name: "builder-symbol",
|
|
5540
|
-
components: { ContentVariants:
|
|
5579
|
+
components: { ContentVariants: Zi, DynamicDiv: te },
|
|
5541
5580
|
props: [
|
|
5542
5581
|
"symbol",
|
|
5543
5582
|
"builderComponents",
|
|
@@ -5594,7 +5633,7 @@ const Ki = /* @__PURE__ */ v(ji, [["render", qi]]), Ji = async ({
|
|
|
5594
5633
|
methods: {
|
|
5595
5634
|
setContent() {
|
|
5596
5635
|
var e;
|
|
5597
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5636
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || es({
|
|
5598
5637
|
symbol: this.symbol,
|
|
5599
5638
|
builderContextValue: this.builderContext
|
|
5600
5639
|
}).then((t) => {
|
|
@@ -5604,10 +5643,10 @@ const Ki = /* @__PURE__ */ v(ji, [["render", qi]]), Ji = async ({
|
|
|
5604
5643
|
}
|
|
5605
5644
|
}
|
|
5606
5645
|
});
|
|
5607
|
-
function
|
|
5646
|
+
function ns(e, t, n, o, r, i) {
|
|
5608
5647
|
var l, a, u, p, b, c, m;
|
|
5609
5648
|
const s = k("ContentVariants");
|
|
5610
|
-
return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5649
|
+
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
5650
|
$(s, {
|
|
5612
5651
|
nonce: e.builderContext.nonce,
|
|
5613
5652
|
isNestedRender: !0,
|
|
@@ -5632,44 +5671,44 @@ function Qi(e, t, n, o, r, i) {
|
|
|
5632
5671
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5633
5672
|
], 16);
|
|
5634
5673
|
}
|
|
5635
|
-
const
|
|
5674
|
+
const os = /* @__PURE__ */ v(ts, [["render", ns]]);
|
|
5636
5675
|
export {
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5676
|
+
Dn as A,
|
|
5677
|
+
kt as B,
|
|
5678
|
+
fo as C,
|
|
5640
5679
|
Be as D,
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5680
|
+
ss as E,
|
|
5681
|
+
yo as F,
|
|
5682
|
+
bs as G,
|
|
5683
|
+
$o as I,
|
|
5684
|
+
Po as S,
|
|
5685
|
+
vr as T,
|
|
5686
|
+
yi as V,
|
|
5648
5687
|
v as _,
|
|
5649
5688
|
M as a,
|
|
5650
5689
|
be as b,
|
|
5651
5690
|
ue as c,
|
|
5652
|
-
|
|
5691
|
+
ms as d,
|
|
5653
5692
|
ee as e,
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5693
|
+
uo as f,
|
|
5694
|
+
fs as g,
|
|
5695
|
+
hs as h,
|
|
5696
|
+
gs as i,
|
|
5658
5697
|
Ve as j,
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5698
|
+
ln as k,
|
|
5699
|
+
jt as l,
|
|
5700
|
+
os as m,
|
|
5662
5701
|
j as n,
|
|
5663
|
-
|
|
5702
|
+
Zi as o,
|
|
5664
5703
|
Ee as p,
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5704
|
+
cn as q,
|
|
5705
|
+
as as r,
|
|
5706
|
+
us as s,
|
|
5707
|
+
ls as t,
|
|
5708
|
+
cs as u,
|
|
5709
|
+
at as v,
|
|
5710
|
+
Ji as w,
|
|
5711
|
+
ds as x,
|
|
5712
|
+
ps as y,
|
|
5713
|
+
Wn as z
|
|
5675
5714
|
};
|