@builder.io/sdk-vue 5.1.1 → 5.2.2
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-NbFI2CU_.js → awaiter-PiTJ_7wp.js} +1 -1
- package/lib/browser/{awaiter-YRNWppS-.cjs → awaiter-hHorxjIR.cjs} +1 -1
- package/lib/browser/{block-wrapper-_4lEInw9.js → block-wrapper-8FiWiPra.js} +3 -3
- package/lib/browser/{block-wrapper-7ZGQAl5W.cjs → block-wrapper-v0E7yyzI.cjs} +1 -1
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/browser/{component-ref-A2Q0eDCA.cjs → component-ref-jU5sC23e.cjs} +1 -1
- package/lib/browser/{component-ref-S2rn5_QV.js → component-ref-u11yYjHx.js} +38 -33
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/browser/components/content-variants/helpers.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-PbwnoRP4.cjs → get-block-properties-AT7KmjRH.cjs} +1 -1
- package/lib/browser/{get-block-properties-Y9GlYFTe.js → get-block-properties-UD7oT_P6.js} +1 -1
- package/lib/browser/{index-OpNLmfCu.cjs → index-9zsNLjBY.cjs} +50 -20
- package/lib/browser/{index-HPQgrUEC.js → index-qBdmc4Tf.js} +296 -260
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-tMAUVH2B.cjs → live-edit-9FW3XnJY.cjs} +1 -1
- package/lib/browser/{live-edit-8F1riCsR.js → live-edit-yO4ZTgek.js} +1 -1
- package/lib/browser/{repeated-block-C21nYjNB.js → repeated-block-7Kr5DU4s.js} +2 -2
- package/lib/browser/{repeated-block-YesIuQQG.cjs → repeated-block-HJlXpRlA.cjs} +1 -1
- package/lib/browser/{style-wrapper-toT_b35_.cjs → style-wrapper-NagZ3htF.cjs} +1 -1
- package/lib/browser/{style-wrapper-6gB537kz.js → style-wrapper-oGUCilmw.js} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-Z1Aho-Tf.js → awaiter-acJdczkp.js} +1 -1
- package/lib/edge/{awaiter-GbCbMdxs.cjs → awaiter-yr8VAu_H.cjs} +1 -1
- package/lib/edge/{block-wrapper-SGs68mW-.cjs → block-wrapper-aEKGXQsG.cjs} +1 -1
- package/lib/{node/block-wrapper-P5y87ZAx.js → edge/block-wrapper-mCaWnoxQ.js} +3 -3
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/edge/{component-ref-v3RKtvga.js → component-ref-pA4-SwIs.js} +33 -28
- package/lib/edge/{component-ref-1HNLmjNP.cjs → component-ref-wzojJNtP.cjs} +1 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/edge/components/content-variants/helpers.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-O8BCJSao.js → get-block-properties-T1Ci7dP5.js} +1 -1
- package/lib/edge/{get-block-properties-ju6Fj919.cjs → get-block-properties-vOCtFmny.cjs} +1 -1
- package/lib/edge/{index-x6Hu33ce.js → index-9d4BROG7.js} +544 -508
- package/lib/edge/{index-FjhQsct4.cjs → index-OZxVFmQK.cjs} +54 -24
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-Jp1PzpUr.cjs → edge/live-edit-DElUbmBW.cjs} +1 -1
- package/lib/{node/live-edit-61Hzovyk.js → edge/live-edit-oX2tpNY4.js} +1 -1
- package/lib/edge/{repeated-block-gmtzy89x.js → repeated-block-WFlqwuyL.js} +2 -2
- package/lib/edge/{repeated-block-ic1FaN4o.cjs → repeated-block-uS6k8BJT.cjs} +1 -1
- package/lib/edge/{style-wrapper-DFS-znzq.js → style-wrapper-QjzY0pp1.js} +1 -1
- package/lib/edge/{style-wrapper-Xaty5j6j.cjs → style-wrapper-UNbimac8.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-7GQ8utUb.cjs → awaiter-68BBjUeZ.cjs} +1 -1
- package/lib/node/{awaiter-MB_eWqp9.js → awaiter-j4ORMLjV.js} +1 -1
- package/lib/{edge/block-wrapper-sP32aCJj.js → node/block-wrapper-MpV_yto9.js} +3 -3
- package/lib/node/{block-wrapper--M33E0VG.cjs → block-wrapper-xbWj7xN4.cjs} +1 -1
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/node/{component-ref-RUGITshe.js → component-ref-FMaZUEHA.js} +45 -40
- package/lib/node/{component-ref-KETj2JRL.cjs → component-ref-gcCyaLPb.cjs} +1 -1
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/node/components/content-variants/helpers.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Ec9Kj4p7.js → get-block-properties-OFyB13c0.js} +2 -2
- package/lib/node/{get-block-properties-Z9QEqFjm.cjs → get-block-properties-xyodoUq1.cjs} +1 -1
- package/lib/node/{index-WS6d-d4F.cjs → index-INlBMXV-.cjs} +49 -19
- package/lib/node/{index-TvY2gce_.js → index-TU01S1LU.js} +263 -227
- 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-v7-_17wH.js → node/live-edit-047YZnu-.js} +1 -1
- package/lib/{edge/live-edit-VsbDXDK9.cjs → node/live-edit-g3b-brGl.cjs} +1 -1
- package/lib/node/{repeated-block-9JRCsGOV.cjs → repeated-block-EcOLRgeJ.cjs} +1 -1
- package/lib/node/{repeated-block-Nh0O2sxg.js → repeated-block-om1ZGsyQ.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-xByMtVKh.cjs → should-force-browser-runtime-in-node-A9wQILFE.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-ghF-DZhu.js → should-force-browser-runtime-in-node-dW9p7rxg.js} +1 -1
- package/lib/node/{style-wrapper-y344qWFp.js → style-wrapper-2Rqb9g04.js} +2 -2
- package/lib/node/{style-wrapper-rXB6kp1P.cjs → style-wrapper-lvW1HnEu.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
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as R, createBlock as S, resolveDynamicComponent as X, mergeProps as I, 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 ze, 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 = {};
|
|
@@ -11,7 +11,7 @@ function W(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Ot = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
@@ -23,26 +23,26 @@ const xt = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName),
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(X(e.TagName),
|
|
29
|
-
default:
|
|
26
|
+
function xt(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), I({ key: 1 }, e.attributes, L(e.actionAttributes)), null, 16)) : (d(), h(R, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(X(e.TagName), I({ key: 0 }, e.attributes, L(e.actionAttributes)), {
|
|
29
|
+
default: x(() => [
|
|
30
30
|
N(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(X(e.TagName),
|
|
34
|
-
default:
|
|
33
|
+
}, 16)) : (d(), S(X(e.TagName), I({ key: 1 }, e.attributes, L(e.actionAttributes)), {
|
|
34
|
+
default: x(() => [
|
|
35
35
|
N(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const ke = /* @__PURE__ */ v(
|
|
41
|
+
const ke = /* @__PURE__ */ v(Ot, [["render", xt]]), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: ke
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = "vue", K = () => {
|
|
45
|
+
switch ($) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -71,7 +71,7 @@ const ke = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...W(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[K()]: `${this.link ? "" : "builder-button"} ${this.attributes[K()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -90,7 +90,7 @@ function Lt(e, t, n, o, r, i) {
|
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
93
|
+
default: x(() => [
|
|
94
94
|
Vt(de(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
@@ -129,17 +129,17 @@ const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
|
|
|
129
129
|
function T() {
|
|
130
130
|
return typeof window < "u" && typeof document < "u";
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const Kt = (e) => {
|
|
133
133
|
const t = {};
|
|
134
134
|
return e.forEach((n, o) => {
|
|
135
135
|
t[o] = n;
|
|
136
136
|
}), t;
|
|
137
|
-
}, Qe = (e) => e instanceof URLSearchParams ?
|
|
138
|
-
function
|
|
137
|
+
}, Qe = (e) => e instanceof URLSearchParams ? Kt(e) : e, Ye = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
|
+
function jt() {
|
|
139
139
|
return T() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
141
|
function A(e) {
|
|
142
|
-
return
|
|
142
|
+
return jt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
143
|
Ye(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
145
145
|
const qt = () => {
|
|
@@ -166,7 +166,7 @@ const qt = () => {
|
|
|
166
166
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
167
167
|
},
|
|
168
168
|
any() {
|
|
169
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
169
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || $ === "reactNative";
|
|
170
170
|
}
|
|
171
171
|
}, n = e.match(/Tablet|iPad/i), o = qt();
|
|
172
172
|
return {
|
|
@@ -174,11 +174,11 @@ 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
|
-
},
|
|
178
|
-
"X-Builder-SDK":
|
|
177
|
+
}, Ze = "5.2.2", _e = () => ({
|
|
178
|
+
"X-Builder-SDK": $,
|
|
179
179
|
"X-Builder-SDK-GEN": "2",
|
|
180
|
-
"X-Builder-SDK-Version":
|
|
181
|
-
}),
|
|
180
|
+
"X-Builder-SDK-Version": Ze
|
|
181
|
+
}), j = (e) => e != null, Gt = (e) => {
|
|
182
182
|
if (e === "localhost" || e === "127.0.0.1")
|
|
183
183
|
return e;
|
|
184
184
|
const t = e.split(".");
|
|
@@ -194,7 +194,7 @@ const qt = () => {
|
|
|
194
194
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
}, et = async (e) => ue(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(
|
|
197
|
+
}, et = async (e) => ue(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), Qt = [["secure", ""], ["SameSite", "None"]], Yt = ({
|
|
198
198
|
name: e,
|
|
199
199
|
value: t,
|
|
200
200
|
expires: n
|
|
@@ -229,7 +229,7 @@ function Xt() {
|
|
|
229
229
|
function tt() {
|
|
230
230
|
return Xt().replace(/-/g, "");
|
|
231
231
|
}
|
|
232
|
-
const nt = "builderSessionId",
|
|
232
|
+
const nt = "builderSessionId", Zt = async ({
|
|
233
233
|
canTrack: e
|
|
234
234
|
}) => {
|
|
235
235
|
if (!e)
|
|
@@ -238,16 +238,16 @@ const nt = "builderSessionId", _t = async ({
|
|
|
238
238
|
name: nt,
|
|
239
239
|
canTrack: e
|
|
240
240
|
});
|
|
241
|
-
if (
|
|
241
|
+
if (j(t))
|
|
242
242
|
return t;
|
|
243
243
|
{
|
|
244
|
-
const n =
|
|
244
|
+
const n = _t();
|
|
245
245
|
return en({
|
|
246
246
|
id: n,
|
|
247
247
|
canTrack: e
|
|
248
248
|
}), n;
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, _t = () => tt(), en = ({
|
|
251
251
|
id: e,
|
|
252
252
|
canTrack: t
|
|
253
253
|
}) => Ce({
|
|
@@ -285,7 +285,7 @@ const nt = "builderSessionId", _t = async ({
|
|
|
285
285
|
key: rt,
|
|
286
286
|
canTrack: e
|
|
287
287
|
});
|
|
288
|
-
if (
|
|
288
|
+
if (j(t))
|
|
289
289
|
return t;
|
|
290
290
|
{
|
|
291
291
|
const n = rn();
|
|
@@ -314,7 +314,7 @@ const an = async ({
|
|
|
314
314
|
visitorId: void 0,
|
|
315
315
|
sessionId: void 0
|
|
316
316
|
};
|
|
317
|
-
const t = await
|
|
317
|
+
const t = await Zt({
|
|
318
318
|
canTrack: e
|
|
319
319
|
}), n = on({
|
|
320
320
|
canTrack: e
|
|
@@ -352,7 +352,7 @@ async function se({
|
|
|
352
352
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
|
-
if (!t.canTrack || A() || !(T() ||
|
|
355
|
+
if (!t.canTrack || A() || !(T() || $ === "reactNative"))
|
|
356
356
|
return;
|
|
357
357
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
358
|
return Te(o), fetch(o, {
|
|
@@ -362,14 +362,14 @@ async function se({
|
|
|
362
362
|
}),
|
|
363
363
|
headers: {
|
|
364
364
|
"content-type": "application/json",
|
|
365
|
-
...
|
|
365
|
+
..._e()
|
|
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 ks = (e) => se({
|
|
373
373
|
...e,
|
|
374
374
|
canTrack: !0
|
|
375
375
|
}), cn = ({
|
|
@@ -455,7 +455,7 @@ const We = ({
|
|
|
455
455
|
};
|
|
456
456
|
function pn() {
|
|
457
457
|
var e;
|
|
458
|
-
return typeof process < "u" &&
|
|
458
|
+
return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
459
459
|
}
|
|
460
460
|
const mn = ({
|
|
461
461
|
shouldLogWarning: e
|
|
@@ -595,7 +595,7 @@ function ye(e) {
|
|
|
595
595
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ye(e[n]));
|
|
596
596
|
return t;
|
|
597
597
|
}
|
|
598
|
-
const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
598
|
+
const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes($), In = (e) => {
|
|
599
599
|
if (wn) {
|
|
600
600
|
const t = we(e);
|
|
601
601
|
return {
|
|
@@ -674,7 +674,7 @@ function le(e) {
|
|
|
674
674
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? An(n) : n));
|
|
675
675
|
}
|
|
676
676
|
const De = {};
|
|
677
|
-
function
|
|
677
|
+
function Cs(e, t) {
|
|
678
678
|
e === "plugin" && (t = le(t));
|
|
679
679
|
let n = De[e];
|
|
680
680
|
if (n || (n = De[e] = []), n.push(t), T()) {
|
|
@@ -692,7 +692,7 @@ function ks(e, t) {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Ts(e) {
|
|
696
696
|
var t;
|
|
697
697
|
if (T()) {
|
|
698
698
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -702,24 +702,24 @@ function Cs(e) {
|
|
|
702
702
|
}, "*");
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
705
|
+
const Oe = {};
|
|
706
|
+
function ws(e) {
|
|
707
707
|
if (T()) {
|
|
708
|
-
Object.assign(
|
|
708
|
+
Object.assign(Oe, e);
|
|
709
709
|
const t = {
|
|
710
710
|
type: "builder.settingsChange",
|
|
711
|
-
data:
|
|
711
|
+
data: Oe
|
|
712
712
|
};
|
|
713
713
|
parent.postMessage(t, "*");
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const
|
|
716
|
+
const xe = "builder.", Pn = "options.", lt = (e) => {
|
|
717
717
|
if (!e)
|
|
718
718
|
return {};
|
|
719
719
|
const t = Qe(e), n = {};
|
|
720
720
|
return Object.keys(t).forEach((o) => {
|
|
721
|
-
if (o.startsWith(
|
|
722
|
-
const r = o.replace(
|
|
721
|
+
if (o.startsWith(xe)) {
|
|
722
|
+
const r = o.replace(xe, "").replace(Pn, "");
|
|
723
723
|
n[r] = t[o];
|
|
724
724
|
}
|
|
725
725
|
}), n;
|
|
@@ -741,8 +741,8 @@ const dt = (e) => {
|
|
|
741
741
|
Ue || (Ue = !0, T() && ((t = window.parent) == null || t.postMessage({
|
|
742
742
|
type: "builder.sdkInfo",
|
|
743
743
|
data: {
|
|
744
|
-
target:
|
|
745
|
-
version:
|
|
744
|
+
target: $,
|
|
745
|
+
version: Ze,
|
|
746
746
|
supportsPatchUpdates: !1,
|
|
747
747
|
// Supports builder-model="..." attribute which is needed to
|
|
748
748
|
// scope our '+ add block' button styling
|
|
@@ -832,7 +832,7 @@ const dt = (e) => {
|
|
|
832
832
|
break;
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
},
|
|
835
|
+
}, Is = ({
|
|
836
836
|
model: e,
|
|
837
837
|
apiKey: t,
|
|
838
838
|
callback: n,
|
|
@@ -871,14 +871,14 @@ const dt = (e) => {
|
|
|
871
871
|
}) => ue({
|
|
872
872
|
name: $e(e),
|
|
873
873
|
canTrack: !0
|
|
874
|
-
}),
|
|
874
|
+
}), On = ({
|
|
875
875
|
contentId: e,
|
|
876
876
|
value: t
|
|
877
877
|
}) => Ce({
|
|
878
878
|
name: $e(e),
|
|
879
879
|
value: t,
|
|
880
880
|
canTrack: !0
|
|
881
|
-
}), pt = (e) =>
|
|
881
|
+
}), pt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, xn = ({
|
|
882
882
|
id: e,
|
|
883
883
|
variations: t
|
|
884
884
|
}) => {
|
|
@@ -892,8 +892,8 @@ const dt = (e) => {
|
|
|
892
892
|
}
|
|
893
893
|
return e;
|
|
894
894
|
}, mt = (e) => {
|
|
895
|
-
const t =
|
|
896
|
-
return
|
|
895
|
+
const t = xn(e);
|
|
896
|
+
return On({
|
|
897
897
|
contentId: e.id,
|
|
898
898
|
value: t
|
|
899
899
|
}).catch((n) => {
|
|
@@ -993,11 +993,11 @@ function Fe() {
|
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
995
|
let ve;
|
|
996
|
-
T() &&
|
|
997
|
-
const ce = ve,
|
|
996
|
+
T() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Fe()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Fe();
|
|
997
|
+
const ce = ve, $s = (e) => {
|
|
998
998
|
ce.setUserAttributes(e);
|
|
999
999
|
}, G = (e) => {
|
|
1000
|
-
const t =
|
|
1000
|
+
const t = j(e) ? e : !0;
|
|
1001
1001
|
return ce.setCanTrack(t), t;
|
|
1002
1002
|
};
|
|
1003
1003
|
function Fn() {
|
|
@@ -1030,7 +1030,7 @@ function ft(e, t, n = {}) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
return n;
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Kn(e) {
|
|
1034
1034
|
const t = {};
|
|
1035
1035
|
for (const n in e) {
|
|
1036
1036
|
const o = n.split(".");
|
|
@@ -1042,7 +1042,7 @@ function jn(e) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return t;
|
|
1044
1044
|
}
|
|
1045
|
-
const
|
|
1045
|
+
const jn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
|
|
1046
1046
|
const {
|
|
1047
1047
|
limit: t = 30,
|
|
1048
1048
|
userAttributes: n,
|
|
@@ -1051,7 +1051,7 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1051
1051
|
apiKey: i,
|
|
1052
1052
|
enrich: s,
|
|
1053
1053
|
locale: l,
|
|
1054
|
-
apiVersion: a =
|
|
1054
|
+
apiVersion: a = jn,
|
|
1055
1055
|
fields: u,
|
|
1056
1056
|
omit: p,
|
|
1057
1057
|
offset: f,
|
|
@@ -1069,11 +1069,11 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
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
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 && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1072
|
-
const
|
|
1072
|
+
const O = Se({
|
|
1073
1073
|
sort: b
|
|
1074
1074
|
});
|
|
1075
|
-
for (const H in
|
|
1076
|
-
w.searchParams.set(H, JSON.stringify(
|
|
1075
|
+
for (const H in O)
|
|
1076
|
+
w.searchParams.set(H, JSON.stringify(O[H]));
|
|
1077
1077
|
}
|
|
1078
1078
|
const J = {
|
|
1079
1079
|
...Bn(),
|
|
@@ -1084,14 +1084,14 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1084
1084
|
...zn(J)
|
|
1085
1085
|
};
|
|
1086
1086
|
const Q = Se(J);
|
|
1087
|
-
for (const
|
|
1088
|
-
w.searchParams.set(
|
|
1087
|
+
for (const O in Q)
|
|
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
|
|
1090
|
+
const O = ft({
|
|
1091
1091
|
query: o
|
|
1092
1092
|
});
|
|
1093
|
-
for (const H in
|
|
1094
|
-
w.searchParams.set(H, JSON.stringify(
|
|
1093
|
+
for (const H in O)
|
|
1094
|
+
w.searchParams.set(H, JSON.stringify(O[H]));
|
|
1095
1095
|
}
|
|
1096
1096
|
return w;
|
|
1097
1097
|
}, qn = (e) => {
|
|
@@ -1104,7 +1104,7 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1104
1104
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1105
1105
|
const t = qn(e), {
|
|
1106
1106
|
userAttributes: n
|
|
1107
|
-
} =
|
|
1107
|
+
} = Kn(t);
|
|
1108
1108
|
return n;
|
|
1109
1109
|
}
|
|
1110
1110
|
return {};
|
|
@@ -1128,13 +1128,13 @@ const Jn = async (e) => {
|
|
|
1128
1128
|
...e.fetchOptions,
|
|
1129
1129
|
headers: {
|
|
1130
1130
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1131
|
-
...
|
|
1131
|
+
..._e()
|
|
1132
1132
|
}
|
|
1133
1133
|
};
|
|
1134
1134
|
return await (await n(t.href, o)).json();
|
|
1135
1135
|
}, Qn = async (e, t, n = Re(e)) => {
|
|
1136
1136
|
const o = G(e.canTrack);
|
|
1137
|
-
if (n.search.includes("preview="), !o || !(T() ||
|
|
1137
|
+
if (n.search.includes("preview="), !o || !(T() || $ === "reactNative"))
|
|
1138
1138
|
return t.results;
|
|
1139
1139
|
try {
|
|
1140
1140
|
const r = [];
|
|
@@ -1159,7 +1159,7 @@ async function Yn(e) {
|
|
|
1159
1159
|
}), n;
|
|
1160
1160
|
return Qn(e, n);
|
|
1161
1161
|
}
|
|
1162
|
-
const
|
|
1162
|
+
const Rs = async (e) => {
|
|
1163
1163
|
var o, r, i;
|
|
1164
1164
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1165
1165
|
...e,
|
|
@@ -1191,7 +1191,7 @@ function Xn(e, t, n = {}) {
|
|
|
1191
1191
|
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function Z(e, ...t) {
|
|
1195
1195
|
const n = Object(e);
|
|
1196
1196
|
for (let o = 1; o < arguments.length; o++) {
|
|
1197
1197
|
const r = arguments[o];
|
|
@@ -1201,7 +1201,7 @@ function _(e, ...t) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return n;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Zn(e) {
|
|
1205
1205
|
for (const t of e)
|
|
1206
1206
|
switch (t.trigger) {
|
|
1207
1207
|
case "pageLoad":
|
|
@@ -1216,12 +1216,12 @@ function bt(e) {
|
|
|
1216
1216
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1217
1217
|
}
|
|
1218
1218
|
function gt(e, t) {
|
|
1219
|
-
const n =
|
|
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)
|
|
1222
1222
|
a in l || (l[a] = o[a]);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function _n(e) {
|
|
1225
1225
|
const t = [];
|
|
1226
1226
|
for (const n of e.steps)
|
|
1227
1227
|
for (const o in n.styles)
|
|
@@ -1235,8 +1235,8 @@ function yt(e) {
|
|
|
1235
1235
|
return;
|
|
1236
1236
|
}
|
|
1237
1237
|
Array.from(t).forEach((n) => {
|
|
1238
|
-
gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
1239
|
-
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1238
|
+
gt(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 ${Ae(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
|
});
|
|
@@ -1253,10 +1253,10 @@ function eo(e) {
|
|
|
1253
1253
|
let o = !1, r = !1;
|
|
1254
1254
|
function i() {
|
|
1255
1255
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1256
|
-
|
|
1256
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1257
1257
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1258
1258
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1259
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1259
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
|
|
1260
1260
|
}
|
|
1261
1261
|
const s = Xn(i, 200, {
|
|
1262
1262
|
leading: !1
|
|
@@ -1267,7 +1267,7 @@ function eo(e) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
const a = e.steps[0].styles;
|
|
1269
1269
|
function u() {
|
|
1270
|
-
|
|
1270
|
+
Z(n.style, a);
|
|
1271
1271
|
}
|
|
1272
1272
|
u(), setTimeout(() => {
|
|
1273
1273
|
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -1280,8 +1280,8 @@ function eo(e) {
|
|
|
1280
1280
|
const vt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1281
1281
|
if (typeof o == "string")
|
|
1282
1282
|
return `${Ae(n)}: ${o};`;
|
|
1283
|
-
}).filter(
|
|
1284
|
-
`),
|
|
1283
|
+
}).filter(j), to = (e) => vt(e).join(`
|
|
1284
|
+
`), Es = ({
|
|
1285
1285
|
mediaQuery: e,
|
|
1286
1286
|
className: t,
|
|
1287
1287
|
styles: n
|
|
@@ -1298,7 +1298,7 @@ function no({
|
|
|
1298
1298
|
}) {
|
|
1299
1299
|
return e;
|
|
1300
1300
|
}
|
|
1301
|
-
const
|
|
1301
|
+
const As = ({
|
|
1302
1302
|
block: e,
|
|
1303
1303
|
context: t
|
|
1304
1304
|
}) => St(no({
|
|
@@ -1307,7 +1307,7 @@ const Es = ({
|
|
|
1307
1307
|
block: e
|
|
1308
1308
|
}));
|
|
1309
1309
|
function St(e) {
|
|
1310
|
-
switch (
|
|
1310
|
+
switch ($) {
|
|
1311
1311
|
case "svelte":
|
|
1312
1312
|
case "vue":
|
|
1313
1313
|
case "solid":
|
|
@@ -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-8FiWiPra.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-u11yYjHx.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-7Kr5DU4s.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-oGUCilmw.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
|
|
@@ -1436,7 +1436,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1436
1436
|
},
|
|
1437
1437
|
mounted() {
|
|
1438
1438
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1439
|
-
t && e &&
|
|
1439
|
+
t && e && Zn(
|
|
1440
1440
|
t.map((n) => ({
|
|
1441
1441
|
...n,
|
|
1442
1442
|
elementId: e
|
|
@@ -1505,7 +1505,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1505
1505
|
registeredComponents: this.registeredComponents,
|
|
1506
1506
|
builderBlock: this.processedBlock,
|
|
1507
1507
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1508
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1508
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && $ === "rsc")
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
@@ -1513,14 +1513,14 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1513
1513
|
function go(e, t, n, o, r, i) {
|
|
1514
1514
|
var f;
|
|
1515
1515
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1516
|
-
return e.canShowBlock ? (d(), h(
|
|
1516
|
+
return e.canShowBlock ? (d(), h(R, { key: 0 }, [
|
|
1517
1517
|
E(s, {
|
|
1518
1518
|
block: e.processedBlock,
|
|
1519
1519
|
context: e.context,
|
|
1520
1520
|
id: e.block.id
|
|
1521
1521
|
}, null, 8, ["block", "context", "id"]),
|
|
1522
|
-
(f = e.blockComponent) != null && f.noWrap ? (d(), h(
|
|
1523
|
-
e.repeatItem ? (d(!0), h(
|
|
1522
|
+
(f = e.blockComponent) != null && f.noWrap ? (d(), h(R, { key: 1 }, [
|
|
1523
|
+
e.repeatItem ? (d(!0), h(R, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1524
1524
|
key: e.generateKey(m),
|
|
1525
1525
|
repeatContext: c.context,
|
|
1526
1526
|
block: c.block,
|
|
@@ -1538,8 +1538,8 @@ function go(e, t, n, o, r, i) {
|
|
|
1538
1538
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1539
1539
|
isInteractive: e.componentRefProps.isInteractive
|
|
1540
1540
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1541
|
-
], 64)) : (d(), h(
|
|
1542
|
-
e.repeatItem ? (d(!0), h(
|
|
1541
|
+
], 64)) : (d(), h(R, { key: 0 }, [
|
|
1542
|
+
e.repeatItem ? (d(!0), h(R, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1543
1543
|
key: e.generateKey(m),
|
|
1544
1544
|
repeatContext: c.context,
|
|
1545
1545
|
block: c.block,
|
|
@@ -1551,7 +1551,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1551
1551
|
block: e.processedBlock,
|
|
1552
1552
|
context: e.context
|
|
1553
1553
|
}, {
|
|
1554
|
-
default:
|
|
1554
|
+
default: x(() => [
|
|
1555
1555
|
E(l, {
|
|
1556
1556
|
componentRef: e.componentRefProps.componentRef,
|
|
1557
1557
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1563,7 +1563,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1563
1563
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1564
1564
|
isInteractive: e.componentRefProps.isInteractive
|
|
1565
1565
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1566
|
-
(d(!0), h(
|
|
1566
|
+
(d(!0), h(R, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1567
1567
|
key: c.id,
|
|
1568
1568
|
block: c,
|
|
1569
1569
|
registeredComponents: e.registeredComponents,
|
|
@@ -1576,7 +1576,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1576
1576
|
], 64))
|
|
1577
1577
|
], 64)) : C("", !0);
|
|
1578
1578
|
}
|
|
1579
|
-
const Ct = /* @__PURE__ */ v(bo, [["render", go]]),
|
|
1579
|
+
const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1580
1580
|
__proto__: null,
|
|
1581
1581
|
default: Ct
|
|
1582
1582
|
}, Symbol.toStringTag, { value: "Module" })), yo = y({
|
|
@@ -1650,7 +1650,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.
|
|
|
1650
1650
|
}
|
|
1651
1651
|
});
|
|
1652
1652
|
function vo(e, t, n, o, r, i) {
|
|
1653
|
-
return d(), S(X(e.BlocksWrapper),
|
|
1653
|
+
return d(), S(X(e.BlocksWrapper), I({
|
|
1654
1654
|
ref: "blocksWrapperRef",
|
|
1655
1655
|
class: e.className + " component-5vz8uirn7sc",
|
|
1656
1656
|
"builder-path": e.dataPath,
|
|
@@ -1660,7 +1660,7 @@ function vo(e, t, n, o, r, i) {
|
|
|
1660
1660
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1661
1661
|
onKeyPress: (s) => e.onClick()
|
|
1662
1662
|
}, { ...e.BlocksWrapperProps }), {
|
|
1663
|
-
default:
|
|
1663
|
+
default: x(() => [
|
|
1664
1664
|
N(e.$slots, "default", {}, void 0, !0)
|
|
1665
1665
|
]),
|
|
1666
1666
|
_: 3
|
|
@@ -1697,9 +1697,9 @@ function Co(e, t, n, o, r, i) {
|
|
|
1697
1697
|
classNameProp: e.className,
|
|
1698
1698
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
|
|
1699
1699
|
}, {
|
|
1700
|
-
default:
|
|
1700
|
+
default: x(() => [
|
|
1701
1701
|
N(e.$slots, "default"),
|
|
1702
|
-
e.blocks ? (d(!0), h(
|
|
1702
|
+
e.blocks ? (d(!0), h(R, { key: 0 }, F(e.blocks, (c, m) => {
|
|
1703
1703
|
var b;
|
|
1704
1704
|
return d(), S(s, {
|
|
1705
1705
|
key: c.id,
|
|
@@ -1756,7 +1756,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1756
1756
|
default: 991,
|
|
1757
1757
|
max: 1200
|
|
1758
1758
|
}
|
|
1759
|
-
},
|
|
1759
|
+
}, Bs = (e, t = Tt) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
|
|
1760
1760
|
const t = we(Tt);
|
|
1761
1761
|
if (!e)
|
|
1762
1762
|
return t;
|
|
@@ -1813,7 +1813,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1813
1813
|
"builderComponents"
|
|
1814
1814
|
],
|
|
1815
1815
|
data() {
|
|
1816
|
-
return { TARGET:
|
|
1816
|
+
return { TARGET: $, getColumnsClass: Ro };
|
|
1817
1817
|
},
|
|
1818
1818
|
computed: {
|
|
1819
1819
|
gutterSize() {
|
|
@@ -1929,7 +1929,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1929
1929
|
...e.link ? {
|
|
1930
1930
|
href: e.link
|
|
1931
1931
|
} : {},
|
|
1932
|
-
[
|
|
1932
|
+
[K()]: "builder-column",
|
|
1933
1933
|
style: St(this.columnCssVars(t))
|
|
1934
1934
|
};
|
|
1935
1935
|
}
|
|
@@ -1938,8 +1938,8 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1938
1938
|
function Ao(e, t, n, o, r, i) {
|
|
1939
1939
|
var u;
|
|
1940
1940
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1941
|
-
return d(), h("div",
|
|
1942
|
-
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-
|
|
1941
|
+
return d(), h("div", I({
|
|
1942
|
+
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
|
|
1943
1943
|
style: e.columnsCssVars()
|
|
1944
1944
|
}, {}), [
|
|
1945
1945
|
e.TARGET !== "reactNative" ? (d(), S(s, {
|
|
@@ -1948,13 +1948,13 @@ function Ao(e, t, n, o, r, i) {
|
|
|
1948
1948
|
styles: e.columnsStyles(),
|
|
1949
1949
|
nonce: e.builderContext.nonce
|
|
1950
1950
|
}, null, 8, ["styles", "nonce"])) : C("", !0),
|
|
1951
|
-
(d(!0), h(
|
|
1951
|
+
(d(!0), h(R, null, F(e.columns, (p, f) => (d(), S(a, {
|
|
1952
1952
|
key: f,
|
|
1953
1953
|
TagName: e.getTagName(p),
|
|
1954
1954
|
actionAttributes: {},
|
|
1955
1955
|
attributes: e.getAttributes(p, f)
|
|
1956
1956
|
}, {
|
|
1957
|
-
default:
|
|
1957
|
+
default: x(() => [
|
|
1958
1958
|
E(l, {
|
|
1959
1959
|
path: `columns.${f}.blocks`,
|
|
1960
1960
|
parent: e.builderBlock.id,
|
|
@@ -1971,7 +1971,7 @@ function Ao(e, t, n, o, r, i) {
|
|
|
1971
1971
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1972
1972
|
], 16);
|
|
1973
1973
|
}
|
|
1974
|
-
const Po = /* @__PURE__ */ v(Eo, [["render", Ao], ["__scopeId", "data-v-
|
|
1974
|
+
const Po = /* @__PURE__ */ v(Eo, [["render", Ao], ["__scopeId", "data-v-ab15749a"]]), Bo = y({
|
|
1975
1975
|
name: "builder-fragment-component",
|
|
1976
1976
|
props: []
|
|
1977
1977
|
});
|
|
@@ -2011,7 +2011,7 @@ function oe(e) {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Do(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
2013
2013
|
}
|
|
2014
|
-
const
|
|
2014
|
+
const Oo = y({
|
|
2015
2015
|
name: "builder-image",
|
|
2016
2016
|
props: [
|
|
2017
2017
|
"lazy",
|
|
@@ -2062,19 +2062,19 @@ const xo = y({
|
|
|
2062
2062
|
return this.aspectRatio ? e : void 0;
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
|
-
}),
|
|
2065
|
+
}), xo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Lo = {
|
|
2066
2066
|
key: 2,
|
|
2067
2067
|
class: "div-t43jfuqn6g-2"
|
|
2068
2068
|
};
|
|
2069
2069
|
function Fo(e, t, n, o, r, i) {
|
|
2070
2070
|
var s, l, a, u, p, f;
|
|
2071
|
-
return d(), h(
|
|
2071
|
+
return d(), h(R, null, [
|
|
2072
2072
|
z("picture", null, [
|
|
2073
2073
|
e.webpSrcSet ? (d(), h("source", {
|
|
2074
2074
|
key: 0,
|
|
2075
2075
|
type: "image/webp",
|
|
2076
2076
|
srcset: e.webpSrcSet
|
|
2077
|
-
}, null, 8,
|
|
2077
|
+
}, null, 8, xo)) : C("", !0),
|
|
2078
2078
|
z("img", {
|
|
2079
2079
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2080
2080
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -2086,7 +2086,7 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2086
2086
|
objectFit: e.backgroundSize || "cover",
|
|
2087
2087
|
...e.aspectRatioCss
|
|
2088
2088
|
}),
|
|
2089
|
-
class:
|
|
2089
|
+
class: _(
|
|
2090
2090
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
2091
2091
|
),
|
|
2092
2092
|
src: e.image,
|
|
@@ -2107,15 +2107,15 @@ function Fo(e, t, n, o, r, i) {
|
|
|
2107
2107
|
])) : C("", !0)
|
|
2108
2108
|
], 64);
|
|
2109
2109
|
}
|
|
2110
|
-
const Ho = /* @__PURE__ */ v(
|
|
2110
|
+
const Ho = /* @__PURE__ */ v(Oo, [["render", Fo], ["__scopeId", "data-v-741b9bbc"]]), Mo = y({
|
|
2111
2111
|
name: "builder-section-component",
|
|
2112
2112
|
props: ["attributes", "maxWidth"],
|
|
2113
2113
|
data() {
|
|
2114
2114
|
return { filterAttrs: W };
|
|
2115
2115
|
}
|
|
2116
2116
|
});
|
|
2117
|
-
function
|
|
2118
|
-
return d(), h("section",
|
|
2117
|
+
function Ko(e, t, n, o, r, i) {
|
|
2118
|
+
return d(), h("section", I({
|
|
2119
2119
|
style: {
|
|
2120
2120
|
width: "100%",
|
|
2121
2121
|
alignSelf: "stretch",
|
|
@@ -2132,7 +2132,7 @@ function jo(e, t, n, o, r, i) {
|
|
|
2132
2132
|
N(e.$slots, "default")
|
|
2133
2133
|
], 16);
|
|
2134
2134
|
}
|
|
2135
|
-
const
|
|
2135
|
+
const jo = /* @__PURE__ */ v(Mo, [["render", Ko]]);
|
|
2136
2136
|
function qo(e, t, n, o) {
|
|
2137
2137
|
function r(u) {
|
|
2138
2138
|
return typeof u == "string";
|
|
@@ -2353,7 +2353,7 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2353
2353
|
}
|
|
2354
2354
|
}`, re = "default", Qo = "filterWithCustomTargeting", wt = "builderIoPersonalization", It = "updateVisibilityStylesScript", $t = ["react", "vue", "svelte", "qwik"], Rt = ["vue", "svelte", "qwik"];
|
|
2355
2355
|
function Yo(e, t) {
|
|
2356
|
-
return !(e && e.length > 0) || !t ? !1 : Rt.includes(
|
|
2356
|
+
return !(e && e.length > 0) || !t ? !1 : Rt.includes($) ? !0 : !T();
|
|
2357
2357
|
}
|
|
2358
2358
|
function Xo({
|
|
2359
2359
|
variants: e,
|
|
@@ -2393,11 +2393,11 @@ function Xo({
|
|
|
2393
2393
|
}
|
|
2394
2394
|
return i;
|
|
2395
2395
|
}
|
|
2396
|
-
const
|
|
2396
|
+
const Zo = () => `
|
|
2397
2397
|
window.${Qo} = ${Go}
|
|
2398
2398
|
window.${wt} = ${zo}
|
|
2399
2399
|
window.${It} = ${Jo}
|
|
2400
|
-
`, Et =
|
|
2400
|
+
`, Et = $ === "react", _o = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, me = {
|
|
2401
2401
|
"@type": "@builder.io/sdk:Element",
|
|
2402
2402
|
layerName: "Accordion item title",
|
|
2403
2403
|
responsiveStyles: {
|
|
@@ -2623,9 +2623,9 @@ function ir(e, t, n, o, r, i) {
|
|
|
2623
2623
|
class: "builder-accordion",
|
|
2624
2624
|
style: M(e.accordionStyles)
|
|
2625
2625
|
}, [
|
|
2626
|
-
(d(!0), h(
|
|
2626
|
+
(d(!0), h(R, null, F(e.items, (l, a) => (d(), h(R, { key: a }, [
|
|
2627
2627
|
z("div", {
|
|
2628
|
-
class:
|
|
2628
|
+
class: _(e.getAccordionTitleClassName(a)),
|
|
2629
2629
|
style: M({
|
|
2630
2630
|
...e.accordionTitleStyles,
|
|
2631
2631
|
...e.grid && {
|
|
@@ -2647,7 +2647,7 @@ function ir(e, t, n, o, r, i) {
|
|
|
2647
2647
|
], 14, rr),
|
|
2648
2648
|
e.open.includes(a) ? (d(), h("div", {
|
|
2649
2649
|
key: 0,
|
|
2650
|
-
class:
|
|
2650
|
+
class: _(e.getAccordionDetailClassName(a)),
|
|
2651
2651
|
style: M(e.accordionDetailStyles)
|
|
2652
2652
|
}, [
|
|
2653
2653
|
E(s, {
|
|
@@ -3088,7 +3088,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3088
3088
|
var e, t, n, o, r, i, s;
|
|
3089
3089
|
return {
|
|
3090
3090
|
userAttributes: ce.getUserAttributes(),
|
|
3091
|
-
scriptStr:
|
|
3091
|
+
scriptStr: _o(
|
|
3092
3092
|
this.variants,
|
|
3093
3093
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3094
3094
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
@@ -3104,7 +3104,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3104
3104
|
G((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3105
3105
|
),
|
|
3106
3106
|
shouldResetVariants: !1,
|
|
3107
|
-
TARGET:
|
|
3107
|
+
TARGET: $,
|
|
3108
3108
|
DEFAULT_INDEX: re,
|
|
3109
3109
|
SDKS_REQUIRING_RESET_APPROACH: Rt
|
|
3110
3110
|
};
|
|
@@ -3117,7 +3117,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3117
3117
|
this.userAttributes = n;
|
|
3118
3118
|
},
|
|
3119
3119
|
{
|
|
3120
|
-
fireImmediately:
|
|
3120
|
+
fireImmediately: $ === "qwik"
|
|
3121
3121
|
}
|
|
3122
3122
|
);
|
|
3123
3123
|
if (!(A() || Ie())) {
|
|
@@ -3155,7 +3155,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3155
3155
|
return {
|
|
3156
3156
|
...W(this.attributes, "v-on:", !1),
|
|
3157
3157
|
...W(this.attributes, "v-on:", !0),
|
|
3158
|
-
[
|
|
3158
|
+
[K()]: `builder-personalization-container ${this.attributes[K()] || ""}`
|
|
3159
3159
|
};
|
|
3160
3160
|
},
|
|
3161
3161
|
filteredVariants() {
|
|
@@ -3197,7 +3197,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3197
3197
|
function hr(e, t, n, o, r, i) {
|
|
3198
3198
|
var u, p, f, c, m, b, g, P, U, V;
|
|
3199
3199
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3200
|
-
return d(), h("div",
|
|
3200
|
+
return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
|
|
3201
3201
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
3202
3202
|
key: 0,
|
|
3203
3203
|
blocks: e.blocksToRender.blocks,
|
|
@@ -3210,8 +3210,8 @@ function hr(e, t, n, o, r, i) {
|
|
|
3210
3210
|
"data-variant-id": `${(f = e.builderBlock) == null ? void 0 : f.id}-${e.blocksToRender.index}`
|
|
3211
3211
|
}
|
|
3212
3212
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
|
|
3213
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(
|
|
3214
|
-
e.shouldRenderVariants ? (d(), h(
|
|
3213
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(R, { key: 1 }, [
|
|
3214
|
+
e.shouldRenderVariants ? (d(), h(R, { key: 0 }, [
|
|
3215
3215
|
E(l, {
|
|
3216
3216
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
3217
3217
|
styles: e.hideVariantsStyleString,
|
|
@@ -3222,15 +3222,15 @@ function hr(e, t, n, o, r, i) {
|
|
|
3222
3222
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3223
3223
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3224
3224
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3225
|
-
(d(!0), h(
|
|
3226
|
-
var J, Q,
|
|
3225
|
+
(d(!0), h(R, null, F(e.variants, (w, D) => {
|
|
3226
|
+
var J, Q, O, H;
|
|
3227
3227
|
return d(), S(s, {
|
|
3228
3228
|
key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${D}`,
|
|
3229
3229
|
BlocksWrapperProps: {
|
|
3230
3230
|
...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
|
|
3231
3231
|
"aria-hidden": !0,
|
|
3232
3232
|
hidden: !0,
|
|
3233
|
-
"data-variant-id": `${(
|
|
3233
|
+
"data-variant-id": `${(O = e.builderBlock) == null ? void 0 : O.id}-${D}`
|
|
3234
3234
|
},
|
|
3235
3235
|
blocks: w.blocks,
|
|
3236
3236
|
parent: (H = e.builderBlock) == null ? void 0 : H.id,
|
|
@@ -3238,7 +3238,7 @@ function hr(e, t, n, o, r, i) {
|
|
|
3238
3238
|
context: e.builderContext,
|
|
3239
3239
|
registeredComponents: e.builderComponents
|
|
3240
3240
|
}, {
|
|
3241
|
-
default:
|
|
3241
|
+
default: x(() => {
|
|
3242
3242
|
var Ve, Ne;
|
|
3243
3243
|
return [
|
|
3244
3244
|
E(a, {
|
|
@@ -3263,7 +3263,7 @@ function hr(e, t, n, o, r, i) {
|
|
|
3263
3263
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3264
3264
|
}
|
|
3265
3265
|
}, {
|
|
3266
|
-
default:
|
|
3266
|
+
default: x(() => {
|
|
3267
3267
|
var w, D;
|
|
3268
3268
|
return [
|
|
3269
3269
|
e.shouldRenderVariants ? (d(), S(a, {
|
|
@@ -3343,7 +3343,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3343
3343
|
function vr(e, t, n, o, r, i) {
|
|
3344
3344
|
var l, a, u;
|
|
3345
3345
|
const s = k("Blocks");
|
|
3346
|
-
return d(), h("div",
|
|
3346
|
+
return d(), h("div", I(
|
|
3347
3347
|
{ style: {
|
|
3348
3348
|
pointerEvents: "auto"
|
|
3349
3349
|
} },
|
|
@@ -3581,9 +3581,9 @@ function $r(e, t, n, o, r, i) {
|
|
|
3581
3581
|
overflow: "auto"
|
|
3582
3582
|
})
|
|
3583
3583
|
}, [
|
|
3584
|
-
(d(!0), h(
|
|
3584
|
+
(d(!0), h(R, null, F(e.tabs, (l, a) => (d(), h("span", {
|
|
3585
3585
|
key: a,
|
|
3586
|
-
class:
|
|
3586
|
+
class: _(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3587
3587
|
style: M(e.getTabStyle(a)),
|
|
3588
3588
|
onClick: async (u) => e.onClick(a)
|
|
3589
3589
|
}, [
|
|
@@ -3723,14 +3723,14 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
}), Dr = ["innerHTML"];
|
|
3726
|
-
function
|
|
3726
|
+
function Or(e, t, n, o, r, i) {
|
|
3727
3727
|
return d(), h("div", {
|
|
3728
3728
|
ref: "elementRef",
|
|
3729
|
-
class:
|
|
3729
|
+
class: _("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3730
3730
|
innerHTML: e.code
|
|
3731
3731
|
}, null, 10, Dr);
|
|
3732
3732
|
}
|
|
3733
|
-
const
|
|
3733
|
+
const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
|
|
3734
3734
|
name: "Embed",
|
|
3735
3735
|
static: !0,
|
|
3736
3736
|
inputs: [{
|
|
@@ -3788,14 +3788,14 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
|
|
|
3788
3788
|
}
|
|
3789
3789
|
}
|
|
3790
3790
|
}), Mr = ["innerHTML"];
|
|
3791
|
-
function
|
|
3791
|
+
function Kr(e, t, n, o, r, i) {
|
|
3792
3792
|
return d(), h("div", {
|
|
3793
3793
|
class: "builder-embed",
|
|
3794
3794
|
ref: "elem",
|
|
3795
3795
|
innerHTML: e.content
|
|
3796
3796
|
}, null, 8, Mr);
|
|
3797
3797
|
}
|
|
3798
|
-
const
|
|
3798
|
+
const jr = /* @__PURE__ */ v(Hr, [["render", Kr]]), qr = {
|
|
3799
3799
|
name: "Form:Form",
|
|
3800
3800
|
// editableTags: ['builder-form-error']
|
|
3801
3801
|
defaults: {
|
|
@@ -4218,7 +4218,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4218
4218
|
};
|
|
4219
4219
|
function Xr(e, t, n, o, r, i) {
|
|
4220
4220
|
const s = k("Blocks");
|
|
4221
|
-
return d(), h("form",
|
|
4221
|
+
return d(), h("form", I({
|
|
4222
4222
|
validate: e.validate,
|
|
4223
4223
|
ref: "formRef",
|
|
4224
4224
|
action: !e.sendWithJs && e.action,
|
|
@@ -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
|
|
4251
|
+
const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c"]]), _r = {
|
|
4252
4252
|
name: "Form:Input",
|
|
4253
4253
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4254
4254
|
inputs: [
|
|
@@ -4315,7 +4315,7 @@ const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c
|
|
|
4315
4315
|
}
|
|
4316
4316
|
}), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4317
4317
|
function ni(e, t, n, o, r, i) {
|
|
4318
|
-
return d(), h("input",
|
|
4318
|
+
return d(), h("input", I({
|
|
4319
4319
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4320
4320
|
placeholder: e.placeholder,
|
|
4321
4321
|
type: e.type,
|
|
@@ -4375,14 +4375,14 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4375
4375
|
}
|
|
4376
4376
|
}), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
|
|
4377
4377
|
function li(e, t, n, o, r, i) {
|
|
4378
|
-
return d(), h("select",
|
|
4378
|
+
return d(), h("select", I({
|
|
4379
4379
|
value: e.value,
|
|
4380
4380
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4381
4381
|
defaultValue: e.defaultValue,
|
|
4382
4382
|
name: e.name,
|
|
4383
4383
|
required: e.required
|
|
4384
4384
|
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4385
|
-
(d(!0), h(
|
|
4385
|
+
(d(!0), h(R, null, F(e.options, (s, l) => (d(), h("option", {
|
|
4386
4386
|
key: `${s.name}-${l}`,
|
|
4387
4387
|
value: s.value
|
|
4388
4388
|
}, de(s.name || s.value), 9, ai))), 128))
|
|
@@ -4421,7 +4421,7 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
|
4421
4421
|
}
|
|
4422
4422
|
});
|
|
4423
4423
|
function pi(e, t, n, o, r, i) {
|
|
4424
|
-
return d(), h("button",
|
|
4424
|
+
return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
|
|
4425
4425
|
}
|
|
4426
4426
|
const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
4427
4427
|
name: "Form:TextArea",
|
|
@@ -4474,7 +4474,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
|
4474
4474
|
}
|
|
4475
4475
|
}), bi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4476
4476
|
function gi(e, t, n, o, r, i) {
|
|
4477
|
-
return d(), h("textarea",
|
|
4477
|
+
return d(), h("textarea", I({
|
|
4478
4478
|
placeholder: e.placeholder,
|
|
4479
4479
|
name: e.name,
|
|
4480
4480
|
value: e.value,
|
|
@@ -4551,7 +4551,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4551
4551
|
const e = {
|
|
4552
4552
|
...W(this.attributes, "v-on:", !1),
|
|
4553
4553
|
...W(this.attributes, "v-on:", !0),
|
|
4554
|
-
[
|
|
4554
|
+
[K()]: `builder-raw-img ${this.attributes[K()] || ""}`
|
|
4555
4555
|
};
|
|
4556
4556
|
return delete e.style, e;
|
|
4557
4557
|
}
|
|
@@ -4559,7 +4559,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4559
4559
|
}), ki = ["alt", "title", "src"];
|
|
4560
4560
|
function Ci(e, t, n, o, r, i) {
|
|
4561
4561
|
var s;
|
|
4562
|
-
return d(), h("img",
|
|
4562
|
+
return d(), h("img", I({
|
|
4563
4563
|
loading: "lazy",
|
|
4564
4564
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4565
4565
|
alt: e.altText,
|
|
@@ -4756,7 +4756,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4756
4756
|
function Pi(e, t, n, o, r, i) {
|
|
4757
4757
|
var s, l, a, u, p, f, c;
|
|
4758
4758
|
return d(), h("div", $i, [
|
|
4759
|
-
z("video",
|
|
4759
|
+
z("video", I({
|
|
4760
4760
|
class: "builder-video",
|
|
4761
4761
|
ref: "videoRef",
|
|
4762
4762
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4775,7 +4775,7 @@ function Pi(e, t, n, o, r, i) {
|
|
|
4775
4775
|
},
|
|
4776
4776
|
poster: e.posterImage
|
|
4777
4777
|
}, e.spreadProps), [
|
|
4778
|
-
z("source",
|
|
4778
|
+
z("source", I(
|
|
4779
4779
|
{ type: "video/mp4" },
|
|
4780
4780
|
e.lazyLoad ? {
|
|
4781
4781
|
"data-src": e.video
|
|
@@ -4802,17 +4802,17 @@ function Pi(e, t, n, o, r, i) {
|
|
|
4802
4802
|
]);
|
|
4803
4803
|
}
|
|
4804
4804
|
const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
4805
|
-
component:
|
|
4805
|
+
component: xr,
|
|
4806
4806
|
...Nr
|
|
4807
4807
|
}, {
|
|
4808
|
-
component:
|
|
4808
|
+
component: jr,
|
|
4809
4809
|
...Ur
|
|
4810
4810
|
}, {
|
|
4811
|
-
component:
|
|
4811
|
+
component: Zr,
|
|
4812
4812
|
...qr
|
|
4813
4813
|
}, {
|
|
4814
4814
|
component: oi,
|
|
4815
|
-
...
|
|
4815
|
+
..._r
|
|
4816
4816
|
}, {
|
|
4817
4817
|
component: mi,
|
|
4818
4818
|
...di
|
|
@@ -4828,7 +4828,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4828
4828
|
}, {
|
|
4829
4829
|
component: Bi,
|
|
4830
4830
|
...wi
|
|
4831
|
-
}],
|
|
4831
|
+
}], Ke = () => [{
|
|
4832
4832
|
component: Ft,
|
|
4833
4833
|
...ar
|
|
4834
4834
|
}, {
|
|
@@ -4841,18 +4841,18 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4841
4841
|
component: Ho,
|
|
4842
4842
|
...ur
|
|
4843
4843
|
}, {
|
|
4844
|
-
component:
|
|
4844
|
+
component: jo,
|
|
4845
4845
|
...br
|
|
4846
4846
|
}, {
|
|
4847
4847
|
component: Sr,
|
|
4848
4848
|
...gr
|
|
4849
4849
|
}, {
|
|
4850
|
-
component:
|
|
4850
|
+
component: gs,
|
|
4851
4851
|
...kr
|
|
4852
4852
|
}, {
|
|
4853
4853
|
component: Vr,
|
|
4854
4854
|
...Er
|
|
4855
|
-
}, ...$t.includes(
|
|
4855
|
+
}, ...$t.includes($) ? [{
|
|
4856
4856
|
component: fr,
|
|
4857
4857
|
...pr
|
|
4858
4858
|
}] : [], {
|
|
@@ -4961,22 +4961,52 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4961
4961
|
})), Di = ({
|
|
4962
4962
|
canTrack: e,
|
|
4963
4963
|
content: t
|
|
4964
|
-
}) => !(!(ie(t).length > 0) || !e),
|
|
4964
|
+
}) => !(!(ie(t).length > 0) || !e), Oi = (e) => e === "react" || e === "reactNative", xi = $ === "angular", Bt = Oi($), Ui = (e, t) => `
|
|
4965
|
+
(function() {
|
|
4966
|
+
var selector = 'script[data-id="${e}"]';
|
|
4967
|
+
var scriptKey = '__builderioScriptInitialized_${e}';
|
|
4968
|
+
var observerKey = '__builderioScriptObserver_${e}';
|
|
4969
|
+
|
|
4970
|
+
// Synchronously remove any duplicates already in the DOM
|
|
4971
|
+
var existing = document.querySelectorAll(selector);
|
|
4972
|
+
existing.forEach(function(script, index) {
|
|
4973
|
+
if (index > 0) {
|
|
4974
|
+
script.parentNode && script.parentNode.removeChild(script);
|
|
4975
|
+
}
|
|
4976
|
+
});
|
|
4977
|
+
|
|
4978
|
+
// Watch for duplicates added later (e.g. RSC streaming chunks)
|
|
4979
|
+
if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
|
|
4980
|
+
window[observerKey] = new MutationObserver(function() {
|
|
4981
|
+
var all = document.querySelectorAll(selector);
|
|
4982
|
+
for (var i = 1; i < all.length; i++) {
|
|
4983
|
+
all[i].parentNode && all[i].parentNode.removeChild(all[i]);
|
|
4984
|
+
}
|
|
4985
|
+
});
|
|
4986
|
+
window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4989
|
+
if (!window[scriptKey]) {
|
|
4990
|
+
window[scriptKey] = true;
|
|
4991
|
+
${t}
|
|
4992
|
+
}
|
|
4993
|
+
})();
|
|
4994
|
+
`, Li = () => `
|
|
4965
4995
|
window.${At} = ${Ni}
|
|
4966
4996
|
window.${Pt} = ${Wi}
|
|
4967
|
-
`,
|
|
4997
|
+
`, Fi = (e, t) => `
|
|
4968
4998
|
window.${At}(
|
|
4969
|
-
"${t}",${JSON.stringify(e)}, ${Bt}, ${
|
|
4970
|
-
)`,
|
|
4999
|
+
"${t}",${JSON.stringify(e)}, ${Bt}, ${xi}
|
|
5000
|
+
)`, Hi = ({
|
|
4971
5001
|
contentId: e,
|
|
4972
5002
|
variationId: t
|
|
4973
5003
|
}) => `window.${Pt}(
|
|
4974
5004
|
"${t}", "${e}", ${Bt}
|
|
4975
5005
|
)`;
|
|
4976
|
-
function
|
|
5006
|
+
function je(e) {
|
|
4977
5007
|
return Math.round(e * 1e3) / 1e3;
|
|
4978
5008
|
}
|
|
4979
|
-
const
|
|
5009
|
+
const Mi = (e, t, n = !0) => {
|
|
4980
5010
|
if (!(e instanceof HTMLElement))
|
|
4981
5011
|
return null;
|
|
4982
5012
|
let o = n ? e : e.parentElement;
|
|
@@ -4987,20 +5017,20 @@ const Hi = (e, t, n = !0) => {
|
|
|
4987
5017
|
return o;
|
|
4988
5018
|
} while (o = o.parentElement);
|
|
4989
5019
|
return null;
|
|
4990
|
-
},
|
|
5020
|
+
}, Ki = (e) => Mi(e, (t) => {
|
|
4991
5021
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4992
5022
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4993
5023
|
}), qe = ({
|
|
4994
5024
|
event: e,
|
|
4995
5025
|
target: t
|
|
4996
5026
|
}) => {
|
|
4997
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
5027
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = je(o / n.width), s = je(r / n.height);
|
|
4998
5028
|
return {
|
|
4999
5029
|
x: i,
|
|
5000
5030
|
y: s
|
|
5001
5031
|
};
|
|
5002
5032
|
}, ji = (e) => {
|
|
5003
|
-
const t = e.target, n = t &&
|
|
5033
|
+
const t = e.target, n = t && Ki(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5004
5034
|
return {
|
|
5005
5035
|
targetBuilderElement: o || void 0,
|
|
5006
5036
|
metadata: {
|
|
@@ -5015,7 +5045,7 @@ const Hi = (e, t, n = !0) => {
|
|
|
5015
5045
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5016
5046
|
}
|
|
5017
5047
|
};
|
|
5018
|
-
},
|
|
5048
|
+
}, qi = ["svelte", "qwik", "vue"], zi = () => qi.includes($) && (A() || Ie()), Gi = (e) => {
|
|
5019
5049
|
var i;
|
|
5020
5050
|
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
5051
|
let r = "";
|
|
@@ -5041,15 +5071,15 @@ font-weight: ${s};
|
|
|
5041
5071
|
`.trim());
|
|
5042
5072
|
}
|
|
5043
5073
|
return r;
|
|
5044
|
-
},
|
|
5074
|
+
}, Ji = ({
|
|
5045
5075
|
customFonts: e
|
|
5046
5076
|
}) => {
|
|
5047
5077
|
var t;
|
|
5048
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5049
|
-
},
|
|
5078
|
+
return ((t = e == null ? void 0 : e.map((n) => Gi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5079
|
+
}, Qi = ({
|
|
5050
5080
|
cssCode: e,
|
|
5051
5081
|
contentId: t
|
|
5052
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5082
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yi = `
|
|
5053
5083
|
.builder-button {
|
|
5054
5084
|
all: unset;
|
|
5055
5085
|
}
|
|
@@ -5066,7 +5096,7 @@ font-weight: ${s};
|
|
|
5066
5096
|
text-align: inherit;
|
|
5067
5097
|
font-family: inherit;
|
|
5068
5098
|
}
|
|
5069
|
-
`,
|
|
5099
|
+
`, Xi = (e) => e ? "" : Yi, Zi = (e) => `variant-${e}`, _i = y({
|
|
5070
5100
|
name: "enable-editor",
|
|
5071
5101
|
components: { DynamicDiv: te },
|
|
5072
5102
|
props: [
|
|
@@ -5097,8 +5127,8 @@ font-weight: ${s};
|
|
|
5097
5127
|
httpReqsPending: {},
|
|
5098
5128
|
clicked: !1,
|
|
5099
5129
|
builderContext: ge,
|
|
5100
|
-
needsElementRefDivForEditing:
|
|
5101
|
-
getWrapperClassName:
|
|
5130
|
+
needsElementRefDivForEditing: zi,
|
|
5131
|
+
getWrapperClassName: Zi
|
|
5102
5132
|
};
|
|
5103
5133
|
},
|
|
5104
5134
|
provide() {
|
|
@@ -5390,9 +5420,9 @@ font-weight: ${s};
|
|
|
5390
5420
|
}
|
|
5391
5421
|
}
|
|
5392
5422
|
});
|
|
5393
|
-
function
|
|
5423
|
+
function es(e, t, n, o, r, i) {
|
|
5394
5424
|
var s, l, a;
|
|
5395
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper),
|
|
5425
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), I({
|
|
5396
5426
|
key: 0,
|
|
5397
5427
|
ref: "elementRef",
|
|
5398
5428
|
onClick: (u) => e.onClick(u),
|
|
@@ -5405,32 +5435,32 @@ function Zi(e, t, n, o, r, i) {
|
|
|
5405
5435
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
5406
5436
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
5407
5437
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5408
|
-
default:
|
|
5438
|
+
default: x(() => [
|
|
5409
5439
|
N(e.$slots, "default")
|
|
5410
5440
|
]),
|
|
5411
5441
|
_: 3
|
|
5412
5442
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
|
|
5413
5443
|
}
|
|
5414
|
-
const
|
|
5444
|
+
const ts = /* @__PURE__ */ v(_i, [["render", es]]), ns = y({
|
|
5415
5445
|
name: "content-styles",
|
|
5416
5446
|
components: { InlinedStyles: pe },
|
|
5417
5447
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5418
5448
|
data() {
|
|
5419
5449
|
return {
|
|
5420
5450
|
injectedStyles: `
|
|
5421
|
-
${
|
|
5451
|
+
${Qi({
|
|
5422
5452
|
cssCode: this.cssCode,
|
|
5423
5453
|
contentId: this.contentId
|
|
5424
5454
|
})}
|
|
5425
|
-
${
|
|
5455
|
+
${Ji({
|
|
5426
5456
|
customFonts: this.customFonts
|
|
5427
5457
|
})}
|
|
5428
|
-
${
|
|
5458
|
+
${Xi(this.isNestedRender)}
|
|
5429
5459
|
`.trim()
|
|
5430
5460
|
};
|
|
5431
5461
|
}
|
|
5432
5462
|
});
|
|
5433
|
-
function
|
|
5463
|
+
function os(e, t, n, o, r, i) {
|
|
5434
5464
|
const s = k("InlinedStyles");
|
|
5435
5465
|
return d(), S(s, {
|
|
5436
5466
|
id: "builderio-content",
|
|
@@ -5438,7 +5468,7 @@ function ns(e, t, n, o, r, i) {
|
|
|
5438
5468
|
nonce: e.nonce
|
|
5439
5469
|
}, null, 8, ["styles", "nonce"]);
|
|
5440
5470
|
}
|
|
5441
|
-
const
|
|
5471
|
+
const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = ({
|
|
5442
5472
|
content: e,
|
|
5443
5473
|
data: t,
|
|
5444
5474
|
locale: n
|
|
@@ -5455,7 +5485,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5455
5485
|
locale: n
|
|
5456
5486
|
} : {}
|
|
5457
5487
|
};
|
|
5458
|
-
},
|
|
5488
|
+
}, ss = ({
|
|
5459
5489
|
content: e,
|
|
5460
5490
|
data: t
|
|
5461
5491
|
}) => e ? {
|
|
@@ -5465,12 +5495,12 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5465
5495
|
...t
|
|
5466
5496
|
},
|
|
5467
5497
|
meta: e == null ? void 0 : e.meta
|
|
5468
|
-
} : void 0,
|
|
5498
|
+
} : void 0, as = Nt, ls = y({
|
|
5469
5499
|
name: "content-component",
|
|
5470
5500
|
components: {
|
|
5471
|
-
EnableEditor:
|
|
5501
|
+
EnableEditor: ts,
|
|
5472
5502
|
InlinedScript: Be,
|
|
5473
|
-
ContentStyles:
|
|
5503
|
+
ContentStyles: rs,
|
|
5474
5504
|
Blocks: q,
|
|
5475
5505
|
DynamicDiv: te
|
|
5476
5506
|
},
|
|
@@ -5500,32 +5530,32 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5500
5530
|
data() {
|
|
5501
5531
|
var e, t;
|
|
5502
5532
|
return {
|
|
5503
|
-
scriptStr:
|
|
5533
|
+
scriptStr: Hi({
|
|
5504
5534
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5505
5535
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5506
5536
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5507
5537
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5508
5538
|
}),
|
|
5509
5539
|
registeredComponents: [
|
|
5510
|
-
...
|
|
5540
|
+
...Ke(),
|
|
5511
5541
|
...this.customComponents || []
|
|
5512
5542
|
].reduce(
|
|
5513
5543
|
(n, { component: o, ...r }) => ({
|
|
5514
5544
|
...n,
|
|
5515
5545
|
[r.name]: {
|
|
5516
|
-
component:
|
|
5546
|
+
component: as(o),
|
|
5517
5547
|
...le(r)
|
|
5518
5548
|
}
|
|
5519
5549
|
}),
|
|
5520
5550
|
{}
|
|
5521
5551
|
),
|
|
5522
5552
|
builderContextSignal: {
|
|
5523
|
-
content:
|
|
5553
|
+
content: ss({
|
|
5524
5554
|
content: this.content,
|
|
5525
5555
|
data: this.data
|
|
5526
5556
|
}),
|
|
5527
5557
|
localState: void 0,
|
|
5528
|
-
rootState:
|
|
5558
|
+
rootState: is({
|
|
5529
5559
|
content: this.content,
|
|
5530
5560
|
data: this.data,
|
|
5531
5561
|
locale: this.locale
|
|
@@ -5536,7 +5566,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5536
5566
|
apiKey: this.apiKey,
|
|
5537
5567
|
apiVersion: this.apiVersion,
|
|
5538
5568
|
componentInfos: [
|
|
5539
|
-
...
|
|
5569
|
+
...Ke(),
|
|
5540
5570
|
...this.customComponents || []
|
|
5541
5571
|
].reduce(
|
|
5542
5572
|
(n, { component: o, ...r }) => ({
|
|
@@ -5551,7 +5581,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5551
5581
|
nonce: this.nonce || "",
|
|
5552
5582
|
model: this.model
|
|
5553
5583
|
},
|
|
5554
|
-
TARGET:
|
|
5584
|
+
TARGET: $
|
|
5555
5585
|
};
|
|
5556
5586
|
},
|
|
5557
5587
|
provide() {
|
|
@@ -5601,9 +5631,9 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5601
5631
|
}
|
|
5602
5632
|
}
|
|
5603
5633
|
});
|
|
5604
|
-
function
|
|
5634
|
+
function cs(e, t, n, o, r, i) {
|
|
5605
5635
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5606
|
-
return d(), S(u,
|
|
5636
|
+
return d(), S(u, I({
|
|
5607
5637
|
apiHost: e.apiHost,
|
|
5608
5638
|
nonce: e.nonce,
|
|
5609
5639
|
content: e.content,
|
|
@@ -5621,7 +5651,7 @@ function ls(e, t, n, o, r, i) {
|
|
|
5621
5651
|
trustedHosts: e.trustedHosts,
|
|
5622
5652
|
isNestedRender: e.isNestedRender
|
|
5623
5653
|
}, {}), {
|
|
5624
|
-
default:
|
|
5654
|
+
default: x(() => {
|
|
5625
5655
|
var p, f, c, m, b, g, P;
|
|
5626
5656
|
return [
|
|
5627
5657
|
e.isSsrAbTest ? (d(), S(s, {
|
|
@@ -5649,12 +5679,12 @@ function ls(e, t, n, o, r, i) {
|
|
|
5649
5679
|
_: 1
|
|
5650
5680
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5651
5681
|
}
|
|
5652
|
-
const
|
|
5682
|
+
const ds = /* @__PURE__ */ v(ls, [["render", cs]]), us = y({
|
|
5653
5683
|
name: "content-variants",
|
|
5654
5684
|
components: {
|
|
5655
5685
|
InlinedScript: Be,
|
|
5656
5686
|
InlinedStyles: pe,
|
|
5657
|
-
ContentComponent:
|
|
5687
|
+
ContentComponent: ds
|
|
5658
5688
|
},
|
|
5659
5689
|
props: [
|
|
5660
5690
|
"canTrack",
|
|
@@ -5684,10 +5714,11 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5684
5714
|
content: this.content
|
|
5685
5715
|
}),
|
|
5686
5716
|
SDKS_SUPPORTING_PERSONALIZATION: $t,
|
|
5687
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5688
|
-
TARGET:
|
|
5689
|
-
getInitVariantsFnsScriptString:
|
|
5690
|
-
getVariants: ie
|
|
5717
|
+
getInitPersonalizationVariantsFnsScriptString: Zo,
|
|
5718
|
+
TARGET: $,
|
|
5719
|
+
getInitVariantsFnsScriptString: Li,
|
|
5720
|
+
getVariants: ie,
|
|
5721
|
+
removeDuplicateScript: Ui
|
|
5691
5722
|
};
|
|
5692
5723
|
},
|
|
5693
5724
|
mounted() {
|
|
@@ -5695,7 +5726,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5695
5726
|
computed: {
|
|
5696
5727
|
updateCookieAndStylesScriptStr() {
|
|
5697
5728
|
var e;
|
|
5698
|
-
return
|
|
5729
|
+
return Fi(
|
|
5699
5730
|
ie(this.content).map((t) => ({
|
|
5700
5731
|
id: t.testVariationId,
|
|
5701
5732
|
testRatio: t.testRatio
|
|
@@ -5718,23 +5749,28 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5718
5749
|
}
|
|
5719
5750
|
}
|
|
5720
5751
|
});
|
|
5721
|
-
function
|
|
5752
|
+
function ps(e, t, n, o, r, i) {
|
|
5722
5753
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5723
|
-
return d(), h(
|
|
5724
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(),
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5754
|
+
return d(), h(R, null, [
|
|
5755
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), S(s, {
|
|
5756
|
+
key: 0,
|
|
5757
|
+
id: "builderio-init-variants-fns",
|
|
5758
|
+
scriptStr: e.removeDuplicateScript(
|
|
5759
|
+
"builderio-init-variants-fns",
|
|
5760
|
+
e.getInitVariantsFnsScriptString()
|
|
5761
|
+
),
|
|
5762
|
+
nonce: e.nonce || ""
|
|
5763
|
+
}, null, 8, ["scriptStr", "nonce"])) : C("", !0),
|
|
5764
|
+
!e.isNestedRender && e.TARGET !== "reactNative" && e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
|
|
5765
|
+
key: 1,
|
|
5766
|
+
id: "builderio-init-personalization-variants-fns",
|
|
5767
|
+
nonce: e.nonce || "",
|
|
5768
|
+
scriptStr: e.removeDuplicateScript(
|
|
5769
|
+
"builderio-init-personalization-variants-fns",
|
|
5770
|
+
e.getInitPersonalizationVariantsFnsScriptString()
|
|
5771
|
+
)
|
|
5772
|
+
}, null, 8, ["nonce", "scriptStr"])) : C("", !0),
|
|
5773
|
+
e.shouldRenderVariants ? (d(), h(R, { key: 2 }, [
|
|
5738
5774
|
E(l, {
|
|
5739
5775
|
id: "builderio-variants",
|
|
5740
5776
|
styles: e.hideVariantsStyleString,
|
|
@@ -5745,7 +5781,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5745
5781
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5746
5782
|
nonce: e.nonce || ""
|
|
5747
5783
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5748
|
-
(d(!0), h(
|
|
5784
|
+
(d(!0), h(R, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, I({
|
|
5749
5785
|
key: u.testVariationId,
|
|
5750
5786
|
apiHost: e.apiHost,
|
|
5751
5787
|
isNestedRender: e.isNestedRender,
|
|
@@ -5770,7 +5806,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5770
5806
|
trustedHosts: e.trustedHosts
|
|
5771
5807
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5772
5808
|
], 64)) : C("", !0),
|
|
5773
|
-
E(a,
|
|
5809
|
+
E(a, I({
|
|
5774
5810
|
apiHost: e.apiHost,
|
|
5775
5811
|
nonce: e.nonce,
|
|
5776
5812
|
isNestedRender: e.isNestedRender,
|
|
@@ -5797,7 +5833,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5797
5833
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5798
5834
|
], 64);
|
|
5799
5835
|
}
|
|
5800
|
-
const
|
|
5836
|
+
const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = async ({
|
|
5801
5837
|
builderContextValue: e,
|
|
5802
5838
|
symbol: t
|
|
5803
5839
|
}) => {
|
|
@@ -5805,7 +5841,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5805
5841
|
(e != null && e.apiKey))
|
|
5806
5842
|
return Ee({
|
|
5807
5843
|
model: t.model,
|
|
5808
|
-
apiKey: e.apiKey,
|
|
5844
|
+
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5809
5845
|
apiVersion: e.apiVersion,
|
|
5810
5846
|
...(t == null ? void 0 : t.entry) && {
|
|
5811
5847
|
query: {
|
|
@@ -5815,9 +5851,9 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5815
5851
|
}).catch((n) => {
|
|
5816
5852
|
B.error("Could not fetch symbol content: ", n);
|
|
5817
5853
|
});
|
|
5818
|
-
},
|
|
5854
|
+
}, fs = y({
|
|
5819
5855
|
name: "builder-symbol",
|
|
5820
|
-
components: { ContentVariants:
|
|
5856
|
+
components: { ContentVariants: ms, DynamicDiv: te },
|
|
5821
5857
|
props: [
|
|
5822
5858
|
"symbol",
|
|
5823
5859
|
"builderComponents",
|
|
@@ -5859,7 +5895,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5859
5895
|
className() {
|
|
5860
5896
|
var e, t;
|
|
5861
5897
|
return [
|
|
5862
|
-
this.attributes[
|
|
5898
|
+
this.attributes[K()],
|
|
5863
5899
|
"builder-symbol",
|
|
5864
5900
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5865
5901
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5874,7 +5910,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5874
5910
|
methods: {
|
|
5875
5911
|
setContent() {
|
|
5876
5912
|
var e;
|
|
5877
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5913
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || hs({
|
|
5878
5914
|
symbol: this.symbol,
|
|
5879
5915
|
builderContextValue: this.builderContext
|
|
5880
5916
|
}).then((t) => {
|
|
@@ -5884,27 +5920,27 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5884
5920
|
}
|
|
5885
5921
|
}
|
|
5886
5922
|
});
|
|
5887
|
-
function
|
|
5888
|
-
var l, a, u, p, f;
|
|
5923
|
+
function bs(e, t, n, o, r, i) {
|
|
5924
|
+
var l, a, u, p, f, c, m;
|
|
5889
5925
|
const s = k("ContentVariants");
|
|
5890
|
-
return d(), h("div",
|
|
5926
|
+
return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5891
5927
|
E(s, {
|
|
5892
5928
|
nonce: e.builderContext.nonce,
|
|
5893
5929
|
isNestedRender: !0,
|
|
5894
5930
|
apiVersion: e.builderContext.apiVersion,
|
|
5895
|
-
apiKey: e.builderContext.apiKey,
|
|
5931
|
+
apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5896
5932
|
context: {
|
|
5897
5933
|
...e.builderContext.context,
|
|
5898
|
-
symbolId: (
|
|
5934
|
+
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
5899
5935
|
},
|
|
5900
5936
|
customComponents: e.customComponents,
|
|
5901
5937
|
data: {
|
|
5902
|
-
...(
|
|
5938
|
+
...(p = e.symbol) == null ? void 0 : p.data,
|
|
5903
5939
|
...e.builderContext.localState,
|
|
5904
|
-
...(
|
|
5940
|
+
...(c = (f = e.contentToUse) == null ? void 0 : f.data) == null ? void 0 : c.state
|
|
5905
5941
|
},
|
|
5906
5942
|
canTrack: e.builderContext.canTrack,
|
|
5907
|
-
model: ((
|
|
5943
|
+
model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
|
|
5908
5944
|
content: e.contentToUse,
|
|
5909
5945
|
linkComponent: e.builderLinkComponent,
|
|
5910
5946
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -5912,47 +5948,47 @@ function fs(e, t, n, o, r, i) {
|
|
|
5912
5948
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5913
5949
|
], 16);
|
|
5914
5950
|
}
|
|
5915
|
-
const
|
|
5951
|
+
const gs = /* @__PURE__ */ v(fs, [["render", bs]]);
|
|
5916
5952
|
export {
|
|
5917
|
-
|
|
5953
|
+
Is as A,
|
|
5918
5954
|
Ct as B,
|
|
5919
5955
|
Po as C,
|
|
5920
|
-
|
|
5956
|
+
Rs as D,
|
|
5921
5957
|
Qn as E,
|
|
5922
5958
|
No as F,
|
|
5923
5959
|
Yn as G,
|
|
5924
5960
|
Ee as H,
|
|
5925
5961
|
Ho as I,
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5962
|
+
Ss as J,
|
|
5963
|
+
Ps as K,
|
|
5964
|
+
jo as S,
|
|
5965
|
+
$ as T,
|
|
5930
5966
|
Bi as V,
|
|
5931
5967
|
v as _,
|
|
5932
|
-
|
|
5968
|
+
K as a,
|
|
5933
5969
|
ge as b,
|
|
5934
5970
|
pe as c,
|
|
5935
|
-
|
|
5971
|
+
j as d,
|
|
5936
5972
|
ee as e,
|
|
5937
5973
|
$o as f,
|
|
5938
|
-
|
|
5939
|
-
|
|
5974
|
+
As as g,
|
|
5975
|
+
Es as h,
|
|
5940
5976
|
A as i,
|
|
5941
|
-
|
|
5977
|
+
Bs as j,
|
|
5942
5978
|
Ae as k,
|
|
5943
5979
|
Rn as l,
|
|
5944
5980
|
Ft as m,
|
|
5945
|
-
|
|
5981
|
+
gs as n,
|
|
5946
5982
|
Vr as o,
|
|
5947
5983
|
q as p,
|
|
5948
|
-
|
|
5984
|
+
ms as q,
|
|
5949
5985
|
Ie as r,
|
|
5950
|
-
|
|
5986
|
+
$s as s,
|
|
5951
5987
|
En as t,
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5988
|
+
Cs as u,
|
|
5989
|
+
Ts as v,
|
|
5990
|
+
as as w,
|
|
5991
|
+
ws as x,
|
|
5956
5992
|
lt as y,
|
|
5957
|
-
|
|
5993
|
+
ks as z
|
|
5958
5994
|
};
|