@builder.io/sdk-vue 0.0.7 → 0.1.1
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/README.md +4 -0
- package/package.json +4 -6
- package/packages/_vue2/dist/{block-styles.4a6d4454.js → block-styles.41c88ebb.js} +3 -3
- package/packages/_vue2/dist/{block-styles.14e01ebb.cjs → block-styles.57bb90ae.cjs} +1 -1
- package/packages/{_vue3/dist/get-processed-block.00348c25.cjs → _vue2/dist/get-processed-block.7744e4bc.cjs} +1 -1
- package/packages/{_vue3/dist/get-processed-block.391579db.js → _vue2/dist/get-processed-block.e326a312.js} +1 -1
- package/packages/_vue2/dist/{index.12321644.js → index.c72e7c74.js} +213 -216
- package/packages/_vue2/dist/index.edd725b5.cjs +30 -0
- package/packages/_vue2/dist/{render-block.478d4b37.js → render-block.55447f79.js} +6 -6
- package/packages/_vue2/dist/render-block.fed38662.cjs +3 -0
- package/packages/_vue2/dist/{render-component-with-context.e823d5d7.cjs → render-component-with-context.6996f337.cjs} +1 -1
- package/packages/_vue2/dist/{render-component-with-context.4a307a33.js → render-component-with-context.e7fa8487.js} +2 -2
- package/packages/_vue2/dist/{render-component.1c886638.js → render-component.1561ae1b.js} +3 -3
- package/packages/_vue2/dist/{render-component.fe614b72.cjs → render-component.e5dac3a3.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.e5b335e1.cjs → render-inlined-styles.0be888b3.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.976a3c9e.js → render-inlined-styles.e8e46149.js} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.c2bc657c.js → render-repeated-block.e916911e.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.b11f76de.cjs → render-repeated-block.f6ac2dc0.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.a0f5973e.cjs → render-styles.29424659.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.c1e07776.js → render-styles.571858fa.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +16 -17
- package/packages/_vue2/dist/src/functions/get-content/generate-content-url.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +1 -2
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -1
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.6b0bbe3d.cjs +1 -0
- package/packages/_vue3/dist/{block-styles.9c18985e.js → block-styles.fee20f95.js} +3 -3
- package/packages/{_vue2/dist/get-processed-block.60a0851d.cjs → _vue3/dist/get-processed-block.6a1b1b3d.cjs} +1 -1
- package/packages/{_vue2/dist/get-processed-block.a1509eaa.js → _vue3/dist/get-processed-block.b14f89d8.js} +1 -1
- package/packages/_vue3/dist/{index.8f01d2e4.js → index.7a69508d.js} +205 -208
- package/packages/_vue3/dist/index.a102bdda.cjs +30 -0
- package/packages/_vue3/dist/{render-block.f390e85d.cjs → render-block.4a0e514b.cjs} +2 -2
- package/packages/_vue3/dist/{render-block.66d690e4.js → render-block.9cdf5af8.js} +6 -6
- package/packages/_vue3/dist/{render-component-with-context.3e80acf8.js → render-component-with-context.7d2eb137.js} +2 -2
- package/packages/_vue3/dist/{render-component-with-context.fb32b5d3.cjs → render-component-with-context.a37b552e.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.68197847.js → render-component.12bec717.js} +3 -3
- package/packages/_vue3/dist/{render-component.1b155226.cjs → render-component.66d935aa.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.74308f98.cjs → render-inlined-styles.540df9a2.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.fdbe3458.js → render-inlined-styles.87ca82f0.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.b17a78c3.js → render-repeated-block.0360d32e.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.c53825f5.cjs → render-repeated-block.8da78c07.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.b2290f3c.cjs → render-styles.2274749d.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.05b9373e.js → render-styles.e9da8e6c.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +13 -14
- package/packages/_vue3/dist/src/functions/get-content/generate-content-url.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +1 -2
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -1
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/index.2202f0aa.cjs +0 -29
- package/packages/_vue2/dist/render-block.51134fca.cjs +0 -3
- package/packages/_vue2/dist/src/functions/get-global-this.d.ts +0 -1
- package/packages/_vue3/dist/block-styles.3f38d23f.cjs +0 -1
- package/packages/_vue3/dist/index.4580bfec.cjs +0 -29
- package/packages/_vue3/dist/src/functions/get-global-this.d.ts +0 -1
|
@@ -3,7 +3,7 @@ function p() {
|
|
|
3
3
|
return typeof window < "u" && typeof document < "u";
|
|
4
4
|
}
|
|
5
5
|
const I = {};
|
|
6
|
-
function
|
|
6
|
+
function H(t, e) {
|
|
7
7
|
let n = I[t];
|
|
8
8
|
if (n || (n = I[t] = []), n.push(e), p()) {
|
|
9
9
|
const o = {
|
|
@@ -21,7 +21,7 @@ function D(t, e) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
const q = () => {
|
|
24
|
-
|
|
24
|
+
H("insertMenu", {
|
|
25
25
|
name: "_default",
|
|
26
26
|
default: !0,
|
|
27
27
|
items: [
|
|
@@ -96,7 +96,7 @@ const G = (t = {}) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})));
|
|
99
|
-
}, S = (t) => JSON.parse(JSON.stringify(t)),
|
|
99
|
+
}, S = (t) => JSON.parse(JSON.stringify(t)), O = {
|
|
100
100
|
small: {
|
|
101
101
|
min: 320,
|
|
102
102
|
default: 321,
|
|
@@ -112,8 +112,8 @@ const G = (t = {}) => {
|
|
|
112
112
|
default: 991,
|
|
113
113
|
max: 1200
|
|
114
114
|
}
|
|
115
|
-
},
|
|
116
|
-
const n = S(
|
|
115
|
+
}, fn = (t, e = O) => `@media (max-width: ${e[t].max}px)`, J = ({ small: t, medium: e }) => {
|
|
116
|
+
const n = S(O);
|
|
117
117
|
if (!t || !e)
|
|
118
118
|
return n;
|
|
119
119
|
const o = Math.floor(t / 2);
|
|
@@ -138,7 +138,7 @@ const G = (t = {}) => {
|
|
|
138
138
|
if (typeof o == "string")
|
|
139
139
|
return `${X(n)}: ${o};`;
|
|
140
140
|
}).filter(y), b = (t) => Y(t).join(`
|
|
141
|
-
`),
|
|
141
|
+
`), gn = ({
|
|
142
142
|
mediaQuery: t,
|
|
143
143
|
className: e,
|
|
144
144
|
styles: n
|
|
@@ -149,12 +149,12 @@ const G = (t = {}) => {
|
|
|
149
149
|
return t ? `${t} {
|
|
150
150
|
${o}
|
|
151
151
|
}` : o;
|
|
152
|
-
}, Q = () => Promise.resolve().then(() =>
|
|
152
|
+
}, Q = () => Promise.resolve().then(() => D).then((t) => t.default).catch((t) => {
|
|
153
153
|
throw console.error(
|
|
154
154
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
155
155
|
t
|
|
156
156
|
), t;
|
|
157
|
-
}), Z = () => import("./render-inlined-styles.
|
|
157
|
+
}), Z = () => import("./render-inlined-styles.e8e46149.js").then((t) => t.default).catch((t) => {
|
|
158
158
|
throw console.error(
|
|
159
159
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
160
160
|
t
|
|
@@ -427,21 +427,21 @@ var le = function() {
|
|
|
427
427
|
var o, s, r, i;
|
|
428
428
|
var e = this, n = e._self._c;
|
|
429
429
|
return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
|
|
430
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
430
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-b1turyjjkok"
|
|
431
431
|
), style: {
|
|
432
432
|
objectPosition: e.backgroundPosition || "center",
|
|
433
433
|
objectFit: e.backgroundSize || "cover",
|
|
434
434
|
...e.aspectRatioCss
|
|
435
|
-
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-
|
|
435
|
+
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-b1turyjjkok", style: {
|
|
436
436
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
437
|
-
} })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-
|
|
437
|
+
} })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-b1turyjjkok-2" }, [e._t("default")], 2)] : e._e()], 2);
|
|
438
438
|
}, ce = [], ue = /* @__PURE__ */ m(
|
|
439
439
|
ae,
|
|
440
440
|
le,
|
|
441
441
|
ce,
|
|
442
442
|
!1,
|
|
443
443
|
null,
|
|
444
|
-
"
|
|
444
|
+
"e3e7800f",
|
|
445
445
|
null,
|
|
446
446
|
null
|
|
447
447
|
);
|
|
@@ -526,52 +526,22 @@ var ye = function() {
|
|
|
526
526
|
null
|
|
527
527
|
);
|
|
528
528
|
const xe = _e.exports;
|
|
529
|
-
function
|
|
530
|
-
return
|
|
531
|
-
const r = t[s], i = [e, s].filter(Boolean).join(n);
|
|
532
|
-
return [
|
|
533
|
-
typeof r == "object",
|
|
534
|
-
r !== null,
|
|
535
|
-
!(Array.isArray(r) && r.length === 0)
|
|
536
|
-
].every(Boolean) ? { ...o, ...C(r, i, n) } : { ...o, [i]: r };
|
|
537
|
-
}, {});
|
|
529
|
+
function Ce() {
|
|
530
|
+
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
538
531
|
}
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
const e = O(t), n = {};
|
|
548
|
-
return Object.keys(e).forEach((o) => {
|
|
549
|
-
if (o.startsWith($)) {
|
|
550
|
-
const s = o.replace($, "").replace(Ce, "");
|
|
551
|
-
n[s] = e[o];
|
|
552
|
-
}
|
|
553
|
-
}), n;
|
|
554
|
-
}, we = () => {
|
|
555
|
-
if (!p())
|
|
556
|
-
return {};
|
|
557
|
-
const t = new URLSearchParams(window.location.search);
|
|
558
|
-
return Se(t);
|
|
559
|
-
}, O = (t) => t instanceof URLSearchParams ? ke(t) : t;
|
|
560
|
-
function Ie() {
|
|
561
|
-
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
562
|
-
}
|
|
563
|
-
async function B() {
|
|
564
|
-
const t = Ie().fetch;
|
|
565
|
-
if (typeof t > "u" && typeof global < "u") {
|
|
566
|
-
const e = import("node-fetch").then((n) => n.default);
|
|
567
|
-
return e.default || e;
|
|
568
|
-
}
|
|
569
|
-
return t.default || t;
|
|
532
|
+
function ke() {
|
|
533
|
+
const t = Ce().fetch;
|
|
534
|
+
if (typeof t > "u")
|
|
535
|
+
throw console.warn(
|
|
536
|
+
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
537
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`
|
|
538
|
+
), new Error("Builder SDK could not find a global `fetch` function");
|
|
539
|
+
return t;
|
|
570
540
|
}
|
|
571
|
-
const
|
|
541
|
+
const A = ke(), Se = (t) => {
|
|
572
542
|
const e = t.split(".");
|
|
573
543
|
return e.length > 2 ? e.slice(1).join(".") : t;
|
|
574
|
-
},
|
|
544
|
+
}, B = async ({
|
|
575
545
|
name: t,
|
|
576
546
|
canTrack: e
|
|
577
547
|
}) => {
|
|
@@ -581,23 +551,23 @@ const Re = (t) => {
|
|
|
581
551
|
} catch (o) {
|
|
582
552
|
console.debug("[COOKIE] GET error: ", o);
|
|
583
553
|
}
|
|
584
|
-
},
|
|
554
|
+
}, we = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).join("; "), Ie = [
|
|
585
555
|
["secure", ""],
|
|
586
556
|
["SameSite", "None"]
|
|
587
|
-
],
|
|
557
|
+
], Re = ({
|
|
588
558
|
name: t,
|
|
589
559
|
value: e,
|
|
590
560
|
expires: n
|
|
591
561
|
}) => {
|
|
592
|
-
const s = (p() ? location.protocol === "https:" : !0) ?
|
|
562
|
+
const s = (p() ? location.protocol === "https:" : !0) ? Ie : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [
|
|
593
563
|
[t, e],
|
|
594
564
|
...r,
|
|
595
565
|
["path", "/"],
|
|
596
|
-
["domain",
|
|
566
|
+
["domain", Se(window.location.hostname)],
|
|
597
567
|
...s
|
|
598
568
|
];
|
|
599
|
-
return
|
|
600
|
-
},
|
|
569
|
+
return we(i);
|
|
570
|
+
}, P = async ({
|
|
601
571
|
name: t,
|
|
602
572
|
value: e,
|
|
603
573
|
expires: n,
|
|
@@ -606,19 +576,19 @@ const Re = (t) => {
|
|
|
606
576
|
try {
|
|
607
577
|
if (!o)
|
|
608
578
|
return;
|
|
609
|
-
const s =
|
|
579
|
+
const s = Re({ name: t, value: e, expires: n });
|
|
610
580
|
document.cookie = s;
|
|
611
581
|
} catch (s) {
|
|
612
582
|
console.warn("[COOKIE] SET error: ", s);
|
|
613
583
|
}
|
|
614
|
-
},
|
|
584
|
+
}, Te = "builderio.variations", U = (t) => `${Te}.${t}`, $e = ({
|
|
615
585
|
contentId: t,
|
|
616
586
|
canTrack: e
|
|
617
|
-
}) =>
|
|
587
|
+
}) => B({ name: U(t), canTrack: e }), Ee = ({
|
|
618
588
|
contentId: t,
|
|
619
589
|
canTrack: e,
|
|
620
590
|
value: n
|
|
621
|
-
}) =>
|
|
591
|
+
}) => P({ name: U(t), value: n, canTrack: e }), Fe = (t) => y(t.id) && y(t.variations) && Object.keys(t.variations).length > 0, je = ({
|
|
622
592
|
id: t,
|
|
623
593
|
variations: e
|
|
624
594
|
}) => {
|
|
@@ -629,7 +599,7 @@ const Re = (t) => {
|
|
|
629
599
|
if (n += (s = e[r]) == null ? void 0 : s.testRatio, o < n)
|
|
630
600
|
return r;
|
|
631
601
|
return t;
|
|
632
|
-
},
|
|
602
|
+
}, $ = ({
|
|
633
603
|
item: t,
|
|
634
604
|
testGroupId: e
|
|
635
605
|
}) => {
|
|
@@ -642,42 +612,69 @@ const Re = (t) => {
|
|
|
642
612
|
testVariationId: n.id,
|
|
643
613
|
testVariationName: n.name || (n.id === t.id ? "Default" : "")
|
|
644
614
|
};
|
|
645
|
-
},
|
|
615
|
+
}, Oe = async ({
|
|
646
616
|
item: t,
|
|
647
617
|
canTrack: e
|
|
648
618
|
}) => {
|
|
649
|
-
const n = await
|
|
619
|
+
const n = await $e({
|
|
650
620
|
canTrack: e,
|
|
651
621
|
contentId: t.id
|
|
652
|
-
}), o = n ?
|
|
622
|
+
}), o = n ? $({ item: t, testGroupId: n }) : void 0;
|
|
653
623
|
if (o)
|
|
654
624
|
return o;
|
|
655
625
|
{
|
|
656
|
-
const s =
|
|
626
|
+
const s = je({
|
|
657
627
|
variations: t.variations,
|
|
658
628
|
id: t.id
|
|
659
629
|
});
|
|
660
|
-
return
|
|
630
|
+
return Ee({
|
|
661
631
|
contentId: t.id,
|
|
662
632
|
value: s,
|
|
663
633
|
canTrack: e
|
|
664
634
|
}).catch((r) => {
|
|
665
635
|
console.error("could not store A/B test variation: ", r);
|
|
666
|
-
}),
|
|
636
|
+
}), $({ item: t, testGroupId: s });
|
|
667
637
|
}
|
|
668
|
-
},
|
|
638
|
+
}, Ae = async ({
|
|
669
639
|
item: t,
|
|
670
640
|
canTrack: e
|
|
671
641
|
}) => {
|
|
672
|
-
if (!
|
|
642
|
+
if (!Fe(t))
|
|
673
643
|
return;
|
|
674
|
-
const n = await
|
|
644
|
+
const n = await Oe({ item: t, canTrack: e });
|
|
675
645
|
Object.assign(t, n);
|
|
676
646
|
};
|
|
677
|
-
|
|
678
|
-
return (
|
|
647
|
+
function C(t, e = null, n = ".") {
|
|
648
|
+
return Object.keys(t).reduce((o, s) => {
|
|
649
|
+
const r = t[s], i = [e, s].filter(Boolean).join(n);
|
|
650
|
+
return [
|
|
651
|
+
typeof r == "object",
|
|
652
|
+
r !== null,
|
|
653
|
+
!(Array.isArray(r) && r.length === 0)
|
|
654
|
+
].every(Boolean) ? { ...o, ...C(r, i, n) } : { ...o, [i]: r };
|
|
655
|
+
}, {});
|
|
679
656
|
}
|
|
680
|
-
const
|
|
657
|
+
const E = "builder.", Be = "options.", Pe = (t) => {
|
|
658
|
+
const e = {};
|
|
659
|
+
return t.forEach((n, o) => {
|
|
660
|
+
e[o] = n;
|
|
661
|
+
}), e;
|
|
662
|
+
}, Ue = (t) => {
|
|
663
|
+
if (!t)
|
|
664
|
+
return {};
|
|
665
|
+
const e = V(t), n = {};
|
|
666
|
+
return Object.keys(e).forEach((o) => {
|
|
667
|
+
if (o.startsWith(E)) {
|
|
668
|
+
const s = o.replace(E, "").replace(Be, "");
|
|
669
|
+
n[s] = e[o];
|
|
670
|
+
}
|
|
671
|
+
}), n;
|
|
672
|
+
}, Ve = () => {
|
|
673
|
+
if (!p())
|
|
674
|
+
return {};
|
|
675
|
+
const t = new URLSearchParams(window.location.search);
|
|
676
|
+
return Ue(t);
|
|
677
|
+
}, V = (t) => t instanceof URLSearchParams ? Pe(t) : t, We = (t) => {
|
|
681
678
|
const {
|
|
682
679
|
limit: e = 30,
|
|
683
680
|
userAttributes: n,
|
|
@@ -693,8 +690,8 @@ const Ve = (t) => {
|
|
|
693
690
|
const u = new URL(
|
|
694
691
|
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${i}&limit=${e}&noTraverse=${s}&includeRefs=${l}${a ? `&locale=${a}` : ""}`
|
|
695
692
|
), d = {
|
|
696
|
-
...
|
|
697
|
-
...
|
|
693
|
+
...Ve(),
|
|
694
|
+
...V(t.options || {})
|
|
698
695
|
}, h = C(d);
|
|
699
696
|
for (const c in h)
|
|
700
697
|
u.searchParams.set(c, String(h[c]));
|
|
@@ -705,23 +702,24 @@ const Ve = (t) => {
|
|
|
705
702
|
}
|
|
706
703
|
return u;
|
|
707
704
|
};
|
|
708
|
-
async function
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
705
|
+
async function W(t) {
|
|
706
|
+
return (await Ne({ ...t, limit: 1 })).results[0] || null;
|
|
707
|
+
}
|
|
708
|
+
async function Ne(t) {
|
|
709
|
+
const e = We(t), o = await (await A(e.href)).json(), s = t.canTrack !== !1;
|
|
712
710
|
if (s && Array.isArray(o.results))
|
|
713
711
|
for (const r of o.results)
|
|
714
|
-
await
|
|
712
|
+
await Ae({ item: r, canTrack: s });
|
|
715
713
|
return o;
|
|
716
714
|
}
|
|
717
|
-
const
|
|
715
|
+
const Le = () => Promise.resolve().then(() => an).then((t) => t.default).catch((t) => {
|
|
718
716
|
throw console.error(
|
|
719
717
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
720
718
|
t
|
|
721
719
|
), t;
|
|
722
|
-
}),
|
|
720
|
+
}), Me = {
|
|
723
721
|
name: "builder-symbol",
|
|
724
|
-
components: { RenderContent:
|
|
722
|
+
components: { RenderContent: Le },
|
|
725
723
|
props: ["attributes", "symbol", "dynamic"],
|
|
726
724
|
data: () => ({ fetchedContent: null }),
|
|
727
725
|
inject: {
|
|
@@ -774,7 +772,7 @@ const Ne = () => Promise.resolve().then(() => rn).then((t) => t.default).catch((
|
|
|
774
772
|
}
|
|
775
773
|
}
|
|
776
774
|
};
|
|
777
|
-
var
|
|
775
|
+
var ze = function() {
|
|
778
776
|
var o, s, r, i, l;
|
|
779
777
|
var e = this, n = e._self._c;
|
|
780
778
|
return n("div", e._b({ class: e._classStringToObject(e.className), attrs: { dataSet: {
|
|
@@ -784,38 +782,38 @@ var Me = function() {
|
|
|
784
782
|
...e.builderContext.state,
|
|
785
783
|
...(i = (r = (s = e.symbol) == null ? void 0 : s.content) == null ? void 0 : r.data) == null ? void 0 : i.state
|
|
786
784
|
}, model: (l = e.symbol) == null ? void 0 : l.model, content: e.contentToUse } })], 1);
|
|
787
|
-
},
|
|
788
|
-
Le,
|
|
785
|
+
}, Ke = [], De = /* @__PURE__ */ m(
|
|
789
786
|
Me,
|
|
790
787
|
ze,
|
|
788
|
+
Ke,
|
|
791
789
|
!1,
|
|
792
790
|
null,
|
|
793
791
|
null,
|
|
794
792
|
null,
|
|
795
793
|
null
|
|
796
794
|
);
|
|
797
|
-
const
|
|
795
|
+
const He = De.exports, qe = {
|
|
798
796
|
name: "builder-button",
|
|
799
797
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
800
798
|
};
|
|
801
|
-
var
|
|
799
|
+
var Ge = function() {
|
|
802
800
|
var e = this, n = e._self._c;
|
|
803
|
-
return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-
|
|
804
|
-
},
|
|
805
|
-
De,
|
|
801
|
+
return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-2fnk003dqad" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
|
|
802
|
+
}, Je = [], Xe = /* @__PURE__ */ m(
|
|
806
803
|
qe,
|
|
807
804
|
Ge,
|
|
805
|
+
Je,
|
|
808
806
|
!1,
|
|
809
807
|
null,
|
|
810
|
-
"
|
|
808
|
+
"b5c6b7e4",
|
|
811
809
|
null,
|
|
812
810
|
null
|
|
813
811
|
);
|
|
814
|
-
const
|
|
812
|
+
const Ye = Xe.exports, Qe = {
|
|
815
813
|
name: "builder-section-component",
|
|
816
814
|
props: ["attributes", "maxWidth"]
|
|
817
815
|
};
|
|
818
|
-
var
|
|
816
|
+
var Ze = function() {
|
|
819
817
|
var e = this, n = e._self._c;
|
|
820
818
|
return n("section", e._b({ style: {
|
|
821
819
|
width: "100%",
|
|
@@ -829,34 +827,34 @@ var Qe = function() {
|
|
|
829
827
|
marginLeft: "auto",
|
|
830
828
|
marginRight: "auto"
|
|
831
829
|
} }, "section", e.attributes, !1), [e._t("default")], 2);
|
|
832
|
-
},
|
|
833
|
-
Ye,
|
|
830
|
+
}, et = [], tt = /* @__PURE__ */ m(
|
|
834
831
|
Qe,
|
|
835
832
|
Ze,
|
|
833
|
+
et,
|
|
836
834
|
!1,
|
|
837
835
|
null,
|
|
838
836
|
null,
|
|
839
837
|
null,
|
|
840
838
|
null
|
|
841
839
|
);
|
|
842
|
-
const
|
|
840
|
+
const nt = tt.exports, ot = {
|
|
843
841
|
name: "builder-fragment-component",
|
|
844
842
|
props: []
|
|
845
843
|
};
|
|
846
|
-
var
|
|
844
|
+
var st = function() {
|
|
847
845
|
var e = this, n = e._self._c;
|
|
848
846
|
return n("span", [e._t("default")], 2);
|
|
849
|
-
},
|
|
850
|
-
nt,
|
|
847
|
+
}, rt = [], it = /* @__PURE__ */ m(
|
|
851
848
|
ot,
|
|
852
849
|
st,
|
|
850
|
+
rt,
|
|
853
851
|
!1,
|
|
854
852
|
null,
|
|
855
853
|
null,
|
|
856
854
|
null,
|
|
857
855
|
null
|
|
858
856
|
);
|
|
859
|
-
const
|
|
857
|
+
const at = it.exports, lt = {
|
|
860
858
|
name: "Core:Button",
|
|
861
859
|
builtIn: !0,
|
|
862
860
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -896,7 +894,7 @@ const it = rt.exports, at = {
|
|
|
896
894
|
}, _ = (t) => {
|
|
897
895
|
const e = t.toString().trim();
|
|
898
896
|
return `return (${!e.startsWith("function") && !e.startsWith("(") ? "function " : ""}${e}).apply(this, arguments)`;
|
|
899
|
-
},
|
|
897
|
+
}, ct = {
|
|
900
898
|
name: "Columns",
|
|
901
899
|
builtIn: !0,
|
|
902
900
|
inputs: [
|
|
@@ -1121,14 +1119,14 @@ const it = rt.exports, at = {
|
|
|
1121
1119
|
advanced: !0
|
|
1122
1120
|
}
|
|
1123
1121
|
]
|
|
1124
|
-
},
|
|
1122
|
+
}, ut = {
|
|
1125
1123
|
name: "Fragment",
|
|
1126
1124
|
static: !0,
|
|
1127
1125
|
hidden: !0,
|
|
1128
1126
|
builtIn: !0,
|
|
1129
1127
|
canHaveChildren: !0,
|
|
1130
1128
|
noWrap: !0
|
|
1131
|
-
},
|
|
1129
|
+
}, dt = {
|
|
1132
1130
|
name: "Image",
|
|
1133
1131
|
static: !0,
|
|
1134
1132
|
builtIn: !0,
|
|
@@ -1254,7 +1252,7 @@ const it = rt.exports, at = {
|
|
|
1254
1252
|
defaultValue: 0.7041
|
|
1255
1253
|
}
|
|
1256
1254
|
]
|
|
1257
|
-
},
|
|
1255
|
+
}, pt = {
|
|
1258
1256
|
name: "Core:Section",
|
|
1259
1257
|
static: !0,
|
|
1260
1258
|
builtIn: !0,
|
|
@@ -1299,7 +1297,7 @@ const it = rt.exports, at = {
|
|
|
1299
1297
|
}
|
|
1300
1298
|
}
|
|
1301
1299
|
]
|
|
1302
|
-
},
|
|
1300
|
+
}, mt = {
|
|
1303
1301
|
name: "Symbol",
|
|
1304
1302
|
noWrap: !0,
|
|
1305
1303
|
static: !0,
|
|
@@ -1338,7 +1336,7 @@ const it = rt.exports, at = {
|
|
|
1338
1336
|
type: "boolean"
|
|
1339
1337
|
}
|
|
1340
1338
|
]
|
|
1341
|
-
},
|
|
1339
|
+
}, ht = {
|
|
1342
1340
|
name: "Text",
|
|
1343
1341
|
static: !0,
|
|
1344
1342
|
builtIn: !0,
|
|
@@ -1358,7 +1356,7 @@ const it = rt.exports, at = {
|
|
|
1358
1356
|
height: "auto",
|
|
1359
1357
|
textAlign: "center"
|
|
1360
1358
|
}
|
|
1361
|
-
},
|
|
1359
|
+
}, ft = {
|
|
1362
1360
|
name: "Video",
|
|
1363
1361
|
canHaveChildren: !0,
|
|
1364
1362
|
builtIn: !0,
|
|
@@ -1460,7 +1458,7 @@ const it = rt.exports, at = {
|
|
|
1460
1458
|
advanced: !0
|
|
1461
1459
|
}
|
|
1462
1460
|
]
|
|
1463
|
-
},
|
|
1461
|
+
}, gt = {
|
|
1464
1462
|
name: "Embed",
|
|
1465
1463
|
static: !0,
|
|
1466
1464
|
builtIn: !0,
|
|
@@ -1494,11 +1492,11 @@ const it = rt.exports, at = {
|
|
|
1494
1492
|
hideFromUI: !0
|
|
1495
1493
|
}
|
|
1496
1494
|
]
|
|
1497
|
-
},
|
|
1495
|
+
}, bt = [
|
|
1498
1496
|
"text/javascript",
|
|
1499
1497
|
"application/javascript",
|
|
1500
1498
|
"application/ecmascript"
|
|
1501
|
-
],
|
|
1499
|
+
], yt = (t) => bt.includes(t.type), vt = {
|
|
1502
1500
|
name: "builder-embed",
|
|
1503
1501
|
props: ["content"],
|
|
1504
1502
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1526,7 +1524,7 @@ const it = rt.exports, at = {
|
|
|
1526
1524
|
this.scriptsInserted.push(n.src);
|
|
1527
1525
|
const o = document.createElement("script");
|
|
1528
1526
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1529
|
-
} else if (
|
|
1527
|
+
} else if (yt(n) && !this.scriptsRun.includes(n.innerText))
|
|
1530
1528
|
try {
|
|
1531
1529
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1532
1530
|
} catch (o) {
|
|
@@ -1536,27 +1534,27 @@ const it = rt.exports, at = {
|
|
|
1536
1534
|
}
|
|
1537
1535
|
}
|
|
1538
1536
|
};
|
|
1539
|
-
var
|
|
1537
|
+
var _t = function() {
|
|
1540
1538
|
var e = this, n = e._self._c;
|
|
1541
1539
|
return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
1542
|
-
},
|
|
1543
|
-
yt,
|
|
1540
|
+
}, xt = [], Ct = /* @__PURE__ */ m(
|
|
1544
1541
|
vt,
|
|
1545
1542
|
_t,
|
|
1543
|
+
xt,
|
|
1546
1544
|
!1,
|
|
1547
1545
|
null,
|
|
1548
1546
|
null,
|
|
1549
1547
|
null,
|
|
1550
1548
|
null
|
|
1551
1549
|
);
|
|
1552
|
-
const
|
|
1553
|
-
function
|
|
1550
|
+
const kt = Ct.exports;
|
|
1551
|
+
function St() {
|
|
1554
1552
|
return p() && window.self !== window.top;
|
|
1555
1553
|
}
|
|
1556
1554
|
function f() {
|
|
1557
|
-
return
|
|
1555
|
+
return St() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1558
1556
|
}
|
|
1559
|
-
const
|
|
1557
|
+
const wt = {
|
|
1560
1558
|
name: "builder-img-component",
|
|
1561
1559
|
props: [
|
|
1562
1560
|
"backgroundSize",
|
|
@@ -1568,23 +1566,23 @@ const St = {
|
|
|
1568
1566
|
],
|
|
1569
1567
|
data: () => ({ isEditing: f })
|
|
1570
1568
|
};
|
|
1571
|
-
var
|
|
1569
|
+
var It = function() {
|
|
1572
1570
|
var e = this, n = e._self._c;
|
|
1573
1571
|
return n("img", e._b({ key: e.isEditing() && e.imgSrc || "default-key", style: {
|
|
1574
1572
|
objectFit: e.backgroundSize || "cover",
|
|
1575
1573
|
objectPosition: e.backgroundPosition || "center"
|
|
1576
1574
|
}, attrs: { alt: e.altText, src: e.imgSrc || e.image } }, "img", e.attributes, !1));
|
|
1577
|
-
},
|
|
1578
|
-
St,
|
|
1575
|
+
}, Rt = [], Tt = /* @__PURE__ */ m(
|
|
1579
1576
|
wt,
|
|
1580
1577
|
It,
|
|
1578
|
+
Rt,
|
|
1581
1579
|
!1,
|
|
1582
1580
|
null,
|
|
1583
1581
|
null,
|
|
1584
1582
|
null,
|
|
1585
1583
|
null
|
|
1586
1584
|
);
|
|
1587
|
-
const
|
|
1585
|
+
const $t = Tt.exports, Et = {
|
|
1588
1586
|
name: "Raw:Img",
|
|
1589
1587
|
hideFromInsertMenu: !0,
|
|
1590
1588
|
builtIn: !0,
|
|
@@ -1600,7 +1598,7 @@ const Tt = Rt.exports, $t = {
|
|
|
1600
1598
|
],
|
|
1601
1599
|
noWrap: !0,
|
|
1602
1600
|
static: !0
|
|
1603
|
-
},
|
|
1601
|
+
}, Ft = {
|
|
1604
1602
|
name: "builder-custom-code",
|
|
1605
1603
|
props: ["replaceNodes", "code"],
|
|
1606
1604
|
data: () => ({ scriptsInserted: [], scriptsRun: [] }),
|
|
@@ -1646,22 +1644,22 @@ const Tt = Rt.exports, $t = {
|
|
|
1646
1644
|
}
|
|
1647
1645
|
}
|
|
1648
1646
|
};
|
|
1649
|
-
var
|
|
1647
|
+
var jt = function() {
|
|
1650
1648
|
var e = this, n = e._self._c;
|
|
1651
1649
|
return n("div", { ref: "elem", class: e._classStringToObject(
|
|
1652
1650
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1653
1651
|
), domProps: { innerHTML: e._s(e.code) } });
|
|
1654
|
-
},
|
|
1655
|
-
Et,
|
|
1652
|
+
}, Ot = [], At = /* @__PURE__ */ m(
|
|
1656
1653
|
Ft,
|
|
1657
1654
|
jt,
|
|
1655
|
+
Ot,
|
|
1658
1656
|
!1,
|
|
1659
1657
|
null,
|
|
1660
1658
|
null,
|
|
1661
1659
|
null,
|
|
1662
1660
|
null
|
|
1663
1661
|
);
|
|
1664
|
-
const
|
|
1662
|
+
const Bt = At.exports, Pt = {
|
|
1665
1663
|
name: "Custom Code",
|
|
1666
1664
|
static: !0,
|
|
1667
1665
|
builtIn: !0,
|
|
@@ -1688,18 +1686,18 @@ const Ot = At.exports, Bt = {
|
|
|
1688
1686
|
advanced: !0
|
|
1689
1687
|
}
|
|
1690
1688
|
]
|
|
1691
|
-
},
|
|
1692
|
-
{ component: se, ...
|
|
1693
|
-
{ component: de, ...
|
|
1694
|
-
{ component:
|
|
1695
|
-
{ component: ge, ...
|
|
1696
|
-
{ component: xe, ...
|
|
1697
|
-
{ component:
|
|
1698
|
-
{ component:
|
|
1699
|
-
{ component:
|
|
1700
|
-
{ component:
|
|
1701
|
-
{ component:
|
|
1702
|
-
{ component:
|
|
1689
|
+
}, Ut = () => [
|
|
1690
|
+
{ component: se, ...ct },
|
|
1691
|
+
{ component: de, ...dt },
|
|
1692
|
+
{ component: $t, ...Et },
|
|
1693
|
+
{ component: ge, ...ht },
|
|
1694
|
+
{ component: xe, ...ft },
|
|
1695
|
+
{ component: He, ...mt },
|
|
1696
|
+
{ component: Ye, ...lt },
|
|
1697
|
+
{ component: nt, ...pt },
|
|
1698
|
+
{ component: at, ...ut },
|
|
1699
|
+
{ component: kt, ...gt },
|
|
1700
|
+
{ component: Bt, ...Pt }
|
|
1703
1701
|
];
|
|
1704
1702
|
function F({
|
|
1705
1703
|
code: t,
|
|
@@ -1738,22 +1736,22 @@ function F({
|
|
|
1738
1736
|
);
|
|
1739
1737
|
}
|
|
1740
1738
|
}
|
|
1741
|
-
function
|
|
1739
|
+
function Vt() {
|
|
1742
1740
|
return !p() || f() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1743
1741
|
}
|
|
1744
1742
|
const N = [];
|
|
1745
|
-
function
|
|
1743
|
+
function bn(t, e) {
|
|
1746
1744
|
return N.push({ component: t, ...e }), console.warn(
|
|
1747
1745
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1748
1746
|
), t;
|
|
1749
1747
|
}
|
|
1750
|
-
const
|
|
1748
|
+
const Wt = ({
|
|
1751
1749
|
component: t,
|
|
1752
1750
|
...e
|
|
1753
1751
|
}) => ({
|
|
1754
1752
|
type: "builder.registerComponent",
|
|
1755
|
-
data:
|
|
1756
|
-
}),
|
|
1753
|
+
data: Lt(e)
|
|
1754
|
+
}), Nt = (t) => typeof t == "function" ? _(t) : S(t), Lt = ({
|
|
1757
1755
|
inputs: t,
|
|
1758
1756
|
...e
|
|
1759
1757
|
}) => ({
|
|
@@ -1762,38 +1760,38 @@ const Vt = ({
|
|
|
1762
1760
|
(n) => Object.entries(n).reduce(
|
|
1763
1761
|
(o, [s, r]) => ({
|
|
1764
1762
|
...o,
|
|
1765
|
-
[s]:
|
|
1763
|
+
[s]: Nt(r)
|
|
1766
1764
|
}),
|
|
1767
1765
|
{}
|
|
1768
1766
|
)
|
|
1769
1767
|
)
|
|
1770
1768
|
});
|
|
1771
|
-
function
|
|
1769
|
+
function Mt() {
|
|
1772
1770
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
1773
1771
|
const e = Math.random() * 16 | 0;
|
|
1774
1772
|
return (t == "x" ? e : e & 3 | 8).toString(16);
|
|
1775
1773
|
});
|
|
1776
1774
|
}
|
|
1777
1775
|
function L() {
|
|
1778
|
-
return
|
|
1776
|
+
return Mt().replace(/-/g, "");
|
|
1779
1777
|
}
|
|
1780
|
-
const M = "builderSessionId",
|
|
1778
|
+
const M = "builderSessionId", zt = async ({ canTrack: t }) => {
|
|
1781
1779
|
if (!t)
|
|
1782
1780
|
return;
|
|
1783
|
-
const e = await
|
|
1781
|
+
const e = await B({
|
|
1784
1782
|
name: M,
|
|
1785
1783
|
canTrack: t
|
|
1786
1784
|
});
|
|
1787
1785
|
if (y(e))
|
|
1788
1786
|
return e;
|
|
1789
1787
|
{
|
|
1790
|
-
const n =
|
|
1791
|
-
|
|
1788
|
+
const n = Kt();
|
|
1789
|
+
Dt({ id: n, canTrack: t });
|
|
1792
1790
|
}
|
|
1793
|
-
},
|
|
1791
|
+
}, Kt = () => L(), Dt = ({
|
|
1794
1792
|
id: t,
|
|
1795
1793
|
canTrack: e
|
|
1796
|
-
}) =>
|
|
1794
|
+
}) => P({ name: M, value: t, canTrack: e }), z = () => p() && typeof localStorage < "u" ? localStorage : void 0, Ht = ({
|
|
1797
1795
|
key: t,
|
|
1798
1796
|
canTrack: e
|
|
1799
1797
|
}) => {
|
|
@@ -1803,7 +1801,7 @@ const M = "builderSessionId", Mt = async ({ canTrack: t }) => {
|
|
|
1803
1801
|
} catch (o) {
|
|
1804
1802
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1805
1803
|
}
|
|
1806
|
-
},
|
|
1804
|
+
}, qt = ({
|
|
1807
1805
|
key: t,
|
|
1808
1806
|
canTrack: e,
|
|
1809
1807
|
value: n
|
|
@@ -1814,37 +1812,37 @@ const M = "builderSessionId", Mt = async ({ canTrack: t }) => {
|
|
|
1814
1812
|
} catch (s) {
|
|
1815
1813
|
console.debug("[LocalStorage] SET error: ", s);
|
|
1816
1814
|
}
|
|
1817
|
-
},
|
|
1815
|
+
}, K = "builderVisitorId", Gt = ({ canTrack: t }) => {
|
|
1818
1816
|
if (!t)
|
|
1819
1817
|
return;
|
|
1820
|
-
const e =
|
|
1821
|
-
key:
|
|
1818
|
+
const e = Ht({
|
|
1819
|
+
key: K,
|
|
1822
1820
|
canTrack: t
|
|
1823
1821
|
});
|
|
1824
1822
|
if (y(e))
|
|
1825
1823
|
return e;
|
|
1826
1824
|
{
|
|
1827
|
-
const n =
|
|
1828
|
-
|
|
1825
|
+
const n = Jt();
|
|
1826
|
+
Xt({ id: n, canTrack: t });
|
|
1829
1827
|
}
|
|
1830
|
-
},
|
|
1828
|
+
}, Jt = () => L(), Xt = ({
|
|
1831
1829
|
id: t,
|
|
1832
1830
|
canTrack: e
|
|
1833
|
-
}) =>
|
|
1834
|
-
key:
|
|
1831
|
+
}) => qt({
|
|
1832
|
+
key: K,
|
|
1835
1833
|
value: t,
|
|
1836
1834
|
canTrack: e
|
|
1837
|
-
}),
|
|
1835
|
+
}), Yt = async ({
|
|
1838
1836
|
canTrack: t
|
|
1839
1837
|
}) => {
|
|
1840
1838
|
if (!t)
|
|
1841
1839
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1842
|
-
const e = await
|
|
1840
|
+
const e = await zt({ canTrack: t }), n = Gt({ canTrack: t });
|
|
1843
1841
|
return {
|
|
1844
1842
|
sessionId: e,
|
|
1845
1843
|
visitorId: n
|
|
1846
1844
|
};
|
|
1847
|
-
},
|
|
1845
|
+
}, Qt = async ({
|
|
1848
1846
|
type: t,
|
|
1849
1847
|
canTrack: e,
|
|
1850
1848
|
apiKey: n,
|
|
@@ -1855,7 +1853,7 @@ const M = "builderSessionId", Mt = async ({ canTrack: t }) => {
|
|
|
1855
1853
|
data: {
|
|
1856
1854
|
...s,
|
|
1857
1855
|
metadata: JSON.stringify(o),
|
|
1858
|
-
...await
|
|
1856
|
+
...await Yt({ canTrack: e }),
|
|
1859
1857
|
ownerId: n
|
|
1860
1858
|
}
|
|
1861
1859
|
});
|
|
@@ -1870,7 +1868,7 @@ async function k(t) {
|
|
|
1870
1868
|
return fetch("https://builder.io/api/v1/track", {
|
|
1871
1869
|
method: "POST",
|
|
1872
1870
|
body: JSON.stringify({
|
|
1873
|
-
events: [await
|
|
1871
|
+
events: [await Qt(t)]
|
|
1874
1872
|
}),
|
|
1875
1873
|
headers: {
|
|
1876
1874
|
"content-type": "application/json"
|
|
@@ -1880,21 +1878,21 @@ async function k(t) {
|
|
|
1880
1878
|
console.error("Failed to track: ", e);
|
|
1881
1879
|
});
|
|
1882
1880
|
}
|
|
1883
|
-
const
|
|
1881
|
+
const yn = (t) => k({ ...t, canTrack: !0 }), Zt = () => Promise.resolve().then(() => D).then((t) => t.default).catch((t) => {
|
|
1884
1882
|
throw console.error(
|
|
1885
1883
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1886
1884
|
t
|
|
1887
1885
|
), t;
|
|
1888
|
-
}),
|
|
1886
|
+
}), en = () => import("./render-styles.571858fa.js").then((t) => t.default).catch((t) => {
|
|
1889
1887
|
throw console.error(
|
|
1890
1888
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1891
1889
|
t
|
|
1892
1890
|
), t;
|
|
1893
|
-
}),
|
|
1891
|
+
}), tn = {
|
|
1894
1892
|
name: "render-content",
|
|
1895
1893
|
components: {
|
|
1896
|
-
RenderContentStyles:
|
|
1897
|
-
RenderBlocks:
|
|
1894
|
+
RenderContentStyles: en,
|
|
1895
|
+
RenderBlocks: Zt
|
|
1898
1896
|
},
|
|
1899
1897
|
props: [
|
|
1900
1898
|
"content",
|
|
@@ -1951,7 +1949,7 @@ const bn = (t) => k({ ...t, canTrack: !0 }), Qt = () => Promise.resolve().then((
|
|
|
1951
1949
|
}), Object.values(this.allRegisteredComponents).forEach(
|
|
1952
1950
|
(n) => {
|
|
1953
1951
|
var s;
|
|
1954
|
-
const o =
|
|
1952
|
+
const o = Wt(n);
|
|
1955
1953
|
(s = window.parent) == null || s.postMessage(o, "*");
|
|
1956
1954
|
}
|
|
1957
1955
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -1967,7 +1965,7 @@ const bn = (t) => k({ ...t, canTrack: !0 }), Qt = () => Promise.resolve().then((
|
|
|
1967
1965
|
variationId: n !== o ? n : void 0
|
|
1968
1966
|
});
|
|
1969
1967
|
}
|
|
1970
|
-
if (
|
|
1968
|
+
if (Vt()) {
|
|
1971
1969
|
const n = new URL(location.href).searchParams;
|
|
1972
1970
|
if (this.model && n.get("builder.preview") === this.model) {
|
|
1973
1971
|
const o = n.get("apiKey") || n.get("builder.space");
|
|
@@ -2036,7 +2034,7 @@ const bn = (t) => k({ ...t, canTrack: !0 }), Qt = () => Promise.resolve().then((
|
|
|
2036
2034
|
},
|
|
2037
2035
|
allRegisteredComponents() {
|
|
2038
2036
|
return [
|
|
2039
|
-
...
|
|
2037
|
+
...Ut(),
|
|
2040
2038
|
...N,
|
|
2041
2039
|
...this.customComponents || []
|
|
2042
2040
|
].reduce(
|
|
@@ -2128,7 +2126,7 @@ const bn = (t) => k({ ...t, canTrack: !0 }), Qt = () => Promise.resolve().then((
|
|
|
2128
2126
|
);
|
|
2129
2127
|
},
|
|
2130
2128
|
handleRequest({ url: t, key: e }) {
|
|
2131
|
-
|
|
2129
|
+
A(t).then((n) => n.json()).then((n) => {
|
|
2132
2130
|
const o = {
|
|
2133
2131
|
...this.overrideState,
|
|
2134
2132
|
[e]: n
|
|
@@ -2165,38 +2163,38 @@ const bn = (t) => k({ ...t, canTrack: !0 }), Qt = () => Promise.resolve().then((
|
|
|
2165
2163
|
}
|
|
2166
2164
|
}
|
|
2167
2165
|
};
|
|
2168
|
-
var
|
|
2166
|
+
var nn = function() {
|
|
2169
2167
|
var o, s, r, i, l, a, u;
|
|
2170
2168
|
var e = this, n = e._self._c;
|
|
2171
2169
|
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(d) {
|
|
2172
2170
|
return e.onClick(d);
|
|
2173
2171
|
} } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (l = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : l.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: (u = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : u.blocks } })], 2) : e._e();
|
|
2174
|
-
},
|
|
2175
|
-
en,
|
|
2172
|
+
}, on = [], sn = /* @__PURE__ */ m(
|
|
2176
2173
|
tn,
|
|
2177
2174
|
nn,
|
|
2175
|
+
on,
|
|
2178
2176
|
!1,
|
|
2179
2177
|
null,
|
|
2180
2178
|
null,
|
|
2181
2179
|
null,
|
|
2182
2180
|
null
|
|
2183
2181
|
);
|
|
2184
|
-
const
|
|
2182
|
+
const rn = sn.exports, an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2185
2183
|
__proto__: null,
|
|
2186
|
-
default:
|
|
2187
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2184
|
+
default: rn
|
|
2185
|
+
}, Symbol.toStringTag, { value: "Module" })), ln = () => import("./block-styles.41c88ebb.js").then((t) => t.default).catch((t) => {
|
|
2188
2186
|
throw console.error(
|
|
2189
2187
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
2190
2188
|
t
|
|
2191
2189
|
), t;
|
|
2192
|
-
}),
|
|
2190
|
+
}), cn = () => import("./render-block.55447f79.js").then((t) => t.default).catch((t) => {
|
|
2193
2191
|
throw console.error(
|
|
2194
2192
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
2195
2193
|
t
|
|
2196
2194
|
), t;
|
|
2197
|
-
}),
|
|
2195
|
+
}), un = {
|
|
2198
2196
|
name: "render-blocks",
|
|
2199
|
-
components: { RenderBlock:
|
|
2197
|
+
components: { RenderBlock: cn, BlockStyles: ln },
|
|
2200
2198
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
2201
2199
|
inject: {
|
|
2202
2200
|
builderContext: "BuilderContext"
|
|
@@ -2245,7 +2243,7 @@ const sn = on.exports, rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
|
|
|
2245
2243
|
}
|
|
2246
2244
|
}
|
|
2247
2245
|
};
|
|
2248
|
-
var
|
|
2246
|
+
var dn = function() {
|
|
2249
2247
|
var e = this, n = e._self._c;
|
|
2250
2248
|
return n("div", { class: e._classStringToObject(e.className + " div-23e8fqt91nf"), style: e.styleProp, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
|
|
2251
2249
|
class: e.className
|
|
@@ -2258,21 +2256,21 @@ var un = function() {
|
|
|
2258
2256
|
}) : e._e(), e.blocks ? e._l(e.blocks, function(o, s) {
|
|
2259
2257
|
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
2260
2258
|
}) : e._e()], 2);
|
|
2261
|
-
},
|
|
2262
|
-
cn,
|
|
2259
|
+
}, pn = [], mn = /* @__PURE__ */ m(
|
|
2263
2260
|
un,
|
|
2264
2261
|
dn,
|
|
2262
|
+
pn,
|
|
2265
2263
|
!1,
|
|
2266
2264
|
null,
|
|
2267
2265
|
"713efc9e",
|
|
2268
2266
|
null,
|
|
2269
2267
|
null
|
|
2270
2268
|
);
|
|
2271
|
-
const
|
|
2269
|
+
const hn = mn.exports, D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2272
2270
|
__proto__: null,
|
|
2273
|
-
default:
|
|
2271
|
+
default: hn
|
|
2274
2272
|
}, Symbol.toStringTag, { value: "Module" })), j = {};
|
|
2275
|
-
function
|
|
2273
|
+
function vn(t) {
|
|
2276
2274
|
if (p()) {
|
|
2277
2275
|
Object.assign(j, t);
|
|
2278
2276
|
const e = {
|
|
@@ -2283,37 +2281,36 @@ function yn(t) {
|
|
|
2283
2281
|
}
|
|
2284
2282
|
}
|
|
2285
2283
|
export {
|
|
2286
|
-
|
|
2284
|
+
Ye as B,
|
|
2287
2285
|
se as C,
|
|
2288
|
-
|
|
2286
|
+
at as F,
|
|
2289
2287
|
de as I,
|
|
2290
|
-
|
|
2288
|
+
He as S,
|
|
2291
2289
|
v as T,
|
|
2292
2290
|
xe as V,
|
|
2293
|
-
|
|
2291
|
+
fn as a,
|
|
2294
2292
|
Y as b,
|
|
2295
|
-
|
|
2293
|
+
gn as c,
|
|
2296
2294
|
ge as d,
|
|
2297
2295
|
F as e,
|
|
2298
2296
|
S as f,
|
|
2299
2297
|
J as g,
|
|
2300
|
-
|
|
2301
|
-
|
|
2298
|
+
nt as h,
|
|
2299
|
+
hn as i,
|
|
2302
2300
|
f as j,
|
|
2303
|
-
|
|
2301
|
+
Vt as k,
|
|
2304
2302
|
N as l,
|
|
2305
|
-
|
|
2303
|
+
bn as m,
|
|
2306
2304
|
m as n,
|
|
2307
|
-
|
|
2308
|
-
|
|
2305
|
+
Wt as o,
|
|
2306
|
+
H as p,
|
|
2309
2307
|
W as q,
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
O as z
|
|
2308
|
+
rn as r,
|
|
2309
|
+
vn as s,
|
|
2310
|
+
yn as t,
|
|
2311
|
+
Ne as u,
|
|
2312
|
+
Pe as v,
|
|
2313
|
+
Ue as w,
|
|
2314
|
+
Ve as x,
|
|
2315
|
+
V as y
|
|
2319
2316
|
};
|