@builder.io/sdk-vue 5.2.3 → 5.2.4
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-0ES-HtKy.cjs → awaiter-4bKOAzti.cjs} +1 -1
- package/lib/browser/{awaiter-TGpflqNO.js → awaiter-q_DSjMVD.js} +1 -1
- package/lib/browser/{block-wrapper-6JBj9wlj.cjs → block-wrapper-Q-de2c75.cjs} +1 -1
- package/lib/browser/{block-wrapper-M2woB-L4.js → block-wrapper-YNVEwJsu.js} +3 -3
- package/lib/browser/{component-ref-TmVziQMC.cjs → component-ref-YeF1fWsm.cjs} +1 -1
- package/lib/browser/{component-ref-7xUvXH6j.js → component-ref-watkJI0h.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-IPH_xTi-.js → get-block-properties-DvyFZA6k.js} +1 -1
- package/lib/browser/{get-block-properties-2RZMZvVf.cjs → get-block-properties-Q4RE1NYS.cjs} +1 -1
- package/lib/browser/{index-bHeXSwpO.js → index-DfB3iR8x.js} +208 -200
- package/lib/browser/{index-yGDaT-4c.cjs → index-U5K993_E.cjs} +32 -24
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-ncQFzx-S.js → live-edit-9dPB7jWd.js} +1 -1
- package/lib/browser/{live-edit-zea3UB3U.cjs → live-edit-naKnBygx.cjs} +1 -1
- package/lib/browser/{repeated-block-Mk8O3Rpy.js → repeated-block-B84MBN4t.js} +2 -2
- package/lib/browser/{repeated-block-6Car73NY.cjs → repeated-block-BQB7dngl.cjs} +1 -1
- package/lib/browser/{style-wrapper-r-s-if-A.js → style-wrapper-1pU2q-Nj.js} +1 -1
- package/lib/browser/{style-wrapper-5rtVLsI3.cjs → style-wrapper-dtKxKeZ0.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-S6rT9Vve.cjs → awaiter-HFBt_OAF.cjs} +1 -1
- package/lib/edge/{awaiter-rfhkeWZf.js → awaiter-n-gIbP8r.js} +1 -1
- package/lib/{node/block-wrapper-1Y-CVNTM.cjs → edge/block-wrapper-Bu7g5EV_.cjs} +1 -1
- package/lib/edge/{block-wrapper-C8-WoYjv.js → block-wrapper-fPMgU7lR.js} +3 -3
- package/lib/edge/{component-ref-Gc_mK-yZ.cjs → component-ref-4wKEKXCt.cjs} +1 -1
- package/lib/edge/{component-ref-u0-6ifHM.js → component-ref-JHSTjcJx.js} +4 -4
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-YVTdp4N_.cjs → get-block-properties--14I0FqA.cjs} +1 -1
- package/lib/edge/{get-block-properties-HX4IkuJ7.js → get-block-properties-5Wxv-oHg.js} +1 -1
- package/lib/edge/{index-Ep-06GOr.cjs → index-78yK7PsD.cjs} +33 -25
- package/lib/edge/{index-z9siWBN1.js → index-_fUTINXy.js} +366 -358
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-k8OIvz20.js → edge/live-edit-9xqNMwhC.js} +1 -1
- package/lib/{node/live-edit-YzqrW2ZO.cjs → edge/live-edit-nbVPESOp.cjs} +1 -1
- package/lib/edge/{repeated-block-e-bO_PW3.js → repeated-block-F75iqpVr.js} +2 -2
- package/lib/edge/{repeated-block-QAF0iXDX.cjs → repeated-block-nCuqUDP7.cjs} +1 -1
- package/lib/edge/{style-wrapper-IpBgNlUT.cjs → style-wrapper-rVAWy7o_.cjs} +1 -1
- package/lib/edge/{style-wrapper-UVIpB1x8.js → style-wrapper-w933365M.js} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-o04icQ1E.cjs → awaiter-MgDlcUHI.cjs} +1 -1
- package/lib/node/{awaiter-iuox8UDW.js → awaiter-aepEb5fm.js} +1 -1
- package/lib/{edge/block-wrapper-SyvaobbZ.cjs → node/block-wrapper-3kiJne4m.cjs} +1 -1
- package/lib/node/{block-wrapper-Lg6Dv_gm.js → block-wrapper-sEviqhU3.js} +3 -3
- package/lib/node/{component-ref-k5AyvYBo.cjs → component-ref-6kTApMRL.cjs} +1 -1
- package/lib/node/{component-ref-MVFxzC_h.js → component-ref-TyXWBWEx.js} +5 -5
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Kb0sj2FV.cjs → get-block-properties-3uCiF9Qm.cjs} +1 -1
- package/lib/node/{get-block-properties-Rq2VRXzM.js → get-block-properties-NjyNQiag.js} +2 -2
- package/lib/node/{index-yxMSSBrC.cjs → index-9WZ86cun.cjs} +27 -19
- package/lib/node/{index-9hkAOr_P.js → index-YYQAkk5S.js} +208 -200
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-nkpalAUa.cjs → node/live-edit-267vHpIq.cjs} +1 -1
- package/lib/{edge/live-edit-XsT9ZiMs.js → node/live-edit-U9pCBdly.js} +1 -1
- package/lib/node/{repeated-block-0laikCiE.cjs → repeated-block-BfYZqoE0.cjs} +1 -1
- package/lib/node/{repeated-block-km0tNI0j.js → repeated-block-f2s-IUoM.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-o843UKK7.js → should-force-browser-runtime-in-node-HsyT-bd2.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-HK08_EA6.cjs → should-force-browser-runtime-in-node-yK_d4v-W.cjs} +1 -1
- package/lib/node/{style-wrapper-tc5B1slA.js → style-wrapper-MJzB79lB.js} +2 -2
- package/lib/node/{style-wrapper-O4HZcJNK.cjs → style-wrapper-vHL9MNhi.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as x, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as de, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as x, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as de, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as Qe, createElementVNode as z, normalizeStyle as M, normalizeClass as _, markRaw as Nt } from "vue";
|
|
3
3
|
const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
|
|
4
4
|
function W(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -38,9 +38,9 @@ function xt(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Te = /* @__PURE__ */ v(Ot, [["render", xt]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
43
|
+
default: Te
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), R = "vue", j = () => {
|
|
45
45
|
switch (R) {
|
|
46
46
|
case "react":
|
|
@@ -56,7 +56,7 @@ const ke = /* @__PURE__ */ v(Ot, [["render", xt]]), vs = /* @__PURE__ */ Object.
|
|
|
56
56
|
}
|
|
57
57
|
}, Ut = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Te },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -114,7 +114,7 @@ const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
|
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
116
|
key: Ht
|
|
117
|
-
}, Mt = Symbol(),
|
|
117
|
+
}, Mt = Symbol(), Ye = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
119
|
key: Mt
|
|
120
120
|
}, ne = "[Builder.io]: ", B = {
|
|
@@ -122,7 +122,7 @@ const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
|
|
|
122
122
|
error: (...e) => console.error(ne, ...e),
|
|
123
123
|
warn: (...e) => console.warn(ne, ...e),
|
|
124
124
|
debug: (...e) => console.debug(ne, ...e)
|
|
125
|
-
},
|
|
125
|
+
}, Xe = (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
|
};
|
|
@@ -134,13 +134,13 @@ const jt = (e) => {
|
|
|
134
134
|
return e.forEach((n, o) => {
|
|
135
135
|
t[o] = n;
|
|
136
136
|
}), t;
|
|
137
|
-
},
|
|
137
|
+
}, Ze = (e) => e instanceof URLSearchParams ? jt(e) : e, _e = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
138
|
function Kt() {
|
|
139
139
|
return T() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
141
|
function A(e) {
|
|
142
142
|
return Kt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
|
-
|
|
143
|
+
_e(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
145
145
|
const qt = () => {
|
|
146
146
|
if (T()) {
|
|
@@ -148,7 +148,7 @@ const qt = () => {
|
|
|
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
|
-
}, zt = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
151
|
+
}, zt = () => typeof navigator == "object" && navigator.userAgent || "", et = () => {
|
|
152
152
|
const e = zt(), t = {
|
|
153
153
|
Android() {
|
|
154
154
|
return e.match(/Android/i);
|
|
@@ -174,10 +174,10 @@ const qt = () => {
|
|
|
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
|
+
}, tt = "5.2.4", nt = () => ({
|
|
178
178
|
"X-Builder-SDK": R,
|
|
179
179
|
"X-Builder-SDK-GEN": "2",
|
|
180
|
-
"X-Builder-SDK-Version":
|
|
180
|
+
"X-Builder-SDK-Version": tt
|
|
181
181
|
}), K = (e) => e != null, Gt = (e) => {
|
|
182
182
|
if (e === "localhost" || e === "127.0.0.1")
|
|
183
183
|
return e;
|
|
@@ -194,14 +194,14 @@ const qt = () => {
|
|
|
194
194
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, ot = async (e) => ue(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), Qt = [["secure", ""], ["SameSite", "None"]], Yt = ({
|
|
198
198
|
name: e,
|
|
199
199
|
value: t,
|
|
200
200
|
expires: n
|
|
201
201
|
}) => {
|
|
202
202
|
const r = (T() ? location.protocol === "https:" : !0) ? Qt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gt(window.location.hostname)], ...r];
|
|
203
203
|
return Jt(s);
|
|
204
|
-
},
|
|
204
|
+
}, we = async ({
|
|
205
205
|
name: e,
|
|
206
206
|
value: t,
|
|
207
207
|
expires: n,
|
|
@@ -226,16 +226,16 @@ function Xt() {
|
|
|
226
226
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function rt() {
|
|
230
230
|
return Xt().replace(/-/g, "");
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const it = "builderSessionId", Zt = async ({
|
|
233
233
|
canTrack: e
|
|
234
234
|
}) => {
|
|
235
235
|
if (!e)
|
|
236
236
|
return;
|
|
237
|
-
const t = await
|
|
238
|
-
name:
|
|
237
|
+
const t = await ot({
|
|
238
|
+
name: it,
|
|
239
239
|
canTrack: e
|
|
240
240
|
});
|
|
241
241
|
if (K(t))
|
|
@@ -247,20 +247,20 @@ const nt = "builderSessionId", Zt = async ({
|
|
|
247
247
|
canTrack: e
|
|
248
248
|
}), n;
|
|
249
249
|
}
|
|
250
|
-
}, _t = () =>
|
|
250
|
+
}, _t = () => rt(), en = ({
|
|
251
251
|
id: e,
|
|
252
252
|
canTrack: t
|
|
253
|
-
}) =>
|
|
254
|
-
name:
|
|
253
|
+
}) => we({
|
|
254
|
+
name: it,
|
|
255
255
|
value: e,
|
|
256
256
|
canTrack: t
|
|
257
|
-
}),
|
|
257
|
+
}), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, tn = ({
|
|
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 = st()) == null ? void 0 : n.getItem(e) : void 0;
|
|
264
264
|
} catch (o) {
|
|
265
265
|
console.debug("[LocalStorage] GET error: ", o);
|
|
266
266
|
return;
|
|
@@ -272,17 +272,17 @@ const nt = "builderSessionId", Zt = async ({
|
|
|
272
272
|
}) => {
|
|
273
273
|
var o;
|
|
274
274
|
try {
|
|
275
|
-
t && ((o =
|
|
275
|
+
t && ((o = st()) == null || o.setItem(e, n));
|
|
276
276
|
} catch (r) {
|
|
277
277
|
console.debug("[LocalStorage] SET error: ", r);
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, at = "builderVisitorId", on = ({
|
|
280
280
|
canTrack: e
|
|
281
281
|
}) => {
|
|
282
282
|
if (!e)
|
|
283
283
|
return;
|
|
284
284
|
const t = tn({
|
|
285
|
-
key:
|
|
285
|
+
key: at,
|
|
286
286
|
canTrack: e
|
|
287
287
|
});
|
|
288
288
|
if (K(t))
|
|
@@ -294,15 +294,15 @@ const nt = "builderSessionId", Zt = async ({
|
|
|
294
294
|
canTrack: e
|
|
295
295
|
}), n;
|
|
296
296
|
}
|
|
297
|
-
}, rn = () =>
|
|
297
|
+
}, rn = () => rt(), sn = ({
|
|
298
298
|
id: e,
|
|
299
299
|
canTrack: t
|
|
300
300
|
}) => nn({
|
|
301
|
-
key:
|
|
301
|
+
key: at,
|
|
302
302
|
value: e,
|
|
303
303
|
canTrack: t
|
|
304
304
|
});
|
|
305
|
-
function
|
|
305
|
+
function Ie(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
|
}
|
|
@@ -340,7 +340,7 @@ const an = async ({
|
|
|
340
340
|
...await an({
|
|
341
341
|
canTrack: t
|
|
342
342
|
}),
|
|
343
|
-
userAttributes:
|
|
343
|
+
userAttributes: et(),
|
|
344
344
|
ownerId: n
|
|
345
345
|
}
|
|
346
346
|
});
|
|
@@ -355,14 +355,14 @@ async function se({
|
|
|
355
355
|
if (!t.canTrack || A() || !(T() || R === "reactNative"))
|
|
356
356
|
return;
|
|
357
357
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
-
return
|
|
358
|
+
return Ie(o), fetch(o, {
|
|
359
359
|
method: "POST",
|
|
360
360
|
body: JSON.stringify({
|
|
361
361
|
events: [await ln(t)]
|
|
362
362
|
}),
|
|
363
363
|
headers: {
|
|
364
364
|
"content-type": "application/json",
|
|
365
|
-
...
|
|
365
|
+
...nt()
|
|
366
366
|
},
|
|
367
367
|
mode: "cors"
|
|
368
368
|
}).catch((r) => {
|
|
@@ -388,7 +388,7 @@ const Ss = (e) => se({
|
|
|
388
388
|
isEditing: A(),
|
|
389
389
|
isBrowser: T(),
|
|
390
390
|
isServer: !T(),
|
|
391
|
-
getUserAttributes: () =>
|
|
391
|
+
getUserAttributes: () => et(),
|
|
392
392
|
trackConversion: (t, n) => {
|
|
393
393
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || se({
|
|
394
394
|
type: "conversion",
|
|
@@ -407,7 +407,7 @@ const Ss = (e) => se({
|
|
|
407
407
|
}), un = (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 lt({
|
|
411
411
|
rootState: e,
|
|
412
412
|
localState: t,
|
|
413
413
|
rootSetState: n
|
|
@@ -417,7 +417,7 @@ function it({
|
|
|
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 ? lt({
|
|
421
421
|
rootState: i,
|
|
422
422
|
localState: void 0,
|
|
423
423
|
rootSetState: n ? (s) => {
|
|
@@ -432,7 +432,7 @@ function it({
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const xe = ({
|
|
436
436
|
code: e,
|
|
437
437
|
builder: t,
|
|
438
438
|
context: n,
|
|
@@ -445,7 +445,7 @@ const We = ({
|
|
|
445
445
|
builder: t,
|
|
446
446
|
context: n,
|
|
447
447
|
event: o,
|
|
448
|
-
state:
|
|
448
|
+
state: lt({
|
|
449
449
|
rootState: s,
|
|
450
450
|
localState: r,
|
|
451
451
|
rootSetState: i
|
|
@@ -467,7 +467,7 @@ const mn = ({
|
|
|
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
|
}, hn = (e) => (T() || mn({
|
|
469
469
|
shouldLogWarning: !0
|
|
470
|
-
}),
|
|
470
|
+
}), xe(e)), fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, bn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, gn = (e) => {
|
|
471
471
|
var t, n, o, r, i, s;
|
|
472
472
|
return ((o = (n = (t = fn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = bn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
473
473
|
};
|
|
@@ -485,7 +485,7 @@ function ee({
|
|
|
485
485
|
return;
|
|
486
486
|
const a = gn(e.trim());
|
|
487
487
|
if (a)
|
|
488
|
-
return
|
|
488
|
+
return Xe({
|
|
489
489
|
...o,
|
|
490
490
|
...n
|
|
491
491
|
}, a);
|
|
@@ -554,7 +554,7 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
554
554
|
}), ae(s, t, e, i, r);
|
|
555
555
|
}));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ct(e) {
|
|
558
558
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
559
559
|
}
|
|
560
560
|
function kn(e) {
|
|
@@ -562,7 +562,7 @@ function kn(e) {
|
|
|
562
562
|
return !1;
|
|
563
563
|
let t = !1;
|
|
564
564
|
return ae(e, (n) => {
|
|
565
|
-
if (
|
|
565
|
+
if (ct(n)) {
|
|
566
566
|
t = !0;
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
@@ -570,14 +570,14 @@ function kn(e) {
|
|
|
570
570
|
}
|
|
571
571
|
function Cn(e, t) {
|
|
572
572
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
573
|
-
|
|
573
|
+
ct(n) && o(n[t] ?? void 0);
|
|
574
574
|
}), e);
|
|
575
575
|
}
|
|
576
576
|
function Tn(e, t) {
|
|
577
577
|
var n, o;
|
|
578
578
|
return (n = e.component) != null && n.options && kn((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 = Cn(e.component.options, t ?? "Default")), e;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const $e = (e) => JSON.parse(JSON.stringify(e)), dt = (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);
|
|
@@ -597,7 +597,7 @@ function ye(e) {
|
|
|
597
597
|
}
|
|
598
598
|
const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) => {
|
|
599
599
|
if (wn) {
|
|
600
|
-
const t =
|
|
600
|
+
const t = $e(e);
|
|
601
601
|
return {
|
|
602
602
|
...t,
|
|
603
603
|
properties: {
|
|
@@ -639,7 +639,7 @@ const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) =
|
|
|
639
639
|
rootSetState: r,
|
|
640
640
|
context: t
|
|
641
641
|
});
|
|
642
|
-
|
|
642
|
+
dt(i, s, a);
|
|
643
643
|
}
|
|
644
644
|
return i;
|
|
645
645
|
};
|
|
@@ -659,9 +659,9 @@ function Rn({
|
|
|
659
659
|
context: t
|
|
660
660
|
}), i = Tn(i, o.locale), i;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Re(e) {
|
|
663
663
|
const t = e || (T() ? window.location.search : void 0);
|
|
664
|
-
return t ?
|
|
664
|
+
return t ? _e(t).indexOf("builder.preview=") !== -1 : !1;
|
|
665
665
|
}
|
|
666
666
|
const En = (e) => ({
|
|
667
667
|
type: "builder.registerComponent",
|
|
@@ -673,11 +673,11 @@ const En = (e) => ({
|
|
|
673
673
|
function le(e) {
|
|
674
674
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? An(n) : n));
|
|
675
675
|
}
|
|
676
|
-
const
|
|
676
|
+
const Ue = {};
|
|
677
677
|
function ks(e, t) {
|
|
678
678
|
e === "plugin" && (t = le(t));
|
|
679
|
-
let n =
|
|
680
|
-
if (n || (n =
|
|
679
|
+
let n = Ue[e];
|
|
680
|
+
if (n || (n = Ue[e] = []), n.push(t), T()) {
|
|
681
681
|
const o = {
|
|
682
682
|
type: "builder.register",
|
|
683
683
|
data: {
|
|
@@ -702,24 +702,24 @@ function Cs(e) {
|
|
|
702
702
|
}, "*");
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
705
|
+
const Le = {};
|
|
706
706
|
function Ts(e) {
|
|
707
707
|
if (T()) {
|
|
708
|
-
Object.assign(
|
|
708
|
+
Object.assign(Le, e);
|
|
709
709
|
const t = {
|
|
710
710
|
type: "builder.settingsChange",
|
|
711
|
-
data:
|
|
711
|
+
data: Le
|
|
712
712
|
};
|
|
713
713
|
parent.postMessage(t, "*");
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const
|
|
716
|
+
const Fe = "builder.", Pn = "options.", ut = (e) => {
|
|
717
717
|
if (!e)
|
|
718
718
|
return {};
|
|
719
|
-
const t =
|
|
719
|
+
const t = Ze(e), n = {};
|
|
720
720
|
return Object.keys(t).forEach((o) => {
|
|
721
|
-
if (o.startsWith(
|
|
722
|
-
const r = o.replace(
|
|
721
|
+
if (o.startsWith(Fe)) {
|
|
722
|
+
const r = o.replace(Fe, "").replace(Pn, "");
|
|
723
723
|
n[r] = t[o];
|
|
724
724
|
}
|
|
725
725
|
}), n;
|
|
@@ -727,22 +727,22 @@ const xe = "builder.", Pn = "options.", lt = (e) => {
|
|
|
727
727
|
if (!T())
|
|
728
728
|
return {};
|
|
729
729
|
const e = new URLSearchParams(window.location.search);
|
|
730
|
-
return
|
|
730
|
+
return ut(e);
|
|
731
731
|
}, Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
732
|
-
function
|
|
732
|
+
function pt(e, t) {
|
|
733
733
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
734
734
|
return !1;
|
|
735
735
|
const n = new URL(t.origin), o = n.hostname;
|
|
736
736
|
return (e || Vn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
737
737
|
}
|
|
738
|
-
let
|
|
739
|
-
const
|
|
738
|
+
let He = !1;
|
|
739
|
+
const mt = (e) => {
|
|
740
740
|
var t, n;
|
|
741
|
-
|
|
741
|
+
He || (He = !0, T() && ((t = window.parent) == null || t.postMessage({
|
|
742
742
|
type: "builder.sdkInfo",
|
|
743
743
|
data: {
|
|
744
744
|
target: R,
|
|
745
|
-
version:
|
|
745
|
+
version: tt,
|
|
746
746
|
supportsPatchUpdates: !1,
|
|
747
747
|
// Supports builder-model="..." attribute which is needed to
|
|
748
748
|
// scope our '+ add block' button styling
|
|
@@ -760,7 +760,7 @@ const dt = (e) => {
|
|
|
760
760
|
}
|
|
761
761
|
}, "*"), window.addEventListener("message", (o) => {
|
|
762
762
|
var i, s;
|
|
763
|
-
if (!
|
|
763
|
+
if (!pt(e.trustedHosts, o))
|
|
764
764
|
return;
|
|
765
765
|
const {
|
|
766
766
|
data: r
|
|
@@ -801,12 +801,12 @@ const dt = (e) => {
|
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
})));
|
|
804
|
-
},
|
|
804
|
+
}, ht = ({
|
|
805
805
|
model: e,
|
|
806
806
|
trustedHosts: t,
|
|
807
807
|
callbacks: n
|
|
808
808
|
}) => (o) => {
|
|
809
|
-
if (!
|
|
809
|
+
if (!pt(t, o))
|
|
810
810
|
return;
|
|
811
811
|
const {
|
|
812
812
|
data: r
|
|
@@ -841,11 +841,11 @@ const dt = (e) => {
|
|
|
841
841
|
if (!T)
|
|
842
842
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
843
843
|
};
|
|
844
|
-
|
|
844
|
+
mt({
|
|
845
845
|
modelName: e,
|
|
846
846
|
apiKey: t
|
|
847
847
|
});
|
|
848
|
-
const r =
|
|
848
|
+
const r = ht({
|
|
849
849
|
callbacks: {
|
|
850
850
|
contentUpdate: n,
|
|
851
851
|
animation: () => {
|
|
@@ -861,24 +861,24 @@ const dt = (e) => {
|
|
|
861
861
|
return window.addEventListener("message", r), () => {
|
|
862
862
|
window.removeEventListener("message", r);
|
|
863
863
|
};
|
|
864
|
-
}, Nn = "builder.tests",
|
|
864
|
+
}, Nn = "builder.tests", Ee = (e) => `${Nn}.${e}`, Wn = ({
|
|
865
865
|
contentId: e
|
|
866
|
-
}) =>
|
|
867
|
-
name:
|
|
866
|
+
}) => ot({
|
|
867
|
+
name: Ee(e),
|
|
868
868
|
canTrack: !0
|
|
869
869
|
}), Dn = ({
|
|
870
870
|
contentId: e
|
|
871
871
|
}) => ue({
|
|
872
|
-
name:
|
|
872
|
+
name: Ee(e),
|
|
873
873
|
canTrack: !0
|
|
874
874
|
}), On = ({
|
|
875
875
|
contentId: e,
|
|
876
876
|
value: t
|
|
877
|
-
}) =>
|
|
878
|
-
name:
|
|
877
|
+
}) => we({
|
|
878
|
+
name: Ee(e),
|
|
879
879
|
value: t,
|
|
880
880
|
canTrack: !0
|
|
881
|
-
}),
|
|
881
|
+
}), ft = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, xn = ({
|
|
882
882
|
id: e,
|
|
883
883
|
variations: t
|
|
884
884
|
}) => {
|
|
@@ -891,7 +891,7 @@ const dt = (e) => {
|
|
|
891
891
|
return i;
|
|
892
892
|
}
|
|
893
893
|
return e;
|
|
894
|
-
},
|
|
894
|
+
}, bt = (e) => {
|
|
895
895
|
const t = xn(e);
|
|
896
896
|
return On({
|
|
897
897
|
contentId: e.id,
|
|
@@ -899,7 +899,7 @@ const dt = (e) => {
|
|
|
899
899
|
}).catch((n) => {
|
|
900
900
|
B.error("could not store A/B test variation: ", n);
|
|
901
901
|
}), t;
|
|
902
|
-
},
|
|
902
|
+
}, gt = ({
|
|
903
903
|
item: e,
|
|
904
904
|
testGroupId: t
|
|
905
905
|
}) => {
|
|
@@ -921,14 +921,14 @@ const dt = (e) => {
|
|
|
921
921
|
return e;
|
|
922
922
|
if (!e)
|
|
923
923
|
return;
|
|
924
|
-
if (!
|
|
924
|
+
if (!ft(e))
|
|
925
925
|
return e;
|
|
926
926
|
const n = Dn({
|
|
927
927
|
contentId: e.id
|
|
928
|
-
}) ||
|
|
928
|
+
}) || bt({
|
|
929
929
|
variations: e.variations,
|
|
930
930
|
id: e.id
|
|
931
|
-
}), o =
|
|
931
|
+
}), o = gt({
|
|
932
932
|
item: e,
|
|
933
933
|
testGroupId: n
|
|
934
934
|
});
|
|
@@ -940,14 +940,14 @@ const dt = (e) => {
|
|
|
940
940
|
item: e,
|
|
941
941
|
canTrack: t
|
|
942
942
|
}) => {
|
|
943
|
-
if (!t || !
|
|
943
|
+
if (!t || !ft(e))
|
|
944
944
|
return e;
|
|
945
945
|
const o = await Wn({
|
|
946
946
|
contentId: e.id
|
|
947
|
-
}) ||
|
|
947
|
+
}) || bt({
|
|
948
948
|
variations: e.variations,
|
|
949
949
|
id: e.id
|
|
950
|
-
}), r =
|
|
950
|
+
}), r = gt({
|
|
951
951
|
item: e,
|
|
952
952
|
testGroupId: o
|
|
953
953
|
});
|
|
@@ -956,8 +956,8 @@ const dt = (e) => {
|
|
|
956
956
|
...r
|
|
957
957
|
};
|
|
958
958
|
};
|
|
959
|
-
const
|
|
960
|
-
function
|
|
959
|
+
const Me = "builder.userAttributes";
|
|
960
|
+
function je() {
|
|
961
961
|
let e = !0;
|
|
962
962
|
const t = /* @__PURE__ */ new Set();
|
|
963
963
|
return {
|
|
@@ -968,15 +968,15 @@ function Fe() {
|
|
|
968
968
|
...this.getUserAttributes(),
|
|
969
969
|
...n
|
|
970
970
|
};
|
|
971
|
-
|
|
972
|
-
name:
|
|
971
|
+
we({
|
|
972
|
+
name: Me,
|
|
973
973
|
value: JSON.stringify(o),
|
|
974
974
|
canTrack: e
|
|
975
975
|
}), t.forEach((r) => r(o));
|
|
976
976
|
},
|
|
977
977
|
getUserAttributes() {
|
|
978
978
|
return T() ? JSON.parse(ue({
|
|
979
|
-
name:
|
|
979
|
+
name: Me,
|
|
980
980
|
canTrack: e
|
|
981
981
|
}) || "{}") : {};
|
|
982
982
|
},
|
|
@@ -993,7 +993,7 @@ function Fe() {
|
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
995
|
let ve;
|
|
996
|
-
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
996
|
+
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = je()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = je();
|
|
997
997
|
const ce = ve, Is = (e) => {
|
|
998
998
|
ce.setUserAttributes(e);
|
|
999
999
|
}, G = (e) => {
|
|
@@ -1023,10 +1023,10 @@ function Se(e, t = null, n = ".") {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}, {});
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function yt(e, t, n = {}) {
|
|
1027
1027
|
for (const o in e) {
|
|
1028
1028
|
const r = e[o], i = t ? t + "." + o : o;
|
|
1029
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
1029
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? yt(r, i, n) : n[i] = r;
|
|
1030
1030
|
}
|
|
1031
1031
|
return n;
|
|
1032
1032
|
}
|
|
@@ -1042,7 +1042,7 @@ function jn(e) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return t;
|
|
1044
1044
|
}
|
|
1045
|
-
const Kn = "v3",
|
|
1045
|
+
const Kn = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (e) => {
|
|
1046
1046
|
const {
|
|
1047
1047
|
limit: t = 30,
|
|
1048
1048
|
userAttributes: n,
|
|
@@ -1068,7 +1068,7 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1068
1068
|
const U = t !== 1, V = P || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
|
|
1069
1069
|
w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(U)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l);
|
|
1070
1070
|
let D = n || {};
|
|
1071
|
-
if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c &&
|
|
1071
|
+
if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && Ke(c) && w.searchParams.set("cacheSeconds", String(c)), m && Ke(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1072
1072
|
const O = Se({
|
|
1073
1073
|
sort: b
|
|
1074
1074
|
});
|
|
@@ -1077,7 +1077,7 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1077
1077
|
}
|
|
1078
1078
|
const J = {
|
|
1079
1079
|
...Bn(),
|
|
1080
|
-
...
|
|
1080
|
+
...Ze(e.options || {})
|
|
1081
1081
|
};
|
|
1082
1082
|
D = {
|
|
1083
1083
|
...D,
|
|
@@ -1087,7 +1087,7 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1087
1087
|
for (const O in Q)
|
|
1088
1088
|
w.searchParams.set(O, String(Q[O]));
|
|
1089
1089
|
if (Object.keys(D).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(D)), o) {
|
|
1090
|
-
const O =
|
|
1090
|
+
const O = yt({
|
|
1091
1091
|
query: o
|
|
1092
1092
|
});
|
|
1093
1093
|
for (const H in O)
|
|
@@ -1109,7 +1109,7 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1109
1109
|
}
|
|
1110
1110
|
return {};
|
|
1111
1111
|
}, Gn = (e) => "results" in e;
|
|
1112
|
-
async function
|
|
1112
|
+
async function Pe(e) {
|
|
1113
1113
|
var o;
|
|
1114
1114
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1115
1115
|
t && (e.locale = t, e.userAttributes = {
|
|
@@ -1124,15 +1124,15 @@ async function Ee(e) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
const Jn = async (e) => {
|
|
1126
1126
|
var s;
|
|
1127
|
-
const t =
|
|
1127
|
+
const t = Ae(e), n = e.fetch ?? Mn, o = {
|
|
1128
1128
|
...e.fetchOptions,
|
|
1129
1129
|
headers: {
|
|
1130
1130
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1131
|
-
...
|
|
1131
|
+
...nt()
|
|
1132
1132
|
}
|
|
1133
1133
|
};
|
|
1134
1134
|
return await (await n(t.href, o)).json();
|
|
1135
|
-
}, Qn = async (e, t, n =
|
|
1135
|
+
}, Qn = async (e, t, n = Ae(e)) => {
|
|
1136
1136
|
const o = G(e.canTrack);
|
|
1137
1137
|
if (n.search.includes("preview="), !o || !(T() || R === "reactNative"))
|
|
1138
1138
|
return t.results;
|
|
@@ -1150,7 +1150,7 @@ const Jn = async (e) => {
|
|
|
1150
1150
|
return t.results;
|
|
1151
1151
|
};
|
|
1152
1152
|
async function Yn(e) {
|
|
1153
|
-
const t =
|
|
1153
|
+
const t = Ae(e), n = await Jn(e);
|
|
1154
1154
|
if (!Gn(n))
|
|
1155
1155
|
throw B.error("Error fetching data. ", {
|
|
1156
1156
|
url: t,
|
|
@@ -1171,14 +1171,14 @@ const $s = async (e) => {
|
|
|
1171
1171
|
urlPath: t
|
|
1172
1172
|
} : {}
|
|
1173
1173
|
},
|
|
1174
|
-
options:
|
|
1174
|
+
options: ut(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1175
1175
|
};
|
|
1176
1176
|
return {
|
|
1177
1177
|
apiKey: n.apiKey,
|
|
1178
1178
|
model: n.model,
|
|
1179
|
-
content: await
|
|
1179
|
+
content: await Pe(n)
|
|
1180
1180
|
};
|
|
1181
|
-
},
|
|
1181
|
+
}, Be = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1182
1182
|
function Xn(e, t, n = {}) {
|
|
1183
1183
|
let o, r, i, s = null, l = 0;
|
|
1184
1184
|
const a = function() {
|
|
@@ -1205,17 +1205,17 @@ function Zn(e) {
|
|
|
1205
1205
|
for (const t of e)
|
|
1206
1206
|
switch (t.trigger) {
|
|
1207
1207
|
case "pageLoad":
|
|
1208
|
-
|
|
1208
|
+
kt(t);
|
|
1209
1209
|
break;
|
|
1210
1210
|
case "scrollInView":
|
|
1211
1211
|
eo(t);
|
|
1212
1212
|
break;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function vt(e) {
|
|
1216
1216
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function St(e, t) {
|
|
1219
1219
|
const n = _n(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1220
1220
|
for (const l of s)
|
|
1221
1221
|
for (const a of n)
|
|
@@ -1228,15 +1228,15 @@ function _n(e) {
|
|
|
1228
1228
|
t.indexOf(o) === -1 && t.push(o);
|
|
1229
1229
|
return t;
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function kt(e) {
|
|
1232
1232
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1233
1233
|
if (!t.length) {
|
|
1234
|
-
|
|
1234
|
+
vt(e.elementId || e.id || "");
|
|
1235
1235
|
return;
|
|
1236
1236
|
}
|
|
1237
1237
|
Array.from(t).forEach((n) => {
|
|
1238
|
-
|
|
1239
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1238
|
+
St(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1239
|
+
n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1240
1240
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1241
1241
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1242
1242
|
});
|
|
@@ -1245,11 +1245,11 @@ function yt(e) {
|
|
|
1245
1245
|
function eo(e) {
|
|
1246
1246
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1247
1247
|
if (!t.length) {
|
|
1248
|
-
|
|
1248
|
+
vt(e.elementId || e.id || "");
|
|
1249
1249
|
return;
|
|
1250
1250
|
}
|
|
1251
1251
|
Array.from(t).forEach((n) => {
|
|
1252
|
-
|
|
1252
|
+
St(e, n);
|
|
1253
1253
|
let o = !1, r = !1;
|
|
1254
1254
|
function i() {
|
|
1255
1255
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -1270,17 +1270,17 @@ function eo(e) {
|
|
|
1270
1270
|
Z(n.style, a);
|
|
1271
1271
|
}
|
|
1272
1272
|
u(), setTimeout(() => {
|
|
1273
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1273
|
+
n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1274
1274
|
}), document.addEventListener("scroll", s, {
|
|
1275
1275
|
capture: !0,
|
|
1276
1276
|
passive: !0
|
|
1277
1277
|
}), i();
|
|
1278
1278
|
});
|
|
1279
1279
|
}
|
|
1280
|
-
const
|
|
1280
|
+
const Ct = (e) => Object.entries(e).map(([n, o]) => {
|
|
1281
1281
|
if (typeof o == "string")
|
|
1282
|
-
return `${
|
|
1283
|
-
}).filter(K), to = (e) =>
|
|
1282
|
+
return `${Be(n)}: ${o};`;
|
|
1283
|
+
}).filter(K), to = (e) => Ct(e).join(`
|
|
1284
1284
|
`), Rs = ({
|
|
1285
1285
|
mediaQuery: e,
|
|
1286
1286
|
className: t,
|
|
@@ -1301,18 +1301,18 @@ function no({
|
|
|
1301
1301
|
const Es = ({
|
|
1302
1302
|
block: e,
|
|
1303
1303
|
context: t
|
|
1304
|
-
}) =>
|
|
1304
|
+
}) => Tt(no({
|
|
1305
1305
|
style: e.style || {},
|
|
1306
1306
|
context: t,
|
|
1307
1307
|
block: e
|
|
1308
1308
|
}));
|
|
1309
|
-
function
|
|
1309
|
+
function Tt(e) {
|
|
1310
1310
|
switch (R) {
|
|
1311
1311
|
case "svelte":
|
|
1312
1312
|
case "vue":
|
|
1313
1313
|
case "solid":
|
|
1314
1314
|
case "angular":
|
|
1315
|
-
return
|
|
1315
|
+
return Ct(e).join(" ");
|
|
1316
1316
|
case "qwik":
|
|
1317
1317
|
case "reactNative":
|
|
1318
1318
|
case "react":
|
|
@@ -1320,7 +1320,7 @@ function St(e) {
|
|
|
1320
1320
|
return e;
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
const
|
|
1323
|
+
const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, oo = ({
|
|
1324
1324
|
block: e,
|
|
1325
1325
|
registeredComponents: t,
|
|
1326
1326
|
model: n
|
|
@@ -1330,7 +1330,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1330
1330
|
if (!o)
|
|
1331
1331
|
return null;
|
|
1332
1332
|
const r = t[o];
|
|
1333
|
-
if (!r ||
|
|
1333
|
+
if (!r || wt(r, n)) {
|
|
1334
1334
|
console.warn(`
|
|
1335
1335
|
Could not find a registered component named "${o}".
|
|
1336
1336
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -1378,7 +1378,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1378
1378
|
}, so = (e, t, n) => {
|
|
1379
1379
|
var o;
|
|
1380
1380
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1381
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1381
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !wt(s, n)))
|
|
1382
1382
|
} : {};
|
|
1383
1383
|
}, ao = (e, t) => {
|
|
1384
1384
|
var n;
|
|
@@ -1395,22 +1395,22 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1395
1395
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1396
1396
|
e
|
|
1397
1397
|
), e;
|
|
1398
|
-
}), po = () => import("./block-wrapper-
|
|
1398
|
+
}), po = () => import("./block-wrapper-YNVEwJsu.js").then((e) => e.default).catch((e) => {
|
|
1399
1399
|
throw console.error(
|
|
1400
1400
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1401
1401
|
e
|
|
1402
1402
|
), e;
|
|
1403
|
-
}), mo = () => import("./component-ref-
|
|
1403
|
+
}), mo = () => import("./component-ref-watkJI0h.js").then((e) => e.default).catch((e) => {
|
|
1404
1404
|
throw console.error(
|
|
1405
1405
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1406
1406
|
e
|
|
1407
1407
|
), e;
|
|
1408
|
-
}), ho = () => import("./repeated-block-
|
|
1408
|
+
}), ho = () => import("./repeated-block-B84MBN4t.js").then((e) => e.default).catch((e) => {
|
|
1409
1409
|
throw console.error(
|
|
1410
1410
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1411
1411
|
e
|
|
1412
1412
|
), e;
|
|
1413
|
-
}), fo = () => import("./style-wrapper-
|
|
1413
|
+
}), fo = () => import("./style-wrapper-1pU2q-Nj.js").then((e) => e.default).catch((e) => {
|
|
1414
1414
|
throw console.error(
|
|
1415
1415
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1416
1416
|
e
|
|
@@ -1576,9 +1576,9 @@ function go(e, t, n, o, r, i) {
|
|
|
1576
1576
|
], 64))
|
|
1577
1577
|
], 64)) : C("", !0);
|
|
1578
1578
|
}
|
|
1579
|
-
const
|
|
1579
|
+
const It = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1580
1580
|
__proto__: null,
|
|
1581
|
-
default:
|
|
1581
|
+
default: It
|
|
1582
1582
|
}, Symbol.toStringTag, { value: "Module" })), yo = y({
|
|
1583
1583
|
name: "builder-blocks-wrapper",
|
|
1584
1584
|
props: [
|
|
@@ -1668,7 +1668,7 @@ function vo(e, t, n, o, r, i) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6"]]), ko = y({
|
|
1670
1670
|
name: "builder-blocks",
|
|
1671
|
-
components: { BlocksWrapper: So, Block:
|
|
1671
|
+
components: { BlocksWrapper: So, Block: It },
|
|
1672
1672
|
props: [
|
|
1673
1673
|
"blocks",
|
|
1674
1674
|
"parent",
|
|
@@ -1682,7 +1682,7 @@ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6
|
|
|
1682
1682
|
],
|
|
1683
1683
|
inject: {
|
|
1684
1684
|
builderContext: ge.key,
|
|
1685
|
-
componentsContext:
|
|
1685
|
+
componentsContext: Ye.key
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
function Co(e, t, n, o, r, i) {
|
|
@@ -1727,7 +1727,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1727
1727
|
default: te
|
|
1728
1728
|
}, Symbol.toStringTag, { value: "Module" })), pe = y({
|
|
1729
1729
|
render() {
|
|
1730
|
-
return
|
|
1730
|
+
return Qe("style", {
|
|
1731
1731
|
innerHTML: this.styles,
|
|
1732
1732
|
"data-id": this.id,
|
|
1733
1733
|
nonce: this.nonce
|
|
@@ -1735,7 +1735,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1735
1735
|
},
|
|
1736
1736
|
name: "inlined-styles",
|
|
1737
1737
|
props: ["styles", "id", "nonce"]
|
|
1738
|
-
}),
|
|
1738
|
+
}), $t = {
|
|
1739
1739
|
xsmall: {
|
|
1740
1740
|
min: 0,
|
|
1741
1741
|
default: 160,
|
|
@@ -1756,8 +1756,8 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1756
1756
|
default: 991,
|
|
1757
1757
|
max: 1200
|
|
1758
1758
|
}
|
|
1759
|
-
}, Ps = (e, t =
|
|
1760
|
-
const t =
|
|
1759
|
+
}, Ps = (e, t = $t) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
|
|
1760
|
+
const t = $e($t);
|
|
1761
1761
|
if (!e)
|
|
1762
1762
|
return t;
|
|
1763
1763
|
const {
|
|
@@ -1798,7 +1798,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1798
1798
|
name: "builder-columns",
|
|
1799
1799
|
components: {
|
|
1800
1800
|
InlinedStyles: pe,
|
|
1801
|
-
DynamicRenderer:
|
|
1801
|
+
DynamicRenderer: Te,
|
|
1802
1802
|
Blocks: q,
|
|
1803
1803
|
DynamicDiv: te
|
|
1804
1804
|
},
|
|
@@ -1930,7 +1930,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1930
1930
|
href: e.link
|
|
1931
1931
|
} : {},
|
|
1932
1932
|
[j()]: "builder-column",
|
|
1933
|
-
style:
|
|
1933
|
+
style: Tt(this.columnCssVars(t))
|
|
1934
1934
|
};
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
@@ -1981,7 +1981,7 @@ function Vo(e, t, n, o, r, i) {
|
|
|
1981
1981
|
]);
|
|
1982
1982
|
}
|
|
1983
1983
|
const No = /* @__PURE__ */ v(Bo, [["render", Vo]]);
|
|
1984
|
-
function
|
|
1984
|
+
function qe(e) {
|
|
1985
1985
|
return e.replace(/http(s)?:/, "");
|
|
1986
1986
|
}
|
|
1987
1987
|
function Wo(e = "", t, n) {
|
|
@@ -1992,11 +1992,11 @@ function Do(e, t) {
|
|
|
1992
1992
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1993
1993
|
return e;
|
|
1994
1994
|
if (t === "master")
|
|
1995
|
-
return
|
|
1995
|
+
return qe(e);
|
|
1996
1996
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1997
1997
|
if (n) {
|
|
1998
1998
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1999
|
-
return
|
|
1999
|
+
return qe(`${o[0]}_${i}${r}`);
|
|
2000
2000
|
}
|
|
2001
2001
|
return null;
|
|
2002
2002
|
}
|
|
@@ -2351,9 +2351,9 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2351
2351
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
}`, re = "default", Qo = "filterWithCustomTargeting",
|
|
2354
|
+
}`, re = "default", Qo = "filterWithCustomTargeting", Rt = "builderIoPersonalization", Et = "updateVisibilityStylesScript", At = ["react", "vue", "svelte", "qwik"], Pt = ["vue", "svelte", "qwik"];
|
|
2355
2355
|
function Yo(e, t) {
|
|
2356
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2356
|
+
return !(e && e.length > 0) || !t ? !1 : Pt.includes(R) ? !0 : !T();
|
|
2357
2357
|
}
|
|
2358
2358
|
function Xo({
|
|
2359
2359
|
variants: e,
|
|
@@ -2395,9 +2395,9 @@ function Xo({
|
|
|
2395
2395
|
}
|
|
2396
2396
|
const Zo = () => `
|
|
2397
2397
|
window.${Qo} = ${Go}
|
|
2398
|
-
window.${
|
|
2399
|
-
window.${
|
|
2400
|
-
`,
|
|
2398
|
+
window.${Rt} = ${zo}
|
|
2399
|
+
window.${Et} = ${Jo}
|
|
2400
|
+
`, Bt = R === "react", _o = (e, t, n) => `window.${Rt}(${JSON.stringify(e)}, "${t}", ${Bt}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${Et}(${JSON.stringify(e)}, "${t}", ${Bt}${n ? `, "${n}"` : ""})`, me = {
|
|
2401
2401
|
"@type": "@builder.io/sdk:Element",
|
|
2402
2402
|
layerName: "Accordion item title",
|
|
2403
2403
|
responsiveStyles: {
|
|
@@ -2911,7 +2911,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2911
2911
|
hidden: !0,
|
|
2912
2912
|
canHaveChildren: !0,
|
|
2913
2913
|
noWrap: !0
|
|
2914
|
-
},
|
|
2914
|
+
}, Ve = ["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"], dr = ["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"], ur = {
|
|
2915
2915
|
name: "Image",
|
|
2916
2916
|
static: !0,
|
|
2917
2917
|
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",
|
|
@@ -2926,7 +2926,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2926
2926
|
name: "image",
|
|
2927
2927
|
type: "file",
|
|
2928
2928
|
bubble: !0,
|
|
2929
|
-
allowedFileTypes:
|
|
2929
|
+
allowedFileTypes: Ve,
|
|
2930
2930
|
required: !0,
|
|
2931
2931
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2932
2932
|
onChange: (e) => {
|
|
@@ -3059,9 +3059,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3059
3059
|
defaultValue: []
|
|
3060
3060
|
}]
|
|
3061
3061
|
}]
|
|
3062
|
-
},
|
|
3062
|
+
}, Ne = y({
|
|
3063
3063
|
render() {
|
|
3064
|
-
return
|
|
3064
|
+
return Qe("script", {
|
|
3065
3065
|
innerHTML: this.scriptStr,
|
|
3066
3066
|
"data-id": this.id,
|
|
3067
3067
|
nonce: this.nonce
|
|
@@ -3074,7 +3074,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3074
3074
|
components: {
|
|
3075
3075
|
Blocks: q,
|
|
3076
3076
|
InlinedStyles: pe,
|
|
3077
|
-
InlinedScript:
|
|
3077
|
+
InlinedScript: Ne
|
|
3078
3078
|
},
|
|
3079
3079
|
props: [
|
|
3080
3080
|
"builderContext",
|
|
@@ -3106,7 +3106,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3106
3106
|
shouldResetVariants: !1,
|
|
3107
3107
|
TARGET: R,
|
|
3108
3108
|
DEFAULT_INDEX: re,
|
|
3109
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
3109
|
+
SDKS_REQUIRING_RESET_APPROACH: Pt
|
|
3110
3110
|
};
|
|
3111
3111
|
},
|
|
3112
3112
|
mounted() {
|
|
@@ -3120,7 +3120,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3120
3120
|
fireImmediately: R === "qwik"
|
|
3121
3121
|
}
|
|
3122
3122
|
);
|
|
3123
|
-
if (!(A() ||
|
|
3123
|
+
if (!(A() || Re())) {
|
|
3124
3124
|
const n = this.filteredVariants[0];
|
|
3125
3125
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3126
3126
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -3239,12 +3239,12 @@ function hr(e, t, n, o, r, i) {
|
|
|
3239
3239
|
registeredComponents: e.builderComponents
|
|
3240
3240
|
}, {
|
|
3241
3241
|
default: x(() => {
|
|
3242
|
-
var
|
|
3242
|
+
var De, Oe;
|
|
3243
3243
|
return [
|
|
3244
3244
|
E(a, {
|
|
3245
|
-
nonce: ((
|
|
3245
|
+
nonce: ((De = e.builderContext) == null ? void 0 : De.nonce) || "",
|
|
3246
3246
|
scriptStr: e.scriptStr,
|
|
3247
|
-
id: `variants-script-${(
|
|
3247
|
+
id: `variants-script-${(Oe = e.builderBlock) == null ? void 0 : Oe.id}-${D}`
|
|
3248
3248
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3249
3249
|
];
|
|
3250
3250
|
}),
|
|
@@ -4128,7 +4128,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4128
4128
|
else {
|
|
4129
4129
|
const c = {};
|
|
4130
4130
|
Array.from(l).forEach(({ value: m, key: b }) => {
|
|
4131
|
-
|
|
4131
|
+
dt(c, b, m);
|
|
4132
4132
|
}), i = JSON.stringify(c);
|
|
4133
4133
|
}
|
|
4134
4134
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -4149,7 +4149,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4149
4149
|
const p = `${Gr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4150
4150
|
this.sendSubmissionsToEmail || ""
|
|
4151
4151
|
)}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4152
|
-
|
|
4152
|
+
Ie(f), fetch(f, {
|
|
4153
4153
|
body: i,
|
|
4154
4154
|
headers: r,
|
|
4155
4155
|
method: this.method || "post"
|
|
@@ -4170,7 +4170,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4170
4170
|
), U.defaultPrevented))
|
|
4171
4171
|
return;
|
|
4172
4172
|
this.responseData = m, this.formState = "error";
|
|
4173
|
-
let V = this.errorMessagePath ?
|
|
4173
|
+
let V = this.errorMessagePath ? Xe(m, this.errorMessagePath) : m.message || m.error || m;
|
|
4174
4174
|
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
4175
4175
|
formErrorMessage: V
|
|
4176
4176
|
});
|
|
@@ -4214,7 +4214,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4214
4214
|
}
|
|
4215
4215
|
}), Qr = ["validate", "action", "method", "name"], Yr = {
|
|
4216
4216
|
key: 2,
|
|
4217
|
-
class: "builder-form-error-text pre-
|
|
4217
|
+
class: "builder-form-error-text pre-1hjwvu3r5mj"
|
|
4218
4218
|
};
|
|
4219
4219
|
function Xr(e, t, n, o, r, i) {
|
|
4220
4220
|
const s = k("Blocks");
|
|
@@ -4248,7 +4248,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4248
4248
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
4249
4249
|
], 16, Qr);
|
|
4250
4250
|
}
|
|
4251
|
-
const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-
|
|
4251
|
+
const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-3c8c685f"]]), _r = {
|
|
4252
4252
|
name: "Form:Input",
|
|
4253
4253
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4254
4254
|
inputs: [
|
|
@@ -4490,7 +4490,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4490
4490
|
name: "image",
|
|
4491
4491
|
bubble: !0,
|
|
4492
4492
|
type: "file",
|
|
4493
|
-
allowedFileTypes:
|
|
4493
|
+
allowedFileTypes: Ve,
|
|
4494
4494
|
required: !0
|
|
4495
4495
|
}, {
|
|
4496
4496
|
name: "backgroundSize",
|
|
@@ -4591,7 +4591,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4591
4591
|
}, {
|
|
4592
4592
|
name: "posterImage",
|
|
4593
4593
|
type: "file",
|
|
4594
|
-
allowedFileTypes:
|
|
4594
|
+
allowedFileTypes: Ve,
|
|
4595
4595
|
helperText: "Image to show before the video plays"
|
|
4596
4596
|
}, {
|
|
4597
4597
|
name: "autoPlay",
|
|
@@ -4828,7 +4828,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4828
4828
|
}, {
|
|
4829
4829
|
component: Bi,
|
|
4830
4830
|
...wi
|
|
4831
|
-
}],
|
|
4831
|
+
}], ze = () => [{
|
|
4832
4832
|
component: Ft,
|
|
4833
4833
|
...ar
|
|
4834
4834
|
}, {
|
|
@@ -4852,7 +4852,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4852
4852
|
}, {
|
|
4853
4853
|
component: Vr,
|
|
4854
4854
|
...Er
|
|
4855
|
-
},
|
|
4855
|
+
}, ...At.includes(R) ? [{
|
|
4856
4856
|
component: fr,
|
|
4857
4857
|
...pr
|
|
4858
4858
|
}] : [], {
|
|
@@ -4954,26 +4954,34 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4954
4954
|
thisScriptEl?.remove();
|
|
4955
4955
|
}
|
|
4956
4956
|
return;
|
|
4957
|
-
}`,
|
|
4957
|
+
}`, ke = "builderIoAbTest", Ce = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4958
4958
|
...t,
|
|
4959
4959
|
testVariationId: t.id,
|
|
4960
4960
|
id: e == null ? void 0 : e.id
|
|
4961
4961
|
})), Di = ({
|
|
4962
4962
|
canTrack: e,
|
|
4963
4963
|
content: t
|
|
4964
|
-
}) => !(!(ie(t).length > 0) || !e), Oi = (e) => e === "react" || e === "reactNative", xi = R === "angular",
|
|
4965
|
-
|
|
4966
|
-
|
|
4964
|
+
}) => !(!(ie(t).length > 0) || !e), Oi = (e) => e === "react" || e === "reactNative", xi = R === "angular", We = Oi(R), Ui = () => `
|
|
4965
|
+
(function() {
|
|
4966
|
+
if (!window.${ke}) {
|
|
4967
|
+
window.${ke} = ${Ni};
|
|
4968
|
+
}
|
|
4969
|
+
if (!window.${Ce}) {
|
|
4970
|
+
window.${Ce} = ${Wi};
|
|
4971
|
+
}${We ? `
|
|
4972
|
+
var thisScriptEl = document.currentScript;
|
|
4973
|
+
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4974
|
+
})();
|
|
4967
4975
|
`, Li = (e, t) => `
|
|
4968
|
-
window.${
|
|
4969
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4976
|
+
window.${ke}(
|
|
4977
|
+
"${t}",${JSON.stringify(e)}, ${We}, ${xi}
|
|
4970
4978
|
)`, Fi = ({
|
|
4971
4979
|
contentId: e,
|
|
4972
4980
|
variationId: t
|
|
4973
|
-
}) => `window.${
|
|
4974
|
-
"${t}", "${e}", ${
|
|
4981
|
+
}) => `window.${Ce}(
|
|
4982
|
+
"${t}", "${e}", ${We}
|
|
4975
4983
|
)`;
|
|
4976
|
-
function
|
|
4984
|
+
function Ge(e) {
|
|
4977
4985
|
return Math.round(e * 1e3) / 1e3;
|
|
4978
4986
|
}
|
|
4979
4987
|
const Hi = (e, t, n = !0) => {
|
|
@@ -4990,11 +4998,11 @@ const Hi = (e, t, n = !0) => {
|
|
|
4990
4998
|
}, Mi = (e) => Hi(e, (t) => {
|
|
4991
4999
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4992
5000
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4993
|
-
}),
|
|
5001
|
+
}), Je = ({
|
|
4994
5002
|
event: e,
|
|
4995
5003
|
target: t
|
|
4996
5004
|
}) => {
|
|
4997
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
5005
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ge(o / n.width), s = Ge(r / n.height);
|
|
4998
5006
|
return {
|
|
4999
5007
|
x: i,
|
|
5000
5008
|
y: s
|
|
@@ -5004,18 +5012,18 @@ const Hi = (e, t, n = !0) => {
|
|
|
5004
5012
|
return {
|
|
5005
5013
|
targetBuilderElement: o || void 0,
|
|
5006
5014
|
metadata: {
|
|
5007
|
-
targetOffset: t ?
|
|
5015
|
+
targetOffset: t ? Je({
|
|
5008
5016
|
event: e,
|
|
5009
5017
|
target: t
|
|
5010
5018
|
}) : void 0,
|
|
5011
|
-
builderTargetOffset: n ?
|
|
5019
|
+
builderTargetOffset: n ? Je({
|
|
5012
5020
|
event: e,
|
|
5013
5021
|
target: n
|
|
5014
5022
|
}) : void 0,
|
|
5015
5023
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5016
5024
|
}
|
|
5017
5025
|
};
|
|
5018
|
-
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() ||
|
|
5026
|
+
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() || Re()), zi = (e) => {
|
|
5019
5027
|
var i;
|
|
5020
5028
|
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);
|
|
5021
5029
|
let r = "";
|
|
@@ -5131,7 +5139,7 @@ font-weight: ${s};
|
|
|
5131
5139
|
variationId: r !== s ? r : void 0
|
|
5132
5140
|
});
|
|
5133
5141
|
}
|
|
5134
|
-
|
|
5142
|
+
Re() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5135
5143
|
new CustomEvent("initpreviewingbldr")
|
|
5136
5144
|
);
|
|
5137
5145
|
}
|
|
@@ -5233,7 +5241,7 @@ font-weight: ${s};
|
|
|
5233
5241
|
this.builderContextSignal.content = n;
|
|
5234
5242
|
},
|
|
5235
5243
|
processMessage(e) {
|
|
5236
|
-
return
|
|
5244
|
+
return ht({
|
|
5237
5245
|
model: this.model,
|
|
5238
5246
|
trustedHosts: this.trustedHosts,
|
|
5239
5247
|
callbacks: {
|
|
@@ -5247,7 +5255,7 @@ font-weight: ${s};
|
|
|
5247
5255
|
});
|
|
5248
5256
|
},
|
|
5249
5257
|
animation: (t) => {
|
|
5250
|
-
|
|
5258
|
+
kt(t);
|
|
5251
5259
|
},
|
|
5252
5260
|
contentUpdate: (t, n) => {
|
|
5253
5261
|
this.mergeNewContent(t, n);
|
|
@@ -5307,7 +5315,7 @@ font-weight: ${s};
|
|
|
5307
5315
|
url: l,
|
|
5308
5316
|
method: "GET"
|
|
5309
5317
|
};
|
|
5310
|
-
|
|
5318
|
+
Ie(JSON.stringify(a));
|
|
5311
5319
|
const u = {
|
|
5312
5320
|
method: a.method,
|
|
5313
5321
|
headers: a.headers,
|
|
@@ -5335,7 +5343,7 @@ font-weight: ${s};
|
|
|
5335
5343
|
"builder:component:stateChange",
|
|
5336
5344
|
{
|
|
5337
5345
|
detail: {
|
|
5338
|
-
state:
|
|
5346
|
+
state: $e(this.builderContextSignal.rootState),
|
|
5339
5347
|
ref: {
|
|
5340
5348
|
name: this.model
|
|
5341
5349
|
}
|
|
@@ -5345,7 +5353,7 @@ font-weight: ${s};
|
|
|
5345
5353
|
);
|
|
5346
5354
|
},
|
|
5347
5355
|
elementRef_onIniteditingbldr(e) {
|
|
5348
|
-
window.addEventListener("message", this.processMessage),
|
|
5356
|
+
window.addEventListener("message", this.processMessage), mt({
|
|
5349
5357
|
...this.locale ? {
|
|
5350
5358
|
locale: this.locale
|
|
5351
5359
|
} : {},
|
|
@@ -5375,7 +5383,7 @@ font-weight: ${s};
|
|
|
5375
5383
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5376
5384
|
`builder.overrides.${n}`
|
|
5377
5385
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5378
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5386
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Pe({
|
|
5379
5387
|
model: this.model,
|
|
5380
5388
|
apiKey: this.apiKey,
|
|
5381
5389
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5469,7 +5477,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5469
5477
|
name: "content-component",
|
|
5470
5478
|
components: {
|
|
5471
5479
|
EnableEditor: es,
|
|
5472
|
-
InlinedScript:
|
|
5480
|
+
InlinedScript: Ne,
|
|
5473
5481
|
ContentStyles: os,
|
|
5474
5482
|
Blocks: q,
|
|
5475
5483
|
DynamicDiv: te
|
|
@@ -5507,7 +5515,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5507
5515
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5508
5516
|
}),
|
|
5509
5517
|
registeredComponents: [
|
|
5510
|
-
...
|
|
5518
|
+
...ze(),
|
|
5511
5519
|
...this.customComponents || []
|
|
5512
5520
|
].reduce(
|
|
5513
5521
|
(n, { component: o, ...r }) => ({
|
|
@@ -5536,7 +5544,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5536
5544
|
apiKey: this.apiKey,
|
|
5537
5545
|
apiVersion: this.apiVersion,
|
|
5538
5546
|
componentInfos: [
|
|
5539
|
-
...
|
|
5547
|
+
...ze(),
|
|
5540
5548
|
...this.customComponents || []
|
|
5541
5549
|
].reduce(
|
|
5542
5550
|
(n, { component: o, ...r }) => ({
|
|
@@ -5557,7 +5565,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5557
5565
|
provide() {
|
|
5558
5566
|
const e = this;
|
|
5559
5567
|
return {
|
|
5560
|
-
[
|
|
5568
|
+
[Ye.key]: {
|
|
5561
5569
|
registeredComponents: e.registeredComponents
|
|
5562
5570
|
}
|
|
5563
5571
|
};
|
|
@@ -5652,7 +5660,7 @@ function ls(e, t, n, o, r, i) {
|
|
|
5652
5660
|
const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
5653
5661
|
name: "content-variants",
|
|
5654
5662
|
components: {
|
|
5655
|
-
InlinedScript:
|
|
5663
|
+
InlinedScript: Ne,
|
|
5656
5664
|
InlinedStyles: pe,
|
|
5657
5665
|
ContentComponent: cs
|
|
5658
5666
|
},
|
|
@@ -5683,7 +5691,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5683
5691
|
canTrack: G(this.canTrack),
|
|
5684
5692
|
content: this.content
|
|
5685
5693
|
}),
|
|
5686
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5694
|
+
SDKS_SUPPORTING_PERSONALIZATION: At,
|
|
5687
5695
|
getInitPersonalizationVariantsFnsScriptString: Zo,
|
|
5688
5696
|
TARGET: R,
|
|
5689
5697
|
getInitVariantsFnsScriptString: Ui,
|
|
@@ -5722,11 +5730,6 @@ function us(e, t, n, o, r, i) {
|
|
|
5722
5730
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5723
5731
|
return d(), h(I, null, [
|
|
5724
5732
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
|
|
5725
|
-
E(s, {
|
|
5726
|
-
id: "builderio-init-variants-fns",
|
|
5727
|
-
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5728
|
-
nonce: e.nonce || ""
|
|
5729
|
-
}, null, 8, ["scriptStr", "nonce"]),
|
|
5730
5733
|
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
|
|
5731
5734
|
key: 0,
|
|
5732
5735
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -5735,6 +5738,11 @@ function us(e, t, n, o, r, i) {
|
|
|
5735
5738
|
}, null, 8, ["nonce", "scriptStr"])) : C("", !0)
|
|
5736
5739
|
], 64)) : C("", !0),
|
|
5737
5740
|
e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
|
|
5741
|
+
E(s, {
|
|
5742
|
+
id: "builderio-init-variants-fns",
|
|
5743
|
+
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5744
|
+
nonce: e.nonce || ""
|
|
5745
|
+
}, null, 8, ["scriptStr", "nonce"]),
|
|
5738
5746
|
E(l, {
|
|
5739
5747
|
id: "builderio-variants",
|
|
5740
5748
|
styles: e.hideVariantsStyleString,
|
|
@@ -5803,7 +5811,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5803
5811
|
}) => {
|
|
5804
5812
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5805
5813
|
(e != null && e.apiKey))
|
|
5806
|
-
return
|
|
5814
|
+
return Pe({
|
|
5807
5815
|
model: t.model,
|
|
5808
5816
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5809
5817
|
apiVersion: e.apiVersion,
|
|
@@ -5915,13 +5923,13 @@ function fs(e, t, n, o, r, i) {
|
|
|
5915
5923
|
const bs = /* @__PURE__ */ v(hs, [["render", fs]]);
|
|
5916
5924
|
export {
|
|
5917
5925
|
ws as A,
|
|
5918
|
-
|
|
5926
|
+
It as B,
|
|
5919
5927
|
Po as C,
|
|
5920
5928
|
$s as D,
|
|
5921
5929
|
Qn as E,
|
|
5922
5930
|
No as F,
|
|
5923
5931
|
Yn as G,
|
|
5924
|
-
|
|
5932
|
+
Pe as H,
|
|
5925
5933
|
Ho as I,
|
|
5926
5934
|
vs as J,
|
|
5927
5935
|
As as K,
|
|
@@ -5939,20 +5947,20 @@ export {
|
|
|
5939
5947
|
Rs as h,
|
|
5940
5948
|
A as i,
|
|
5941
5949
|
Ps as j,
|
|
5942
|
-
|
|
5950
|
+
Be as k,
|
|
5943
5951
|
Rn as l,
|
|
5944
5952
|
Ft as m,
|
|
5945
5953
|
bs as n,
|
|
5946
5954
|
Vr as o,
|
|
5947
5955
|
q as p,
|
|
5948
5956
|
ps as q,
|
|
5949
|
-
|
|
5957
|
+
Re as r,
|
|
5950
5958
|
Is as s,
|
|
5951
5959
|
En as t,
|
|
5952
5960
|
ks as u,
|
|
5953
5961
|
Cs as v,
|
|
5954
5962
|
ss as w,
|
|
5955
5963
|
Ts as x,
|
|
5956
|
-
|
|
5964
|
+
ut as y,
|
|
5957
5965
|
Ss as z
|
|
5958
5966
|
};
|