@builder.io/sdk-vue 5.2.11 → 5.2.12
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-_vJybpjE.cjs} +1 -1
- package/lib/browser/{awaiter-quz2SFrg.js → awaiter-nbyjYGTm.js} +1 -1
- package/lib/browser/{block-wrapper-SCckT0M5.js → block-wrapper-H2uWRFfl.js} +3 -3
- package/lib/browser/{block-wrapper-vBu_Ygm8.cjs → block-wrapper-LaZs4cQn.cjs} +1 -1
- package/lib/browser/{component-ref-HWBSC66Y.cjs → component-ref-VXY67QLx.cjs} +1 -1
- package/lib/browser/{component-ref-owc3e0h8.js → component-ref-pzekKy-e.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-odFddSWh.cjs → get-block-properties-k4bCVM0L.cjs} +1 -1
- package/lib/browser/{get-block-properties-Hny6jqGG.js → get-block-properties-pJvtXJrC.js} +1 -1
- package/lib/browser/helpers/css.d.ts +2 -0
- package/lib/browser/{index-7bXAC1Q8.js → index-3BT-zvy_.js} +656 -643
- package/lib/browser/{index-uDRmkrr4.cjs → index-FQjXUcZa.cjs} +35 -35
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -4
- package/lib/browser/{live-edit-AUagAEej.cjs → live-edit-QecbSljF.cjs} +1 -1
- package/lib/browser/{live-edit-x4eHrcJh.js → live-edit-f81HRMwD.js} +1 -1
- package/lib/browser/{repeated-block-ZGXPYgA8.cjs → repeated-block-pzyWtt9k.cjs} +1 -1
- package/lib/browser/{repeated-block-uVi8A50N.js → repeated-block-z4-Tq0vb.js} +2 -2
- package/lib/browser/{style-wrapper-usFESjt5.js → style-wrapper-XQIDj12j.js} +72 -66
- package/lib/browser/style-wrapper-wOCgRtEf.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-RSfMls5f.js → awaiter-cczNFZYf.js} +1 -1
- package/lib/edge/{awaiter-zow2zgzw.cjs → awaiter-kqWOzygI.cjs} +1 -1
- package/lib/{node/block-wrapper-PUFgSKq_.js → edge/block-wrapper-TCG6J1wM.js} +3 -3
- package/lib/edge/{block-wrapper-4qKpWsP8.cjs → block-wrapper-WHxKG2JN.cjs} +1 -1
- package/lib/edge/{component-ref-1iPK0xOE.js → component-ref-ke62ODDh.js} +4 -4
- package/lib/edge/{component-ref-WdOIbmOU.cjs → component-ref-zHNGcCjv.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-bMVCvUX0.js → get-block-properties-GLe5pKJ-.js} +1 -1
- package/lib/edge/{get-block-properties-2E03ld67.cjs → get-block-properties-g3UUmViz.cjs} +1 -1
- package/lib/edge/helpers/css.d.ts +2 -0
- package/lib/edge/{index-Bgm0yCrN.js → index-NPl2zFFt.js} +974 -961
- package/lib/edge/{index-LWGIJNVx.cjs → index-Q1mE-A20.cjs} +43 -43
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{node/live-edit-xPik2aUh.cjs → edge/live-edit-NlcA1TEi.cjs} +1 -1
- package/lib/edge/{live-edit-tegdYGJO.js → live-edit-mfyAZvt8.js} +1 -1
- package/lib/edge/{repeated-block--MhEsXmR.cjs → repeated-block-fItsEFz7.cjs} +1 -1
- package/lib/edge/{repeated-block-yZJM5I60.js → repeated-block-lZx6tufR.js} +2 -2
- package/lib/edge/style-wrapper-9SPXPEOl.cjs +1 -0
- package/lib/edge/{style-wrapper-i8R7NpdY.js → style-wrapper-C9W8emFx.js} +72 -66
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-Vwjft2v-.cjs → awaiter-Se1nH_ny.cjs} +1 -1
- package/lib/node/{awaiter-o3ynOQKr.js → awaiter-if1ZrvLi.js} +1 -1
- package/lib/node/{block-wrapper-KX1-Y2Oq.cjs → block-wrapper-B7fQ00-T.cjs} +1 -1
- package/lib/{edge/block-wrapper-GT2d4luN.js → node/block-wrapper-Nkj9awCA.js} +3 -3
- package/lib/node/{component-ref-o3vjSyAQ.cjs → component-ref-BFKh4Vpb.cjs} +1 -1
- package/lib/node/{component-ref-HmJKie9z.js → component-ref-IheEdKTm.js} +5 -5
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-DGfMhs4M.js → get-block-properties-I05vUwHl.js} +2 -2
- package/lib/node/{get-block-properties-2yGkQVh7.cjs → get-block-properties-NSTAD_o0.cjs} +1 -1
- package/lib/node/helpers/css.d.ts +2 -0
- package/lib/node/{index-7xT7wMXt.cjs → index-jBWgo8LI.cjs} +35 -35
- package/lib/node/{index-JQgNoVXs.js → index-vP-oPL56.js} +594 -581
- 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-Qt7v1n8V.cjs} +1 -1
- package/lib/node/{live-edit-hxNZMHld.js → live-edit-yKSQ0yqr.js} +1 -1
- package/lib/node/{repeated-block-PvGSbsHD.js → repeated-block-EN_RXDs9.js} +2 -2
- package/lib/node/{repeated-block-LHiXlO3e.cjs → repeated-block-KjQeddn3.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-aeKfQiEQ.cjs → should-force-browser-runtime-in-node--WFVCCbl.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-ooRgTwqs.js → should-force-browser-runtime-in-node-cWvDK4Td.js} +1 -1
- package/lib/node/{style-wrapper-U-7exIwN.js → style-wrapper-GM8YDWdR.js} +70 -64
- package/lib/node/style-wrapper-tpv235Ma.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
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as Z, mergeProps as $, toHandlers as U, withCtx as D, renderSlot as N, resolveComponent as k, createTextVNode as
|
|
3
|
-
const
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as Z, mergeProps as $, toHandlers as U, withCtx as D, renderSlot as N, resolveComponent as k, createTextVNode as Wt, toDisplayString as pe, defineAsyncComponent as X, createVNode as R, renderList as L, createCommentVNode as T, h as et, createElementVNode as G, normalizeStyle as H, normalizeClass as ee, markRaw as Dt } from "vue";
|
|
3
|
+
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ut = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
4
4
|
function O(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,11 +11,11 @@ function O(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: Ut };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,7 +23,7 @@ const Ut = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function Ft(e, t, n, o, r, i) {
|
|
27
27
|
return e.isEmptyElement(e.TagName) ? (d(), S(Z(e.TagName), $({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
|
|
28
28
|
typeof e.TagName == "string" ? (d(), S(Z(e.TagName), $({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
29
|
default: D(() => [
|
|
@@ -38,9 +38,9 @@ function Lt(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
43
|
+
default: Re
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), E = "vue", M = () => {
|
|
45
45
|
switch (E) {
|
|
46
46
|
case "react":
|
|
@@ -54,9 +54,9 @@ const Ee = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Ht = 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 Ee = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function Mt(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 Ht(e, t, n, o, r, i) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: D(() => [
|
|
94
|
-
|
|
94
|
+
Wt(pe(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), zt = Symbol(), ve = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,43 +113,43 @@ const Mt = /* @__PURE__ */ v(Ft, [["render", Ht]]), jt = Symbol(), ye = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key: jt
|
|
117
|
-
}, zt = Symbol(), et = {
|
|
118
|
-
Components: { registeredComponents: {} },
|
|
119
116
|
key: zt
|
|
117
|
+
}, Kt = Symbol(), tt = {
|
|
118
|
+
Components: { registeredComponents: {} },
|
|
119
|
+
key: Kt
|
|
120
120
|
}, oe = "[Builder.io]: ", B = {
|
|
121
121
|
log: (...e) => console.log(oe, ...e),
|
|
122
122
|
error: (...e) => console.error(oe, ...e),
|
|
123
123
|
warn: (...e) => console.warn(oe, ...e),
|
|
124
124
|
debug: (...e) => console.debug(oe, ...e)
|
|
125
|
-
},
|
|
125
|
+
}, nt = (e, t, n) => {
|
|
126
126
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
127
127
|
return o === void 0 || o === e ? n : o;
|
|
128
128
|
};
|
|
129
129
|
function w() {
|
|
130
130
|
return typeof window < "u" && typeof document < "u";
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const qt = (e) => {
|
|
133
133
|
const t = {};
|
|
134
134
|
return e.forEach((n, o) => {
|
|
135
135
|
t[o] = n;
|
|
136
136
|
}), t;
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, ot = (e) => e instanceof URLSearchParams ? qt(e) : e, rt = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
|
+
function Gt() {
|
|
139
139
|
return w() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
141
|
function P(e) {
|
|
142
|
-
return
|
|
143
|
-
|
|
142
|
+
return Gt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
|
+
rt(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Jt = () => {
|
|
146
146
|
if (w()) {
|
|
147
147
|
const e = new URL(location.href);
|
|
148
148
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
149
149
|
} else
|
|
150
150
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
151
|
-
},
|
|
152
|
-
const e =
|
|
151
|
+
}, Qt = () => typeof navigator == "object" && navigator.userAgent || "", it = () => {
|
|
152
|
+
const e = Qt(), t = {
|
|
153
153
|
Android() {
|
|
154
154
|
return e.match(/Android/i);
|
|
155
155
|
},
|
|
@@ -168,22 +168,22 @@ const Gt = () => {
|
|
|
168
168
|
any() {
|
|
169
169
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
|
|
170
170
|
}
|
|
171
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
171
|
+
}, n = e.match(/Tablet|iPad/i), o = Jt();
|
|
172
172
|
return {
|
|
173
173
|
urlPath: o == null ? void 0 : o.pathname,
|
|
174
174
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
175
175
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
176
176
|
};
|
|
177
|
-
},
|
|
177
|
+
}, st = "5.2.12", at = () => ({
|
|
178
178
|
"X-Builder-SDK": E,
|
|
179
179
|
"X-Builder-SDK-GEN": "2",
|
|
180
|
-
"X-Builder-SDK-Version":
|
|
181
|
-
}), j = (e) => e != null,
|
|
180
|
+
"X-Builder-SDK-Version": st
|
|
181
|
+
}), j = (e) => e != null, Yt = (e) => {
|
|
182
182
|
if (e === "localhost" || e === "127.0.0.1")
|
|
183
183
|
return e;
|
|
184
184
|
const t = e.split(".");
|
|
185
185
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
186
|
-
},
|
|
186
|
+
}, me = ({
|
|
187
187
|
name: e,
|
|
188
188
|
canTrack: t
|
|
189
189
|
}) => {
|
|
@@ -194,14 +194,14 @@ const Gt = () => {
|
|
|
194
194
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, lt = async (e) => me(e), Xt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), Zt = [["secure", ""], ["SameSite", "None"]], _t = ({
|
|
198
198
|
name: e,
|
|
199
199
|
value: t,
|
|
200
200
|
expires: n
|
|
201
201
|
}) => {
|
|
202
|
-
const r = (w() ? location.protocol === "https:" : !0) ?
|
|
203
|
-
return
|
|
204
|
-
},
|
|
202
|
+
const r = (w() ? location.protocol === "https:" : !0) ? Zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Yt(window.location.hostname)], ...r];
|
|
203
|
+
return Xt(s);
|
|
204
|
+
}, Pe = async ({
|
|
205
205
|
name: e,
|
|
206
206
|
value: t,
|
|
207
207
|
expires: n,
|
|
@@ -210,7 +210,7 @@ const Gt = () => {
|
|
|
210
210
|
try {
|
|
211
211
|
if (!o)
|
|
212
212
|
return;
|
|
213
|
-
const r =
|
|
213
|
+
const r = _t({
|
|
214
214
|
name: e,
|
|
215
215
|
value: t,
|
|
216
216
|
expires: n
|
|
@@ -220,93 +220,93 @@ const Gt = () => {
|
|
|
220
220
|
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
function
|
|
223
|
+
function en() {
|
|
224
224
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
225
225
|
const t = Math.random() * 16 | 0;
|
|
226
226
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
return
|
|
229
|
+
function ct() {
|
|
230
|
+
return en().replace(/-/g, "");
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const dt = "builderSessionId", tn = async ({
|
|
233
233
|
canTrack: e
|
|
234
234
|
}) => {
|
|
235
235
|
if (!e)
|
|
236
236
|
return;
|
|
237
|
-
const t = await
|
|
238
|
-
name:
|
|
237
|
+
const t = await lt({
|
|
238
|
+
name: dt,
|
|
239
239
|
canTrack: e
|
|
240
240
|
});
|
|
241
241
|
if (j(t))
|
|
242
242
|
return t;
|
|
243
243
|
{
|
|
244
|
-
const n =
|
|
245
|
-
return
|
|
244
|
+
const n = nn();
|
|
245
|
+
return on({
|
|
246
246
|
id: n,
|
|
247
247
|
canTrack: e
|
|
248
248
|
}), n;
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, nn = () => ct(), on = ({
|
|
251
251
|
id: e,
|
|
252
252
|
canTrack: t
|
|
253
|
-
}) =>
|
|
254
|
-
name:
|
|
253
|
+
}) => Pe({
|
|
254
|
+
name: dt,
|
|
255
255
|
value: e,
|
|
256
256
|
canTrack: t
|
|
257
|
-
}),
|
|
257
|
+
}), ut = () => w() && typeof localStorage < "u" ? localStorage : void 0, rn = ({
|
|
258
258
|
key: e,
|
|
259
259
|
canTrack: t
|
|
260
260
|
}) => {
|
|
261
261
|
var n;
|
|
262
262
|
try {
|
|
263
|
-
return t ? (n =
|
|
263
|
+
return t ? (n = ut()) == null ? void 0 : n.getItem(e) : void 0;
|
|
264
264
|
} catch (o) {
|
|
265
265
|
console.debug("[LocalStorage] GET error: ", o);
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
-
},
|
|
268
|
+
}, sn = ({
|
|
269
269
|
key: e,
|
|
270
270
|
canTrack: t,
|
|
271
271
|
value: n
|
|
272
272
|
}) => {
|
|
273
273
|
var o;
|
|
274
274
|
try {
|
|
275
|
-
t && ((o =
|
|
275
|
+
t && ((o = ut()) == null || o.setItem(e, n));
|
|
276
276
|
} catch (r) {
|
|
277
277
|
console.debug("[LocalStorage] SET error: ", r);
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, pt = "builderVisitorId", an = ({
|
|
280
280
|
canTrack: e
|
|
281
281
|
}) => {
|
|
282
282
|
if (!e)
|
|
283
283
|
return;
|
|
284
|
-
const t =
|
|
285
|
-
key:
|
|
284
|
+
const t = rn({
|
|
285
|
+
key: pt,
|
|
286
286
|
canTrack: e
|
|
287
287
|
});
|
|
288
288
|
if (j(t))
|
|
289
289
|
return t;
|
|
290
290
|
{
|
|
291
|
-
const n =
|
|
292
|
-
return
|
|
291
|
+
const n = ln();
|
|
292
|
+
return cn({
|
|
293
293
|
id: n,
|
|
294
294
|
canTrack: e
|
|
295
295
|
}), n;
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, ln = () => ct(), cn = ({
|
|
298
298
|
id: e,
|
|
299
299
|
canTrack: t
|
|
300
|
-
}) =>
|
|
301
|
-
key:
|
|
300
|
+
}) => sn({
|
|
301
|
+
key: pt,
|
|
302
302
|
value: e,
|
|
303
303
|
canTrack: t
|
|
304
304
|
});
|
|
305
|
-
function
|
|
305
|
+
function Ae(e) {
|
|
306
306
|
var t;
|
|
307
307
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const dn = async ({
|
|
310
310
|
canTrack: e
|
|
311
311
|
}) => {
|
|
312
312
|
if (!e)
|
|
@@ -314,16 +314,16 @@ const cn = async ({
|
|
|
314
314
|
visitorId: void 0,
|
|
315
315
|
sessionId: void 0
|
|
316
316
|
};
|
|
317
|
-
const t = await
|
|
317
|
+
const t = await tn({
|
|
318
318
|
canTrack: e
|
|
319
|
-
}), n =
|
|
319
|
+
}), n = an({
|
|
320
320
|
canTrack: e
|
|
321
321
|
});
|
|
322
322
|
return {
|
|
323
323
|
sessionId: t,
|
|
324
324
|
visitorId: n
|
|
325
325
|
};
|
|
326
|
-
},
|
|
326
|
+
}, un = async ({
|
|
327
327
|
type: e,
|
|
328
328
|
canTrack: t,
|
|
329
329
|
apiKey: n,
|
|
@@ -337,14 +337,14 @@ const cn = async ({
|
|
|
337
337
|
url: location.href,
|
|
338
338
|
...o
|
|
339
339
|
},
|
|
340
|
-
...await
|
|
340
|
+
...await dn({
|
|
341
341
|
canTrack: t
|
|
342
342
|
}),
|
|
343
|
-
userAttributes:
|
|
343
|
+
userAttributes: it(),
|
|
344
344
|
ownerId: n
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
|
-
async function
|
|
347
|
+
async function le({
|
|
348
348
|
apiHost: e,
|
|
349
349
|
...t
|
|
350
350
|
}) {
|
|
@@ -355,24 +355,24 @@ async function ae({
|
|
|
355
355
|
if (!t.canTrack || P() || !(w() || E === "reactNative"))
|
|
356
356
|
return;
|
|
357
357
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
-
return
|
|
358
|
+
return Ae(o), fetch(o, {
|
|
359
359
|
method: "POST",
|
|
360
360
|
body: JSON.stringify({
|
|
361
|
-
events: [await
|
|
361
|
+
events: [await un(t)]
|
|
362
362
|
}),
|
|
363
363
|
headers: {
|
|
364
364
|
"content-type": "application/json",
|
|
365
|
-
...
|
|
365
|
+
...at()
|
|
366
366
|
},
|
|
367
367
|
mode: "cors"
|
|
368
368
|
}).catch((r) => {
|
|
369
369
|
console.error("Failed to track: ", r);
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
const
|
|
372
|
+
const Is = (e) => le({
|
|
373
373
|
...e,
|
|
374
374
|
canTrack: !0
|
|
375
|
-
}),
|
|
375
|
+
}), pn = ({
|
|
376
376
|
builder: e,
|
|
377
377
|
context: t,
|
|
378
378
|
event: n,
|
|
@@ -384,13 +384,13 @@ const ws = (e) => ae({
|
|
|
384
384
|
builder: e,
|
|
385
385
|
context: t,
|
|
386
386
|
event: n
|
|
387
|
-
}),
|
|
387
|
+
}), mn = (e) => ({
|
|
388
388
|
isEditing: P(),
|
|
389
389
|
isBrowser: w(),
|
|
390
390
|
isServer: !w(),
|
|
391
|
-
getUserAttributes: () =>
|
|
391
|
+
getUserAttributes: () => it(),
|
|
392
392
|
trackConversion: (t, n) => {
|
|
393
|
-
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 ||
|
|
393
|
+
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || le({
|
|
394
394
|
type: "conversion",
|
|
395
395
|
apiKey: e.apiKey,
|
|
396
396
|
canTrack: e.canTrack ?? !0,
|
|
@@ -404,10 +404,10 @@ const ws = (e) => ae({
|
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
}),
|
|
407
|
+
}), hn = (e, {
|
|
408
408
|
isExpression: t = !0
|
|
409
409
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
410
|
-
function
|
|
410
|
+
function mt({
|
|
411
411
|
rootState: e,
|
|
412
412
|
localState: t,
|
|
413
413
|
rootSetState: n
|
|
@@ -417,7 +417,7 @@ function pt({
|
|
|
417
417
|
if (t && r in t)
|
|
418
418
|
return t[r];
|
|
419
419
|
const i = o[r];
|
|
420
|
-
return typeof i == "object" && i !== null ?
|
|
420
|
+
return typeof i == "object" && i !== null ? mt({
|
|
421
421
|
rootState: i,
|
|
422
422
|
localState: void 0,
|
|
423
423
|
rootSetState: n ? (s) => {
|
|
@@ -432,7 +432,7 @@ function pt({
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const He = ({
|
|
436
436
|
code: e,
|
|
437
437
|
builder: t,
|
|
438
438
|
context: n,
|
|
@@ -441,11 +441,11 @@ const Fe = ({
|
|
|
441
441
|
rootSetState: i,
|
|
442
442
|
rootState: s
|
|
443
443
|
}) => {
|
|
444
|
-
const l =
|
|
444
|
+
const l = pn({
|
|
445
445
|
builder: t,
|
|
446
446
|
context: n,
|
|
447
447
|
event: o,
|
|
448
|
-
state:
|
|
448
|
+
state: mt({
|
|
449
449
|
rootState: s,
|
|
450
450
|
localState: r,
|
|
451
451
|
rootSetState: i
|
|
@@ -453,23 +453,23 @@ const Fe = ({
|
|
|
453
453
|
});
|
|
454
454
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
455
455
|
};
|
|
456
|
-
function
|
|
456
|
+
function fn() {
|
|
457
457
|
var e;
|
|
458
458
|
return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const bn = ({
|
|
461
461
|
shouldLogWarning: e
|
|
462
462
|
}) => {
|
|
463
463
|
var r;
|
|
464
|
-
if (!
|
|
464
|
+
if (!fn())
|
|
465
465
|
return !1;
|
|
466
466
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
467
467
|
return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
468
|
-
},
|
|
468
|
+
}, gn = (e) => (w() || bn({
|
|
469
469
|
shouldLogWarning: !0
|
|
470
|
-
}),
|
|
470
|
+
}), He(e)), yn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, vn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Sn = (e) => {
|
|
471
471
|
var t, n, o, r, i, s;
|
|
472
|
-
return ((o = (n = (t =
|
|
472
|
+
return ((o = (n = (t = yn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = vn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
473
473
|
};
|
|
474
474
|
function te({
|
|
475
475
|
code: e,
|
|
@@ -483,17 +483,17 @@ function te({
|
|
|
483
483
|
}) {
|
|
484
484
|
if (e.trim() === "")
|
|
485
485
|
return;
|
|
486
|
-
const a =
|
|
486
|
+
const a = Sn(e.trim());
|
|
487
487
|
if (a)
|
|
488
|
-
return
|
|
488
|
+
return nt({
|
|
489
489
|
...o,
|
|
490
490
|
...n
|
|
491
491
|
}, a);
|
|
492
492
|
const u = {
|
|
493
|
-
code:
|
|
493
|
+
code: hn(e, {
|
|
494
494
|
isExpression: s
|
|
495
495
|
}),
|
|
496
|
-
builder:
|
|
496
|
+
builder: mn(l),
|
|
497
497
|
context: t,
|
|
498
498
|
event: i,
|
|
499
499
|
rootSetState: r,
|
|
@@ -501,7 +501,7 @@ function te({
|
|
|
501
501
|
localState: n
|
|
502
502
|
};
|
|
503
503
|
try {
|
|
504
|
-
return
|
|
504
|
+
return gn(u);
|
|
505
505
|
} catch (p) {
|
|
506
506
|
B.error("Failed code evaluation: " + p.message, {
|
|
507
507
|
code: e
|
|
@@ -509,15 +509,15 @@ function te({
|
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function kn(e, t) {
|
|
513
513
|
var n;
|
|
514
514
|
return {
|
|
515
515
|
...(n = e.component) == null ? void 0 : n.options,
|
|
516
516
|
...e.options,
|
|
517
|
-
...
|
|
517
|
+
...Cn(e, t)
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
const
|
|
520
|
+
const Cn = (e, t) => {
|
|
521
521
|
var n, o;
|
|
522
522
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
523
523
|
return {
|
|
@@ -531,13 +531,13 @@ const kn = (e, t) => {
|
|
|
531
531
|
}))
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
|
-
function
|
|
534
|
+
function Tn(e, ...t) {
|
|
535
535
|
const n = Object.assign({}, e);
|
|
536
536
|
for (const o of t)
|
|
537
537
|
delete n[o];
|
|
538
538
|
return n;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function ce(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
541
541
|
if (e == null || typeof e != "object") {
|
|
542
542
|
t(e, (i) => {
|
|
543
543
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -547,57 +547,57 @@ function le(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
547
547
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
548
548
|
t(i, (a) => {
|
|
549
549
|
e[s] = a;
|
|
550
|
-
}),
|
|
550
|
+
}), ce(i, t, e, s, r);
|
|
551
551
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
552
552
|
t(s, (a) => {
|
|
553
553
|
e[i] = a;
|
|
554
|
-
}),
|
|
554
|
+
}), ce(s, t, e, i, r);
|
|
555
555
|
}));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ht(e) {
|
|
558
558
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function wn(e) {
|
|
561
561
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
562
562
|
return !1;
|
|
563
563
|
let t = !1;
|
|
564
|
-
return
|
|
565
|
-
if (
|
|
564
|
+
return ce(e, (n) => {
|
|
565
|
+
if (ht(n)) {
|
|
566
566
|
t = !0;
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
569
|
}), t;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
573
|
-
|
|
571
|
+
function In(e, t) {
|
|
572
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ce(e, (n, o) => {
|
|
573
|
+
ht(n) && o(n[t] ?? void 0);
|
|
574
574
|
}), e);
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function $n(e, t) {
|
|
577
577
|
var n, o;
|
|
578
|
-
return (n = e.component) != null && n.options &&
|
|
578
|
+
return (n = e.component) != null && n.options && wn((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 = In(e.component.options, t ?? "Default")), e;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const Be = (e) => JSON.parse(JSON.stringify(e)), ft = (e, t, n) => {
|
|
581
581
|
if (Object(e) !== e)
|
|
582
582
|
return e;
|
|
583
583
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
584
584
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function Se(e) {
|
|
587
587
|
if (e === null || typeof e != "object")
|
|
588
588
|
return e;
|
|
589
589
|
if (Array.isArray(e))
|
|
590
|
-
return e.map((n) =>
|
|
590
|
+
return e.map((n) => Se(n));
|
|
591
591
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
592
592
|
return e;
|
|
593
593
|
const t = {};
|
|
594
594
|
for (const n in e)
|
|
595
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
595
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Se(e[n]));
|
|
596
596
|
return t;
|
|
597
597
|
}
|
|
598
|
-
const
|
|
599
|
-
if (
|
|
600
|
-
const t =
|
|
598
|
+
const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) => {
|
|
599
|
+
if (En) {
|
|
600
|
+
const t = Be(e);
|
|
601
601
|
return {
|
|
602
602
|
...t,
|
|
603
603
|
properties: {
|
|
@@ -608,7 +608,7 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) =
|
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
} else {
|
|
611
|
-
const t =
|
|
611
|
+
const t = Se(Tn(e, "children", "meta"));
|
|
612
612
|
return {
|
|
613
613
|
...t,
|
|
614
614
|
properties: {
|
|
@@ -621,7 +621,7 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) =
|
|
|
621
621
|
meta: e.meta
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
},
|
|
624
|
+
}, Pn = ({
|
|
625
625
|
block: e,
|
|
626
626
|
context: t,
|
|
627
627
|
localState: n,
|
|
@@ -630,7 +630,7 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) =
|
|
|
630
630
|
}) => {
|
|
631
631
|
if (!e.bindings)
|
|
632
632
|
return e;
|
|
633
|
-
const i =
|
|
633
|
+
const i = Rn(e);
|
|
634
634
|
for (const s in e.bindings) {
|
|
635
635
|
const l = e.bindings[s], a = te({
|
|
636
636
|
code: l,
|
|
@@ -639,11 +639,11 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) =
|
|
|
639
639
|
rootSetState: r,
|
|
640
640
|
context: t
|
|
641
641
|
});
|
|
642
|
-
|
|
642
|
+
ft(i, s, a);
|
|
643
643
|
}
|
|
644
644
|
return i;
|
|
645
645
|
};
|
|
646
|
-
function
|
|
646
|
+
function An({
|
|
647
647
|
block: e,
|
|
648
648
|
context: t,
|
|
649
649
|
localState: n,
|
|
@@ -651,33 +651,33 @@ function Pn({
|
|
|
651
651
|
rootSetState: r
|
|
652
652
|
}) {
|
|
653
653
|
let i = e;
|
|
654
|
-
return i =
|
|
654
|
+
return i = Pn({
|
|
655
655
|
block: i,
|
|
656
656
|
localState: n,
|
|
657
657
|
rootState: o,
|
|
658
658
|
rootSetState: r,
|
|
659
659
|
context: t
|
|
660
|
-
}), i =
|
|
660
|
+
}), i = $n(i, o.locale), i;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ve(e) {
|
|
663
663
|
const t = e || (w() ? window.location.search : void 0);
|
|
664
|
-
return t ?
|
|
664
|
+
return t ? rt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
665
665
|
}
|
|
666
|
-
const
|
|
666
|
+
const Bn = (e) => ({
|
|
667
667
|
type: "builder.registerComponent",
|
|
668
|
-
data:
|
|
669
|
-
}),
|
|
668
|
+
data: de(e)
|
|
669
|
+
}), Vn = (e) => {
|
|
670
670
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
671
671
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
672
672
|
};
|
|
673
|
-
function
|
|
674
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
673
|
+
function de(e) {
|
|
674
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Vn(n) : n));
|
|
675
675
|
}
|
|
676
|
-
const
|
|
677
|
-
function
|
|
678
|
-
e === "plugin" && (t =
|
|
679
|
-
let n =
|
|
680
|
-
if (n || (n =
|
|
676
|
+
const Me = {};
|
|
677
|
+
function $s(e, t) {
|
|
678
|
+
e === "plugin" && (t = de(t));
|
|
679
|
+
let n = Me[e];
|
|
680
|
+
if (n || (n = Me[e] = []), n.push(t), w()) {
|
|
681
681
|
const o = {
|
|
682
682
|
type: "builder.register",
|
|
683
683
|
data: {
|
|
@@ -692,7 +692,7 @@ function Is(e, t) {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Es(e) {
|
|
696
696
|
var t;
|
|
697
697
|
if (w()) {
|
|
698
698
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -702,50 +702,50 @@ function $s(e) {
|
|
|
702
702
|
}, "*");
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
705
|
+
const je = {};
|
|
706
|
+
function Rs(e) {
|
|
707
707
|
if (w()) {
|
|
708
|
-
Object.assign(
|
|
708
|
+
Object.assign(je, e);
|
|
709
709
|
const t = {
|
|
710
710
|
type: "builder.settingsChange",
|
|
711
|
-
data:
|
|
711
|
+
data: je
|
|
712
712
|
};
|
|
713
713
|
parent.postMessage(t, "*");
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const
|
|
716
|
+
const ze = "builder.", Nn = "options.", bt = (e) => {
|
|
717
717
|
if (!e)
|
|
718
718
|
return {};
|
|
719
|
-
const t =
|
|
719
|
+
const t = ot(e), n = {};
|
|
720
720
|
return Object.keys(t).forEach((o) => {
|
|
721
|
-
if (o.startsWith(
|
|
722
|
-
const r = o.replace(
|
|
721
|
+
if (o.startsWith(ze)) {
|
|
722
|
+
const r = o.replace(ze, "").replace(Nn, "");
|
|
723
723
|
n[r] = t[o];
|
|
724
724
|
}
|
|
725
725
|
}), n;
|
|
726
|
-
},
|
|
726
|
+
}, On = () => {
|
|
727
727
|
if (!w())
|
|
728
728
|
return {};
|
|
729
729
|
const e = new URLSearchParams(window.location.search);
|
|
730
|
-
return
|
|
731
|
-
},
|
|
732
|
-
function
|
|
730
|
+
return bt(e);
|
|
731
|
+
}, Wn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
732
|
+
function gt(e, t) {
|
|
733
733
|
let n;
|
|
734
734
|
try {
|
|
735
735
|
n = new URL(t.origin);
|
|
736
736
|
} catch {
|
|
737
737
|
return !1;
|
|
738
738
|
}
|
|
739
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
739
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || Wn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
740
740
|
}
|
|
741
|
-
let
|
|
742
|
-
const
|
|
741
|
+
let Ke = !1;
|
|
742
|
+
const yt = (e) => {
|
|
743
743
|
var t, n;
|
|
744
|
-
|
|
744
|
+
Ke || (Ke = !0, w() && ((t = window.parent) == null || t.postMessage({
|
|
745
745
|
type: "builder.sdkInfo",
|
|
746
746
|
data: {
|
|
747
747
|
target: E,
|
|
748
|
-
version:
|
|
748
|
+
version: st,
|
|
749
749
|
supportsPatchUpdates: !1,
|
|
750
750
|
// Supports builder-model="..." attribute which is needed to
|
|
751
751
|
// scope our '+ add block' button styling
|
|
@@ -763,7 +763,7 @@ const gt = (e) => {
|
|
|
763
763
|
}
|
|
764
764
|
}, "*"), window.addEventListener("message", (o) => {
|
|
765
765
|
var i, s;
|
|
766
|
-
if (!
|
|
766
|
+
if (!gt(e.trustedHosts, o))
|
|
767
767
|
return;
|
|
768
768
|
const {
|
|
769
769
|
data: r
|
|
@@ -804,12 +804,12 @@ const gt = (e) => {
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
})));
|
|
807
|
-
},
|
|
807
|
+
}, vt = ({
|
|
808
808
|
model: e,
|
|
809
809
|
trustedHosts: t,
|
|
810
810
|
callbacks: n
|
|
811
811
|
}) => (o) => {
|
|
812
|
-
if (!
|
|
812
|
+
if (!gt(t, o))
|
|
813
813
|
return;
|
|
814
814
|
const {
|
|
815
815
|
data: r
|
|
@@ -835,7 +835,7 @@ const gt = (e) => {
|
|
|
835
835
|
break;
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
},
|
|
838
|
+
}, Ps = ({
|
|
839
839
|
model: e,
|
|
840
840
|
apiKey: t,
|
|
841
841
|
callback: n,
|
|
@@ -844,11 +844,11 @@ const gt = (e) => {
|
|
|
844
844
|
if (!w)
|
|
845
845
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
846
846
|
};
|
|
847
|
-
|
|
847
|
+
yt({
|
|
848
848
|
modelName: e,
|
|
849
849
|
apiKey: t
|
|
850
850
|
});
|
|
851
|
-
const r =
|
|
851
|
+
const r = vt({
|
|
852
852
|
callbacks: {
|
|
853
853
|
contentUpdate: n,
|
|
854
854
|
animation: () => {
|
|
@@ -864,24 +864,24 @@ const gt = (e) => {
|
|
|
864
864
|
return window.addEventListener("message", r), () => {
|
|
865
865
|
window.removeEventListener("message", r);
|
|
866
866
|
};
|
|
867
|
-
},
|
|
867
|
+
}, Dn = "builder.tests", Ne = (e) => `${Dn}.${e}`, xn = ({
|
|
868
868
|
contentId: e
|
|
869
|
-
}) =>
|
|
870
|
-
name:
|
|
869
|
+
}) => lt({
|
|
870
|
+
name: Ne(e),
|
|
871
871
|
canTrack: !0
|
|
872
|
-
}),
|
|
872
|
+
}), Un = ({
|
|
873
873
|
contentId: e
|
|
874
|
-
}) =>
|
|
875
|
-
name:
|
|
874
|
+
}) => me({
|
|
875
|
+
name: Ne(e),
|
|
876
876
|
canTrack: !0
|
|
877
|
-
}),
|
|
877
|
+
}), Ln = ({
|
|
878
878
|
contentId: e,
|
|
879
879
|
value: t
|
|
880
|
-
}) =>
|
|
881
|
-
name:
|
|
880
|
+
}) => Pe({
|
|
881
|
+
name: Ne(e),
|
|
882
882
|
value: t,
|
|
883
883
|
canTrack: !0
|
|
884
|
-
}),
|
|
884
|
+
}), St = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, Fn = ({
|
|
885
885
|
id: e,
|
|
886
886
|
variations: t
|
|
887
887
|
}) => {
|
|
@@ -894,15 +894,15 @@ const gt = (e) => {
|
|
|
894
894
|
return i;
|
|
895
895
|
}
|
|
896
896
|
return e;
|
|
897
|
-
},
|
|
898
|
-
const t =
|
|
899
|
-
return
|
|
897
|
+
}, kt = (e) => {
|
|
898
|
+
const t = Fn(e);
|
|
899
|
+
return Ln({
|
|
900
900
|
contentId: e.id,
|
|
901
901
|
value: t
|
|
902
902
|
}).catch((n) => {
|
|
903
903
|
B.error("could not store A/B test variation: ", n);
|
|
904
904
|
}), t;
|
|
905
|
-
},
|
|
905
|
+
}, Ct = ({
|
|
906
906
|
item: e,
|
|
907
907
|
testGroupId: t
|
|
908
908
|
}) => {
|
|
@@ -916,7 +916,7 @@ const gt = (e) => {
|
|
|
916
916
|
testVariationId: n.id,
|
|
917
917
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
918
918
|
};
|
|
919
|
-
},
|
|
919
|
+
}, Hn = ({
|
|
920
920
|
item: e,
|
|
921
921
|
canTrack: t
|
|
922
922
|
}) => {
|
|
@@ -924,14 +924,14 @@ const gt = (e) => {
|
|
|
924
924
|
return e;
|
|
925
925
|
if (!e)
|
|
926
926
|
return;
|
|
927
|
-
if (!
|
|
927
|
+
if (!St(e))
|
|
928
928
|
return e;
|
|
929
|
-
const n =
|
|
929
|
+
const n = Un({
|
|
930
930
|
contentId: e.id
|
|
931
|
-
}) ||
|
|
931
|
+
}) || kt({
|
|
932
932
|
variations: e.variations,
|
|
933
933
|
id: e.id
|
|
934
|
-
}), o =
|
|
934
|
+
}), o = Ct({
|
|
935
935
|
item: e,
|
|
936
936
|
testGroupId: n
|
|
937
937
|
});
|
|
@@ -939,18 +939,18 @@ const gt = (e) => {
|
|
|
939
939
|
...e,
|
|
940
940
|
...o
|
|
941
941
|
};
|
|
942
|
-
},
|
|
942
|
+
}, Mn = async ({
|
|
943
943
|
item: e,
|
|
944
944
|
canTrack: t
|
|
945
945
|
}) => {
|
|
946
|
-
if (!t || !
|
|
946
|
+
if (!t || !St(e))
|
|
947
947
|
return e;
|
|
948
|
-
const o = await
|
|
948
|
+
const o = await xn({
|
|
949
949
|
contentId: e.id
|
|
950
|
-
}) ||
|
|
950
|
+
}) || kt({
|
|
951
951
|
variations: e.variations,
|
|
952
952
|
id: e.id
|
|
953
|
-
}), r =
|
|
953
|
+
}), r = Ct({
|
|
954
954
|
item: e,
|
|
955
955
|
testGroupId: o
|
|
956
956
|
});
|
|
@@ -959,8 +959,8 @@ const gt = (e) => {
|
|
|
959
959
|
...r
|
|
960
960
|
};
|
|
961
961
|
};
|
|
962
|
-
const
|
|
963
|
-
function
|
|
962
|
+
const qe = "builder.userAttributes";
|
|
963
|
+
function Ge() {
|
|
964
964
|
let e = !0;
|
|
965
965
|
const t = /* @__PURE__ */ new Set();
|
|
966
966
|
return {
|
|
@@ -971,15 +971,15 @@ function qe() {
|
|
|
971
971
|
...this.getUserAttributes(),
|
|
972
972
|
...n
|
|
973
973
|
};
|
|
974
|
-
|
|
975
|
-
name:
|
|
974
|
+
Pe({
|
|
975
|
+
name: qe,
|
|
976
976
|
value: JSON.stringify(o),
|
|
977
977
|
canTrack: e
|
|
978
978
|
}), t.forEach((r) => r(o));
|
|
979
979
|
},
|
|
980
980
|
getUserAttributes() {
|
|
981
|
-
return w() ? JSON.parse(
|
|
982
|
-
name:
|
|
981
|
+
return w() ? JSON.parse(me({
|
|
982
|
+
name: qe,
|
|
983
983
|
canTrack: e
|
|
984
984
|
}) || "{}") : {};
|
|
985
985
|
},
|
|
@@ -995,45 +995,45 @@ function qe() {
|
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
let
|
|
999
|
-
w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
1000
|
-
const
|
|
1001
|
-
|
|
998
|
+
let ke;
|
|
999
|
+
w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ge()), ke = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ke = Ge();
|
|
1000
|
+
const ue = ke, As = (e) => {
|
|
1001
|
+
ue.setUserAttributes(e);
|
|
1002
1002
|
}, J = (e) => {
|
|
1003
1003
|
const t = j(e) ? e : !0;
|
|
1004
|
-
return
|
|
1004
|
+
return ue.setCanTrack(t), t;
|
|
1005
1005
|
};
|
|
1006
|
-
function
|
|
1006
|
+
function jn() {
|
|
1007
1007
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const e =
|
|
1009
|
+
function zn() {
|
|
1010
|
+
const e = jn().fetch;
|
|
1011
1011
|
if (typeof e > "u")
|
|
1012
1012
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1013
1013
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1014
1014
|
return e;
|
|
1015
1015
|
}
|
|
1016
|
-
const
|
|
1017
|
-
function
|
|
1016
|
+
const Kn = zn();
|
|
1017
|
+
function Ce(e, t = null, n = ".") {
|
|
1018
1018
|
return Object.keys(e).reduce((o, r) => {
|
|
1019
1019
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
1020
1020
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
1021
1021
|
...o,
|
|
1022
|
-
...
|
|
1022
|
+
...Ce(i, s, n)
|
|
1023
1023
|
} : {
|
|
1024
1024
|
...o,
|
|
1025
1025
|
[s]: i
|
|
1026
1026
|
};
|
|
1027
1027
|
}, {});
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Tt(e, t, n = {}) {
|
|
1030
1030
|
for (const o in e) {
|
|
1031
1031
|
const r = e[o], i = t ? t + "." + o : o;
|
|
1032
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
1032
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Tt(r, i, n) : n[i] = r;
|
|
1033
1033
|
}
|
|
1034
1034
|
return n;
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function qn(e) {
|
|
1037
1037
|
const t = {};
|
|
1038
1038
|
for (const n in e) {
|
|
1039
1039
|
const o = n.split(".");
|
|
@@ -1045,7 +1045,7 @@ function Kn(e) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return t;
|
|
1047
1047
|
}
|
|
1048
|
-
const
|
|
1048
|
+
const Gn = "v3", Je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (e) => {
|
|
1049
1049
|
const {
|
|
1050
1050
|
limit: t = 30,
|
|
1051
1051
|
userAttributes: n,
|
|
@@ -1055,7 +1055,7 @@ const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ne = (
|
|
|
1055
1055
|
enrich: s,
|
|
1056
1056
|
enrichOptions: l,
|
|
1057
1057
|
locale: a,
|
|
1058
|
-
apiVersion: u =
|
|
1058
|
+
apiVersion: u = Gn,
|
|
1059
1059
|
fields: p,
|
|
1060
1060
|
omit: b,
|
|
1061
1061
|
offset: c,
|
|
@@ -1072,78 +1072,78 @@ const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ne = (
|
|
|
1072
1072
|
const V = t !== 1, q = x || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
|
|
1073
1073
|
C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(V)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
|
|
1074
1074
|
let z = n || {};
|
|
1075
|
-
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 A == "boolean" && C.searchParams.set("includeUnpublished", String(A)), m &&
|
|
1076
|
-
const W =
|
|
1075
|
+
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 A == "boolean" && C.searchParams.set("includeUnpublished", String(A)), m && Je(m) && C.searchParams.set("cacheSeconds", String(m)), f && Je(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
1076
|
+
const W = Ce({
|
|
1077
1077
|
sort: g
|
|
1078
1078
|
});
|
|
1079
1079
|
for (const F in W)
|
|
1080
1080
|
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1081
1081
|
}
|
|
1082
1082
|
const Q = {
|
|
1083
|
-
...
|
|
1084
|
-
...
|
|
1083
|
+
...On(),
|
|
1084
|
+
...ot(e.options || {})
|
|
1085
1085
|
};
|
|
1086
1086
|
z = {
|
|
1087
1087
|
...z,
|
|
1088
|
-
...
|
|
1088
|
+
...Yn(Q)
|
|
1089
1089
|
};
|
|
1090
|
-
const Y =
|
|
1090
|
+
const Y = Ce(Q);
|
|
1091
1091
|
for (const W in Y)
|
|
1092
1092
|
C.searchParams.set(W, String(Y[W]));
|
|
1093
1093
|
if (Object.keys(z).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(z)), o) {
|
|
1094
|
-
const W =
|
|
1094
|
+
const W = Tt({
|
|
1095
1095
|
query: o
|
|
1096
1096
|
});
|
|
1097
1097
|
for (const F in W)
|
|
1098
1098
|
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1099
1099
|
}
|
|
1100
1100
|
return C;
|
|
1101
|
-
},
|
|
1101
|
+
}, Jn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Qn = (e) => {
|
|
1102
1102
|
const t = {};
|
|
1103
1103
|
for (const n in e)
|
|
1104
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
1104
|
+
n.startsWith("userAttributes.") && (t[n] = Jn(e[n]), delete e[n]);
|
|
1105
1105
|
return t;
|
|
1106
|
-
},
|
|
1106
|
+
}, Yn = (e) => {
|
|
1107
1107
|
if (w() && e.preview === "BUILDER_STUDIO") {
|
|
1108
1108
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1109
|
-
const t =
|
|
1109
|
+
const t = Qn(e), {
|
|
1110
1110
|
userAttributes: n
|
|
1111
|
-
} =
|
|
1111
|
+
} = qn(t);
|
|
1112
1112
|
return n;
|
|
1113
1113
|
}
|
|
1114
1114
|
return {};
|
|
1115
|
-
},
|
|
1116
|
-
async function
|
|
1115
|
+
}, Xn = (e) => "results" in e;
|
|
1116
|
+
async function We(e) {
|
|
1117
1117
|
var o;
|
|
1118
1118
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1119
1119
|
t && (e.locale = t, e.userAttributes = {
|
|
1120
1120
|
locale: t,
|
|
1121
1121
|
...e.userAttributes
|
|
1122
1122
|
});
|
|
1123
|
-
const n = await
|
|
1123
|
+
const n = await eo({
|
|
1124
1124
|
...e,
|
|
1125
1125
|
limit: 1
|
|
1126
1126
|
});
|
|
1127
1127
|
return n && n[0] || null;
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1129
|
+
const Zn = async (e) => {
|
|
1130
1130
|
var s;
|
|
1131
|
-
const t =
|
|
1131
|
+
const t = Oe(e), n = e.fetch ?? Kn, o = {
|
|
1132
1132
|
...e.fetchOptions,
|
|
1133
1133
|
headers: {
|
|
1134
1134
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1135
|
-
...
|
|
1135
|
+
...at()
|
|
1136
1136
|
}
|
|
1137
1137
|
};
|
|
1138
1138
|
return await (await n(t.href, o)).json();
|
|
1139
|
-
},
|
|
1139
|
+
}, _n = async (e, t, n = Oe(e)) => {
|
|
1140
1140
|
const o = J(e.canTrack);
|
|
1141
1141
|
if (n.search.includes("preview="), !o || !(w() || E === "reactNative"))
|
|
1142
1142
|
return t.results;
|
|
1143
1143
|
try {
|
|
1144
1144
|
const r = [];
|
|
1145
1145
|
for (const i of t.results)
|
|
1146
|
-
r.push(await
|
|
1146
|
+
r.push(await Mn({
|
|
1147
1147
|
item: i,
|
|
1148
1148
|
canTrack: o
|
|
1149
1149
|
}));
|
|
@@ -1153,17 +1153,17 @@ const Xn = async (e) => {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return t.results;
|
|
1155
1155
|
};
|
|
1156
|
-
async function
|
|
1157
|
-
const t =
|
|
1158
|
-
if (!
|
|
1156
|
+
async function eo(e) {
|
|
1157
|
+
const t = Oe(e), n = await Zn(e);
|
|
1158
|
+
if (!Xn(n))
|
|
1159
1159
|
throw B.error("Error fetching data. ", {
|
|
1160
1160
|
url: t,
|
|
1161
1161
|
content: n,
|
|
1162
1162
|
options: e
|
|
1163
1163
|
}), n;
|
|
1164
|
-
return
|
|
1164
|
+
return _n(e, n);
|
|
1165
1165
|
}
|
|
1166
|
-
const
|
|
1166
|
+
const Bs = async (e) => {
|
|
1167
1167
|
var o, r, i;
|
|
1168
1168
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1169
1169
|
...e,
|
|
@@ -1175,15 +1175,15 @@ const As = async (e) => {
|
|
|
1175
1175
|
urlPath: t
|
|
1176
1176
|
} : {}
|
|
1177
1177
|
},
|
|
1178
|
-
options:
|
|
1178
|
+
options: bt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1179
1179
|
};
|
|
1180
1180
|
return {
|
|
1181
1181
|
apiKey: n.apiKey,
|
|
1182
1182
|
model: n.model,
|
|
1183
|
-
content: await
|
|
1183
|
+
content: await We(n)
|
|
1184
1184
|
};
|
|
1185
|
-
},
|
|
1186
|
-
function
|
|
1185
|
+
}, De = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1186
|
+
function to(e, t, n = {}) {
|
|
1187
1187
|
let o, r, i, s = null, l = 0;
|
|
1188
1188
|
const a = function() {
|
|
1189
1189
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -1205,55 +1205,55 @@ function _(e, ...t) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
return n;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function no(e) {
|
|
1209
1209
|
for (const t of e)
|
|
1210
1210
|
switch (t.trigger) {
|
|
1211
1211
|
case "pageLoad":
|
|
1212
|
-
|
|
1212
|
+
$t(t);
|
|
1213
1213
|
break;
|
|
1214
1214
|
case "scrollInView":
|
|
1215
|
-
|
|
1215
|
+
ro(t);
|
|
1216
1216
|
break;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function wt(e) {
|
|
1220
1220
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
const n =
|
|
1222
|
+
function It(e, t) {
|
|
1223
|
+
const n = oo(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1224
1224
|
for (const l of s)
|
|
1225
1225
|
for (const a of n)
|
|
1226
1226
|
a in l || (l[a] = o[a]);
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function oo(e) {
|
|
1229
1229
|
const t = [];
|
|
1230
1230
|
for (const n of e.steps)
|
|
1231
1231
|
for (const o in n.styles)
|
|
1232
1232
|
t.indexOf(o) === -1 && t.push(o);
|
|
1233
1233
|
return t;
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function $t(e) {
|
|
1236
1236
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1237
1237
|
if (!t.length) {
|
|
1238
|
-
|
|
1238
|
+
wt(e.elementId || e.id || "");
|
|
1239
1239
|
return;
|
|
1240
1240
|
}
|
|
1241
1241
|
Array.from(t).forEach((n) => {
|
|
1242
|
-
|
|
1243
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1242
|
+
It(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1243
|
+
n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1244
1244
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1245
1245
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1246
1246
|
});
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function ro(e) {
|
|
1250
1250
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1251
1251
|
if (!t.length) {
|
|
1252
|
-
|
|
1252
|
+
wt(e.elementId || e.id || "");
|
|
1253
1253
|
return;
|
|
1254
1254
|
}
|
|
1255
1255
|
Array.from(t).forEach((n) => {
|
|
1256
|
-
|
|
1256
|
+
It(e, n);
|
|
1257
1257
|
let o = !1, r = !1;
|
|
1258
1258
|
function i() {
|
|
1259
1259
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -1262,7 +1262,7 @@ function oo(e) {
|
|
|
1262
1262
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1263
1263
|
})) : e.repeat && o && !r && !l(n) && (o = !1, _(n.style, e.steps[0].styles));
|
|
1264
1264
|
}
|
|
1265
|
-
const s =
|
|
1265
|
+
const s = to(i, 200, {
|
|
1266
1266
|
leading: !1
|
|
1267
1267
|
});
|
|
1268
1268
|
function l(p) {
|
|
@@ -1274,49 +1274,61 @@ function oo(e) {
|
|
|
1274
1274
|
_(n.style, a);
|
|
1275
1275
|
}
|
|
1276
1276
|
u(), setTimeout(() => {
|
|
1277
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1277
|
+
n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1278
1278
|
}), document.addEventListener("scroll", s, {
|
|
1279
1279
|
capture: !0,
|
|
1280
1280
|
passive: !0
|
|
1281
1281
|
}), i();
|
|
1282
1282
|
});
|
|
1283
1283
|
}
|
|
1284
|
-
const
|
|
1284
|
+
const re = (e, t) => {
|
|
1285
|
+
const n = (e == null ? void 0 : e.objectPosition) || t;
|
|
1286
|
+
return n ? {
|
|
1287
|
+
...e,
|
|
1288
|
+
"--builder-image-position": n
|
|
1289
|
+
} : e;
|
|
1290
|
+
}, Vs = (e, t) => t ? {
|
|
1291
|
+
...e,
|
|
1292
|
+
large: re(e == null ? void 0 : e.large, "initial"),
|
|
1293
|
+
medium: re(e == null ? void 0 : e.medium),
|
|
1294
|
+
small: re(e == null ? void 0 : e.small),
|
|
1295
|
+
xsmall: re(e == null ? void 0 : e.xsmall)
|
|
1296
|
+
} : e, Et = (e) => Object.entries(e).map(([n, o]) => {
|
|
1285
1297
|
if (typeof o == "string")
|
|
1286
|
-
return `${
|
|
1287
|
-
}).filter(j),
|
|
1288
|
-
`),
|
|
1298
|
+
return `${De(n)}: ${o};`;
|
|
1299
|
+
}).filter(j), io = (e) => Et(e).join(`
|
|
1300
|
+
`), Ns = ({
|
|
1289
1301
|
mediaQuery: e,
|
|
1290
1302
|
className: t,
|
|
1291
1303
|
styles: n
|
|
1292
1304
|
}) => {
|
|
1293
1305
|
const o = `.${t} {
|
|
1294
|
-
${
|
|
1306
|
+
${io(n)}
|
|
1295
1307
|
}`;
|
|
1296
1308
|
return e ? `${e} {
|
|
1297
1309
|
${o}
|
|
1298
1310
|
}` : o;
|
|
1299
1311
|
};
|
|
1300
|
-
function
|
|
1312
|
+
function so({
|
|
1301
1313
|
style: e
|
|
1302
1314
|
}) {
|
|
1303
1315
|
return e;
|
|
1304
1316
|
}
|
|
1305
|
-
const
|
|
1317
|
+
const Os = ({
|
|
1306
1318
|
block: e,
|
|
1307
1319
|
context: t
|
|
1308
|
-
}) =>
|
|
1320
|
+
}) => Rt(so({
|
|
1309
1321
|
style: e.style || {},
|
|
1310
1322
|
context: t,
|
|
1311
1323
|
block: e
|
|
1312
1324
|
}));
|
|
1313
|
-
function
|
|
1325
|
+
function Rt(e) {
|
|
1314
1326
|
switch (E) {
|
|
1315
1327
|
case "svelte":
|
|
1316
1328
|
case "vue":
|
|
1317
1329
|
case "solid":
|
|
1318
1330
|
case "angular":
|
|
1319
|
-
return
|
|
1331
|
+
return Et(e).join(" ");
|
|
1320
1332
|
case "qwik":
|
|
1321
1333
|
case "reactNative":
|
|
1322
1334
|
case "react":
|
|
@@ -1324,7 +1336,7 @@ function Et(e) {
|
|
|
1324
1336
|
return e;
|
|
1325
1337
|
}
|
|
1326
1338
|
}
|
|
1327
|
-
const
|
|
1339
|
+
const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, ao = ({
|
|
1328
1340
|
block: e,
|
|
1329
1341
|
registeredComponents: t,
|
|
1330
1342
|
model: n
|
|
@@ -1334,14 +1346,14 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1334
1346
|
if (!o)
|
|
1335
1347
|
return null;
|
|
1336
1348
|
const r = t[o];
|
|
1337
|
-
if (!r ||
|
|
1349
|
+
if (!r || Pt(r, n)) {
|
|
1338
1350
|
console.warn(`
|
|
1339
1351
|
Could not find a registered component named "${o}".
|
|
1340
1352
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1341
1353
|
return;
|
|
1342
1354
|
} else
|
|
1343
1355
|
return r;
|
|
1344
|
-
},
|
|
1356
|
+
}, lo = ({
|
|
1345
1357
|
block: e,
|
|
1346
1358
|
context: t
|
|
1347
1359
|
}) => {
|
|
@@ -1374,59 +1386,59 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1374
1386
|
},
|
|
1375
1387
|
block: o
|
|
1376
1388
|
}));
|
|
1377
|
-
},
|
|
1389
|
+
}, co = (e, t) => {
|
|
1378
1390
|
var n;
|
|
1379
1391
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1380
1392
|
builderLinkComponent: t
|
|
1381
1393
|
} : {};
|
|
1382
|
-
},
|
|
1394
|
+
}, uo = (e, t, n) => {
|
|
1383
1395
|
var o;
|
|
1384
1396
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1385
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1397
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Pt(s, n)))
|
|
1386
1398
|
} : {};
|
|
1387
|
-
},
|
|
1399
|
+
}, po = (e, t) => {
|
|
1388
1400
|
var n;
|
|
1389
1401
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1390
1402
|
builderBlock: t
|
|
1391
1403
|
} : {};
|
|
1392
|
-
},
|
|
1404
|
+
}, mo = (e, t) => {
|
|
1393
1405
|
var n;
|
|
1394
1406
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1395
1407
|
builderContext: t
|
|
1396
1408
|
} : {};
|
|
1397
|
-
},
|
|
1409
|
+
}, ho = (e) => e.toString(), fo = () => Promise.resolve().then(() => Po).then((e) => e.default).catch((e) => {
|
|
1398
1410
|
throw console.error(
|
|
1399
1411
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1400
1412
|
e
|
|
1401
1413
|
), e;
|
|
1402
|
-
}),
|
|
1414
|
+
}), bo = () => import("./block-wrapper-H2uWRFfl.js").then((e) => e.default).catch((e) => {
|
|
1403
1415
|
throw console.error(
|
|
1404
1416
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1405
1417
|
e
|
|
1406
1418
|
), e;
|
|
1407
|
-
}),
|
|
1419
|
+
}), go = () => import("./component-ref-pzekKy-e.js").then((e) => e.default).catch((e) => {
|
|
1408
1420
|
throw console.error(
|
|
1409
1421
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1410
1422
|
e
|
|
1411
1423
|
), e;
|
|
1412
|
-
}),
|
|
1424
|
+
}), yo = () => import("./repeated-block-z4-Tq0vb.js").then((e) => e.default).catch((e) => {
|
|
1413
1425
|
throw console.error(
|
|
1414
1426
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1415
1427
|
e
|
|
1416
1428
|
), e;
|
|
1417
|
-
}),
|
|
1429
|
+
}), vo = () => import("./style-wrapper-XQIDj12j.js").then((e) => e.default).catch((e) => {
|
|
1418
1430
|
throw console.error(
|
|
1419
1431
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1420
1432
|
e
|
|
1421
1433
|
), e;
|
|
1422
|
-
}),
|
|
1434
|
+
}), So = y({
|
|
1423
1435
|
name: "block",
|
|
1424
1436
|
components: {
|
|
1425
|
-
StyleWrapper: X(
|
|
1426
|
-
RepeatedBlock: X(
|
|
1427
|
-
ComponentRef: X(
|
|
1428
|
-
BlockWrapper: X(
|
|
1429
|
-
DynamicDiv: X(
|
|
1437
|
+
StyleWrapper: X(vo),
|
|
1438
|
+
RepeatedBlock: X(yo),
|
|
1439
|
+
ComponentRef: X(go),
|
|
1440
|
+
BlockWrapper: X(bo),
|
|
1441
|
+
DynamicDiv: X(fo)
|
|
1430
1442
|
},
|
|
1431
1443
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1432
1444
|
data() {
|
|
@@ -1435,12 +1447,12 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1435
1447
|
value: null,
|
|
1436
1448
|
update: !1
|
|
1437
1449
|
},
|
|
1438
|
-
generateKey:
|
|
1450
|
+
generateKey: ho
|
|
1439
1451
|
};
|
|
1440
1452
|
},
|
|
1441
1453
|
mounted() {
|
|
1442
1454
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1443
|
-
t && e &&
|
|
1455
|
+
t && e && no(
|
|
1444
1456
|
t.map((n) => ({
|
|
1445
1457
|
...n,
|
|
1446
1458
|
elementId: e
|
|
@@ -1451,14 +1463,14 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1451
1463
|
},
|
|
1452
1464
|
computed: {
|
|
1453
1465
|
repeatItem() {
|
|
1454
|
-
return
|
|
1466
|
+
return lo({
|
|
1455
1467
|
block: this.block,
|
|
1456
1468
|
context: this.context
|
|
1457
1469
|
});
|
|
1458
1470
|
},
|
|
1459
1471
|
processedBlock() {
|
|
1460
1472
|
var t;
|
|
1461
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1473
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : An({
|
|
1462
1474
|
block: this.block,
|
|
1463
1475
|
localState: this.context.localState,
|
|
1464
1476
|
rootState: this.context.rootState,
|
|
@@ -1467,7 +1479,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1467
1479
|
});
|
|
1468
1480
|
},
|
|
1469
1481
|
blockComponent() {
|
|
1470
|
-
return
|
|
1482
|
+
return ao({
|
|
1471
1483
|
block: this.processedBlock,
|
|
1472
1484
|
registeredComponents: this.registeredComponents,
|
|
1473
1485
|
model: this.context.model
|
|
@@ -1494,11 +1506,11 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1494
1506
|
blockChildren: this.processedBlock.children ?? [],
|
|
1495
1507
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1496
1508
|
componentOptions: {
|
|
1497
|
-
...
|
|
1498
|
-
...
|
|
1499
|
-
...
|
|
1500
|
-
...
|
|
1501
|
-
...
|
|
1509
|
+
...kn(this.processedBlock, this.context),
|
|
1510
|
+
...po(this.blockComponent, this.processedBlock),
|
|
1511
|
+
...mo(this.blockComponent, this.context),
|
|
1512
|
+
...co(this.blockComponent, this.linkComponent),
|
|
1513
|
+
...uo(
|
|
1502
1514
|
this.blockComponent,
|
|
1503
1515
|
this.registeredComponents,
|
|
1504
1516
|
this.context.model
|
|
@@ -1514,7 +1526,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1514
1526
|
}
|
|
1515
1527
|
}
|
|
1516
1528
|
});
|
|
1517
|
-
function
|
|
1529
|
+
function ko(e, t, n, o, r, i) {
|
|
1518
1530
|
var b;
|
|
1519
1531
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1520
1532
|
return e.canShowBlock ? (d(), h(I, { key: 0 }, [
|
|
@@ -1580,10 +1592,10 @@ function So(e, t, n, o, r, i) {
|
|
|
1580
1592
|
], 64))
|
|
1581
1593
|
], 64)) : T("", !0);
|
|
1582
1594
|
}
|
|
1583
|
-
const
|
|
1595
|
+
const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1584
1596
|
__proto__: null,
|
|
1585
|
-
default:
|
|
1586
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1597
|
+
default: At
|
|
1598
|
+
}, Symbol.toStringTag, { value: "Module" })), Co = y({
|
|
1587
1599
|
name: "builder-blocks-wrapper",
|
|
1588
1600
|
props: [
|
|
1589
1601
|
"blocks",
|
|
@@ -1653,7 +1665,7 @@ const Pt = /* @__PURE__ */ v(vo, [["render", So]]), Ns = /* @__PURE__ */ Object.
|
|
|
1653
1665
|
}
|
|
1654
1666
|
}
|
|
1655
1667
|
});
|
|
1656
|
-
function
|
|
1668
|
+
function To(e, t, n, o, r, i) {
|
|
1657
1669
|
return d(), S(Z(e.BlocksWrapper), $({
|
|
1658
1670
|
ref: "blocksWrapperRef",
|
|
1659
1671
|
class: e.className + " component-5vz8uirn7sc",
|
|
@@ -1670,9 +1682,9 @@ function Co(e, t, n, o, r, i) {
|
|
|
1670
1682
|
_: 3
|
|
1671
1683
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1672
1684
|
}
|
|
1673
|
-
const
|
|
1685
|
+
const wo = /* @__PURE__ */ v(Co, [["render", To], ["__scopeId", "data-v-82fc93d6"]]), Io = y({
|
|
1674
1686
|
name: "builder-blocks",
|
|
1675
|
-
components: { BlocksWrapper:
|
|
1687
|
+
components: { BlocksWrapper: wo, Block: At },
|
|
1676
1688
|
props: [
|
|
1677
1689
|
"blocks",
|
|
1678
1690
|
"parent",
|
|
@@ -1685,11 +1697,11 @@ const To = /* @__PURE__ */ v(ko, [["render", Co], ["__scopeId", "data-v-82fc93d6
|
|
|
1685
1697
|
"registeredComponents"
|
|
1686
1698
|
],
|
|
1687
1699
|
inject: {
|
|
1688
|
-
builderContext:
|
|
1689
|
-
componentsContext:
|
|
1700
|
+
builderContext: ve.key,
|
|
1701
|
+
componentsContext: tt.key
|
|
1690
1702
|
}
|
|
1691
1703
|
});
|
|
1692
|
-
function
|
|
1704
|
+
function $o(e, t, n, o, r, i) {
|
|
1693
1705
|
var a, u, p, b;
|
|
1694
1706
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1695
1707
|
return d(), S(l, {
|
|
@@ -1717,21 +1729,21 @@ function Io(e, t, n, o, r, i) {
|
|
|
1717
1729
|
_: 3
|
|
1718
1730
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1719
1731
|
}
|
|
1720
|
-
const K = /* @__PURE__ */ v(
|
|
1732
|
+
const K = /* @__PURE__ */ v(Io, [["render", $o]]), Eo = y({
|
|
1721
1733
|
name: "dynamic-div",
|
|
1722
1734
|
props: []
|
|
1723
1735
|
});
|
|
1724
|
-
function
|
|
1736
|
+
function Ro(e, t, n, o, r, i) {
|
|
1725
1737
|
return d(), h("div", null, [
|
|
1726
1738
|
N(e.$slots, "default")
|
|
1727
1739
|
]);
|
|
1728
1740
|
}
|
|
1729
|
-
const ne = /* @__PURE__ */ v(
|
|
1741
|
+
const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1730
1742
|
__proto__: null,
|
|
1731
1743
|
default: ne
|
|
1732
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1744
|
+
}, Symbol.toStringTag, { value: "Module" })), he = y({
|
|
1733
1745
|
render() {
|
|
1734
|
-
return
|
|
1746
|
+
return et("style", {
|
|
1735
1747
|
innerHTML: this.styles,
|
|
1736
1748
|
"data-id": this.id,
|
|
1737
1749
|
nonce: this.nonce
|
|
@@ -1739,7 +1751,7 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1739
1751
|
},
|
|
1740
1752
|
name: "inlined-styles",
|
|
1741
1753
|
props: ["styles", "id", "nonce"]
|
|
1742
|
-
}),
|
|
1754
|
+
}), Bt = {
|
|
1743
1755
|
xsmall: {
|
|
1744
1756
|
min: 0,
|
|
1745
1757
|
default: 160,
|
|
@@ -1760,8 +1772,8 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1760
1772
|
default: 991,
|
|
1761
1773
|
max: 1200
|
|
1762
1774
|
}
|
|
1763
|
-
},
|
|
1764
|
-
const t =
|
|
1775
|
+
}, Ds = (e, t = Bt) => `@media (max-width: ${t[e].max}px)`, Ao = (e) => {
|
|
1776
|
+
const t = Be(Bt);
|
|
1765
1777
|
if (!e)
|
|
1766
1778
|
return t;
|
|
1767
1779
|
const {
|
|
@@ -1798,11 +1810,11 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1798
1810
|
min: l,
|
|
1799
1811
|
default: l + 1
|
|
1800
1812
|
}, t;
|
|
1801
|
-
},
|
|
1813
|
+
}, Bo = (e) => `builder-columns ${e}-breakpoints`, Vo = y({
|
|
1802
1814
|
name: "builder-columns",
|
|
1803
1815
|
components: {
|
|
1804
|
-
InlinedStyles:
|
|
1805
|
-
DynamicRenderer:
|
|
1816
|
+
InlinedStyles: he,
|
|
1817
|
+
DynamicRenderer: Re,
|
|
1806
1818
|
Blocks: K,
|
|
1807
1819
|
DynamicDiv: ne
|
|
1808
1820
|
},
|
|
@@ -1817,7 +1829,7 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1817
1829
|
"builderComponents"
|
|
1818
1830
|
],
|
|
1819
1831
|
data() {
|
|
1820
|
-
return { TARGET: E, getColumnsClass:
|
|
1832
|
+
return { TARGET: E, getColumnsClass: Bo };
|
|
1821
1833
|
},
|
|
1822
1834
|
computed: {
|
|
1823
1835
|
gutterSize() {
|
|
@@ -1896,7 +1908,7 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1896
1908
|
},
|
|
1897
1909
|
getWidthForBreakpointSize(e) {
|
|
1898
1910
|
var n, o;
|
|
1899
|
-
return
|
|
1911
|
+
return Ao(
|
|
1900
1912
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1901
1913
|
)[e].max;
|
|
1902
1914
|
},
|
|
@@ -1934,12 +1946,12 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1934
1946
|
href: e.link
|
|
1935
1947
|
} : {},
|
|
1936
1948
|
[M()]: "builder-column",
|
|
1937
|
-
style:
|
|
1949
|
+
style: Rt(this.columnCssVars(t))
|
|
1938
1950
|
};
|
|
1939
1951
|
}
|
|
1940
1952
|
}
|
|
1941
1953
|
});
|
|
1942
|
-
function
|
|
1954
|
+
function No(e, t, n, o, r, i) {
|
|
1943
1955
|
var u;
|
|
1944
1956
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1945
1957
|
return d(), h("div", $({
|
|
@@ -1975,47 +1987,47 @@ function Vo(e, t, n, o, r, i) {
|
|
|
1975
1987
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1976
1988
|
], 16);
|
|
1977
1989
|
}
|
|
1978
|
-
const
|
|
1990
|
+
const Oo = /* @__PURE__ */ v(Vo, [["render", No], ["__scopeId", "data-v-ab15749a"]]), Wo = y({
|
|
1979
1991
|
name: "builder-fragment-component",
|
|
1980
1992
|
props: []
|
|
1981
1993
|
});
|
|
1982
|
-
function
|
|
1994
|
+
function Do(e, t, n, o, r, i) {
|
|
1983
1995
|
return d(), h("span", null, [
|
|
1984
1996
|
N(e.$slots, "default")
|
|
1985
1997
|
]);
|
|
1986
1998
|
}
|
|
1987
|
-
const
|
|
1988
|
-
function
|
|
1999
|
+
const xo = /* @__PURE__ */ v(Wo, [["render", Do]]);
|
|
2000
|
+
function Qe(e) {
|
|
1989
2001
|
return e.replace(/http(s)?:/, "");
|
|
1990
2002
|
}
|
|
1991
|
-
function
|
|
2003
|
+
function Uo(e = "", t, n) {
|
|
1992
2004
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1993
2005
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1994
2006
|
}
|
|
1995
|
-
function
|
|
2007
|
+
function Lo(e, t) {
|
|
1996
2008
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1997
2009
|
return e;
|
|
1998
2010
|
if (t === "master")
|
|
1999
|
-
return
|
|
2011
|
+
return Qe(e);
|
|
2000
2012
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
2001
2013
|
if (n) {
|
|
2002
2014
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
2003
|
-
return
|
|
2015
|
+
return Qe(`${o[0]}_${i}${r}`);
|
|
2004
2016
|
}
|
|
2005
2017
|
return null;
|
|
2006
2018
|
}
|
|
2007
|
-
function
|
|
2019
|
+
function ie(e) {
|
|
2008
2020
|
if (!e)
|
|
2009
2021
|
return e;
|
|
2010
2022
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
2011
2023
|
if (e.match(/builder\.io/)) {
|
|
2012
2024
|
let n = e;
|
|
2013
2025
|
const o = Number(e.split("?width=")[1]);
|
|
2014
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
2026
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
2015
2027
|
}
|
|
2016
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
2028
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
2017
2029
|
}
|
|
2018
|
-
const
|
|
2030
|
+
const Fo = y({
|
|
2019
2031
|
name: "builder-image",
|
|
2020
2032
|
props: [
|
|
2021
2033
|
"lazy",
|
|
@@ -2045,10 +2057,10 @@ const Lo = y({
|
|
|
2045
2057
|
if (!this.noWebp) {
|
|
2046
2058
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2047
2059
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2048
|
-
return console.debug("Removed given srcset"),
|
|
2060
|
+
return console.debug("Removed given srcset"), ie(t);
|
|
2049
2061
|
} else if (this.image && !this.srcset)
|
|
2050
|
-
return
|
|
2051
|
-
return
|
|
2062
|
+
return ie(t);
|
|
2063
|
+
return ie(t);
|
|
2052
2064
|
}
|
|
2053
2065
|
},
|
|
2054
2066
|
webpSrcSet() {
|
|
@@ -2069,11 +2081,11 @@ const Lo = y({
|
|
|
2069
2081
|
return this.aspectRatio ? e : void 0;
|
|
2070
2082
|
}
|
|
2071
2083
|
}
|
|
2072
|
-
}),
|
|
2084
|
+
}), Ho = ["srcset", "sizes"], Mo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], jo = {
|
|
2073
2085
|
key: 2,
|
|
2074
2086
|
class: "div-t43jfuqn6g-2"
|
|
2075
2087
|
};
|
|
2076
|
-
function
|
|
2088
|
+
function zo(e, t, n, o, r, i) {
|
|
2077
2089
|
var s, l, a, u, p, b;
|
|
2078
2090
|
return d(), h(I, null, [
|
|
2079
2091
|
G("picture", null, [
|
|
@@ -2082,7 +2094,7 @@ function jo(e, t, n, o, r, i) {
|
|
|
2082
2094
|
type: "image/webp",
|
|
2083
2095
|
srcset: e.webpSrcSet,
|
|
2084
2096
|
sizes: e.sizesToUse
|
|
2085
|
-
}, null, 8,
|
|
2097
|
+
}, null, 8, Ho)) : T("", !0),
|
|
2086
2098
|
G("img", {
|
|
2087
2099
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2088
2100
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -2090,7 +2102,7 @@ function jo(e, t, n, o, r, i) {
|
|
|
2090
2102
|
title: e.title,
|
|
2091
2103
|
role: e.altText ? void 0 : "presentation",
|
|
2092
2104
|
style: H({
|
|
2093
|
-
objectPosition: e.backgroundPosition || "center"
|
|
2105
|
+
objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
|
|
2094
2106
|
objectFit: e.backgroundSize || "cover",
|
|
2095
2107
|
...e.aspectRatioCss
|
|
2096
2108
|
}),
|
|
@@ -2100,7 +2112,7 @@ function jo(e, t, n, o, r, i) {
|
|
|
2100
2112
|
src: e.image,
|
|
2101
2113
|
srcset: e.srcSetToUse,
|
|
2102
2114
|
sizes: e.sizesToUse
|
|
2103
|
-
}, null, 14,
|
|
2115
|
+
}, null, 14, Mo)
|
|
2104
2116
|
]),
|
|
2105
2117
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
2106
2118
|
key: 0,
|
|
@@ -2110,19 +2122,19 @@ function jo(e, t, n, o, r, i) {
|
|
|
2110
2122
|
})
|
|
2111
2123
|
}, null, 4)) : T("", !0),
|
|
2112
2124
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
|
|
2113
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div",
|
|
2125
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", jo, [
|
|
2114
2126
|
N(e.$slots, "default", {}, void 0, !0)
|
|
2115
2127
|
])) : T("", !0)
|
|
2116
2128
|
], 64);
|
|
2117
2129
|
}
|
|
2118
|
-
const
|
|
2130
|
+
const Ko = /* @__PURE__ */ v(Fo, [["render", zo], ["__scopeId", "data-v-f109a7da"]]), qo = y({
|
|
2119
2131
|
name: "builder-section-component",
|
|
2120
2132
|
props: ["attributes", "maxWidth"],
|
|
2121
2133
|
data() {
|
|
2122
2134
|
return { filterAttrs: O };
|
|
2123
2135
|
}
|
|
2124
2136
|
});
|
|
2125
|
-
function
|
|
2137
|
+
function Go(e, t, n, o, r, i) {
|
|
2126
2138
|
return d(), h("section", $({
|
|
2127
2139
|
style: {
|
|
2128
2140
|
width: "100%",
|
|
@@ -2140,8 +2152,8 @@ function qo(e, t, n, o, r, i) {
|
|
|
2140
2152
|
N(e.$slots, "default")
|
|
2141
2153
|
], 16);
|
|
2142
2154
|
}
|
|
2143
|
-
const
|
|
2144
|
-
function
|
|
2155
|
+
const Jo = /* @__PURE__ */ v(qo, [["render", Go]]);
|
|
2156
|
+
function Qo(e, t, n, o) {
|
|
2145
2157
|
function r(u) {
|
|
2146
2158
|
return typeof u == "string";
|
|
2147
2159
|
}
|
|
@@ -2198,7 +2210,7 @@ function Jo(e, t, n, o) {
|
|
|
2198
2210
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2199
2211
|
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));
|
|
2200
2212
|
}
|
|
2201
|
-
const
|
|
2213
|
+
const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
2202
2214
|
if (!navigator.cookieEnabled) {
|
|
2203
2215
|
return;
|
|
2204
2216
|
}
|
|
@@ -2243,7 +2255,7 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2243
2255
|
thisScript.remove();
|
|
2244
2256
|
}
|
|
2245
2257
|
}
|
|
2246
|
-
}`,
|
|
2258
|
+
}`, Xo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2247
2259
|
function isString(val) {
|
|
2248
2260
|
return typeof val === 'string';
|
|
2249
2261
|
}
|
|
@@ -2321,7 +2333,7 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2321
2333
|
return item.query.every(filter => {
|
|
2322
2334
|
return objectMatchesQuery(userAttributes, filter);
|
|
2323
2335
|
});
|
|
2324
|
-
}`,
|
|
2336
|
+
}`, Zo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2325
2337
|
function getCookie(name) {
|
|
2326
2338
|
const nameEQ = name + '=';
|
|
2327
2339
|
const ca = document.cookie.split(';');
|
|
@@ -2359,11 +2371,11 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2359
2371
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2360
2372
|
}
|
|
2361
2373
|
}
|
|
2362
|
-
}`,
|
|
2363
|
-
function
|
|
2364
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2374
|
+
}`, se = "default", Ye = "filterWithCustomTargeting", Te = "builderIoPersonalization", we = "updateVisibilityStylesScript", _o = "PersonalizationContainer", Vt = ["react", "vue", "svelte", "qwik"], Nt = ["vue", "svelte", "qwik"];
|
|
2375
|
+
function er(e, t) {
|
|
2376
|
+
return !(e && e.length > 0) || !t ? !1 : Nt.includes(E) ? !0 : !w();
|
|
2365
2377
|
}
|
|
2366
|
-
function
|
|
2378
|
+
function tr({
|
|
2367
2379
|
variants: e,
|
|
2368
2380
|
previewingIndex: t,
|
|
2369
2381
|
isHydrated: n,
|
|
@@ -2373,7 +2385,7 @@ function er({
|
|
|
2373
2385
|
const i = {
|
|
2374
2386
|
blocks: r ?? [],
|
|
2375
2387
|
path: "this.children",
|
|
2376
|
-
index:
|
|
2388
|
+
index: se
|
|
2377
2389
|
};
|
|
2378
2390
|
if (n && P()) {
|
|
2379
2391
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2401,22 +2413,22 @@ function er({
|
|
|
2401
2413
|
}
|
|
2402
2414
|
return i;
|
|
2403
2415
|
}
|
|
2404
|
-
const
|
|
2416
|
+
const Ie = (e) => {
|
|
2405
2417
|
var t;
|
|
2406
|
-
return Array.isArray(e) ? e.some(
|
|
2407
|
-
},
|
|
2418
|
+
return Array.isArray(e) ? e.some(Ie) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === _o ? !0 : Object.values(e).some(Ie);
|
|
2419
|
+
}, nr = (e) => Ie(e), or = () => `
|
|
2408
2420
|
(function() {
|
|
2409
|
-
if (!window.${
|
|
2410
|
-
window.${
|
|
2411
|
-
}
|
|
2412
|
-
if (!window.${Ce}) {
|
|
2413
|
-
window.${Ce} = ${Qo};
|
|
2421
|
+
if (!window.${Ye}) {
|
|
2422
|
+
window.${Ye} = ${Xo};
|
|
2414
2423
|
}
|
|
2415
2424
|
if (!window.${Te}) {
|
|
2416
|
-
window.${Te} = ${
|
|
2425
|
+
window.${Te} = ${Yo};
|
|
2426
|
+
}
|
|
2427
|
+
if (!window.${we}) {
|
|
2428
|
+
window.${we} = ${Zo};
|
|
2417
2429
|
}
|
|
2418
2430
|
})();
|
|
2419
|
-
`,
|
|
2431
|
+
`, Ot = E === "react", rr = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Ot}${n ? `, "${n}"` : ""})`, ir = (e, t, n) => `window.${we}(${JSON.stringify(e)}, "${t}", ${Ot}${n ? `, "${n}"` : ""})`, fe = {
|
|
2420
2432
|
"@type": "@builder.io/sdk:Element",
|
|
2421
2433
|
layerName: "Accordion item title",
|
|
2422
2434
|
responsiveStyles: {
|
|
@@ -2445,7 +2457,7 @@ const we = (e) => {
|
|
|
2445
2457
|
}
|
|
2446
2458
|
}
|
|
2447
2459
|
}]
|
|
2448
|
-
},
|
|
2460
|
+
}, be = {
|
|
2449
2461
|
"@type": "@builder.io/sdk:Element",
|
|
2450
2462
|
layerName: "Accordion item detail",
|
|
2451
2463
|
responsiveStyles: {
|
|
@@ -2476,7 +2488,7 @@ const we = (e) => {
|
|
|
2476
2488
|
}
|
|
2477
2489
|
}
|
|
2478
2490
|
}]
|
|
2479
|
-
},
|
|
2491
|
+
}, sr = {
|
|
2480
2492
|
name: "Builder:Accordion",
|
|
2481
2493
|
canHaveChildren: !0,
|
|
2482
2494
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2493,19 +2505,19 @@ const we = (e) => {
|
|
|
2493
2505
|
name: "title",
|
|
2494
2506
|
type: "uiBlocks",
|
|
2495
2507
|
hideFromUI: !0,
|
|
2496
|
-
defaultValue: [
|
|
2508
|
+
defaultValue: [fe]
|
|
2497
2509
|
}, {
|
|
2498
2510
|
name: "detail",
|
|
2499
2511
|
type: "uiBlocks",
|
|
2500
2512
|
hideFromUI: !0,
|
|
2501
|
-
defaultValue: [
|
|
2513
|
+
defaultValue: [be]
|
|
2502
2514
|
}],
|
|
2503
2515
|
defaultValue: [{
|
|
2504
|
-
title: [
|
|
2505
|
-
detail: [
|
|
2516
|
+
title: [fe],
|
|
2517
|
+
detail: [be]
|
|
2506
2518
|
}, {
|
|
2507
|
-
title: [
|
|
2508
|
-
detail: [
|
|
2519
|
+
title: [fe],
|
|
2520
|
+
detail: [be]
|
|
2509
2521
|
}],
|
|
2510
2522
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2511
2523
|
}, {
|
|
@@ -2540,7 +2552,7 @@ const we = (e) => {
|
|
|
2540
2552
|
builderComponents: !0,
|
|
2541
2553
|
builderLinkComponent: !0
|
|
2542
2554
|
}
|
|
2543
|
-
},
|
|
2555
|
+
}, ar = (e) => e.toString(), lr = y({
|
|
2544
2556
|
name: "builder-accordion",
|
|
2545
2557
|
components: { Blocks: K },
|
|
2546
2558
|
props: [
|
|
@@ -2554,7 +2566,7 @@ const we = (e) => {
|
|
|
2554
2566
|
"builderLinkComponent"
|
|
2555
2567
|
],
|
|
2556
2568
|
data() {
|
|
2557
|
-
return { open: [], convertOrderNumberToString:
|
|
2569
|
+
return { open: [], convertOrderNumberToString: ar };
|
|
2558
2570
|
},
|
|
2559
2571
|
computed: {
|
|
2560
2572
|
onlyOneAtATime() {
|
|
@@ -2635,8 +2647,8 @@ const we = (e) => {
|
|
|
2635
2647
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2636
2648
|
}
|
|
2637
2649
|
}
|
|
2638
|
-
}),
|
|
2639
|
-
function
|
|
2650
|
+
}), cr = ["data-index", "onClick"];
|
|
2651
|
+
function dr(e, t, n, o, r, i) {
|
|
2640
2652
|
const s = k("Blocks");
|
|
2641
2653
|
return d(), h("div", {
|
|
2642
2654
|
class: "builder-accordion",
|
|
@@ -2663,7 +2675,7 @@ function cr(e, t, n, o, r, i) {
|
|
|
2663
2675
|
registeredComponents: e.builderComponents,
|
|
2664
2676
|
linkComponent: e.builderLinkComponent
|
|
2665
2677
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2666
|
-
], 14,
|
|
2678
|
+
], 14, cr),
|
|
2667
2679
|
e.open.includes(a) ? (d(), h("div", {
|
|
2668
2680
|
key: 0,
|
|
2669
2681
|
class: ee(e.getAccordionDetailClassName(a)),
|
|
@@ -2681,7 +2693,7 @@ function cr(e, t, n, o, r, i) {
|
|
|
2681
2693
|
], 64))), 128))
|
|
2682
2694
|
], 4);
|
|
2683
2695
|
}
|
|
2684
|
-
const
|
|
2696
|
+
const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
2685
2697
|
name: "Core:Button",
|
|
2686
2698
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2687
2699
|
defaultStyles: {
|
|
@@ -2717,7 +2729,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2717
2729
|
shouldReceiveBuilderProps: {
|
|
2718
2730
|
builderLinkComponent: !0
|
|
2719
2731
|
}
|
|
2720
|
-
},
|
|
2732
|
+
}, mr = {
|
|
2721
2733
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2722
2734
|
name: "Columns",
|
|
2723
2735
|
isRSC: !0,
|
|
@@ -2924,13 +2936,13 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2924
2936
|
builderComponents: !0,
|
|
2925
2937
|
builderLinkComponent: !0
|
|
2926
2938
|
}
|
|
2927
|
-
},
|
|
2939
|
+
}, hr = {
|
|
2928
2940
|
name: "Fragment",
|
|
2929
2941
|
static: !0,
|
|
2930
2942
|
hidden: !0,
|
|
2931
2943
|
canHaveChildren: !0,
|
|
2932
2944
|
noWrap: !0
|
|
2933
|
-
},
|
|
2945
|
+
}, xe = ["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"], fr = ["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"], br = {
|
|
2934
2946
|
name: "Image",
|
|
2935
2947
|
static: !0,
|
|
2936
2948
|
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",
|
|
@@ -2945,7 +2957,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2945
2957
|
name: "image",
|
|
2946
2958
|
type: "file",
|
|
2947
2959
|
bubble: !0,
|
|
2948
|
-
allowedFileTypes:
|
|
2960
|
+
allowedFileTypes: xe,
|
|
2949
2961
|
required: !0,
|
|
2950
2962
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2951
2963
|
onChange: (e) => {
|
|
@@ -3043,7 +3055,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3043
3055
|
shouldReceiveBuilderProps: {
|
|
3044
3056
|
builderBlock: !0
|
|
3045
3057
|
}
|
|
3046
|
-
},
|
|
3058
|
+
}, gr = {
|
|
3047
3059
|
name: "PersonalizationContainer",
|
|
3048
3060
|
shouldReceiveBuilderProps: {
|
|
3049
3061
|
builderBlock: !0,
|
|
@@ -3079,9 +3091,9 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3079
3091
|
defaultValue: []
|
|
3080
3092
|
}]
|
|
3081
3093
|
}]
|
|
3082
|
-
},
|
|
3094
|
+
}, Ue = y({
|
|
3083
3095
|
render() {
|
|
3084
|
-
return
|
|
3096
|
+
return et("script", {
|
|
3085
3097
|
innerHTML: this.scriptStr,
|
|
3086
3098
|
"data-id": this.id,
|
|
3087
3099
|
nonce: this.nonce
|
|
@@ -3089,12 +3101,12 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3089
3101
|
},
|
|
3090
3102
|
name: "inlined-script",
|
|
3091
3103
|
props: ["scriptStr", "id", "nonce"]
|
|
3092
|
-
}),
|
|
3104
|
+
}), yr = y({
|
|
3093
3105
|
name: "builder-personalization-container",
|
|
3094
3106
|
components: {
|
|
3095
3107
|
Blocks: K,
|
|
3096
|
-
InlinedStyles:
|
|
3097
|
-
InlinedScript:
|
|
3108
|
+
InlinedStyles: he,
|
|
3109
|
+
InlinedScript: Ue
|
|
3098
3110
|
},
|
|
3099
3111
|
props: [
|
|
3100
3112
|
"builderContext",
|
|
@@ -3107,32 +3119,32 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3107
3119
|
data() {
|
|
3108
3120
|
var e, t, n, o, r, i, s;
|
|
3109
3121
|
return {
|
|
3110
|
-
userAttributes:
|
|
3111
|
-
scriptStr:
|
|
3122
|
+
userAttributes: ue.getUserAttributes(),
|
|
3123
|
+
scriptStr: rr(
|
|
3112
3124
|
this.variants,
|
|
3113
3125
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3114
3126
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
3115
3127
|
),
|
|
3116
|
-
updateVisibilityStylesScript:
|
|
3128
|
+
updateVisibilityStylesScript: ir(
|
|
3117
3129
|
this.variants,
|
|
3118
3130
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
3119
3131
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
3120
3132
|
),
|
|
3121
3133
|
unsubscribers: [],
|
|
3122
|
-
shouldRenderVariants:
|
|
3134
|
+
shouldRenderVariants: er(
|
|
3123
3135
|
this.variants,
|
|
3124
3136
|
J((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3125
3137
|
),
|
|
3126
3138
|
shouldResetVariants: !1,
|
|
3127
3139
|
TARGET: E,
|
|
3128
|
-
DEFAULT_INDEX:
|
|
3129
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
3140
|
+
DEFAULT_INDEX: se,
|
|
3141
|
+
SDKS_REQUIRING_RESET_APPROACH: Nt
|
|
3130
3142
|
};
|
|
3131
3143
|
},
|
|
3132
3144
|
mounted() {
|
|
3133
3145
|
var t;
|
|
3134
3146
|
this.shouldResetVariants = !0;
|
|
3135
|
-
const e =
|
|
3147
|
+
const e = ue.subscribeOnUserAttributesChange(
|
|
3136
3148
|
(n) => {
|
|
3137
3149
|
this.userAttributes = n;
|
|
3138
3150
|
},
|
|
@@ -3140,12 +3152,12 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3140
3152
|
fireImmediately: E === "qwik"
|
|
3141
3153
|
}
|
|
3142
3154
|
);
|
|
3143
|
-
if (!(P() ||
|
|
3155
|
+
if (!(P() || Ve())) {
|
|
3144
3156
|
const n = this.filteredVariants[0];
|
|
3145
3157
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3146
3158
|
new CustomEvent("builder.variantLoaded", {
|
|
3147
3159
|
detail: {
|
|
3148
|
-
variant: n ||
|
|
3160
|
+
variant: n || se,
|
|
3149
3161
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3150
3162
|
},
|
|
3151
3163
|
bubbles: !0
|
|
@@ -3156,7 +3168,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3156
3168
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3157
3169
|
new CustomEvent("builder.variantDisplayed", {
|
|
3158
3170
|
detail: {
|
|
3159
|
-
variant: n ||
|
|
3171
|
+
variant: n || se,
|
|
3160
3172
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3161
3173
|
},
|
|
3162
3174
|
bubbles: !0
|
|
@@ -3181,7 +3193,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3181
3193
|
filteredVariants() {
|
|
3182
3194
|
return (this.variants || []).filter((e) => {
|
|
3183
3195
|
var t, n, o, r;
|
|
3184
|
-
return
|
|
3196
|
+
return Qo(
|
|
3185
3197
|
{
|
|
3186
3198
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
3187
3199
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -3196,7 +3208,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3196
3208
|
},
|
|
3197
3209
|
blocksToRender() {
|
|
3198
3210
|
var e;
|
|
3199
|
-
return
|
|
3211
|
+
return tr({
|
|
3200
3212
|
variants: this.variants,
|
|
3201
3213
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
3202
3214
|
isHydrated: this.shouldResetVariants,
|
|
@@ -3214,7 +3226,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3214
3226
|
}
|
|
3215
3227
|
}
|
|
3216
3228
|
});
|
|
3217
|
-
function
|
|
3229
|
+
function vr(e, t, n, o, r, i) {
|
|
3218
3230
|
var u, p, b, c, m, f, g, A, x, V;
|
|
3219
3231
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3220
3232
|
return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
|
|
@@ -3259,12 +3271,12 @@ function yr(e, t, n, o, r, i) {
|
|
|
3259
3271
|
registeredComponents: e.builderComponents
|
|
3260
3272
|
}, {
|
|
3261
3273
|
default: D(() => {
|
|
3262
|
-
var F,
|
|
3274
|
+
var F, Fe;
|
|
3263
3275
|
return [
|
|
3264
3276
|
R(a, {
|
|
3265
3277
|
nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
|
|
3266
3278
|
scriptStr: e.scriptStr,
|
|
3267
|
-
id: `variants-script-${(
|
|
3279
|
+
id: `variants-script-${(Fe = e.builderBlock) == null ? void 0 : Fe.id}-${C}`
|
|
3268
3280
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3269
3281
|
];
|
|
3270
3282
|
}),
|
|
@@ -3299,7 +3311,7 @@ function yr(e, t, n, o, r, i) {
|
|
|
3299
3311
|
], 64)) : T("", !0)
|
|
3300
3312
|
], 16);
|
|
3301
3313
|
}
|
|
3302
|
-
const
|
|
3314
|
+
const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
3303
3315
|
name: "Core:Section",
|
|
3304
3316
|
static: !0,
|
|
3305
3317
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3338,7 +3350,7 @@ const vr = /* @__PURE__ */ v(gr, [["render", yr]]), Sr = {
|
|
|
3338
3350
|
}
|
|
3339
3351
|
}
|
|
3340
3352
|
}]
|
|
3341
|
-
},
|
|
3353
|
+
}, Cr = {
|
|
3342
3354
|
name: "Slot",
|
|
3343
3355
|
isRSC: !0,
|
|
3344
3356
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3355,12 +3367,12 @@ const vr = /* @__PURE__ */ v(gr, [["render", yr]]), Sr = {
|
|
|
3355
3367
|
builderContext: !0,
|
|
3356
3368
|
builderComponents: !0
|
|
3357
3369
|
}
|
|
3358
|
-
},
|
|
3370
|
+
}, Tr = y({
|
|
3359
3371
|
name: "builder-slot",
|
|
3360
3372
|
components: { Blocks: K },
|
|
3361
3373
|
props: ["builderContext", "name", "builderComponents"]
|
|
3362
3374
|
});
|
|
3363
|
-
function
|
|
3375
|
+
function wr(e, t, n, o, r, i) {
|
|
3364
3376
|
var l, a, u;
|
|
3365
3377
|
const s = k("Blocks");
|
|
3366
3378
|
return d(), h("div", $(
|
|
@@ -3380,7 +3392,7 @@ function Tr(e, t, n, o, r, i) {
|
|
|
3380
3392
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3381
3393
|
], 16);
|
|
3382
3394
|
}
|
|
3383
|
-
const
|
|
3395
|
+
const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
|
|
3384
3396
|
name: "Symbol",
|
|
3385
3397
|
noWrap: !0,
|
|
3386
3398
|
static: !0,
|
|
@@ -3419,7 +3431,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3419
3431
|
builderComponents: !0,
|
|
3420
3432
|
builderLinkComponent: !0
|
|
3421
3433
|
}
|
|
3422
|
-
},
|
|
3434
|
+
}, ge = {
|
|
3423
3435
|
"@type": "@builder.io/sdk:Element",
|
|
3424
3436
|
responsiveStyles: {
|
|
3425
3437
|
large: {
|
|
@@ -3441,7 +3453,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3441
3453
|
text: "New tab"
|
|
3442
3454
|
}
|
|
3443
3455
|
}
|
|
3444
|
-
},
|
|
3456
|
+
}, ye = {
|
|
3445
3457
|
"@type": "@builder.io/sdk:Element",
|
|
3446
3458
|
responsiveStyles: {
|
|
3447
3459
|
large: {
|
|
@@ -3457,7 +3469,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3457
3469
|
text: "New tab content "
|
|
3458
3470
|
}
|
|
3459
3471
|
}
|
|
3460
|
-
},
|
|
3472
|
+
}, Er = {
|
|
3461
3473
|
name: "Builder: Tabs",
|
|
3462
3474
|
inputs: [{
|
|
3463
3475
|
name: "tabs",
|
|
@@ -3467,16 +3479,16 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3467
3479
|
name: "label",
|
|
3468
3480
|
type: "uiBlocks",
|
|
3469
3481
|
hideFromUI: !0,
|
|
3470
|
-
defaultValue: [
|
|
3482
|
+
defaultValue: [ge]
|
|
3471
3483
|
}, {
|
|
3472
3484
|
name: "content",
|
|
3473
3485
|
type: "uiBlocks",
|
|
3474
3486
|
hideFromUI: !0,
|
|
3475
|
-
defaultValue: [
|
|
3487
|
+
defaultValue: [ye]
|
|
3476
3488
|
}],
|
|
3477
3489
|
defaultValue: [{
|
|
3478
3490
|
label: [{
|
|
3479
|
-
...
|
|
3491
|
+
...ge,
|
|
3480
3492
|
component: {
|
|
3481
3493
|
name: "Text",
|
|
3482
3494
|
options: {
|
|
@@ -3485,7 +3497,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3485
3497
|
}
|
|
3486
3498
|
}],
|
|
3487
3499
|
content: [{
|
|
3488
|
-
...
|
|
3500
|
+
...ye,
|
|
3489
3501
|
component: {
|
|
3490
3502
|
name: "Text",
|
|
3491
3503
|
options: {
|
|
@@ -3495,7 +3507,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3495
3507
|
}]
|
|
3496
3508
|
}, {
|
|
3497
3509
|
label: [{
|
|
3498
|
-
...
|
|
3510
|
+
...ge,
|
|
3499
3511
|
component: {
|
|
3500
3512
|
name: "Text",
|
|
3501
3513
|
options: {
|
|
@@ -3504,7 +3516,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3504
3516
|
}
|
|
3505
3517
|
}],
|
|
3506
3518
|
content: [{
|
|
3507
|
-
...
|
|
3519
|
+
...ye,
|
|
3508
3520
|
component: {
|
|
3509
3521
|
name: "Text",
|
|
3510
3522
|
options: {
|
|
@@ -3560,7 +3572,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3560
3572
|
builderComponents: !0,
|
|
3561
3573
|
builderLinkComponent: !0
|
|
3562
3574
|
}
|
|
3563
|
-
},
|
|
3575
|
+
}, Rr = y({
|
|
3564
3576
|
name: "builder-tabs",
|
|
3565
3577
|
components: { Blocks: K },
|
|
3566
3578
|
props: [
|
|
@@ -3588,8 +3600,8 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3588
3600
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3589
3601
|
}
|
|
3590
3602
|
}
|
|
3591
|
-
}),
|
|
3592
|
-
function
|
|
3603
|
+
}), Pr = ["onClick"], Ar = { key: 0 };
|
|
3604
|
+
function Br(e, t, n, o, r, i) {
|
|
3593
3605
|
const s = k("Blocks");
|
|
3594
3606
|
return d(), h("div", null, [
|
|
3595
3607
|
G("div", {
|
|
@@ -3615,9 +3627,9 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3615
3627
|
registeredComponents: e.builderComponents,
|
|
3616
3628
|
linkComponent: e.builderLinkComponent
|
|
3617
3629
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3618
|
-
], 14,
|
|
3630
|
+
], 14, Pr))), 128))
|
|
3619
3631
|
], 4),
|
|
3620
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3632
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", Ar, [
|
|
3621
3633
|
R(s, {
|
|
3622
3634
|
parent: e.builderBlock.id,
|
|
3623
3635
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3629,7 +3641,7 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3629
3641
|
])) : T("", !0)
|
|
3630
3642
|
]);
|
|
3631
3643
|
}
|
|
3632
|
-
const
|
|
3644
|
+
const Vr = /* @__PURE__ */ v(Rr, [["render", Br]]), Nr = {
|
|
3633
3645
|
shouldReceiveBuilderProps: {},
|
|
3634
3646
|
name: "Text",
|
|
3635
3647
|
static: !0,
|
|
@@ -3647,11 +3659,11 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3647
3659
|
height: "auto",
|
|
3648
3660
|
textAlign: "center"
|
|
3649
3661
|
}
|
|
3650
|
-
},
|
|
3662
|
+
}, Or = y({
|
|
3651
3663
|
name: "builder-text",
|
|
3652
3664
|
props: ["text"]
|
|
3653
|
-
}),
|
|
3654
|
-
function
|
|
3665
|
+
}), Wr = ["innerHTML"];
|
|
3666
|
+
function Dr(e, t, n, o, r, i) {
|
|
3655
3667
|
var s;
|
|
3656
3668
|
return d(), h("div", {
|
|
3657
3669
|
class: "builder-text",
|
|
@@ -3659,9 +3671,9 @@ function Wr(e, t, n, o, r, i) {
|
|
|
3659
3671
|
style: {
|
|
3660
3672
|
outline: "none"
|
|
3661
3673
|
}
|
|
3662
|
-
}, null, 8,
|
|
3674
|
+
}, null, 8, Wr);
|
|
3663
3675
|
}
|
|
3664
|
-
const
|
|
3676
|
+
const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
|
|
3665
3677
|
name: "Custom Code",
|
|
3666
3678
|
static: !0,
|
|
3667
3679
|
requiredPermissions: ["editCode"],
|
|
@@ -3683,7 +3695,7 @@ const Dr = /* @__PURE__ */ v(Nr, [["render", Wr]]), xr = {
|
|
|
3683
3695
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3684
3696
|
advanced: !0
|
|
3685
3697
|
}]
|
|
3686
|
-
},
|
|
3698
|
+
}, Lr = y({
|
|
3687
3699
|
name: "builder-custom-code",
|
|
3688
3700
|
props: ["code", "replaceNodes"],
|
|
3689
3701
|
data() {
|
|
@@ -3742,15 +3754,15 @@ const Dr = /* @__PURE__ */ v(Nr, [["render", Wr]]), xr = {
|
|
|
3742
3754
|
}
|
|
3743
3755
|
}
|
|
3744
3756
|
}
|
|
3745
|
-
}),
|
|
3746
|
-
function
|
|
3757
|
+
}), Fr = ["innerHTML"];
|
|
3758
|
+
function Hr(e, t, n, o, r, i) {
|
|
3747
3759
|
return d(), h("div", {
|
|
3748
3760
|
ref: "elementRef",
|
|
3749
3761
|
class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3750
3762
|
innerHTML: e.code
|
|
3751
|
-
}, null, 10,
|
|
3763
|
+
}, null, 10, Fr);
|
|
3752
3764
|
}
|
|
3753
|
-
const
|
|
3765
|
+
const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
|
|
3754
3766
|
name: "Embed",
|
|
3755
3767
|
static: !0,
|
|
3756
3768
|
inputs: [{
|
|
@@ -3765,7 +3777,7 @@ const Hr = /* @__PURE__ */ v(Ur, [["render", Fr]]), Mr = {
|
|
|
3765
3777
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3766
3778
|
hideFromUI: !0
|
|
3767
3779
|
}]
|
|
3768
|
-
},
|
|
3780
|
+
}, zr = ["text/javascript", "application/javascript", "application/ecmascript"], Kr = (e) => zr.includes(e.type), qr = y({
|
|
3769
3781
|
name: "builder-embed",
|
|
3770
3782
|
props: ["content"],
|
|
3771
3783
|
data() {
|
|
@@ -3798,7 +3810,7 @@ const Hr = /* @__PURE__ */ v(Ur, [["render", Fr]]), Mr = {
|
|
|
3798
3810
|
this.scriptsInserted.push(n.src);
|
|
3799
3811
|
const o = document.createElement("script");
|
|
3800
3812
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3801
|
-
} else if (
|
|
3813
|
+
} else if (Kr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3802
3814
|
try {
|
|
3803
3815
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3804
3816
|
} catch (o) {
|
|
@@ -3807,15 +3819,15 @@ const Hr = /* @__PURE__ */ v(Ur, [["render", Fr]]), Mr = {
|
|
|
3807
3819
|
}
|
|
3808
3820
|
}
|
|
3809
3821
|
}
|
|
3810
|
-
}),
|
|
3811
|
-
function
|
|
3822
|
+
}), Gr = ["innerHTML"];
|
|
3823
|
+
function Jr(e, t, n, o, r, i) {
|
|
3812
3824
|
return d(), h("div", {
|
|
3813
3825
|
class: "builder-embed",
|
|
3814
3826
|
ref: "elem",
|
|
3815
3827
|
innerHTML: e.content
|
|
3816
|
-
}, null, 8,
|
|
3828
|
+
}, null, 8, Gr);
|
|
3817
3829
|
}
|
|
3818
|
-
const
|
|
3830
|
+
const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
|
|
3819
3831
|
name: "Form:Form",
|
|
3820
3832
|
// editableTags: ['builder-form-error']
|
|
3821
3833
|
defaults: {
|
|
@@ -4052,10 +4064,10 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4052
4064
|
builderComponents: !0,
|
|
4053
4065
|
builderLinkComponent: !0
|
|
4054
4066
|
}
|
|
4055
|
-
},
|
|
4067
|
+
}, Xr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Zr = () => {
|
|
4056
4068
|
const e = process.env.NODE_ENV || "production";
|
|
4057
|
-
return
|
|
4058
|
-
},
|
|
4069
|
+
return Xr.includes(e) ? e : "production";
|
|
4070
|
+
}, _r = y({
|
|
4059
4071
|
name: "builder-form-component",
|
|
4060
4072
|
components: { Blocks: K },
|
|
4061
4073
|
props: [
|
|
@@ -4148,7 +4160,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4148
4160
|
else {
|
|
4149
4161
|
const c = {};
|
|
4150
4162
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
4151
|
-
|
|
4163
|
+
ft(c, f, m);
|
|
4152
4164
|
}), i = JSON.stringify(c);
|
|
4153
4165
|
}
|
|
4154
4166
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -4166,10 +4178,10 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4166
4178
|
});
|
|
4167
4179
|
return;
|
|
4168
4180
|
}
|
|
4169
|
-
const p = `${
|
|
4181
|
+
const p = `${Zr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4170
4182
|
this.sendSubmissionsToEmail || ""
|
|
4171
4183
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4172
|
-
|
|
4184
|
+
Ae(b), fetch(b, {
|
|
4173
4185
|
body: i,
|
|
4174
4186
|
headers: r,
|
|
4175
4187
|
method: this.method || "post"
|
|
@@ -4190,7 +4202,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4190
4202
|
), x.defaultPrevented))
|
|
4191
4203
|
return;
|
|
4192
4204
|
this.responseData = m, this.formState = "error";
|
|
4193
|
-
let V = this.errorMessagePath ?
|
|
4205
|
+
let V = this.errorMessagePath ? nt(m, this.errorMessagePath) : m.message || m.error || m;
|
|
4194
4206
|
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
4195
4207
|
formErrorMessage: V
|
|
4196
4208
|
});
|
|
@@ -4232,11 +4244,11 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4232
4244
|
}
|
|
4233
4245
|
}
|
|
4234
4246
|
}
|
|
4235
|
-
}),
|
|
4247
|
+
}), ei = ["validate", "action", "method", "name"], ti = {
|
|
4236
4248
|
key: 2,
|
|
4237
4249
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4238
4250
|
};
|
|
4239
|
-
function
|
|
4251
|
+
function ni(e, t, n, o, r, i) {
|
|
4240
4252
|
const s = k("Blocks");
|
|
4241
4253
|
return d(), h("form", $({
|
|
4242
4254
|
validate: e.validate,
|
|
@@ -4259,16 +4271,16 @@ function ti(e, t, n, o, r, i) {
|
|
|
4259
4271
|
blocks: e.sendingMessage,
|
|
4260
4272
|
context: e.builderContext
|
|
4261
4273
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
4262
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre",
|
|
4274
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", ti, pe(e.errorResponse(e.responseData)), 1)) : T("", !0),
|
|
4263
4275
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4264
4276
|
key: 3,
|
|
4265
4277
|
path: "successMessage",
|
|
4266
4278
|
blocks: e.successMessage,
|
|
4267
4279
|
context: e.builderContext
|
|
4268
4280
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
4269
|
-
], 16,
|
|
4281
|
+
], 16, ei);
|
|
4270
4282
|
}
|
|
4271
|
-
const
|
|
4283
|
+
const oi = /* @__PURE__ */ v(_r, [["render", ni], ["__scopeId", "data-v-77c7888c"]]), ri = {
|
|
4272
4284
|
name: "Form:Input",
|
|
4273
4285
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4274
4286
|
inputs: [
|
|
@@ -4319,7 +4331,7 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti], ["__scopeId", "data-v-77c7888c
|
|
|
4319
4331
|
borderStyle: "solid",
|
|
4320
4332
|
borderColor: "#ccc"
|
|
4321
4333
|
}
|
|
4322
|
-
},
|
|
4334
|
+
}, ii = y({
|
|
4323
4335
|
name: "builder-form-input-component",
|
|
4324
4336
|
props: [
|
|
4325
4337
|
"attributes",
|
|
@@ -4333,8 +4345,8 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti], ["__scopeId", "data-v-77c7888c
|
|
|
4333
4345
|
data() {
|
|
4334
4346
|
return { isEditing: P, filterAttrs: O };
|
|
4335
4347
|
}
|
|
4336
|
-
}),
|
|
4337
|
-
function
|
|
4348
|
+
}), si = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4349
|
+
function ai(e, t, n, o, r, i) {
|
|
4338
4350
|
return d(), h("input", $({
|
|
4339
4351
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4340
4352
|
placeholder: e.placeholder,
|
|
@@ -4343,9 +4355,9 @@ function si(e, t, n, o, r, i) {
|
|
|
4343
4355
|
value: e.value,
|
|
4344
4356
|
defaultValue: e.defaultValue,
|
|
4345
4357
|
required: e.required
|
|
4346
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4358
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, si);
|
|
4347
4359
|
}
|
|
4348
|
-
const
|
|
4360
|
+
const li = /* @__PURE__ */ v(ii, [["render", ai]]), ci = {
|
|
4349
4361
|
name: "Form:Select",
|
|
4350
4362
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4351
4363
|
defaultStyles: {
|
|
@@ -4387,14 +4399,14 @@ const ai = /* @__PURE__ */ v(ri, [["render", si]]), li = {
|
|
|
4387
4399
|
}],
|
|
4388
4400
|
static: !0,
|
|
4389
4401
|
noWrap: !0
|
|
4390
|
-
},
|
|
4402
|
+
}, di = y({
|
|
4391
4403
|
name: "builder-select-component",
|
|
4392
4404
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4393
4405
|
data() {
|
|
4394
4406
|
return { isEditing: P, filterAttrs: O };
|
|
4395
4407
|
}
|
|
4396
|
-
}),
|
|
4397
|
-
function
|
|
4408
|
+
}), ui = ["value", "defaultValue", "name", "required"], pi = ["value"];
|
|
4409
|
+
function mi(e, t, n, o, r, i) {
|
|
4398
4410
|
return d(), h("select", $({
|
|
4399
4411
|
value: e.value,
|
|
4400
4412
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -4405,10 +4417,10 @@ function pi(e, t, n, o, r, i) {
|
|
|
4405
4417
|
(d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
|
|
4406
4418
|
key: `${s.name}-${l}`,
|
|
4407
4419
|
value: s.value
|
|
4408
|
-
},
|
|
4409
|
-
], 16,
|
|
4420
|
+
}, pe(s.name || s.value), 9, pi))), 128))
|
|
4421
|
+
], 16, ui);
|
|
4410
4422
|
}
|
|
4411
|
-
const
|
|
4423
|
+
const hi = /* @__PURE__ */ v(di, [["render", mi]]), fi = {
|
|
4412
4424
|
name: "Form:SubmitButton",
|
|
4413
4425
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4414
4426
|
defaultStyles: {
|
|
@@ -4433,17 +4445,17 @@ const mi = /* @__PURE__ */ v(ci, [["render", pi]]), hi = {
|
|
|
4433
4445
|
// that only shows if advanced setting is flipped
|
|
4434
4446
|
// TODO: defaultChildren
|
|
4435
4447
|
// canHaveChildren: true,
|
|
4436
|
-
},
|
|
4448
|
+
}, bi = y({
|
|
4437
4449
|
name: "builder-submit-button",
|
|
4438
4450
|
props: ["attributes", "text"],
|
|
4439
4451
|
data() {
|
|
4440
4452
|
return { filterAttrs: O };
|
|
4441
4453
|
}
|
|
4442
4454
|
});
|
|
4443
|
-
function
|
|
4444
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
4455
|
+
function gi(e, t, n, o, r, i) {
|
|
4456
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
|
|
4445
4457
|
}
|
|
4446
|
-
const
|
|
4458
|
+
const yi = /* @__PURE__ */ v(bi, [["render", gi]]), vi = {
|
|
4447
4459
|
name: "Form:TextArea",
|
|
4448
4460
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4449
4461
|
inputs: [{
|
|
@@ -4479,7 +4491,7 @@ const gi = /* @__PURE__ */ v(fi, [["render", bi]]), yi = {
|
|
|
4479
4491
|
},
|
|
4480
4492
|
static: !0,
|
|
4481
4493
|
noWrap: !0
|
|
4482
|
-
},
|
|
4494
|
+
}, Si = y({
|
|
4483
4495
|
name: "builder-textarea",
|
|
4484
4496
|
props: [
|
|
4485
4497
|
"attributes",
|
|
@@ -4492,17 +4504,17 @@ const gi = /* @__PURE__ */ v(fi, [["render", bi]]), yi = {
|
|
|
4492
4504
|
data() {
|
|
4493
4505
|
return { filterAttrs: O };
|
|
4494
4506
|
}
|
|
4495
|
-
}),
|
|
4496
|
-
function
|
|
4507
|
+
}), ki = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4508
|
+
function Ci(e, t, n, o, r, i) {
|
|
4497
4509
|
return d(), h("textarea", $({
|
|
4498
4510
|
placeholder: e.placeholder,
|
|
4499
4511
|
name: e.name,
|
|
4500
4512
|
value: e.value,
|
|
4501
4513
|
defaultValue: e.defaultValue,
|
|
4502
4514
|
required: e.required
|
|
4503
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4515
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ki);
|
|
4504
4516
|
}
|
|
4505
|
-
const
|
|
4517
|
+
const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
4506
4518
|
name: "Raw:Img",
|
|
4507
4519
|
hideFromInsertMenu: !0,
|
|
4508
4520
|
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",
|
|
@@ -4510,7 +4522,7 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4510
4522
|
name: "image",
|
|
4511
4523
|
bubble: !0,
|
|
4512
4524
|
type: "file",
|
|
4513
|
-
allowedFileTypes:
|
|
4525
|
+
allowedFileTypes: xe,
|
|
4514
4526
|
required: !0
|
|
4515
4527
|
}, {
|
|
4516
4528
|
name: "backgroundSize",
|
|
@@ -4546,7 +4558,7 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4546
4558
|
defaultValue: 0.7041
|
|
4547
4559
|
}],
|
|
4548
4560
|
noWrap: !0
|
|
4549
|
-
},
|
|
4561
|
+
}, Ii = y({
|
|
4550
4562
|
name: "builder-img-component",
|
|
4551
4563
|
props: [
|
|
4552
4564
|
"imgSrc",
|
|
@@ -4565,7 +4577,7 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4565
4577
|
srcSetToUse() {
|
|
4566
4578
|
const e = this.imgSrc || this.image;
|
|
4567
4579
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4568
|
-
return
|
|
4580
|
+
return ie(e);
|
|
4569
4581
|
},
|
|
4570
4582
|
imgAttrs() {
|
|
4571
4583
|
const e = {
|
|
@@ -4576,8 +4588,8 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4576
4588
|
return delete e.style, e;
|
|
4577
4589
|
}
|
|
4578
4590
|
}
|
|
4579
|
-
}),
|
|
4580
|
-
function
|
|
4591
|
+
}), $i = ["alt", "title", "src"];
|
|
4592
|
+
function Ei(e, t, n, o, r, i) {
|
|
4581
4593
|
var s;
|
|
4582
4594
|
return d(), h("img", $({
|
|
4583
4595
|
loading: "lazy",
|
|
@@ -4591,9 +4603,9 @@ function $i(e, t, n, o, r, i) {
|
|
|
4591
4603
|
aspectRatio: e.aspectRatio || void 0,
|
|
4592
4604
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4593
4605
|
}
|
|
4594
|
-
}, e.imgAttrs), null, 16,
|
|
4606
|
+
}, e.imgAttrs), null, 16, $i);
|
|
4595
4607
|
}
|
|
4596
|
-
const
|
|
4608
|
+
const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
|
|
4597
4609
|
name: "Video",
|
|
4598
4610
|
canHaveChildren: !0,
|
|
4599
4611
|
defaultStyles: {
|
|
@@ -4604,14 +4616,14 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4604
4616
|
inputs: [{
|
|
4605
4617
|
name: "video",
|
|
4606
4618
|
type: "file",
|
|
4607
|
-
allowedFileTypes:
|
|
4619
|
+
allowedFileTypes: fr,
|
|
4608
4620
|
bubble: !0,
|
|
4609
4621
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4610
4622
|
required: !0
|
|
4611
4623
|
}, {
|
|
4612
4624
|
name: "posterImage",
|
|
4613
4625
|
type: "file",
|
|
4614
|
-
allowedFileTypes:
|
|
4626
|
+
allowedFileTypes: xe,
|
|
4615
4627
|
helperText: "Image to show before the video plays"
|
|
4616
4628
|
}, {
|
|
4617
4629
|
name: "autoPlay",
|
|
@@ -4677,7 +4689,7 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4677
4689
|
shouldReceiveBuilderProps: {
|
|
4678
4690
|
builderBlock: !0
|
|
4679
4691
|
}
|
|
4680
|
-
},
|
|
4692
|
+
}, Ai = y({
|
|
4681
4693
|
name: "builder-video",
|
|
4682
4694
|
props: [
|
|
4683
4695
|
"lazyLoad",
|
|
@@ -4750,16 +4762,16 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4750
4762
|
};
|
|
4751
4763
|
}
|
|
4752
4764
|
}
|
|
4753
|
-
}),
|
|
4765
|
+
}), Bi = { style: {
|
|
4754
4766
|
position: "relative"
|
|
4755
|
-
} },
|
|
4767
|
+
} }, Vi = ["preload", "poster"], Ni = {
|
|
4756
4768
|
key: 1,
|
|
4757
4769
|
style: {
|
|
4758
4770
|
display: "flex",
|
|
4759
4771
|
flexDirection: "column",
|
|
4760
4772
|
alignItems: "stretch"
|
|
4761
4773
|
}
|
|
4762
|
-
},
|
|
4774
|
+
}, Oi = {
|
|
4763
4775
|
key: 2,
|
|
4764
4776
|
style: {
|
|
4765
4777
|
pointerEvents: "none",
|
|
@@ -4773,9 +4785,9 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4773
4785
|
height: "100%"
|
|
4774
4786
|
}
|
|
4775
4787
|
};
|
|
4776
|
-
function
|
|
4788
|
+
function Wi(e, t, n, o, r, i) {
|
|
4777
4789
|
var s, l, a, u, p, b, c;
|
|
4778
|
-
return d(), h("div",
|
|
4790
|
+
return d(), h("div", Bi, [
|
|
4779
4791
|
G("video", $({
|
|
4780
4792
|
class: "builder-video",
|
|
4781
4793
|
ref: "videoRef",
|
|
@@ -4803,7 +4815,7 @@ function Oi(e, t, n, o, r, i) {
|
|
|
4803
4815
|
src: e.video
|
|
4804
4816
|
}
|
|
4805
4817
|
), null, 16)
|
|
4806
|
-
], 16,
|
|
4818
|
+
], 16, Vi),
|
|
4807
4819
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4808
4820
|
key: 0,
|
|
4809
4821
|
style: H({
|
|
@@ -4813,75 +4825,75 @@ function Oi(e, t, n, o, r, i) {
|
|
|
4813
4825
|
fontSize: "0px"
|
|
4814
4826
|
})
|
|
4815
4827
|
}, null, 4)) : T("", !0),
|
|
4816
|
-
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div",
|
|
4828
|
+
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Ni, [
|
|
4817
4829
|
N(e.$slots, "default")
|
|
4818
4830
|
])) : T("", !0),
|
|
4819
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4831
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", Oi, [
|
|
4820
4832
|
N(e.$slots, "default")
|
|
4821
4833
|
])) : T("", !0)
|
|
4822
4834
|
]);
|
|
4823
4835
|
}
|
|
4824
|
-
const
|
|
4825
|
-
component:
|
|
4826
|
-
...
|
|
4827
|
-
}, {
|
|
4828
|
-
component: Jr,
|
|
4829
|
-
...Mr
|
|
4836
|
+
const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), xi = () => [{
|
|
4837
|
+
component: Mr,
|
|
4838
|
+
...Ur
|
|
4830
4839
|
}, {
|
|
4831
|
-
component:
|
|
4832
|
-
...
|
|
4840
|
+
component: Qr,
|
|
4841
|
+
...jr
|
|
4833
4842
|
}, {
|
|
4834
|
-
component:
|
|
4835
|
-
...
|
|
4843
|
+
component: oi,
|
|
4844
|
+
...Yr
|
|
4836
4845
|
}, {
|
|
4837
|
-
component:
|
|
4838
|
-
...
|
|
4846
|
+
component: li,
|
|
4847
|
+
...ri
|
|
4839
4848
|
}, {
|
|
4840
|
-
component:
|
|
4841
|
-
...
|
|
4849
|
+
component: yi,
|
|
4850
|
+
...fi
|
|
4842
4851
|
}, {
|
|
4843
|
-
component:
|
|
4844
|
-
...
|
|
4852
|
+
component: hi,
|
|
4853
|
+
...ci
|
|
4845
4854
|
}, {
|
|
4846
|
-
component:
|
|
4847
|
-
...
|
|
4855
|
+
component: Ti,
|
|
4856
|
+
...vi
|
|
4848
4857
|
}, {
|
|
4849
|
-
component:
|
|
4850
|
-
...
|
|
4851
|
-
}], Ye = () => [{
|
|
4852
|
-
component: Mt,
|
|
4853
|
-
...ur
|
|
4858
|
+
component: Ri,
|
|
4859
|
+
...wi
|
|
4854
4860
|
}, {
|
|
4855
|
-
component:
|
|
4861
|
+
component: Di,
|
|
4862
|
+
...Pi
|
|
4863
|
+
}], Xe = () => [{
|
|
4864
|
+
component: jt,
|
|
4856
4865
|
...pr
|
|
4857
4866
|
}, {
|
|
4858
|
-
component:
|
|
4867
|
+
component: Oo,
|
|
4859
4868
|
...mr
|
|
4860
4869
|
}, {
|
|
4861
|
-
component:
|
|
4862
|
-
...
|
|
4870
|
+
component: xo,
|
|
4871
|
+
...hr
|
|
4863
4872
|
}, {
|
|
4864
|
-
component:
|
|
4865
|
-
...
|
|
4873
|
+
component: Ko,
|
|
4874
|
+
...br
|
|
4866
4875
|
}, {
|
|
4867
|
-
component:
|
|
4876
|
+
component: Jo,
|
|
4868
4877
|
...kr
|
|
4869
4878
|
}, {
|
|
4870
|
-
component:
|
|
4871
|
-
...
|
|
4879
|
+
component: Ir,
|
|
4880
|
+
...Cr
|
|
4872
4881
|
}, {
|
|
4873
|
-
component:
|
|
4874
|
-
...Vr
|
|
4875
|
-
}, ...Bt.includes(E) ? [{
|
|
4876
|
-
component: vr,
|
|
4877
|
-
...br
|
|
4878
|
-
}] : [], {
|
|
4879
|
-
component: Br,
|
|
4882
|
+
component: ks,
|
|
4880
4883
|
...$r
|
|
4881
4884
|
}, {
|
|
4882
|
-
component:
|
|
4883
|
-
...
|
|
4884
|
-
}, ...
|
|
4885
|
+
component: xr,
|
|
4886
|
+
...Nr
|
|
4887
|
+
}, ...Vt.includes(E) ? [{
|
|
4888
|
+
component: Sr,
|
|
4889
|
+
...gr
|
|
4890
|
+
}] : [], {
|
|
4891
|
+
component: Vr,
|
|
4892
|
+
...Er
|
|
4893
|
+
}, {
|
|
4894
|
+
component: ur,
|
|
4895
|
+
...sr
|
|
4896
|
+
}, ...xi()], Ui = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4885
4897
|
function getAndSetVariantId() {
|
|
4886
4898
|
function setCookie(name, value, days) {
|
|
4887
4899
|
let expires = '';
|
|
@@ -4940,7 +4952,7 @@ const Wi = /* @__PURE__ */ v(Pi, [["render", Oi]]), Di = () => [{
|
|
|
4940
4952
|
}).join('');
|
|
4941
4953
|
styleEl.innerHTML = newStyleStr;
|
|
4942
4954
|
}
|
|
4943
|
-
}`,
|
|
4955
|
+
}`, Li = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4944
4956
|
if (!navigator.cookieEnabled) {
|
|
4945
4957
|
return;
|
|
4946
4958
|
}
|
|
@@ -4974,37 +4986,37 @@ const Wi = /* @__PURE__ */ v(Pi, [["render", Oi]]), Di = () => [{
|
|
|
4974
4986
|
thisScriptEl?.remove();
|
|
4975
4987
|
}
|
|
4976
4988
|
return;
|
|
4977
|
-
}`,
|
|
4989
|
+
}`, $e = "builderIoAbTest", Ee = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4978
4990
|
...t,
|
|
4979
4991
|
testVariationId: t.id,
|
|
4980
4992
|
id: e == null ? void 0 : e.id
|
|
4981
|
-
})),
|
|
4993
|
+
})), Fi = ({
|
|
4982
4994
|
canTrack: e,
|
|
4983
4995
|
content: t
|
|
4984
|
-
}) => !(!(
|
|
4996
|
+
}) => !(!(ae(t).length > 0) || !e), Hi = (e) => e === "react" || e === "reactNative", Mi = E === "angular", Le = Hi(E), ji = () => `
|
|
4985
4997
|
(function() {
|
|
4986
|
-
if (!window.${Ie}) {
|
|
4987
|
-
window.${Ie} = ${xi};
|
|
4988
|
-
}
|
|
4989
4998
|
if (!window.${$e}) {
|
|
4990
4999
|
window.${$e} = ${Ui};
|
|
4991
|
-
}
|
|
5000
|
+
}
|
|
5001
|
+
if (!window.${Ee}) {
|
|
5002
|
+
window.${Ee} = ${Li};
|
|
5003
|
+
}${Le ? `
|
|
4992
5004
|
var thisScriptEl = document.currentScript;
|
|
4993
5005
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4994
5006
|
})();
|
|
4995
|
-
`,
|
|
4996
|
-
window.${
|
|
4997
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4998
|
-
)`,
|
|
5007
|
+
`, zi = (e, t) => `
|
|
5008
|
+
window.${$e}(
|
|
5009
|
+
"${t}",${JSON.stringify(e)}, ${Le}, ${Mi}
|
|
5010
|
+
)`, Ki = ({
|
|
4999
5011
|
contentId: e,
|
|
5000
5012
|
variationId: t
|
|
5001
|
-
}) => `window.${
|
|
5002
|
-
"${t}", "${e}", ${
|
|
5013
|
+
}) => `window.${Ee}(
|
|
5014
|
+
"${t}", "${e}", ${Le}
|
|
5003
5015
|
)`;
|
|
5004
|
-
function
|
|
5016
|
+
function Ze(e) {
|
|
5005
5017
|
return Math.round(e * 1e3) / 1e3;
|
|
5006
5018
|
}
|
|
5007
|
-
const
|
|
5019
|
+
const qi = (e, t, n = !0) => {
|
|
5008
5020
|
if (!(e instanceof HTMLElement))
|
|
5009
5021
|
return null;
|
|
5010
5022
|
let o = n ? e : e.parentElement;
|
|
@@ -5015,35 +5027,35 @@ const Ki = (e, t, n = !0) => {
|
|
|
5015
5027
|
return o;
|
|
5016
5028
|
} while (o = o.parentElement);
|
|
5017
5029
|
return null;
|
|
5018
|
-
},
|
|
5030
|
+
}, Gi = (e) => qi(e, (t) => {
|
|
5019
5031
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5020
5032
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5021
|
-
}),
|
|
5033
|
+
}), _e = ({
|
|
5022
5034
|
event: e,
|
|
5023
5035
|
target: t
|
|
5024
5036
|
}) => {
|
|
5025
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
5037
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ze(o / n.width), s = Ze(r / n.height);
|
|
5026
5038
|
return {
|
|
5027
5039
|
x: i,
|
|
5028
5040
|
y: s
|
|
5029
5041
|
};
|
|
5030
|
-
},
|
|
5031
|
-
const t = e.target, n = t &&
|
|
5042
|
+
}, Ji = (e) => {
|
|
5043
|
+
const t = e.target, n = t && Gi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5032
5044
|
return {
|
|
5033
5045
|
targetBuilderElement: o || void 0,
|
|
5034
5046
|
metadata: {
|
|
5035
|
-
targetOffset: t ?
|
|
5047
|
+
targetOffset: t ? _e({
|
|
5036
5048
|
event: e,
|
|
5037
5049
|
target: t
|
|
5038
5050
|
}) : void 0,
|
|
5039
|
-
builderTargetOffset: n ?
|
|
5051
|
+
builderTargetOffset: n ? _e({
|
|
5040
5052
|
event: e,
|
|
5041
5053
|
target: n
|
|
5042
5054
|
}) : void 0,
|
|
5043
5055
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5044
5056
|
}
|
|
5045
5057
|
};
|
|
5046
|
-
},
|
|
5058
|
+
}, Qi = ["svelte", "qwik", "vue"], Yi = () => Qi.includes(E) && (P() || Ve()), Xi = (e) => {
|
|
5047
5059
|
var i;
|
|
5048
5060
|
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);
|
|
5049
5061
|
let r = "";
|
|
@@ -5069,15 +5081,15 @@ font-weight: ${s};
|
|
|
5069
5081
|
`.trim());
|
|
5070
5082
|
}
|
|
5071
5083
|
return r;
|
|
5072
|
-
},
|
|
5084
|
+
}, Zi = ({
|
|
5073
5085
|
customFonts: e
|
|
5074
5086
|
}) => {
|
|
5075
5087
|
var t;
|
|
5076
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5077
|
-
},
|
|
5088
|
+
return ((t = e == null ? void 0 : e.map((n) => Xi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5089
|
+
}, _i = ({
|
|
5078
5090
|
cssCode: e,
|
|
5079
5091
|
contentId: t
|
|
5080
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5092
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", es = `
|
|
5081
5093
|
.builder-button {
|
|
5082
5094
|
all: unset;
|
|
5083
5095
|
}
|
|
@@ -5094,7 +5106,7 @@ font-weight: ${s};
|
|
|
5094
5106
|
text-align: inherit;
|
|
5095
5107
|
font-family: inherit;
|
|
5096
5108
|
}
|
|
5097
|
-
`,
|
|
5109
|
+
`, ts = (e) => e ? "" : es, ns = (e) => `variant-${e}`, os = y({
|
|
5098
5110
|
name: "enable-editor",
|
|
5099
5111
|
components: { DynamicDiv: ne },
|
|
5100
5112
|
props: [
|
|
@@ -5126,15 +5138,15 @@ font-weight: ${s};
|
|
|
5126
5138
|
httpReqsData: {},
|
|
5127
5139
|
httpReqsPending: {},
|
|
5128
5140
|
clicked: !1,
|
|
5129
|
-
builderContext:
|
|
5130
|
-
needsElementRefDivForEditing:
|
|
5131
|
-
getWrapperClassName:
|
|
5141
|
+
builderContext: ve,
|
|
5142
|
+
needsElementRefDivForEditing: Yi,
|
|
5143
|
+
getWrapperClassName: ns
|
|
5132
5144
|
};
|
|
5133
5145
|
},
|
|
5134
5146
|
provide() {
|
|
5135
5147
|
const e = this;
|
|
5136
5148
|
return {
|
|
5137
|
-
[
|
|
5149
|
+
[ve.key]: e.builderContextSignal
|
|
5138
5150
|
};
|
|
5139
5151
|
},
|
|
5140
5152
|
created() {
|
|
@@ -5146,13 +5158,13 @@ font-weight: ${s};
|
|
|
5146
5158
|
P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5147
5159
|
new CustomEvent("initeditingbldr")
|
|
5148
5160
|
);
|
|
5149
|
-
const o = this.builderContextSignal.content && J(this.canTrack), r =
|
|
5161
|
+
const o = this.builderContextSignal.content && J(this.canTrack), r = me({
|
|
5150
5162
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5151
5163
|
canTrack: !0
|
|
5152
5164
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5153
5165
|
if (o && i === r) {
|
|
5154
5166
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5155
|
-
|
|
5167
|
+
le({
|
|
5156
5168
|
apiHost: this.apiHost,
|
|
5157
5169
|
type: "impression",
|
|
5158
5170
|
canTrack: !0,
|
|
@@ -5161,7 +5173,7 @@ font-weight: ${s};
|
|
|
5161
5173
|
variationId: r !== s ? r : void 0
|
|
5162
5174
|
});
|
|
5163
5175
|
}
|
|
5164
|
-
|
|
5176
|
+
Ve() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5165
5177
|
new CustomEvent("initpreviewingbldr")
|
|
5166
5178
|
);
|
|
5167
5179
|
}
|
|
@@ -5263,7 +5275,7 @@ font-weight: ${s};
|
|
|
5263
5275
|
this.builderContextSignal.content = n;
|
|
5264
5276
|
},
|
|
5265
5277
|
processMessage(e) {
|
|
5266
|
-
return
|
|
5278
|
+
return vt({
|
|
5267
5279
|
model: this.model,
|
|
5268
5280
|
trustedHosts: this.trustedHosts,
|
|
5269
5281
|
callbacks: {
|
|
@@ -5277,7 +5289,7 @@ font-weight: ${s};
|
|
|
5277
5289
|
});
|
|
5278
5290
|
},
|
|
5279
5291
|
animation: (t) => {
|
|
5280
|
-
|
|
5292
|
+
$t(t);
|
|
5281
5293
|
},
|
|
5282
5294
|
contentUpdate: (t, n) => {
|
|
5283
5295
|
this.mergeNewContent(t, n);
|
|
@@ -5292,14 +5304,14 @@ font-weight: ${s};
|
|
|
5292
5304
|
var t, n;
|
|
5293
5305
|
if (this.builderContextSignal.content) {
|
|
5294
5306
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5295
|
-
|
|
5307
|
+
le({
|
|
5296
5308
|
apiHost: this.apiHost,
|
|
5297
5309
|
type: "click",
|
|
5298
5310
|
canTrack: J(this.canTrack),
|
|
5299
5311
|
contentId: r,
|
|
5300
5312
|
apiKey: this.apiKey,
|
|
5301
5313
|
variationId: o !== r ? o : void 0,
|
|
5302
|
-
...
|
|
5314
|
+
...Ji(e),
|
|
5303
5315
|
unique: !this.clicked
|
|
5304
5316
|
});
|
|
5305
5317
|
}
|
|
@@ -5337,7 +5349,7 @@ font-weight: ${s};
|
|
|
5337
5349
|
url: l,
|
|
5338
5350
|
method: "GET"
|
|
5339
5351
|
};
|
|
5340
|
-
|
|
5352
|
+
Ae(JSON.stringify(a));
|
|
5341
5353
|
const u = {
|
|
5342
5354
|
method: a.method,
|
|
5343
5355
|
headers: a.headers,
|
|
@@ -5365,7 +5377,7 @@ font-weight: ${s};
|
|
|
5365
5377
|
"builder:component:stateChange",
|
|
5366
5378
|
{
|
|
5367
5379
|
detail: {
|
|
5368
|
-
state:
|
|
5380
|
+
state: Be(this.builderContextSignal.rootState),
|
|
5369
5381
|
ref: {
|
|
5370
5382
|
name: this.model
|
|
5371
5383
|
}
|
|
@@ -5375,7 +5387,7 @@ font-weight: ${s};
|
|
|
5375
5387
|
);
|
|
5376
5388
|
},
|
|
5377
5389
|
elementRef_onIniteditingbldr(e) {
|
|
5378
|
-
window.addEventListener("message", this.processMessage),
|
|
5390
|
+
window.addEventListener("message", this.processMessage), yt({
|
|
5379
5391
|
...this.locale ? {
|
|
5380
5392
|
locale: this.locale
|
|
5381
5393
|
} : {},
|
|
@@ -5395,7 +5407,7 @@ font-weight: ${s};
|
|
|
5395
5407
|
).forEach((t) => {
|
|
5396
5408
|
var n, o;
|
|
5397
5409
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5398
|
-
const r =
|
|
5410
|
+
const r = Bn(t);
|
|
5399
5411
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5400
5412
|
}
|
|
5401
5413
|
}), window.addEventListener(
|
|
@@ -5408,7 +5420,7 @@ font-weight: ${s};
|
|
|
5408
5420
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5409
5421
|
`builder.overrides.${n}`
|
|
5410
5422
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5411
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5423
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && We({
|
|
5412
5424
|
model: this.model,
|
|
5413
5425
|
apiKey: this.apiKey,
|
|
5414
5426
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5423,7 +5435,7 @@ font-weight: ${s};
|
|
|
5423
5435
|
}
|
|
5424
5436
|
}
|
|
5425
5437
|
});
|
|
5426
|
-
function
|
|
5438
|
+
function rs(e, t, n, o, r, i) {
|
|
5427
5439
|
var s, l, a;
|
|
5428
5440
|
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Z(e.ContentWrapper), $({
|
|
5429
5441
|
key: 0,
|
|
@@ -5444,26 +5456,26 @@ function os(e, t, n, o, r, i) {
|
|
|
5444
5456
|
_: 3
|
|
5445
5457
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5446
5458
|
}
|
|
5447
|
-
const
|
|
5459
|
+
const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
|
|
5448
5460
|
name: "content-styles",
|
|
5449
|
-
components: { InlinedStyles:
|
|
5461
|
+
components: { InlinedStyles: he },
|
|
5450
5462
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5451
5463
|
data() {
|
|
5452
5464
|
return {
|
|
5453
5465
|
injectedStyles: `
|
|
5454
|
-
${
|
|
5466
|
+
${_i({
|
|
5455
5467
|
cssCode: this.cssCode,
|
|
5456
5468
|
contentId: this.contentId
|
|
5457
5469
|
})}
|
|
5458
|
-
${
|
|
5470
|
+
${Zi({
|
|
5459
5471
|
customFonts: this.customFonts
|
|
5460
5472
|
})}
|
|
5461
|
-
${
|
|
5473
|
+
${ts(this.isNestedRender)}
|
|
5462
5474
|
`.trim()
|
|
5463
5475
|
};
|
|
5464
5476
|
}
|
|
5465
5477
|
});
|
|
5466
|
-
function
|
|
5478
|
+
function as(e, t, n, o, r, i) {
|
|
5467
5479
|
const s = k("InlinedStyles");
|
|
5468
5480
|
return d(), S(s, {
|
|
5469
5481
|
id: "builderio-content",
|
|
@@ -5471,7 +5483,7 @@ function ss(e, t, n, o, r, i) {
|
|
|
5471
5483
|
nonce: e.nonce
|
|
5472
5484
|
}, null, 8, ["styles", "nonce"]);
|
|
5473
5485
|
}
|
|
5474
|
-
const
|
|
5486
|
+
const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
|
|
5475
5487
|
content: e,
|
|
5476
5488
|
data: t,
|
|
5477
5489
|
locale: n
|
|
@@ -5488,7 +5500,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5488
5500
|
locale: n
|
|
5489
5501
|
} : {}
|
|
5490
5502
|
};
|
|
5491
|
-
},
|
|
5503
|
+
}, ds = ({
|
|
5492
5504
|
content: e,
|
|
5493
5505
|
data: t
|
|
5494
5506
|
}) => e ? {
|
|
@@ -5498,12 +5510,12 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5498
5510
|
...t
|
|
5499
5511
|
},
|
|
5500
5512
|
meta: e == null ? void 0 : e.meta
|
|
5501
|
-
} : void 0,
|
|
5513
|
+
} : void 0, us = Dt, ps = y({
|
|
5502
5514
|
name: "content-component",
|
|
5503
5515
|
components: {
|
|
5504
|
-
EnableEditor:
|
|
5505
|
-
InlinedScript:
|
|
5506
|
-
ContentStyles:
|
|
5516
|
+
EnableEditor: is,
|
|
5517
|
+
InlinedScript: Ue,
|
|
5518
|
+
ContentStyles: ls,
|
|
5507
5519
|
Blocks: K,
|
|
5508
5520
|
DynamicDiv: ne
|
|
5509
5521
|
},
|
|
@@ -5534,32 +5546,32 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5534
5546
|
data() {
|
|
5535
5547
|
var e, t;
|
|
5536
5548
|
return {
|
|
5537
|
-
scriptStr:
|
|
5549
|
+
scriptStr: Ki({
|
|
5538
5550
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5539
5551
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5540
5552
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5541
5553
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5542
5554
|
}),
|
|
5543
5555
|
registeredComponents: [
|
|
5544
|
-
...
|
|
5556
|
+
...Xe(),
|
|
5545
5557
|
...this.customComponents || []
|
|
5546
5558
|
].reduce(
|
|
5547
5559
|
(n, { component: o, ...r }) => ({
|
|
5548
5560
|
...n,
|
|
5549
5561
|
[r.name]: {
|
|
5550
|
-
component:
|
|
5551
|
-
...
|
|
5562
|
+
component: us(o),
|
|
5563
|
+
...de(r)
|
|
5552
5564
|
}
|
|
5553
5565
|
}),
|
|
5554
5566
|
{}
|
|
5555
5567
|
),
|
|
5556
5568
|
builderContextSignal: {
|
|
5557
|
-
content:
|
|
5569
|
+
content: ds({
|
|
5558
5570
|
content: this.content,
|
|
5559
5571
|
data: this.data
|
|
5560
5572
|
}),
|
|
5561
5573
|
localState: void 0,
|
|
5562
|
-
rootState:
|
|
5574
|
+
rootState: cs({
|
|
5563
5575
|
content: this.content,
|
|
5564
5576
|
data: this.data,
|
|
5565
5577
|
locale: this.locale
|
|
@@ -5570,12 +5582,12 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5570
5582
|
apiKey: this.apiKey,
|
|
5571
5583
|
apiVersion: this.apiVersion,
|
|
5572
5584
|
componentInfos: [
|
|
5573
|
-
...
|
|
5585
|
+
...Xe(),
|
|
5574
5586
|
...this.customComponents || []
|
|
5575
5587
|
].reduce(
|
|
5576
5588
|
(n, { component: o, ...r }) => ({
|
|
5577
5589
|
...n,
|
|
5578
|
-
[r.name]:
|
|
5590
|
+
[r.name]: de(r)
|
|
5579
5591
|
}),
|
|
5580
5592
|
{}
|
|
5581
5593
|
),
|
|
@@ -5591,7 +5603,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5591
5603
|
provide() {
|
|
5592
5604
|
const e = this;
|
|
5593
5605
|
return {
|
|
5594
|
-
[
|
|
5606
|
+
[tt.key]: {
|
|
5595
5607
|
registeredComponents: e.registeredComponents
|
|
5596
5608
|
}
|
|
5597
5609
|
};
|
|
@@ -5635,7 +5647,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5635
5647
|
}
|
|
5636
5648
|
}
|
|
5637
5649
|
});
|
|
5638
|
-
function
|
|
5650
|
+
function ms(e, t, n, o, r, i) {
|
|
5639
5651
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5640
5652
|
return d(), S(u, $({
|
|
5641
5653
|
apiHost: e.apiHost,
|
|
@@ -5684,12 +5696,12 @@ function ps(e, t, n, o, r, i) {
|
|
|
5684
5696
|
_: 1
|
|
5685
5697
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5686
5698
|
}
|
|
5687
|
-
const
|
|
5699
|
+
const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
|
|
5688
5700
|
name: "content-variants",
|
|
5689
5701
|
components: {
|
|
5690
|
-
InlinedScript:
|
|
5691
|
-
InlinedStyles:
|
|
5692
|
-
ContentComponent:
|
|
5702
|
+
InlinedScript: Ue,
|
|
5703
|
+
InlinedStyles: he,
|
|
5704
|
+
ContentComponent: hs
|
|
5693
5705
|
},
|
|
5694
5706
|
props: [
|
|
5695
5707
|
"canTrack",
|
|
@@ -5715,16 +5727,16 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5715
5727
|
],
|
|
5716
5728
|
data() {
|
|
5717
5729
|
return {
|
|
5718
|
-
shouldRenderVariants:
|
|
5730
|
+
shouldRenderVariants: Fi({
|
|
5719
5731
|
canTrack: J(this.canTrack),
|
|
5720
5732
|
content: this.content
|
|
5721
5733
|
}),
|
|
5722
|
-
shouldEmitPersonalizationFns:
|
|
5723
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5724
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5734
|
+
shouldEmitPersonalizationFns: nr(this.content),
|
|
5735
|
+
SDKS_SUPPORTING_PERSONALIZATION: Vt,
|
|
5736
|
+
getInitPersonalizationVariantsFnsScriptString: or,
|
|
5725
5737
|
TARGET: E,
|
|
5726
|
-
getInitVariantsFnsScriptString:
|
|
5727
|
-
getVariants:
|
|
5738
|
+
getInitVariantsFnsScriptString: ji,
|
|
5739
|
+
getVariants: ae
|
|
5728
5740
|
};
|
|
5729
5741
|
},
|
|
5730
5742
|
mounted() {
|
|
@@ -5732,8 +5744,8 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5732
5744
|
computed: {
|
|
5733
5745
|
updateCookieAndStylesScriptStr() {
|
|
5734
5746
|
var e;
|
|
5735
|
-
return
|
|
5736
|
-
|
|
5747
|
+
return zi(
|
|
5748
|
+
ae(this.content).map((t) => ({
|
|
5737
5749
|
id: t.testVariationId,
|
|
5738
5750
|
testRatio: t.testRatio
|
|
5739
5751
|
})),
|
|
@@ -5741,21 +5753,21 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5741
5753
|
);
|
|
5742
5754
|
},
|
|
5743
5755
|
hideVariantsStyleString() {
|
|
5744
|
-
return
|
|
5756
|
+
return ae(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5745
5757
|
},
|
|
5746
5758
|
defaultContent() {
|
|
5747
5759
|
var e;
|
|
5748
5760
|
return this.shouldRenderVariants ? {
|
|
5749
5761
|
...this.content,
|
|
5750
5762
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5751
|
-
} :
|
|
5763
|
+
} : Hn({
|
|
5752
5764
|
item: this.content,
|
|
5753
5765
|
canTrack: J(this.canTrack)
|
|
5754
5766
|
});
|
|
5755
5767
|
}
|
|
5756
5768
|
}
|
|
5757
5769
|
});
|
|
5758
|
-
function
|
|
5770
|
+
function bs(e, t, n, o, r, i) {
|
|
5759
5771
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5760
5772
|
return d(), h(I, null, [
|
|
5761
5773
|
e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
|
|
@@ -5836,13 +5848,13 @@ function fs(e, t, n, o, r, i) {
|
|
|
5836
5848
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5837
5849
|
], 64);
|
|
5838
5850
|
}
|
|
5839
|
-
const
|
|
5851
|
+
const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
|
|
5840
5852
|
builderContextValue: e,
|
|
5841
5853
|
symbol: t
|
|
5842
5854
|
}) => {
|
|
5843
5855
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5844
5856
|
(e != null && e.apiKey))
|
|
5845
|
-
return
|
|
5857
|
+
return We({
|
|
5846
5858
|
model: t.model,
|
|
5847
5859
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5848
5860
|
apiVersion: e.apiVersion,
|
|
@@ -5854,9 +5866,9 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5854
5866
|
}).catch((n) => {
|
|
5855
5867
|
B.error("Could not fetch symbol content: ", n);
|
|
5856
5868
|
});
|
|
5857
|
-
},
|
|
5869
|
+
}, vs = y({
|
|
5858
5870
|
name: "builder-symbol",
|
|
5859
|
-
components: { ContentVariants:
|
|
5871
|
+
components: { ContentVariants: gs, DynamicDiv: ne },
|
|
5860
5872
|
props: [
|
|
5861
5873
|
"symbol",
|
|
5862
5874
|
"builderComponents",
|
|
@@ -5913,7 +5925,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5913
5925
|
methods: {
|
|
5914
5926
|
setContent() {
|
|
5915
5927
|
var e;
|
|
5916
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5928
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || ys({
|
|
5917
5929
|
symbol: this.symbol,
|
|
5918
5930
|
builderContextValue: this.builderContext
|
|
5919
5931
|
}).then((t) => {
|
|
@@ -5923,7 +5935,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5923
5935
|
}
|
|
5924
5936
|
}
|
|
5925
5937
|
});
|
|
5926
|
-
function
|
|
5938
|
+
function Ss(e, t, n, o, r, i) {
|
|
5927
5939
|
var l, a, u, p, b, c, m;
|
|
5928
5940
|
const s = k("ContentVariants");
|
|
5929
5941
|
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -5951,47 +5963,48 @@ function vs(e, t, n, o, r, i) {
|
|
|
5951
5963
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5952
5964
|
], 16);
|
|
5953
5965
|
}
|
|
5954
|
-
const
|
|
5966
|
+
const ks = /* @__PURE__ */ v(vs, [["render", Ss]]);
|
|
5955
5967
|
export {
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5968
|
+
Is as A,
|
|
5969
|
+
At as B,
|
|
5970
|
+
Oo as C,
|
|
5971
|
+
Ps as D,
|
|
5972
|
+
Bs as E,
|
|
5973
|
+
xo as F,
|
|
5962
5974
|
_n as G,
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5975
|
+
eo as H,
|
|
5976
|
+
Ko as I,
|
|
5977
|
+
We as J,
|
|
5978
|
+
ws as K,
|
|
5979
|
+
Ws as L,
|
|
5980
|
+
Jo as S,
|
|
5968
5981
|
E as T,
|
|
5969
|
-
|
|
5982
|
+
Di as V,
|
|
5970
5983
|
v as _,
|
|
5971
5984
|
M as a,
|
|
5972
|
-
|
|
5973
|
-
|
|
5985
|
+
ve as b,
|
|
5986
|
+
he as c,
|
|
5974
5987
|
j as d,
|
|
5975
5988
|
te as e,
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5989
|
+
Vs as f,
|
|
5990
|
+
Os as g,
|
|
5991
|
+
Ao as h,
|
|
5979
5992
|
P as i,
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5993
|
+
Ns as j,
|
|
5994
|
+
Ds as k,
|
|
5995
|
+
De as l,
|
|
5996
|
+
An as m,
|
|
5997
|
+
jt as n,
|
|
5998
|
+
ks as o,
|
|
5999
|
+
xr as p,
|
|
6000
|
+
K as q,
|
|
6001
|
+
gs as r,
|
|
6002
|
+
As as s,
|
|
6003
|
+
Ve as t,
|
|
6004
|
+
Bn as u,
|
|
5992
6005
|
$s as v,
|
|
5993
|
-
|
|
6006
|
+
us as w,
|
|
5994
6007
|
Es as x,
|
|
5995
|
-
|
|
5996
|
-
|
|
6008
|
+
Rs as y,
|
|
6009
|
+
bt as z
|
|
5997
6010
|
};
|