@builder.io/sdk-vue 0.4.5 → 0.5.0
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.6a14fec4.cjs +1 -0
- package/packages/_vue2/dist/block-styles.982735c2.js +77 -0
- package/packages/_vue2/dist/block-wrapper.701626ff.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.fbaeab1b.js +66 -0
- package/packages/_vue2/dist/block.a18a495f.cjs +3 -0
- package/packages/_vue2/dist/block.e9484073.js +178 -0
- package/packages/_vue2/dist/blocks-wrapper.4afaccc5.js +72 -0
- package/packages/_vue2/dist/blocks-wrapper.e0086c60.cjs +1 -0
- package/packages/_vue2/dist/builder.context.29ec27bd.js +18 -0
- package/packages/_vue2/dist/builder.context.e22f06a0.cjs +1 -0
- package/packages/_vue2/dist/component-ref.8772e5f7.cjs +1 -0
- package/packages/_vue2/dist/component-ref.ad8ecffe.js +98 -0
- package/packages/_vue2/dist/content.697b2fbd.js +905 -0
- package/packages/_vue2/dist/content.fb93079e.cjs +1 -0
- package/packages/_vue2/dist/css.1aff1efe.js +21 -0
- package/packages/_vue2/dist/css.daac46ac.cjs +6 -0
- package/packages/_vue2/dist/enable-editor.12c3716b.cjs +1 -0
- package/packages/_vue2/dist/enable-editor.8d1c24b0.js +428 -0
- package/packages/_vue2/dist/evaluate.b0496c3f.js +4970 -0
- package/packages/_vue2/dist/evaluate.d1bef2c5.cjs +31 -0
- package/packages/_vue2/dist/get-block-actions.88b6dbbf.cjs +1 -0
- package/packages/_vue2/dist/get-block-actions.a39f0f6b.js +36 -0
- package/packages/_vue2/dist/get-block-properties.316bbdf9.js +48 -0
- package/packages/_vue2/dist/get-block-properties.3ab4b67f.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.2c6787e1.js +52 -0
- package/packages/_vue2/dist/get-processed-block.deb6b33a.cjs +1 -0
- package/packages/_vue2/dist/index.051a3d7b.cjs +32 -0
- package/packages/_vue2/dist/{index.dcd9672f.js → index.8352d880.js} +484 -517
- package/packages/_vue2/dist/inlined-script.874c7b5a.cjs +1 -0
- package/packages/_vue2/dist/{inlined-script.5b4b5fc3.js → inlined-script.b4595308.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.9ddda3d7.cjs → inlined-styles.d8b2af39.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-styles.759d26e8.js → inlined-styles.dd4a079a.js} +1 -1
- package/packages/_vue2/dist/interactive-element.12db10c4.cjs +1 -0
- package/packages/_vue2/dist/interactive-element.e2f7ca88.js +42 -0
- package/packages/_vue2/dist/repeated-block.0343c63e.cjs +1 -0
- package/packages/_vue2/dist/repeated-block.c74334c2.js +39 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +11 -11
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +9 -18
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +7 -6
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/helpers.d.ts +13 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +6 -6
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +27 -6
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +9 -6
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +11 -7
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +7 -3
- package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +13 -0
- package/packages/{_vue3/dist/src/components/render-block/render-block.vue.d.ts → _vue2/dist/src/components/block/block.vue.d.ts} +3 -2
- package/packages/_vue2/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
- package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
- package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
- package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +16 -0
- package/packages/_vue2/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +29 -0
- package/packages/_vue2/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +12 -34
- package/packages/{_vue3/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue2/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
- package/packages/_vue2/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +1 -1
- package/packages/_vue2/dist/src/components/content/content.helpers.d.ts +7 -0
- package/packages/{_vue3/dist/src/components/render-content/render-content.types.d.ts → _vue2/dist/src/components/content/content.types.d.ts} +4 -4
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +26 -0
- package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
- package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +9 -8
- package/packages/_vue2/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +4 -4
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -1
- package/packages/_vue2/dist/src/context/types.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
- package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate/interpreter.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -1
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +2 -6
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/is-non-node-server.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +2 -1
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/css.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +1 -1
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +2 -2
- package/packages/_vue2/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/src/types/builder-props.d.ts +9 -0
- package/packages/_vue2/dist/src/types/components.d.ts +8 -2
- package/packages/_vue2/dist/src/types/enforced-partials.d.ts +1 -1
- package/packages/_vue2/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue2/dist/{render-styles.b41f1309.js → styles.367c17da.js} +7 -5
- package/packages/_vue2/dist/{render-styles.ba0e223a.cjs → styles.716893e3.cjs} +4 -4
- package/packages/_vue3/dist/block-wrapper.0590efed.js +54 -0
- package/packages/_vue3/dist/block-wrapper.caa27b4d.cjs +1 -0
- package/packages/_vue3/dist/component-ref.7c88b254.cjs +1 -0
- package/packages/_vue3/dist/component-ref.9039745a.js +111 -0
- package/packages/_vue3/dist/get-block-actions.a8cbb712.cjs +1 -0
- package/packages/_vue3/dist/get-block-actions.cc5999ea.js +79 -0
- package/packages/_vue3/dist/index.52e5e57e.js +8079 -0
- package/packages/_vue3/dist/index.a789f147.cjs +99 -0
- package/packages/_vue3/dist/repeated-block.1eba0fc4.js +33 -0
- package/packages/_vue3/dist/repeated-block.e0f9db51.cjs +1 -0
- package/packages/_vue3/dist/sdk.cjs +1 -72
- package/packages/_vue3/dist/sdk.js +22 -3275
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +10 -6
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +18 -8
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/helpers.d.ts +13 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +6 -6
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +9 -7
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +9 -6
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +20 -7
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +7 -3
- package/packages/_vue3/dist/src/components/block/block.helpers.d.ts +13 -0
- package/packages/{_vue2/dist/src/components/render-block/render-block.vue.d.ts → _vue3/dist/src/components/block/block.vue.d.ts} +3 -2
- package/packages/_vue3/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
- package/packages/_vue3/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
- package/packages/_vue3/dist/src/components/{render-block/render-repeated-block.vue.d.ts → block/components/repeated-block.vue.d.ts} +3 -0
- package/packages/_vue3/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
- package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +29 -0
- package/packages/_vue3/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +18 -49
- package/packages/{_vue2/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue3/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
- package/packages/_vue3/dist/src/components/content/content.helpers.d.ts +7 -0
- package/packages/{_vue2/dist/src/components/render-content/render-content.types.d.ts → _vue3/dist/src/components/content/content.types.d.ts} +4 -4
- package/packages/_vue3/dist/src/components/content/content.vue.d.ts +69 -0
- package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
- package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +21 -20
- package/packages/_vue3/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +7 -7
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -1
- package/packages/_vue3/dist/src/context/types.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
- package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate/interpreter.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -1
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +2 -6
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/is-non-node-server.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +2 -1
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/css.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +1 -1
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +2 -2
- package/packages/_vue3/dist/src/index.d.ts +2 -2
- package/packages/_vue3/dist/src/types/builder-props.d.ts +9 -0
- package/packages/_vue3/dist/src/types/components.d.ts +8 -2
- package/packages/_vue3/dist/src/types/enforced-partials.d.ts +1 -1
- package/packages/_vue3/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue3/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.503c2141.cjs +0 -1
- package/packages/_vue2/dist/block-styles.76e698a7.js +0 -72
- package/packages/_vue2/dist/css.1601c108.js +0 -75
- package/packages/_vue2/dist/css.6d92c2ca.cjs +0 -6
- package/packages/_vue2/dist/evaluate.5365c739.js +0 -63
- package/packages/_vue2/dist/evaluate.97a0f474.cjs +0 -4
- package/packages/_vue2/dist/index.4de025de.cjs +0 -32
- package/packages/_vue2/dist/inlined-script.6a6ca760.cjs +0 -1
- package/packages/_vue2/dist/render-block.844495c0.js +0 -263
- package/packages/_vue2/dist/render-block.c0841b5d.cjs +0 -3
- package/packages/_vue2/dist/render-component.a3770d92.cjs +0 -1
- package/packages/_vue2/dist/render-component.a57a8b32.js +0 -38
- package/packages/_vue2/dist/render-content.19fe4991.cjs +0 -1
- package/packages/_vue2/dist/render-content.8d297efd.js +0 -1359
- package/packages/_vue2/dist/render-repeated-block.be86aae1.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.f51da3f5.js +0 -38
- package/packages/_vue2/dist/src/blocks/util.d.ts +0 -4
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +0 -16
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +0 -13
- package/packages/_vue2/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
- package/packages/_vue3/dist/src/blocks/util.d.ts +0 -4
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +0 -16
- package/packages/_vue3/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
- /package/packages/_vue2/dist/src/components/{render-block → block}/types.d.ts +0 -0
- /package/packages/_vue2/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
- /package/packages/_vue3/dist/src/components/{render-block → block}/types.d.ts +0 -0
- /package/packages/_vue3/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +0 -0
- /package/packages/_vue3/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
|
@@ -1,46 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as g } from "vue";
|
|
2
|
+
function A(e = {}, t, n) {
|
|
3
|
+
const o = {};
|
|
4
|
+
for (const r in e) {
|
|
5
|
+
if (!e[r] || n && !r.startsWith(t))
|
|
6
|
+
continue;
|
|
7
|
+
const s = n ? r.replace(t, "") : r;
|
|
8
|
+
o[s] = e[r];
|
|
9
|
+
}
|
|
10
|
+
return o;
|
|
11
|
+
}
|
|
12
|
+
const tt = g({
|
|
3
13
|
name: "builder-button",
|
|
4
14
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
15
|
+
data() {
|
|
16
|
+
return { filterAttrs: A };
|
|
17
|
+
},
|
|
5
18
|
methods: {
|
|
6
|
-
filterAttrs: function(t = {}, n) {
|
|
7
|
-
const r = "v-on:";
|
|
8
|
-
return Object.keys(t).filter((o) => {
|
|
9
|
-
if (!t[o])
|
|
10
|
-
return !1;
|
|
11
|
-
const s = o.startsWith(r);
|
|
12
|
-
return n ? s : !s;
|
|
13
|
-
}).reduce(
|
|
14
|
-
(o, s) => ({
|
|
15
|
-
...o,
|
|
16
|
-
[s.replace(r, "")]: t[s]
|
|
17
|
-
}),
|
|
18
|
-
{}
|
|
19
|
-
);
|
|
20
|
-
},
|
|
21
19
|
_classStringToObject(e) {
|
|
22
20
|
const t = {};
|
|
23
21
|
if (typeof e != "string")
|
|
24
22
|
return t;
|
|
25
23
|
const n = e.trim().split(/\s+/);
|
|
26
|
-
for (const
|
|
27
|
-
t[
|
|
24
|
+
for (const o of n)
|
|
25
|
+
t[o] = !0;
|
|
28
26
|
return t;
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
});
|
|
32
|
-
function
|
|
30
|
+
function b(e, t, n, o, r, s, i, u) {
|
|
33
31
|
var a = typeof e == "function" ? e.options : e;
|
|
34
|
-
t && (a.render = t, a.staticRenderFns = n, a._compiled = !0),
|
|
32
|
+
t && (a.render = t, a.staticRenderFns = n, a._compiled = !0), o && (a.functional = !0), s && (a._scopeId = "data-v-" + s);
|
|
35
33
|
var d;
|
|
36
34
|
if (i ? (d = function(c) {
|
|
37
|
-
c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__),
|
|
38
|
-
}, a._ssrRegister = d) :
|
|
39
|
-
|
|
35
|
+
c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), r && r.call(this, c), c && c._registeredComponents && c._registeredComponents.add(i);
|
|
36
|
+
}, a._ssrRegister = d) : r && (d = u ? function() {
|
|
37
|
+
r.call(
|
|
40
38
|
this,
|
|
41
39
|
(a.functional ? this.parent : this).$root.$options.shadowRoot
|
|
42
40
|
);
|
|
43
|
-
} :
|
|
41
|
+
} : r), d)
|
|
44
42
|
if (a.functional) {
|
|
45
43
|
a._injectStyles = d;
|
|
46
44
|
var m = a.render;
|
|
@@ -56,22 +54,20 @@ function g(e, t, n, r, o, s, i, u) {
|
|
|
56
54
|
options: a
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
|
-
var
|
|
57
|
+
var et = function() {
|
|
60
58
|
var t = this, n = t._self._c;
|
|
61
|
-
return t._self._setupProxy, t.link ? n("a", t._g(t._b({ attrs: { role: "button", href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0 } }, "a", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [t._v(" " + t._s(t.text) + " ")]) : n("button", t._g(t._b({ class: t._classStringToObject(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}, rt = [], ot = /* @__PURE__ */ g(
|
|
59
|
+
return t._self._setupProxy, t.link ? n("a", t._g(t._b({ attrs: { role: "button", href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0 } }, "a", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]) : n("button", t._g(t._b({ class: t._classStringToObject(t.attributes.class + " button-2fnk003dqad"), style: t.attributes.style }, "button", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]);
|
|
60
|
+
}, nt = [], ot = /* @__PURE__ */ b(
|
|
61
|
+
tt,
|
|
65
62
|
et,
|
|
66
63
|
nt,
|
|
67
|
-
rt,
|
|
68
64
|
!1,
|
|
69
65
|
null,
|
|
70
|
-
"
|
|
66
|
+
"d03c6eb1",
|
|
71
67
|
null,
|
|
72
68
|
null
|
|
73
69
|
);
|
|
74
|
-
const Ye = ot.exports,
|
|
70
|
+
const Ye = ot.exports, V = (e) => JSON.parse(JSON.stringify(e)), F = {
|
|
75
71
|
small: {
|
|
76
72
|
min: 320,
|
|
77
73
|
default: 321,
|
|
@@ -87,21 +83,24 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
|
|
|
87
83
|
default: 991,
|
|
88
84
|
max: 1200
|
|
89
85
|
}
|
|
90
|
-
}, Ze = (e, t = F) => `@media (max-width: ${t[e].max}px)`,
|
|
91
|
-
|
|
86
|
+
}, Ze = (e, t = F) => `@media (max-width: ${t[e].max}px)`, rt = ({
|
|
87
|
+
small: e,
|
|
88
|
+
medium: t
|
|
89
|
+
}) => {
|
|
90
|
+
const n = V(F);
|
|
92
91
|
if (!e || !t)
|
|
93
92
|
return n;
|
|
94
|
-
const
|
|
93
|
+
const o = Math.floor(e / 2);
|
|
95
94
|
n.small = {
|
|
96
95
|
max: e,
|
|
97
|
-
min:
|
|
98
|
-
default:
|
|
96
|
+
min: o,
|
|
97
|
+
default: o + 1
|
|
99
98
|
};
|
|
100
|
-
const
|
|
99
|
+
const r = n.small.max + 1;
|
|
101
100
|
n.medium = {
|
|
102
101
|
max: t,
|
|
103
|
-
min:
|
|
104
|
-
default:
|
|
102
|
+
min: r,
|
|
103
|
+
default: r + 1
|
|
105
104
|
};
|
|
106
105
|
const s = n.medium.max + 1;
|
|
107
106
|
return n.large = {
|
|
@@ -109,39 +108,28 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
|
|
|
109
108
|
min: s,
|
|
110
109
|
default: s + 1
|
|
111
110
|
}, n;
|
|
112
|
-
}, w = "vue2",
|
|
113
|
-
Builder: {
|
|
114
|
-
content: null,
|
|
115
|
-
context: {},
|
|
116
|
-
localState: void 0,
|
|
117
|
-
rootSetState() {
|
|
118
|
-
},
|
|
119
|
-
rootState: {},
|
|
120
|
-
apiKey: null,
|
|
121
|
-
apiVersion: void 0,
|
|
122
|
-
registeredComponents: {},
|
|
123
|
-
inheritedStyles: {}
|
|
124
|
-
},
|
|
125
|
-
key: it
|
|
126
|
-
}, at = () => Promise.resolve().then(() => At).then((e) => e.default).catch((e) => {
|
|
111
|
+
}, w = "vue2", st = () => Promise.resolve().then(() => Rt).then((e) => e.default).catch((e) => {
|
|
127
112
|
throw console.error(
|
|
128
|
-
"Error while attempting to dynamically import component
|
|
113
|
+
"Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",
|
|
129
114
|
e
|
|
130
115
|
), e;
|
|
131
|
-
}),
|
|
116
|
+
}), it = () => import("./inlined-styles.dd4a079a.js").then((e) => e.default).catch((e) => {
|
|
132
117
|
throw console.error(
|
|
133
118
|
"Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",
|
|
134
119
|
e
|
|
135
120
|
), e;
|
|
136
|
-
}),
|
|
121
|
+
}), at = g({
|
|
137
122
|
name: "builder-columns",
|
|
138
|
-
components: {
|
|
123
|
+
components: { "inlined-styles": it, blocks: st },
|
|
139
124
|
props: [
|
|
125
|
+
"js",
|
|
140
126
|
"space",
|
|
141
127
|
"columns",
|
|
142
128
|
"stackColumnsAt",
|
|
143
129
|
"reverseColumnsWhenStacked",
|
|
144
|
-
"
|
|
130
|
+
"builderContext",
|
|
131
|
+
"builderBlock",
|
|
132
|
+
"builderComponents"
|
|
145
133
|
],
|
|
146
134
|
data() {
|
|
147
135
|
return {
|
|
@@ -152,9 +140,6 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
|
|
|
152
140
|
TARGET: w
|
|
153
141
|
};
|
|
154
142
|
},
|
|
155
|
-
inject: {
|
|
156
|
-
builderContext: E.key
|
|
157
|
-
},
|
|
158
143
|
computed: {
|
|
159
144
|
columnsCssVars() {
|
|
160
145
|
return {
|
|
@@ -215,32 +200,32 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
|
|
|
215
200
|
return this.stackAt === "never" ? t : e;
|
|
216
201
|
},
|
|
217
202
|
columnCssVars(e) {
|
|
218
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e),
|
|
203
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
|
|
219
204
|
return {
|
|
220
205
|
width: n,
|
|
221
|
-
"margin-left":
|
|
206
|
+
["margin-left"]: o,
|
|
222
207
|
"--column-width-mobile": this.getMobileStyle({
|
|
223
|
-
stackedStyle:
|
|
208
|
+
stackedStyle: r,
|
|
224
209
|
desktopStyle: n
|
|
225
210
|
}),
|
|
226
211
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
227
212
|
stackedStyle: s,
|
|
228
|
-
desktopStyle:
|
|
213
|
+
desktopStyle: o
|
|
229
214
|
}),
|
|
230
215
|
"--column-width-tablet": this.getTabletStyle({
|
|
231
|
-
stackedStyle:
|
|
216
|
+
stackedStyle: r,
|
|
232
217
|
desktopStyle: n
|
|
233
218
|
}),
|
|
234
219
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
235
220
|
stackedStyle: s,
|
|
236
|
-
desktopStyle:
|
|
221
|
+
desktopStyle: o
|
|
237
222
|
})
|
|
238
223
|
};
|
|
239
224
|
},
|
|
240
225
|
getWidthForBreakpointSize(e) {
|
|
241
|
-
var n,
|
|
242
|
-
return
|
|
243
|
-
((
|
|
226
|
+
var n, o;
|
|
227
|
+
return rt(
|
|
228
|
+
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
244
229
|
)[e].max;
|
|
245
230
|
},
|
|
246
231
|
_classStringToObject(e) {
|
|
@@ -248,86 +233,80 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
|
|
|
248
233
|
if (typeof e != "string")
|
|
249
234
|
return t;
|
|
250
235
|
const n = e.trim().split(/\s+/);
|
|
251
|
-
for (const
|
|
252
|
-
t[
|
|
236
|
+
for (const o of n)
|
|
237
|
+
t[o] = !0;
|
|
253
238
|
return t;
|
|
254
239
|
}
|
|
255
240
|
}
|
|
256
241
|
});
|
|
257
|
-
var
|
|
242
|
+
var ct = function() {
|
|
258
243
|
var t = this, n = t._self._c;
|
|
259
|
-
return t._self._setupProxy, n("div", { class: t._classStringToObject(
|
|
260
|
-
`builder-columns ${t.builderBlock.id}-breakpoints div-
|
|
261
|
-
), style: t.columnsCssVars, attrs: {
|
|
262
|
-
"builder-
|
|
263
|
-
} } }, [t.TARGET !== "reactNative" ? [n("inlined-styles", { attrs: { styles: t.columnsStyles } })] : t._e(), t._l(t.columns, function(r, o) {
|
|
264
|
-
return n("div", { key: o, staticClass: "builder-column div-2brhoa1k8gd-2", style: t.columnCssVars(o), attrs: { dataSet: {
|
|
265
|
-
"builder-block-name": "builder-column"
|
|
266
|
-
} } }, [n("render-blocks", { attrs: { blocks: r.blocks, path: `component.options.columns.${o}.blocks`, parent: t.builderBlock.id, styleProp: {
|
|
244
|
+
return t._self._setupProxy, n("div", t._b({ class: t._classStringToObject(
|
|
245
|
+
`builder-columns ${t.builderBlock.id}-breakpoints div-t9spj7joih`
|
|
246
|
+
), style: t.columnsCssVars }, "div", {}, !1), [t.TARGET !== "reactNative" ? [n("inlined-styles", { attrs: { styles: t.columnsStyles } })] : t._e(), t._l(t.columns, function(o, r) {
|
|
247
|
+
return n("div", t._b({ key: r, staticClass: "builder-column div-t9spj7joih-2", style: t.columnCssVars(r) }, "div", {}, !1), [n("blocks", { attrs: { blocks: o.blocks, path: `component.options.columns.${r}.blocks`, parent: t.builderBlock.id, styleProp: {
|
|
267
248
|
flexGrow: "1"
|
|
268
|
-
} } })], 1);
|
|
249
|
+
}, context: t.builderContext, registeredComponents: t.builderComponents } })], 1);
|
|
269
250
|
})], 2);
|
|
270
|
-
},
|
|
251
|
+
}, lt = [], ut = /* @__PURE__ */ b(
|
|
252
|
+
at,
|
|
253
|
+
ct,
|
|
271
254
|
lt,
|
|
272
|
-
ut,
|
|
273
|
-
dt,
|
|
274
255
|
!1,
|
|
275
256
|
null,
|
|
276
|
-
"
|
|
257
|
+
"b1c2e5e0",
|
|
277
258
|
null,
|
|
278
259
|
null
|
|
279
260
|
);
|
|
280
|
-
const tn =
|
|
261
|
+
const tn = ut.exports, dt = g({
|
|
281
262
|
name: "builder-fragment-component",
|
|
282
263
|
props: []
|
|
283
264
|
});
|
|
284
|
-
var
|
|
265
|
+
var ft = function() {
|
|
285
266
|
var t = this, n = t._self._c;
|
|
286
267
|
return t._self._setupProxy, n("span", [t._t("default")], 2);
|
|
287
|
-
},
|
|
268
|
+
}, mt = [], pt = /* @__PURE__ */ b(
|
|
269
|
+
dt,
|
|
270
|
+
ft,
|
|
288
271
|
mt,
|
|
289
|
-
pt,
|
|
290
|
-
ht,
|
|
291
272
|
!1,
|
|
292
273
|
null,
|
|
293
274
|
null,
|
|
294
275
|
null,
|
|
295
276
|
null
|
|
296
277
|
);
|
|
297
|
-
const en =
|
|
278
|
+
const en = pt.exports;
|
|
298
279
|
function P(e) {
|
|
299
280
|
return e.replace(/http(s)?:/, "");
|
|
300
281
|
}
|
|
301
|
-
function
|
|
302
|
-
const
|
|
303
|
-
return e.match(
|
|
282
|
+
function ht(e = "", t, n) {
|
|
283
|
+
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
284
|
+
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
304
285
|
}
|
|
305
|
-
function
|
|
286
|
+
function _t(e, t) {
|
|
306
287
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
307
288
|
return e;
|
|
308
289
|
if (t === "master")
|
|
309
290
|
return P(e);
|
|
310
|
-
const n = e.match(
|
|
311
|
-
/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
|
|
312
|
-
);
|
|
291
|
+
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
313
292
|
if (n) {
|
|
314
|
-
const
|
|
315
|
-
return P(`${
|
|
293
|
+
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
294
|
+
return P(`${o[0]}_${s}${r}`);
|
|
316
295
|
}
|
|
317
296
|
return null;
|
|
318
297
|
}
|
|
319
|
-
function
|
|
298
|
+
function T(e) {
|
|
320
299
|
if (!e)
|
|
321
300
|
return e;
|
|
322
301
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
323
302
|
if (e.match(/builder\.io/)) {
|
|
324
303
|
let n = e;
|
|
325
|
-
const
|
|
326
|
-
return isNaN(
|
|
304
|
+
const o = Number(e.split("?width=")[1]);
|
|
305
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ht(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
327
306
|
}
|
|
328
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
307
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [_t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
329
308
|
}
|
|
330
|
-
const
|
|
309
|
+
const gt = g({
|
|
331
310
|
name: "builder-image",
|
|
332
311
|
props: [
|
|
333
312
|
"image",
|
|
@@ -351,10 +330,10 @@ const yt = b({
|
|
|
351
330
|
return this.srcset;
|
|
352
331
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
353
332
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
354
|
-
return console.debug("Removed given srcset"),
|
|
333
|
+
return console.debug("Removed given srcset"), T(t);
|
|
355
334
|
} else if (this.image && !this.srcset)
|
|
356
|
-
return
|
|
357
|
-
return
|
|
335
|
+
return T(t);
|
|
336
|
+
return T(t);
|
|
358
337
|
},
|
|
359
338
|
webpSrcSet() {
|
|
360
339
|
var e;
|
|
@@ -377,155 +356,93 @@ const yt = b({
|
|
|
377
356
|
if (typeof e != "string")
|
|
378
357
|
return t;
|
|
379
358
|
const n = e.trim().split(/\s+/);
|
|
380
|
-
for (const
|
|
381
|
-
t[
|
|
359
|
+
for (const o of n)
|
|
360
|
+
t[o] = !0;
|
|
382
361
|
return t;
|
|
383
362
|
}
|
|
384
363
|
}
|
|
385
364
|
});
|
|
386
|
-
var
|
|
387
|
-
var
|
|
365
|
+
var bt = function() {
|
|
366
|
+
var o, r, s, i;
|
|
388
367
|
var t = this, n = t._self._c;
|
|
389
368
|
return t._self._setupProxy, n("div", [n("picture", [t.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: t.webpSrcSet } })] : t._e(), n("img", { class: t._classStringToObject(
|
|
390
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
369
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-1pl23ac79ld"
|
|
391
370
|
), style: {
|
|
392
371
|
objectPosition: t.backgroundPosition || "center",
|
|
393
372
|
objectFit: t.backgroundSize || "cover",
|
|
394
373
|
...t.aspectRatioCss
|
|
395
|
-
}, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !(((
|
|
374
|
+
}, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !(((r = (o = t.builderBlock) == null ? void 0 : o.children) == null ? void 0 : r.length) && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
|
|
396
375
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
397
|
-
} })] : t._e(), ((i = (s = t.builderBlock) == null ? void 0 : s.children) == null ? void 0 : i.length) && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.
|
|
398
|
-
},
|
|
376
|
+
} })] : t._e(), ((i = (s = t.builderBlock) == null ? void 0 : s.children) == null ? void 0 : i.length) && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.$slots.default ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [t._t("default")], 2)] : t._e()], 2);
|
|
377
|
+
}, yt = [], vt = /* @__PURE__ */ b(
|
|
378
|
+
gt,
|
|
379
|
+
bt,
|
|
399
380
|
yt,
|
|
400
|
-
vt,
|
|
401
|
-
St,
|
|
402
381
|
!1,
|
|
403
382
|
null,
|
|
404
|
-
"
|
|
383
|
+
"29cdebee",
|
|
405
384
|
null,
|
|
406
385
|
null
|
|
407
386
|
);
|
|
408
|
-
const nn =
|
|
409
|
-
function y() {
|
|
410
|
-
return typeof window < "u" && typeof document < "u";
|
|
411
|
-
}
|
|
412
|
-
function xt() {
|
|
413
|
-
return y() && window.self !== window.top;
|
|
414
|
-
}
|
|
415
|
-
function T() {
|
|
416
|
-
return xt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
417
|
-
}
|
|
418
|
-
const wt = () => import("./block-styles.76e698a7.js").then((e) => e.default).catch((e) => {
|
|
387
|
+
const nn = vt.exports, St = () => import("./block-styles.982735c2.js").then((e) => e.default).catch((e) => {
|
|
419
388
|
throw console.error(
|
|
420
|
-
"Error while attempting to dynamically import component BlockStyles at
|
|
389
|
+
"Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
|
|
421
390
|
e
|
|
422
391
|
), e;
|
|
423
|
-
}),
|
|
392
|
+
}), kt = () => import("./block.e9484073.js").then((e) => e.default).catch((e) => {
|
|
424
393
|
throw console.error(
|
|
425
|
-
"Error while attempting to dynamically import component
|
|
394
|
+
"Error while attempting to dynamically import component Block at ../block/block.vue",
|
|
426
395
|
e
|
|
427
396
|
), e;
|
|
428
|
-
}),
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
397
|
+
}), xt = () => import("./blocks-wrapper.4afaccc5.js").then((e) => e.default).catch((e) => {
|
|
398
|
+
throw console.error(
|
|
399
|
+
"Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
|
|
400
|
+
e
|
|
401
|
+
), e;
|
|
402
|
+
}), wt = g({
|
|
403
|
+
name: "builder-blocks",
|
|
404
|
+
components: {
|
|
405
|
+
"blocks-wrapper": xt,
|
|
406
|
+
block: kt,
|
|
407
|
+
"block-styles": St
|
|
440
408
|
},
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
dataPath: this.path
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
"*"
|
|
453
|
-
));
|
|
454
|
-
},
|
|
455
|
-
onMouseEnter() {
|
|
456
|
-
var e, t;
|
|
457
|
-
T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
458
|
-
{
|
|
459
|
-
type: "builder.hoverEmptyBlocks",
|
|
460
|
-
data: {
|
|
461
|
-
parentElementId: this.parent,
|
|
462
|
-
dataPath: this.path
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
"*"
|
|
466
|
-
));
|
|
467
|
-
},
|
|
468
|
-
_classStringToObject(e) {
|
|
469
|
-
const t = {};
|
|
470
|
-
if (typeof e != "string")
|
|
471
|
-
return t;
|
|
472
|
-
const n = e.trim().split(/\s+/);
|
|
473
|
-
for (const r of n)
|
|
474
|
-
t[r] = !0;
|
|
475
|
-
return t;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
409
|
+
props: [
|
|
410
|
+
"blocks",
|
|
411
|
+
"parent",
|
|
412
|
+
"path",
|
|
413
|
+
"styleProp",
|
|
414
|
+
"context",
|
|
415
|
+
"registeredComponents"
|
|
416
|
+
]
|
|
478
417
|
});
|
|
479
|
-
var
|
|
418
|
+
var Ct = function() {
|
|
480
419
|
var t = this, n = t._self._c;
|
|
481
|
-
return t._self._setupProxy, n("
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
return t.
|
|
485
|
-
}, mouseenter: function(r) {
|
|
486
|
-
return t.onMouseEnter();
|
|
487
|
-
}, keypress: function(r) {
|
|
488
|
-
return t.onClick();
|
|
489
|
-
} } }, [t.blocks ? t._l(t.blocks, function(r, o) {
|
|
490
|
-
return n("render-block", { key: "render-block-" + r.id, attrs: { block: r, context: t.builderContext } });
|
|
491
|
-
}) : t._e(), t.blocks ? t._l(t.blocks, function(r, o) {
|
|
492
|
-
return n("block-styles", { key: "block-style-" + r.id, attrs: { block: r, context: t.builderContext } });
|
|
420
|
+
return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp } }, [t.blocks ? t._l(t.blocks, function(o, r) {
|
|
421
|
+
return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context, registeredComponents: t.registeredComponents } });
|
|
422
|
+
}) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
|
|
423
|
+
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context } });
|
|
493
424
|
}) : t._e()], 2);
|
|
494
|
-
},
|
|
425
|
+
}, $t = [], Tt = /* @__PURE__ */ b(
|
|
426
|
+
wt,
|
|
427
|
+
Ct,
|
|
495
428
|
$t,
|
|
496
|
-
Tt,
|
|
497
|
-
Rt,
|
|
498
429
|
!1,
|
|
499
430
|
null,
|
|
500
|
-
|
|
431
|
+
null,
|
|
501
432
|
null,
|
|
502
433
|
null
|
|
503
434
|
);
|
|
504
|
-
const
|
|
435
|
+
const It = Tt.exports, Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
505
436
|
__proto__: null,
|
|
506
|
-
default:
|
|
507
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
437
|
+
default: It
|
|
438
|
+
}, Symbol.toStringTag, { value: "Module" })), At = g({
|
|
508
439
|
name: "builder-section-component",
|
|
509
|
-
props: ["
|
|
510
|
-
|
|
511
|
-
filterAttrs:
|
|
512
|
-
const r = "v-on:";
|
|
513
|
-
return Object.keys(t).filter((o) => {
|
|
514
|
-
if (!t[o])
|
|
515
|
-
return !1;
|
|
516
|
-
const s = o.startsWith(r);
|
|
517
|
-
return n ? s : !s;
|
|
518
|
-
}).reduce(
|
|
519
|
-
(o, s) => ({
|
|
520
|
-
...o,
|
|
521
|
-
[s.replace(r, "")]: t[s]
|
|
522
|
-
}),
|
|
523
|
-
{}
|
|
524
|
-
);
|
|
525
|
-
}
|
|
440
|
+
props: ["attributes", "maxWidth"],
|
|
441
|
+
data() {
|
|
442
|
+
return { filterAttrs: A };
|
|
526
443
|
}
|
|
527
444
|
});
|
|
528
|
-
var
|
|
445
|
+
var Vt = function() {
|
|
529
446
|
var t = this, n = t._self._c;
|
|
530
447
|
return t._self._setupProxy, n("section", t._g(t._b({ style: {
|
|
531
448
|
width: "100%",
|
|
@@ -538,87 +455,100 @@ var Ot = function() {
|
|
|
538
455
|
alignItems: "stretch",
|
|
539
456
|
marginLeft: "auto",
|
|
540
457
|
marginRight: "auto"
|
|
541
|
-
} }, "section", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [t._t("default")], 2);
|
|
542
|
-
},
|
|
543
|
-
|
|
458
|
+
} }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
|
|
459
|
+
}, Ot = [], Et = /* @__PURE__ */ b(
|
|
460
|
+
At,
|
|
461
|
+
Vt,
|
|
544
462
|
Ot,
|
|
545
|
-
Pt,
|
|
546
463
|
!1,
|
|
547
464
|
null,
|
|
548
465
|
null,
|
|
549
466
|
null,
|
|
550
467
|
null
|
|
551
468
|
);
|
|
552
|
-
const
|
|
469
|
+
const on = Et.exports;
|
|
470
|
+
function y() {
|
|
471
|
+
return typeof window < "u" && typeof document < "u";
|
|
472
|
+
}
|
|
473
|
+
const C = "[Builder.io]: ", v = {
|
|
553
474
|
log: (...e) => console.log(C, ...e),
|
|
554
475
|
error: (...e) => console.error(C, ...e),
|
|
555
476
|
warn: (...e) => console.warn(C, ...e),
|
|
556
477
|
debug: (...e) => console.debug(C, ...e)
|
|
557
|
-
}, x = (e) => e != null,
|
|
478
|
+
}, x = (e) => e != null, Pt = (e) => {
|
|
558
479
|
if (e === "localhost" || e === "127.0.0.1")
|
|
559
480
|
return e;
|
|
560
481
|
const t = e.split(".");
|
|
561
482
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
562
|
-
},
|
|
483
|
+
}, U = ({
|
|
563
484
|
name: e,
|
|
564
485
|
canTrack: t
|
|
565
486
|
}) => {
|
|
566
487
|
var n;
|
|
567
488
|
try {
|
|
568
|
-
return t ? (n = document.cookie.split("; ").find((
|
|
569
|
-
} catch (
|
|
570
|
-
v.warn("[COOKIE] GET error: ", (
|
|
489
|
+
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
490
|
+
} catch (o) {
|
|
491
|
+
v.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
571
492
|
return;
|
|
572
493
|
}
|
|
573
|
-
},
|
|
574
|
-
["secure", ""],
|
|
575
|
-
["SameSite", "None"]
|
|
576
|
-
], Mt = ({
|
|
494
|
+
}, M = async (e) => U(e), jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(x).join("; "), Bt = [["secure", ""], ["SameSite", "None"]], Nt = ({
|
|
577
495
|
name: e,
|
|
578
496
|
value: t,
|
|
579
497
|
expires: n
|
|
580
498
|
}) => {
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
...s,
|
|
584
|
-
["path", "/"],
|
|
585
|
-
["domain", Bt(window.location.hostname)],
|
|
586
|
-
...o
|
|
587
|
-
];
|
|
588
|
-
return Nt(i);
|
|
499
|
+
const r = (y() ? location.protocol === "https:" : !0) ? Bt : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Pt(window.location.hostname)], ...r];
|
|
500
|
+
return jt(i);
|
|
589
501
|
}, W = async ({
|
|
590
502
|
name: e,
|
|
591
503
|
value: t,
|
|
592
504
|
expires: n,
|
|
593
|
-
canTrack:
|
|
505
|
+
canTrack: o
|
|
594
506
|
}) => {
|
|
595
507
|
try {
|
|
596
|
-
if (!
|
|
508
|
+
if (!o)
|
|
597
509
|
return;
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
510
|
+
const r = Nt({
|
|
511
|
+
name: e,
|
|
512
|
+
value: t,
|
|
513
|
+
expires: n
|
|
514
|
+
});
|
|
515
|
+
document.cookie = r;
|
|
516
|
+
} catch (r) {
|
|
517
|
+
v.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
602
518
|
}
|
|
603
|
-
},
|
|
519
|
+
}, Ft = "builder.tests", O = (e) => `${Ft}.${e}`, Ut = ({
|
|
520
|
+
contentId: e
|
|
521
|
+
}) => M({
|
|
522
|
+
name: O(e),
|
|
523
|
+
canTrack: !0
|
|
524
|
+
}), Mt = ({
|
|
525
|
+
contentId: e
|
|
526
|
+
}) => U({
|
|
527
|
+
name: O(e),
|
|
528
|
+
canTrack: !0
|
|
529
|
+
}), Wt = ({
|
|
604
530
|
contentId: e,
|
|
605
531
|
value: t
|
|
606
|
-
}) => W({
|
|
532
|
+
}) => W({
|
|
533
|
+
name: O(e),
|
|
534
|
+
value: t,
|
|
535
|
+
canTrack: !0
|
|
536
|
+
}), L = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, Lt = ({
|
|
607
537
|
id: e,
|
|
608
538
|
variations: t
|
|
609
539
|
}) => {
|
|
610
|
-
var
|
|
540
|
+
var r;
|
|
611
541
|
let n = 0;
|
|
612
|
-
const
|
|
542
|
+
const o = Math.random();
|
|
613
543
|
for (const s in t) {
|
|
614
|
-
const i = (
|
|
615
|
-
if (n += i,
|
|
544
|
+
const i = (r = t[s]) == null ? void 0 : r.testRatio;
|
|
545
|
+
if (n += i, o < n)
|
|
616
546
|
return s;
|
|
617
547
|
}
|
|
618
548
|
return e;
|
|
619
549
|
}, K = (e) => {
|
|
620
|
-
const t =
|
|
621
|
-
return
|
|
550
|
+
const t = Lt(e);
|
|
551
|
+
return Wt({
|
|
622
552
|
contentId: e.id,
|
|
623
553
|
value: t
|
|
624
554
|
}).catch((n) => {
|
|
@@ -637,7 +567,7 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
|
|
|
637
567
|
testVariationId: n.id,
|
|
638
568
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
639
569
|
};
|
|
640
|
-
},
|
|
570
|
+
}, Kt = ({
|
|
641
571
|
item: e,
|
|
642
572
|
canTrack: t
|
|
643
573
|
}) => {
|
|
@@ -647,125 +577,135 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
|
|
|
647
577
|
return;
|
|
648
578
|
if (!L(e))
|
|
649
579
|
return e;
|
|
650
|
-
const n =
|
|
580
|
+
const n = Mt({
|
|
651
581
|
contentId: e.id
|
|
652
582
|
}) || K({
|
|
653
583
|
variations: e.variations,
|
|
654
584
|
id: e.id
|
|
655
|
-
}),
|
|
585
|
+
}), o = z({
|
|
586
|
+
item: e,
|
|
587
|
+
testGroupId: n
|
|
588
|
+
});
|
|
656
589
|
return {
|
|
657
590
|
...e,
|
|
658
|
-
...
|
|
591
|
+
...o
|
|
659
592
|
};
|
|
660
|
-
},
|
|
593
|
+
}, zt = async ({
|
|
661
594
|
item: e,
|
|
662
595
|
canTrack: t
|
|
663
596
|
}) => {
|
|
664
597
|
if (!t || !L(e))
|
|
665
598
|
return e;
|
|
666
|
-
const
|
|
599
|
+
const o = await Ut({
|
|
667
600
|
contentId: e.id
|
|
668
601
|
}) || K({
|
|
669
602
|
variations: e.variations,
|
|
670
603
|
id: e.id
|
|
671
|
-
}),
|
|
604
|
+
}), r = z({
|
|
605
|
+
item: e,
|
|
606
|
+
testGroupId: o
|
|
607
|
+
});
|
|
672
608
|
return {
|
|
673
609
|
...e,
|
|
674
|
-
...
|
|
610
|
+
...r
|
|
675
611
|
};
|
|
676
612
|
}, I = (e) => x(e) ? e : !0;
|
|
677
|
-
function
|
|
613
|
+
function Gt() {
|
|
678
614
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
679
615
|
}
|
|
680
|
-
function
|
|
681
|
-
const e =
|
|
616
|
+
function Dt() {
|
|
617
|
+
const e = Gt().fetch;
|
|
682
618
|
if (typeof e > "u")
|
|
683
|
-
throw console.warn(
|
|
684
|
-
`Builder SDK could not find a global fetch function
|
|
685
|
-
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`
|
|
686
|
-
), new Error("Builder SDK could not find a global `fetch` function");
|
|
619
|
+
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
620
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
687
621
|
return e;
|
|
688
622
|
}
|
|
689
|
-
const
|
|
690
|
-
function
|
|
691
|
-
return Object.keys(e).reduce((
|
|
692
|
-
const s = e[
|
|
693
|
-
return [
|
|
694
|
-
|
|
695
|
-
s
|
|
696
|
-
|
|
697
|
-
|
|
623
|
+
const Ht = Dt();
|
|
624
|
+
function R(e, t = null, n = ".") {
|
|
625
|
+
return Object.keys(e).reduce((o, r) => {
|
|
626
|
+
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
627
|
+
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
628
|
+
...o,
|
|
629
|
+
...R(s, i, n)
|
|
630
|
+
} : {
|
|
631
|
+
...o,
|
|
632
|
+
[i]: s
|
|
633
|
+
};
|
|
698
634
|
}, {});
|
|
699
635
|
}
|
|
700
|
-
const j = "builder.",
|
|
636
|
+
const j = "builder.", Jt = "options.", Xt = (e) => {
|
|
701
637
|
const t = {};
|
|
702
|
-
return e.forEach((n,
|
|
703
|
-
t[
|
|
638
|
+
return e.forEach((n, o) => {
|
|
639
|
+
t[o] = n;
|
|
704
640
|
}), t;
|
|
705
|
-
},
|
|
641
|
+
}, qt = (e) => {
|
|
706
642
|
if (!e)
|
|
707
643
|
return {};
|
|
708
644
|
const t = G(e), n = {};
|
|
709
|
-
return Object.keys(t).forEach((
|
|
710
|
-
if (
|
|
711
|
-
const
|
|
712
|
-
n[
|
|
645
|
+
return Object.keys(t).forEach((o) => {
|
|
646
|
+
if (o.startsWith(j)) {
|
|
647
|
+
const r = o.replace(j, "").replace(Jt, "");
|
|
648
|
+
n[r] = t[o];
|
|
713
649
|
}
|
|
714
650
|
}), n;
|
|
715
|
-
},
|
|
651
|
+
}, Qt = () => {
|
|
716
652
|
if (!y())
|
|
717
653
|
return {};
|
|
718
654
|
const e = new URLSearchParams(window.location.search);
|
|
719
|
-
return
|
|
720
|
-
}, G = (e) => e instanceof URLSearchParams ?
|
|
655
|
+
return qt(e);
|
|
656
|
+
}, G = (e) => e instanceof URLSearchParams ? Xt(e) : e, Yt = "v3", E = (e) => {
|
|
721
657
|
const {
|
|
722
658
|
limit: t = 30,
|
|
723
659
|
userAttributes: n,
|
|
724
|
-
query:
|
|
725
|
-
noTraverse:
|
|
660
|
+
query: o,
|
|
661
|
+
noTraverse: r = !1,
|
|
726
662
|
model: s,
|
|
727
663
|
apiKey: i,
|
|
728
664
|
includeRefs: u = !0,
|
|
729
665
|
enrich: a,
|
|
730
666
|
locale: d,
|
|
731
|
-
apiVersion: m =
|
|
667
|
+
apiVersion: m = Yt
|
|
732
668
|
} = e;
|
|
733
669
|
if (!i)
|
|
734
670
|
throw new Error("Missing API key");
|
|
735
671
|
if (!["v2", "v3"].includes(m))
|
|
736
|
-
throw new Error(
|
|
737
|
-
|
|
738
|
-
)
|
|
739
|
-
const p = new URL(
|
|
740
|
-
`https://cdn.builder.io/api/${m}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${o}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`
|
|
741
|
-
), c = {
|
|
742
|
-
...Zt(),
|
|
672
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${m}'`);
|
|
673
|
+
const p = new URL(`https://cdn.builder.io/api/${m}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${r}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`), c = {
|
|
674
|
+
...Qt(),
|
|
743
675
|
...G(e.options || {})
|
|
744
|
-
}, f =
|
|
676
|
+
}, f = R(c);
|
|
745
677
|
for (const l in f)
|
|
746
678
|
p.searchParams.set(l, String(f[l]));
|
|
747
|
-
if (n && p.searchParams.set("userAttributes", JSON.stringify(n)),
|
|
748
|
-
const l =
|
|
679
|
+
if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
680
|
+
const l = R({
|
|
681
|
+
query: o
|
|
682
|
+
});
|
|
749
683
|
for (const h in l)
|
|
750
684
|
p.searchParams.set(h, JSON.stringify(l[h]));
|
|
751
685
|
}
|
|
752
686
|
return p;
|
|
753
|
-
},
|
|
754
|
-
async function
|
|
755
|
-
const t = await oe({
|
|
756
|
-
|
|
687
|
+
}, Zt = (e) => "results" in e;
|
|
688
|
+
async function te(e) {
|
|
689
|
+
const t = await oe({
|
|
690
|
+
...e,
|
|
691
|
+
limit: 1
|
|
692
|
+
});
|
|
693
|
+
return t && t.results[0] || null;
|
|
757
694
|
}
|
|
758
|
-
const
|
|
759
|
-
const t =
|
|
760
|
-
return await (await
|
|
761
|
-
},
|
|
762
|
-
const
|
|
763
|
-
if (
|
|
695
|
+
const ee = async (e) => {
|
|
696
|
+
const t = E(e);
|
|
697
|
+
return await (await Ht(t.href)).json();
|
|
698
|
+
}, ne = async (e, t, n = E(e)) => {
|
|
699
|
+
const o = I(e.canTrack);
|
|
700
|
+
if (n.search.includes("preview="), !o || !(y() || w === "reactNative"))
|
|
764
701
|
return t;
|
|
765
702
|
try {
|
|
766
703
|
const r = [];
|
|
767
|
-
for (const
|
|
768
|
-
r.push(await
|
|
704
|
+
for (const s of t.results)
|
|
705
|
+
r.push(await zt({
|
|
706
|
+
item: s,
|
|
707
|
+
canTrack: o
|
|
708
|
+
}));
|
|
769
709
|
t.results = r;
|
|
770
710
|
} catch (r) {
|
|
771
711
|
v.error("Could not process A/B tests. ", r);
|
|
@@ -774,48 +714,74 @@ const ne = async (e) => {
|
|
|
774
714
|
};
|
|
775
715
|
async function oe(e) {
|
|
776
716
|
try {
|
|
777
|
-
const t =
|
|
778
|
-
return
|
|
717
|
+
const t = E(e), n = await ee(e);
|
|
718
|
+
return Zt(n) ? ne(e, n) : (v.error("Error fetching data. ", {
|
|
719
|
+
url: t,
|
|
720
|
+
content: n,
|
|
721
|
+
options: e
|
|
722
|
+
}), null);
|
|
779
723
|
} catch (t) {
|
|
780
724
|
return v.error("Error fetching data. ", t), null;
|
|
781
725
|
}
|
|
782
726
|
}
|
|
783
|
-
const
|
|
727
|
+
const re = async ({
|
|
728
|
+
builderContextValue: e,
|
|
729
|
+
symbol: t
|
|
730
|
+
}) => {
|
|
731
|
+
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
732
|
+
return te({
|
|
733
|
+
model: t.model,
|
|
734
|
+
apiKey: e.apiKey,
|
|
735
|
+
apiVersion: e.apiVersion,
|
|
736
|
+
...(t == null ? void 0 : t.entry) && {
|
|
737
|
+
query: {
|
|
738
|
+
id: t.entry
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}).catch((n) => {
|
|
742
|
+
v.error("Could not fetch symbol content: ", n);
|
|
743
|
+
});
|
|
744
|
+
}, se = () => Promise.resolve().then(() => Oe).then((e) => e.default).catch((e) => {
|
|
784
745
|
throw console.error(
|
|
785
|
-
"Error while attempting to dynamically import component
|
|
746
|
+
"Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
|
|
786
747
|
e
|
|
787
748
|
), e;
|
|
788
|
-
}), ie =
|
|
749
|
+
}), ie = g({
|
|
789
750
|
name: "builder-symbol",
|
|
790
|
-
components: {
|
|
791
|
-
props: [
|
|
751
|
+
components: { "content-variants": se },
|
|
752
|
+
props: [
|
|
753
|
+
"js",
|
|
754
|
+
"attributes",
|
|
755
|
+
"symbol",
|
|
756
|
+
"dynamic",
|
|
757
|
+
"builderContext",
|
|
758
|
+
"builderComponents"
|
|
759
|
+
],
|
|
792
760
|
data() {
|
|
793
|
-
var e
|
|
794
|
-
return {
|
|
795
|
-
className: [
|
|
796
|
-
...Object.keys(this.attributes.class),
|
|
797
|
-
"builder-symbol",
|
|
798
|
-
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
799
|
-
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
800
|
-
].filter(Boolean).join(" "),
|
|
801
|
-
contentToUse: (n = this.symbol) == null ? void 0 : n.content
|
|
802
|
-
};
|
|
803
|
-
},
|
|
804
|
-
inject: {
|
|
805
|
-
builderContext: E.key
|
|
761
|
+
var e;
|
|
762
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
|
|
806
763
|
},
|
|
807
764
|
mounted() {
|
|
808
|
-
this.
|
|
765
|
+
this.setContent();
|
|
809
766
|
},
|
|
810
767
|
watch: {
|
|
811
768
|
onUpdateHook0: {
|
|
812
769
|
handler() {
|
|
813
|
-
this.
|
|
770
|
+
this.setContent();
|
|
814
771
|
},
|
|
815
772
|
immediate: !0
|
|
816
773
|
}
|
|
817
774
|
},
|
|
818
775
|
computed: {
|
|
776
|
+
className() {
|
|
777
|
+
var e, t;
|
|
778
|
+
return [
|
|
779
|
+
...Object.keys(this.attributes.class),
|
|
780
|
+
"builder-symbol",
|
|
781
|
+
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
782
|
+
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
783
|
+
].filter(Boolean).join(" ");
|
|
784
|
+
},
|
|
819
785
|
onUpdateHook0() {
|
|
820
786
|
return {
|
|
821
787
|
0: this.symbol
|
|
@@ -823,60 +789,34 @@ const se = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((
|
|
|
823
789
|
}
|
|
824
790
|
},
|
|
825
791
|
methods: {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
...((n = this.symbol) == null ? void 0 : n.entry) && {
|
|
833
|
-
query: {
|
|
834
|
-
id: this.symbol.entry
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
}).then((r) => {
|
|
838
|
-
r && (this.contentToUse = r);
|
|
839
|
-
}).catch((r) => {
|
|
840
|
-
v.error("Could not fetch symbol content: ", r);
|
|
792
|
+
setContent() {
|
|
793
|
+
this.contentToUse || re({
|
|
794
|
+
symbol: this.symbol,
|
|
795
|
+
builderContextValue: this.builderContext
|
|
796
|
+
}).then((e) => {
|
|
797
|
+
e && (this.contentToUse = e);
|
|
841
798
|
});
|
|
842
799
|
},
|
|
843
|
-
filterAttrs: function(t = {}, n) {
|
|
844
|
-
const r = "v-on:";
|
|
845
|
-
return Object.keys(t).filter((o) => {
|
|
846
|
-
if (!t[o])
|
|
847
|
-
return !1;
|
|
848
|
-
const s = o.startsWith(r);
|
|
849
|
-
return n ? s : !s;
|
|
850
|
-
}).reduce(
|
|
851
|
-
(o, s) => ({
|
|
852
|
-
...o,
|
|
853
|
-
[s.replace(r, "")]: t[s]
|
|
854
|
-
}),
|
|
855
|
-
{}
|
|
856
|
-
);
|
|
857
|
-
},
|
|
858
800
|
_classStringToObject(e) {
|
|
859
801
|
const t = {};
|
|
860
802
|
if (typeof e != "string")
|
|
861
803
|
return t;
|
|
862
804
|
const n = e.trim().split(/\s+/);
|
|
863
|
-
for (const
|
|
864
|
-
t[
|
|
805
|
+
for (const o of n)
|
|
806
|
+
t[o] = !0;
|
|
865
807
|
return t;
|
|
866
808
|
}
|
|
867
809
|
}
|
|
868
810
|
});
|
|
869
811
|
var ae = function() {
|
|
870
|
-
var
|
|
812
|
+
var o, r, s, i;
|
|
871
813
|
var t = this, n = t._self._c;
|
|
872
|
-
return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className), attrs: {
|
|
873
|
-
|
|
874
|
-
} } }, "div", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [n("render-content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderContext.registeredComponents), data: {
|
|
875
|
-
...(r = t.symbol) == null ? void 0 : r.data,
|
|
814
|
+
return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className) }, "div", { ...t.filterAttrs(t.attributes, "v-on:", !1) }, !1), t.filterAttrs(t.attributes, "v-on:", !0)), [n("content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderComponents), data: {
|
|
815
|
+
...(o = t.symbol) == null ? void 0 : o.data,
|
|
876
816
|
...t.builderContext.localState,
|
|
877
|
-
...(s = (
|
|
817
|
+
...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
|
|
878
818
|
}, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
|
|
879
|
-
}, ce = [], le = /* @__PURE__ */
|
|
819
|
+
}, ce = [], le = /* @__PURE__ */ b(
|
|
880
820
|
ie,
|
|
881
821
|
ae,
|
|
882
822
|
ce,
|
|
@@ -886,17 +826,17 @@ var ae = function() {
|
|
|
886
826
|
null,
|
|
887
827
|
null
|
|
888
828
|
);
|
|
889
|
-
const
|
|
829
|
+
const rn = le.exports, ue = g({
|
|
890
830
|
name: "builder-text",
|
|
891
831
|
props: ["text"]
|
|
892
832
|
});
|
|
893
833
|
var de = function() {
|
|
894
|
-
var
|
|
834
|
+
var o;
|
|
895
835
|
var t = this, n = t._self._c;
|
|
896
836
|
return t._self._setupProxy, n("span", { staticClass: "builder-text", style: {
|
|
897
837
|
outline: "none"
|
|
898
|
-
}, domProps: { innerHTML: t._s((
|
|
899
|
-
}, fe = [], me = /* @__PURE__ */
|
|
838
|
+
}, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
|
|
839
|
+
}, fe = [], me = /* @__PURE__ */ b(
|
|
900
840
|
ue,
|
|
901
841
|
de,
|
|
902
842
|
fe,
|
|
@@ -906,7 +846,7 @@ var de = function() {
|
|
|
906
846
|
null,
|
|
907
847
|
null
|
|
908
848
|
);
|
|
909
|
-
const sn = me.exports, pe =
|
|
849
|
+
const sn = me.exports, pe = g({
|
|
910
850
|
name: "builder-video",
|
|
911
851
|
props: [
|
|
912
852
|
"autoPlay",
|
|
@@ -915,6 +855,7 @@ const sn = me.exports, pe = b({
|
|
|
915
855
|
"loop",
|
|
916
856
|
"playsInline",
|
|
917
857
|
"attributes",
|
|
858
|
+
"preload",
|
|
918
859
|
"fit",
|
|
919
860
|
"position",
|
|
920
861
|
"video",
|
|
@@ -949,17 +890,17 @@ const sn = me.exports, pe = b({
|
|
|
949
890
|
}
|
|
950
891
|
});
|
|
951
892
|
var he = function() {
|
|
952
|
-
var
|
|
893
|
+
var o;
|
|
953
894
|
var t = this, n = t._self._c;
|
|
954
895
|
return t._self._setupProxy, n("video", t._b({ style: {
|
|
955
896
|
width: "100%",
|
|
956
897
|
height: "100%",
|
|
957
|
-
...(
|
|
898
|
+
...(o = t.attributes) == null ? void 0 : o.style,
|
|
958
899
|
objectFit: t.fit,
|
|
959
900
|
objectPosition: t.position,
|
|
960
901
|
borderRadius: 1
|
|
961
|
-
}, attrs: { src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
|
|
962
|
-
}, _e = [],
|
|
902
|
+
}, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
|
|
903
|
+
}, _e = [], ge = /* @__PURE__ */ b(
|
|
963
904
|
pe,
|
|
964
905
|
he,
|
|
965
906
|
_e,
|
|
@@ -969,17 +910,17 @@ var he = function() {
|
|
|
969
910
|
null,
|
|
970
911
|
null
|
|
971
912
|
);
|
|
972
|
-
const an =
|
|
913
|
+
const an = ge.exports, $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
973
914
|
...t,
|
|
974
915
|
testVariationId: t.id,
|
|
975
916
|
id: e == null ? void 0 : e.id
|
|
976
|
-
})),
|
|
917
|
+
})), be = ({
|
|
977
918
|
canTrack: e,
|
|
978
919
|
content: t
|
|
979
920
|
}) => !(!($(t).length > 0) || !e);
|
|
980
921
|
function ye(e, t, n) {
|
|
981
922
|
var i;
|
|
982
|
-
function
|
|
923
|
+
function o() {
|
|
983
924
|
function u(l, h, S) {
|
|
984
925
|
let k = "";
|
|
985
926
|
if (S) {
|
|
@@ -1011,13 +952,15 @@ function ye(e, t, n) {
|
|
|
1011
952
|
}
|
|
1012
953
|
return u(d, e), e;
|
|
1013
954
|
}
|
|
1014
|
-
const
|
|
955
|
+
const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
|
|
1015
956
|
if (n) {
|
|
1016
957
|
s.remove();
|
|
1017
958
|
const u = document.currentScript;
|
|
1018
959
|
u == null || u.remove();
|
|
1019
960
|
} else {
|
|
1020
|
-
const u = t.concat({
|
|
961
|
+
const u = t.concat({
|
|
962
|
+
id: e
|
|
963
|
+
}).filter((a) => a.id !== r).map((a) => `.variant-${a.id} { display: none; }
|
|
1021
964
|
`).join("");
|
|
1022
965
|
s.innerHTML = u;
|
|
1023
966
|
}
|
|
@@ -1026,7 +969,7 @@ function ve(e, t, n) {
|
|
|
1026
969
|
var a;
|
|
1027
970
|
if (!navigator.cookieEnabled)
|
|
1028
971
|
return;
|
|
1029
|
-
function
|
|
972
|
+
function o(d) {
|
|
1030
973
|
const m = d + "=", p = document.cookie.split(";");
|
|
1031
974
|
for (let c = 0; c < p.length; c++) {
|
|
1032
975
|
let f = p[c];
|
|
@@ -1037,7 +980,7 @@ function ve(e, t, n) {
|
|
|
1037
980
|
}
|
|
1038
981
|
return null;
|
|
1039
982
|
}
|
|
1040
|
-
const
|
|
983
|
+
const r = `builder.tests.${t}`, s = o(r), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
|
|
1041
984
|
if (s === e) {
|
|
1042
985
|
if (u)
|
|
1043
986
|
return;
|
|
@@ -1047,40 +990,38 @@ function ve(e, t, n) {
|
|
|
1047
990
|
return;
|
|
1048
991
|
}
|
|
1049
992
|
}
|
|
1050
|
-
const Se = (e) => e === "react" || e === "reactNative",
|
|
993
|
+
const Se = (e) => e === "react" || e === "reactNative", D = Se(w), H = "builderIoAbTest", J = "builderIoRenderContent", ke = () => {
|
|
1051
994
|
const e = ye.toString().replace(/\s+/g, " "), t = ve.toString().replace(/\s+/g, " ");
|
|
1052
995
|
return `
|
|
1053
|
-
window.${
|
|
1054
|
-
window.${
|
|
996
|
+
window.${H} = ${e}
|
|
997
|
+
window.${J} = ${t}
|
|
1055
998
|
`;
|
|
1056
999
|
}, xe = (e, t) => `
|
|
1057
|
-
window.${
|
|
1058
|
-
e
|
|
1059
|
-
)}, ${J})`, cn = ({
|
|
1000
|
+
window.${H}("${t}",${JSON.stringify(e)}, ${D})`, cn = ({
|
|
1060
1001
|
contentId: e,
|
|
1061
1002
|
variationId: t
|
|
1062
1003
|
}) => `
|
|
1063
|
-
window.${
|
|
1004
|
+
window.${J}("${t}", "${e}", ${D})`, we = () => import("./content.697b2fbd.js").then((e) => e.default).catch((e) => {
|
|
1064
1005
|
throw console.error(
|
|
1065
|
-
"Error while attempting to dynamically import component
|
|
1006
|
+
"Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
|
|
1066
1007
|
e
|
|
1067
1008
|
), e;
|
|
1068
|
-
}), Ce = () => import("./inlined-styles.
|
|
1009
|
+
}), Ce = () => import("./inlined-styles.dd4a079a.js").then((e) => e.default).catch((e) => {
|
|
1069
1010
|
throw console.error(
|
|
1070
1011
|
"Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
|
|
1071
1012
|
e
|
|
1072
1013
|
), e;
|
|
1073
|
-
}), $e = () => import("./inlined-script.
|
|
1014
|
+
}), $e = () => import("./inlined-script.b4595308.js").then((e) => e.default).catch((e) => {
|
|
1074
1015
|
throw console.error(
|
|
1075
1016
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
1076
1017
|
e
|
|
1077
1018
|
), e;
|
|
1078
|
-
}), Te =
|
|
1079
|
-
name: "
|
|
1019
|
+
}), Te = g({
|
|
1020
|
+
name: "content-variants",
|
|
1080
1021
|
components: {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1022
|
+
"inlined-script": $e,
|
|
1023
|
+
"inlined-styles": Ce,
|
|
1024
|
+
"content-component": we
|
|
1084
1025
|
},
|
|
1085
1026
|
props: [
|
|
1086
1027
|
"canTrack",
|
|
@@ -1097,87 +1038,91 @@ const Se = (e) => e === "react" || e === "reactNative", J = Se(w), X = "builderI
|
|
|
1097
1038
|
"enrich"
|
|
1098
1039
|
],
|
|
1099
1040
|
data() {
|
|
1100
|
-
var e;
|
|
1101
1041
|
return {
|
|
1102
|
-
shouldRenderVariants:
|
|
1042
|
+
shouldRenderVariants: be({
|
|
1103
1043
|
canTrack: I(this.canTrack),
|
|
1104
1044
|
content: this.content
|
|
1105
1045
|
}),
|
|
1106
|
-
variantScriptStr: xe(
|
|
1107
|
-
$(this.content).map((t) => ({
|
|
1108
|
-
id: t.testVariationId,
|
|
1109
|
-
testRatio: t.testRatio
|
|
1110
|
-
})),
|
|
1111
|
-
((e = this.content) == null ? void 0 : e.id) || ""
|
|
1112
|
-
),
|
|
1113
|
-
hideVariantsStyleString: $(this.content).map((t) => `.variant-${t.testVariationId} { display: none; } `).join(""),
|
|
1114
1046
|
getScriptString: ke,
|
|
1115
1047
|
getVariants: $,
|
|
1116
1048
|
getDefaultCanTrack: I,
|
|
1117
|
-
handleABTestingSync:
|
|
1049
|
+
handleABTestingSync: Kt,
|
|
1118
1050
|
TARGET: w
|
|
1119
1051
|
};
|
|
1120
1052
|
},
|
|
1121
1053
|
mounted() {
|
|
1122
1054
|
this.shouldRenderVariants = !1;
|
|
1055
|
+
},
|
|
1056
|
+
computed: {
|
|
1057
|
+
variantScriptStr() {
|
|
1058
|
+
var e;
|
|
1059
|
+
return xe(
|
|
1060
|
+
$(this.content).map((t) => ({
|
|
1061
|
+
id: t.testVariationId,
|
|
1062
|
+
testRatio: t.testRatio
|
|
1063
|
+
})),
|
|
1064
|
+
((e = this.content) == null ? void 0 : e.id) || ""
|
|
1065
|
+
);
|
|
1066
|
+
},
|
|
1067
|
+
hideVariantsStyleString() {
|
|
1068
|
+
return $(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
1069
|
+
}
|
|
1123
1070
|
}
|
|
1124
1071
|
});
|
|
1125
|
-
var
|
|
1126
|
-
var
|
|
1072
|
+
var Ie = function() {
|
|
1073
|
+
var o, r;
|
|
1127
1074
|
var t = this, n = t._self._c;
|
|
1128
|
-
return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(
|
|
1129
|
-
return n("
|
|
1130
|
-
})] : t._e(), n("
|
|
1075
|
+
return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(o = t.content) == null ? void 0 : o.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.variantScriptStr } }), t._l(t.getVariants(t.content), function(s, i) {
|
|
1076
|
+
return n("content-component", { key: s.testVariationId, attrs: { content: s, showContent: !1, classNameProp: void 0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } });
|
|
1077
|
+
})] : t._e(), n("content-component", t._b({ attrs: { content: t.shouldRenderVariants ? t.content : t.handleABTestingSync({
|
|
1131
1078
|
item: t.content,
|
|
1132
1079
|
canTrack: t.getDefaultCanTrack(t.canTrack)
|
|
1133
|
-
}), classNameProp: `variant-${(
|
|
1080
|
+
}), classNameProp: `variant-${(r = t.content) == null ? void 0 : r.id}`, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "content-component", {
|
|
1134
1081
|
key: t.shouldRenderVariants.toString()
|
|
1135
1082
|
}, !1))], 2);
|
|
1136
|
-
},
|
|
1083
|
+
}, Re = [], Ae = /* @__PURE__ */ b(
|
|
1137
1084
|
Te,
|
|
1138
|
-
Re,
|
|
1139
1085
|
Ie,
|
|
1086
|
+
Re,
|
|
1140
1087
|
!1,
|
|
1141
1088
|
null,
|
|
1142
1089
|
null,
|
|
1143
1090
|
null,
|
|
1144
1091
|
null
|
|
1145
1092
|
);
|
|
1146
|
-
const
|
|
1093
|
+
const Ve = Ae.exports, Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1147
1094
|
__proto__: null,
|
|
1148
|
-
default:
|
|
1095
|
+
default: Ve
|
|
1149
1096
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1097
|
+
function Ee() {
|
|
1098
|
+
return y() && window.self !== window.top;
|
|
1099
|
+
}
|
|
1100
|
+
function X() {
|
|
1101
|
+
return Ee() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1102
|
+
}
|
|
1150
1103
|
function ln() {
|
|
1151
|
-
return !y() ||
|
|
1104
|
+
return !y() || X() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1152
1105
|
}
|
|
1153
|
-
const
|
|
1106
|
+
const un = [], dn = (e) => ({
|
|
1107
|
+
type: "builder.registerComponent",
|
|
1108
|
+
data: e
|
|
1109
|
+
}), Pe = (e) => {
|
|
1154
1110
|
const t = e.toString().trim();
|
|
1155
1111
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1156
|
-
},
|
|
1157
|
-
component: e,
|
|
1158
|
-
...t
|
|
1159
|
-
}) => ({
|
|
1160
|
-
type: "builder.registerComponent",
|
|
1161
|
-
data: je(t)
|
|
1162
|
-
}), Pe = (e) => typeof e == "function" ? Oe(e) : A(e), je = ({
|
|
1112
|
+
}, je = (e) => typeof e == "function" ? Pe(e) : V(e), fn = ({
|
|
1163
1113
|
inputs: e,
|
|
1164
1114
|
...t
|
|
1165
1115
|
}) => ({
|
|
1166
|
-
...
|
|
1167
|
-
inputs: e == null ? void 0 : e.map(
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
[o]: Pe(s)
|
|
1172
|
-
}),
|
|
1173
|
-
{}
|
|
1174
|
-
)
|
|
1175
|
-
)
|
|
1116
|
+
...V(t),
|
|
1117
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
1118
|
+
...o,
|
|
1119
|
+
[r]: je(s)
|
|
1120
|
+
}), {}))
|
|
1176
1121
|
}), B = {};
|
|
1177
|
-
function
|
|
1122
|
+
function mn(e, t) {
|
|
1178
1123
|
let n = B[e];
|
|
1179
1124
|
if (n || (n = B[e] = []), n.push(t), y()) {
|
|
1180
|
-
const
|
|
1125
|
+
const o = {
|
|
1181
1126
|
type: "builder.register",
|
|
1182
1127
|
data: {
|
|
1183
1128
|
type: e,
|
|
@@ -1185,14 +1130,14 @@ function fn(e, t) {
|
|
|
1185
1130
|
}
|
|
1186
1131
|
};
|
|
1187
1132
|
try {
|
|
1188
|
-
parent.postMessage(
|
|
1189
|
-
} catch (
|
|
1190
|
-
console.debug("Could not postmessage",
|
|
1133
|
+
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
1134
|
+
} catch (r) {
|
|
1135
|
+
console.debug("Could not postmessage", r);
|
|
1191
1136
|
}
|
|
1192
1137
|
}
|
|
1193
1138
|
}
|
|
1194
1139
|
const N = {};
|
|
1195
|
-
function
|
|
1140
|
+
function pn(e) {
|
|
1196
1141
|
if (y()) {
|
|
1197
1142
|
Object.assign(N, e);
|
|
1198
1143
|
const t = {
|
|
@@ -1208,36 +1153,43 @@ function Be() {
|
|
|
1208
1153
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
1209
1154
|
});
|
|
1210
1155
|
}
|
|
1211
|
-
function
|
|
1156
|
+
function q() {
|
|
1212
1157
|
return Be().replace(/-/g, "");
|
|
1213
1158
|
}
|
|
1214
|
-
const
|
|
1159
|
+
const Q = "builderSessionId", Ne = async ({
|
|
1215
1160
|
canTrack: e
|
|
1216
1161
|
}) => {
|
|
1217
1162
|
if (!e)
|
|
1218
1163
|
return;
|
|
1219
|
-
const t = await
|
|
1220
|
-
name:
|
|
1164
|
+
const t = await M({
|
|
1165
|
+
name: Q,
|
|
1221
1166
|
canTrack: e
|
|
1222
1167
|
});
|
|
1223
1168
|
if (x(t))
|
|
1224
1169
|
return t;
|
|
1225
1170
|
{
|
|
1226
1171
|
const n = Fe();
|
|
1227
|
-
return
|
|
1172
|
+
return Ue({
|
|
1173
|
+
id: n,
|
|
1174
|
+
canTrack: e
|
|
1175
|
+
}), n;
|
|
1228
1176
|
}
|
|
1229
|
-
}, Fe = () =>
|
|
1177
|
+
}, Fe = () => q(), Ue = ({
|
|
1230
1178
|
id: e,
|
|
1231
1179
|
canTrack: t
|
|
1232
|
-
}) => W({
|
|
1180
|
+
}) => W({
|
|
1181
|
+
name: Q,
|
|
1182
|
+
value: e,
|
|
1183
|
+
canTrack: t
|
|
1184
|
+
}), Y = () => y() && typeof localStorage < "u" ? localStorage : void 0, Me = ({
|
|
1233
1185
|
key: e,
|
|
1234
1186
|
canTrack: t
|
|
1235
1187
|
}) => {
|
|
1236
1188
|
var n;
|
|
1237
1189
|
try {
|
|
1238
|
-
return t ? (n =
|
|
1239
|
-
} catch (
|
|
1240
|
-
console.debug("[LocalStorage] GET error: ",
|
|
1190
|
+
return t ? (n = Y()) == null ? void 0 : n.getItem(e) : void 0;
|
|
1191
|
+
} catch (o) {
|
|
1192
|
+
console.debug("[LocalStorage] GET error: ", o);
|
|
1241
1193
|
return;
|
|
1242
1194
|
}
|
|
1243
1195
|
}, We = ({
|
|
@@ -1245,30 +1197,35 @@ const Y = "builderSessionId", Ne = async ({
|
|
|
1245
1197
|
canTrack: t,
|
|
1246
1198
|
value: n
|
|
1247
1199
|
}) => {
|
|
1248
|
-
var
|
|
1200
|
+
var o;
|
|
1249
1201
|
try {
|
|
1250
|
-
t && ((
|
|
1251
|
-
} catch (
|
|
1252
|
-
console.debug("[LocalStorage] SET error: ",
|
|
1202
|
+
t && ((o = Y()) == null || o.setItem(e, n));
|
|
1203
|
+
} catch (r) {
|
|
1204
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
1253
1205
|
}
|
|
1254
|
-
},
|
|
1206
|
+
}, Z = "builderVisitorId", Le = ({
|
|
1207
|
+
canTrack: e
|
|
1208
|
+
}) => {
|
|
1255
1209
|
if (!e)
|
|
1256
1210
|
return;
|
|
1257
|
-
const t =
|
|
1258
|
-
key:
|
|
1211
|
+
const t = Me({
|
|
1212
|
+
key: Z,
|
|
1259
1213
|
canTrack: e
|
|
1260
1214
|
});
|
|
1261
1215
|
if (x(t))
|
|
1262
1216
|
return t;
|
|
1263
1217
|
{
|
|
1264
1218
|
const n = Ke();
|
|
1265
|
-
return ze({
|
|
1219
|
+
return ze({
|
|
1220
|
+
id: n,
|
|
1221
|
+
canTrack: e
|
|
1222
|
+
}), n;
|
|
1266
1223
|
}
|
|
1267
|
-
}, Ke = () =>
|
|
1224
|
+
}, Ke = () => q(), ze = ({
|
|
1268
1225
|
id: e,
|
|
1269
1226
|
canTrack: t
|
|
1270
1227
|
}) => We({
|
|
1271
|
-
key:
|
|
1228
|
+
key: Z,
|
|
1272
1229
|
value: e,
|
|
1273
1230
|
canTrack: t
|
|
1274
1231
|
}), Ge = () => {
|
|
@@ -1297,18 +1254,25 @@ const Y = "builderSessionId", Ne = async ({
|
|
|
1297
1254
|
any() {
|
|
1298
1255
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || w === "reactNative";
|
|
1299
1256
|
}
|
|
1300
|
-
}, n = e.match(/Tablet|iPad/i),
|
|
1257
|
+
}, n = e.match(/Tablet|iPad/i), o = Ge();
|
|
1301
1258
|
return {
|
|
1302
|
-
urlPath:
|
|
1303
|
-
host: (
|
|
1259
|
+
urlPath: o == null ? void 0 : o.pathname,
|
|
1260
|
+
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
1304
1261
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
1305
1262
|
};
|
|
1306
1263
|
}, Je = async ({
|
|
1307
1264
|
canTrack: e
|
|
1308
1265
|
}) => {
|
|
1309
1266
|
if (!e)
|
|
1310
|
-
return {
|
|
1311
|
-
|
|
1267
|
+
return {
|
|
1268
|
+
visitorId: void 0,
|
|
1269
|
+
sessionId: void 0
|
|
1270
|
+
};
|
|
1271
|
+
const t = await Ne({
|
|
1272
|
+
canTrack: e
|
|
1273
|
+
}), n = Le({
|
|
1274
|
+
canTrack: e
|
|
1275
|
+
});
|
|
1312
1276
|
return {
|
|
1313
1277
|
sessionId: t,
|
|
1314
1278
|
visitorId: n
|
|
@@ -1317,29 +1281,29 @@ const Y = "builderSessionId", Ne = async ({
|
|
|
1317
1281
|
type: e,
|
|
1318
1282
|
canTrack: t,
|
|
1319
1283
|
apiKey: n,
|
|
1320
|
-
metadata:
|
|
1321
|
-
...
|
|
1284
|
+
metadata: o,
|
|
1285
|
+
...r
|
|
1322
1286
|
}) => ({
|
|
1323
1287
|
type: e,
|
|
1324
1288
|
data: {
|
|
1325
|
-
...
|
|
1289
|
+
...r,
|
|
1326
1290
|
metadata: {
|
|
1327
1291
|
url: location.href,
|
|
1328
|
-
...
|
|
1292
|
+
...o
|
|
1329
1293
|
},
|
|
1330
|
-
...await Je({
|
|
1294
|
+
...await Je({
|
|
1295
|
+
canTrack: t
|
|
1296
|
+
}),
|
|
1331
1297
|
userAttributes: He(),
|
|
1332
1298
|
ownerId: n
|
|
1333
1299
|
}
|
|
1334
1300
|
});
|
|
1335
1301
|
async function qe(e) {
|
|
1336
1302
|
if (!e.apiKey) {
|
|
1337
|
-
v.error(
|
|
1338
|
-
"Missing API key for track call. Please provide your API key."
|
|
1339
|
-
);
|
|
1303
|
+
v.error("Missing API key for track call. Please provide your API key.");
|
|
1340
1304
|
return;
|
|
1341
1305
|
}
|
|
1342
|
-
if (!!e.canTrack && !
|
|
1306
|
+
if (!!e.canTrack && !X() && !!(y() || w === "reactNative"))
|
|
1343
1307
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
1344
1308
|
method: "POST",
|
|
1345
1309
|
body: JSON.stringify({
|
|
@@ -1353,41 +1317,44 @@ async function qe(e) {
|
|
|
1353
1317
|
console.error("Failed to track: ", t);
|
|
1354
1318
|
});
|
|
1355
1319
|
}
|
|
1356
|
-
const
|
|
1320
|
+
const hn = (e) => qe({
|
|
1321
|
+
...e,
|
|
1322
|
+
canTrack: !0
|
|
1323
|
+
});
|
|
1357
1324
|
export {
|
|
1358
|
-
|
|
1325
|
+
Rt as A,
|
|
1359
1326
|
Ye as B,
|
|
1360
1327
|
tn as C,
|
|
1361
1328
|
en as F,
|
|
1362
1329
|
nn as I,
|
|
1363
|
-
|
|
1330
|
+
on as S,
|
|
1364
1331
|
w as T,
|
|
1365
1332
|
an as V,
|
|
1366
1333
|
qe as _,
|
|
1367
1334
|
Ze as a,
|
|
1368
|
-
|
|
1335
|
+
X as b,
|
|
1369
1336
|
x as c,
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1337
|
+
A as d,
|
|
1338
|
+
rn as e,
|
|
1339
|
+
V as f,
|
|
1340
|
+
rt as g,
|
|
1341
|
+
sn as h,
|
|
1342
|
+
y as i,
|
|
1343
|
+
cn as j,
|
|
1344
|
+
un as k,
|
|
1378
1345
|
v as l,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1346
|
+
ln as m,
|
|
1347
|
+
b as n,
|
|
1348
|
+
te as o,
|
|
1349
|
+
Ht as p,
|
|
1350
|
+
dn as q,
|
|
1351
|
+
mn as r,
|
|
1352
|
+
fn as s,
|
|
1353
|
+
pn as t,
|
|
1387
1354
|
oe as u,
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1355
|
+
ne as v,
|
|
1356
|
+
qt as w,
|
|
1357
|
+
hn as x,
|
|
1358
|
+
It as y,
|
|
1359
|
+
Ve as z
|
|
1393
1360
|
};
|