@builder.io/sdk-vue 0.4.5 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/block-styles.1cc420e2.js +77 -0
- package/packages/_vue2/dist/block-styles.2b3d669b.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.563cc17f.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.ea9a7e90.js +66 -0
- package/packages/_vue2/dist/block.0f28da5b.cjs +3 -0
- package/packages/_vue2/dist/block.7a80ed18.js +178 -0
- package/packages/_vue2/dist/blocks-wrapper.9aacce51.js +72 -0
- package/packages/_vue2/dist/blocks-wrapper.c53a5f23.cjs +1 -0
- package/packages/_vue2/dist/component-ref.a631e3d7.cjs +1 -0
- package/packages/_vue2/dist/component-ref.af9c1a83.js +98 -0
- package/packages/_vue2/dist/content.2c7fa09f.cjs +1 -0
- package/packages/_vue2/dist/content.cb96a18a.js +913 -0
- package/packages/_vue2/dist/css.22755cda.js +21 -0
- package/packages/_vue2/dist/css.30299cfb.cjs +6 -0
- package/packages/_vue2/dist/enable-editor.852e9797.js +427 -0
- package/packages/_vue2/dist/enable-editor.c1b99af3.cjs +1 -0
- package/packages/_vue2/dist/evaluate.80a7f105.cjs +31 -0
- package/packages/_vue2/dist/evaluate.ce05cec9.js +4970 -0
- package/packages/_vue2/dist/get-block-actions.93f4e72e.cjs +1 -0
- package/packages/_vue2/dist/get-block-actions.c73f00d1.js +36 -0
- package/packages/_vue2/dist/get-block-properties.15a37ec1.js +48 -0
- package/packages/_vue2/dist/get-block-properties.d0235e56.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.d59ca820.js +52 -0
- package/packages/_vue2/dist/get-processed-block.d8938868.cjs +1 -0
- package/packages/_vue2/dist/index.1021dd83.cjs +32 -0
- package/packages/_vue2/dist/{index.dcd9672f.js → index.ed62d736.js} +565 -575
- package/packages/_vue2/dist/inlined-script.3e3c93e8.cjs +1 -0
- package/packages/_vue2/dist/{inlined-script.5b4b5fc3.js → inlined-script.cf733bda.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.759d26e8.js → inlined-styles.2709172e.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.9ddda3d7.cjs → inlined-styles.cf1e15e1.cjs} +1 -1
- package/packages/_vue2/dist/interactive-element.d51dde5a.js +42 -0
- package/packages/_vue2/dist/interactive-element.ea2a7d23.cjs +1 -0
- package/packages/_vue2/dist/repeated-block.9a46bc14.js +38 -0
- package/packages/_vue2/dist/repeated-block.a299d789.cjs +1 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +10 -10
- 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/components.context.d.ts +7 -0
- 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.40b9604d.js} +7 -5
- package/packages/_vue2/dist/{render-styles.ba0e223a.cjs → styles.f4f6200a.cjs} +4 -4
- package/packages/_vue3/dist/block-wrapper.33cc2e78.js +54 -0
- package/packages/_vue3/dist/block-wrapper.d1ace9c6.cjs +1 -0
- package/packages/_vue3/dist/component-ref.20d41b64.js +111 -0
- package/packages/_vue3/dist/component-ref.7c98446d.cjs +1 -0
- package/packages/_vue3/dist/get-block-actions.1279eafb.js +79 -0
- package/packages/_vue3/dist/get-block-actions.9d2cfc9a.cjs +1 -0
- package/packages/_vue3/dist/index.a657fd9d.js +8094 -0
- package/packages/_vue3/dist/index.c5eee389.cjs +99 -0
- package/packages/_vue3/dist/repeated-block.48916c9e.js +33 -0
- package/packages/_vue3/dist/repeated-block.5aa51bc7.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/components.context.d.ts +7 -0
- 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,51 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as g } from "vue";
|
|
2
|
+
function V(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: V };
|
|
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
|
-
var
|
|
47
|
-
a.render = function(
|
|
48
|
-
return d.call(l), m
|
|
44
|
+
var f = a.render;
|
|
45
|
+
a.render = function(m, l) {
|
|
46
|
+
return d.call(l), f(m, l);
|
|
49
47
|
};
|
|
50
48
|
} else {
|
|
51
49
|
var p = a.beforeCreate;
|
|
@@ -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
|
|
70
|
+
const nn = ot.exports, A = (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
|
-
},
|
|
86
|
+
}, on = (e, t = F) => `@media (max-width: ${t[e].max}px)`, rt = ({
|
|
87
|
+
small: e,
|
|
88
|
+
medium: t
|
|
89
|
+
}) => {
|
|
91
90
|
const n = A(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(() => Et).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.2709172e.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
|
|
261
|
+
const rn = ut.exports, dt = g({
|
|
281
262
|
name: "builder-fragment-component",
|
|
282
263
|
props: []
|
|
283
264
|
});
|
|
284
|
-
var
|
|
265
|
+
var mt = function() {
|
|
285
266
|
var t = this, n = t._self._c;
|
|
286
267
|
return t._self._setupProxy, n("span", [t._t("default")], 2);
|
|
287
|
-
},
|
|
268
|
+
}, ft = [], pt = /* @__PURE__ */ b(
|
|
269
|
+
dt,
|
|
288
270
|
mt,
|
|
289
|
-
|
|
290
|
-
ht,
|
|
271
|
+
ft,
|
|
291
272
|
!1,
|
|
292
273
|
null,
|
|
293
274
|
null,
|
|
294
275
|
null,
|
|
295
276
|
null
|
|
296
277
|
);
|
|
297
|
-
const
|
|
278
|
+
const sn = 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,114 @@ 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
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
387
|
+
const an = vt.exports, St = Symbol(), kt = {
|
|
388
|
+
Builder: {
|
|
389
|
+
content: null,
|
|
390
|
+
context: {},
|
|
391
|
+
localState: void 0,
|
|
392
|
+
rootSetState() {
|
|
393
|
+
},
|
|
394
|
+
rootState: {},
|
|
395
|
+
apiKey: null,
|
|
396
|
+
apiVersion: void 0,
|
|
397
|
+
componentInfos: {},
|
|
398
|
+
inheritedStyles: {}
|
|
399
|
+
},
|
|
400
|
+
key: St
|
|
401
|
+
}, xt = Symbol(), wt = {
|
|
402
|
+
Components: { registeredComponents: {} },
|
|
403
|
+
key: xt
|
|
404
|
+
}, Ct = () => import("./block-styles.1cc420e2.js").then((e) => e.default).catch((e) => {
|
|
419
405
|
throw console.error(
|
|
420
|
-
"Error while attempting to dynamically import component BlockStyles at
|
|
406
|
+
"Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
|
|
421
407
|
e
|
|
422
408
|
), e;
|
|
423
|
-
}),
|
|
409
|
+
}), $t = () => import("./block.7a80ed18.js").then((e) => e.default).catch((e) => {
|
|
424
410
|
throw console.error(
|
|
425
|
-
"Error while attempting to dynamically import component
|
|
411
|
+
"Error while attempting to dynamically import component Block at ../block/block.vue",
|
|
426
412
|
e
|
|
427
413
|
), e;
|
|
428
|
-
}),
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
414
|
+
}), Tt = () => import("./blocks-wrapper.9aacce51.js").then((e) => e.default).catch((e) => {
|
|
415
|
+
throw console.error(
|
|
416
|
+
"Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
|
|
417
|
+
e
|
|
418
|
+
), e;
|
|
419
|
+
}), It = g({
|
|
420
|
+
name: "builder-blocks",
|
|
421
|
+
components: {
|
|
422
|
+
"blocks-wrapper": Tt,
|
|
423
|
+
block: $t,
|
|
424
|
+
"block-styles": Ct
|
|
440
425
|
},
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
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
|
-
}
|
|
426
|
+
props: [
|
|
427
|
+
"blocks",
|
|
428
|
+
"parent",
|
|
429
|
+
"path",
|
|
430
|
+
"styleProp",
|
|
431
|
+
"context",
|
|
432
|
+
"registeredComponents"
|
|
433
|
+
],
|
|
434
|
+
inject: {
|
|
435
|
+
builderContext: kt.key,
|
|
436
|
+
componentsContext: wt.key
|
|
477
437
|
}
|
|
478
438
|
});
|
|
479
|
-
var
|
|
439
|
+
var Rt = function() {
|
|
480
440
|
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 } });
|
|
441
|
+
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) {
|
|
442
|
+
return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
|
|
443
|
+
}) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
|
|
444
|
+
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context || t.builderContext } });
|
|
493
445
|
}) : t._e()], 2);
|
|
494
|
-
},
|
|
495
|
-
|
|
496
|
-
Tt,
|
|
446
|
+
}, Vt = [], At = /* @__PURE__ */ b(
|
|
447
|
+
It,
|
|
497
448
|
Rt,
|
|
449
|
+
Vt,
|
|
498
450
|
!1,
|
|
499
451
|
null,
|
|
500
|
-
|
|
452
|
+
null,
|
|
501
453
|
null,
|
|
502
454
|
null
|
|
503
455
|
);
|
|
504
|
-
const
|
|
456
|
+
const Ot = At.exports, Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
505
457
|
__proto__: null,
|
|
506
|
-
default:
|
|
507
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
458
|
+
default: Ot
|
|
459
|
+
}, Symbol.toStringTag, { value: "Module" })), Pt = g({
|
|
508
460
|
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
|
-
}
|
|
461
|
+
props: ["attributes", "maxWidth"],
|
|
462
|
+
data() {
|
|
463
|
+
return { filterAttrs: V };
|
|
526
464
|
}
|
|
527
465
|
});
|
|
528
|
-
var
|
|
466
|
+
var jt = function() {
|
|
529
467
|
var t = this, n = t._self._c;
|
|
530
468
|
return t._self._setupProxy, n("section", t._g(t._b({ style: {
|
|
531
469
|
width: "100%",
|
|
@@ -538,87 +476,100 @@ var Ot = function() {
|
|
|
538
476
|
alignItems: "stretch",
|
|
539
477
|
marginLeft: "auto",
|
|
540
478
|
marginRight: "auto"
|
|
541
|
-
} }, "section", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [t._t("default")], 2);
|
|
542
|
-
},
|
|
543
|
-
Et,
|
|
544
|
-
Ot,
|
|
479
|
+
} }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
|
|
480
|
+
}, Bt = [], Nt = /* @__PURE__ */ b(
|
|
545
481
|
Pt,
|
|
482
|
+
jt,
|
|
483
|
+
Bt,
|
|
546
484
|
!1,
|
|
547
485
|
null,
|
|
548
486
|
null,
|
|
549
487
|
null,
|
|
550
488
|
null
|
|
551
489
|
);
|
|
552
|
-
const
|
|
490
|
+
const cn = Nt.exports;
|
|
491
|
+
function y() {
|
|
492
|
+
return typeof window < "u" && typeof document < "u";
|
|
493
|
+
}
|
|
494
|
+
const C = "[Builder.io]: ", v = {
|
|
553
495
|
log: (...e) => console.log(C, ...e),
|
|
554
496
|
error: (...e) => console.error(C, ...e),
|
|
555
497
|
warn: (...e) => console.warn(C, ...e),
|
|
556
498
|
debug: (...e) => console.debug(C, ...e)
|
|
557
|
-
}, x = (e) => e != null,
|
|
499
|
+
}, x = (e) => e != null, Ft = (e) => {
|
|
558
500
|
if (e === "localhost" || e === "127.0.0.1")
|
|
559
501
|
return e;
|
|
560
502
|
const t = e.split(".");
|
|
561
503
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
562
|
-
},
|
|
504
|
+
}, U = ({
|
|
563
505
|
name: e,
|
|
564
506
|
canTrack: t
|
|
565
507
|
}) => {
|
|
566
508
|
var n;
|
|
567
509
|
try {
|
|
568
|
-
return t ? (n = document.cookie.split("; ").find((
|
|
569
|
-
} catch (
|
|
570
|
-
v.warn("[COOKIE] GET error: ", (
|
|
510
|
+
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
511
|
+
} catch (o) {
|
|
512
|
+
v.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
571
513
|
return;
|
|
572
514
|
}
|
|
573
|
-
},
|
|
574
|
-
["secure", ""],
|
|
575
|
-
["SameSite", "None"]
|
|
576
|
-
], Mt = ({
|
|
515
|
+
}, M = async (e) => U(e), Ut = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(x).join("; "), Mt = [["secure", ""], ["SameSite", "None"]], Wt = ({
|
|
577
516
|
name: e,
|
|
578
517
|
value: t,
|
|
579
518
|
expires: n
|
|
580
519
|
}) => {
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
...s,
|
|
584
|
-
["path", "/"],
|
|
585
|
-
["domain", Bt(window.location.hostname)],
|
|
586
|
-
...o
|
|
587
|
-
];
|
|
588
|
-
return Nt(i);
|
|
520
|
+
const r = (y() ? location.protocol === "https:" : !0) ? Mt : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Ft(window.location.hostname)], ...r];
|
|
521
|
+
return Ut(i);
|
|
589
522
|
}, W = async ({
|
|
590
523
|
name: e,
|
|
591
524
|
value: t,
|
|
592
525
|
expires: n,
|
|
593
|
-
canTrack:
|
|
526
|
+
canTrack: o
|
|
594
527
|
}) => {
|
|
595
528
|
try {
|
|
596
|
-
if (!
|
|
529
|
+
if (!o)
|
|
597
530
|
return;
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
531
|
+
const r = Wt({
|
|
532
|
+
name: e,
|
|
533
|
+
value: t,
|
|
534
|
+
expires: n
|
|
535
|
+
});
|
|
536
|
+
document.cookie = r;
|
|
537
|
+
} catch (r) {
|
|
538
|
+
v.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
602
539
|
}
|
|
603
|
-
},
|
|
540
|
+
}, Lt = "builder.tests", O = (e) => `${Lt}.${e}`, Kt = ({
|
|
541
|
+
contentId: e
|
|
542
|
+
}) => M({
|
|
543
|
+
name: O(e),
|
|
544
|
+
canTrack: !0
|
|
545
|
+
}), zt = ({
|
|
546
|
+
contentId: e
|
|
547
|
+
}) => U({
|
|
548
|
+
name: O(e),
|
|
549
|
+
canTrack: !0
|
|
550
|
+
}), Dt = ({
|
|
604
551
|
contentId: e,
|
|
605
552
|
value: t
|
|
606
|
-
}) => W({
|
|
553
|
+
}) => W({
|
|
554
|
+
name: O(e),
|
|
555
|
+
value: t,
|
|
556
|
+
canTrack: !0
|
|
557
|
+
}), L = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, Gt = ({
|
|
607
558
|
id: e,
|
|
608
559
|
variations: t
|
|
609
560
|
}) => {
|
|
610
|
-
var
|
|
561
|
+
var r;
|
|
611
562
|
let n = 0;
|
|
612
|
-
const
|
|
563
|
+
const o = Math.random();
|
|
613
564
|
for (const s in t) {
|
|
614
|
-
const i = (
|
|
615
|
-
if (n += i,
|
|
565
|
+
const i = (r = t[s]) == null ? void 0 : r.testRatio;
|
|
566
|
+
if (n += i, o < n)
|
|
616
567
|
return s;
|
|
617
568
|
}
|
|
618
569
|
return e;
|
|
619
570
|
}, K = (e) => {
|
|
620
|
-
const t =
|
|
621
|
-
return
|
|
571
|
+
const t = Gt(e);
|
|
572
|
+
return Dt({
|
|
622
573
|
contentId: e.id,
|
|
623
574
|
value: t
|
|
624
575
|
}).catch((n) => {
|
|
@@ -637,7 +588,7 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
|
|
|
637
588
|
testVariationId: n.id,
|
|
638
589
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
639
590
|
};
|
|
640
|
-
},
|
|
591
|
+
}, Ht = ({
|
|
641
592
|
item: e,
|
|
642
593
|
canTrack: t
|
|
643
594
|
}) => {
|
|
@@ -647,175 +598,211 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
|
|
|
647
598
|
return;
|
|
648
599
|
if (!L(e))
|
|
649
600
|
return e;
|
|
650
|
-
const n =
|
|
601
|
+
const n = zt({
|
|
651
602
|
contentId: e.id
|
|
652
603
|
}) || K({
|
|
653
604
|
variations: e.variations,
|
|
654
605
|
id: e.id
|
|
655
|
-
}),
|
|
606
|
+
}), o = z({
|
|
607
|
+
item: e,
|
|
608
|
+
testGroupId: n
|
|
609
|
+
});
|
|
656
610
|
return {
|
|
657
611
|
...e,
|
|
658
|
-
...
|
|
612
|
+
...o
|
|
659
613
|
};
|
|
660
|
-
},
|
|
614
|
+
}, Jt = async ({
|
|
661
615
|
item: e,
|
|
662
616
|
canTrack: t
|
|
663
617
|
}) => {
|
|
664
618
|
if (!t || !L(e))
|
|
665
619
|
return e;
|
|
666
|
-
const
|
|
620
|
+
const o = await Kt({
|
|
667
621
|
contentId: e.id
|
|
668
622
|
}) || K({
|
|
669
623
|
variations: e.variations,
|
|
670
624
|
id: e.id
|
|
671
|
-
}),
|
|
625
|
+
}), r = z({
|
|
626
|
+
item: e,
|
|
627
|
+
testGroupId: o
|
|
628
|
+
});
|
|
672
629
|
return {
|
|
673
630
|
...e,
|
|
674
|
-
...
|
|
631
|
+
...r
|
|
675
632
|
};
|
|
676
633
|
}, I = (e) => x(e) ? e : !0;
|
|
677
|
-
function
|
|
634
|
+
function Xt() {
|
|
678
635
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
679
636
|
}
|
|
680
|
-
function
|
|
681
|
-
const e =
|
|
637
|
+
function qt() {
|
|
638
|
+
const e = Xt().fetch;
|
|
682
639
|
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");
|
|
640
|
+
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
641
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
687
642
|
return e;
|
|
688
643
|
}
|
|
689
|
-
const
|
|
690
|
-
function
|
|
691
|
-
return Object.keys(e).reduce((
|
|
692
|
-
const s = e[
|
|
693
|
-
return [
|
|
694
|
-
|
|
695
|
-
s
|
|
696
|
-
|
|
697
|
-
|
|
644
|
+
const Qt = qt();
|
|
645
|
+
function R(e, t = null, n = ".") {
|
|
646
|
+
return Object.keys(e).reduce((o, r) => {
|
|
647
|
+
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
648
|
+
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
649
|
+
...o,
|
|
650
|
+
...R(s, i, n)
|
|
651
|
+
} : {
|
|
652
|
+
...o,
|
|
653
|
+
[i]: s
|
|
654
|
+
};
|
|
698
655
|
}, {});
|
|
699
656
|
}
|
|
700
|
-
const j = "builder.",
|
|
657
|
+
const j = "builder.", Yt = "options.", Zt = (e) => {
|
|
701
658
|
const t = {};
|
|
702
|
-
return e.forEach((n,
|
|
703
|
-
t[
|
|
659
|
+
return e.forEach((n, o) => {
|
|
660
|
+
t[o] = n;
|
|
704
661
|
}), t;
|
|
705
|
-
},
|
|
662
|
+
}, te = (e) => {
|
|
706
663
|
if (!e)
|
|
707
664
|
return {};
|
|
708
|
-
const t =
|
|
709
|
-
return Object.keys(t).forEach((
|
|
710
|
-
if (
|
|
711
|
-
const
|
|
712
|
-
n[
|
|
665
|
+
const t = D(e), n = {};
|
|
666
|
+
return Object.keys(t).forEach((o) => {
|
|
667
|
+
if (o.startsWith(j)) {
|
|
668
|
+
const r = o.replace(j, "").replace(Yt, "");
|
|
669
|
+
n[r] = t[o];
|
|
713
670
|
}
|
|
714
671
|
}), n;
|
|
715
|
-
},
|
|
672
|
+
}, ee = () => {
|
|
716
673
|
if (!y())
|
|
717
674
|
return {};
|
|
718
675
|
const e = new URLSearchParams(window.location.search);
|
|
719
|
-
return
|
|
720
|
-
},
|
|
676
|
+
return te(e);
|
|
677
|
+
}, D = (e) => e instanceof URLSearchParams ? Zt(e) : e, ne = "v3", E = (e) => {
|
|
721
678
|
const {
|
|
722
679
|
limit: t = 30,
|
|
723
680
|
userAttributes: n,
|
|
724
|
-
query:
|
|
725
|
-
noTraverse:
|
|
681
|
+
query: o,
|
|
682
|
+
noTraverse: r = !1,
|
|
726
683
|
model: s,
|
|
727
684
|
apiKey: i,
|
|
728
685
|
includeRefs: u = !0,
|
|
729
686
|
enrich: a,
|
|
730
687
|
locale: d,
|
|
731
|
-
apiVersion:
|
|
688
|
+
apiVersion: f = ne
|
|
732
689
|
} = e;
|
|
733
690
|
if (!i)
|
|
734
691
|
throw new Error("Missing API key");
|
|
735
|
-
if (!["v2", "v3"].includes(
|
|
736
|
-
throw new Error(
|
|
737
|
-
|
|
738
|
-
)
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
748
|
-
const l = V({ query: r });
|
|
692
|
+
if (!["v2", "v3"].includes(f))
|
|
693
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);
|
|
694
|
+
const p = new URL(`https://cdn.builder.io/api/${f}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${r}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`), c = {
|
|
695
|
+
...ee(),
|
|
696
|
+
...D(e.options || {})
|
|
697
|
+
}, m = R(c);
|
|
698
|
+
for (const l in m)
|
|
699
|
+
p.searchParams.set(l, String(m[l]));
|
|
700
|
+
if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
701
|
+
const l = R({
|
|
702
|
+
query: o
|
|
703
|
+
});
|
|
749
704
|
for (const h in l)
|
|
750
705
|
p.searchParams.set(h, JSON.stringify(l[h]));
|
|
751
706
|
}
|
|
752
707
|
return p;
|
|
753
|
-
},
|
|
754
|
-
async function
|
|
755
|
-
const t = await
|
|
756
|
-
|
|
708
|
+
}, oe = (e) => "results" in e;
|
|
709
|
+
async function re(e) {
|
|
710
|
+
const t = await ae({
|
|
711
|
+
...e,
|
|
712
|
+
limit: 1
|
|
713
|
+
});
|
|
714
|
+
return t && t.results[0] || null;
|
|
757
715
|
}
|
|
758
|
-
const
|
|
759
|
-
const t =
|
|
760
|
-
return await (await
|
|
761
|
-
},
|
|
762
|
-
const
|
|
763
|
-
if (
|
|
716
|
+
const se = async (e) => {
|
|
717
|
+
const t = E(e);
|
|
718
|
+
return await (await Qt(t.href)).json();
|
|
719
|
+
}, ie = async (e, t, n = E(e)) => {
|
|
720
|
+
const o = I(e.canTrack);
|
|
721
|
+
if (n.search.includes("preview="), !o || !(y() || w === "reactNative"))
|
|
764
722
|
return t;
|
|
765
723
|
try {
|
|
766
724
|
const r = [];
|
|
767
|
-
for (const
|
|
768
|
-
r.push(await
|
|
725
|
+
for (const s of t.results)
|
|
726
|
+
r.push(await Jt({
|
|
727
|
+
item: s,
|
|
728
|
+
canTrack: o
|
|
729
|
+
}));
|
|
769
730
|
t.results = r;
|
|
770
731
|
} catch (r) {
|
|
771
732
|
v.error("Could not process A/B tests. ", r);
|
|
772
733
|
}
|
|
773
734
|
return t;
|
|
774
735
|
};
|
|
775
|
-
async function
|
|
736
|
+
async function ae(e) {
|
|
776
737
|
try {
|
|
777
|
-
const t =
|
|
778
|
-
return
|
|
738
|
+
const t = E(e), n = await se(e);
|
|
739
|
+
return oe(n) ? ie(e, n) : (v.error("Error fetching data. ", {
|
|
740
|
+
url: t,
|
|
741
|
+
content: n,
|
|
742
|
+
options: e
|
|
743
|
+
}), null);
|
|
779
744
|
} catch (t) {
|
|
780
745
|
return v.error("Error fetching data. ", t), null;
|
|
781
746
|
}
|
|
782
747
|
}
|
|
783
|
-
const
|
|
748
|
+
const ce = async ({
|
|
749
|
+
builderContextValue: e,
|
|
750
|
+
symbol: t
|
|
751
|
+
}) => {
|
|
752
|
+
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
753
|
+
return re({
|
|
754
|
+
model: t.model,
|
|
755
|
+
apiKey: e.apiKey,
|
|
756
|
+
apiVersion: e.apiVersion,
|
|
757
|
+
...(t == null ? void 0 : t.entry) && {
|
|
758
|
+
query: {
|
|
759
|
+
id: t.entry
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}).catch((n) => {
|
|
763
|
+
v.error("Could not fetch symbol content: ", n);
|
|
764
|
+
});
|
|
765
|
+
}, le = () => Promise.resolve().then(() => Be).then((e) => e.default).catch((e) => {
|
|
784
766
|
throw console.error(
|
|
785
|
-
"Error while attempting to dynamically import component
|
|
767
|
+
"Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
|
|
786
768
|
e
|
|
787
769
|
), e;
|
|
788
|
-
}),
|
|
770
|
+
}), ue = g({
|
|
789
771
|
name: "builder-symbol",
|
|
790
|
-
components: {
|
|
791
|
-
props: [
|
|
772
|
+
components: { "content-variants": le },
|
|
773
|
+
props: [
|
|
774
|
+
"js",
|
|
775
|
+
"attributes",
|
|
776
|
+
"symbol",
|
|
777
|
+
"dynamic",
|
|
778
|
+
"builderContext",
|
|
779
|
+
"builderComponents"
|
|
780
|
+
],
|
|
792
781
|
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
|
|
782
|
+
var e;
|
|
783
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
|
|
806
784
|
},
|
|
807
785
|
mounted() {
|
|
808
|
-
this.
|
|
786
|
+
this.setContent();
|
|
809
787
|
},
|
|
810
788
|
watch: {
|
|
811
789
|
onUpdateHook0: {
|
|
812
790
|
handler() {
|
|
813
|
-
this.
|
|
791
|
+
this.setContent();
|
|
814
792
|
},
|
|
815
793
|
immediate: !0
|
|
816
794
|
}
|
|
817
795
|
},
|
|
818
796
|
computed: {
|
|
797
|
+
className() {
|
|
798
|
+
var e, t;
|
|
799
|
+
return [
|
|
800
|
+
...Object.keys(this.attributes.class),
|
|
801
|
+
"builder-symbol",
|
|
802
|
+
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
803
|
+
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
804
|
+
].filter(Boolean).join(" ");
|
|
805
|
+
},
|
|
819
806
|
onUpdateHook0() {
|
|
820
807
|
return {
|
|
821
808
|
0: this.symbol
|
|
@@ -823,90 +810,64 @@ const se = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((
|
|
|
823
810
|
}
|
|
824
811
|
},
|
|
825
812
|
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);
|
|
813
|
+
setContent() {
|
|
814
|
+
this.contentToUse || ce({
|
|
815
|
+
symbol: this.symbol,
|
|
816
|
+
builderContextValue: this.builderContext
|
|
817
|
+
}).then((e) => {
|
|
818
|
+
e && (this.contentToUse = e);
|
|
841
819
|
});
|
|
842
820
|
},
|
|
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
821
|
_classStringToObject(e) {
|
|
859
822
|
const t = {};
|
|
860
823
|
if (typeof e != "string")
|
|
861
824
|
return t;
|
|
862
825
|
const n = e.trim().split(/\s+/);
|
|
863
|
-
for (const
|
|
864
|
-
t[
|
|
826
|
+
for (const o of n)
|
|
827
|
+
t[o] = !0;
|
|
865
828
|
return t;
|
|
866
829
|
}
|
|
867
830
|
}
|
|
868
831
|
});
|
|
869
|
-
var
|
|
870
|
-
var
|
|
832
|
+
var de = function() {
|
|
833
|
+
var o, r, s, i;
|
|
871
834
|
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,
|
|
835
|
+
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: {
|
|
836
|
+
...(o = t.symbol) == null ? void 0 : o.data,
|
|
876
837
|
...t.builderContext.localState,
|
|
877
|
-
...(s = (
|
|
838
|
+
...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
|
|
878
839
|
}, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
|
|
879
|
-
},
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
840
|
+
}, me = [], fe = /* @__PURE__ */ b(
|
|
841
|
+
ue,
|
|
842
|
+
de,
|
|
843
|
+
me,
|
|
883
844
|
!1,
|
|
884
845
|
null,
|
|
885
846
|
null,
|
|
886
847
|
null,
|
|
887
848
|
null
|
|
888
849
|
);
|
|
889
|
-
const
|
|
850
|
+
const ln = fe.exports, pe = g({
|
|
890
851
|
name: "builder-text",
|
|
891
852
|
props: ["text"]
|
|
892
853
|
});
|
|
893
|
-
var
|
|
894
|
-
var
|
|
854
|
+
var he = function() {
|
|
855
|
+
var o;
|
|
895
856
|
var t = this, n = t._self._c;
|
|
896
857
|
return t._self._setupProxy, n("span", { staticClass: "builder-text", style: {
|
|
897
858
|
outline: "none"
|
|
898
|
-
}, domProps: { innerHTML: t._s((
|
|
899
|
-
},
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
859
|
+
}, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
|
|
860
|
+
}, _e = [], ge = /* @__PURE__ */ b(
|
|
861
|
+
pe,
|
|
862
|
+
he,
|
|
863
|
+
_e,
|
|
903
864
|
!1,
|
|
904
865
|
null,
|
|
905
866
|
null,
|
|
906
867
|
null,
|
|
907
868
|
null
|
|
908
869
|
);
|
|
909
|
-
const
|
|
870
|
+
const un = ge.exports, be = g({
|
|
910
871
|
name: "builder-video",
|
|
911
872
|
props: [
|
|
912
873
|
"autoPlay",
|
|
@@ -915,6 +876,7 @@ const sn = me.exports, pe = b({
|
|
|
915
876
|
"loop",
|
|
916
877
|
"playsInline",
|
|
917
878
|
"attributes",
|
|
879
|
+
"preload",
|
|
918
880
|
"fit",
|
|
919
881
|
"position",
|
|
920
882
|
"video",
|
|
@@ -948,38 +910,38 @@ const sn = me.exports, pe = b({
|
|
|
948
910
|
}
|
|
949
911
|
}
|
|
950
912
|
});
|
|
951
|
-
var
|
|
952
|
-
var
|
|
913
|
+
var ye = function() {
|
|
914
|
+
var o;
|
|
953
915
|
var t = this, n = t._self._c;
|
|
954
916
|
return t._self._setupProxy, n("video", t._b({ style: {
|
|
955
917
|
width: "100%",
|
|
956
918
|
height: "100%",
|
|
957
|
-
...(
|
|
919
|
+
...(o = t.attributes) == null ? void 0 : o.style,
|
|
958
920
|
objectFit: t.fit,
|
|
959
921
|
objectPosition: t.position,
|
|
960
922
|
borderRadius: 1
|
|
961
|
-
}, attrs: { src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
923
|
+
}, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
|
|
924
|
+
}, ve = [], Se = /* @__PURE__ */ b(
|
|
925
|
+
be,
|
|
926
|
+
ye,
|
|
927
|
+
ve,
|
|
966
928
|
!1,
|
|
967
929
|
null,
|
|
968
930
|
null,
|
|
969
931
|
null,
|
|
970
932
|
null
|
|
971
933
|
);
|
|
972
|
-
const
|
|
934
|
+
const dn = Se.exports, $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
973
935
|
...t,
|
|
974
936
|
testVariationId: t.id,
|
|
975
937
|
id: e == null ? void 0 : e.id
|
|
976
|
-
})),
|
|
938
|
+
})), ke = ({
|
|
977
939
|
canTrack: e,
|
|
978
940
|
content: t
|
|
979
941
|
}) => !(!($(t).length > 0) || !e);
|
|
980
|
-
function
|
|
942
|
+
function xe(e, t, n) {
|
|
981
943
|
var i;
|
|
982
|
-
function
|
|
944
|
+
function o() {
|
|
983
945
|
function u(l, h, S) {
|
|
984
946
|
let k = "";
|
|
985
947
|
if (S) {
|
|
@@ -999,45 +961,47 @@ function ye(e, t, n) {
|
|
|
999
961
|
}
|
|
1000
962
|
return null;
|
|
1001
963
|
}
|
|
1002
|
-
const d = `builder.tests.${e}`,
|
|
1003
|
-
if (
|
|
1004
|
-
return
|
|
964
|
+
const d = `builder.tests.${e}`, f = a(d), p = t.map((l) => l.id).concat(e);
|
|
965
|
+
if (f && p.includes(f))
|
|
966
|
+
return f;
|
|
1005
967
|
let c = 0;
|
|
1006
|
-
const
|
|
968
|
+
const m = Math.random();
|
|
1007
969
|
for (let l = 0; l < t.length; l++) {
|
|
1008
970
|
const h = t[l], S = h.testRatio;
|
|
1009
|
-
if (c += S,
|
|
971
|
+
if (c += S, m < c)
|
|
1010
972
|
return u(d, h.id), h.id;
|
|
1011
973
|
}
|
|
1012
974
|
return u(d, e), e;
|
|
1013
975
|
}
|
|
1014
|
-
const
|
|
976
|
+
const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
|
|
1015
977
|
if (n) {
|
|
1016
978
|
s.remove();
|
|
1017
979
|
const u = document.currentScript;
|
|
1018
980
|
u == null || u.remove();
|
|
1019
981
|
} else {
|
|
1020
|
-
const u = t.concat({
|
|
982
|
+
const u = t.concat({
|
|
983
|
+
id: e
|
|
984
|
+
}).filter((a) => a.id !== r).map((a) => `.variant-${a.id} { display: none; }
|
|
1021
985
|
`).join("");
|
|
1022
986
|
s.innerHTML = u;
|
|
1023
987
|
}
|
|
1024
988
|
}
|
|
1025
|
-
function
|
|
989
|
+
function we(e, t, n) {
|
|
1026
990
|
var a;
|
|
1027
991
|
if (!navigator.cookieEnabled)
|
|
1028
992
|
return;
|
|
1029
|
-
function
|
|
1030
|
-
const
|
|
993
|
+
function o(d) {
|
|
994
|
+
const f = d + "=", p = document.cookie.split(";");
|
|
1031
995
|
for (let c = 0; c < p.length; c++) {
|
|
1032
|
-
let
|
|
1033
|
-
for (;
|
|
1034
|
-
|
|
1035
|
-
if (
|
|
1036
|
-
return
|
|
996
|
+
let m = p[c];
|
|
997
|
+
for (; m.charAt(0) === " "; )
|
|
998
|
+
m = m.substring(1, m.length);
|
|
999
|
+
if (m.indexOf(f) === 0)
|
|
1000
|
+
return m.substring(f.length, m.length);
|
|
1037
1001
|
}
|
|
1038
1002
|
return null;
|
|
1039
1003
|
}
|
|
1040
|
-
const
|
|
1004
|
+
const r = `builder.tests.${t}`, s = o(r), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
|
|
1041
1005
|
if (s === e) {
|
|
1042
1006
|
if (u)
|
|
1043
1007
|
return;
|
|
@@ -1047,40 +1011,38 @@ function ve(e, t, n) {
|
|
|
1047
1011
|
return;
|
|
1048
1012
|
}
|
|
1049
1013
|
}
|
|
1050
|
-
const
|
|
1051
|
-
const e =
|
|
1014
|
+
const Ce = (e) => e === "react" || e === "reactNative", G = Ce(w), H = "builderIoAbTest", J = "builderIoRenderContent", $e = () => {
|
|
1015
|
+
const e = xe.toString().replace(/\s+/g, " "), t = we.toString().replace(/\s+/g, " ");
|
|
1052
1016
|
return `
|
|
1053
|
-
window.${
|
|
1054
|
-
window.${
|
|
1017
|
+
window.${H} = ${e}
|
|
1018
|
+
window.${J} = ${t}
|
|
1055
1019
|
`;
|
|
1056
|
-
},
|
|
1057
|
-
window.${
|
|
1058
|
-
e
|
|
1059
|
-
)}, ${J})`, cn = ({
|
|
1020
|
+
}, Te = (e, t) => `
|
|
1021
|
+
window.${H}("${t}",${JSON.stringify(e)}, ${G})`, mn = ({
|
|
1060
1022
|
contentId: e,
|
|
1061
1023
|
variationId: t
|
|
1062
1024
|
}) => `
|
|
1063
|
-
window.${
|
|
1025
|
+
window.${J}("${t}", "${e}", ${G})`, Ie = () => import("./content.cb96a18a.js").then((e) => e.default).catch((e) => {
|
|
1064
1026
|
throw console.error(
|
|
1065
|
-
"Error while attempting to dynamically import component
|
|
1027
|
+
"Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
|
|
1066
1028
|
e
|
|
1067
1029
|
), e;
|
|
1068
|
-
}),
|
|
1030
|
+
}), Re = () => import("./inlined-styles.2709172e.js").then((e) => e.default).catch((e) => {
|
|
1069
1031
|
throw console.error(
|
|
1070
1032
|
"Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
|
|
1071
1033
|
e
|
|
1072
1034
|
), e;
|
|
1073
|
-
}),
|
|
1035
|
+
}), Ve = () => import("./inlined-script.cf733bda.js").then((e) => e.default).catch((e) => {
|
|
1074
1036
|
throw console.error(
|
|
1075
1037
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
1076
1038
|
e
|
|
1077
1039
|
), e;
|
|
1078
|
-
}),
|
|
1079
|
-
name: "
|
|
1040
|
+
}), Ae = g({
|
|
1041
|
+
name: "content-variants",
|
|
1080
1042
|
components: {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1043
|
+
"inlined-script": Ve,
|
|
1044
|
+
"inlined-styles": Re,
|
|
1045
|
+
"content-component": Ie
|
|
1084
1046
|
},
|
|
1085
1047
|
props: [
|
|
1086
1048
|
"canTrack",
|
|
@@ -1097,87 +1059,91 @@ const Se = (e) => e === "react" || e === "reactNative", J = Se(w), X = "builderI
|
|
|
1097
1059
|
"enrich"
|
|
1098
1060
|
],
|
|
1099
1061
|
data() {
|
|
1100
|
-
var e;
|
|
1101
1062
|
return {
|
|
1102
|
-
shouldRenderVariants:
|
|
1063
|
+
shouldRenderVariants: ke({
|
|
1103
1064
|
canTrack: I(this.canTrack),
|
|
1104
1065
|
content: this.content
|
|
1105
1066
|
}),
|
|
1106
|
-
|
|
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
|
-
getScriptString: ke,
|
|
1067
|
+
getScriptString: $e,
|
|
1115
1068
|
getVariants: $,
|
|
1116
1069
|
getDefaultCanTrack: I,
|
|
1117
|
-
handleABTestingSync:
|
|
1070
|
+
handleABTestingSync: Ht,
|
|
1118
1071
|
TARGET: w
|
|
1119
1072
|
};
|
|
1120
1073
|
},
|
|
1121
1074
|
mounted() {
|
|
1122
1075
|
this.shouldRenderVariants = !1;
|
|
1076
|
+
},
|
|
1077
|
+
computed: {
|
|
1078
|
+
variantScriptStr() {
|
|
1079
|
+
var e;
|
|
1080
|
+
return Te(
|
|
1081
|
+
$(this.content).map((t) => ({
|
|
1082
|
+
id: t.testVariationId,
|
|
1083
|
+
testRatio: t.testRatio
|
|
1084
|
+
})),
|
|
1085
|
+
((e = this.content) == null ? void 0 : e.id) || ""
|
|
1086
|
+
);
|
|
1087
|
+
},
|
|
1088
|
+
hideVariantsStyleString() {
|
|
1089
|
+
return $(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
1090
|
+
}
|
|
1123
1091
|
}
|
|
1124
1092
|
});
|
|
1125
|
-
var
|
|
1126
|
-
var
|
|
1093
|
+
var Oe = function() {
|
|
1094
|
+
var o, r;
|
|
1127
1095
|
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("
|
|
1096
|
+
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) {
|
|
1097
|
+
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 } });
|
|
1098
|
+
})] : t._e(), n("content-component", t._b({ attrs: { content: t.shouldRenderVariants ? t.content : t.handleABTestingSync({
|
|
1131
1099
|
item: t.content,
|
|
1132
1100
|
canTrack: t.getDefaultCanTrack(t.canTrack)
|
|
1133
|
-
}), classNameProp: `variant-${(
|
|
1101
|
+
}), 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
1102
|
key: t.shouldRenderVariants.toString()
|
|
1135
1103
|
}, !1))], 2);
|
|
1136
|
-
},
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1104
|
+
}, Ee = [], Pe = /* @__PURE__ */ b(
|
|
1105
|
+
Ae,
|
|
1106
|
+
Oe,
|
|
1107
|
+
Ee,
|
|
1140
1108
|
!1,
|
|
1141
1109
|
null,
|
|
1142
1110
|
null,
|
|
1143
1111
|
null,
|
|
1144
1112
|
null
|
|
1145
1113
|
);
|
|
1146
|
-
const
|
|
1114
|
+
const je = Pe.exports, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1147
1115
|
__proto__: null,
|
|
1148
|
-
default:
|
|
1116
|
+
default: je
|
|
1149
1117
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1118
|
+
function Ne() {
|
|
1119
|
+
return y() && window.self !== window.top;
|
|
1120
|
+
}
|
|
1121
|
+
function X() {
|
|
1122
|
+
return Ne() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1123
|
+
}
|
|
1124
|
+
function fn() {
|
|
1125
|
+
return !y() || X() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1152
1126
|
}
|
|
1153
|
-
const
|
|
1127
|
+
const pn = [], hn = (e) => ({
|
|
1128
|
+
type: "builder.registerComponent",
|
|
1129
|
+
data: e
|
|
1130
|
+
}), Fe = (e) => {
|
|
1154
1131
|
const t = e.toString().trim();
|
|
1155
1132
|
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 = ({
|
|
1133
|
+
}, Ue = (e) => typeof e == "function" ? Fe(e) : A(e), _n = ({
|
|
1163
1134
|
inputs: e,
|
|
1164
1135
|
...t
|
|
1165
1136
|
}) => ({
|
|
1166
1137
|
...A(t),
|
|
1167
|
-
inputs: e == null ? void 0 : e.map(
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
[o]: Pe(s)
|
|
1172
|
-
}),
|
|
1173
|
-
{}
|
|
1174
|
-
)
|
|
1175
|
-
)
|
|
1138
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
1139
|
+
...o,
|
|
1140
|
+
[r]: Ue(s)
|
|
1141
|
+
}), {}))
|
|
1176
1142
|
}), B = {};
|
|
1177
|
-
function
|
|
1143
|
+
function gn(e, t) {
|
|
1178
1144
|
let n = B[e];
|
|
1179
1145
|
if (n || (n = B[e] = []), n.push(t), y()) {
|
|
1180
|
-
const
|
|
1146
|
+
const o = {
|
|
1181
1147
|
type: "builder.register",
|
|
1182
1148
|
data: {
|
|
1183
1149
|
type: e,
|
|
@@ -1185,14 +1151,14 @@ function fn(e, t) {
|
|
|
1185
1151
|
}
|
|
1186
1152
|
};
|
|
1187
1153
|
try {
|
|
1188
|
-
parent.postMessage(
|
|
1189
|
-
} catch (
|
|
1190
|
-
console.debug("Could not postmessage",
|
|
1154
|
+
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
1155
|
+
} catch (r) {
|
|
1156
|
+
console.debug("Could not postmessage", r);
|
|
1191
1157
|
}
|
|
1192
1158
|
}
|
|
1193
1159
|
}
|
|
1194
1160
|
const N = {};
|
|
1195
|
-
function
|
|
1161
|
+
function bn(e) {
|
|
1196
1162
|
if (y()) {
|
|
1197
1163
|
Object.assign(N, e);
|
|
1198
1164
|
const t = {
|
|
@@ -1202,83 +1168,95 @@ function mn(e) {
|
|
|
1202
1168
|
parent.postMessage(t, "*");
|
|
1203
1169
|
}
|
|
1204
1170
|
}
|
|
1205
|
-
function
|
|
1171
|
+
function Me() {
|
|
1206
1172
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1207
1173
|
const t = Math.random() * 16 | 0;
|
|
1208
1174
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
1209
1175
|
});
|
|
1210
1176
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return
|
|
1177
|
+
function q() {
|
|
1178
|
+
return Me().replace(/-/g, "");
|
|
1213
1179
|
}
|
|
1214
|
-
const
|
|
1180
|
+
const Q = "builderSessionId", We = async ({
|
|
1215
1181
|
canTrack: e
|
|
1216
1182
|
}) => {
|
|
1217
1183
|
if (!e)
|
|
1218
1184
|
return;
|
|
1219
|
-
const t = await
|
|
1220
|
-
name:
|
|
1185
|
+
const t = await M({
|
|
1186
|
+
name: Q,
|
|
1221
1187
|
canTrack: e
|
|
1222
1188
|
});
|
|
1223
1189
|
if (x(t))
|
|
1224
1190
|
return t;
|
|
1225
1191
|
{
|
|
1226
|
-
const n =
|
|
1227
|
-
return
|
|
1192
|
+
const n = Le();
|
|
1193
|
+
return Ke({
|
|
1194
|
+
id: n,
|
|
1195
|
+
canTrack: e
|
|
1196
|
+
}), n;
|
|
1228
1197
|
}
|
|
1229
|
-
},
|
|
1198
|
+
}, Le = () => q(), Ke = ({
|
|
1230
1199
|
id: e,
|
|
1231
1200
|
canTrack: t
|
|
1232
|
-
}) => W({
|
|
1201
|
+
}) => W({
|
|
1202
|
+
name: Q,
|
|
1203
|
+
value: e,
|
|
1204
|
+
canTrack: t
|
|
1205
|
+
}), Y = () => y() && typeof localStorage < "u" ? localStorage : void 0, ze = ({
|
|
1233
1206
|
key: e,
|
|
1234
1207
|
canTrack: t
|
|
1235
1208
|
}) => {
|
|
1236
1209
|
var n;
|
|
1237
1210
|
try {
|
|
1238
|
-
return t ? (n =
|
|
1239
|
-
} catch (
|
|
1240
|
-
console.debug("[LocalStorage] GET error: ",
|
|
1211
|
+
return t ? (n = Y()) == null ? void 0 : n.getItem(e) : void 0;
|
|
1212
|
+
} catch (o) {
|
|
1213
|
+
console.debug("[LocalStorage] GET error: ", o);
|
|
1241
1214
|
return;
|
|
1242
1215
|
}
|
|
1243
|
-
},
|
|
1216
|
+
}, De = ({
|
|
1244
1217
|
key: e,
|
|
1245
1218
|
canTrack: t,
|
|
1246
1219
|
value: n
|
|
1247
1220
|
}) => {
|
|
1248
|
-
var
|
|
1221
|
+
var o;
|
|
1249
1222
|
try {
|
|
1250
|
-
t && ((
|
|
1251
|
-
} catch (
|
|
1252
|
-
console.debug("[LocalStorage] SET error: ",
|
|
1223
|
+
t && ((o = Y()) == null || o.setItem(e, n));
|
|
1224
|
+
} catch (r) {
|
|
1225
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
1253
1226
|
}
|
|
1254
|
-
},
|
|
1227
|
+
}, Z = "builderVisitorId", Ge = ({
|
|
1228
|
+
canTrack: e
|
|
1229
|
+
}) => {
|
|
1255
1230
|
if (!e)
|
|
1256
1231
|
return;
|
|
1257
|
-
const t =
|
|
1258
|
-
key:
|
|
1232
|
+
const t = ze({
|
|
1233
|
+
key: Z,
|
|
1259
1234
|
canTrack: e
|
|
1260
1235
|
});
|
|
1261
1236
|
if (x(t))
|
|
1262
1237
|
return t;
|
|
1263
1238
|
{
|
|
1264
|
-
const n =
|
|
1265
|
-
return
|
|
1239
|
+
const n = He();
|
|
1240
|
+
return Je({
|
|
1241
|
+
id: n,
|
|
1242
|
+
canTrack: e
|
|
1243
|
+
}), n;
|
|
1266
1244
|
}
|
|
1267
|
-
},
|
|
1245
|
+
}, He = () => q(), Je = ({
|
|
1268
1246
|
id: e,
|
|
1269
1247
|
canTrack: t
|
|
1270
|
-
}) =>
|
|
1271
|
-
key:
|
|
1248
|
+
}) => De({
|
|
1249
|
+
key: Z,
|
|
1272
1250
|
value: e,
|
|
1273
1251
|
canTrack: t
|
|
1274
|
-
}),
|
|
1252
|
+
}), Xe = () => {
|
|
1275
1253
|
if (y()) {
|
|
1276
1254
|
const e = new URL(location.href);
|
|
1277
1255
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
1278
1256
|
} else
|
|
1279
1257
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
1280
|
-
},
|
|
1281
|
-
const e =
|
|
1258
|
+
}, qe = () => typeof navigator == "object" && navigator.userAgent || "", Qe = () => {
|
|
1259
|
+
const e = qe(), t = {
|
|
1282
1260
|
Android() {
|
|
1283
1261
|
return e.match(/Android/i);
|
|
1284
1262
|
},
|
|
@@ -1297,53 +1275,60 @@ const Y = "builderSessionId", Ne = async ({
|
|
|
1297
1275
|
any() {
|
|
1298
1276
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || w === "reactNative";
|
|
1299
1277
|
}
|
|
1300
|
-
}, n = e.match(/Tablet|iPad/i),
|
|
1278
|
+
}, n = e.match(/Tablet|iPad/i), o = Xe();
|
|
1301
1279
|
return {
|
|
1302
|
-
urlPath:
|
|
1303
|
-
host: (
|
|
1280
|
+
urlPath: o == null ? void 0 : o.pathname,
|
|
1281
|
+
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
1304
1282
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
1305
1283
|
};
|
|
1306
|
-
},
|
|
1284
|
+
}, Ye = async ({
|
|
1307
1285
|
canTrack: e
|
|
1308
1286
|
}) => {
|
|
1309
1287
|
if (!e)
|
|
1310
|
-
return {
|
|
1311
|
-
|
|
1288
|
+
return {
|
|
1289
|
+
visitorId: void 0,
|
|
1290
|
+
sessionId: void 0
|
|
1291
|
+
};
|
|
1292
|
+
const t = await We({
|
|
1293
|
+
canTrack: e
|
|
1294
|
+
}), n = Ge({
|
|
1295
|
+
canTrack: e
|
|
1296
|
+
});
|
|
1312
1297
|
return {
|
|
1313
1298
|
sessionId: t,
|
|
1314
1299
|
visitorId: n
|
|
1315
1300
|
};
|
|
1316
|
-
},
|
|
1301
|
+
}, Ze = async ({
|
|
1317
1302
|
type: e,
|
|
1318
1303
|
canTrack: t,
|
|
1319
1304
|
apiKey: n,
|
|
1320
|
-
metadata:
|
|
1321
|
-
...
|
|
1305
|
+
metadata: o,
|
|
1306
|
+
...r
|
|
1322
1307
|
}) => ({
|
|
1323
1308
|
type: e,
|
|
1324
1309
|
data: {
|
|
1325
|
-
...
|
|
1310
|
+
...r,
|
|
1326
1311
|
metadata: {
|
|
1327
1312
|
url: location.href,
|
|
1328
|
-
...
|
|
1313
|
+
...o
|
|
1329
1314
|
},
|
|
1330
|
-
...await
|
|
1331
|
-
|
|
1315
|
+
...await Ye({
|
|
1316
|
+
canTrack: t
|
|
1317
|
+
}),
|
|
1318
|
+
userAttributes: Qe(),
|
|
1332
1319
|
ownerId: n
|
|
1333
1320
|
}
|
|
1334
1321
|
});
|
|
1335
|
-
async function
|
|
1322
|
+
async function tn(e) {
|
|
1336
1323
|
if (!e.apiKey) {
|
|
1337
|
-
v.error(
|
|
1338
|
-
"Missing API key for track call. Please provide your API key."
|
|
1339
|
-
);
|
|
1324
|
+
v.error("Missing API key for track call. Please provide your API key.");
|
|
1340
1325
|
return;
|
|
1341
1326
|
}
|
|
1342
|
-
if (!!e.canTrack && !
|
|
1327
|
+
if (!!e.canTrack && !X() && !!(y() || w === "reactNative"))
|
|
1343
1328
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
1344
1329
|
method: "POST",
|
|
1345
1330
|
body: JSON.stringify({
|
|
1346
|
-
events: [await
|
|
1331
|
+
events: [await Ze(e)]
|
|
1347
1332
|
}),
|
|
1348
1333
|
headers: {
|
|
1349
1334
|
"content-type": "application/json"
|
|
@@ -1353,41 +1338,46 @@ async function qe(e) {
|
|
|
1353
1338
|
console.error("Failed to track: ", t);
|
|
1354
1339
|
});
|
|
1355
1340
|
}
|
|
1356
|
-
const
|
|
1341
|
+
const yn = (e) => tn({
|
|
1342
|
+
...e,
|
|
1343
|
+
canTrack: !0
|
|
1344
|
+
});
|
|
1357
1345
|
export {
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1346
|
+
Ot as A,
|
|
1347
|
+
nn as B,
|
|
1348
|
+
rn as C,
|
|
1349
|
+
je as D,
|
|
1350
|
+
Et as E,
|
|
1351
|
+
sn as F,
|
|
1352
|
+
an as I,
|
|
1353
|
+
cn as S,
|
|
1364
1354
|
w as T,
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1355
|
+
dn as V,
|
|
1356
|
+
tn as _,
|
|
1357
|
+
on as a,
|
|
1358
|
+
X as b,
|
|
1369
1359
|
x as c,
|
|
1370
|
-
|
|
1371
|
-
|
|
1360
|
+
V as d,
|
|
1361
|
+
ln as e,
|
|
1372
1362
|
A as f,
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1363
|
+
rt as g,
|
|
1364
|
+
un as h,
|
|
1365
|
+
y as i,
|
|
1366
|
+
mn as j,
|
|
1367
|
+
pn as k,
|
|
1378
1368
|
v as l,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1369
|
+
wt as m,
|
|
1370
|
+
b as n,
|
|
1371
|
+
kt as o,
|
|
1372
|
+
fn as p,
|
|
1373
|
+
re as q,
|
|
1374
|
+
gn as r,
|
|
1375
|
+
_n as s,
|
|
1376
|
+
Qt as t,
|
|
1377
|
+
hn as u,
|
|
1378
|
+
bn as v,
|
|
1379
|
+
ae as w,
|
|
1380
|
+
ie as x,
|
|
1381
|
+
te as y,
|
|
1382
|
+
yn as z
|
|
1393
1383
|
};
|