@builder.io/sdk-vue 5.2.11 → 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-MAyQwJUp.cjs → awaiter-Ja_QJKsd.cjs} +1 -1
- package/lib/browser/{awaiter-quz2SFrg.js → awaiter-PAIWzl07.js} +1 -1
- package/lib/browser/{block-wrapper-vBu_Ygm8.cjs → block-wrapper-CeRmNoq0.cjs} +1 -1
- package/lib/browser/{block-wrapper-SCckT0M5.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-HWBSC66Y.cjs → component-ref-MNrE4dOw.cjs} +1 -1
- package/lib/browser/{component-ref-owc3e0h8.js → component-ref-RNH8q_Ct.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-odFddSWh.cjs → get-block-properties-C1S41sZd.cjs} +1 -1
- package/lib/browser/{get-block-properties-Hny6jqGG.js → get-block-properties-aY0jarAY.js} +1 -1
- package/lib/browser/helpers/css.d.ts +2 -0
- 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-7bXAC1Q8.js → index-Q7tlS2c1.js} +768 -716
- package/lib/browser/{index-uDRmkrr4.cjs → index-ohjTQ4ru.cjs} +53 -35
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -4
- package/lib/browser/{live-edit-x4eHrcJh.js → live-edit-zIE57v1M.js} +1 -1
- package/lib/browser/{live-edit-AUagAEej.cjs → live-edit-zUS6r7uc.cjs} +1 -1
- package/lib/browser/{repeated-block-ZGXPYgA8.cjs → repeated-block-XFgvkCPh.cjs} +1 -1
- package/lib/browser/{repeated-block-uVi8A50N.js → repeated-block-qKqkpCg_.js} +2 -2
- package/lib/browser/{style-wrapper-usFESjt5.js → style-wrapper-nYNv2BeU.js} +72 -66
- package/lib/browser/style-wrapper-zgP9Exwf.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-RSfMls5f.js → awaiter-Mugw26Wi.js} +1 -1
- package/lib/edge/{awaiter-zow2zgzw.cjs → awaiter-N8Gr0F79.cjs} +1 -1
- package/lib/{node/block-wrapper-PUFgSKq_.js → edge/block-wrapper-0c3wPm9h.js} +3 -3
- package/lib/edge/{block-wrapper-4qKpWsP8.cjs → 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-1iPK0xOE.js → component-ref-R_Q4TOb7.js} +4 -4
- package/lib/edge/{component-ref-WdOIbmOU.cjs → component-ref-e3xYDpNG.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-bMVCvUX0.js → get-block-properties-TtYKEgAO.js} +1 -1
- package/lib/edge/{get-block-properties-2E03ld67.cjs → get-block-properties-d0E5ZkZj.cjs} +1 -1
- package/lib/edge/helpers/css.d.ts +2 -0
- 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-Bgm0yCrN.js → index-5jMXhHfs.js} +1310 -1258
- package/lib/edge/{index-LWGIJNVx.cjs → index-_dQKp9LH.cjs} +61 -43
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/edge/{live-edit-tegdYGJO.js → live-edit-7Dc7Q2yS.js} +1 -1
- package/lib/{node/live-edit-xPik2aUh.cjs → edge/live-edit-oGxYZa_V.cjs} +1 -1
- package/lib/edge/{repeated-block-yZJM5I60.js → repeated-block-GESRSjst.js} +2 -2
- package/lib/edge/{repeated-block--MhEsXmR.cjs → repeated-block-K9b4UbOC.cjs} +1 -1
- package/lib/edge/style-wrapper-dmNB8lmp.cjs +1 -0
- package/lib/edge/{style-wrapper-i8R7NpdY.js → style-wrapper-rh9YxCiw.js} +72 -66
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-Vwjft2v-.cjs → awaiter-0EtumND-.cjs} +1 -1
- package/lib/node/{awaiter-o3ynOQKr.js → awaiter-9zCUlZB9.js} +1 -1
- package/lib/node/{block-wrapper-KX1-Y2Oq.cjs → block-wrapper-c0gZ4j4I.cjs} +1 -1
- package/lib/{edge/block-wrapper-GT2d4luN.js → node/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-HmJKie9z.js → component-ref-PPsTcld8.js} +5 -5
- package/lib/node/{component-ref-o3vjSyAQ.cjs → component-ref-lWzA5guw.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-DGfMhs4M.js → get-block-properties-AwCMGMPi.js} +2 -2
- package/lib/node/{get-block-properties-2yGkQVh7.cjs → get-block-properties-DKvJS4pV.cjs} +1 -1
- package/lib/node/helpers/css.d.ts +2 -0
- 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-JQgNoVXs.js → index-DWznrY3w.js} +675 -623
- package/lib/node/{index-7xT7wMXt.cjs → index-funKFPCj.cjs} +53 -35
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -6
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-oLYhcuYs.cjs → node/live-edit-Bw84zZeV.cjs} +1 -1
- package/lib/node/{live-edit-hxNZMHld.js → live-edit-GVvl4apL.js} +1 -1
- package/lib/node/{repeated-block-PvGSbsHD.js → repeated-block-SP8WaEQp.js} +2 -2
- package/lib/node/{repeated-block-LHiXlO3e.cjs → repeated-block-ux8wkluB.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-aeKfQiEQ.cjs → should-force-browser-runtime-in-node-5MPjjLJt.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-ooRgTwqs.js → should-force-browser-runtime-in-node-nOG6zu2k.js} +1 -1
- package/lib/node/{style-wrapper-U-7exIwN.js → style-wrapper-5BoLwggo.js} +70 -64
- package/lib/node/style-wrapper-aKufn4zn.cjs +1 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/style-wrapper-C_c9B5_Y.cjs +0 -1
- package/lib/edge/style-wrapper-8JiLG-FF.cjs +0 -1
- package/lib/node/style-wrapper-3l8xaVr4.cjs +0 -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 Ot = 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,9 +38,9 @@ function xt(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
43
|
+
default: Re
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), M = () => {
|
|
45
45
|
switch (R) {
|
|
46
46
|
case "react":
|
|
@@ -54,9 +54,9 @@ const $e = /* @__PURE__ */ v(Ot, [["render", xt]]), Zi = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Mt = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Re },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -83,7 +83,7 @@ const $e = /* @__PURE__ */ v(Ot, [["render", xt]]), Zi = /* @__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 Ft(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 Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), fe = {
|
|
|
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 Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), fe = {
|
|
|
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,13 +206,13 @@ const Qt = (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];
|
|
213
213
|
return n;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
216
216
|
if (e == null || typeof e != "object") {
|
|
217
217
|
t(e, (i) => {
|
|
218
218
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -222,51 +222,51 @@ function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
222
222
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
223
223
|
t(i, (a) => {
|
|
224
224
|
e[s] = a;
|
|
225
|
-
}),
|
|
225
|
+
}), ae(i, t, e, s, r);
|
|
226
226
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
227
227
|
t(s, (a) => {
|
|
228
228
|
e[i] = a;
|
|
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
|
-
return
|
|
240
|
-
if (
|
|
239
|
+
return ae(e, (n) => {
|
|
240
|
+
if (st(n)) {
|
|
241
241
|
t = !0;
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
}), t;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
248
|
-
|
|
246
|
+
function nn(e, t) {
|
|
247
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
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
|
-
function
|
|
255
|
+
function ge(e) {
|
|
256
256
|
if (e === null || typeof e != "object")
|
|
257
257
|
return e;
|
|
258
258
|
if (Array.isArray(e))
|
|
259
|
-
return e.map((n) =>
|
|
259
|
+
return e.map((n) => ge(n));
|
|
260
260
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
261
261
|
return e;
|
|
262
262
|
const t = {};
|
|
263
263
|
for (const n in e)
|
|
264
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
264
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
const t =
|
|
267
|
+
const rn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), sn = (e) => {
|
|
268
|
+
if (rn) {
|
|
269
|
+
const t = Ie(e);
|
|
270
270
|
return {
|
|
271
271
|
...t,
|
|
272
272
|
properties: {
|
|
@@ -277,7 +277,7 @@ const en = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), tn = (e) =
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
} else {
|
|
280
|
-
const t =
|
|
280
|
+
const t = ge(en(e, "children", "meta"));
|
|
281
281
|
return {
|
|
282
282
|
...t,
|
|
283
283
|
properties: {
|
|
@@ -290,7 +290,7 @@ const en = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), tn = (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 en = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), tn = (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 en = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), tn = (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,31 +320,31 @@ function on({
|
|
|
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
|
-
function
|
|
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
|
-
data:
|
|
338
|
-
}),
|
|
337
|
+
data: le(e)
|
|
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
|
-
function
|
|
343
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
342
|
+
function le(e) {
|
|
343
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? dn(n) : n));
|
|
344
344
|
}
|
|
345
345
|
const xe = {};
|
|
346
|
-
function
|
|
347
|
-
e === "plugin" && (t =
|
|
346
|
+
function as(e, t) {
|
|
347
|
+
e === "plugin" && (t = le(t));
|
|
348
348
|
let n = xe[e];
|
|
349
349
|
if (n || (n = xe[e] = []), n.push(t), E()) {
|
|
350
350
|
const o = {
|
|
@@ -361,7 +361,7 @@ function _i(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));
|
|
@@ -371,50 +371,50 @@ function es(e) {
|
|
|
371
371
|
}, "*");
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const
|
|
375
|
-
function
|
|
374
|
+
const Fe = {};
|
|
375
|
+
function cs(e) {
|
|
376
376
|
if (E()) {
|
|
377
|
-
Object.assign(
|
|
377
|
+
Object.assign(Fe, e);
|
|
378
378
|
const t = {
|
|
379
379
|
type: "builder.settingsChange",
|
|
380
|
-
data:
|
|
380
|
+
data: Fe
|
|
381
381
|
};
|
|
382
382
|
parent.postMessage(t, "*");
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
const
|
|
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
|
-
if (o.startsWith(
|
|
391
|
-
const r = o.replace(
|
|
390
|
+
if (o.startsWith(Le)) {
|
|
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
|
-
let
|
|
411
|
-
const
|
|
410
|
+
let He = !1;
|
|
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 it = (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 it = (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 it = (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 it = (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 it = (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
|
-
}) =>
|
|
539
|
-
name:
|
|
538
|
+
}) => Ot({
|
|
539
|
+
name: Pe(e),
|
|
540
540
|
canTrack: !0
|
|
541
|
-
}),
|
|
541
|
+
}), bn = ({
|
|
542
542
|
contentId: e
|
|
543
|
-
}) =>
|
|
544
|
-
name:
|
|
543
|
+
}) => $e({
|
|
544
|
+
name: Pe(e),
|
|
545
545
|
canTrack: !0
|
|
546
|
-
}),
|
|
546
|
+
}), gn = ({
|
|
547
547
|
contentId: e,
|
|
548
548
|
value: t
|
|
549
|
-
}) =>
|
|
550
|
-
name:
|
|
549
|
+
}) => nt({
|
|
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 it = (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 it = (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 it = (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 it = (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,81 +628,102 @@ const it = (e) => {
|
|
|
628
628
|
...r
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
|
-
const
|
|
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
|
-
let
|
|
668
|
-
E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
669
|
-
const
|
|
670
|
-
|
|
688
|
+
let 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) => {
|
|
691
|
+
ce.setUserAttributes(e);
|
|
671
692
|
}, J = (e) => {
|
|
672
|
-
const t =
|
|
673
|
-
return
|
|
693
|
+
const t = se(e) ? e : !0;
|
|
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
|
|
686
|
-
function
|
|
706
|
+
const $n = In();
|
|
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);
|
|
689
710
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
690
711
|
...o,
|
|
691
|
-
...
|
|
712
|
+
...ve(i, s, n)
|
|
692
713
|
} : {
|
|
693
714
|
...o,
|
|
694
715
|
[s]: i
|
|
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 Sn(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 kn = "v3", ze = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Pe = (
|
|
|
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,78 +762,78 @@ const kn = "v3", ze = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Pe = (
|
|
|
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 &&
|
|
745
|
-
const W =
|
|
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) {
|
|
766
|
+
const W = ve({
|
|
746
767
|
sort: g
|
|
747
768
|
});
|
|
748
769
|
for (const L in W)
|
|
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
|
-
const Q =
|
|
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
|
-
},
|
|
785
|
-
async function
|
|
805
|
+
}, Vn = (e) => "results" in e;
|
|
806
|
+
async function Be(e) {
|
|
786
807
|
var o;
|
|
787
808
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
788
809
|
t && (e.locale = t, e.userAttributes = {
|
|
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 =
|
|
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 $n = async (e) => {
|
|
|
822
843
|
}
|
|
823
844
|
return t.results;
|
|
824
845
|
};
|
|
825
|
-
async function
|
|
826
|
-
const t =
|
|
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,15 +865,15 @@ const rs = 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,
|
|
851
872
|
model: n.model,
|
|
852
|
-
content: await
|
|
873
|
+
content: await Be(n)
|
|
853
874
|
};
|
|
854
|
-
},
|
|
855
|
-
function
|
|
875
|
+
}, Ve = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
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 Pn(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 ${
|
|
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,52 +961,64 @@ function Vn(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
|
-
n.style.transition = `all ${e.duration}s ${
|
|
967
|
+
n.style.transition = `all ${e.duration}s ${Ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
947
968
|
}), document.addEventListener("scroll", s, {
|
|
948
969
|
capture: !0,
|
|
949
970
|
passive: !0
|
|
950
971
|
}), i();
|
|
951
972
|
});
|
|
952
973
|
}
|
|
953
|
-
const
|
|
974
|
+
const ne = (e, t) => {
|
|
975
|
+
const n = (e == null ? void 0 : e.objectPosition) || t;
|
|
976
|
+
return n ? {
|
|
977
|
+
...e,
|
|
978
|
+
"--builder-image-position": n
|
|
979
|
+
} : e;
|
|
980
|
+
}, ms = (e, t) => t ? {
|
|
981
|
+
...e,
|
|
982
|
+
large: ne(e == null ? void 0 : e.large, "initial"),
|
|
983
|
+
medium: ne(e == null ? void 0 : e.medium),
|
|
984
|
+
small: ne(e == null ? void 0 : e.small),
|
|
985
|
+
xsmall: ne(e == null ? void 0 : e.xsmall)
|
|
986
|
+
} : e, yt = (e) => Object.entries(e).map(([n, o]) => {
|
|
954
987
|
if (typeof o == "string")
|
|
955
|
-
return `${
|
|
956
|
-
}).filter(
|
|
957
|
-
`),
|
|
988
|
+
return `${Ve(n)}: ${o};`;
|
|
989
|
+
}).filter(se), Ln = (e) => yt(e).join(`
|
|
990
|
+
`), hs = ({
|
|
958
991
|
mediaQuery: e,
|
|
959
992
|
className: t,
|
|
960
993
|
styles: n
|
|
961
994
|
}) => {
|
|
962
995
|
const o = `.${t} {
|
|
963
|
-
${
|
|
996
|
+
${Ln(n)}
|
|
964
997
|
}`;
|
|
965
998
|
return e ? `${e} {
|
|
966
999
|
${o}
|
|
967
1000
|
}` : o;
|
|
968
1001
|
};
|
|
969
|
-
function
|
|
1002
|
+
function Hn({
|
|
970
1003
|
style: e
|
|
971
1004
|
}) {
|
|
972
1005
|
return e;
|
|
973
1006
|
}
|
|
974
|
-
const
|
|
1007
|
+
const fs = ({
|
|
975
1008
|
block: e,
|
|
976
1009
|
context: t
|
|
977
|
-
}) =>
|
|
1010
|
+
}) => vt(Hn({
|
|
978
1011
|
style: e.style || {},
|
|
979
1012
|
context: t,
|
|
980
1013
|
block: e
|
|
981
1014
|
}));
|
|
982
|
-
function
|
|
1015
|
+
function vt(e) {
|
|
983
1016
|
switch (R) {
|
|
984
1017
|
case "svelte":
|
|
985
1018
|
case "vue":
|
|
986
1019
|
case "solid":
|
|
987
1020
|
case "angular":
|
|
988
|
-
return
|
|
1021
|
+
return yt(e).join(" ");
|
|
989
1022
|
case "qwik":
|
|
990
1023
|
case "reactNative":
|
|
991
1024
|
case "react":
|
|
@@ -993,7 +1026,7 @@ function ft(e) {
|
|
|
993
1026
|
return e;
|
|
994
1027
|
}
|
|
995
1028
|
}
|
|
996
|
-
const
|
|
1029
|
+
const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Mn = ({
|
|
997
1030
|
block: e,
|
|
998
1031
|
registeredComponents: t,
|
|
999
1032
|
model: n
|
|
@@ -1003,14 +1036,14 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1003
1036
|
if (!o)
|
|
1004
1037
|
return null;
|
|
1005
1038
|
const r = t[o];
|
|
1006
|
-
if (!r ||
|
|
1039
|
+
if (!r || St(r, n)) {
|
|
1007
1040
|
console.warn(`
|
|
1008
1041
|
Could not find a registered component named "${o}".
|
|
1009
1042
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1010
1043
|
return;
|
|
1011
1044
|
} else
|
|
1012
1045
|
return r;
|
|
1013
|
-
},
|
|
1046
|
+
}, zn = ({
|
|
1014
1047
|
block: e,
|
|
1015
1048
|
context: t
|
|
1016
1049
|
}) => {
|
|
@@ -1043,59 +1076,59 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1043
1076
|
},
|
|
1044
1077
|
block: o
|
|
1045
1078
|
}));
|
|
1046
|
-
},
|
|
1079
|
+
}, jn = (e, t) => {
|
|
1047
1080
|
var n;
|
|
1048
1081
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1049
1082
|
builderLinkComponent: t
|
|
1050
1083
|
} : {};
|
|
1051
|
-
},
|
|
1084
|
+
}, qn = (e, t, n) => {
|
|
1052
1085
|
var o;
|
|
1053
1086
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1054
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1087
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !St(s, n)))
|
|
1055
1088
|
} : {};
|
|
1056
|
-
},
|
|
1089
|
+
}, Kn = (e, t) => {
|
|
1057
1090
|
var n;
|
|
1058
1091
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1059
1092
|
builderBlock: t
|
|
1060
1093
|
} : {};
|
|
1061
|
-
},
|
|
1094
|
+
}, Jn = (e, t) => {
|
|
1062
1095
|
var n;
|
|
1063
1096
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1064
1097
|
builderContext: t
|
|
1065
1098
|
} : {};
|
|
1066
|
-
},
|
|
1099
|
+
}, Gn = (e) => e.toString(), Qn = () => Promise.resolve().then(() => co).then((e) => e.default).catch((e) => {
|
|
1067
1100
|
throw console.error(
|
|
1068
1101
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1069
1102
|
e
|
|
1070
1103
|
), e;
|
|
1071
|
-
}),
|
|
1104
|
+
}), Yn = () => import("./block-wrapper-s8zLAxlL.js").then((e) => e.default).catch((e) => {
|
|
1072
1105
|
throw console.error(
|
|
1073
1106
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1074
1107
|
e
|
|
1075
1108
|
), e;
|
|
1076
|
-
}),
|
|
1109
|
+
}), _n = () => import("./component-ref-PPsTcld8.js").then((e) => e.default).catch((e) => {
|
|
1077
1110
|
throw console.error(
|
|
1078
1111
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1079
1112
|
e
|
|
1080
1113
|
), e;
|
|
1081
|
-
}),
|
|
1114
|
+
}), Xn = () => import("./repeated-block-SP8WaEQp.js").then((e) => e.default).catch((e) => {
|
|
1082
1115
|
throw console.error(
|
|
1083
1116
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1084
1117
|
e
|
|
1085
1118
|
), e;
|
|
1086
|
-
}),
|
|
1119
|
+
}), Zn = () => import("./style-wrapper-5BoLwggo.js").then((e) => e.default).catch((e) => {
|
|
1087
1120
|
throw console.error(
|
|
1088
1121
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1089
1122
|
e
|
|
1090
1123
|
), e;
|
|
1091
|
-
}),
|
|
1124
|
+
}), eo = y({
|
|
1092
1125
|
name: "block",
|
|
1093
1126
|
components: {
|
|
1094
|
-
StyleWrapper: Y(
|
|
1095
|
-
RepeatedBlock: Y(
|
|
1096
|
-
ComponentRef: Y(
|
|
1097
|
-
BlockWrapper: Y(
|
|
1098
|
-
DynamicDiv: Y(
|
|
1127
|
+
StyleWrapper: Y(Zn),
|
|
1128
|
+
RepeatedBlock: Y(Xn),
|
|
1129
|
+
ComponentRef: Y(_n),
|
|
1130
|
+
BlockWrapper: Y(Yn),
|
|
1131
|
+
DynamicDiv: Y(Qn)
|
|
1099
1132
|
},
|
|
1100
1133
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1101
1134
|
data() {
|
|
@@ -1104,12 +1137,12 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1104
1137
|
value: null,
|
|
1105
1138
|
update: !1
|
|
1106
1139
|
},
|
|
1107
|
-
generateKey:
|
|
1140
|
+
generateKey: Gn
|
|
1108
1141
|
};
|
|
1109
1142
|
},
|
|
1110
1143
|
mounted() {
|
|
1111
1144
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1112
|
-
t && e &&
|
|
1145
|
+
t && e && Un(
|
|
1113
1146
|
t.map((n) => ({
|
|
1114
1147
|
...n,
|
|
1115
1148
|
elementId: e
|
|
@@ -1120,14 +1153,14 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1120
1153
|
},
|
|
1121
1154
|
computed: {
|
|
1122
1155
|
repeatItem() {
|
|
1123
|
-
return
|
|
1156
|
+
return zn({
|
|
1124
1157
|
block: this.block,
|
|
1125
1158
|
context: this.context
|
|
1126
1159
|
});
|
|
1127
1160
|
},
|
|
1128
1161
|
processedBlock() {
|
|
1129
1162
|
var t;
|
|
1130
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1163
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : ln({
|
|
1131
1164
|
block: this.block,
|
|
1132
1165
|
localState: this.context.localState,
|
|
1133
1166
|
rootState: this.context.rootState,
|
|
@@ -1136,7 +1169,7 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1136
1169
|
});
|
|
1137
1170
|
},
|
|
1138
1171
|
blockComponent() {
|
|
1139
|
-
return
|
|
1172
|
+
return Mn({
|
|
1140
1173
|
block: this.processedBlock,
|
|
1141
1174
|
registeredComponents: this.registeredComponents,
|
|
1142
1175
|
model: this.context.model
|
|
@@ -1163,11 +1196,11 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1163
1196
|
blockChildren: this.processedBlock.children ?? [],
|
|
1164
1197
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1165
1198
|
componentOptions: {
|
|
1166
|
-
...
|
|
1167
|
-
...
|
|
1168
|
-
...
|
|
1169
|
-
...
|
|
1170
|
-
...
|
|
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(
|
|
1171
1204
|
this.blockComponent,
|
|
1172
1205
|
this.registeredComponents,
|
|
1173
1206
|
this.context.model
|
|
@@ -1183,7 +1216,7 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1183
1216
|
}
|
|
1184
1217
|
}
|
|
1185
1218
|
});
|
|
1186
|
-
function
|
|
1219
|
+
function to(e, t, n, o, r, i) {
|
|
1187
1220
|
var b;
|
|
1188
1221
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1189
1222
|
return e.canShowBlock ? (d(), h(w, { key: 0 }, [
|
|
@@ -1193,7 +1226,7 @@ function Gn(e, t, n, o, r, i) {
|
|
|
1193
1226
|
id: e.block.id
|
|
1194
1227
|
}, null, 8, ["block", "context", "id"]),
|
|
1195
1228
|
(b = e.blockComponent) != null && b.noWrap ? (d(), h(w, { key: 1 }, [
|
|
1196
|
-
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, {
|
|
1197
1230
|
key: e.generateKey(m),
|
|
1198
1231
|
repeatContext: c.context,
|
|
1199
1232
|
block: c.block,
|
|
@@ -1212,7 +1245,7 @@ function Gn(e, t, n, o, r, i) {
|
|
|
1212
1245
|
isInteractive: e.componentRefProps.isInteractive
|
|
1213
1246
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1214
1247
|
], 64)) : (d(), h(w, { key: 0 }, [
|
|
1215
|
-
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, {
|
|
1216
1249
|
key: e.generateKey(m),
|
|
1217
1250
|
repeatContext: c.context,
|
|
1218
1251
|
block: c.block,
|
|
@@ -1236,7 +1269,7 @@ function Gn(e, t, n, o, r, i) {
|
|
|
1236
1269
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1237
1270
|
isInteractive: e.componentRefProps.isInteractive
|
|
1238
1271
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1239
|
-
(d(!0), h(w, null,
|
|
1272
|
+
(d(!0), h(w, null, x(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1240
1273
|
key: c.id,
|
|
1241
1274
|
block: c,
|
|
1242
1275
|
registeredComponents: e.registeredComponents,
|
|
@@ -1249,10 +1282,10 @@ function Gn(e, t, n, o, r, i) {
|
|
|
1249
1282
|
], 64))
|
|
1250
1283
|
], 64)) : T("", !0);
|
|
1251
1284
|
}
|
|
1252
|
-
const
|
|
1285
|
+
const kt = /* @__PURE__ */ v(eo, [["render", to]]), bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1253
1286
|
__proto__: null,
|
|
1254
|
-
default:
|
|
1255
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1287
|
+
default: kt
|
|
1288
|
+
}, Symbol.toStringTag, { value: "Module" })), no = y({
|
|
1256
1289
|
name: "builder-blocks-wrapper",
|
|
1257
1290
|
props: [
|
|
1258
1291
|
"blocks",
|
|
@@ -1322,8 +1355,8 @@ const gt = /* @__PURE__ */ v(Jn, [["render", Gn]]), as = /* @__PURE__ */ Object.
|
|
|
1322
1355
|
}
|
|
1323
1356
|
}
|
|
1324
1357
|
});
|
|
1325
|
-
function
|
|
1326
|
-
return d(), S(
|
|
1358
|
+
function oo(e, t, n, o, r, i) {
|
|
1359
|
+
return d(), S(_(e.BlocksWrapper), I({
|
|
1327
1360
|
ref: "blocksWrapperRef",
|
|
1328
1361
|
class: e.className + " component-5vz8uirn7sc",
|
|
1329
1362
|
"builder-path": e.dataPath,
|
|
@@ -1339,9 +1372,9 @@ function Yn(e, t, n, o, r, i) {
|
|
|
1339
1372
|
_: 3
|
|
1340
1373
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1341
1374
|
}
|
|
1342
|
-
const
|
|
1375
|
+
const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-82fc93d6"]]), io = y({
|
|
1343
1376
|
name: "builder-blocks",
|
|
1344
|
-
components: { BlocksWrapper:
|
|
1377
|
+
components: { BlocksWrapper: ro, Block: kt },
|
|
1345
1378
|
props: [
|
|
1346
1379
|
"blocks",
|
|
1347
1380
|
"parent",
|
|
@@ -1354,11 +1387,11 @@ const Xn = /* @__PURE__ */ v(Qn, [["render", Yn], ["__scopeId", "data-v-82fc93d6
|
|
|
1354
1387
|
"registeredComponents"
|
|
1355
1388
|
],
|
|
1356
1389
|
inject: {
|
|
1357
|
-
builderContext:
|
|
1358
|
-
componentsContext:
|
|
1390
|
+
builderContext: be.key,
|
|
1391
|
+
componentsContext: rt.key
|
|
1359
1392
|
}
|
|
1360
1393
|
});
|
|
1361
|
-
function
|
|
1394
|
+
function so(e, t, n, o, r, i) {
|
|
1362
1395
|
var a, u, p, b;
|
|
1363
1396
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1364
1397
|
return d(), S(l, {
|
|
@@ -1372,7 +1405,7 @@ function _n(e, t, n, o, r, i) {
|
|
|
1372
1405
|
}, {
|
|
1373
1406
|
default: D(() => [
|
|
1374
1407
|
V(e.$slots, "default"),
|
|
1375
|
-
e.blocks ? (d(!0), h(w, { key: 0 },
|
|
1408
|
+
e.blocks ? (d(!0), h(w, { key: 0 }, x(e.blocks, (c, m) => {
|
|
1376
1409
|
var f;
|
|
1377
1410
|
return d(), S(s, {
|
|
1378
1411
|
key: c.id,
|
|
@@ -1386,21 +1419,21 @@ function _n(e, t, n, o, r, i) {
|
|
|
1386
1419
|
_: 3
|
|
1387
1420
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1388
1421
|
}
|
|
1389
|
-
const j = /* @__PURE__ */ v(
|
|
1422
|
+
const j = /* @__PURE__ */ v(io, [["render", so]]), ao = y({
|
|
1390
1423
|
name: "dynamic-div",
|
|
1391
1424
|
props: []
|
|
1392
1425
|
});
|
|
1393
|
-
function
|
|
1426
|
+
function lo(e, t, n, o, r, i) {
|
|
1394
1427
|
return d(), h("div", null, [
|
|
1395
1428
|
V(e.$slots, "default")
|
|
1396
1429
|
]);
|
|
1397
1430
|
}
|
|
1398
|
-
const te = /* @__PURE__ */ v(
|
|
1431
|
+
const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1399
1432
|
__proto__: null,
|
|
1400
1433
|
default: te
|
|
1401
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1434
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = y({
|
|
1402
1435
|
render() {
|
|
1403
|
-
return
|
|
1436
|
+
return Ze("style", {
|
|
1404
1437
|
innerHTML: this.styles,
|
|
1405
1438
|
"data-id": this.id,
|
|
1406
1439
|
nonce: this.nonce
|
|
@@ -1408,7 +1441,7 @@ const te = /* @__PURE__ */ v(eo, [["render", to]]), no = /* @__PURE__ */ Object.
|
|
|
1408
1441
|
},
|
|
1409
1442
|
name: "inlined-styles",
|
|
1410
1443
|
props: ["styles", "id", "nonce"]
|
|
1411
|
-
}),
|
|
1444
|
+
}), Ct = {
|
|
1412
1445
|
xsmall: {
|
|
1413
1446
|
min: 0,
|
|
1414
1447
|
default: 160,
|
|
@@ -1429,8 +1462,8 @@ const te = /* @__PURE__ */ v(eo, [["render", to]]), no = /* @__PURE__ */ Object.
|
|
|
1429
1462
|
default: 991,
|
|
1430
1463
|
max: 1200
|
|
1431
1464
|
}
|
|
1432
|
-
},
|
|
1433
|
-
const t =
|
|
1465
|
+
}, gs = (e, t = Ct) => `@media (max-width: ${t[e].max}px)`, uo = (e) => {
|
|
1466
|
+
const t = Ie(Ct);
|
|
1434
1467
|
if (!e)
|
|
1435
1468
|
return t;
|
|
1436
1469
|
const {
|
|
@@ -1467,11 +1500,11 @@ const te = /* @__PURE__ */ v(eo, [["render", to]]), no = /* @__PURE__ */ Object.
|
|
|
1467
1500
|
min: l,
|
|
1468
1501
|
default: l + 1
|
|
1469
1502
|
}, t;
|
|
1470
|
-
},
|
|
1503
|
+
}, po = (e) => `builder-columns ${e}-breakpoints`, mo = y({
|
|
1471
1504
|
name: "builder-columns",
|
|
1472
1505
|
components: {
|
|
1473
|
-
InlinedStyles:
|
|
1474
|
-
DynamicRenderer:
|
|
1506
|
+
InlinedStyles: ue,
|
|
1507
|
+
DynamicRenderer: Re,
|
|
1475
1508
|
Blocks: j,
|
|
1476
1509
|
DynamicDiv: te
|
|
1477
1510
|
},
|
|
@@ -1486,7 +1519,7 @@ const te = /* @__PURE__ */ v(eo, [["render", to]]), no = /* @__PURE__ */ Object.
|
|
|
1486
1519
|
"builderComponents"
|
|
1487
1520
|
],
|
|
1488
1521
|
data() {
|
|
1489
|
-
return { TARGET: R, getColumnsClass:
|
|
1522
|
+
return { TARGET: R, getColumnsClass: po };
|
|
1490
1523
|
},
|
|
1491
1524
|
computed: {
|
|
1492
1525
|
gutterSize() {
|
|
@@ -1565,7 +1598,7 @@ const te = /* @__PURE__ */ v(eo, [["render", to]]), no = /* @__PURE__ */ Object.
|
|
|
1565
1598
|
},
|
|
1566
1599
|
getWidthForBreakpointSize(e) {
|
|
1567
1600
|
var n, o;
|
|
1568
|
-
return
|
|
1601
|
+
return uo(
|
|
1569
1602
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1570
1603
|
)[e].max;
|
|
1571
1604
|
},
|
|
@@ -1603,12 +1636,12 @@ const te = /* @__PURE__ */ v(eo, [["render", to]]), no = /* @__PURE__ */ Object.
|
|
|
1603
1636
|
href: e.link
|
|
1604
1637
|
} : {},
|
|
1605
1638
|
[M()]: "builder-column",
|
|
1606
|
-
style:
|
|
1639
|
+
style: vt(this.columnCssVars(t))
|
|
1607
1640
|
};
|
|
1608
1641
|
}
|
|
1609
1642
|
}
|
|
1610
1643
|
});
|
|
1611
|
-
function
|
|
1644
|
+
function ho(e, t, n, o, r, i) {
|
|
1612
1645
|
var u;
|
|
1613
1646
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1614
1647
|
return d(), h("div", I({
|
|
@@ -1621,7 +1654,7 @@ function so(e, t, n, o, r, i) {
|
|
|
1621
1654
|
styles: e.columnsStyles(),
|
|
1622
1655
|
nonce: e.builderContext.nonce
|
|
1623
1656
|
}, null, 8, ["styles", "nonce"])) : T("", !0),
|
|
1624
|
-
(d(!0), h(w, null,
|
|
1657
|
+
(d(!0), h(w, null, x(e.columns, (p, b) => (d(), S(a, {
|
|
1625
1658
|
key: b,
|
|
1626
1659
|
TagName: e.getTagName(p),
|
|
1627
1660
|
actionAttributes: {},
|
|
@@ -1644,47 +1677,47 @@ function so(e, t, n, o, r, i) {
|
|
|
1644
1677
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1645
1678
|
], 16);
|
|
1646
1679
|
}
|
|
1647
|
-
const
|
|
1680
|
+
const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-ab15749a"]]), bo = y({
|
|
1648
1681
|
name: "builder-fragment-component",
|
|
1649
1682
|
props: []
|
|
1650
1683
|
});
|
|
1651
|
-
function
|
|
1684
|
+
function go(e, t, n, o, r, i) {
|
|
1652
1685
|
return d(), h("span", null, [
|
|
1653
1686
|
V(e.$slots, "default")
|
|
1654
1687
|
]);
|
|
1655
1688
|
}
|
|
1656
|
-
const
|
|
1657
|
-
function
|
|
1689
|
+
const yo = /* @__PURE__ */ v(bo, [["render", go]]);
|
|
1690
|
+
function Je(e) {
|
|
1658
1691
|
return e.replace(/http(s)?:/, "");
|
|
1659
1692
|
}
|
|
1660
|
-
function
|
|
1693
|
+
function vo(e = "", t, n) {
|
|
1661
1694
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1662
1695
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1663
1696
|
}
|
|
1664
|
-
function
|
|
1697
|
+
function So(e, t) {
|
|
1665
1698
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1666
1699
|
return e;
|
|
1667
1700
|
if (t === "master")
|
|
1668
|
-
return
|
|
1701
|
+
return Je(e);
|
|
1669
1702
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1670
1703
|
if (n) {
|
|
1671
1704
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1672
|
-
return
|
|
1705
|
+
return Je(`${o[0]}_${i}${r}`);
|
|
1673
1706
|
}
|
|
1674
1707
|
return null;
|
|
1675
1708
|
}
|
|
1676
|
-
function
|
|
1709
|
+
function oe(e) {
|
|
1677
1710
|
if (!e)
|
|
1678
1711
|
return e;
|
|
1679
1712
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1680
1713
|
if (e.match(/builder\.io/)) {
|
|
1681
1714
|
let n = e;
|
|
1682
1715
|
const o = Number(e.split("?width=")[1]);
|
|
1683
|
-
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(", ");
|
|
1684
1717
|
}
|
|
1685
|
-
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;
|
|
1686
1719
|
}
|
|
1687
|
-
const
|
|
1720
|
+
const ko = y({
|
|
1688
1721
|
name: "builder-image",
|
|
1689
1722
|
props: [
|
|
1690
1723
|
"lazy",
|
|
@@ -1714,10 +1747,10 @@ const ho = y({
|
|
|
1714
1747
|
if (!this.noWebp) {
|
|
1715
1748
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1716
1749
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1717
|
-
return console.debug("Removed given srcset"),
|
|
1750
|
+
return console.debug("Removed given srcset"), oe(t);
|
|
1718
1751
|
} else if (this.image && !this.srcset)
|
|
1719
|
-
return
|
|
1720
|
-
return
|
|
1752
|
+
return oe(t);
|
|
1753
|
+
return oe(t);
|
|
1721
1754
|
}
|
|
1722
1755
|
},
|
|
1723
1756
|
webpSrcSet() {
|
|
@@ -1738,11 +1771,11 @@ const ho = y({
|
|
|
1738
1771
|
return this.aspectRatio ? e : void 0;
|
|
1739
1772
|
}
|
|
1740
1773
|
}
|
|
1741
|
-
}),
|
|
1774
|
+
}), Co = ["srcset", "sizes"], To = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], wo = {
|
|
1742
1775
|
key: 2,
|
|
1743
1776
|
class: "div-t43jfuqn6g-2"
|
|
1744
1777
|
};
|
|
1745
|
-
function
|
|
1778
|
+
function Io(e, t, n, o, r, i) {
|
|
1746
1779
|
var s, l, a, u, p, b;
|
|
1747
1780
|
return d(), h(w, null, [
|
|
1748
1781
|
K("picture", null, [
|
|
@@ -1751,7 +1784,7 @@ function yo(e, t, n, o, r, i) {
|
|
|
1751
1784
|
type: "image/webp",
|
|
1752
1785
|
srcset: e.webpSrcSet,
|
|
1753
1786
|
sizes: e.sizesToUse
|
|
1754
|
-
}, null, 8,
|
|
1787
|
+
}, null, 8, Co)) : T("", !0),
|
|
1755
1788
|
K("img", {
|
|
1756
1789
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1757
1790
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -1759,17 +1792,17 @@ function yo(e, t, n, o, r, i) {
|
|
|
1759
1792
|
title: e.title,
|
|
1760
1793
|
role: e.altText ? void 0 : "presentation",
|
|
1761
1794
|
style: H({
|
|
1762
|
-
objectPosition: e.backgroundPosition || "center"
|
|
1795
|
+
objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
|
|
1763
1796
|
objectFit: e.backgroundSize || "cover",
|
|
1764
1797
|
...e.aspectRatioCss
|
|
1765
1798
|
}),
|
|
1766
|
-
class:
|
|
1799
|
+
class: Z(
|
|
1767
1800
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
1768
1801
|
),
|
|
1769
1802
|
src: e.image,
|
|
1770
1803
|
srcset: e.srcSetToUse,
|
|
1771
1804
|
sizes: e.sizesToUse
|
|
1772
|
-
}, null, 14,
|
|
1805
|
+
}, null, 14, To)
|
|
1773
1806
|
]),
|
|
1774
1807
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
1775
1808
|
key: 0,
|
|
@@ -1779,19 +1812,19 @@ function yo(e, t, n, o, r, i) {
|
|
|
1779
1812
|
})
|
|
1780
1813
|
}, null, 4)) : T("", !0),
|
|
1781
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),
|
|
1782
|
-
!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, [
|
|
1783
1816
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1784
1817
|
])) : T("", !0)
|
|
1785
1818
|
], 64);
|
|
1786
1819
|
}
|
|
1787
|
-
const
|
|
1820
|
+
const $o = /* @__PURE__ */ v(ko, [["render", Io], ["__scopeId", "data-v-f109a7da"]]), Ro = y({
|
|
1788
1821
|
name: "builder-section-component",
|
|
1789
1822
|
props: ["attributes", "maxWidth"],
|
|
1790
1823
|
data() {
|
|
1791
1824
|
return { filterAttrs: N };
|
|
1792
1825
|
}
|
|
1793
1826
|
});
|
|
1794
|
-
function
|
|
1827
|
+
function Eo(e, t, n, o, r, i) {
|
|
1795
1828
|
return d(), h("section", I({
|
|
1796
1829
|
style: {
|
|
1797
1830
|
width: "100%",
|
|
@@ -1805,12 +1838,12 @@ function ko(e, t, n, o, r, i) {
|
|
|
1805
1838
|
marginLeft: "auto",
|
|
1806
1839
|
marginRight: "auto"
|
|
1807
1840
|
}
|
|
1808
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1841
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1809
1842
|
V(e.$slots, "default")
|
|
1810
1843
|
], 16);
|
|
1811
1844
|
}
|
|
1812
|
-
const
|
|
1813
|
-
function
|
|
1845
|
+
const Po = /* @__PURE__ */ v(Ro, [["render", Eo]]);
|
|
1846
|
+
function Ao(e, t, n, o) {
|
|
1814
1847
|
function r(u) {
|
|
1815
1848
|
return typeof u == "string";
|
|
1816
1849
|
}
|
|
@@ -1867,7 +1900,20 @@ function To(e, t, n, o) {
|
|
|
1867
1900
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1868
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));
|
|
1869
1902
|
}
|
|
1870
|
-
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) {
|
|
1871
1917
|
if (!navigator.cookieEnabled) {
|
|
1872
1918
|
return;
|
|
1873
1919
|
}
|
|
@@ -1885,6 +1931,7 @@ const wo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1885
1931
|
if (locale) {
|
|
1886
1932
|
attributes.locale = locale;
|
|
1887
1933
|
}
|
|
1934
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
1888
1935
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
1889
1936
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
1890
1937
|
});
|
|
@@ -1912,7 +1959,7 @@ const wo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1912
1959
|
thisScript.remove();
|
|
1913
1960
|
}
|
|
1914
1961
|
}
|
|
1915
|
-
}`,
|
|
1962
|
+
}`, No = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1916
1963
|
function isString(val) {
|
|
1917
1964
|
return typeof val === 'string';
|
|
1918
1965
|
}
|
|
@@ -1990,7 +2037,7 @@ const wo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1990
2037
|
return item.query.every(filter => {
|
|
1991
2038
|
return objectMatchesQuery(userAttributes, filter);
|
|
1992
2039
|
});
|
|
1993
|
-
}`,
|
|
2040
|
+
}`, Wo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1994
2041
|
function getCookie(name) {
|
|
1995
2042
|
const nameEQ = name + '=';
|
|
1996
2043
|
const ca = document.cookie.split(';');
|
|
@@ -2016,6 +2063,7 @@ const wo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2016
2063
|
if (locale) {
|
|
2017
2064
|
attributes.locale = locale;
|
|
2018
2065
|
}
|
|
2066
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
2019
2067
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2020
2068
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2021
2069
|
});
|
|
@@ -2028,11 +2076,11 @@ const wo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2028
2076
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2029
2077
|
}
|
|
2030
2078
|
}
|
|
2031
|
-
}`,
|
|
2032
|
-
function
|
|
2033
|
-
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();
|
|
2034
2082
|
}
|
|
2035
|
-
function
|
|
2083
|
+
function Uo({
|
|
2036
2084
|
variants: e,
|
|
2037
2085
|
previewingIndex: t,
|
|
2038
2086
|
isHydrated: n,
|
|
@@ -2042,7 +2090,7 @@ function Po({
|
|
|
2042
2090
|
const i = {
|
|
2043
2091
|
blocks: r ?? [],
|
|
2044
2092
|
path: "this.children",
|
|
2045
|
-
index:
|
|
2093
|
+
index: re
|
|
2046
2094
|
};
|
|
2047
2095
|
if (n && A()) {
|
|
2048
2096
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2070,22 +2118,25 @@ function Po({
|
|
|
2070
2118
|
}
|
|
2071
2119
|
return i;
|
|
2072
2120
|
}
|
|
2073
|
-
const
|
|
2121
|
+
const Ce = (e) => {
|
|
2074
2122
|
var t;
|
|
2075
|
-
return Array.isArray(e) ? e.some(
|
|
2076
|
-
},
|
|
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 = () => `
|
|
2077
2125
|
(function() {
|
|
2078
|
-
if (!window.${
|
|
2079
|
-
window.${
|
|
2126
|
+
if (!window.${Qe}) {
|
|
2127
|
+
window.${Qe} = ${Bo};
|
|
2080
2128
|
}
|
|
2081
|
-
if (!window.${
|
|
2082
|
-
window.${
|
|
2129
|
+
if (!window.${Ge}) {
|
|
2130
|
+
window.${Ge} = ${No};
|
|
2083
2131
|
}
|
|
2084
2132
|
if (!window.${Se}) {
|
|
2085
|
-
window.${Se} = ${
|
|
2133
|
+
window.${Se} = ${Vo};
|
|
2134
|
+
}
|
|
2135
|
+
if (!window.${ke}) {
|
|
2136
|
+
window.${ke} = ${Wo};
|
|
2086
2137
|
}
|
|
2087
2138
|
})();
|
|
2088
|
-
`,
|
|
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 = {
|
|
2089
2140
|
"@type": "@builder.io/sdk:Element",
|
|
2090
2141
|
layerName: "Accordion item title",
|
|
2091
2142
|
responsiveStyles: {
|
|
@@ -2114,7 +2165,7 @@ const ke = (e) => {
|
|
|
2114
2165
|
}
|
|
2115
2166
|
}
|
|
2116
2167
|
}]
|
|
2117
|
-
},
|
|
2168
|
+
}, me = {
|
|
2118
2169
|
"@type": "@builder.io/sdk:Element",
|
|
2119
2170
|
layerName: "Accordion item detail",
|
|
2120
2171
|
responsiveStyles: {
|
|
@@ -2145,7 +2196,7 @@ const ke = (e) => {
|
|
|
2145
2196
|
}
|
|
2146
2197
|
}
|
|
2147
2198
|
}]
|
|
2148
|
-
},
|
|
2199
|
+
}, Mo = {
|
|
2149
2200
|
name: "Builder:Accordion",
|
|
2150
2201
|
canHaveChildren: !0,
|
|
2151
2202
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2162,19 +2213,19 @@ const ke = (e) => {
|
|
|
2162
2213
|
name: "title",
|
|
2163
2214
|
type: "uiBlocks",
|
|
2164
2215
|
hideFromUI: !0,
|
|
2165
|
-
defaultValue: [
|
|
2216
|
+
defaultValue: [pe]
|
|
2166
2217
|
}, {
|
|
2167
2218
|
name: "detail",
|
|
2168
2219
|
type: "uiBlocks",
|
|
2169
2220
|
hideFromUI: !0,
|
|
2170
|
-
defaultValue: [
|
|
2221
|
+
defaultValue: [me]
|
|
2171
2222
|
}],
|
|
2172
2223
|
defaultValue: [{
|
|
2173
|
-
title: [
|
|
2174
|
-
detail: [
|
|
2224
|
+
title: [pe],
|
|
2225
|
+
detail: [me]
|
|
2175
2226
|
}, {
|
|
2176
|
-
title: [
|
|
2177
|
-
detail: [
|
|
2227
|
+
title: [pe],
|
|
2228
|
+
detail: [me]
|
|
2178
2229
|
}],
|
|
2179
2230
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2180
2231
|
}, {
|
|
@@ -2209,7 +2260,7 @@ const ke = (e) => {
|
|
|
2209
2260
|
builderComponents: !0,
|
|
2210
2261
|
builderLinkComponent: !0
|
|
2211
2262
|
}
|
|
2212
|
-
},
|
|
2263
|
+
}, zo = (e) => e.toString(), jo = y({
|
|
2213
2264
|
name: "builder-accordion",
|
|
2214
2265
|
components: { Blocks: j },
|
|
2215
2266
|
props: [
|
|
@@ -2223,7 +2274,7 @@ const ke = (e) => {
|
|
|
2223
2274
|
"builderLinkComponent"
|
|
2224
2275
|
],
|
|
2225
2276
|
data() {
|
|
2226
|
-
return { open: [], convertOrderNumberToString:
|
|
2277
|
+
return { open: [], convertOrderNumberToString: zo };
|
|
2227
2278
|
},
|
|
2228
2279
|
computed: {
|
|
2229
2280
|
onlyOneAtATime() {
|
|
@@ -2304,16 +2355,16 @@ const ke = (e) => {
|
|
|
2304
2355
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2305
2356
|
}
|
|
2306
2357
|
}
|
|
2307
|
-
}),
|
|
2308
|
-
function
|
|
2358
|
+
}), qo = ["data-index", "onClick"];
|
|
2359
|
+
function Ko(e, t, n, o, r, i) {
|
|
2309
2360
|
const s = k("Blocks");
|
|
2310
2361
|
return d(), h("div", {
|
|
2311
2362
|
class: "builder-accordion",
|
|
2312
2363
|
style: H(e.accordionStyles)
|
|
2313
2364
|
}, [
|
|
2314
|
-
(d(!0), h(w, null,
|
|
2365
|
+
(d(!0), h(w, null, x(e.items, (l, a) => (d(), h(w, { key: a }, [
|
|
2315
2366
|
K("div", {
|
|
2316
|
-
class:
|
|
2367
|
+
class: Z(e.getAccordionTitleClassName(a)),
|
|
2317
2368
|
style: H({
|
|
2318
2369
|
...e.accordionTitleStyles,
|
|
2319
2370
|
...e.grid && {
|
|
@@ -2332,10 +2383,10 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2332
2383
|
registeredComponents: e.builderComponents,
|
|
2333
2384
|
linkComponent: e.builderLinkComponent
|
|
2334
2385
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2335
|
-
], 14,
|
|
2386
|
+
], 14, qo),
|
|
2336
2387
|
e.open.includes(a) ? (d(), h("div", {
|
|
2337
2388
|
key: 0,
|
|
2338
|
-
class:
|
|
2389
|
+
class: Z(e.getAccordionDetailClassName(a)),
|
|
2339
2390
|
style: H(e.accordionDetailStyles)
|
|
2340
2391
|
}, [
|
|
2341
2392
|
$(s, {
|
|
@@ -2350,7 +2401,7 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2350
2401
|
], 64))), 128))
|
|
2351
2402
|
], 4);
|
|
2352
2403
|
}
|
|
2353
|
-
const
|
|
2404
|
+
const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
2354
2405
|
name: "Core:Button",
|
|
2355
2406
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2356
2407
|
defaultStyles: {
|
|
@@ -2386,7 +2437,7 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2386
2437
|
shouldReceiveBuilderProps: {
|
|
2387
2438
|
builderLinkComponent: !0
|
|
2388
2439
|
}
|
|
2389
|
-
},
|
|
2440
|
+
}, Qo = {
|
|
2390
2441
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2391
2442
|
name: "Columns",
|
|
2392
2443
|
isRSC: !0,
|
|
@@ -2593,13 +2644,13 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2593
2644
|
builderComponents: !0,
|
|
2594
2645
|
builderLinkComponent: !0
|
|
2595
2646
|
}
|
|
2596
|
-
},
|
|
2647
|
+
}, Yo = {
|
|
2597
2648
|
name: "Fragment",
|
|
2598
2649
|
static: !0,
|
|
2599
2650
|
hidden: !0,
|
|
2600
2651
|
canHaveChildren: !0,
|
|
2601
2652
|
noWrap: !0
|
|
2602
|
-
},
|
|
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 = {
|
|
2603
2654
|
name: "Image",
|
|
2604
2655
|
static: !0,
|
|
2605
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",
|
|
@@ -2614,7 +2665,7 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2614
2665
|
name: "image",
|
|
2615
2666
|
type: "file",
|
|
2616
2667
|
bubble: !0,
|
|
2617
|
-
allowedFileTypes:
|
|
2668
|
+
allowedFileTypes: Ne,
|
|
2618
2669
|
required: !0,
|
|
2619
2670
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2620
2671
|
onChange: (e) => {
|
|
@@ -2712,7 +2763,7 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2712
2763
|
shouldReceiveBuilderProps: {
|
|
2713
2764
|
builderBlock: !0
|
|
2714
2765
|
}
|
|
2715
|
-
},
|
|
2766
|
+
}, Zo = {
|
|
2716
2767
|
name: "PersonalizationContainer",
|
|
2717
2768
|
shouldReceiveBuilderProps: {
|
|
2718
2769
|
builderBlock: !0,
|
|
@@ -2748,9 +2799,9 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2748
2799
|
defaultValue: []
|
|
2749
2800
|
}]
|
|
2750
2801
|
}]
|
|
2751
|
-
},
|
|
2802
|
+
}, We = y({
|
|
2752
2803
|
render() {
|
|
2753
|
-
return
|
|
2804
|
+
return Ze("script", {
|
|
2754
2805
|
innerHTML: this.scriptStr,
|
|
2755
2806
|
"data-id": this.id,
|
|
2756
2807
|
nonce: this.nonce
|
|
@@ -2758,12 +2809,12 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2758
2809
|
},
|
|
2759
2810
|
name: "inlined-script",
|
|
2760
2811
|
props: ["scriptStr", "id", "nonce"]
|
|
2761
|
-
}),
|
|
2812
|
+
}), er = y({
|
|
2762
2813
|
name: "builder-personalization-container",
|
|
2763
2814
|
components: {
|
|
2764
2815
|
Blocks: j,
|
|
2765
|
-
InlinedStyles:
|
|
2766
|
-
InlinedScript:
|
|
2816
|
+
InlinedStyles: ue,
|
|
2817
|
+
InlinedScript: We
|
|
2767
2818
|
},
|
|
2768
2819
|
props: [
|
|
2769
2820
|
"builderContext",
|
|
@@ -2776,32 +2827,32 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2776
2827
|
data() {
|
|
2777
2828
|
var e, t, n, o, r, i, s;
|
|
2778
2829
|
return {
|
|
2779
|
-
userAttributes:
|
|
2780
|
-
scriptStr:
|
|
2830
|
+
userAttributes: ce.getUserAttributes(),
|
|
2831
|
+
scriptStr: Lo(
|
|
2781
2832
|
this.variants,
|
|
2782
2833
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2783
2834
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2784
2835
|
),
|
|
2785
|
-
updateVisibilityStylesScript:
|
|
2836
|
+
updateVisibilityStylesScript: Ho(
|
|
2786
2837
|
this.variants,
|
|
2787
2838
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2788
2839
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2789
2840
|
),
|
|
2790
2841
|
unsubscribers: [],
|
|
2791
|
-
shouldRenderVariants:
|
|
2842
|
+
shouldRenderVariants: Oo(
|
|
2792
2843
|
this.variants,
|
|
2793
2844
|
J((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2794
2845
|
),
|
|
2795
2846
|
shouldResetVariants: !1,
|
|
2796
2847
|
TARGET: R,
|
|
2797
|
-
DEFAULT_INDEX:
|
|
2798
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2848
|
+
DEFAULT_INDEX: re,
|
|
2849
|
+
SDKS_REQUIRING_RESET_APPROACH: wt
|
|
2799
2850
|
};
|
|
2800
2851
|
},
|
|
2801
2852
|
mounted() {
|
|
2802
2853
|
var t;
|
|
2803
2854
|
this.shouldResetVariants = !0;
|
|
2804
|
-
const e =
|
|
2855
|
+
const e = ce.subscribeOnUserAttributesChange(
|
|
2805
2856
|
(n) => {
|
|
2806
2857
|
this.userAttributes = n;
|
|
2807
2858
|
},
|
|
@@ -2809,12 +2860,12 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2809
2860
|
fireImmediately: R === "qwik"
|
|
2810
2861
|
}
|
|
2811
2862
|
);
|
|
2812
|
-
if (!(A() ||
|
|
2863
|
+
if (!(A() || Ee())) {
|
|
2813
2864
|
const n = this.filteredVariants[0];
|
|
2814
2865
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
2815
2866
|
new CustomEvent("builder.variantLoaded", {
|
|
2816
2867
|
detail: {
|
|
2817
|
-
variant: n ||
|
|
2868
|
+
variant: n || re,
|
|
2818
2869
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
2819
2870
|
},
|
|
2820
2871
|
bubbles: !0
|
|
@@ -2825,7 +2876,7 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2825
2876
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
2826
2877
|
new CustomEvent("builder.variantDisplayed", {
|
|
2827
2878
|
detail: {
|
|
2828
|
-
variant: n ||
|
|
2879
|
+
variant: n || re,
|
|
2829
2880
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
2830
2881
|
},
|
|
2831
2882
|
bubbles: !0
|
|
@@ -2850,7 +2901,7 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2850
2901
|
filteredVariants() {
|
|
2851
2902
|
return (this.variants || []).filter((e) => {
|
|
2852
2903
|
var t, n, o, r;
|
|
2853
|
-
return
|
|
2904
|
+
return Ao(
|
|
2854
2905
|
{
|
|
2855
2906
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
2856
2907
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -2865,7 +2916,7 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2865
2916
|
},
|
|
2866
2917
|
blocksToRender() {
|
|
2867
2918
|
var e;
|
|
2868
|
-
return
|
|
2919
|
+
return Uo({
|
|
2869
2920
|
variants: this.variants,
|
|
2870
2921
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
2871
2922
|
isHydrated: this.shouldResetVariants,
|
|
@@ -2883,7 +2934,7 @@ const Fo = /* @__PURE__ */ v(Oo, [["render", Uo]]), Lo = {
|
|
|
2883
2934
|
}
|
|
2884
2935
|
}
|
|
2885
2936
|
});
|
|
2886
|
-
function
|
|
2937
|
+
function tr(e, t, n, o, r, i) {
|
|
2887
2938
|
var u, p, b, c, m, f, g, P, O, B;
|
|
2888
2939
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
2889
2940
|
return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
|
|
@@ -2911,7 +2962,7 @@ function Jo(e, t, n, o, r, i) {
|
|
|
2911
2962
|
scriptStr: e.updateVisibilityStylesScript,
|
|
2912
2963
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
2913
2964
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
2914
|
-
(d(!0), h(w, null,
|
|
2965
|
+
(d(!0), h(w, null, x(e.variants, (q, C) => {
|
|
2915
2966
|
var z, G, Q, W;
|
|
2916
2967
|
return d(), S(s, {
|
|
2917
2968
|
key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
|
|
@@ -2928,12 +2979,12 @@ function Jo(e, t, n, o, r, i) {
|
|
|
2928
2979
|
registeredComponents: e.builderComponents
|
|
2929
2980
|
}, {
|
|
2930
2981
|
default: D(() => {
|
|
2931
|
-
var L,
|
|
2982
|
+
var L, Oe;
|
|
2932
2983
|
return [
|
|
2933
2984
|
$(a, {
|
|
2934
2985
|
nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
|
|
2935
2986
|
scriptStr: e.scriptStr,
|
|
2936
|
-
id: `variants-script-${(
|
|
2987
|
+
id: `variants-script-${(Oe = e.builderBlock) == null ? void 0 : Oe.id}-${C}`
|
|
2937
2988
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
2938
2989
|
];
|
|
2939
2990
|
}),
|
|
@@ -2968,7 +3019,7 @@ function Jo(e, t, n, o, r, i) {
|
|
|
2968
3019
|
], 64)) : T("", !0)
|
|
2969
3020
|
], 16);
|
|
2970
3021
|
}
|
|
2971
|
-
const
|
|
3022
|
+
const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
|
|
2972
3023
|
name: "Core:Section",
|
|
2973
3024
|
static: !0,
|
|
2974
3025
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3007,7 +3058,7 @@ const Go = /* @__PURE__ */ v(Ko, [["render", Jo]]), Qo = {
|
|
|
3007
3058
|
}
|
|
3008
3059
|
}
|
|
3009
3060
|
}]
|
|
3010
|
-
},
|
|
3061
|
+
}, rr = {
|
|
3011
3062
|
name: "Slot",
|
|
3012
3063
|
isRSC: !0,
|
|
3013
3064
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3024,12 +3075,12 @@ const Go = /* @__PURE__ */ v(Ko, [["render", Jo]]), Qo = {
|
|
|
3024
3075
|
builderContext: !0,
|
|
3025
3076
|
builderComponents: !0
|
|
3026
3077
|
}
|
|
3027
|
-
},
|
|
3078
|
+
}, ir = y({
|
|
3028
3079
|
name: "builder-slot",
|
|
3029
3080
|
components: { Blocks: j },
|
|
3030
3081
|
props: ["builderContext", "name", "builderComponents"]
|
|
3031
3082
|
});
|
|
3032
|
-
function
|
|
3083
|
+
function sr(e, t, n, o, r, i) {
|
|
3033
3084
|
var l, a, u;
|
|
3034
3085
|
const s = k("Blocks");
|
|
3035
3086
|
return d(), h("div", I(
|
|
@@ -3049,7 +3100,7 @@ function Zo(e, t, n, o, r, i) {
|
|
|
3049
3100
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3050
3101
|
], 16);
|
|
3051
3102
|
}
|
|
3052
|
-
const
|
|
3103
|
+
const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
3053
3104
|
name: "Symbol",
|
|
3054
3105
|
noWrap: !0,
|
|
3055
3106
|
static: !0,
|
|
@@ -3088,7 +3139,7 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3088
3139
|
builderComponents: !0,
|
|
3089
3140
|
builderLinkComponent: !0
|
|
3090
3141
|
}
|
|
3091
|
-
},
|
|
3142
|
+
}, he = {
|
|
3092
3143
|
"@type": "@builder.io/sdk:Element",
|
|
3093
3144
|
responsiveStyles: {
|
|
3094
3145
|
large: {
|
|
@@ -3110,7 +3161,7 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3110
3161
|
text: "New tab"
|
|
3111
3162
|
}
|
|
3112
3163
|
}
|
|
3113
|
-
},
|
|
3164
|
+
}, fe = {
|
|
3114
3165
|
"@type": "@builder.io/sdk:Element",
|
|
3115
3166
|
responsiveStyles: {
|
|
3116
3167
|
large: {
|
|
@@ -3126,7 +3177,7 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3126
3177
|
text: "New tab content "
|
|
3127
3178
|
}
|
|
3128
3179
|
}
|
|
3129
|
-
},
|
|
3180
|
+
}, cr = {
|
|
3130
3181
|
name: "Builder: Tabs",
|
|
3131
3182
|
inputs: [{
|
|
3132
3183
|
name: "tabs",
|
|
@@ -3136,16 +3187,16 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3136
3187
|
name: "label",
|
|
3137
3188
|
type: "uiBlocks",
|
|
3138
3189
|
hideFromUI: !0,
|
|
3139
|
-
defaultValue: [
|
|
3190
|
+
defaultValue: [he]
|
|
3140
3191
|
}, {
|
|
3141
3192
|
name: "content",
|
|
3142
3193
|
type: "uiBlocks",
|
|
3143
3194
|
hideFromUI: !0,
|
|
3144
|
-
defaultValue: [
|
|
3195
|
+
defaultValue: [fe]
|
|
3145
3196
|
}],
|
|
3146
3197
|
defaultValue: [{
|
|
3147
3198
|
label: [{
|
|
3148
|
-
...
|
|
3199
|
+
...he,
|
|
3149
3200
|
component: {
|
|
3150
3201
|
name: "Text",
|
|
3151
3202
|
options: {
|
|
@@ -3154,7 +3205,7 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3154
3205
|
}
|
|
3155
3206
|
}],
|
|
3156
3207
|
content: [{
|
|
3157
|
-
...
|
|
3208
|
+
...fe,
|
|
3158
3209
|
component: {
|
|
3159
3210
|
name: "Text",
|
|
3160
3211
|
options: {
|
|
@@ -3164,7 +3215,7 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3164
3215
|
}]
|
|
3165
3216
|
}, {
|
|
3166
3217
|
label: [{
|
|
3167
|
-
...
|
|
3218
|
+
...he,
|
|
3168
3219
|
component: {
|
|
3169
3220
|
name: "Text",
|
|
3170
3221
|
options: {
|
|
@@ -3173,7 +3224,7 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3173
3224
|
}
|
|
3174
3225
|
}],
|
|
3175
3226
|
content: [{
|
|
3176
|
-
...
|
|
3227
|
+
...fe,
|
|
3177
3228
|
component: {
|
|
3178
3229
|
name: "Text",
|
|
3179
3230
|
options: {
|
|
@@ -3229,7 +3280,7 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3229
3280
|
builderComponents: !0,
|
|
3230
3281
|
builderLinkComponent: !0
|
|
3231
3282
|
}
|
|
3232
|
-
},
|
|
3283
|
+
}, dr = y({
|
|
3233
3284
|
name: "builder-tabs",
|
|
3234
3285
|
components: { Blocks: j },
|
|
3235
3286
|
props: [
|
|
@@ -3257,8 +3308,8 @@ const _o = /* @__PURE__ */ v(Xo, [["render", Zo]]), er = {
|
|
|
3257
3308
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3258
3309
|
}
|
|
3259
3310
|
}
|
|
3260
|
-
}),
|
|
3261
|
-
function
|
|
3311
|
+
}), ur = ["onClick"], pr = { key: 0 };
|
|
3312
|
+
function mr(e, t, n, o, r, i) {
|
|
3262
3313
|
const s = k("Blocks");
|
|
3263
3314
|
return d(), h("div", null, [
|
|
3264
3315
|
K("div", {
|
|
@@ -3270,9 +3321,9 @@ function ir(e, t, n, o, r, i) {
|
|
|
3270
3321
|
overflow: "auto"
|
|
3271
3322
|
})
|
|
3272
3323
|
}, [
|
|
3273
|
-
(d(!0), h(w, null,
|
|
3324
|
+
(d(!0), h(w, null, x(e.tabs, (l, a) => (d(), h("span", {
|
|
3274
3325
|
key: a,
|
|
3275
|
-
class:
|
|
3326
|
+
class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3276
3327
|
style: H(e.getTabStyle(a)),
|
|
3277
3328
|
onClick: async (u) => e.onClick(a)
|
|
3278
3329
|
}, [
|
|
@@ -3284,9 +3335,9 @@ function ir(e, t, n, o, r, i) {
|
|
|
3284
3335
|
registeredComponents: e.builderComponents,
|
|
3285
3336
|
linkComponent: e.builderLinkComponent
|
|
3286
3337
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3287
|
-
], 14,
|
|
3338
|
+
], 14, ur))), 128))
|
|
3288
3339
|
], 4),
|
|
3289
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3340
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", pr, [
|
|
3290
3341
|
$(s, {
|
|
3291
3342
|
parent: e.builderBlock.id,
|
|
3292
3343
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3298,7 +3349,7 @@ function ir(e, t, n, o, r, i) {
|
|
|
3298
3349
|
])) : T("", !0)
|
|
3299
3350
|
]);
|
|
3300
3351
|
}
|
|
3301
|
-
const
|
|
3352
|
+
const hr = /* @__PURE__ */ v(dr, [["render", mr]]), fr = {
|
|
3302
3353
|
shouldReceiveBuilderProps: {},
|
|
3303
3354
|
name: "Text",
|
|
3304
3355
|
static: !0,
|
|
@@ -3316,11 +3367,11 @@ const sr = /* @__PURE__ */ v(nr, [["render", ir]]), ar = {
|
|
|
3316
3367
|
height: "auto",
|
|
3317
3368
|
textAlign: "center"
|
|
3318
3369
|
}
|
|
3319
|
-
},
|
|
3370
|
+
}, br = y({
|
|
3320
3371
|
name: "builder-text",
|
|
3321
3372
|
props: ["text"]
|
|
3322
|
-
}),
|
|
3323
|
-
function
|
|
3373
|
+
}), gr = ["innerHTML"];
|
|
3374
|
+
function yr(e, t, n, o, r, i) {
|
|
3324
3375
|
var s;
|
|
3325
3376
|
return d(), h("div", {
|
|
3326
3377
|
class: "builder-text",
|
|
@@ -3328,9 +3379,9 @@ function dr(e, t, n, o, r, i) {
|
|
|
3328
3379
|
style: {
|
|
3329
3380
|
outline: "none"
|
|
3330
3381
|
}
|
|
3331
|
-
}, null, 8,
|
|
3382
|
+
}, null, 8, gr);
|
|
3332
3383
|
}
|
|
3333
|
-
const
|
|
3384
|
+
const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
3334
3385
|
name: "Custom Code",
|
|
3335
3386
|
static: !0,
|
|
3336
3387
|
requiredPermissions: ["editCode"],
|
|
@@ -3352,7 +3403,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3352
3403
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3353
3404
|
advanced: !0
|
|
3354
3405
|
}]
|
|
3355
|
-
},
|
|
3406
|
+
}, kr = y({
|
|
3356
3407
|
name: "builder-custom-code",
|
|
3357
3408
|
props: ["code", "replaceNodes"],
|
|
3358
3409
|
data() {
|
|
@@ -3411,15 +3462,15 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3411
3462
|
}
|
|
3412
3463
|
}
|
|
3413
3464
|
}
|
|
3414
|
-
}),
|
|
3415
|
-
function
|
|
3465
|
+
}), Cr = ["innerHTML"];
|
|
3466
|
+
function Tr(e, t, n, o, r, i) {
|
|
3416
3467
|
return d(), h("div", {
|
|
3417
3468
|
ref: "elementRef",
|
|
3418
|
-
class:
|
|
3469
|
+
class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3419
3470
|
innerHTML: e.code
|
|
3420
|
-
}, null, 10,
|
|
3471
|
+
}, null, 10, Cr);
|
|
3421
3472
|
}
|
|
3422
|
-
const
|
|
3473
|
+
const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
3423
3474
|
name: "Embed",
|
|
3424
3475
|
static: !0,
|
|
3425
3476
|
inputs: [{
|
|
@@ -3434,7 +3485,7 @@ const br = /* @__PURE__ */ v(mr, [["render", fr]]), gr = {
|
|
|
3434
3485
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3435
3486
|
hideFromUI: !0
|
|
3436
3487
|
}]
|
|
3437
|
-
},
|
|
3488
|
+
}, $r = ["text/javascript", "application/javascript", "application/ecmascript"], Rr = (e) => $r.includes(e.type), Er = y({
|
|
3438
3489
|
name: "builder-embed",
|
|
3439
3490
|
props: ["content"],
|
|
3440
3491
|
data() {
|
|
@@ -3467,7 +3518,7 @@ const br = /* @__PURE__ */ v(mr, [["render", fr]]), gr = {
|
|
|
3467
3518
|
this.scriptsInserted.push(n.src);
|
|
3468
3519
|
const o = document.createElement("script");
|
|
3469
3520
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3470
|
-
} else if (
|
|
3521
|
+
} else if (Rr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3471
3522
|
try {
|
|
3472
3523
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3473
3524
|
} catch (o) {
|
|
@@ -3476,15 +3527,15 @@ const br = /* @__PURE__ */ v(mr, [["render", fr]]), gr = {
|
|
|
3476
3527
|
}
|
|
3477
3528
|
}
|
|
3478
3529
|
}
|
|
3479
|
-
}),
|
|
3480
|
-
function
|
|
3530
|
+
}), Pr = ["innerHTML"];
|
|
3531
|
+
function Ar(e, t, n, o, r, i) {
|
|
3481
3532
|
return d(), h("div", {
|
|
3482
3533
|
class: "builder-embed",
|
|
3483
3534
|
ref: "elem",
|
|
3484
3535
|
innerHTML: e.content
|
|
3485
|
-
}, null, 8,
|
|
3536
|
+
}, null, 8, Pr);
|
|
3486
3537
|
}
|
|
3487
|
-
const
|
|
3538
|
+
const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
3488
3539
|
name: "Form:Form",
|
|
3489
3540
|
// editableTags: ['builder-form-error']
|
|
3490
3541
|
defaults: {
|
|
@@ -3721,10 +3772,10 @@ const Tr = /* @__PURE__ */ v(Sr, [["render", Cr]]), wr = {
|
|
|
3721
3772
|
builderComponents: !0,
|
|
3722
3773
|
builderLinkComponent: !0
|
|
3723
3774
|
}
|
|
3724
|
-
},
|
|
3775
|
+
}, Nr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Wr = () => {
|
|
3725
3776
|
const e = process.env.NODE_ENV || "production";
|
|
3726
|
-
return
|
|
3727
|
-
},
|
|
3777
|
+
return Nr.includes(e) ? e : "production";
|
|
3778
|
+
}, Dr = y({
|
|
3728
3779
|
name: "builder-form-component",
|
|
3729
3780
|
components: { Blocks: j },
|
|
3730
3781
|
props: [
|
|
@@ -3817,7 +3868,7 @@ const Tr = /* @__PURE__ */ v(Sr, [["render", Cr]]), wr = {
|
|
|
3817
3868
|
else {
|
|
3818
3869
|
const c = {};
|
|
3819
3870
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
3820
|
-
|
|
3871
|
+
et(c, f, m);
|
|
3821
3872
|
}), i = JSON.stringify(c);
|
|
3822
3873
|
}
|
|
3823
3874
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3835,10 +3886,10 @@ const Tr = /* @__PURE__ */ v(Sr, [["render", Cr]]), wr = {
|
|
|
3835
3886
|
});
|
|
3836
3887
|
return;
|
|
3837
3888
|
}
|
|
3838
|
-
const p = `${
|
|
3889
|
+
const p = `${Wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3839
3890
|
this.sendSubmissionsToEmail || ""
|
|
3840
3891
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
3841
|
-
|
|
3892
|
+
ot(b), fetch(b, {
|
|
3842
3893
|
body: i,
|
|
3843
3894
|
headers: r,
|
|
3844
3895
|
method: this.method || "post"
|
|
@@ -3859,7 +3910,7 @@ const Tr = /* @__PURE__ */ v(Sr, [["render", Cr]]), wr = {
|
|
|
3859
3910
|
), O.defaultPrevented))
|
|
3860
3911
|
return;
|
|
3861
3912
|
this.responseData = m, this.formState = "error";
|
|
3862
|
-
let B = this.errorMessagePath ?
|
|
3913
|
+
let B = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
|
|
3863
3914
|
typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
|
|
3864
3915
|
formErrorMessage: B
|
|
3865
3916
|
});
|
|
@@ -3901,11 +3952,11 @@ const Tr = /* @__PURE__ */ v(Sr, [["render", Cr]]), wr = {
|
|
|
3901
3952
|
}
|
|
3902
3953
|
}
|
|
3903
3954
|
}
|
|
3904
|
-
}),
|
|
3955
|
+
}), Or = ["validate", "action", "method", "name"], Ur = {
|
|
3905
3956
|
key: 2,
|
|
3906
3957
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
3907
3958
|
};
|
|
3908
|
-
function
|
|
3959
|
+
function xr(e, t, n, o, r, i) {
|
|
3909
3960
|
const s = k("Blocks");
|
|
3910
3961
|
return d(), h("form", I({
|
|
3911
3962
|
validate: e.validate,
|
|
@@ -3914,7 +3965,7 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3914
3965
|
method: e.method,
|
|
3915
3966
|
name: e.name,
|
|
3916
3967
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
3917
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3968
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3918
3969
|
V(e.$slots, "default", {}, void 0, !0),
|
|
3919
3970
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
3920
3971
|
key: 0,
|
|
@@ -3928,16 +3979,16 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3928
3979
|
blocks: e.sendingMessage,
|
|
3929
3980
|
context: e.builderContext
|
|
3930
3981
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
3931
|
-
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),
|
|
3932
3983
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
3933
3984
|
key: 3,
|
|
3934
3985
|
path: "successMessage",
|
|
3935
3986
|
blocks: e.successMessage,
|
|
3936
3987
|
context: e.builderContext
|
|
3937
3988
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
3938
|
-
], 16,
|
|
3989
|
+
], 16, Or);
|
|
3939
3990
|
}
|
|
3940
|
-
const
|
|
3991
|
+
const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c"]]), Lr = {
|
|
3941
3992
|
name: "Form:Input",
|
|
3942
3993
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3943
3994
|
inputs: [
|
|
@@ -3988,7 +4039,7 @@ const Br = /* @__PURE__ */ v(Rr, [["render", Ar], ["__scopeId", "data-v-77c7888c
|
|
|
3988
4039
|
borderStyle: "solid",
|
|
3989
4040
|
borderColor: "#ccc"
|
|
3990
4041
|
}
|
|
3991
|
-
},
|
|
4042
|
+
}, Hr = y({
|
|
3992
4043
|
name: "builder-form-input-component",
|
|
3993
4044
|
props: [
|
|
3994
4045
|
"attributes",
|
|
@@ -4002,8 +4053,8 @@ const Br = /* @__PURE__ */ v(Rr, [["render", Ar], ["__scopeId", "data-v-77c7888c
|
|
|
4002
4053
|
data() {
|
|
4003
4054
|
return { isEditing: A, filterAttrs: N };
|
|
4004
4055
|
}
|
|
4005
|
-
}),
|
|
4006
|
-
function
|
|
4056
|
+
}), Mr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4057
|
+
function zr(e, t, n, o, r, i) {
|
|
4007
4058
|
return d(), h("input", I({
|
|
4008
4059
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4009
4060
|
placeholder: e.placeholder,
|
|
@@ -4012,9 +4063,9 @@ function Dr(e, t, n, o, r, i) {
|
|
|
4012
4063
|
value: e.value,
|
|
4013
4064
|
defaultValue: e.defaultValue,
|
|
4014
4065
|
required: e.required
|
|
4015
|
-
}, 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);
|
|
4016
4067
|
}
|
|
4017
|
-
const
|
|
4068
|
+
const jr = /* @__PURE__ */ v(Hr, [["render", zr]]), qr = {
|
|
4018
4069
|
name: "Form:Select",
|
|
4019
4070
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4020
4071
|
defaultStyles: {
|
|
@@ -4056,28 +4107,28 @@ const Or = /* @__PURE__ */ v(Nr, [["render", Dr]]), xr = {
|
|
|
4056
4107
|
}],
|
|
4057
4108
|
static: !0,
|
|
4058
4109
|
noWrap: !0
|
|
4059
|
-
},
|
|
4110
|
+
}, Kr = y({
|
|
4060
4111
|
name: "builder-select-component",
|
|
4061
4112
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4062
4113
|
data() {
|
|
4063
4114
|
return { isEditing: A, filterAttrs: N };
|
|
4064
4115
|
}
|
|
4065
|
-
}),
|
|
4066
|
-
function
|
|
4116
|
+
}), Jr = ["value", "defaultValue", "name", "required"], Gr = ["value"];
|
|
4117
|
+
function Qr(e, t, n, o, r, i) {
|
|
4067
4118
|
return d(), h("select", I({
|
|
4068
4119
|
value: e.value,
|
|
4069
4120
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4070
4121
|
defaultValue: e.defaultValue,
|
|
4071
4122
|
name: e.name,
|
|
4072
4123
|
required: e.required
|
|
4073
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4074
|
-
(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", {
|
|
4075
4126
|
key: `${s.name}-${l}`,
|
|
4076
4127
|
value: s.value
|
|
4077
|
-
},
|
|
4078
|
-
], 16,
|
|
4128
|
+
}, de(s.name || s.value), 9, Gr))), 128))
|
|
4129
|
+
], 16, Jr);
|
|
4079
4130
|
}
|
|
4080
|
-
const
|
|
4131
|
+
const Yr = /* @__PURE__ */ v(Kr, [["render", Qr]]), _r = {
|
|
4081
4132
|
name: "Form:SubmitButton",
|
|
4082
4133
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4083
4134
|
defaultStyles: {
|
|
@@ -4102,17 +4153,17 @@ const Mr = /* @__PURE__ */ v(Ur, [["render", Hr]]), zr = {
|
|
|
4102
4153
|
// that only shows if advanced setting is flipped
|
|
4103
4154
|
// TODO: defaultChildren
|
|
4104
4155
|
// canHaveChildren: true,
|
|
4105
|
-
},
|
|
4156
|
+
}, Xr = y({
|
|
4106
4157
|
name: "builder-submit-button",
|
|
4107
4158
|
props: ["attributes", "text"],
|
|
4108
4159
|
data() {
|
|
4109
4160
|
return { filterAttrs: N };
|
|
4110
4161
|
}
|
|
4111
4162
|
});
|
|
4112
|
-
function
|
|
4113
|
-
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);
|
|
4114
4165
|
}
|
|
4115
|
-
const
|
|
4166
|
+
const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
|
|
4116
4167
|
name: "Form:TextArea",
|
|
4117
4168
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4118
4169
|
inputs: [{
|
|
@@ -4148,7 +4199,7 @@ const Kr = /* @__PURE__ */ v(jr, [["render", qr]]), Jr = {
|
|
|
4148
4199
|
},
|
|
4149
4200
|
static: !0,
|
|
4150
4201
|
noWrap: !0
|
|
4151
|
-
},
|
|
4202
|
+
}, ni = y({
|
|
4152
4203
|
name: "builder-textarea",
|
|
4153
4204
|
props: [
|
|
4154
4205
|
"attributes",
|
|
@@ -4161,17 +4212,17 @@ const Kr = /* @__PURE__ */ v(jr, [["render", qr]]), Jr = {
|
|
|
4161
4212
|
data() {
|
|
4162
4213
|
return { filterAttrs: N };
|
|
4163
4214
|
}
|
|
4164
|
-
}),
|
|
4165
|
-
function
|
|
4215
|
+
}), oi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4216
|
+
function ri(e, t, n, o, r, i) {
|
|
4166
4217
|
return d(), h("textarea", I({
|
|
4167
4218
|
placeholder: e.placeholder,
|
|
4168
4219
|
name: e.name,
|
|
4169
4220
|
value: e.value,
|
|
4170
4221
|
defaultValue: e.defaultValue,
|
|
4171
4222
|
required: e.required
|
|
4172
|
-
}, 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);
|
|
4173
4224
|
}
|
|
4174
|
-
const
|
|
4225
|
+
const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
4175
4226
|
name: "Raw:Img",
|
|
4176
4227
|
hideFromInsertMenu: !0,
|
|
4177
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",
|
|
@@ -4179,7 +4230,7 @@ const Xr = /* @__PURE__ */ v(Gr, [["render", Yr]]), Zr = {
|
|
|
4179
4230
|
name: "image",
|
|
4180
4231
|
bubble: !0,
|
|
4181
4232
|
type: "file",
|
|
4182
|
-
allowedFileTypes:
|
|
4233
|
+
allowedFileTypes: Ne,
|
|
4183
4234
|
required: !0
|
|
4184
4235
|
}, {
|
|
4185
4236
|
name: "backgroundSize",
|
|
@@ -4215,7 +4266,7 @@ const Xr = /* @__PURE__ */ v(Gr, [["render", Yr]]), Zr = {
|
|
|
4215
4266
|
defaultValue: 0.7041
|
|
4216
4267
|
}],
|
|
4217
4268
|
noWrap: !0
|
|
4218
|
-
},
|
|
4269
|
+
}, ai = y({
|
|
4219
4270
|
name: "builder-img-component",
|
|
4220
4271
|
props: [
|
|
4221
4272
|
"imgSrc",
|
|
@@ -4234,7 +4285,7 @@ const Xr = /* @__PURE__ */ v(Gr, [["render", Yr]]), Zr = {
|
|
|
4234
4285
|
srcSetToUse() {
|
|
4235
4286
|
const e = this.imgSrc || this.image;
|
|
4236
4287
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4237
|
-
return
|
|
4288
|
+
return oe(e);
|
|
4238
4289
|
},
|
|
4239
4290
|
imgAttrs() {
|
|
4240
4291
|
const e = {
|
|
@@ -4245,8 +4296,8 @@ const Xr = /* @__PURE__ */ v(Gr, [["render", Yr]]), Zr = {
|
|
|
4245
4296
|
return delete e.style, e;
|
|
4246
4297
|
}
|
|
4247
4298
|
}
|
|
4248
|
-
}),
|
|
4249
|
-
function
|
|
4299
|
+
}), li = ["alt", "title", "src"];
|
|
4300
|
+
function ci(e, t, n, o, r, i) {
|
|
4250
4301
|
var s;
|
|
4251
4302
|
return d(), h("img", I({
|
|
4252
4303
|
loading: "lazy",
|
|
@@ -4260,9 +4311,9 @@ function ti(e, t, n, o, r, i) {
|
|
|
4260
4311
|
aspectRatio: e.aspectRatio || void 0,
|
|
4261
4312
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4262
4313
|
}
|
|
4263
|
-
}, e.imgAttrs), null, 16,
|
|
4314
|
+
}, e.imgAttrs), null, 16, li);
|
|
4264
4315
|
}
|
|
4265
|
-
const
|
|
4316
|
+
const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
4266
4317
|
name: "Video",
|
|
4267
4318
|
canHaveChildren: !0,
|
|
4268
4319
|
defaultStyles: {
|
|
@@ -4273,14 +4324,14 @@ const ni = /* @__PURE__ */ v(_r, [["render", ti]]), oi = {
|
|
|
4273
4324
|
inputs: [{
|
|
4274
4325
|
name: "video",
|
|
4275
4326
|
type: "file",
|
|
4276
|
-
allowedFileTypes:
|
|
4327
|
+
allowedFileTypes: _o,
|
|
4277
4328
|
bubble: !0,
|
|
4278
4329
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4279
4330
|
required: !0
|
|
4280
4331
|
}, {
|
|
4281
4332
|
name: "posterImage",
|
|
4282
4333
|
type: "file",
|
|
4283
|
-
allowedFileTypes:
|
|
4334
|
+
allowedFileTypes: Ne,
|
|
4284
4335
|
helperText: "Image to show before the video plays"
|
|
4285
4336
|
}, {
|
|
4286
4337
|
name: "autoPlay",
|
|
@@ -4346,7 +4397,7 @@ const ni = /* @__PURE__ */ v(_r, [["render", ti]]), oi = {
|
|
|
4346
4397
|
shouldReceiveBuilderProps: {
|
|
4347
4398
|
builderBlock: !0
|
|
4348
4399
|
}
|
|
4349
|
-
},
|
|
4400
|
+
}, pi = y({
|
|
4350
4401
|
name: "builder-video",
|
|
4351
4402
|
props: [
|
|
4352
4403
|
"lazyLoad",
|
|
@@ -4419,16 +4470,16 @@ const ni = /* @__PURE__ */ v(_r, [["render", ti]]), oi = {
|
|
|
4419
4470
|
};
|
|
4420
4471
|
}
|
|
4421
4472
|
}
|
|
4422
|
-
}),
|
|
4473
|
+
}), mi = { style: {
|
|
4423
4474
|
position: "relative"
|
|
4424
|
-
} },
|
|
4475
|
+
} }, hi = ["preload", "poster"], fi = {
|
|
4425
4476
|
key: 1,
|
|
4426
4477
|
style: {
|
|
4427
4478
|
display: "flex",
|
|
4428
4479
|
flexDirection: "column",
|
|
4429
4480
|
alignItems: "stretch"
|
|
4430
4481
|
}
|
|
4431
|
-
},
|
|
4482
|
+
}, bi = {
|
|
4432
4483
|
key: 2,
|
|
4433
4484
|
style: {
|
|
4434
4485
|
pointerEvents: "none",
|
|
@@ -4442,9 +4493,9 @@ const ni = /* @__PURE__ */ v(_r, [["render", ti]]), oi = {
|
|
|
4442
4493
|
height: "100%"
|
|
4443
4494
|
}
|
|
4444
4495
|
};
|
|
4445
|
-
function
|
|
4496
|
+
function gi(e, t, n, o, r, i) {
|
|
4446
4497
|
var s, l, a, u, p, b, c;
|
|
4447
|
-
return d(), h("div",
|
|
4498
|
+
return d(), h("div", mi, [
|
|
4448
4499
|
K("video", I({
|
|
4449
4500
|
class: "builder-video",
|
|
4450
4501
|
ref: "videoRef",
|
|
@@ -4472,7 +4523,7 @@ function ci(e, t, n, o, r, i) {
|
|
|
4472
4523
|
src: e.video
|
|
4473
4524
|
}
|
|
4474
4525
|
), null, 16)
|
|
4475
|
-
], 16,
|
|
4526
|
+
], 16, hi),
|
|
4476
4527
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4477
4528
|
key: 0,
|
|
4478
4529
|
style: H({
|
|
@@ -4482,75 +4533,75 @@ function ci(e, t, n, o, r, i) {
|
|
|
4482
4533
|
fontSize: "0px"
|
|
4483
4534
|
})
|
|
4484
4535
|
}, null, 4)) : T("", !0),
|
|
4485
|
-
(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, [
|
|
4486
4537
|
V(e.$slots, "default")
|
|
4487
4538
|
])) : T("", !0),
|
|
4488
|
-
(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, [
|
|
4489
4540
|
V(e.$slots, "default")
|
|
4490
4541
|
])) : T("", !0)
|
|
4491
4542
|
]);
|
|
4492
4543
|
}
|
|
4493
|
-
const
|
|
4494
|
-
component:
|
|
4495
|
-
...
|
|
4496
|
-
}, {
|
|
4497
|
-
component: Tr,
|
|
4498
|
-
...gr
|
|
4544
|
+
const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
|
|
4545
|
+
component: wr,
|
|
4546
|
+
...Sr
|
|
4499
4547
|
}, {
|
|
4500
4548
|
component: Br,
|
|
4501
|
-
...
|
|
4549
|
+
...Ir
|
|
4502
4550
|
}, {
|
|
4503
|
-
component:
|
|
4551
|
+
component: Fr,
|
|
4504
4552
|
...Vr
|
|
4505
4553
|
}, {
|
|
4506
|
-
component:
|
|
4507
|
-
...
|
|
4554
|
+
component: jr,
|
|
4555
|
+
...Lr
|
|
4508
4556
|
}, {
|
|
4509
|
-
component:
|
|
4510
|
-
...
|
|
4557
|
+
component: ei,
|
|
4558
|
+
..._r
|
|
4511
4559
|
}, {
|
|
4512
|
-
component:
|
|
4513
|
-
...
|
|
4560
|
+
component: Yr,
|
|
4561
|
+
...qr
|
|
4514
4562
|
}, {
|
|
4515
|
-
component:
|
|
4516
|
-
...
|
|
4563
|
+
component: ii,
|
|
4564
|
+
...ti
|
|
4517
4565
|
}, {
|
|
4518
4566
|
component: di,
|
|
4519
|
-
...
|
|
4520
|
-
}], Ke = () => [{
|
|
4521
|
-
component: Lt,
|
|
4522
|
-
...Lo
|
|
4523
|
-
}, {
|
|
4524
|
-
component: ao,
|
|
4525
|
-
...Ho
|
|
4526
|
-
}, {
|
|
4527
|
-
component: uo,
|
|
4528
|
-
...Mo
|
|
4567
|
+
...si
|
|
4529
4568
|
}, {
|
|
4530
|
-
component:
|
|
4531
|
-
...
|
|
4569
|
+
component: yi,
|
|
4570
|
+
...ui
|
|
4571
|
+
}], Ye = () => [{
|
|
4572
|
+
component: jt,
|
|
4573
|
+
...Go
|
|
4532
4574
|
}, {
|
|
4533
|
-
component:
|
|
4575
|
+
component: fo,
|
|
4534
4576
|
...Qo
|
|
4535
4577
|
}, {
|
|
4536
|
-
component:
|
|
4578
|
+
component: yo,
|
|
4537
4579
|
...Yo
|
|
4538
4580
|
}, {
|
|
4539
|
-
component:
|
|
4540
|
-
...
|
|
4581
|
+
component: $o,
|
|
4582
|
+
...Xo
|
|
4541
4583
|
}, {
|
|
4542
|
-
component:
|
|
4543
|
-
...
|
|
4544
|
-
},
|
|
4545
|
-
component:
|
|
4546
|
-
...
|
|
4584
|
+
component: Po,
|
|
4585
|
+
...or
|
|
4586
|
+
}, {
|
|
4587
|
+
component: ar,
|
|
4588
|
+
...rr
|
|
4589
|
+
}, {
|
|
4590
|
+
component: os,
|
|
4591
|
+
...lr
|
|
4592
|
+
}, {
|
|
4593
|
+
component: vr,
|
|
4594
|
+
...fr
|
|
4595
|
+
}, ...Tt.includes(R) ? [{
|
|
4596
|
+
component: nr,
|
|
4597
|
+
...Zo
|
|
4547
4598
|
}] : [], {
|
|
4548
|
-
component:
|
|
4549
|
-
...
|
|
4599
|
+
component: hr,
|
|
4600
|
+
...cr
|
|
4550
4601
|
}, {
|
|
4551
|
-
component:
|
|
4552
|
-
...
|
|
4553
|
-
}, ...
|
|
4602
|
+
component: Jo,
|
|
4603
|
+
...Mo
|
|
4604
|
+
}, ...vi()], Si = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4554
4605
|
function getAndSetVariantId() {
|
|
4555
4606
|
function setCookie(name, value, days) {
|
|
4556
4607
|
let expires = '';
|
|
@@ -4609,7 +4660,7 @@ const di = /* @__PURE__ */ v(ri, [["render", ci]]), ui = () => [{
|
|
|
4609
4660
|
}).join('');
|
|
4610
4661
|
styleEl.innerHTML = newStyleStr;
|
|
4611
4662
|
}
|
|
4612
|
-
}`,
|
|
4663
|
+
}`, ki = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4613
4664
|
if (!navigator.cookieEnabled) {
|
|
4614
4665
|
return;
|
|
4615
4666
|
}
|
|
@@ -4643,37 +4694,37 @@ const di = /* @__PURE__ */ v(ri, [["render", ci]]), ui = () => [{
|
|
|
4643
4694
|
thisScriptEl?.remove();
|
|
4644
4695
|
}
|
|
4645
4696
|
return;
|
|
4646
|
-
}`,
|
|
4697
|
+
}`, Te = "builderIoAbTest", we = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4647
4698
|
...t,
|
|
4648
4699
|
testVariationId: t.id,
|
|
4649
4700
|
id: e == null ? void 0 : e.id
|
|
4650
|
-
})),
|
|
4701
|
+
})), Ci = ({
|
|
4651
4702
|
canTrack: e,
|
|
4652
4703
|
content: t
|
|
4653
|
-
}) => !(!(
|
|
4704
|
+
}) => !(!(ie(t).length > 0) || !e), Ti = (e) => e === "react" || e === "reactNative", wi = R === "angular", De = Ti(R), Ii = () => `
|
|
4654
4705
|
(function() {
|
|
4655
|
-
if (!window.${Ce}) {
|
|
4656
|
-
window.${Ce} = ${pi};
|
|
4657
|
-
}
|
|
4658
4706
|
if (!window.${Te}) {
|
|
4659
|
-
window.${Te} = ${
|
|
4660
|
-
}
|
|
4707
|
+
window.${Te} = ${Si};
|
|
4708
|
+
}
|
|
4709
|
+
if (!window.${we}) {
|
|
4710
|
+
window.${we} = ${ki};
|
|
4711
|
+
}${De ? `
|
|
4661
4712
|
var thisScriptEl = document.currentScript;
|
|
4662
4713
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4663
4714
|
})();
|
|
4664
|
-
`,
|
|
4665
|
-
window.${
|
|
4666
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4667
|
-
)`,
|
|
4715
|
+
`, $i = (e, t) => `
|
|
4716
|
+
window.${Te}(
|
|
4717
|
+
"${t}",${JSON.stringify(e)}, ${De}, ${wi}
|
|
4718
|
+
)`, Ri = ({
|
|
4668
4719
|
contentId: e,
|
|
4669
4720
|
variationId: t
|
|
4670
|
-
}) => `window.${
|
|
4671
|
-
"${t}", "${e}", ${
|
|
4721
|
+
}) => `window.${we}(
|
|
4722
|
+
"${t}", "${e}", ${De}
|
|
4672
4723
|
)`;
|
|
4673
|
-
function
|
|
4724
|
+
function _e(e) {
|
|
4674
4725
|
return Math.round(e * 1e3) / 1e3;
|
|
4675
4726
|
}
|
|
4676
|
-
const
|
|
4727
|
+
const Ei = (e, t, n = !0) => {
|
|
4677
4728
|
if (!(e instanceof HTMLElement))
|
|
4678
4729
|
return null;
|
|
4679
4730
|
let o = n ? e : e.parentElement;
|
|
@@ -4684,35 +4735,35 @@ const Si = (e, t, n = !0) => {
|
|
|
4684
4735
|
return o;
|
|
4685
4736
|
} while (o = o.parentElement);
|
|
4686
4737
|
return null;
|
|
4687
|
-
},
|
|
4738
|
+
}, Pi = (e) => Ei(e, (t) => {
|
|
4688
4739
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4689
4740
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4690
|
-
}),
|
|
4741
|
+
}), Xe = ({
|
|
4691
4742
|
event: e,
|
|
4692
4743
|
target: t
|
|
4693
4744
|
}) => {
|
|
4694
|
-
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);
|
|
4695
4746
|
return {
|
|
4696
4747
|
x: i,
|
|
4697
4748
|
y: s
|
|
4698
4749
|
};
|
|
4699
|
-
},
|
|
4700
|
-
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);
|
|
4701
4752
|
return {
|
|
4702
4753
|
targetBuilderElement: o || void 0,
|
|
4703
4754
|
metadata: {
|
|
4704
|
-
targetOffset: t ?
|
|
4755
|
+
targetOffset: t ? Xe({
|
|
4705
4756
|
event: e,
|
|
4706
4757
|
target: t
|
|
4707
4758
|
}) : void 0,
|
|
4708
|
-
builderTargetOffset: n ?
|
|
4759
|
+
builderTargetOffset: n ? Xe({
|
|
4709
4760
|
event: e,
|
|
4710
4761
|
target: n
|
|
4711
4762
|
}) : void 0,
|
|
4712
4763
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4713
4764
|
}
|
|
4714
4765
|
};
|
|
4715
|
-
},
|
|
4766
|
+
}, Bi = ["svelte", "qwik", "vue"], Vi = () => Bi.includes(R) && (A() || Ee()), Ni = (e) => {
|
|
4716
4767
|
var i;
|
|
4717
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);
|
|
4718
4769
|
let r = "";
|
|
@@ -4738,15 +4789,15 @@ font-weight: ${s};
|
|
|
4738
4789
|
`.trim());
|
|
4739
4790
|
}
|
|
4740
4791
|
return r;
|
|
4741
|
-
},
|
|
4792
|
+
}, Wi = ({
|
|
4742
4793
|
customFonts: e
|
|
4743
4794
|
}) => {
|
|
4744
4795
|
var t;
|
|
4745
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4746
|
-
},
|
|
4796
|
+
return ((t = e == null ? void 0 : e.map((n) => Ni(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4797
|
+
}, Di = ({
|
|
4747
4798
|
cssCode: e,
|
|
4748
4799
|
contentId: t
|
|
4749
|
-
}) => 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 = `
|
|
4750
4801
|
.builder-button {
|
|
4751
4802
|
all: unset;
|
|
4752
4803
|
}
|
|
@@ -4763,7 +4814,7 @@ font-weight: ${s};
|
|
|
4763
4814
|
text-align: inherit;
|
|
4764
4815
|
font-family: inherit;
|
|
4765
4816
|
}
|
|
4766
|
-
`,
|
|
4817
|
+
`, Ui = (e) => e ? "" : Oi, xi = (e) => `variant-${e}`, Fi = y({
|
|
4767
4818
|
name: "enable-editor",
|
|
4768
4819
|
components: { DynamicDiv: te },
|
|
4769
4820
|
props: [
|
|
@@ -4795,15 +4846,15 @@ font-weight: ${s};
|
|
|
4795
4846
|
httpReqsData: {},
|
|
4796
4847
|
httpReqsPending: {},
|
|
4797
4848
|
clicked: !1,
|
|
4798
|
-
builderContext:
|
|
4799
|
-
needsElementRefDivForEditing:
|
|
4800
|
-
getWrapperClassName:
|
|
4849
|
+
builderContext: be,
|
|
4850
|
+
needsElementRefDivForEditing: Vi,
|
|
4851
|
+
getWrapperClassName: xi
|
|
4801
4852
|
};
|
|
4802
4853
|
},
|
|
4803
4854
|
provide() {
|
|
4804
4855
|
const e = this;
|
|
4805
4856
|
return {
|
|
4806
|
-
[
|
|
4857
|
+
[be.key]: e.builderContextSignal
|
|
4807
4858
|
};
|
|
4808
4859
|
},
|
|
4809
4860
|
created() {
|
|
@@ -4815,13 +4866,13 @@ font-weight: ${s};
|
|
|
4815
4866
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4816
4867
|
new CustomEvent("initeditingbldr")
|
|
4817
4868
|
);
|
|
4818
|
-
const o = this.builderContextSignal.content && J(this.canTrack), r =
|
|
4869
|
+
const o = this.builderContextSignal.content && J(this.canTrack), r = $e({
|
|
4819
4870
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4820
4871
|
canTrack: !0
|
|
4821
4872
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4822
4873
|
if (o && i === r) {
|
|
4823
4874
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
4824
|
-
|
|
4875
|
+
Ue({
|
|
4825
4876
|
apiHost: this.apiHost,
|
|
4826
4877
|
type: "impression",
|
|
4827
4878
|
canTrack: !0,
|
|
@@ -4830,7 +4881,7 @@ font-weight: ${s};
|
|
|
4830
4881
|
variationId: r !== s ? r : void 0
|
|
4831
4882
|
});
|
|
4832
4883
|
}
|
|
4833
|
-
|
|
4884
|
+
Ee() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4834
4885
|
new CustomEvent("initpreviewingbldr")
|
|
4835
4886
|
);
|
|
4836
4887
|
}
|
|
@@ -4932,7 +4983,7 @@ font-weight: ${s};
|
|
|
4932
4983
|
this.builderContextSignal.content = n;
|
|
4933
4984
|
},
|
|
4934
4985
|
processMessage(e) {
|
|
4935
|
-
return
|
|
4986
|
+
return dt({
|
|
4936
4987
|
model: this.model,
|
|
4937
4988
|
trustedHosts: this.trustedHosts,
|
|
4938
4989
|
callbacks: {
|
|
@@ -4946,7 +4997,7 @@ font-weight: ${s};
|
|
|
4946
4997
|
});
|
|
4947
4998
|
},
|
|
4948
4999
|
animation: (t) => {
|
|
4949
|
-
|
|
5000
|
+
gt(t);
|
|
4950
5001
|
},
|
|
4951
5002
|
contentUpdate: (t, n) => {
|
|
4952
5003
|
this.mergeNewContent(t, n);
|
|
@@ -4961,14 +5012,14 @@ font-weight: ${s};
|
|
|
4961
5012
|
var t, n;
|
|
4962
5013
|
if (this.builderContextSignal.content) {
|
|
4963
5014
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4964
|
-
|
|
5015
|
+
Ue({
|
|
4965
5016
|
apiHost: this.apiHost,
|
|
4966
5017
|
type: "click",
|
|
4967
5018
|
canTrack: J(this.canTrack),
|
|
4968
5019
|
contentId: r,
|
|
4969
5020
|
apiKey: this.apiKey,
|
|
4970
5021
|
variationId: o !== r ? o : void 0,
|
|
4971
|
-
...
|
|
5022
|
+
...Ai(e),
|
|
4972
5023
|
unique: !this.clicked
|
|
4973
5024
|
});
|
|
4974
5025
|
}
|
|
@@ -5006,7 +5057,7 @@ font-weight: ${s};
|
|
|
5006
5057
|
url: l,
|
|
5007
5058
|
method: "GET"
|
|
5008
5059
|
};
|
|
5009
|
-
|
|
5060
|
+
ot(JSON.stringify(a));
|
|
5010
5061
|
const u = {
|
|
5011
5062
|
method: a.method,
|
|
5012
5063
|
headers: a.headers,
|
|
@@ -5034,7 +5085,7 @@ font-weight: ${s};
|
|
|
5034
5085
|
"builder:component:stateChange",
|
|
5035
5086
|
{
|
|
5036
5087
|
detail: {
|
|
5037
|
-
state:
|
|
5088
|
+
state: Ie(this.builderContextSignal.rootState),
|
|
5038
5089
|
ref: {
|
|
5039
5090
|
name: this.model
|
|
5040
5091
|
}
|
|
@@ -5044,7 +5095,7 @@ font-weight: ${s};
|
|
|
5044
5095
|
);
|
|
5045
5096
|
},
|
|
5046
5097
|
elementRef_onIniteditingbldr(e) {
|
|
5047
|
-
window.addEventListener("message", this.processMessage),
|
|
5098
|
+
window.addEventListener("message", this.processMessage), ct({
|
|
5048
5099
|
...this.locale ? {
|
|
5049
5100
|
locale: this.locale
|
|
5050
5101
|
} : {},
|
|
@@ -5064,7 +5115,7 @@ font-weight: ${s};
|
|
|
5064
5115
|
).forEach((t) => {
|
|
5065
5116
|
var n, o;
|
|
5066
5117
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5067
|
-
const r =
|
|
5118
|
+
const r = cn(t);
|
|
5068
5119
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5069
5120
|
}
|
|
5070
5121
|
}), window.addEventListener(
|
|
@@ -5077,7 +5128,7 @@ font-weight: ${s};
|
|
|
5077
5128
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5078
5129
|
`builder.overrides.${n}`
|
|
5079
5130
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5080
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5131
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Be({
|
|
5081
5132
|
model: this.model,
|
|
5082
5133
|
apiKey: this.apiKey,
|
|
5083
5134
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5092,9 +5143,9 @@ font-weight: ${s};
|
|
|
5092
5143
|
}
|
|
5093
5144
|
}
|
|
5094
5145
|
});
|
|
5095
|
-
function
|
|
5146
|
+
function Li(e, t, n, o, r, i) {
|
|
5096
5147
|
var s, l, a;
|
|
5097
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5148
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(_(e.ContentWrapper), I({
|
|
5098
5149
|
key: 0,
|
|
5099
5150
|
ref: "elementRef",
|
|
5100
5151
|
onClick: (u) => e.onClick(u),
|
|
@@ -5113,26 +5164,26 @@ function Vi(e, t, n, o, r, i) {
|
|
|
5113
5164
|
_: 3
|
|
5114
5165
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5115
5166
|
}
|
|
5116
|
-
const
|
|
5167
|
+
const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = y({
|
|
5117
5168
|
name: "content-styles",
|
|
5118
|
-
components: { InlinedStyles:
|
|
5169
|
+
components: { InlinedStyles: ue },
|
|
5119
5170
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5120
5171
|
data() {
|
|
5121
5172
|
return {
|
|
5122
5173
|
injectedStyles: `
|
|
5123
|
-
${
|
|
5174
|
+
${Di({
|
|
5124
5175
|
cssCode: this.cssCode,
|
|
5125
5176
|
contentId: this.contentId
|
|
5126
5177
|
})}
|
|
5127
|
-
${
|
|
5178
|
+
${Wi({
|
|
5128
5179
|
customFonts: this.customFonts
|
|
5129
5180
|
})}
|
|
5130
|
-
${
|
|
5181
|
+
${Ui(this.isNestedRender)}
|
|
5131
5182
|
`.trim()
|
|
5132
5183
|
};
|
|
5133
5184
|
}
|
|
5134
5185
|
});
|
|
5135
|
-
function
|
|
5186
|
+
function zi(e, t, n, o, r, i) {
|
|
5136
5187
|
const s = k("InlinedStyles");
|
|
5137
5188
|
return d(), S(s, {
|
|
5138
5189
|
id: "builderio-content",
|
|
@@ -5140,7 +5191,7 @@ function Di(e, t, n, o, r, i) {
|
|
|
5140
5191
|
nonce: e.nonce
|
|
5141
5192
|
}, null, 8, ["styles", "nonce"]);
|
|
5142
5193
|
}
|
|
5143
|
-
const
|
|
5194
|
+
const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
5144
5195
|
content: e,
|
|
5145
5196
|
data: t,
|
|
5146
5197
|
locale: n
|
|
@@ -5157,7 +5208,7 @@ const Oi = /* @__PURE__ */ v(Wi, [["render", Di]]), xi = ({
|
|
|
5157
5208
|
locale: n
|
|
5158
5209
|
} : {}
|
|
5159
5210
|
};
|
|
5160
|
-
},
|
|
5211
|
+
}, Ki = ({
|
|
5161
5212
|
content: e,
|
|
5162
5213
|
data: t
|
|
5163
5214
|
}) => e ? {
|
|
@@ -5167,12 +5218,12 @@ const Oi = /* @__PURE__ */ v(Wi, [["render", Di]]), xi = ({
|
|
|
5167
5218
|
...t
|
|
5168
5219
|
},
|
|
5169
5220
|
meta: e == null ? void 0 : e.meta
|
|
5170
|
-
} : void 0,
|
|
5221
|
+
} : void 0, Ji = Rt, Gi = y({
|
|
5171
5222
|
name: "content-component",
|
|
5172
5223
|
components: {
|
|
5173
|
-
EnableEditor:
|
|
5174
|
-
InlinedScript:
|
|
5175
|
-
ContentStyles:
|
|
5224
|
+
EnableEditor: Hi,
|
|
5225
|
+
InlinedScript: We,
|
|
5226
|
+
ContentStyles: ji,
|
|
5176
5227
|
Blocks: j,
|
|
5177
5228
|
DynamicDiv: te
|
|
5178
5229
|
},
|
|
@@ -5203,32 +5254,32 @@ const Oi = /* @__PURE__ */ v(Wi, [["render", Di]]), xi = ({
|
|
|
5203
5254
|
data() {
|
|
5204
5255
|
var e, t;
|
|
5205
5256
|
return {
|
|
5206
|
-
scriptStr:
|
|
5257
|
+
scriptStr: Ri({
|
|
5207
5258
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5208
5259
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5209
5260
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5210
5261
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5211
5262
|
}),
|
|
5212
5263
|
registeredComponents: [
|
|
5213
|
-
...
|
|
5264
|
+
...Ye(),
|
|
5214
5265
|
...this.customComponents || []
|
|
5215
5266
|
].reduce(
|
|
5216
5267
|
(n, { component: o, ...r }) => ({
|
|
5217
5268
|
...n,
|
|
5218
5269
|
[r.name]: {
|
|
5219
|
-
component:
|
|
5220
|
-
...
|
|
5270
|
+
component: Ji(o),
|
|
5271
|
+
...le(r)
|
|
5221
5272
|
}
|
|
5222
5273
|
}),
|
|
5223
5274
|
{}
|
|
5224
5275
|
),
|
|
5225
5276
|
builderContextSignal: {
|
|
5226
|
-
content:
|
|
5277
|
+
content: Ki({
|
|
5227
5278
|
content: this.content,
|
|
5228
5279
|
data: this.data
|
|
5229
5280
|
}),
|
|
5230
5281
|
localState: void 0,
|
|
5231
|
-
rootState:
|
|
5282
|
+
rootState: qi({
|
|
5232
5283
|
content: this.content,
|
|
5233
5284
|
data: this.data,
|
|
5234
5285
|
locale: this.locale
|
|
@@ -5239,12 +5290,12 @@ const Oi = /* @__PURE__ */ v(Wi, [["render", Di]]), xi = ({
|
|
|
5239
5290
|
apiKey: this.apiKey,
|
|
5240
5291
|
apiVersion: this.apiVersion,
|
|
5241
5292
|
componentInfos: [
|
|
5242
|
-
...
|
|
5293
|
+
...Ye(),
|
|
5243
5294
|
...this.customComponents || []
|
|
5244
5295
|
].reduce(
|
|
5245
5296
|
(n, { component: o, ...r }) => ({
|
|
5246
5297
|
...n,
|
|
5247
|
-
[r.name]:
|
|
5298
|
+
[r.name]: le(r)
|
|
5248
5299
|
}),
|
|
5249
5300
|
{}
|
|
5250
5301
|
),
|
|
@@ -5260,7 +5311,7 @@ const Oi = /* @__PURE__ */ v(Wi, [["render", Di]]), xi = ({
|
|
|
5260
5311
|
provide() {
|
|
5261
5312
|
const e = this;
|
|
5262
5313
|
return {
|
|
5263
|
-
[
|
|
5314
|
+
[rt.key]: {
|
|
5264
5315
|
registeredComponents: e.registeredComponents
|
|
5265
5316
|
}
|
|
5266
5317
|
};
|
|
@@ -5304,7 +5355,7 @@ const Oi = /* @__PURE__ */ v(Wi, [["render", Di]]), xi = ({
|
|
|
5304
5355
|
}
|
|
5305
5356
|
}
|
|
5306
5357
|
});
|
|
5307
|
-
function
|
|
5358
|
+
function Qi(e, t, n, o, r, i) {
|
|
5308
5359
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5309
5360
|
return d(), S(u, I({
|
|
5310
5361
|
apiHost: e.apiHost,
|
|
@@ -5353,12 +5404,12 @@ function Hi(e, t, n, o, r, i) {
|
|
|
5353
5404
|
_: 1
|
|
5354
5405
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5355
5406
|
}
|
|
5356
|
-
const
|
|
5407
|
+
const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
5357
5408
|
name: "content-variants",
|
|
5358
5409
|
components: {
|
|
5359
|
-
InlinedScript:
|
|
5360
|
-
InlinedStyles:
|
|
5361
|
-
ContentComponent:
|
|
5410
|
+
InlinedScript: We,
|
|
5411
|
+
InlinedStyles: ue,
|
|
5412
|
+
ContentComponent: Yi
|
|
5362
5413
|
},
|
|
5363
5414
|
props: [
|
|
5364
5415
|
"canTrack",
|
|
@@ -5384,16 +5435,16 @@ const Mi = /* @__PURE__ */ v(Li, [["render", Hi]]), zi = y({
|
|
|
5384
5435
|
],
|
|
5385
5436
|
data() {
|
|
5386
5437
|
return {
|
|
5387
|
-
shouldRenderVariants:
|
|
5438
|
+
shouldRenderVariants: Ci({
|
|
5388
5439
|
canTrack: J(this.canTrack),
|
|
5389
5440
|
content: this.content
|
|
5390
5441
|
}),
|
|
5391
|
-
shouldEmitPersonalizationFns:
|
|
5392
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5393
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5442
|
+
shouldEmitPersonalizationFns: xo(this.content),
|
|
5443
|
+
SDKS_SUPPORTING_PERSONALIZATION: Tt,
|
|
5444
|
+
getInitPersonalizationVariantsFnsScriptString: Fo,
|
|
5394
5445
|
TARGET: R,
|
|
5395
|
-
getInitVariantsFnsScriptString:
|
|
5396
|
-
getVariants:
|
|
5446
|
+
getInitVariantsFnsScriptString: Ii,
|
|
5447
|
+
getVariants: ie
|
|
5397
5448
|
};
|
|
5398
5449
|
},
|
|
5399
5450
|
mounted() {
|
|
@@ -5401,8 +5452,8 @@ const Mi = /* @__PURE__ */ v(Li, [["render", Hi]]), zi = y({
|
|
|
5401
5452
|
computed: {
|
|
5402
5453
|
updateCookieAndStylesScriptStr() {
|
|
5403
5454
|
var e;
|
|
5404
|
-
return
|
|
5405
|
-
|
|
5455
|
+
return $i(
|
|
5456
|
+
ie(this.content).map((t) => ({
|
|
5406
5457
|
id: t.testVariationId,
|
|
5407
5458
|
testRatio: t.testRatio
|
|
5408
5459
|
})),
|
|
@@ -5410,21 +5461,21 @@ const Mi = /* @__PURE__ */ v(Li, [["render", Hi]]), zi = y({
|
|
|
5410
5461
|
);
|
|
5411
5462
|
},
|
|
5412
5463
|
hideVariantsStyleString() {
|
|
5413
|
-
return
|
|
5464
|
+
return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5414
5465
|
},
|
|
5415
5466
|
defaultContent() {
|
|
5416
5467
|
var e;
|
|
5417
5468
|
return this.shouldRenderVariants ? {
|
|
5418
5469
|
...this.content,
|
|
5419
5470
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5420
|
-
} :
|
|
5471
|
+
} : vn({
|
|
5421
5472
|
item: this.content,
|
|
5422
5473
|
canTrack: J(this.canTrack)
|
|
5423
5474
|
});
|
|
5424
5475
|
}
|
|
5425
5476
|
}
|
|
5426
5477
|
});
|
|
5427
|
-
function
|
|
5478
|
+
function Xi(e, t, n, o, r, i) {
|
|
5428
5479
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5429
5480
|
return d(), h(w, null, [
|
|
5430
5481
|
e.shouldEmitPersonalizationFns ? (d(), h(w, { key: 0 }, [
|
|
@@ -5451,7 +5502,7 @@ function ji(e, t, n, o, r, i) {
|
|
|
5451
5502
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5452
5503
|
nonce: e.nonce || ""
|
|
5453
5504
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5454
|
-
(d(!0), h(w, null,
|
|
5505
|
+
(d(!0), h(w, null, x(e.getVariants(e.content), (u, p) => (d(), S(a, I({
|
|
5455
5506
|
key: u.testVariationId,
|
|
5456
5507
|
apiHost: e.apiHost,
|
|
5457
5508
|
isNestedRender: e.isNestedRender,
|
|
@@ -5505,13 +5556,13 @@ function ji(e, t, n, o, r, i) {
|
|
|
5505
5556
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5506
5557
|
], 64);
|
|
5507
5558
|
}
|
|
5508
|
-
const
|
|
5559
|
+
const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
5509
5560
|
builderContextValue: e,
|
|
5510
5561
|
symbol: t
|
|
5511
5562
|
}) => {
|
|
5512
5563
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5513
5564
|
(e != null && e.apiKey))
|
|
5514
|
-
return
|
|
5565
|
+
return Be({
|
|
5515
5566
|
model: t.model,
|
|
5516
5567
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5517
5568
|
apiVersion: e.apiVersion,
|
|
@@ -5523,9 +5574,9 @@ const qi = /* @__PURE__ */ v(zi, [["render", ji]]), Ki = async ({
|
|
|
5523
5574
|
}).catch((n) => {
|
|
5524
5575
|
F.error("Could not fetch symbol content: ", n);
|
|
5525
5576
|
});
|
|
5526
|
-
},
|
|
5577
|
+
}, ts = y({
|
|
5527
5578
|
name: "builder-symbol",
|
|
5528
|
-
components: { ContentVariants:
|
|
5579
|
+
components: { ContentVariants: Zi, DynamicDiv: te },
|
|
5529
5580
|
props: [
|
|
5530
5581
|
"symbol",
|
|
5531
5582
|
"builderComponents",
|
|
@@ -5582,7 +5633,7 @@ const qi = /* @__PURE__ */ v(zi, [["render", ji]]), Ki = async ({
|
|
|
5582
5633
|
methods: {
|
|
5583
5634
|
setContent() {
|
|
5584
5635
|
var e;
|
|
5585
|
-
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({
|
|
5586
5637
|
symbol: this.symbol,
|
|
5587
5638
|
builderContextValue: this.builderContext
|
|
5588
5639
|
}).then((t) => {
|
|
@@ -5592,10 +5643,10 @@ const qi = /* @__PURE__ */ v(zi, [["render", ji]]), Ki = async ({
|
|
|
5592
5643
|
}
|
|
5593
5644
|
}
|
|
5594
5645
|
});
|
|
5595
|
-
function
|
|
5646
|
+
function ns(e, t, n, o, r, i) {
|
|
5596
5647
|
var l, a, u, p, b, c, m;
|
|
5597
5648
|
const s = k("ContentVariants");
|
|
5598
|
-
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)), [
|
|
5599
5650
|
$(s, {
|
|
5600
5651
|
nonce: e.builderContext.nonce,
|
|
5601
5652
|
isNestedRender: !0,
|
|
@@ -5620,43 +5671,44 @@ function Gi(e, t, n, o, r, i) {
|
|
|
5620
5671
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5621
5672
|
], 16);
|
|
5622
5673
|
}
|
|
5623
|
-
const
|
|
5674
|
+
const os = /* @__PURE__ */ v(ts, [["render", ns]]);
|
|
5624
5675
|
export {
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5676
|
+
Dn as A,
|
|
5677
|
+
kt as B,
|
|
5678
|
+
fo as C,
|
|
5679
|
+
Be as D,
|
|
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,
|
|
5635
5687
|
v as _,
|
|
5636
5688
|
M as a,
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5689
|
+
be as b,
|
|
5690
|
+
ue as c,
|
|
5691
|
+
ms as d,
|
|
5640
5692
|
ee as e,
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5693
|
+
uo as f,
|
|
5694
|
+
fs as g,
|
|
5695
|
+
hs as h,
|
|
5696
|
+
gs as i,
|
|
5697
|
+
Ve as j,
|
|
5698
|
+
ln as k,
|
|
5699
|
+
jt as l,
|
|
5700
|
+
os as m,
|
|
5701
|
+
j as n,
|
|
5702
|
+
Zi as o,
|
|
5703
|
+
Ee as p,
|
|
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
|
|
5662
5714
|
};
|