@builder.io/sdk-vue 0.0.3-1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -14
- package/package.json +5 -4
- package/packages/_vue2/dist/{block-styles.c531694e.cjs → block-styles.7d59e6ba.cjs} +2 -2
- package/packages/_vue2/dist/{block-styles.234651b2.js → block-styles.bc1f94cc.js} +3 -3
- package/packages/_vue2/dist/get-processed-block.73e1ad82.js +40 -0
- package/packages/_vue2/dist/get-processed-block.c83086c1.cjs +1 -0
- package/packages/_vue2/dist/{index.19474a4f.js → index.02cbe11b.js} +302 -300
- package/packages/_vue2/dist/index.1d7bcb8c.cjs +4 -0
- package/packages/_vue2/dist/render-block.4d368620.cjs +3 -0
- package/packages/_vue2/dist/{render-block.3cf39e0e.js → render-block.4fdcffb1.js} +31 -38
- package/packages/_vue2/dist/render-component-with-context.45bddebc.js +53 -0
- package/packages/_vue2/dist/render-component-with-context.83718839.cjs +1 -0
- package/packages/_vue2/dist/{render-component.a9d4efb1.cjs → render-component.4b341c2e.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.56e5101d.js → render-component.a8a981da.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.b6534355.js → render-inlined-styles.198fc516.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.9b6439ce.cjs → render-inlined-styles.d903e589.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.3e536590.js → render-repeated-block.7547b966.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.95861e2e.cjs → render-repeated-block.d2d7376a.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.9d4787d0.cjs → render-styles.2b14f2b8.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.ad89c45c.js → render-styles.d7585530.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +4 -4
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +306 -0
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +396 -0
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue2/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +25 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +237 -0
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +116 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +141 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +231 -0
- package/packages/_vue2/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +279 -0
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +368 -0
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue2/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue2/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue2/dist/src/context/types.d.ts +17 -0
- package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue2/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue2/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue2/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +5 -0
- package/packages/_vue2/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue2/dist/src/index.d.ts +8 -0
- package/packages/_vue2/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue2/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue2/dist/src/types/components.d.ts +177 -0
- package/packages/_vue2/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue2/dist/src/types/element.d.ts +59 -0
- package/packages/_vue2/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.e3632a69.cjs → block-styles.44a21830.cjs} +2 -2
- package/packages/_vue3/dist/{block-styles.88005ace.js → block-styles.4fb6c64e.js} +3 -3
- package/packages/_vue3/dist/get-processed-block.19c3700a.js +40 -0
- package/packages/_vue3/dist/get-processed-block.d0247791.cjs +1 -0
- package/packages/_vue3/dist/index.acbcbf48.cjs +4 -0
- package/packages/_vue3/dist/{index.2472a241.js → index.c45f283d.js} +305 -302
- package/packages/_vue3/dist/render-block.9c91f64e.cjs +3 -0
- package/packages/_vue3/dist/{render-block.593fc01c.js → render-block.a0b27065.js} +78 -95
- package/packages/_vue3/dist/{render-component-with-context.f5cab824.js → render-component-with-context.205a19d1.js} +15 -10
- package/packages/_vue3/dist/render-component-with-context.fd83122c.cjs +1 -0
- package/packages/_vue3/dist/{render-component.06b4587b.cjs → render-component.38a974b8.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.d5c26257.js → render-component.fbf7bbcb.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.be1aba8b.js → render-inlined-styles.3f53b0f1.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.3fab5467.cjs → render-inlined-styles.631d4b7f.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.d1580cb5.cjs → render-repeated-block.35b18332.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.1d1c64a8.js → render-repeated-block.4f78496b.js} +2 -2
- package/packages/_vue3/dist/{render-styles.4717b645.cjs → render-styles.1482932c.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.efaaccdf.js → render-styles.32666ea6.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +7 -7
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +77 -0
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +167 -0
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +25 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +51 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +44 -0
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +50 -0
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +139 -0
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue3/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue3/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue3/dist/src/context/types.d.ts +17 -0
- package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue3/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue3/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue3/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +5 -0
- package/packages/_vue3/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue3/dist/src/index.d.ts +8 -0
- package/packages/_vue3/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue3/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue3/dist/src/types/components.d.ts +177 -0
- package/packages/_vue3/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue3/dist/src/types/element.d.ts +59 -0
- package/packages/_vue3/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/get-processed-block.1ba91586.js +0 -40
- package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +0 -1
- package/packages/_vue2/dist/index.e85eb7cf.cjs +0 -4
- package/packages/_vue2/dist/render-block.4f260352.cjs +0 -3
- package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +0 -53
- package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.0d475a13.js +0 -40
- package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +0 -1
- package/packages/_vue3/dist/index.e7c6fe34.cjs +0 -4
- package/packages/_vue3/dist/render-block.92199649.cjs +0 -3
- package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +0 -1
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as _, Fragment as C, renderList as E, createVNode as q, createElementVNode as T, createCommentVNode as b, normalizeClass as j, renderSlot as w, mergeProps as x, toDisplayString as P, createBlock as S } from "vue";
|
|
2
|
+
const U = "vue3";
|
|
3
|
+
function h() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return ae() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
11
|
-
}
|
|
12
|
-
const P = {};
|
|
13
|
-
function ie(e, n) {
|
|
14
|
-
let t = P[e];
|
|
15
|
-
if (t || (t = P[e] = []), t.push(n), f()) {
|
|
6
|
+
const $ = {};
|
|
7
|
+
function ae(e, n) {
|
|
8
|
+
let t = $[e];
|
|
9
|
+
if (t || (t = $[e] = []), t.push(n), h()) {
|
|
16
10
|
const o = {
|
|
17
11
|
type: "builder.register",
|
|
18
12
|
data: {
|
|
@@ -27,8 +21,8 @@ function ie(e, n) {
|
|
|
27
21
|
}
|
|
28
22
|
}
|
|
29
23
|
}
|
|
30
|
-
const
|
|
31
|
-
|
|
24
|
+
const ie = () => {
|
|
25
|
+
ae("insertMenu", {
|
|
32
26
|
name: "_default",
|
|
33
27
|
default: !0,
|
|
34
28
|
items: [
|
|
@@ -42,56 +36,49 @@ const ce = () => {
|
|
|
42
36
|
{ name: "Custom Code" }
|
|
43
37
|
]
|
|
44
38
|
});
|
|
45
|
-
},
|
|
46
|
-
var
|
|
47
|
-
|
|
39
|
+
}, ce = () => {
|
|
40
|
+
var e;
|
|
41
|
+
h() && ((e = window.parent) == null || e.postMessage(
|
|
48
42
|
{
|
|
49
43
|
type: "builder.sdkInfo",
|
|
50
44
|
data: {
|
|
51
|
-
target:
|
|
52
|
-
supportsPatchUpdates: !1
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
"*"
|
|
56
|
-
), (t = window.parent) == null || t.postMessage(
|
|
57
|
-
{
|
|
58
|
-
type: "builder.updateContent",
|
|
59
|
-
data: {
|
|
60
|
-
options: e
|
|
45
|
+
target: U,
|
|
46
|
+
supportsPatchUpdates: !1,
|
|
47
|
+
supportsAddBlockScoping: !0
|
|
61
48
|
}
|
|
62
49
|
},
|
|
63
50
|
"*"
|
|
64
|
-
), window.addEventListener("message", ({ data:
|
|
65
|
-
var
|
|
66
|
-
if (
|
|
67
|
-
switch (
|
|
51
|
+
), window.addEventListener("message", ({ data: n }) => {
|
|
52
|
+
var t, o;
|
|
53
|
+
if (!!(n != null && n.type))
|
|
54
|
+
switch (n.type) {
|
|
68
55
|
case "builder.evaluate": {
|
|
69
|
-
const
|
|
70
|
-
let
|
|
56
|
+
const r = n.data.text, s = n.data.arguments || [], a = n.data.id, c = new Function(r);
|
|
57
|
+
let i, u = null;
|
|
71
58
|
try {
|
|
72
|
-
|
|
73
|
-
} catch (
|
|
74
|
-
|
|
59
|
+
i = c.apply(null, s);
|
|
60
|
+
} catch (m) {
|
|
61
|
+
u = m;
|
|
75
62
|
}
|
|
76
|
-
|
|
63
|
+
u ? (t = window.parent) == null || t.postMessage(
|
|
77
64
|
{
|
|
78
65
|
type: "builder.evaluateError",
|
|
79
|
-
data: { id:
|
|
66
|
+
data: { id: a, error: u.message }
|
|
80
67
|
},
|
|
81
68
|
"*"
|
|
82
|
-
) :
|
|
83
|
-
var
|
|
84
|
-
(
|
|
69
|
+
) : i && typeof i.then == "function" ? i.then((m) => {
|
|
70
|
+
var p;
|
|
71
|
+
(p = window.parent) == null || p.postMessage(
|
|
85
72
|
{
|
|
86
73
|
type: "builder.evaluateResult",
|
|
87
|
-
data: { id:
|
|
74
|
+
data: { id: a, result: m }
|
|
88
75
|
},
|
|
89
76
|
"*"
|
|
90
77
|
);
|
|
91
|
-
}).catch(console.error) : (
|
|
78
|
+
}).catch(console.error) : (o = window.parent) == null || o.postMessage(
|
|
92
79
|
{
|
|
93
80
|
type: "builder.evaluateResult",
|
|
94
|
-
data: { result:
|
|
81
|
+
data: { result: i, id: a }
|
|
95
82
|
},
|
|
96
83
|
"*"
|
|
97
84
|
);
|
|
@@ -106,14 +93,14 @@ function A(e) {
|
|
|
106
93
|
function mn(e) {
|
|
107
94
|
return e;
|
|
108
95
|
}
|
|
109
|
-
const
|
|
96
|
+
const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
|
|
110
97
|
throw console.error(
|
|
111
98
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
112
99
|
e
|
|
113
100
|
), e;
|
|
114
|
-
}),
|
|
101
|
+
}), de = {
|
|
115
102
|
name: "builder-columns",
|
|
116
|
-
components: { RenderBlocks:
|
|
103
|
+
components: { RenderBlocks: y(le) },
|
|
117
104
|
props: [
|
|
118
105
|
"space",
|
|
119
106
|
"columns",
|
|
@@ -161,22 +148,22 @@ const de = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
161
148
|
}
|
|
162
149
|
}
|
|
163
150
|
};
|
|
164
|
-
const
|
|
151
|
+
const f = (e, n) => {
|
|
165
152
|
const t = e.__vccOpts || e;
|
|
166
153
|
for (const [o, r] of n)
|
|
167
154
|
t[o] = r;
|
|
168
155
|
return t;
|
|
169
156
|
};
|
|
170
|
-
function
|
|
171
|
-
const a =
|
|
172
|
-
return l(),
|
|
173
|
-
class: "builder-columns div-
|
|
174
|
-
style:
|
|
157
|
+
function ue(e, n, t, o, r, s) {
|
|
158
|
+
const a = v("render-blocks");
|
|
159
|
+
return l(), d("div", {
|
|
160
|
+
class: "builder-columns div-256wrwn33ry",
|
|
161
|
+
style: _(s.columnsCssVars)
|
|
175
162
|
}, [
|
|
176
|
-
(l(!0),
|
|
163
|
+
(l(!0), d(C, null, E(t.columns, (c, i) => (l(), d("div", {
|
|
177
164
|
key: i,
|
|
178
|
-
class: "builder-column div-
|
|
179
|
-
style:
|
|
165
|
+
class: "builder-column div-256wrwn33ry-2",
|
|
166
|
+
style: _({
|
|
180
167
|
width: s.getColumnCssWidth(i),
|
|
181
168
|
marginLeft: `${i === 0 ? 0 : s.getGutterSize()}px`,
|
|
182
169
|
...s.columnCssVars
|
|
@@ -186,22 +173,22 @@ function me(e, n, t, o, r, s) {
|
|
|
186
173
|
blocks: e.markMutable(c.blocks),
|
|
187
174
|
path: `component.options.columns.${i}.blocks`,
|
|
188
175
|
parent: t.builderBlock.id,
|
|
189
|
-
|
|
176
|
+
styleProp: {
|
|
190
177
|
flexGrow: "1"
|
|
191
178
|
}
|
|
192
179
|
}, null, 8, ["blocks", "path", "parent"])
|
|
193
180
|
], 4))), 128))
|
|
194
181
|
], 4);
|
|
195
182
|
}
|
|
196
|
-
const
|
|
183
|
+
const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-2e5dc506"]]);
|
|
197
184
|
function W(e) {
|
|
198
185
|
return e.replace(/http(s)?:/, "");
|
|
199
186
|
}
|
|
200
|
-
function
|
|
187
|
+
function pe(e = "", n, t) {
|
|
201
188
|
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
202
189
|
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
|
|
203
190
|
}
|
|
204
|
-
function
|
|
191
|
+
function he(e, n) {
|
|
205
192
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
|
|
206
193
|
return e;
|
|
207
194
|
if (n === "master")
|
|
@@ -215,18 +202,18 @@ function fe(e, n) {
|
|
|
215
202
|
}
|
|
216
203
|
return null;
|
|
217
204
|
}
|
|
218
|
-
function
|
|
205
|
+
function R(e) {
|
|
219
206
|
if (!e)
|
|
220
207
|
return e;
|
|
221
208
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
222
209
|
if (e.match(/builder\.io/)) {
|
|
223
210
|
let t = e;
|
|
224
211
|
const o = Number(e.split("?width=")[1]);
|
|
225
|
-
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${
|
|
212
|
+
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${pe(e, "width", r)} ${r}w`).concat([t]).join(", ");
|
|
226
213
|
}
|
|
227
|
-
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [
|
|
214
|
+
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [he(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
|
|
228
215
|
}
|
|
229
|
-
const
|
|
216
|
+
const fe = {
|
|
230
217
|
name: "builder-image",
|
|
231
218
|
props: [
|
|
232
219
|
"image",
|
|
@@ -249,10 +236,10 @@ const ge = {
|
|
|
249
236
|
return this.srcset;
|
|
250
237
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
251
238
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
252
|
-
return console.debug("Removed given srcset"),
|
|
239
|
+
return console.debug("Removed given srcset"), R(n);
|
|
253
240
|
} else if (this.image && !this.srcset)
|
|
254
|
-
return
|
|
255
|
-
return
|
|
241
|
+
return R(n);
|
|
242
|
+
return R(n);
|
|
256
243
|
},
|
|
257
244
|
webpSrcSet() {
|
|
258
245
|
var e;
|
|
@@ -271,62 +258,62 @@ const ge = {
|
|
|
271
258
|
}
|
|
272
259
|
}
|
|
273
260
|
};
|
|
274
|
-
const
|
|
261
|
+
const ge = ["srcset"], be = ["alt", "role", "src", "srcset", "sizes"], ye = ["srcset"], ve = {
|
|
275
262
|
key: 2,
|
|
276
|
-
class: "div-
|
|
263
|
+
class: "div-2inev3z4vnk-2"
|
|
277
264
|
};
|
|
278
|
-
function
|
|
279
|
-
var a, c, i,
|
|
280
|
-
return l(),
|
|
281
|
-
|
|
282
|
-
s.webpSrcSet ? (l(),
|
|
265
|
+
function xe(e, n, t, o, r, s) {
|
|
266
|
+
var a, c, i, u;
|
|
267
|
+
return l(), d(C, null, [
|
|
268
|
+
T("picture", null, [
|
|
269
|
+
s.webpSrcSet ? (l(), d("source", {
|
|
283
270
|
key: 0,
|
|
284
271
|
type: "image/webp",
|
|
285
272
|
srcset: s.webpSrcSet
|
|
286
|
-
}, null, 8,
|
|
287
|
-
|
|
273
|
+
}, null, 8, ge)) : b("", !0),
|
|
274
|
+
T("img", {
|
|
288
275
|
loading: "lazy",
|
|
289
276
|
alt: t.altText,
|
|
290
277
|
role: t.altText ? "presentation" : void 0,
|
|
291
|
-
style:
|
|
278
|
+
style: _({
|
|
292
279
|
objectPosition: t.backgroundSize || "center",
|
|
293
280
|
objectFit: t.backgroundSize || "cover"
|
|
294
281
|
}),
|
|
295
|
-
class:
|
|
282
|
+
class: j(
|
|
296
283
|
s._classStringToObject(
|
|
297
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
284
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-2inev3z4vnk"
|
|
298
285
|
)
|
|
299
286
|
),
|
|
300
287
|
src: t.image,
|
|
301
288
|
srcset: s.srcSetToUse,
|
|
302
289
|
sizes: t.sizes
|
|
303
|
-
}, null, 14,
|
|
304
|
-
|
|
290
|
+
}, null, 14, be),
|
|
291
|
+
T("source", { srcset: s.srcSetToUse }, null, 8, ye)
|
|
305
292
|
]),
|
|
306
|
-
t.aspectRatio && !(((c = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length) && t.fitContent) ? (l(),
|
|
293
|
+
t.aspectRatio && !(((c = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), d("div", {
|
|
307
294
|
key: 0,
|
|
308
|
-
class: "builder-image-sizer div-
|
|
309
|
-
style:
|
|
295
|
+
class: "builder-image-sizer div-2inev3z4vnk",
|
|
296
|
+
style: _({
|
|
310
297
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
311
298
|
})
|
|
312
|
-
}, null, 4)) :
|
|
313
|
-
((
|
|
314
|
-
!t.fitContent && e.children ? (l(),
|
|
315
|
-
|
|
316
|
-
])) :
|
|
299
|
+
}, null, 4)) : b("", !0),
|
|
300
|
+
((u = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : u.length) && t.fitContent ? w(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
|
|
301
|
+
!t.fitContent && e.children ? (l(), d("div", ve, [
|
|
302
|
+
w(e.$slots, "default", {}, void 0, !0)
|
|
303
|
+
])) : b("", !0)
|
|
317
304
|
], 64);
|
|
318
305
|
}
|
|
319
|
-
const ke = /* @__PURE__ */
|
|
306
|
+
const ke = /* @__PURE__ */ f(fe, [["render", xe], ["__scopeId", "data-v-219500ea"]]), _e = {
|
|
320
307
|
name: "builder-text",
|
|
321
308
|
props: ["text"]
|
|
322
|
-
},
|
|
323
|
-
function
|
|
324
|
-
return l(),
|
|
309
|
+
}, Ce = ["innerHTML"];
|
|
310
|
+
function we(e, n, t, o, r, s) {
|
|
311
|
+
return l(), d("span", {
|
|
325
312
|
class: "builder-text",
|
|
326
313
|
innerHTML: t.text
|
|
327
|
-
}, null, 8,
|
|
314
|
+
}, null, 8, Ce);
|
|
328
315
|
}
|
|
329
|
-
const
|
|
316
|
+
const Se = /* @__PURE__ */ f(_e, [["render", we]]), Ie = {
|
|
330
317
|
name: "builder-video",
|
|
331
318
|
props: [
|
|
332
319
|
"autoPlay",
|
|
@@ -359,12 +346,18 @@ const Ie = /* @__PURE__ */ h(Ce, [["render", Se]]), Te = {
|
|
|
359
346
|
playsInline: !0
|
|
360
347
|
} : {}
|
|
361
348
|
};
|
|
349
|
+
},
|
|
350
|
+
spreadProps() {
|
|
351
|
+
return {
|
|
352
|
+
...this.attributes,
|
|
353
|
+
...this.videoProps
|
|
354
|
+
};
|
|
362
355
|
}
|
|
363
356
|
}
|
|
364
|
-
},
|
|
365
|
-
function
|
|
357
|
+
}, Te = ["src", "poster"];
|
|
358
|
+
function Re(e, n, t, o, r, s) {
|
|
366
359
|
var a;
|
|
367
|
-
return l(),
|
|
360
|
+
return l(), d("video", x(s.spreadProps, {
|
|
368
361
|
style: {
|
|
369
362
|
width: "100%",
|
|
370
363
|
height: "100%",
|
|
@@ -375,25 +368,25 @@ function Ee(e, n, t, o, r, s) {
|
|
|
375
368
|
},
|
|
376
369
|
src: t.video || "no-src",
|
|
377
370
|
poster: t.posterImage
|
|
378
|
-
}), null, 16,
|
|
371
|
+
}), null, 16, Te);
|
|
379
372
|
}
|
|
380
|
-
const
|
|
381
|
-
function
|
|
373
|
+
const Ee = /* @__PURE__ */ f(Ie, [["render", Re]]);
|
|
374
|
+
function F(e, n = null, t = ".") {
|
|
382
375
|
return Object.keys(e).reduce((o, r) => {
|
|
383
376
|
const s = e[r], a = [n, r].filter(Boolean).join(t);
|
|
384
377
|
return [
|
|
385
378
|
typeof s == "object",
|
|
386
379
|
s !== null,
|
|
387
380
|
!(Array.isArray(s) && s.length === 0)
|
|
388
|
-
].every(Boolean) ? { ...o, ...
|
|
381
|
+
].every(Boolean) ? { ...o, ...F(s, a, t) } : { ...o, [a]: s };
|
|
389
382
|
}, {});
|
|
390
383
|
}
|
|
391
|
-
const L = "builder.",
|
|
384
|
+
const L = "builder.", Fe = (e) => {
|
|
392
385
|
const n = {};
|
|
393
386
|
return e.forEach((t, o) => {
|
|
394
387
|
n[o] = t;
|
|
395
388
|
}), n;
|
|
396
|
-
},
|
|
389
|
+
}, je = (e) => {
|
|
397
390
|
if (!e)
|
|
398
391
|
return {};
|
|
399
392
|
const n = D(e), t = {};
|
|
@@ -403,12 +396,12 @@ const L = "builder.", je = (e) => {
|
|
|
403
396
|
t[r] = n[o];
|
|
404
397
|
}
|
|
405
398
|
}), t;
|
|
406
|
-
},
|
|
407
|
-
if (!
|
|
399
|
+
}, Ue = () => {
|
|
400
|
+
if (!h())
|
|
408
401
|
return {};
|
|
409
402
|
const e = new URLSearchParams(window.location.search);
|
|
410
|
-
return
|
|
411
|
-
}, D = (e) => e instanceof URLSearchParams ?
|
|
403
|
+
return je(e);
|
|
404
|
+
}, D = (e) => e instanceof URLSearchParams ? Fe(e) : e;
|
|
412
405
|
function Ae() {
|
|
413
406
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
414
407
|
}
|
|
@@ -420,7 +413,7 @@ async function K() {
|
|
|
420
413
|
}
|
|
421
414
|
return e.default || e;
|
|
422
415
|
}
|
|
423
|
-
const
|
|
416
|
+
const Ve = (e) => {
|
|
424
417
|
const n = e.split(".");
|
|
425
418
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
426
419
|
}, G = async ({
|
|
@@ -441,11 +434,11 @@ const $e = (e) => {
|
|
|
441
434
|
value: n,
|
|
442
435
|
expires: t
|
|
443
436
|
}) => {
|
|
444
|
-
const r = (
|
|
437
|
+
const r = (h() ? location.protocol === "https:" : !0) ? Be : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], a = [
|
|
445
438
|
[e, n],
|
|
446
439
|
...s,
|
|
447
440
|
["path", "/"],
|
|
448
|
-
["domain",
|
|
441
|
+
["domain", Ve(window.location.hostname)],
|
|
449
442
|
...r
|
|
450
443
|
];
|
|
451
444
|
return Oe(a);
|
|
@@ -463,14 +456,14 @@ const $e = (e) => {
|
|
|
463
456
|
} catch (r) {
|
|
464
457
|
console.warn("[COOKIE] SET error: ", r);
|
|
465
458
|
}
|
|
466
|
-
},
|
|
459
|
+
}, $e = "builderio.variations", Y = (e) => `${$e}.${e}`, We = ({
|
|
467
460
|
contentId: e,
|
|
468
461
|
canTrack: n
|
|
469
|
-
}) => G({ name: Y(e), canTrack: n }),
|
|
462
|
+
}) => G({ name: Y(e), canTrack: n }), Le = ({
|
|
470
463
|
contentId: e,
|
|
471
464
|
canTrack: n,
|
|
472
465
|
value: t
|
|
473
|
-
}) => J({ name: Y(e), value: t, canTrack: n }),
|
|
466
|
+
}) => J({ name: Y(e), value: t, canTrack: n }), I = (e) => e != null, Me = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ne = ({
|
|
474
467
|
id: e,
|
|
475
468
|
variations: n
|
|
476
469
|
}) => {
|
|
@@ -498,18 +491,18 @@ const $e = (e) => {
|
|
|
498
491
|
item: e,
|
|
499
492
|
canTrack: n
|
|
500
493
|
}) => {
|
|
501
|
-
const t = await
|
|
494
|
+
const t = await We({
|
|
502
495
|
canTrack: n,
|
|
503
496
|
contentId: e.id
|
|
504
497
|
}), o = t ? M({ item: e, testGroupId: t }) : void 0;
|
|
505
498
|
if (o)
|
|
506
499
|
return o;
|
|
507
500
|
{
|
|
508
|
-
const r =
|
|
501
|
+
const r = Ne({
|
|
509
502
|
variations: e.variations,
|
|
510
503
|
id: e.id
|
|
511
504
|
});
|
|
512
|
-
return
|
|
505
|
+
return Le({
|
|
513
506
|
contentId: e.id,
|
|
514
507
|
value: r,
|
|
515
508
|
canTrack: n
|
|
@@ -517,19 +510,19 @@ const $e = (e) => {
|
|
|
517
510
|
console.error("could not store A/B test variation: ", s);
|
|
518
511
|
}), M({ item: e, testGroupId: r });
|
|
519
512
|
}
|
|
520
|
-
},
|
|
513
|
+
}, He = async ({
|
|
521
514
|
item: e,
|
|
522
515
|
canTrack: n
|
|
523
516
|
}) => {
|
|
524
|
-
if (!
|
|
517
|
+
if (!Me(e))
|
|
525
518
|
return;
|
|
526
519
|
const t = await ze({ item: e, canTrack: n });
|
|
527
520
|
Object.assign(e, t);
|
|
528
521
|
};
|
|
529
522
|
async function X(e) {
|
|
530
|
-
return (await
|
|
523
|
+
return (await De({ ...e, limit: 1 })).results[0] || null;
|
|
531
524
|
}
|
|
532
|
-
const
|
|
525
|
+
const qe = (e) => {
|
|
533
526
|
const {
|
|
534
527
|
limit: n = 30,
|
|
535
528
|
userAttributes: t,
|
|
@@ -540,63 +533,67 @@ const De = (e) => {
|
|
|
540
533
|
} = e, c = new URL(
|
|
541
534
|
`https://cdn.builder.io/api/v2/content/${s}?apiKey=${a}&limit=${n}&noTraverse=${r}`
|
|
542
535
|
), i = {
|
|
543
|
-
...
|
|
536
|
+
...Ue(),
|
|
544
537
|
...D(e.options || {})
|
|
545
|
-
},
|
|
546
|
-
for (const
|
|
547
|
-
c.searchParams.set(
|
|
538
|
+
}, u = F(i);
|
|
539
|
+
for (const m in u)
|
|
540
|
+
c.searchParams.set(m, String(u[m]));
|
|
548
541
|
if (t && c.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
549
|
-
const
|
|
550
|
-
for (const p in
|
|
551
|
-
c.searchParams.set(p, JSON.stringify(
|
|
542
|
+
const m = F({ query: o });
|
|
543
|
+
for (const p in m)
|
|
544
|
+
c.searchParams.set(p, JSON.stringify(m[p]));
|
|
552
545
|
}
|
|
553
546
|
return c;
|
|
554
547
|
};
|
|
555
|
-
async function
|
|
556
|
-
const n =
|
|
548
|
+
async function De(e) {
|
|
549
|
+
const n = qe(e), o = await (await K())(n.href).then(
|
|
557
550
|
(s) => s.json()
|
|
558
551
|
), r = e.canTrack !== !1;
|
|
559
552
|
if (r)
|
|
560
553
|
for (const s of o.results)
|
|
561
|
-
await
|
|
554
|
+
await He({ item: s, canTrack: r });
|
|
562
555
|
return o;
|
|
563
556
|
}
|
|
564
|
-
const
|
|
557
|
+
const Ke = () => Promise.resolve().then(() => on).then((e) => e.default).catch((e) => {
|
|
565
558
|
throw console.error(
|
|
566
559
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
567
560
|
e
|
|
568
561
|
), e;
|
|
569
|
-
}),
|
|
562
|
+
}), Ge = {
|
|
570
563
|
name: "builder-symbol",
|
|
571
|
-
components: { RenderContent:
|
|
564
|
+
components: { RenderContent: y(Ke) },
|
|
572
565
|
props: ["symbol", "attributes"],
|
|
573
|
-
data: () => ({
|
|
566
|
+
data: () => ({
|
|
567
|
+
className: "builder-symbol",
|
|
568
|
+
fetchedContent: null,
|
|
569
|
+
markMutable: A
|
|
570
|
+
}),
|
|
574
571
|
inject: {
|
|
575
572
|
builderContext: "BuilderContext"
|
|
576
573
|
},
|
|
577
|
-
mounted() {
|
|
578
|
-
var e;
|
|
579
|
-
this.content = (e = this.symbol) == null ? void 0 : e.content;
|
|
580
|
-
},
|
|
581
574
|
watch: {
|
|
582
575
|
onUpdateHook0() {
|
|
583
576
|
const e = this.symbol;
|
|
584
|
-
e && !e.content && !this.
|
|
577
|
+
e && !e.content && !this.fetchedContent && e.model && X({
|
|
585
578
|
model: e.model,
|
|
586
579
|
apiKey: this.builderContext.apiKey,
|
|
587
580
|
query: {
|
|
588
581
|
id: e.entry
|
|
589
582
|
}
|
|
590
583
|
}).then((n) => {
|
|
591
|
-
this.
|
|
584
|
+
this.fetchedContent = n;
|
|
592
585
|
});
|
|
593
586
|
}
|
|
594
587
|
},
|
|
595
588
|
computed: {
|
|
589
|
+
contentToUse() {
|
|
590
|
+
var e;
|
|
591
|
+
return ((e = this.symbol) == null ? void 0 : e.content) || this.fetchedContent;
|
|
592
|
+
},
|
|
596
593
|
onUpdateHook0() {
|
|
597
594
|
return {
|
|
598
595
|
0: this.symbol,
|
|
599
|
-
1: this.
|
|
596
|
+
1: this.fetchedContent
|
|
600
597
|
};
|
|
601
598
|
}
|
|
602
599
|
},
|
|
@@ -611,11 +608,11 @@ const Ge = () => Promise.resolve().then(() => on).then((e) => e.default).catch((
|
|
|
611
608
|
return n;
|
|
612
609
|
}
|
|
613
610
|
}
|
|
614
|
-
},
|
|
615
|
-
function
|
|
616
|
-
var c, i,
|
|
617
|
-
const a =
|
|
618
|
-
return l(),
|
|
611
|
+
}, Je = ["dataSet"];
|
|
612
|
+
function Ye(e, n, t, o, r, s) {
|
|
613
|
+
var c, i, u, m, p;
|
|
614
|
+
const a = v("render-content");
|
|
615
|
+
return l(), d("div", x(t.attributes, {
|
|
619
616
|
dataSet: {
|
|
620
617
|
class: e.className
|
|
621
618
|
},
|
|
@@ -628,48 +625,48 @@ function Xe(e, n, t, o, r, s) {
|
|
|
628
625
|
data: e.markMutable({
|
|
629
626
|
...(c = t.symbol) == null ? void 0 : c.data,
|
|
630
627
|
...s.builderContext.state,
|
|
631
|
-
...(
|
|
628
|
+
...(m = (u = (i = t.symbol) == null ? void 0 : i.content) == null ? void 0 : u.data) == null ? void 0 : m.state
|
|
632
629
|
}),
|
|
633
630
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
634
|
-
content: e.markMutable(
|
|
631
|
+
content: e.markMutable(s.contentToUse)
|
|
635
632
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
636
|
-
], 16,
|
|
633
|
+
], 16, Je);
|
|
637
634
|
}
|
|
638
|
-
const
|
|
635
|
+
const Xe = /* @__PURE__ */ f(Ge, [["render", Ye]]), Qe = {
|
|
639
636
|
name: "builder-button",
|
|
640
637
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
641
638
|
};
|
|
642
|
-
const
|
|
643
|
-
function
|
|
644
|
-
return t.link ? (l(),
|
|
639
|
+
const Ze = ["href", "target"];
|
|
640
|
+
function et(e, n, t, o, r, s) {
|
|
641
|
+
return t.link ? (l(), d("a", x({ key: 0 }, t.attributes, {
|
|
645
642
|
role: "button",
|
|
646
643
|
href: t.link,
|
|
647
644
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
648
|
-
}),
|
|
645
|
+
}), P(t.text), 17, Ze)) : (l(), d("button", x({ key: 1 }, t.attributes, { class: "button-20vehov4ay6" }), P(t.text), 17));
|
|
649
646
|
}
|
|
650
|
-
const
|
|
647
|
+
const tt = /* @__PURE__ */ f(Qe, [["render", et], ["__scopeId", "data-v-4f342625"]]), nt = {
|
|
651
648
|
name: "builder-section-component",
|
|
652
649
|
props: ["attributes", "maxWidth"]
|
|
653
650
|
};
|
|
654
|
-
function
|
|
655
|
-
return l(),
|
|
651
|
+
function ot(e, n, t, o, r, s) {
|
|
652
|
+
return l(), d("section", x(t.attributes, {
|
|
656
653
|
style: t.maxWidth && typeof t.maxWidth == "number" ? {
|
|
657
654
|
maxWidth: t.maxWidth
|
|
658
655
|
} : void 0
|
|
659
656
|
}), [
|
|
660
|
-
|
|
657
|
+
w(e.$slots, "default")
|
|
661
658
|
], 16);
|
|
662
659
|
}
|
|
663
|
-
const
|
|
660
|
+
const st = /* @__PURE__ */ f(nt, [["render", ot]]), rt = {
|
|
664
661
|
name: "builder-fragment-component",
|
|
665
662
|
props: []
|
|
666
663
|
};
|
|
667
|
-
function
|
|
668
|
-
return l(),
|
|
669
|
-
|
|
664
|
+
function at(e, n, t, o, r, s) {
|
|
665
|
+
return l(), d("span", null, [
|
|
666
|
+
w(e.$slots, "default")
|
|
670
667
|
]);
|
|
671
668
|
}
|
|
672
|
-
const
|
|
669
|
+
const it = /* @__PURE__ */ f(rt, [["render", at]]), ct = {
|
|
673
670
|
name: "Core:Button",
|
|
674
671
|
builtIn: !0,
|
|
675
672
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -707,10 +704,10 @@ const ct = /* @__PURE__ */ h(at, [["render", it]]), lt = {
|
|
|
707
704
|
static: !0,
|
|
708
705
|
noWrap: !0
|
|
709
706
|
};
|
|
710
|
-
function
|
|
707
|
+
function V(e) {
|
|
711
708
|
return e.__qwik_serializable__ = !0, e;
|
|
712
709
|
}
|
|
713
|
-
const
|
|
710
|
+
const lt = {
|
|
714
711
|
name: "Columns",
|
|
715
712
|
builtIn: !0,
|
|
716
713
|
inputs: [
|
|
@@ -898,7 +895,7 @@ const dt = {
|
|
|
898
895
|
]
|
|
899
896
|
}
|
|
900
897
|
],
|
|
901
|
-
onChange:
|
|
898
|
+
onChange: V((e) => {
|
|
902
899
|
function n() {
|
|
903
900
|
t.forEach((o) => {
|
|
904
901
|
o.delete("width");
|
|
@@ -935,14 +932,14 @@ const dt = {
|
|
|
935
932
|
advanced: !0
|
|
936
933
|
}
|
|
937
934
|
]
|
|
938
|
-
},
|
|
935
|
+
}, dt = {
|
|
939
936
|
name: "Fragment",
|
|
940
937
|
static: !0,
|
|
941
938
|
hidden: !0,
|
|
942
939
|
builtIn: !0,
|
|
943
940
|
canHaveChildren: !0,
|
|
944
941
|
noWrap: !0
|
|
945
|
-
},
|
|
942
|
+
}, ut = {
|
|
946
943
|
name: "Image",
|
|
947
944
|
static: !0,
|
|
948
945
|
builtIn: !0,
|
|
@@ -962,18 +959,18 @@ const dt = {
|
|
|
962
959
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
963
960
|
required: !0,
|
|
964
961
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
965
|
-
onChange:
|
|
962
|
+
onChange: V((e) => {
|
|
966
963
|
e.delete("srcset"), e.delete("noWebp");
|
|
967
964
|
function t(a, c = 6e4) {
|
|
968
|
-
return new Promise((i,
|
|
969
|
-
const
|
|
965
|
+
return new Promise((i, u) => {
|
|
966
|
+
const m = document.createElement("img");
|
|
970
967
|
let p = !1;
|
|
971
|
-
|
|
972
|
-
p = !0, i(
|
|
973
|
-
},
|
|
974
|
-
console.warn("Image load failed",
|
|
975
|
-
}),
|
|
976
|
-
p ||
|
|
968
|
+
m.onload = () => {
|
|
969
|
+
p = !0, i(m);
|
|
970
|
+
}, m.addEventListener("error", (k) => {
|
|
971
|
+
console.warn("Image load failed", k.error), u(k.error);
|
|
972
|
+
}), m.src = a, setTimeout(() => {
|
|
973
|
+
p || u(new Error("Image load timed out"));
|
|
977
974
|
}, c);
|
|
978
975
|
});
|
|
979
976
|
}
|
|
@@ -1068,7 +1065,7 @@ const dt = {
|
|
|
1068
1065
|
defaultValue: 0.7041
|
|
1069
1066
|
}
|
|
1070
1067
|
]
|
|
1071
|
-
},
|
|
1068
|
+
}, mt = {
|
|
1072
1069
|
name: "Core:Section",
|
|
1073
1070
|
static: !0,
|
|
1074
1071
|
builtIn: !0,
|
|
@@ -1113,7 +1110,7 @@ const dt = {
|
|
|
1113
1110
|
}
|
|
1114
1111
|
}
|
|
1115
1112
|
]
|
|
1116
|
-
},
|
|
1113
|
+
}, pt = {
|
|
1117
1114
|
name: "Symbol",
|
|
1118
1115
|
noWrap: !0,
|
|
1119
1116
|
static: !0,
|
|
@@ -1152,7 +1149,7 @@ const dt = {
|
|
|
1152
1149
|
type: "boolean"
|
|
1153
1150
|
}
|
|
1154
1151
|
]
|
|
1155
|
-
},
|
|
1152
|
+
}, ht = {
|
|
1156
1153
|
name: "Text",
|
|
1157
1154
|
static: !0,
|
|
1158
1155
|
builtIn: !0,
|
|
@@ -1172,7 +1169,7 @@ const dt = {
|
|
|
1172
1169
|
height: "auto",
|
|
1173
1170
|
textAlign: "center"
|
|
1174
1171
|
}
|
|
1175
|
-
},
|
|
1172
|
+
}, ft = {
|
|
1176
1173
|
name: "Video",
|
|
1177
1174
|
canHaveChildren: !0,
|
|
1178
1175
|
builtIn: !0,
|
|
@@ -1274,7 +1271,7 @@ const dt = {
|
|
|
1274
1271
|
advanced: !0
|
|
1275
1272
|
}
|
|
1276
1273
|
]
|
|
1277
|
-
},
|
|
1274
|
+
}, gt = {
|
|
1278
1275
|
name: "Embed",
|
|
1279
1276
|
static: !0,
|
|
1280
1277
|
builtIn: !0,
|
|
@@ -1285,7 +1282,7 @@ const dt = {
|
|
|
1285
1282
|
required: !0,
|
|
1286
1283
|
defaultValue: "",
|
|
1287
1284
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1288
|
-
onChange:
|
|
1285
|
+
onChange: V((e) => {
|
|
1289
1286
|
const n = e.get("url");
|
|
1290
1287
|
if (n)
|
|
1291
1288
|
return e.set("content", "Loading..."), fetch(
|
|
@@ -1308,11 +1305,11 @@ const dt = {
|
|
|
1308
1305
|
hideFromUI: !0
|
|
1309
1306
|
}
|
|
1310
1307
|
]
|
|
1311
|
-
},
|
|
1308
|
+
}, bt = [
|
|
1312
1309
|
"text/javascript",
|
|
1313
1310
|
"application/javascript",
|
|
1314
1311
|
"application/ecmascript"
|
|
1315
|
-
],
|
|
1312
|
+
], yt = (e) => bt.includes(e.type), vt = {
|
|
1316
1313
|
name: "builder-embed",
|
|
1317
1314
|
props: ["content"],
|
|
1318
1315
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1340,7 +1337,7 @@ const dt = {
|
|
|
1340
1337
|
this.scriptsInserted.push(t.src);
|
|
1341
1338
|
const o = document.createElement("script");
|
|
1342
1339
|
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1343
|
-
} else if (
|
|
1340
|
+
} else if (yt(t) && !this.scriptsRun.includes(t.innerText))
|
|
1344
1341
|
try {
|
|
1345
1342
|
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1346
1343
|
} catch (o) {
|
|
@@ -1349,15 +1346,22 @@ const dt = {
|
|
|
1349
1346
|
}
|
|
1350
1347
|
}
|
|
1351
1348
|
}
|
|
1352
|
-
},
|
|
1349
|
+
}, xt = ["innerHTML"];
|
|
1353
1350
|
function kt(e, n, t, o, r, s) {
|
|
1354
|
-
return l(),
|
|
1351
|
+
return l(), d("div", {
|
|
1355
1352
|
class: "builder-embed",
|
|
1356
1353
|
ref: "elem",
|
|
1357
1354
|
innerHTML: t.content
|
|
1358
|
-
}, null, 8,
|
|
1355
|
+
}, null, 8, xt);
|
|
1359
1356
|
}
|
|
1360
|
-
const
|
|
1357
|
+
const _t = /* @__PURE__ */ f(vt, [["render", kt]]);
|
|
1358
|
+
function Ct() {
|
|
1359
|
+
return h() && window.self !== window.top;
|
|
1360
|
+
}
|
|
1361
|
+
function g() {
|
|
1362
|
+
return Ct() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1363
|
+
}
|
|
1364
|
+
const wt = {
|
|
1361
1365
|
name: "builder-img-component",
|
|
1362
1366
|
props: [
|
|
1363
1367
|
"backgroundSize",
|
|
@@ -1370,7 +1374,7 @@ const Ct = /* @__PURE__ */ h(xt, [["render", kt]]), wt = {
|
|
|
1370
1374
|
data: () => ({ isEditing: g })
|
|
1371
1375
|
}, St = ["alt", "src"];
|
|
1372
1376
|
function It(e, n, t, o, r, s) {
|
|
1373
|
-
return l(),
|
|
1377
|
+
return l(), d("img", x(t.attributes, {
|
|
1374
1378
|
style: {
|
|
1375
1379
|
objectFit: t.backgroundSize || "cover",
|
|
1376
1380
|
objectPosition: t.backgroundPosition || "center"
|
|
@@ -1380,7 +1384,7 @@ function It(e, n, t, o, r, s) {
|
|
|
1380
1384
|
src: t.imgSrc || t.image
|
|
1381
1385
|
}), null, 16, St);
|
|
1382
1386
|
}
|
|
1383
|
-
const Tt = /* @__PURE__ */
|
|
1387
|
+
const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
|
|
1384
1388
|
name: "Raw:Img",
|
|
1385
1389
|
hideFromInsertMenu: !0,
|
|
1386
1390
|
builtIn: !0,
|
|
@@ -1443,9 +1447,9 @@ const Tt = /* @__PURE__ */ h(wt, [["render", It]]), Rt = {
|
|
|
1443
1447
|
}
|
|
1444
1448
|
}, Ft = ["innerHTML"];
|
|
1445
1449
|
function jt(e, n, t, o, r, s) {
|
|
1446
|
-
return l(),
|
|
1450
|
+
return l(), d("div", {
|
|
1447
1451
|
ref: "elem",
|
|
1448
|
-
class:
|
|
1452
|
+
class: j(
|
|
1449
1453
|
s._classStringToObject(
|
|
1450
1454
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
1451
1455
|
)
|
|
@@ -1453,7 +1457,7 @@ function jt(e, n, t, o, r, s) {
|
|
|
1453
1457
|
innerHTML: t.code
|
|
1454
1458
|
}, null, 10, Ft);
|
|
1455
1459
|
}
|
|
1456
|
-
const Ut = /* @__PURE__ */
|
|
1460
|
+
const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), At = {
|
|
1457
1461
|
name: "Custom Code",
|
|
1458
1462
|
static: !0,
|
|
1459
1463
|
builtIn: !0,
|
|
@@ -1480,18 +1484,18 @@ const Ut = /* @__PURE__ */ h(Et, [["render", jt]]), Vt = {
|
|
|
1480
1484
|
advanced: !0
|
|
1481
1485
|
}
|
|
1482
1486
|
]
|
|
1483
|
-
},
|
|
1484
|
-
{ component:
|
|
1485
|
-
{ component: ke, ...
|
|
1487
|
+
}, Vt = () => [
|
|
1488
|
+
{ component: me, ...lt },
|
|
1489
|
+
{ component: ke, ...ut },
|
|
1486
1490
|
{ component: Tt, ...Rt },
|
|
1487
|
-
{ component:
|
|
1488
|
-
{ component:
|
|
1489
|
-
{ component:
|
|
1490
|
-
{ component:
|
|
1491
|
-
{ component:
|
|
1492
|
-
{ component:
|
|
1493
|
-
{ component:
|
|
1494
|
-
{ component: Ut, ...
|
|
1491
|
+
{ component: Se, ...ht },
|
|
1492
|
+
{ component: Ee, ...ft },
|
|
1493
|
+
{ component: Xe, ...pt },
|
|
1494
|
+
{ component: tt, ...ct },
|
|
1495
|
+
{ component: st, ...mt },
|
|
1496
|
+
{ component: it, ...dt },
|
|
1497
|
+
{ component: _t, ...gt },
|
|
1498
|
+
{ component: Ut, ...At }
|
|
1495
1499
|
];
|
|
1496
1500
|
function N({
|
|
1497
1501
|
code: e,
|
|
@@ -1505,8 +1509,8 @@ function N({
|
|
|
1505
1509
|
}
|
|
1506
1510
|
const r = {
|
|
1507
1511
|
isEditing: g(),
|
|
1508
|
-
isBrowser:
|
|
1509
|
-
isServer: !
|
|
1512
|
+
isBrowser: h(),
|
|
1513
|
+
isServer: !h()
|
|
1510
1514
|
}, a = !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
1511
1515
|
try {
|
|
1512
1516
|
return new Function(
|
|
@@ -1529,34 +1533,34 @@ function N({
|
|
|
1529
1533
|
);
|
|
1530
1534
|
}
|
|
1531
1535
|
}
|
|
1532
|
-
function
|
|
1533
|
-
return !
|
|
1536
|
+
function Ot() {
|
|
1537
|
+
return !h() || g() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1534
1538
|
}
|
|
1535
|
-
const Q = [];
|
|
1539
|
+
const Q = (e) => JSON.parse(JSON.stringify(e)), Z = [];
|
|
1536
1540
|
function pn(e, n) {
|
|
1537
|
-
return
|
|
1541
|
+
return Z.push({ component: e, ...n }), console.warn(
|
|
1538
1542
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1539
1543
|
), e;
|
|
1540
1544
|
}
|
|
1541
|
-
const
|
|
1545
|
+
const Bt = ({
|
|
1542
1546
|
component: e,
|
|
1543
1547
|
...n
|
|
1544
1548
|
}) => ({
|
|
1545
1549
|
type: "builder.registerComponent",
|
|
1546
1550
|
data: Wt(n)
|
|
1547
|
-
}),
|
|
1551
|
+
}), Pt = (e) => typeof e == "function" ? $t(e) : Q(e), $t = (e) => {
|
|
1548
1552
|
const n = e.toString().trim();
|
|
1549
1553
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
1550
1554
|
}, Wt = ({
|
|
1551
1555
|
inputs: e,
|
|
1552
1556
|
...n
|
|
1553
1557
|
}) => ({
|
|
1554
|
-
...
|
|
1558
|
+
...Q(n),
|
|
1555
1559
|
inputs: e == null ? void 0 : e.map(
|
|
1556
1560
|
(t) => Object.entries(t).reduce(
|
|
1557
1561
|
(o, [r, s]) => ({
|
|
1558
1562
|
...o,
|
|
1559
|
-
[r]:
|
|
1563
|
+
[r]: Pt(s)
|
|
1560
1564
|
}),
|
|
1561
1565
|
{}
|
|
1562
1566
|
)
|
|
@@ -1578,16 +1582,16 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1578
1582
|
name: te,
|
|
1579
1583
|
canTrack: e
|
|
1580
1584
|
});
|
|
1581
|
-
if (
|
|
1585
|
+
if (I(n))
|
|
1582
1586
|
return n;
|
|
1583
1587
|
{
|
|
1584
1588
|
const t = Nt();
|
|
1585
|
-
|
|
1589
|
+
zt({ id: t, canTrack: e });
|
|
1586
1590
|
}
|
|
1587
|
-
}, Nt = () => ee(),
|
|
1591
|
+
}, Nt = () => ee(), zt = ({
|
|
1588
1592
|
id: e,
|
|
1589
1593
|
canTrack: n
|
|
1590
|
-
}) => J({ name: te, value: e, canTrack: n }), ne = () =>
|
|
1594
|
+
}) => J({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, Ht = ({
|
|
1591
1595
|
key: e,
|
|
1592
1596
|
canTrack: n
|
|
1593
1597
|
}) => {
|
|
@@ -1611,11 +1615,11 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1611
1615
|
}, oe = "builderVisitorId", Dt = ({ canTrack: e }) => {
|
|
1612
1616
|
if (!e)
|
|
1613
1617
|
return;
|
|
1614
|
-
const n =
|
|
1618
|
+
const n = Ht({
|
|
1615
1619
|
key: oe,
|
|
1616
1620
|
canTrack: e
|
|
1617
1621
|
});
|
|
1618
|
-
if (
|
|
1622
|
+
if (I(n))
|
|
1619
1623
|
return n;
|
|
1620
1624
|
{
|
|
1621
1625
|
const t = Kt();
|
|
@@ -1653,8 +1657,8 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1653
1657
|
contentId: o
|
|
1654
1658
|
}
|
|
1655
1659
|
});
|
|
1656
|
-
async function
|
|
1657
|
-
if (!!e.canTrack && !g() && !!(
|
|
1660
|
+
async function z(e) {
|
|
1661
|
+
if (!!e.canTrack && !g() && !!(h() || U === "reactNative"))
|
|
1658
1662
|
return fetch("https://builder.io/api/v1/track", {
|
|
1659
1663
|
method: "POST",
|
|
1660
1664
|
body: JSON.stringify({
|
|
@@ -1673,7 +1677,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1673
1677
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1674
1678
|
e
|
|
1675
1679
|
), e;
|
|
1676
|
-
}), Qt = () => import("./render-styles.
|
|
1680
|
+
}), Qt = () => import("./render-styles.32666ea6.js").then((e) => e.default).catch((e) => {
|
|
1677
1681
|
throw console.error(
|
|
1678
1682
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1679
1683
|
e
|
|
@@ -1681,8 +1685,8 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1681
1685
|
}), Zt = {
|
|
1682
1686
|
name: "render-content",
|
|
1683
1687
|
components: {
|
|
1684
|
-
RenderContentStyles:
|
|
1685
|
-
RenderBlocks:
|
|
1688
|
+
RenderContentStyles: y(Qt),
|
|
1689
|
+
RenderBlocks: y(Xt)
|
|
1686
1690
|
},
|
|
1687
1691
|
props: [
|
|
1688
1692
|
"content",
|
|
@@ -1691,9 +1695,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1691
1695
|
"context",
|
|
1692
1696
|
"customComponents",
|
|
1693
1697
|
"model",
|
|
1694
|
-
"apiKey"
|
|
1695
|
-
"locale",
|
|
1696
|
-
"includeRefs"
|
|
1698
|
+
"apiKey"
|
|
1697
1699
|
],
|
|
1698
1700
|
data: () => ({
|
|
1699
1701
|
forceReRenderCount: 0,
|
|
@@ -1726,29 +1728,22 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1726
1728
|
},
|
|
1727
1729
|
mounted() {
|
|
1728
1730
|
var e;
|
|
1729
|
-
if (
|
|
1730
|
-
if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, ce(),
|
|
1731
|
-
...this.locale ? {
|
|
1732
|
-
locale: this.locale
|
|
1733
|
-
} : {},
|
|
1734
|
-
...this.includeRefs ? {
|
|
1735
|
-
includeRefs: this.includeRefs
|
|
1736
|
-
} : {}
|
|
1737
|
-
}), Object.values(this.allRegisteredComponents).forEach(
|
|
1731
|
+
if (h()) {
|
|
1732
|
+
if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, ie(), ce(), Object.values(this.allRegisteredComponents).forEach(
|
|
1738
1733
|
(n) => {
|
|
1739
1734
|
var o;
|
|
1740
|
-
const t =
|
|
1735
|
+
const t = Bt(n);
|
|
1741
1736
|
(o = window.parent) == null || o.postMessage(t, "*");
|
|
1742
1737
|
}
|
|
1743
1738
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
1744
1739
|
"builder:component:stateChangeListenerActivated",
|
|
1745
1740
|
this.emitStateUpdate
|
|
1746
|
-
)), this.useContent &&
|
|
1741
|
+
)), this.useContent && z({
|
|
1747
1742
|
type: "impression",
|
|
1748
1743
|
canTrack: this.canTrackToUse,
|
|
1749
1744
|
contentId: (e = this.useContent) == null ? void 0 : e.id,
|
|
1750
1745
|
orgId: this.apiKey
|
|
1751
|
-
}),
|
|
1746
|
+
}), Ot()) {
|
|
1752
1747
|
const n = new URL(location.href).searchParams;
|
|
1753
1748
|
if (this.model && n.get("builder.preview") === this.model) {
|
|
1754
1749
|
const t = n.get("apiKey") || n.get("builder.space");
|
|
@@ -1775,7 +1770,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1775
1770
|
}
|
|
1776
1771
|
},
|
|
1777
1772
|
unmounted() {
|
|
1778
|
-
|
|
1773
|
+
h() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
1779
1774
|
"builder:component:stateChangeListenerActivated",
|
|
1780
1775
|
this.emitStateUpdate
|
|
1781
1776
|
));
|
|
@@ -1809,11 +1804,14 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1809
1804
|
},
|
|
1810
1805
|
allRegisteredComponents() {
|
|
1811
1806
|
return [
|
|
1812
|
-
...
|
|
1813
|
-
...
|
|
1807
|
+
...Vt(),
|
|
1808
|
+
...Z,
|
|
1814
1809
|
...this.customComponents || []
|
|
1815
1810
|
].reduce(
|
|
1816
|
-
(t, o) => ({
|
|
1811
|
+
(t, o) => ({
|
|
1812
|
+
...t,
|
|
1813
|
+
[o.name]: o
|
|
1814
|
+
}),
|
|
1817
1815
|
{}
|
|
1818
1816
|
);
|
|
1819
1817
|
},
|
|
@@ -1823,7 +1821,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1823
1821
|
shouldRenderContentStyles() {
|
|
1824
1822
|
var e, n, t, o, r;
|
|
1825
1823
|
return Boolean(
|
|
1826
|
-
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((r = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : r.length)) &&
|
|
1824
|
+
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((r = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : r.length)) && U !== "reactNative"
|
|
1827
1825
|
);
|
|
1828
1826
|
},
|
|
1829
1827
|
onUpdateHook0() {
|
|
@@ -1867,7 +1865,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1867
1865
|
},
|
|
1868
1866
|
onClick(e) {
|
|
1869
1867
|
var n;
|
|
1870
|
-
this.useContent &&
|
|
1868
|
+
this.useContent && z({
|
|
1871
1869
|
type: "click",
|
|
1872
1870
|
canTrack: this.canTrackToUse,
|
|
1873
1871
|
contentId: (n = this.useContent) == null ? void 0 : n.id,
|
|
@@ -1886,7 +1884,10 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1886
1884
|
},
|
|
1887
1885
|
handleRequest({ url: e, key: n }) {
|
|
1888
1886
|
K().then((t) => t(e)).then((t) => t.json()).then((t) => {
|
|
1889
|
-
const o = {
|
|
1887
|
+
const o = {
|
|
1888
|
+
...this.overrideState,
|
|
1889
|
+
[n]: t
|
|
1890
|
+
};
|
|
1890
1891
|
this.overrideState = o;
|
|
1891
1892
|
}).catch((t) => {
|
|
1892
1893
|
console.log("error fetching dynamic data", e, t);
|
|
@@ -1918,36 +1919,37 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1918
1919
|
);
|
|
1919
1920
|
}
|
|
1920
1921
|
}
|
|
1921
|
-
}, en = ["builder-content-id"];
|
|
1922
|
+
}, en = ["builder-content-id", "builder-model"];
|
|
1922
1923
|
function tn(e, n, t, o, r, s) {
|
|
1923
|
-
var i,
|
|
1924
|
-
const a =
|
|
1925
|
-
return s.useContent ? (l(),
|
|
1924
|
+
var i, u, m, p, k, O, B;
|
|
1925
|
+
const a = v("render-content-styles"), c = v("render-blocks");
|
|
1926
|
+
return s.useContent ? (l(), d("div", {
|
|
1926
1927
|
key: 0,
|
|
1927
1928
|
ref: "elementRef",
|
|
1928
1929
|
onClick: n[0] || (n[0] = (re) => s.onClick(re)),
|
|
1929
|
-
"builder-content-id": (i = s.useContent) == null ? void 0 : i.id
|
|
1930
|
+
"builder-content-id": (i = s.useContent) == null ? void 0 : i.id,
|
|
1931
|
+
"builder-model": t.model
|
|
1930
1932
|
}, [
|
|
1931
|
-
s.shouldRenderContentStyles ? (l(),
|
|
1933
|
+
s.shouldRenderContentStyles ? (l(), S(a, {
|
|
1932
1934
|
key: 0,
|
|
1933
|
-
cssCode: (
|
|
1934
|
-
customFonts: (
|
|
1935
|
-
}, null, 8, ["cssCode", "customFonts"])) :
|
|
1936
|
-
(l(),
|
|
1937
|
-
blocks: e.markMutable((
|
|
1935
|
+
cssCode: (m = (u = s.useContent) == null ? void 0 : u.data) == null ? void 0 : m.cssCode,
|
|
1936
|
+
customFonts: (k = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : k.customFonts
|
|
1937
|
+
}, null, 8, ["cssCode", "customFonts"])) : b("", !0),
|
|
1938
|
+
(l(), S(c, {
|
|
1939
|
+
blocks: e.markMutable((B = (O = s.useContent) == null ? void 0 : O.data) == null ? void 0 : B.blocks),
|
|
1938
1940
|
key: e.forceReRenderCount
|
|
1939
1941
|
}, null, 8, ["blocks"]))
|
|
1940
|
-
], 8, en)) :
|
|
1942
|
+
], 8, en)) : b("", !0);
|
|
1941
1943
|
}
|
|
1942
|
-
const nn = /* @__PURE__ */
|
|
1944
|
+
const nn = /* @__PURE__ */ f(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1943
1945
|
__proto__: null,
|
|
1944
1946
|
default: nn
|
|
1945
|
-
}, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.
|
|
1947
|
+
}, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.4fb6c64e.js").then((e) => e.default).catch((e) => {
|
|
1946
1948
|
throw console.error(
|
|
1947
1949
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
1948
1950
|
e
|
|
1949
1951
|
), e;
|
|
1950
|
-
}), rn = () => import("./render-block.
|
|
1952
|
+
}), rn = () => import("./render-block.a0b27065.js").then((e) => e.default).catch((e) => {
|
|
1951
1953
|
throw console.error(
|
|
1952
1954
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
1953
1955
|
e
|
|
@@ -1955,10 +1957,10 @@ const nn = /* @__PURE__ */ h(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
|
|
|
1955
1957
|
}), an = {
|
|
1956
1958
|
name: "render-blocks",
|
|
1957
1959
|
components: {
|
|
1958
|
-
RenderBlock:
|
|
1959
|
-
BlockStyles:
|
|
1960
|
+
RenderBlock: y(rn),
|
|
1961
|
+
BlockStyles: y(sn)
|
|
1960
1962
|
},
|
|
1961
|
-
props: ["blocks", "parent", "path", "
|
|
1963
|
+
props: ["blocks", "parent", "path", "styleProp"],
|
|
1962
1964
|
inject: {
|
|
1963
1965
|
builderContext: "BuilderContext"
|
|
1964
1966
|
},
|
|
@@ -2008,71 +2010,72 @@ const nn = /* @__PURE__ */ h(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
|
|
|
2008
2010
|
};
|
|
2009
2011
|
const cn = ["builder-path", "builder-parent-id", "dataSet"];
|
|
2010
2012
|
function ln(e, n, t, o, r, s) {
|
|
2011
|
-
const a =
|
|
2012
|
-
return l(),
|
|
2013
|
-
class:
|
|
2013
|
+
const a = v("render-block"), c = v("block-styles");
|
|
2014
|
+
return l(), d("div", {
|
|
2015
|
+
class: j(s._classStringToObject(s.className + " div-2oa2wtipkzk")),
|
|
2014
2016
|
"builder-path": t.path,
|
|
2015
2017
|
"builder-parent-id": t.parent,
|
|
2016
2018
|
dataSet: {
|
|
2017
2019
|
class: s.className
|
|
2018
2020
|
},
|
|
2019
|
-
style:
|
|
2021
|
+
style: _(t.styleProp),
|
|
2020
2022
|
onClick: n[0] || (n[0] = (i) => s.onClick()),
|
|
2021
2023
|
onMouseenter: n[1] || (n[1] = (i) => s.onMouseEnter())
|
|
2022
2024
|
}, [
|
|
2023
|
-
t.blocks ? (l(!0),
|
|
2025
|
+
t.blocks ? (l(!0), d(C, { key: 0 }, E(t.blocks, (i, u) => (l(), S(a, {
|
|
2024
2026
|
key: "render-block-" + i.id,
|
|
2025
2027
|
block: i,
|
|
2026
2028
|
context: s.builderContext
|
|
2027
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2028
|
-
t.blocks ? (l(!0),
|
|
2029
|
+
}, null, 8, ["block", "context"]))), 128)) : b("", !0),
|
|
2030
|
+
t.blocks ? (l(!0), d(C, { key: 1 }, E(t.blocks, (i, u) => (l(), S(c, {
|
|
2029
2031
|
key: "block-style-" + i.id,
|
|
2030
2032
|
block: i,
|
|
2031
2033
|
context: s.builderContext
|
|
2032
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2034
|
+
}, null, 8, ["block", "context"]))), 128)) : b("", !0)
|
|
2033
2035
|
], 46, cn);
|
|
2034
2036
|
}
|
|
2035
|
-
const dn = /* @__PURE__ */
|
|
2037
|
+
const dn = /* @__PURE__ */ f(an, [["render", ln], ["__scopeId", "data-v-75c39314"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2036
2038
|
__proto__: null,
|
|
2037
2039
|
default: dn
|
|
2038
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2040
|
+
}, Symbol.toStringTag, { value: "Module" })), H = {};
|
|
2039
2041
|
function hn(e) {
|
|
2040
|
-
if (
|
|
2041
|
-
Object.assign(
|
|
2042
|
+
if (h()) {
|
|
2043
|
+
Object.assign(H, e);
|
|
2042
2044
|
const n = {
|
|
2043
2045
|
type: "builder.settingsChange",
|
|
2044
|
-
data:
|
|
2046
|
+
data: H
|
|
2045
2047
|
};
|
|
2046
2048
|
parent.postMessage(n, "*");
|
|
2047
2049
|
}
|
|
2048
2050
|
}
|
|
2049
2051
|
export {
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2052
|
+
tt as B,
|
|
2053
|
+
me as C,
|
|
2054
|
+
it as F,
|
|
2053
2055
|
ke as I,
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2056
|
+
Xe as S,
|
|
2057
|
+
U as T,
|
|
2058
|
+
Ee as V,
|
|
2059
|
+
f as _,
|
|
2060
|
+
Se as a,
|
|
2061
|
+
st as b,
|
|
2060
2062
|
dn as c,
|
|
2061
|
-
|
|
2063
|
+
Ot as d,
|
|
2062
2064
|
N as e,
|
|
2063
2065
|
Q as f,
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
+
Z as g,
|
|
2067
|
+
pn as h,
|
|
2066
2068
|
g as i,
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2069
|
+
Bt as j,
|
|
2070
|
+
ae as k,
|
|
2071
|
+
X as l,
|
|
2070
2072
|
mn as m,
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2073
|
+
qe as n,
|
|
2074
|
+
De as o,
|
|
2075
|
+
Fe as p,
|
|
2076
|
+
je as q,
|
|
2075
2077
|
nn as r,
|
|
2076
2078
|
hn as s,
|
|
2077
|
-
|
|
2079
|
+
Ue as t,
|
|
2080
|
+
D as u
|
|
2078
2081
|
};
|