@builder.io/sdk-vue 0.0.2-2 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.dd3d70e3.js → block-styles.a3384cd8.js} +31 -15
- package/packages/_vue2/dist/block-styles.b8f018af.cjs +10 -0
- package/packages/_vue2/dist/env.d.ts +1 -0
- package/packages/_vue2/dist/get-processed-block.53761199.js +40 -0
- package/packages/_vue2/dist/get-processed-block.5b7d0290.cjs +1 -0
- package/packages/_vue2/dist/index.3fb2f85b.cjs +4 -0
- package/packages/_vue2/dist/{index.e1356b24.js → index.93374a52.js} +74 -70
- package/packages/_vue2/dist/render-block.31ab55d9.cjs +3 -0
- package/packages/_vue2/dist/{render-block.a2f51c18.js → render-block.f95552ec.js} +64 -77
- package/packages/_vue2/dist/{render-component.76541f08.js → render-component.10d6d66e.js} +3 -3
- package/packages/_vue2/dist/{render-component.fc56f8dc.cjs → render-component.4714b27b.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.fb54d112.js → render-inlined-styles.0fed22b4.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.0a71b4a1.cjs → render-inlined-styles.3826da36.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.0990371f.cjs → render-repeated-block.d8e1f3e2.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.caf201fb.js → render-repeated-block.f29194a7.js} +2 -2
- package/packages/_vue2/dist/{render-styles.76adf086.cjs → render-styles.9ff97301.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.79b15aed.js → render-styles.cd30abd1.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.d.ts +1 -0
- package/packages/_vue2/dist/sdk.js +1 -1
- 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 +174 -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 +264 -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 +24 -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 +105 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +108 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +99 -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 +146 -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 +236 -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 +16 -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/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-styles.d.ts +1 -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/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/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 +1 -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.867fd8f0.js +69 -0
- package/packages/_vue3/dist/block-styles.b9355d79.cjs +10 -0
- package/packages/_vue3/dist/env.d.ts +1 -0
- package/packages/_vue3/dist/get-processed-block.4d9c7a48.cjs +1 -0
- package/packages/_vue3/dist/get-processed-block.77923ee6.js +40 -0
- package/packages/_vue3/dist/{index.eb0e01ba.js → index.7b49e825.js} +132 -141
- package/packages/_vue3/dist/index.bbfd8c89.cjs +4 -0
- package/packages/_vue3/dist/render-block.1e996e4e.cjs +3 -0
- package/packages/_vue3/dist/render-block.3110fec0.js +243 -0
- package/packages/_vue3/dist/render-component.470525d5.cjs +1 -0
- package/packages/_vue3/dist/{render-component.963a01c2.js → render-component.7ca6729a.js} +11 -12
- package/packages/_vue3/dist/{render-inlined-styles.1c41d49e.js → render-inlined-styles.0b1e087d.js} +7 -8
- package/packages/_vue3/dist/render-inlined-styles.56082955.cjs +1 -0
- package/packages/_vue3/dist/{render-repeated-block.760bb69a.js → render-repeated-block.0b974ccc.js} +5 -6
- package/packages/_vue3/dist/render-repeated-block.10c41242.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.750ea842.js → render-styles.65bace65.js} +13 -14
- package/packages/_vue3/dist/{render-styles.c0cc9565.cjs → render-styles.d4412af2.cjs} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.d.ts +1 -0
- package/packages/_vue3/dist/sdk.js +1 -1
- 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 +24 -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.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +17 -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 +49 -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 +16 -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/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-styles.d.ts +1 -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/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/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 +1 -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/block-styles.7900ea80.cjs +0 -10
- package/packages/_vue2/dist/get-processed-block.14848083.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block.eda4b627.js +0 -57
- package/packages/_vue2/dist/index.9247eff2.cjs +0 -4
- package/packages/_vue2/dist/render-block.e4f18476.cjs +0 -3
- package/packages/_vue3/dist/block-styles.1f1fb83d.js +0 -54
- package/packages/_vue3/dist/block-styles.eb8f30fe.cjs +0 -10
- package/packages/_vue3/dist/get-processed-block.b7ff491d.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.c491559e.js +0 -57
- package/packages/_vue3/dist/index.36507004.cjs +0 -4
- package/packages/_vue3/dist/render-block.3cdd0c66.js +0 -254
- package/packages/_vue3/dist/render-block.98541a38.cjs +0 -3
- package/packages/_vue3/dist/render-component.442d659d.cjs +0 -1
- package/packages/_vue3/dist/render-inlined-styles.662df301.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.2212c878.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const _ = "
|
|
2
|
-
function
|
|
1
|
+
const _ = "vue2";
|
|
2
|
+
function d() {
|
|
3
3
|
return typeof window < "u" && typeof document < "u";
|
|
4
4
|
}
|
|
5
5
|
const w = {};
|
|
6
6
|
function z(t, e) {
|
|
7
7
|
let n = w[t];
|
|
8
|
-
if (n || (n = w[t] = []), n.push(e),
|
|
8
|
+
if (n || (n = w[t] = []), n.push(e), d()) {
|
|
9
9
|
const o = {
|
|
10
10
|
type: "builder.register",
|
|
11
11
|
data: {
|
|
@@ -28,12 +28,16 @@ const q = () => {
|
|
|
28
28
|
{ name: "Box" },
|
|
29
29
|
{ name: "Text" },
|
|
30
30
|
{ name: "Image" },
|
|
31
|
-
{ name: "Columns" }
|
|
31
|
+
{ name: "Columns" },
|
|
32
|
+
{ name: "Core:Section" },
|
|
33
|
+
{ name: "Core:Button" },
|
|
34
|
+
{ name: "Embed" },
|
|
35
|
+
{ name: "Custom Code" }
|
|
32
36
|
]
|
|
33
37
|
});
|
|
34
38
|
}, D = () => {
|
|
35
39
|
var t;
|
|
36
|
-
|
|
40
|
+
d() && ((t = window.parent) == null || t.postMessage(
|
|
37
41
|
{
|
|
38
42
|
type: "builder.sdkInfo",
|
|
39
43
|
data: {
|
|
@@ -51,8 +55,8 @@ const q = () => {
|
|
|
51
55
|
let i, l = null;
|
|
52
56
|
try {
|
|
53
57
|
i = c.apply(null, r);
|
|
54
|
-
} catch (
|
|
55
|
-
l =
|
|
58
|
+
} catch (u) {
|
|
59
|
+
l = u;
|
|
56
60
|
}
|
|
57
61
|
l ? (n = window.parent) == null || n.postMessage(
|
|
58
62
|
{
|
|
@@ -60,12 +64,12 @@ const q = () => {
|
|
|
60
64
|
data: { id: a, error: l.message }
|
|
61
65
|
},
|
|
62
66
|
"*"
|
|
63
|
-
) : i && typeof i.then == "function" ? i.then((
|
|
67
|
+
) : i && typeof i.then == "function" ? i.then((u) => {
|
|
64
68
|
var f;
|
|
65
69
|
(f = window.parent) == null || f.postMessage(
|
|
66
70
|
{
|
|
67
71
|
type: "builder.evaluateResult",
|
|
68
|
-
data: { id: a, result:
|
|
72
|
+
data: { id: a, result: u }
|
|
69
73
|
},
|
|
70
74
|
"*"
|
|
71
75
|
);
|
|
@@ -156,9 +160,9 @@ function p(t, e, n, o, s, r, a, c) {
|
|
|
156
160
|
} : s), l)
|
|
157
161
|
if (i.functional) {
|
|
158
162
|
i._injectStyles = l;
|
|
159
|
-
var
|
|
163
|
+
var u = i.render;
|
|
160
164
|
i.render = function(H, C) {
|
|
161
|
-
return l.call(C),
|
|
165
|
+
return l.call(C), u(H, C);
|
|
162
166
|
};
|
|
163
167
|
} else {
|
|
164
168
|
var f = i.beforeCreate;
|
|
@@ -269,21 +273,21 @@ const te = {
|
|
|
269
273
|
var ne = function() {
|
|
270
274
|
var o, s, r, a;
|
|
271
275
|
var e = this, n = e._self._c;
|
|
272
|
-
return n("div", { staticClass: "div-
|
|
273
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
276
|
+
return n("div", { staticClass: "div-1ifnufbde19" }, [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
|
|
277
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1ifnufbde19"
|
|
274
278
|
), style: {
|
|
275
279
|
objectPosition: e.backgroundSize || "center",
|
|
276
280
|
objectFit: e.backgroundSize || "cover"
|
|
277
|
-
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(e.fitContent && ((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length)) ? [n("div", { staticClass: "builder-image-sizer div-
|
|
281
|
+
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(e.fitContent && ((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length)) ? [n("div", { staticClass: "builder-image-sizer div-1ifnufbde19-2", style: {
|
|
278
282
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
279
|
-
} })] : e._e(), ((a = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : a.length) && e.fitContent ? [e._t("default")] : e._e(), e.fitContent ? e._e() : [n("div", { staticClass: "div-
|
|
283
|
+
} })] : e._e(), ((a = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : a.length) && e.fitContent ? [e._t("default")] : e._e(), e.fitContent ? e._e() : [n("div", { staticClass: "div-1ifnufbde19-3" }, [e._t("default")], 2)]], 2);
|
|
280
284
|
}, oe = [], se = /* @__PURE__ */ p(
|
|
281
285
|
te,
|
|
282
286
|
ne,
|
|
283
287
|
oe,
|
|
284
288
|
!1,
|
|
285
289
|
null,
|
|
286
|
-
"
|
|
290
|
+
"9208289b",
|
|
287
291
|
null,
|
|
288
292
|
null
|
|
289
293
|
);
|
|
@@ -304,7 +308,7 @@ var ie = function() {
|
|
|
304
308
|
null,
|
|
305
309
|
null
|
|
306
310
|
);
|
|
307
|
-
const
|
|
311
|
+
const ue = le.exports, de = {
|
|
308
312
|
name: "builder-video",
|
|
309
313
|
props: [
|
|
310
314
|
"autoPlay",
|
|
@@ -352,7 +356,7 @@ var pe = function() {
|
|
|
352
356
|
borderRadius: 1
|
|
353
357
|
}, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.videoProps, !1));
|
|
354
358
|
}, me = [], fe = /* @__PURE__ */ p(
|
|
355
|
-
|
|
359
|
+
de,
|
|
356
360
|
pe,
|
|
357
361
|
me,
|
|
358
362
|
!1,
|
|
@@ -380,7 +384,7 @@ const S = "builder.", ge = (t) => {
|
|
|
380
384
|
}, be = (t) => {
|
|
381
385
|
if (!t)
|
|
382
386
|
return {};
|
|
383
|
-
const e =
|
|
387
|
+
const e = E(t), n = {};
|
|
384
388
|
return Object.keys(e).forEach((o) => {
|
|
385
389
|
if (o.startsWith(S)) {
|
|
386
390
|
const s = o.replace(S, "");
|
|
@@ -388,15 +392,15 @@ const S = "builder.", ge = (t) => {
|
|
|
388
392
|
}
|
|
389
393
|
}), n;
|
|
390
394
|
}, ve = () => {
|
|
391
|
-
if (!
|
|
395
|
+
if (!d())
|
|
392
396
|
return {};
|
|
393
397
|
const t = new URLSearchParams(window.location.search);
|
|
394
398
|
return be(t);
|
|
395
|
-
},
|
|
399
|
+
}, E = (t) => t instanceof URLSearchParams ? ge(t) : t;
|
|
396
400
|
function _e() {
|
|
397
401
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
398
402
|
}
|
|
399
|
-
async function
|
|
403
|
+
async function F() {
|
|
400
404
|
const t = _e().fetch;
|
|
401
405
|
if (typeof t > "u" && typeof global < "u") {
|
|
402
406
|
const e = import("node-fetch").then((n) => n.default);
|
|
@@ -425,7 +429,7 @@ const ye = (t) => {
|
|
|
425
429
|
value: e,
|
|
426
430
|
expires: n
|
|
427
431
|
}) => {
|
|
428
|
-
const s = (
|
|
432
|
+
const s = (d() ? location.protocol === "https:" : !0) ? Ce : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [
|
|
429
433
|
[t, e],
|
|
430
434
|
...r,
|
|
431
435
|
["path", "/"],
|
|
@@ -501,7 +505,7 @@ const ye = (t) => {
|
|
|
501
505
|
console.error("could not store A/B test variation: ", r);
|
|
502
506
|
}), I({ item: t, testGroupId: s });
|
|
503
507
|
}
|
|
504
|
-
},
|
|
508
|
+
}, Ee = async ({
|
|
505
509
|
item: t,
|
|
506
510
|
canTrack: e
|
|
507
511
|
}) => {
|
|
@@ -513,7 +517,7 @@ const ye = (t) => {
|
|
|
513
517
|
async function A(t) {
|
|
514
518
|
return (await je({ ...t, limit: 1 })).results[0] || null;
|
|
515
519
|
}
|
|
516
|
-
const
|
|
520
|
+
const Fe = (t) => {
|
|
517
521
|
const {
|
|
518
522
|
limit: e = 30,
|
|
519
523
|
userAttributes: n,
|
|
@@ -525,24 +529,24 @@ const Ee = (t) => {
|
|
|
525
529
|
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${a}&limit=${e}&noTraverse=${s}`
|
|
526
530
|
), i = {
|
|
527
531
|
...ve(),
|
|
528
|
-
...
|
|
532
|
+
...E(t.options || {})
|
|
529
533
|
}, l = v(i);
|
|
530
|
-
for (const
|
|
531
|
-
c.searchParams.set(
|
|
534
|
+
for (const u in l)
|
|
535
|
+
c.searchParams.set(u, String(l[u]));
|
|
532
536
|
if (n && c.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
533
|
-
const
|
|
534
|
-
for (const f in
|
|
535
|
-
c.searchParams.set(f, JSON.stringify(
|
|
537
|
+
const u = v({ query: o });
|
|
538
|
+
for (const f in u)
|
|
539
|
+
c.searchParams.set(f, JSON.stringify(u[f]));
|
|
536
540
|
}
|
|
537
541
|
return c;
|
|
538
542
|
};
|
|
539
543
|
async function je(t) {
|
|
540
|
-
const e =
|
|
544
|
+
const e = Fe(t), o = await (await F())(e.href).then(
|
|
541
545
|
(r) => r.json()
|
|
542
546
|
), s = t.canTrack !== !1;
|
|
543
547
|
if (s)
|
|
544
548
|
for (const r of o.results)
|
|
545
|
-
await
|
|
549
|
+
await Ee({ item: r, canTrack: s });
|
|
546
550
|
return o;
|
|
547
551
|
}
|
|
548
552
|
const Ue = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((t) => {
|
|
@@ -622,14 +626,14 @@ const We = Pe.exports, Be = {
|
|
|
622
626
|
};
|
|
623
627
|
var Le = function() {
|
|
624
628
|
var e = this, n = e._self._c;
|
|
625
|
-
return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-
|
|
629
|
+
return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-4wbls88y960" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
|
|
626
630
|
}, Me = [], Ne = /* @__PURE__ */ p(
|
|
627
631
|
Be,
|
|
628
632
|
Le,
|
|
629
633
|
Me,
|
|
630
634
|
!1,
|
|
631
635
|
null,
|
|
632
|
-
"
|
|
636
|
+
"e55cf307",
|
|
633
637
|
null,
|
|
634
638
|
null
|
|
635
639
|
);
|
|
@@ -966,13 +970,13 @@ const tt = {
|
|
|
966
970
|
t.delete("srcset"), t.delete("noWebp");
|
|
967
971
|
function n(a, c = 6e4) {
|
|
968
972
|
return new Promise((i, l) => {
|
|
969
|
-
const
|
|
973
|
+
const u = document.createElement("img");
|
|
970
974
|
let f = !1;
|
|
971
|
-
|
|
972
|
-
f = !0, i(
|
|
973
|
-
},
|
|
975
|
+
u.onload = () => {
|
|
976
|
+
f = !0, i(u);
|
|
977
|
+
}, u.addEventListener("error", (m) => {
|
|
974
978
|
console.warn("Image load failed", m.error), l(m.error);
|
|
975
|
-
}),
|
|
979
|
+
}), u.src = a, setTimeout(() => {
|
|
976
980
|
f || l(new Error("Image load timed out"));
|
|
977
981
|
}, c);
|
|
978
982
|
});
|
|
@@ -1312,7 +1316,7 @@ const tt = {
|
|
|
1312
1316
|
"text/javascript",
|
|
1313
1317
|
"application/javascript",
|
|
1314
1318
|
"application/ecmascript"
|
|
1315
|
-
],
|
|
1319
|
+
], ut = (t) => lt.includes(t.type), dt = {
|
|
1316
1320
|
name: "builder-embed",
|
|
1317
1321
|
props: ["content"],
|
|
1318
1322
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1340,7 +1344,7 @@ const tt = {
|
|
|
1340
1344
|
this.scriptsInserted.push(n.src);
|
|
1341
1345
|
const o = document.createElement("script");
|
|
1342
1346
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1343
|
-
} else if (
|
|
1347
|
+
} else if (ut(n) && !this.scriptsRun.includes(n.innerText))
|
|
1344
1348
|
try {
|
|
1345
1349
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1346
1350
|
} catch (o) {
|
|
@@ -1354,7 +1358,7 @@ var pt = function() {
|
|
|
1354
1358
|
var e = this, n = e._self._c;
|
|
1355
1359
|
return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
1356
1360
|
}, mt = [], ft = /* @__PURE__ */ p(
|
|
1357
|
-
|
|
1361
|
+
dt,
|
|
1358
1362
|
pt,
|
|
1359
1363
|
mt,
|
|
1360
1364
|
!1,
|
|
@@ -1365,7 +1369,7 @@ var pt = function() {
|
|
|
1365
1369
|
);
|
|
1366
1370
|
const ht = ft.exports;
|
|
1367
1371
|
function gt() {
|
|
1368
|
-
return
|
|
1372
|
+
return d() && window.self !== window.top;
|
|
1369
1373
|
}
|
|
1370
1374
|
function h() {
|
|
1371
1375
|
return gt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
@@ -1506,7 +1510,7 @@ const Tt = It.exports, Rt = {
|
|
|
1506
1510
|
{ component: Q, ...tt },
|
|
1507
1511
|
{ component: re, ...ot },
|
|
1508
1512
|
{ component: xt, ...Ct },
|
|
1509
|
-
{ component:
|
|
1513
|
+
{ component: ue, ...at },
|
|
1510
1514
|
{ component: he, ...it },
|
|
1511
1515
|
{ component: We, ...rt },
|
|
1512
1516
|
{ component: He, ...et },
|
|
@@ -1527,8 +1531,8 @@ function T({
|
|
|
1527
1531
|
}
|
|
1528
1532
|
const s = {
|
|
1529
1533
|
isEditing: h(),
|
|
1530
|
-
isBrowser:
|
|
1531
|
-
isServer: !
|
|
1534
|
+
isBrowser: d(),
|
|
1535
|
+
isServer: !d()
|
|
1532
1536
|
}, a = !(t.includes(";") || t.includes(" return ") || t.trim().startsWith("return ")) ? `return (${t});` : t;
|
|
1533
1537
|
try {
|
|
1534
1538
|
return new Function(
|
|
@@ -1551,8 +1555,8 @@ function T({
|
|
|
1551
1555
|
);
|
|
1552
1556
|
}
|
|
1553
1557
|
}
|
|
1554
|
-
function
|
|
1555
|
-
return !
|
|
1558
|
+
function Et() {
|
|
1559
|
+
return !d() || h() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1556
1560
|
}
|
|
1557
1561
|
const O = [];
|
|
1558
1562
|
function ln(t, e) {
|
|
@@ -1560,7 +1564,7 @@ function ln(t, e) {
|
|
|
1560
1564
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1561
1565
|
), t;
|
|
1562
1566
|
}
|
|
1563
|
-
const
|
|
1567
|
+
const Ft = ({
|
|
1564
1568
|
component: t,
|
|
1565
1569
|
...e
|
|
1566
1570
|
}) => ({
|
|
@@ -1609,7 +1613,7 @@ const B = "builderSessionId", Ot = async ({ canTrack: t }) => {
|
|
|
1609
1613
|
}, Pt = () => W(), Wt = ({
|
|
1610
1614
|
id: t,
|
|
1611
1615
|
canTrack: e
|
|
1612
|
-
}) => U({ name: B, value: t, canTrack: e }), L = () =>
|
|
1616
|
+
}) => U({ name: B, value: t, canTrack: e }), L = () => d() && typeof localStorage < "u" ? localStorage : void 0, Bt = ({
|
|
1613
1617
|
key: t,
|
|
1614
1618
|
canTrack: e
|
|
1615
1619
|
}) => {
|
|
@@ -1676,7 +1680,7 @@ const B = "builderSessionId", Ot = async ({ canTrack: t }) => {
|
|
|
1676
1680
|
}
|
|
1677
1681
|
});
|
|
1678
1682
|
async function R(t) {
|
|
1679
|
-
if (!!t.canTrack && !h() && !!(
|
|
1683
|
+
if (!!t.canTrack && !h() && !!(d() || _ === "reactNative"))
|
|
1680
1684
|
return fetch("https://builder.io/api/v1/track", {
|
|
1681
1685
|
method: "POST",
|
|
1682
1686
|
body: JSON.stringify({
|
|
@@ -1695,7 +1699,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
|
|
|
1695
1699
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1696
1700
|
t
|
|
1697
1701
|
), t;
|
|
1698
|
-
}), Kt = () => import("./render-styles.
|
|
1702
|
+
}), Kt = () => import("./render-styles.cd30abd1.js").then((t) => t.default).catch((t) => {
|
|
1699
1703
|
throw console.error(
|
|
1700
1704
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1701
1705
|
t
|
|
@@ -1746,11 +1750,11 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
|
|
|
1746
1750
|
},
|
|
1747
1751
|
mounted() {
|
|
1748
1752
|
var t;
|
|
1749
|
-
if (
|
|
1753
|
+
if (d()) {
|
|
1750
1754
|
if (h() && (this.forceReRenderCount = this.forceReRenderCount + 1, q(), D(), Object.values(this.allRegisteredComponents).forEach(
|
|
1751
1755
|
(e) => {
|
|
1752
1756
|
var o;
|
|
1753
|
-
const n =
|
|
1757
|
+
const n = Ft(e);
|
|
1754
1758
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
1755
1759
|
}
|
|
1756
1760
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -1761,7 +1765,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
|
|
|
1761
1765
|
canTrack: this.canTrackToUse,
|
|
1762
1766
|
contentId: (t = this.useContent) == null ? void 0 : t.id,
|
|
1763
1767
|
orgId: this.apiKey
|
|
1764
|
-
}),
|
|
1768
|
+
}), Et()) {
|
|
1765
1769
|
const e = new URL(location.href).searchParams;
|
|
1766
1770
|
if (this.model && e.get("builder.preview") === this.model) {
|
|
1767
1771
|
const n = e.get("apiKey") || e.get("builder.space");
|
|
@@ -1788,7 +1792,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
|
|
|
1788
1792
|
}
|
|
1789
1793
|
},
|
|
1790
1794
|
unmounted() {
|
|
1791
|
-
|
|
1795
|
+
d() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
1792
1796
|
"builder:component:stateChangeListenerActivated",
|
|
1793
1797
|
this.emitStateUpdate
|
|
1794
1798
|
));
|
|
@@ -1898,7 +1902,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
|
|
|
1898
1902
|
);
|
|
1899
1903
|
},
|
|
1900
1904
|
handleRequest({ url: t, key: e }) {
|
|
1901
|
-
|
|
1905
|
+
F().then((n) => n(t)).then((n) => n.json()).then((n) => {
|
|
1902
1906
|
const o = { ...this.overrideState, [e]: n };
|
|
1903
1907
|
this.overrideState = o;
|
|
1904
1908
|
}).catch((n) => {
|
|
@@ -1935,8 +1939,8 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
|
|
|
1935
1939
|
var Gt = function() {
|
|
1936
1940
|
var o, s, r, a, c, i, l;
|
|
1937
1941
|
var e = this, n = e._self._c;
|
|
1938
|
-
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id }, on: { click: function(
|
|
1939
|
-
return e.onClick(
|
|
1942
|
+
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id }, on: { click: function(u) {
|
|
1943
|
+
return e.onClick(u);
|
|
1940
1944
|
} } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (c = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : c.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: e.markMutable((l = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : l.blocks) } })], 2) : e._e();
|
|
1941
1945
|
}, Xt = [], Yt = /* @__PURE__ */ p(
|
|
1942
1946
|
Jt,
|
|
@@ -1951,12 +1955,12 @@ var Gt = function() {
|
|
|
1951
1955
|
const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1952
1956
|
__proto__: null,
|
|
1953
1957
|
default: Qt
|
|
1954
|
-
}, Symbol.toStringTag, { value: "Module" })), en = () => import("./block-styles.
|
|
1958
|
+
}, Symbol.toStringTag, { value: "Module" })), en = () => import("./block-styles.a3384cd8.js").then((t) => t.default).catch((t) => {
|
|
1955
1959
|
throw console.error(
|
|
1956
1960
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
1957
1961
|
t
|
|
1958
1962
|
), t;
|
|
1959
|
-
}), tn = () => import("./render-block.
|
|
1963
|
+
}), tn = () => import("./render-block.f95552ec.js").then((t) => t.default).catch((t) => {
|
|
1960
1964
|
throw console.error(
|
|
1961
1965
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
1962
1966
|
t
|
|
@@ -2039,8 +2043,8 @@ const an = rn.exports, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
2039
2043
|
__proto__: null,
|
|
2040
2044
|
default: an
|
|
2041
2045
|
}, Symbol.toStringTag, { value: "Module" })), $ = {};
|
|
2042
|
-
function
|
|
2043
|
-
if (
|
|
2046
|
+
function un(t) {
|
|
2047
|
+
if (d()) {
|
|
2044
2048
|
Object.assign($, t);
|
|
2045
2049
|
const e = {
|
|
2046
2050
|
type: "builder.settingsChange",
|
|
@@ -2057,25 +2061,25 @@ export {
|
|
|
2057
2061
|
We as S,
|
|
2058
2062
|
_ as T,
|
|
2059
2063
|
he as V,
|
|
2060
|
-
|
|
2064
|
+
ue as a,
|
|
2061
2065
|
Je as b,
|
|
2062
2066
|
an as c,
|
|
2063
|
-
|
|
2067
|
+
Et as d,
|
|
2064
2068
|
T as e,
|
|
2065
2069
|
O as f,
|
|
2066
2070
|
ln as g,
|
|
2067
|
-
|
|
2071
|
+
Ft as h,
|
|
2068
2072
|
h as i,
|
|
2069
2073
|
z as j,
|
|
2070
2074
|
A as k,
|
|
2071
|
-
|
|
2075
|
+
Fe as l,
|
|
2072
2076
|
cn as m,
|
|
2073
2077
|
p as n,
|
|
2074
2078
|
je as o,
|
|
2075
2079
|
ge as p,
|
|
2076
2080
|
be as q,
|
|
2077
2081
|
Qt as r,
|
|
2078
|
-
|
|
2082
|
+
un as s,
|
|
2079
2083
|
ve as t,
|
|
2080
|
-
|
|
2084
|
+
E as u
|
|
2081
2085
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.3fb2f85b.cjs"),a=require("./get-processed-block.5b7d0290.cjs"),u=e=>`v-on:${e.toLowerCase()}`;function m(e,t){return n=>c.evaluate({code:e,context:t.context,state:t.state,event:n})}function d(e){var o;const t={},n=(o=e.block.actions)!=null?o:{};for(const r in n){if(!n.hasOwnProperty(r))continue;const s=n[r];t[u(r)]=m(s,e)}return t}function p(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}function h(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\\s+/);for(const o of n)t[o]=!0;return t}function f(e){var t;return{...e.properties,"builder-id":e.id,class:h([e.id,"builder-block",e.class,(t=e.properties)==null?void 0:t.class].filter(Boolean).join(" "))}}function k(){return{}}function b(e){return e.tagName||"div"}const x=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],y=e=>typeof e=="string"&&x.includes(e.toLowerCase()),g=()=>Promise.resolve().then(()=>require("./block-styles.b8f018af.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),v=()=>Promise.resolve().then(()=>require("./render-component.4714b27b.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),B=()=>Promise.resolve().then(()=>require("./render-repeated-block.d8e1f3e2.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",e),e}),_={name:"render-block",components:{"render-component":v,"render-repeated-block":B,"block-styles":g},props:["block","context"],data:()=>({isEmptyHtmlElement:y,TARGET:c.TARGET}),computed:{component(){var n;const e=(n=a.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!1}).component)==null?void 0:n.name;if(!e)return null;const t=this.context.registeredComponents[e];if(t)return t;console.warn(`
|
|
2
|
+
Could not find a registered component named "${e}".
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},componentInfo(){if(this.component){const{component:e,...t}=this.component;return t}else return},componentRef(){var e;return(e=this.component)==null?void 0:e.component},tagName(){return b(this.useBlock)},useBlock(){return this.repeatItemData?this.block:a.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},attributes(){return{...f(this.useBlock),...d({block:this.useBlock,state:this.context.state,context:this.context.context}),style:k(this.useBlock)}},shouldWrap(){var e;return!((e=this.componentInfo)!=null&&e.noWrap)},componentOptions(){return{...p(this.useBlock),...this.shouldWrap?{}:{attributes:this.attributes}}},renderComponentProps(){return{blockChildren:this.children,componentRef:this.componentRef,componentOptions:this.componentOptions,context:this.context}},children(){var e;return(e=this.useBlock.children)!=null?e:[]},childrenWithoutParentComponent(){return!this.componentRef&&!this.repeatItemData?this.children:[]},repeatItemData(){const{repeat:e,...t}=this.block;if(!(e!=null&&e.collection))return;const n=c.evaluate({code:e.collection,state:this.context.state,context:this.context.context});if(!Array.isArray(n))return;const o=e.collection.split(".").pop(),r=e.itemName||(o?o+"Item":"item");return n.map((i,l)=>({context:{...this.context,state:{...this.context.state,$index:l,$item:i,[r]:i,[`$${r}Index`]:l}},block:t}))}}};var E=function(){var t=this,n=t._self._c;return Boolean(t.shouldWrap)?t.isEmptyHtmlElement(t.tagName)?n(t.tagName,t._b({tag:"component"},"component",t.attributes,!1)):!t.isEmptyHtmlElement(t.tagName)&&t.TARGET==="vue2"&&t.repeatItemData?n("div",{staticClass:"vue2-root-element-workaround"},t._l(t.repeatItemData,function(o,r){return n("render-repeated-block",{key:r,attrs:{repeatContext:o.context,block:o.block}})}),1):n(t.tagName,t._b({tag:"component"},"component",t.attributes,!1),[n("render-component",t._b({},"render-component",t.renderComponentProps,!1)),t._l(t.childrenWithoutParentComponent,function(o,r){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:t.context}})}),t._l(t.childrenWithoutParentComponent,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:t.context}})})],2):n("render-component",t._b({attrs:{context:t.context}},"render-component",t.renderComponentProps,!1))},C=[],R=c.normalizeComponent(_,E,C,!1,null,null,null,null);const P=R.exports;exports.default=P;
|