@builder.io/sdk-vue 0.4.1 → 0.4.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/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.69ca115c.js → block-styles.6a1d7394.js} +4 -4
- package/packages/_vue2/dist/{block-styles.18ca317b.cjs → block-styles.cacb4849.cjs} +1 -1
- package/packages/{_vue3/dist/css.7fe37cb4.js → _vue2/dist/css.49cc4003.js} +2 -2
- package/packages/{_vue3/dist/css.5cacc3c3.cjs → _vue2/dist/css.c26b7ab4.cjs} +1 -1
- package/packages/_vue2/dist/{evaluate.8238dbc9.js → evaluate.6ab6e7cb.js} +1 -1
- package/packages/_vue2/dist/{evaluate.cff086ca.cjs → evaluate.7d21bb04.cjs} +1 -1
- package/packages/_vue2/dist/{index.e2db82e0.js → index.2473a355.js} +39 -37
- package/packages/_vue2/dist/{index.c16f4cca.cjs → index.95d9006f.cjs} +4 -4
- package/packages/_vue2/dist/{render-block.0f23cd7e.js → render-block.22052bd8.js} +20 -33
- package/packages/_vue2/dist/render-block.9342f7b5.cjs +3 -0
- package/packages/_vue2/dist/{render-component.74280c04.js → render-component.ec485884.js} +3 -3
- package/packages/_vue2/dist/{render-component.e8047ef5.cjs → render-component.f3cccaa9.cjs} +1 -1
- package/packages/_vue2/dist/{render-content.672eabd9.js → render-content.a6b17a6c.js} +270 -271
- package/packages/_vue2/dist/render-content.d53085e5.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.ac06208e.js → render-inlined-styles.2286ef7c.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.2c0cf85b.cjs → render-inlined-styles.b322c74a.cjs} +1 -1
- package/packages/_vue2/dist/render-repeated-block.253c96e6.cjs +1 -0
- package/packages/_vue2/dist/render-repeated-block.ac4f1559.js +38 -0
- package/packages/_vue2/dist/{render-styles.e6e62ba1.cjs → render-styles.0cb949b0.cjs} +2 -2
- package/packages/_vue2/dist/{render-styles.af4e2d5a.js → render-styles.a148b748.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +3 -1
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +27 -5
- package/packages/_vue2/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +3 -3
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.e3f09eb7.cjs → block-styles.5b949efb.cjs} +1 -1
- package/packages/_vue3/dist/{block-styles.7969d695.js → block-styles.e91165b8.js} +4 -4
- package/packages/{_vue2/dist/css.ce776b44.js → _vue3/dist/css.41ed2294.js} +2 -2
- package/packages/{_vue2/dist/css.24c082d4.cjs → _vue3/dist/css.627e21ae.cjs} +1 -1
- package/packages/_vue3/dist/{evaluate.975fa4d3.js → evaluate.0662f166.js} +1 -1
- package/packages/_vue3/dist/{evaluate.9a614eea.cjs → evaluate.da45a33b.cjs} +1 -1
- package/packages/_vue3/dist/{index.cdd37dcf.js → index.3a561c6a.js} +39 -38
- package/packages/_vue3/dist/{index.3f716812.cjs → index.3e17c057.cjs} +4 -4
- package/packages/_vue3/dist/render-block.20c07cb1.cjs +3 -0
- package/packages/_vue3/dist/render-block.e9a2cb71.js +273 -0
- package/packages/_vue3/dist/{render-component.788543b4.cjs → render-component.20ef18f7.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.9bd5c435.js → render-component.afa60a7b.js} +3 -3
- package/packages/_vue3/dist/{render-content.0423df8b.js → render-content.20bd0f8d.js} +185 -186
- package/packages/_vue3/dist/render-content.e790eee5.cjs +1 -0
- package/packages/_vue3/dist/{render-inlined-styles.49a121f8.js → render-inlined-styles.0444f4fe.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.528fb5cd.cjs → render-inlined-styles.14d9ba36.cjs} +1 -1
- package/packages/_vue3/dist/render-repeated-block.5a245883.js +32 -0
- package/packages/_vue3/dist/render-repeated-block.75230844.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.3411b577.js → render-styles.73c7ba5a.js} +2 -2
- package/packages/_vue3/dist/{render-styles.b4509dd3.cjs → render-styles.bd7475f8.cjs} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +3 -1
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +36 -14
- package/packages/_vue3/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/render-block.954cc390.cjs +0 -3
- package/packages/_vue2/dist/render-content.702f0387.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.5740965b.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.c40e7c25.js +0 -45
- package/packages/_vue3/dist/render-block.348e561a.js +0 -286
- package/packages/_vue3/dist/render-block.d1c4ccaa.cjs +0 -3
- package/packages/_vue3/dist/render-content.17e9b187.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.04301799.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.35a0d813.js +0 -39
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h } from "vue";
|
|
2
|
-
import { s as b, n as f, i as m, B as
|
|
3
|
-
import { e as
|
|
2
|
+
import { s as b, n as f, i as m, B as I, C as R, F as _, I as E, S as F, d as V, e as A, V as U, r as P, b as g, T as w, c as j, h as H, j as $, k as y, l as W, m as L, _ as v, o as M, p as q, q as B } from "./index.2473a355.js";
|
|
3
|
+
import { e as S } from "./evaluate.6ab6e7cb.js";
|
|
4
4
|
const N = {
|
|
5
5
|
name: "Core:Button",
|
|
6
6
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -224,18 +224,18 @@ const N = {
|
|
|
224
224
|
]
|
|
225
225
|
}
|
|
226
226
|
],
|
|
227
|
-
onChange: b((
|
|
228
|
-
function
|
|
227
|
+
onChange: b((t) => {
|
|
228
|
+
function e() {
|
|
229
229
|
n.forEach((a) => {
|
|
230
230
|
a.delete("width");
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
const n =
|
|
233
|
+
const n = t.get("columns");
|
|
234
234
|
Array.isArray(n) && !!n.find(
|
|
235
|
-
(
|
|
235
|
+
(i) => i.get("width")
|
|
236
236
|
) && (!!n.find(
|
|
237
|
-
(
|
|
238
|
-
) || n.reduce((l,
|
|
237
|
+
(o) => !o.get("width")
|
|
238
|
+
) || n.reduce((l, s) => l + s.get("width"), 0) !== 100) && e();
|
|
239
239
|
})
|
|
240
240
|
},
|
|
241
241
|
{
|
|
@@ -287,31 +287,31 @@ const N = {
|
|
|
287
287
|
required: !0,
|
|
288
288
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
289
289
|
onChange: b(
|
|
290
|
-
(
|
|
291
|
-
|
|
292
|
-
function n(
|
|
293
|
-
return new Promise((
|
|
290
|
+
(t) => {
|
|
291
|
+
t.delete("srcset"), t.delete("noWebp");
|
|
292
|
+
function n(r, l = 6e4) {
|
|
293
|
+
return new Promise((s, c) => {
|
|
294
294
|
const d = document.createElement("img");
|
|
295
295
|
let u = !1;
|
|
296
296
|
d.onload = () => {
|
|
297
|
-
u = !0,
|
|
297
|
+
u = !0, s(d);
|
|
298
298
|
}, d.addEventListener("error", (p) => {
|
|
299
299
|
console.warn("Image load failed", p.error), c(p.error);
|
|
300
|
-
}), d.src =
|
|
300
|
+
}), d.src = r, setTimeout(() => {
|
|
301
301
|
u || c(new Error("Image load timed out"));
|
|
302
302
|
}, l);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
function a(
|
|
306
|
-
return Math.round(
|
|
305
|
+
function a(r) {
|
|
306
|
+
return Math.round(r * 1e3) / 1e3;
|
|
307
307
|
}
|
|
308
|
-
const
|
|
309
|
-
if (fetch(
|
|
310
|
-
|
|
311
|
-
}),
|
|
312
|
-
return n(
|
|
313
|
-
const l =
|
|
314
|
-
|
|
308
|
+
const i = t.get("image"), o = t.get("aspectRatio");
|
|
309
|
+
if (fetch(i).then((r) => r.blob()).then((r) => {
|
|
310
|
+
r.type.includes("svg") && t.set("noWebp", !0);
|
|
311
|
+
}), i && (!o || o === 0.7041))
|
|
312
|
+
return n(i).then((r) => {
|
|
313
|
+
const l = t.get("aspectRatio");
|
|
314
|
+
t.get("image") === i && (!l || l === 0.7041) && r.width && r.height && (t.set("aspectRatio", a(r.height / r.width)), t.set("height", r.height), t.set("width", r.width));
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
)
|
|
@@ -607,20 +607,20 @@ const N = {
|
|
|
607
607
|
defaultValue: "",
|
|
608
608
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
609
609
|
onChange: b(
|
|
610
|
-
(
|
|
611
|
-
const
|
|
612
|
-
if (
|
|
613
|
-
return
|
|
614
|
-
`https://iframe.ly/api/iframely?url=${
|
|
610
|
+
(t) => {
|
|
611
|
+
const e = t.get("url");
|
|
612
|
+
if (e)
|
|
613
|
+
return t.set("content", "Loading..."), fetch(
|
|
614
|
+
`https://iframe.ly/api/iframely?url=${e}&api_key=ae0e60e78201a3f2b0de4b`
|
|
615
615
|
).then((a) => a.json()).then((a) => {
|
|
616
|
-
|
|
616
|
+
t.get("url") === e && (a.html ? t.set("content", a.html) : t.set("content", "Invalid url, please try another"));
|
|
617
617
|
}).catch((a) => {
|
|
618
|
-
|
|
618
|
+
t.set(
|
|
619
619
|
"content",
|
|
620
620
|
"There was an error embedding this URL, please try again or another URL"
|
|
621
621
|
);
|
|
622
622
|
});
|
|
623
|
-
|
|
623
|
+
t.delete("content");
|
|
624
624
|
}
|
|
625
625
|
)
|
|
626
626
|
},
|
|
@@ -635,7 +635,7 @@ const N = {
|
|
|
635
635
|
"text/javascript",
|
|
636
636
|
"application/javascript",
|
|
637
637
|
"application/ecmascript"
|
|
638
|
-
], Z = (
|
|
638
|
+
], Z = (t) => Q.includes(t.type), ee = h({
|
|
639
639
|
name: "builder-embed",
|
|
640
640
|
props: ["content"],
|
|
641
641
|
data() {
|
|
@@ -661,9 +661,9 @@ const N = {
|
|
|
661
661
|
findAndRunScripts() {
|
|
662
662
|
if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
|
|
663
663
|
return;
|
|
664
|
-
const
|
|
665
|
-
for (let
|
|
666
|
-
const n = e
|
|
664
|
+
const t = this.$refs.elem.getElementsByTagName("script");
|
|
665
|
+
for (let e = 0; e < t.length; e++) {
|
|
666
|
+
const n = t[e];
|
|
667
667
|
if (n.src && !this.scriptsInserted.includes(n.src)) {
|
|
668
668
|
this.scriptsInserted.push(n.src);
|
|
669
669
|
const a = document.createElement("script");
|
|
@@ -679,8 +679,8 @@ const N = {
|
|
|
679
679
|
}
|
|
680
680
|
});
|
|
681
681
|
var te = function() {
|
|
682
|
-
var
|
|
683
|
-
return
|
|
682
|
+
var e = this, n = e._self._c;
|
|
683
|
+
return e._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
684
684
|
}, ne = [], ae = /* @__PURE__ */ f(
|
|
685
685
|
ee,
|
|
686
686
|
te,
|
|
@@ -691,7 +691,7 @@ var te = function() {
|
|
|
691
691
|
null,
|
|
692
692
|
null
|
|
693
693
|
);
|
|
694
|
-
const
|
|
694
|
+
const ie = ae.exports, oe = h({
|
|
695
695
|
name: "builder-img-component",
|
|
696
696
|
props: [
|
|
697
697
|
"backgroundSize",
|
|
@@ -705,33 +705,33 @@ const oe = ae.exports, ie = h({
|
|
|
705
705
|
return { isEditing: m };
|
|
706
706
|
},
|
|
707
707
|
methods: {
|
|
708
|
-
filterAttrs: function(
|
|
708
|
+
filterAttrs: function(e = {}, n) {
|
|
709
709
|
const a = "v-on:";
|
|
710
|
-
return Object.keys(
|
|
711
|
-
if (!
|
|
710
|
+
return Object.keys(e).filter((i) => {
|
|
711
|
+
if (!e[i])
|
|
712
712
|
return !1;
|
|
713
|
-
const
|
|
714
|
-
return n ?
|
|
713
|
+
const o = i.startsWith(a);
|
|
714
|
+
return n ? o : !o;
|
|
715
715
|
}).reduce(
|
|
716
|
-
(
|
|
717
|
-
...
|
|
718
|
-
[
|
|
716
|
+
(i, o) => ({
|
|
717
|
+
...i,
|
|
718
|
+
[o.replace(a, "")]: e[o]
|
|
719
719
|
}),
|
|
720
720
|
{}
|
|
721
721
|
);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
|
-
var
|
|
726
|
-
var
|
|
727
|
-
return
|
|
728
|
-
objectFit:
|
|
729
|
-
objectPosition:
|
|
730
|
-
}, attrs: { alt:
|
|
731
|
-
},
|
|
732
|
-
|
|
733
|
-
se,
|
|
725
|
+
var re = function() {
|
|
726
|
+
var e = this, n = e._self._c;
|
|
727
|
+
return e._self._setupProxy, n("img", e._g(e._b({ key: e.isEditing() && e.imgSrc || "default-key", style: {
|
|
728
|
+
objectFit: e.backgroundSize || "cover",
|
|
729
|
+
objectPosition: e.backgroundPosition || "center"
|
|
730
|
+
}, attrs: { alt: e.altText, src: e.imgSrc || e.image } }, "img", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)));
|
|
731
|
+
}, se = [], le = /* @__PURE__ */ f(
|
|
732
|
+
oe,
|
|
734
733
|
re,
|
|
734
|
+
se,
|
|
735
735
|
!1,
|
|
736
736
|
null,
|
|
737
737
|
null,
|
|
@@ -747,7 +747,7 @@ const de = le.exports, ce = {
|
|
|
747
747
|
name: "image",
|
|
748
748
|
bubble: !0,
|
|
749
749
|
type: "file",
|
|
750
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
750
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
751
751
|
required: !0
|
|
752
752
|
}
|
|
753
753
|
],
|
|
@@ -765,9 +765,9 @@ const de = le.exports, ce = {
|
|
|
765
765
|
methods: {
|
|
766
766
|
findAndRunScripts() {
|
|
767
767
|
if (this.$refs.elem && this.$refs.elem.getElementsByTagName && typeof window < "u") {
|
|
768
|
-
const
|
|
769
|
-
for (let
|
|
770
|
-
const n = e
|
|
768
|
+
const t = this.$refs.elem.getElementsByTagName("script");
|
|
769
|
+
for (let e = 0; e < t.length; e++) {
|
|
770
|
+
const n = t[e];
|
|
771
771
|
if (n.src) {
|
|
772
772
|
if (this.scriptsInserted.includes(n.src))
|
|
773
773
|
continue;
|
|
@@ -790,22 +790,22 @@ const de = le.exports, ce = {
|
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
},
|
|
793
|
-
_classStringToObject(
|
|
794
|
-
const
|
|
795
|
-
if (typeof
|
|
796
|
-
return
|
|
797
|
-
const n =
|
|
793
|
+
_classStringToObject(t) {
|
|
794
|
+
const e = {};
|
|
795
|
+
if (typeof t != "string")
|
|
796
|
+
return e;
|
|
797
|
+
const n = t.trim().split(/\s+/);
|
|
798
798
|
for (const a of n)
|
|
799
|
-
|
|
800
|
-
return
|
|
799
|
+
e[a] = !0;
|
|
800
|
+
return e;
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
});
|
|
804
804
|
var pe = function() {
|
|
805
|
-
var
|
|
806
|
-
return
|
|
807
|
-
"builder-custom-code" + (
|
|
808
|
-
), domProps: { innerHTML:
|
|
805
|
+
var e = this, n = e._self._c;
|
|
806
|
+
return e._self._setupProxy, n("div", { ref: "elem", class: e._classStringToObject(
|
|
807
|
+
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
808
|
+
), domProps: { innerHTML: e._s(e.code) } });
|
|
809
809
|
}, me = [], he = /* @__PURE__ */ f(
|
|
810
810
|
ue,
|
|
811
811
|
pe,
|
|
@@ -843,19 +843,19 @@ const fe = he.exports, ge = {
|
|
|
843
843
|
}
|
|
844
844
|
]
|
|
845
845
|
}, be = () => [
|
|
846
|
-
{ component:
|
|
847
|
-
{ component:
|
|
846
|
+
{ component: I, ...N },
|
|
847
|
+
{ component: R, ...O },
|
|
848
848
|
{ component: fe, ...ge },
|
|
849
|
-
{ component:
|
|
850
|
-
{ component:
|
|
851
|
-
{ component:
|
|
849
|
+
{ component: ie, ...X },
|
|
850
|
+
{ component: _, ...K },
|
|
851
|
+
{ component: E, ...D },
|
|
852
852
|
{ component: de, ...ce },
|
|
853
|
-
{ component:
|
|
854
|
-
{ component:
|
|
855
|
-
{ component:
|
|
856
|
-
{ component:
|
|
857
|
-
],
|
|
858
|
-
|
|
853
|
+
{ component: F, ...z },
|
|
854
|
+
{ component: V, ...J },
|
|
855
|
+
{ component: A, ...Y },
|
|
856
|
+
{ component: U, ...G }
|
|
857
|
+
], xe = "0.4.2", ye = () => {
|
|
858
|
+
P("insertMenu", {
|
|
859
859
|
name: "_default",
|
|
860
860
|
default: !0,
|
|
861
861
|
items: [
|
|
@@ -871,14 +871,14 @@ const fe = he.exports, ge = {
|
|
|
871
871
|
});
|
|
872
872
|
};
|
|
873
873
|
let C = !1;
|
|
874
|
-
const
|
|
875
|
-
var
|
|
876
|
-
C || (C = !0, g() && ((
|
|
874
|
+
const ve = (t = {}) => {
|
|
875
|
+
var e, n;
|
|
876
|
+
C || (C = !0, g() && ((e = window.parent) == null || e.postMessage(
|
|
877
877
|
{
|
|
878
878
|
type: "builder.sdkInfo",
|
|
879
879
|
data: {
|
|
880
|
-
target:
|
|
881
|
-
version:
|
|
880
|
+
target: w,
|
|
881
|
+
version: xe,
|
|
882
882
|
supportsPatchUpdates: !1,
|
|
883
883
|
supportsAddBlockScoping: !0,
|
|
884
884
|
supportsCustomBreakpoints: !0
|
|
@@ -889,41 +889,41 @@ const xe = (e = {}) => {
|
|
|
889
889
|
{
|
|
890
890
|
type: "builder.updateContent",
|
|
891
891
|
data: {
|
|
892
|
-
options:
|
|
892
|
+
options: t
|
|
893
893
|
}
|
|
894
894
|
},
|
|
895
895
|
"*"
|
|
896
896
|
), window.addEventListener("message", ({ data: a }) => {
|
|
897
|
-
var
|
|
897
|
+
var i, o;
|
|
898
898
|
if (!!(a != null && a.type))
|
|
899
899
|
switch (a.type) {
|
|
900
900
|
case "builder.evaluate": {
|
|
901
|
-
const
|
|
901
|
+
const r = a.data.text, l = a.data.arguments || [], s = a.data.id, c = new Function(r);
|
|
902
902
|
let d, u = null;
|
|
903
903
|
try {
|
|
904
904
|
d = c.apply(null, l);
|
|
905
905
|
} catch (p) {
|
|
906
906
|
u = p;
|
|
907
907
|
}
|
|
908
|
-
u ? (
|
|
908
|
+
u ? (i = window.parent) == null || i.postMessage(
|
|
909
909
|
{
|
|
910
910
|
type: "builder.evaluateError",
|
|
911
|
-
data: { id:
|
|
911
|
+
data: { id: s, error: u.message }
|
|
912
912
|
},
|
|
913
913
|
"*"
|
|
914
914
|
) : d && typeof d.then == "function" ? d.then((p) => {
|
|
915
|
-
var
|
|
916
|
-
(
|
|
915
|
+
var x;
|
|
916
|
+
(x = window.parent) == null || x.postMessage(
|
|
917
917
|
{
|
|
918
918
|
type: "builder.evaluateResult",
|
|
919
|
-
data: { id:
|
|
919
|
+
data: { id: s, result: p }
|
|
920
920
|
},
|
|
921
921
|
"*"
|
|
922
922
|
);
|
|
923
|
-
}).catch(console.error) : (
|
|
923
|
+
}).catch(console.error) : (o = window.parent) == null || o.postMessage(
|
|
924
924
|
{
|
|
925
925
|
type: "builder.evaluateResult",
|
|
926
|
-
data: { result: d, id:
|
|
926
|
+
data: { result: d, id: s }
|
|
927
927
|
},
|
|
928
928
|
"*"
|
|
929
929
|
);
|
|
@@ -932,163 +932,162 @@ const xe = (e = {}) => {
|
|
|
932
932
|
}
|
|
933
933
|
})));
|
|
934
934
|
};
|
|
935
|
-
function
|
|
936
|
-
return Math.round(
|
|
935
|
+
function k(t) {
|
|
936
|
+
return Math.round(t * 1e3) / 1e3;
|
|
937
937
|
}
|
|
938
|
-
const
|
|
939
|
-
if (!(
|
|
938
|
+
const Se = (t, e, n = !0) => {
|
|
939
|
+
if (!(t instanceof HTMLElement))
|
|
940
940
|
return null;
|
|
941
|
-
let a = n ?
|
|
941
|
+
let a = n ? t : t.parentElement;
|
|
942
942
|
do {
|
|
943
943
|
if (!a)
|
|
944
944
|
return null;
|
|
945
|
-
if (
|
|
945
|
+
if (e(a))
|
|
946
946
|
return a;
|
|
947
947
|
} while (a = a.parentElement);
|
|
948
948
|
return null;
|
|
949
|
-
},
|
|
950
|
-
const n =
|
|
949
|
+
}, Ce = (t) => Se(t, (e) => {
|
|
950
|
+
const n = e.getAttribute("builder-id") || e.id;
|
|
951
951
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
952
|
-
}),
|
|
953
|
-
event:
|
|
954
|
-
target:
|
|
952
|
+
}), T = ({
|
|
953
|
+
event: t,
|
|
954
|
+
target: e
|
|
955
955
|
}) => {
|
|
956
|
-
const n =
|
|
956
|
+
const n = e.getBoundingClientRect(), a = t.clientX - n.left, i = t.clientY - n.top, o = k(a / n.width), r = k(i / n.height);
|
|
957
957
|
return {
|
|
958
|
-
x:
|
|
959
|
-
y:
|
|
958
|
+
x: o,
|
|
959
|
+
y: r
|
|
960
960
|
};
|
|
961
|
-
}, ke = (
|
|
962
|
-
const
|
|
961
|
+
}, ke = (t) => {
|
|
962
|
+
const e = t.target, n = e && Ce(e), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
963
963
|
return {
|
|
964
964
|
targetBuilderElement: a || void 0,
|
|
965
965
|
metadata: {
|
|
966
|
-
targetOffset:
|
|
967
|
-
builderTargetOffset: n ?
|
|
966
|
+
targetOffset: e ? T({ event: t, target: e }) : void 0,
|
|
967
|
+
builderTargetOffset: n ? T({ event: t, target: n }) : void 0,
|
|
968
968
|
builderElementIndex: n && a ? [].slice.call(document.getElementsByClassName(a)).indexOf(n) : void 0
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
971
|
}, Te = ({
|
|
972
|
-
content:
|
|
973
|
-
data:
|
|
972
|
+
content: t,
|
|
973
|
+
data: e,
|
|
974
974
|
locale: n
|
|
975
975
|
}) => {
|
|
976
|
-
var
|
|
976
|
+
var o, r, l;
|
|
977
977
|
const a = {};
|
|
978
|
-
(
|
|
978
|
+
(r = (o = t == null ? void 0 : t.data) == null ? void 0 : o.inputs) == null || r.forEach((s) => {
|
|
979
979
|
var c;
|
|
980
|
-
|
|
980
|
+
s.name && s.defaultValue !== void 0 && ((c = t == null ? void 0 : t.data) == null ? void 0 : c.state) && t.data.state[s.name] === void 0 && (a[s.name] = s.defaultValue);
|
|
981
981
|
});
|
|
982
|
-
const
|
|
983
|
-
...(l =
|
|
984
|
-
...
|
|
982
|
+
const i = {
|
|
983
|
+
...(l = t == null ? void 0 : t.data) == null ? void 0 : l.state,
|
|
984
|
+
...e,
|
|
985
985
|
...n ? { locale: n } : {}
|
|
986
986
|
};
|
|
987
|
-
return { ...a, ...
|
|
988
|
-
},
|
|
989
|
-
content:
|
|
990
|
-
data:
|
|
991
|
-
}) =>
|
|
992
|
-
...
|
|
987
|
+
return { ...a, ...i };
|
|
988
|
+
}, we = ({
|
|
989
|
+
content: t,
|
|
990
|
+
data: e
|
|
991
|
+
}) => t ? {
|
|
992
|
+
...t,
|
|
993
993
|
data: {
|
|
994
|
-
...
|
|
995
|
-
...
|
|
994
|
+
...t == null ? void 0 : t.data,
|
|
995
|
+
...e
|
|
996
996
|
},
|
|
997
|
-
meta:
|
|
998
|
-
} : void 0, Ie = () => import("./index.
|
|
997
|
+
meta: t == null ? void 0 : t.meta
|
|
998
|
+
} : void 0, Ie = () => import("./index.2473a355.js").then((t) => t.A).then((t) => t.default).catch((t) => {
|
|
999
999
|
throw console.error(
|
|
1000
1000
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1001
|
-
|
|
1002
|
-
),
|
|
1003
|
-
}),
|
|
1001
|
+
t
|
|
1002
|
+
), t;
|
|
1003
|
+
}), Re = () => import("./render-styles.a148b748.js").then((t) => t.default).catch((t) => {
|
|
1004
1004
|
throw console.error(
|
|
1005
1005
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1006
|
-
|
|
1007
|
-
),
|
|
1006
|
+
t
|
|
1007
|
+
), t;
|
|
1008
1008
|
}), _e = h({
|
|
1009
1009
|
name: "render-content",
|
|
1010
1010
|
components: {
|
|
1011
|
-
RenderContentStyles:
|
|
1011
|
+
RenderContentStyles: Re,
|
|
1012
1012
|
RenderBlocks: Ie
|
|
1013
1013
|
},
|
|
1014
1014
|
props: [
|
|
1015
|
-
"content",
|
|
1016
|
-
"data",
|
|
1017
1015
|
"canTrack",
|
|
1018
|
-
"locale",
|
|
1019
|
-
"customComponents",
|
|
1020
1016
|
"model",
|
|
1021
1017
|
"context",
|
|
1022
1018
|
"apiKey",
|
|
1019
|
+
"content",
|
|
1023
1020
|
"parentContentId",
|
|
1021
|
+
"data",
|
|
1022
|
+
"locale",
|
|
1023
|
+
"apiVersion",
|
|
1024
|
+
"customComponents",
|
|
1024
1025
|
"hideContent",
|
|
1025
1026
|
"classNameProp",
|
|
1026
1027
|
"isSsrAbTest",
|
|
1027
1028
|
"includeRefs",
|
|
1028
|
-
"enrich"
|
|
1029
|
-
"apiVersion"
|
|
1029
|
+
"enrich"
|
|
1030
1030
|
],
|
|
1031
1031
|
data() {
|
|
1032
|
-
var
|
|
1032
|
+
var t;
|
|
1033
1033
|
return {
|
|
1034
1034
|
forceReRenderCount: 0,
|
|
1035
1035
|
overrideContent: null,
|
|
1036
|
-
useContent: Re({
|
|
1037
|
-
content: this.content,
|
|
1038
|
-
data: this.data
|
|
1039
|
-
}),
|
|
1040
1036
|
update: 0,
|
|
1041
|
-
canTrackToUse:
|
|
1042
|
-
contentState: Te({
|
|
1043
|
-
content: this.content,
|
|
1044
|
-
data: this.data,
|
|
1045
|
-
locale: this.locale
|
|
1046
|
-
}),
|
|
1047
|
-
allRegisteredComponents: [
|
|
1048
|
-
...be(),
|
|
1049
|
-
...j,
|
|
1050
|
-
...this.customComponents || []
|
|
1051
|
-
].reduce(
|
|
1052
|
-
(t, { component: n, ...a }) => ({
|
|
1053
|
-
...t,
|
|
1054
|
-
[a.name]: {
|
|
1055
|
-
component: n,
|
|
1056
|
-
...a
|
|
1057
|
-
}
|
|
1058
|
-
}),
|
|
1059
|
-
{}
|
|
1060
|
-
),
|
|
1037
|
+
canTrackToUse: j(this.canTrack) ? this.canTrack : !0,
|
|
1061
1038
|
httpReqsData: {},
|
|
1062
1039
|
clicked: !1,
|
|
1063
1040
|
scriptStr: H({
|
|
1064
|
-
contentId: (
|
|
1041
|
+
contentId: (t = this.content) == null ? void 0 : t.id,
|
|
1065
1042
|
parentContentId: this.parentContentId
|
|
1066
1043
|
}),
|
|
1067
|
-
|
|
1044
|
+
builderContextSignal: {
|
|
1045
|
+
content: we({
|
|
1046
|
+
content: this.content,
|
|
1047
|
+
data: this.data
|
|
1048
|
+
}),
|
|
1049
|
+
localState: void 0,
|
|
1050
|
+
rootState: Te({
|
|
1051
|
+
content: this.content,
|
|
1052
|
+
data: this.data,
|
|
1053
|
+
locale: this.locale
|
|
1054
|
+
}),
|
|
1055
|
+
rootSetState: this.contentSetState,
|
|
1056
|
+
context: this.context || {},
|
|
1057
|
+
apiKey: this.apiKey,
|
|
1058
|
+
apiVersion: this.apiVersion,
|
|
1059
|
+
registeredComponents: [
|
|
1060
|
+
...be(),
|
|
1061
|
+
...$,
|
|
1062
|
+
...this.customComponents || []
|
|
1063
|
+
].reduce(
|
|
1064
|
+
(e, { component: n, ...a }) => ({
|
|
1065
|
+
...e,
|
|
1066
|
+
[a.name]: {
|
|
1067
|
+
component: n,
|
|
1068
|
+
...a
|
|
1069
|
+
}
|
|
1070
|
+
}),
|
|
1071
|
+
{}
|
|
1072
|
+
),
|
|
1073
|
+
inheritedStyles: {}
|
|
1074
|
+
},
|
|
1075
|
+
builderContext: y,
|
|
1076
|
+
TARGET: w
|
|
1068
1077
|
};
|
|
1069
1078
|
},
|
|
1070
1079
|
provide() {
|
|
1071
|
-
const
|
|
1080
|
+
const t = this;
|
|
1072
1081
|
return {
|
|
1073
|
-
[
|
|
1074
|
-
content: e.useContent,
|
|
1075
|
-
localState: void 0,
|
|
1076
|
-
rootState: e.contentState,
|
|
1077
|
-
rootSetState: e.contentSetState,
|
|
1078
|
-
context: e.context || {},
|
|
1079
|
-
apiKey: e.apiKey,
|
|
1080
|
-
apiVersion: e.apiVersion,
|
|
1081
|
-
registeredComponents: e.allRegisteredComponents,
|
|
1082
|
-
inheritedStyles: {}
|
|
1083
|
-
}
|
|
1082
|
+
[y.key]: t.builderContextSignal
|
|
1084
1083
|
};
|
|
1085
1084
|
},
|
|
1086
1085
|
mounted() {
|
|
1087
|
-
var
|
|
1086
|
+
var t, e;
|
|
1088
1087
|
if (this.apiKey || W.error(
|
|
1089
1088
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1090
1089
|
), g()) {
|
|
1091
|
-
if (m() && (this.forceReRenderCount = this.forceReRenderCount + 1,
|
|
1090
|
+
if (m() && (this.forceReRenderCount = this.forceReRenderCount + 1, ye(), ve({
|
|
1092
1091
|
...this.locale ? {
|
|
1093
1092
|
locale: this.locale
|
|
1094
1093
|
} : {},
|
|
@@ -1099,16 +1098,16 @@ const Ce = (e, t, n = !0) => {
|
|
|
1099
1098
|
enrich: this.enrich
|
|
1100
1099
|
} : {}
|
|
1101
1100
|
}), Object.values(
|
|
1102
|
-
this.
|
|
1101
|
+
this.builderContextSignal.registeredComponents
|
|
1103
1102
|
).forEach((n) => {
|
|
1104
|
-
var
|
|
1103
|
+
var i;
|
|
1105
1104
|
const a = L(n);
|
|
1106
|
-
(
|
|
1105
|
+
(i = window.parent) == null || i.postMessage(a, "*");
|
|
1107
1106
|
}), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
1108
1107
|
"builder:component:stateChangeListenerActivated",
|
|
1109
1108
|
this.emitStateUpdate
|
|
1110
|
-
)), this.
|
|
1111
|
-
const n = (
|
|
1109
|
+
)), this.builderContextSignal.content) {
|
|
1110
|
+
const n = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, a = (e = this.builderContextSignal.content) == null ? void 0 : e.id;
|
|
1112
1111
|
v({
|
|
1113
1112
|
type: "impression",
|
|
1114
1113
|
canTrack: this.canTrackToUse,
|
|
@@ -1118,15 +1117,15 @@ const Ce = (e, t, n = !0) => {
|
|
|
1118
1117
|
});
|
|
1119
1118
|
}
|
|
1120
1119
|
if (M()) {
|
|
1121
|
-
const n = new URL(location.href).searchParams, a = n.get("builder.preview"),
|
|
1120
|
+
const n = new URL(location.href).searchParams, a = n.get("builder.preview"), i = n.get(
|
|
1122
1121
|
`builder.preview.${a}`
|
|
1123
|
-
),
|
|
1124
|
-
a === this.model &&
|
|
1122
|
+
), o = n.get("apiKey") || n.get("builder.space");
|
|
1123
|
+
a === this.model && o === this.apiKey && (!this.content || i === this.content.id) && q({
|
|
1125
1124
|
model: this.model,
|
|
1126
1125
|
apiKey: this.apiKey,
|
|
1127
1126
|
apiVersion: this.apiVersion
|
|
1128
|
-
}).then((
|
|
1129
|
-
|
|
1127
|
+
}).then((r) => {
|
|
1128
|
+
r && this.mergeNewContent(r);
|
|
1130
1129
|
});
|
|
1131
1130
|
}
|
|
1132
1131
|
this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
@@ -1171,132 +1170,132 @@ const Ce = (e, t, n = !0) => {
|
|
|
1171
1170
|
};
|
|
1172
1171
|
},
|
|
1173
1172
|
onUpdateHook1() {
|
|
1174
|
-
var
|
|
1173
|
+
var t, e;
|
|
1175
1174
|
return {
|
|
1176
|
-
0: (
|
|
1177
|
-
1: this.
|
|
1175
|
+
0: (e = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : e.jsCode,
|
|
1176
|
+
1: this.builderContextSignal.rootState
|
|
1178
1177
|
};
|
|
1179
1178
|
},
|
|
1180
1179
|
onUpdateHook2() {
|
|
1181
|
-
var
|
|
1180
|
+
var t, e;
|
|
1182
1181
|
return {
|
|
1183
|
-
0: (
|
|
1182
|
+
0: (e = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : e.httpRequests
|
|
1184
1183
|
};
|
|
1185
1184
|
},
|
|
1186
1185
|
onUpdateHook3() {
|
|
1187
1186
|
return {
|
|
1188
|
-
0: this.
|
|
1187
|
+
0: this.builderContextSignal.rootState
|
|
1189
1188
|
};
|
|
1190
1189
|
}
|
|
1191
1190
|
},
|
|
1192
1191
|
methods: {
|
|
1193
|
-
mergeNewContent(
|
|
1194
|
-
var
|
|
1195
|
-
this.
|
|
1196
|
-
...this.
|
|
1197
|
-
...
|
|
1192
|
+
mergeNewContent(t) {
|
|
1193
|
+
var e, n, a, i, o;
|
|
1194
|
+
this.builderContextSignal.content = {
|
|
1195
|
+
...this.builderContextSignal.content,
|
|
1196
|
+
...t,
|
|
1198
1197
|
data: {
|
|
1199
|
-
...(
|
|
1200
|
-
...
|
|
1198
|
+
...(e = this.builderContextSignal.content) == null ? void 0 : e.data,
|
|
1199
|
+
...t == null ? void 0 : t.data
|
|
1201
1200
|
},
|
|
1202
1201
|
meta: {
|
|
1203
|
-
...(n = this.
|
|
1204
|
-
...
|
|
1205
|
-
breakpoints: ((a =
|
|
1202
|
+
...(n = this.builderContextSignal.content) == null ? void 0 : n.meta,
|
|
1203
|
+
...t == null ? void 0 : t.meta,
|
|
1204
|
+
breakpoints: ((a = t == null ? void 0 : t.meta) == null ? void 0 : a.breakpoints) || ((o = (i = this.builderContextSignal.content) == null ? void 0 : i.meta) == null ? void 0 : o.breakpoints)
|
|
1206
1205
|
}
|
|
1207
1206
|
};
|
|
1208
1207
|
},
|
|
1209
|
-
setBreakpoints(
|
|
1210
|
-
var
|
|
1211
|
-
this.
|
|
1212
|
-
...this.
|
|
1208
|
+
setBreakpoints(t) {
|
|
1209
|
+
var e;
|
|
1210
|
+
this.builderContextSignal.content = {
|
|
1211
|
+
...this.builderContextSignal.content,
|
|
1213
1212
|
meta: {
|
|
1214
|
-
...(
|
|
1215
|
-
breakpoints:
|
|
1213
|
+
...(e = this.builderContextSignal.content) == null ? void 0 : e.meta,
|
|
1214
|
+
breakpoints: t
|
|
1216
1215
|
}
|
|
1217
1216
|
};
|
|
1218
1217
|
},
|
|
1219
|
-
contentSetState(
|
|
1220
|
-
this.
|
|
1218
|
+
contentSetState(t) {
|
|
1219
|
+
this.builderContextSignal.rootState = t;
|
|
1221
1220
|
},
|
|
1222
|
-
processMessage(
|
|
1221
|
+
processMessage(t) {
|
|
1223
1222
|
var n;
|
|
1224
|
-
const { data:
|
|
1225
|
-
if (
|
|
1226
|
-
switch (
|
|
1223
|
+
const { data: e } = t;
|
|
1224
|
+
if (e)
|
|
1225
|
+
switch (e.type) {
|
|
1227
1226
|
case "builder.configureSdk": {
|
|
1228
|
-
const a =
|
|
1229
|
-
if (!
|
|
1227
|
+
const a = e.data, { breakpoints: i, contentId: o } = a;
|
|
1228
|
+
if (!o || o !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
|
|
1230
1229
|
return;
|
|
1231
|
-
|
|
1230
|
+
i && this.setBreakpoints(i), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
1232
1231
|
break;
|
|
1233
1232
|
}
|
|
1234
1233
|
case "builder.contentUpdate": {
|
|
1235
|
-
const a =
|
|
1236
|
-
|
|
1234
|
+
const a = e.data, i = a.key || a.alias || a.entry || a.modelName, o = a.data;
|
|
1235
|
+
i === this.model && (this.mergeNewContent(o), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
1237
1236
|
break;
|
|
1238
1237
|
}
|
|
1239
1238
|
}
|
|
1240
1239
|
},
|
|
1241
1240
|
evaluateJsCode() {
|
|
1242
|
-
var
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1245
|
-
code:
|
|
1241
|
+
var e, n;
|
|
1242
|
+
const t = (n = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : n.jsCode;
|
|
1243
|
+
t && S({
|
|
1244
|
+
code: t,
|
|
1246
1245
|
context: this.context || {},
|
|
1247
1246
|
localState: void 0,
|
|
1248
|
-
rootState: this.
|
|
1247
|
+
rootState: this.builderContextSignal.rootState,
|
|
1249
1248
|
rootSetState: this.contentSetState
|
|
1250
1249
|
});
|
|
1251
1250
|
},
|
|
1252
|
-
onClick(
|
|
1253
|
-
var
|
|
1254
|
-
if (this.
|
|
1255
|
-
const a = (
|
|
1251
|
+
onClick(t) {
|
|
1252
|
+
var e, n;
|
|
1253
|
+
if (this.builderContextSignal.content) {
|
|
1254
|
+
const a = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, i = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
1256
1255
|
v({
|
|
1257
1256
|
type: "click",
|
|
1258
1257
|
canTrack: this.canTrackToUse,
|
|
1259
|
-
contentId:
|
|
1258
|
+
contentId: i,
|
|
1260
1259
|
apiKey: this.apiKey,
|
|
1261
|
-
variationId: a !==
|
|
1262
|
-
...ke(
|
|
1260
|
+
variationId: a !== i ? a : void 0,
|
|
1261
|
+
...ke(t),
|
|
1263
1262
|
unique: !this.clicked
|
|
1264
1263
|
});
|
|
1265
1264
|
}
|
|
1266
1265
|
this.clicked || (this.clicked = !0);
|
|
1267
1266
|
},
|
|
1268
|
-
evalExpression(
|
|
1269
|
-
return
|
|
1267
|
+
evalExpression(t) {
|
|
1268
|
+
return t.replace(
|
|
1270
1269
|
/{{([^}]+)}}/g,
|
|
1271
|
-
(
|
|
1270
|
+
(e, n) => S({
|
|
1272
1271
|
code: n,
|
|
1273
1272
|
context: this.context || {},
|
|
1274
1273
|
localState: void 0,
|
|
1275
|
-
rootState: this.
|
|
1274
|
+
rootState: this.builderContextSignal.rootState,
|
|
1276
1275
|
rootSetState: this.contentSetState
|
|
1277
1276
|
})
|
|
1278
1277
|
);
|
|
1279
1278
|
},
|
|
1280
|
-
handleRequest({ url:
|
|
1281
|
-
B(
|
|
1279
|
+
handleRequest({ url: t, key: e }) {
|
|
1280
|
+
B(t).then((n) => n.json()).then((n) => {
|
|
1282
1281
|
const a = {
|
|
1283
|
-
...this.
|
|
1284
|
-
[
|
|
1282
|
+
...this.builderContextSignal.rootState,
|
|
1283
|
+
[e]: n
|
|
1285
1284
|
};
|
|
1286
1285
|
this.contentSetState(a);
|
|
1287
1286
|
}).catch((n) => {
|
|
1288
|
-
console.error("error fetching dynamic data",
|
|
1287
|
+
console.error("error fetching dynamic data", t, n);
|
|
1289
1288
|
});
|
|
1290
1289
|
},
|
|
1291
1290
|
runHttpRequests() {
|
|
1292
|
-
var
|
|
1293
|
-
const
|
|
1294
|
-
Object.entries(
|
|
1295
|
-
if (
|
|
1296
|
-
const
|
|
1291
|
+
var e, n, a;
|
|
1292
|
+
const t = (a = (n = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests) != null ? a : {};
|
|
1293
|
+
Object.entries(t).forEach(([i, o]) => {
|
|
1294
|
+
if (o && (!this.httpReqsData[i] || m())) {
|
|
1295
|
+
const r = this.evalExpression(o);
|
|
1297
1296
|
this.handleRequest({
|
|
1298
|
-
url:
|
|
1299
|
-
key:
|
|
1297
|
+
url: r,
|
|
1298
|
+
key: i
|
|
1300
1299
|
});
|
|
1301
1300
|
}
|
|
1302
1301
|
});
|
|
@@ -1307,7 +1306,7 @@ const Ce = (e, t, n = !0) => {
|
|
|
1307
1306
|
"builder:component:stateChange",
|
|
1308
1307
|
{
|
|
1309
1308
|
detail: {
|
|
1310
|
-
state: this.
|
|
1309
|
+
state: this.builderContextSignal.rootState,
|
|
1311
1310
|
ref: {
|
|
1312
1311
|
name: this.model
|
|
1313
1312
|
}
|
|
@@ -1316,33 +1315,33 @@ const Ce = (e, t, n = !0) => {
|
|
|
1316
1315
|
)
|
|
1317
1316
|
);
|
|
1318
1317
|
},
|
|
1319
|
-
_classStringToObject(
|
|
1320
|
-
const
|
|
1321
|
-
if (typeof
|
|
1322
|
-
return
|
|
1323
|
-
const n =
|
|
1318
|
+
_classStringToObject(t) {
|
|
1319
|
+
const e = {};
|
|
1320
|
+
if (typeof t != "string")
|
|
1321
|
+
return e;
|
|
1322
|
+
const n = t.trim().split(/\s+/);
|
|
1324
1323
|
for (const a of n)
|
|
1325
|
-
|
|
1326
|
-
return
|
|
1324
|
+
e[a] = !0;
|
|
1325
|
+
return e;
|
|
1327
1326
|
}
|
|
1328
1327
|
}
|
|
1329
1328
|
});
|
|
1330
1329
|
var Ee = function() {
|
|
1331
|
-
var a,
|
|
1332
|
-
var
|
|
1333
|
-
return
|
|
1334
|
-
return
|
|
1330
|
+
var a, i, o, r, l, s, c, d;
|
|
1331
|
+
var e = this, n = e._self._c;
|
|
1332
|
+
return e._self._setupProxy, e.builderContextSignal.content ? n("div", e._b({ ref: "elementRef", class: e._classStringToObject(e.classNameProp), attrs: { "builder-content-id": (a = e.builderContextSignal.content) == null ? void 0 : a.id, "builder-model": e.model }, on: { click: function(u) {
|
|
1333
|
+
return e.onClick(u);
|
|
1335
1334
|
} } }, "div", {
|
|
1336
|
-
...
|
|
1335
|
+
...e.TARGET === "reactNative" ? {
|
|
1337
1336
|
dataSet: {
|
|
1338
1337
|
"builder-content-id": ""
|
|
1339
1338
|
}
|
|
1340
1339
|
} : {},
|
|
1341
|
-
...
|
|
1340
|
+
...e.hideContent ? {
|
|
1342
1341
|
hidden: !0,
|
|
1343
1342
|
"aria-hidden": !0
|
|
1344
1343
|
} : {}
|
|
1345
|
-
}, !1), [
|
|
1344
|
+
}, !1), [e.isSsrAbTest ? [n("script", { tag: "component", domProps: { innerHTML: e._s(e.scriptStr) } })] : e._e(), e.TARGET !== "reactNative" ? [n("render-content-styles", { attrs: { contentId: (i = e.builderContextSignal.content) == null ? void 0 : i.id, cssCode: (r = (o = e.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : r.cssCode, customFonts: (s = (l = e.builderContextSignal.content) == null ? void 0 : l.data) == null ? void 0 : s.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: (d = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : d.blocks } })], 2) : e._e();
|
|
1346
1345
|
}, Fe = [], Ve = /* @__PURE__ */ f(
|
|
1347
1346
|
_e,
|
|
1348
1347
|
Ee,
|