@builder.io/sdk-vue 0.5.6-0 → 0.5.7
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 +9 -20
- package/packages/_vue2/dist/block-styles.4aca252e.js +78 -0
- package/packages/_vue2/dist/block-styles.d4e625bc.cjs +1 -0
- package/packages/_vue2/dist/{block-wrapper-f852f3a4.js → block-wrapper.266a0ef3.js} +16 -19
- package/packages/_vue2/dist/block-wrapper.df62a070.cjs +1 -0
- package/packages/_vue2/dist/block.1c14e1e8.cjs +3 -0
- package/packages/_vue2/dist/block.33475f0d.js +179 -0
- package/packages/_vue2/dist/{blocks-wrapper-98241c68.js → blocks-wrapper.030b1bc5.js} +1 -1
- package/packages/_vue2/dist/{blocks-wrapper-87a5ef9b.cjs → blocks-wrapper.42eb4446.cjs} +1 -1
- package/packages/_vue2/dist/{component-ref-47d34951.js → component-ref.2a5e1ada.js} +21 -29
- package/packages/_vue2/dist/component-ref.c0ab9fe2.cjs +1 -0
- package/packages/_vue2/dist/content.e5d197c3.cjs +1 -0
- package/packages/_vue2/dist/{content-ab735937.js → content.ea0a72d4.js} +19 -36
- package/packages/_vue2/dist/{css-03a9ebe6.cjs → css.21080882.cjs} +1 -1
- package/packages/_vue2/dist/{css-8b11bb6e.js → css.dd09e65b.js} +1 -1
- package/packages/_vue2/dist/enable-editor.472fc3ec.cjs +1 -0
- package/packages/_vue2/dist/{enable-editor-2d8d86f8.js → enable-editor.6c4a1aca.js} +29 -35
- package/packages/_vue2/dist/evaluate.79598493.cjs +4 -0
- package/packages/_vue2/dist/evaluate.9bc5efc5.js +79 -0
- package/packages/_vue2/dist/get-block-actions.2fa72e92.cjs +1 -0
- package/packages/_vue2/dist/get-block-actions.982724b1.js +36 -0
- package/packages/_vue2/dist/{get-block-properties-f778ef2a.js → get-block-properties.008d318f.js} +2 -2
- package/packages/_vue2/dist/get-block-properties.094bfc1a.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.06b725b4.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.cabbf7c1.js +53 -0
- package/packages/_vue2/dist/index.d24a9f20.cjs +32 -0
- package/packages/_vue2/dist/{index-a089abc3.js → index.da59485b.js} +173 -201
- package/packages/_vue2/dist/{inlined-script-73ce088c.cjs → inlined-script.7d9f29c5.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-script-5ac8fff7.js → inlined-script.d5b1456d.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles-3a327fbd.js → inlined-styles.4fd4586c.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles-1d50f193.cjs → inlined-styles.ef691e26.cjs} +1 -1
- package/packages/_vue2/dist/interactive-element.0a1def03.cjs +1 -0
- package/packages/_vue2/dist/{interactive-element-2aec4d6f.js → interactive-element.7172524e.js} +10 -12
- package/packages/{_vue3/dist/non-node-runtime.45773de4.js → _vue2/dist/non-node-runtime.2372bfdf.js} +64 -62
- package/packages/_vue2/dist/non-node-runtime.fac94d56.cjs +21 -0
- package/packages/_vue2/dist/repeated-block.27283bd9.cjs +1 -0
- package/packages/_vue2/dist/{repeated-block-a0f25ac2.js → repeated-block.2b3065cd.js} +6 -6
- package/packages/_vue2/dist/sdk.cjs +1 -0
- package/packages/_vue2/dist/sdk.js +29 -0
- package/packages/_vue2/dist/set.87eb0329.cjs +1 -0
- package/packages/_vue2/dist/set.b219ab0e.js +9 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +2 -5
- package/packages/_vue2/dist/src/components/block/block.vue.d.ts +4 -2
- package/packages/_vue2/dist/src/components/block/components/block-styles.vue.d.ts +0 -5
- package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +0 -3
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +2 -3
- package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +0 -5
- package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +8 -9
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +0 -1
- package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +0 -2
- package/packages/_vue2/dist/src/components/content-variants/content-variants.vue.d.ts +0 -3
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +7 -6
- package/packages/{_vue3/dist/src/functions/evaluate/node-runtime → _vue2/dist/src/functions/evaluate/non-node-runtime}/index.d.ts +2 -2
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +11 -0
- package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +3 -3
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -2
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +3 -3
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +3 -5
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +1 -1
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +3 -9
- package/packages/_vue2/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/src/types/builder-props.d.ts +3 -15
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue2/dist/{styles-6e2cbe10.cjs → styles.39410f45.cjs} +5 -5
- package/packages/_vue2/dist/{styles-183aeb6b.js → styles.d53197f4.js} +18 -18
- package/packages/_vue3/dist/{block-wrapper.5ca35adf.js → block-wrapper.c5fdd37d.js} +2 -2
- package/packages/_vue3/dist/{block-wrapper.500b81ef.cjs → block-wrapper.f6009433.cjs} +1 -1
- package/packages/_vue3/dist/{component-ref.5764cdf2.js → component-ref.513230d1.js} +2 -2
- package/packages/_vue3/dist/{component-ref.67d028bc.cjs → component-ref.5807e495.cjs} +1 -1
- package/packages/_vue3/dist/{get-block-actions.20d51d99.cjs → get-block-actions.63f93beb.cjs} +1 -1
- package/packages/_vue3/dist/{get-block-actions.0f635805.js → get-block-actions.98c78ed5.js} +1 -1
- package/packages/_vue3/dist/index.9693ab51.cjs +72 -0
- package/packages/_vue3/dist/{index.f5a3101b.js → index.b87be7b3.js} +521 -549
- package/packages/_vue3/dist/{non-node-runtime.c8fc465e.cjs → non-node-runtime.73787d0f.cjs} +8 -8
- package/packages/_vue3/dist/non-node-runtime.cac77d48.js +2476 -0
- package/packages/_vue3/dist/{repeated-block.238616b4.js → repeated-block.3a92872a.js} +2 -2
- package/packages/_vue3/dist/{repeated-block.8ca9be30.cjs → repeated-block.8758f41a.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/evaluate/acorn-interpreter.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +5 -1
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
- package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +11 -0
- package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +3 -3
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +1 -1
- package/packages/_vue3/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/block-12099f71.js +0 -189
- package/packages/_vue2/dist/block-246063be.cjs +0 -3
- package/packages/_vue2/dist/block-styles-9360f05a.cjs +0 -1
- package/packages/_vue2/dist/block-styles-cfdd1b51.js +0 -79
- package/packages/_vue2/dist/block-wrapper-857a5d4f.cjs +0 -1
- package/packages/_vue2/dist/component-ref-b891d36b.cjs +0 -1
- package/packages/_vue2/dist/content-043dd197.cjs +0 -1
- package/packages/_vue2/dist/enable-editor-04399d8f.cjs +0 -1
- package/packages/_vue2/dist/evaluate-6a213bca.cjs +0 -1
- package/packages/_vue2/dist/evaluate-c9d68bff.js +0 -76
- package/packages/_vue2/dist/get-block-actions-2b1bc20b.cjs +0 -1
- package/packages/_vue2/dist/get-block-actions-75e52f20.js +0 -36
- package/packages/_vue2/dist/get-block-properties-0e241c2c.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block-41399170.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block-940605b2.js +0 -46
- package/packages/_vue2/dist/helpers-327ed263.js +0 -16
- package/packages/_vue2/dist/helpers-4efe31ac.cjs +0 -1
- package/packages/_vue2/dist/index-537704ba.cjs +0 -1
- package/packages/_vue2/dist/index-c1c356f8.cjs +0 -32
- package/packages/_vue2/dist/index-cc904f8c.js +0 -10
- package/packages/_vue2/dist/interactive-element-67792031.cjs +0 -1
- package/packages/_vue2/dist/main.cjs +0 -1
- package/packages/_vue2/dist/main.js +0 -29
- package/packages/_vue2/dist/node-runtime-25e8d976.js +0 -93
- package/packages/_vue2/dist/node-runtime-5a567c42.cjs +0 -39
- package/packages/_vue2/dist/repeated-block-5eb2f7c6.cjs +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue2/dist/src/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/packages/_vue3/dist/index.0db0f592.cjs +0 -69
- package/packages/_vue3/dist/node-runtime.ba895a23.cjs +0 -39
- package/packages/_vue3/dist/node-runtime.dc2f1f18.js +0 -93
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue3/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- /package/packages/_vue2/dist/{index.d.ts → sdk.d.ts} +0 -0
- /package/packages/{_vue3/dist/src/functions/evaluate/non-node-runtime → _vue2/dist/src/functions/evaluate}/acorn-interpreter.d.ts +0 -0
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"workspaces": [
|
|
5
5
|
"packages/*"
|
|
6
6
|
],
|
|
7
|
-
"version": "0.5.
|
|
8
|
-
"main": "./packages/_vue2/dist/
|
|
9
|
-
"module": "./packages/_vue2/dist/
|
|
7
|
+
"version": "0.5.7",
|
|
8
|
+
"main": "./packages/_vue2/dist/sdk.js",
|
|
9
|
+
"module": "./packages/_vue2/dist/sdk.js",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"files": [
|
|
12
12
|
"packages/_vue2/dist",
|
|
@@ -14,25 +14,17 @@
|
|
|
14
14
|
],
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"import": "./packages/_vue2/dist/
|
|
18
|
-
"require": "./packages/_vue2/dist/
|
|
17
|
+
"import": "./packages/_vue2/dist/sdk.js",
|
|
18
|
+
"require": "./packages/_vue2/dist/sdk.cjs"
|
|
19
19
|
},
|
|
20
20
|
"./vue2": {
|
|
21
|
-
"import": "./packages/_vue2/dist/
|
|
22
|
-
"require": "./packages/_vue2/dist/
|
|
23
|
-
},
|
|
24
|
-
"./vue2/node-runtime": {
|
|
25
|
-
"import": "./packages/_vue2/dist/node-runtime.js",
|
|
26
|
-
"require": "./packages/_vue2/dist/node-runtime.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./vue2/non-node-runtime": {
|
|
29
|
-
"import": "./packages/_vue2/dist/non-node-runtime.js",
|
|
30
|
-
"require": "./packages/_vue2/dist/non-node-runtime.cjs"
|
|
21
|
+
"import": "./packages/_vue2/dist/sdk.js",
|
|
22
|
+
"require": "./packages/_vue2/dist/sdk.cjs"
|
|
31
23
|
},
|
|
32
24
|
"./vue2/css": "./packages/_vue2/dist/style.css",
|
|
33
25
|
"./vue3": {
|
|
34
|
-
"import": "./packages/_vue3/dist/
|
|
35
|
-
"require": "./packages/_vue3/dist/
|
|
26
|
+
"import": "./packages/_vue3/dist/sdk.js",
|
|
27
|
+
"require": "./packages/_vue3/dist/sdk.cjs"
|
|
36
28
|
},
|
|
37
29
|
"./vue3/css": "./packages/_vue3/dist/style.css",
|
|
38
30
|
"./nuxt": {
|
|
@@ -49,9 +41,6 @@
|
|
|
49
41
|
"remove-debug": "bash ./scripts/remove-debug.sh",
|
|
50
42
|
"build": "nx run-many -t build -p @builder.io/sdk-vue-2 @builder.io/sdk-vue-3"
|
|
51
43
|
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"isolated-vm": "^4.6.0"
|
|
54
|
-
},
|
|
55
44
|
"peerDependencies": {
|
|
56
45
|
"vue": ">= 2"
|
|
57
46
|
},
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as h } from "vue";
|
|
2
|
+
import { T as S, c as i, g as k, a as m, n as y } from "./index.da59485b.js";
|
|
3
|
+
import { g as f } from "./get-processed-block.cabbf7c1.js";
|
|
4
|
+
import { c as n } from "./css.dd09e65b.js";
|
|
5
|
+
import "./evaluate.9bc5efc5.js";
|
|
6
|
+
import "./set.b219ab0e.js";
|
|
7
|
+
const _ = () => import("./inlined-styles.4fd4586c.js").then((t) => t.default).catch((t) => {
|
|
8
|
+
throw console.error(
|
|
9
|
+
"Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",
|
|
10
|
+
t
|
|
11
|
+
), t;
|
|
12
|
+
}), B = h({
|
|
13
|
+
name: "block-styles",
|
|
14
|
+
components: { "inlined-styles": _ },
|
|
15
|
+
props: ["block", "context"],
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
processedBlock: f({
|
|
19
|
+
block: this.block,
|
|
20
|
+
localState: this.context.localState,
|
|
21
|
+
rootState: this.context.rootState,
|
|
22
|
+
rootSetState: this.context.rootSetState,
|
|
23
|
+
context: this.context.context,
|
|
24
|
+
shouldEvaluateBindings: !0
|
|
25
|
+
}),
|
|
26
|
+
TARGET: S
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
computed: {
|
|
30
|
+
canShowBlock() {
|
|
31
|
+
return i(this.processedBlock.hide) ? !this.processedBlock.hide : i(this.processedBlock.show) ? this.processedBlock.show : !0;
|
|
32
|
+
},
|
|
33
|
+
css() {
|
|
34
|
+
var a;
|
|
35
|
+
const t = this.processedBlock.responsiveStyles, e = this.context.content, s = k(
|
|
36
|
+
((a = e == null ? void 0 : e.meta) == null ? void 0 : a.breakpoints) || {}
|
|
37
|
+
), r = t == null ? void 0 : t.large, c = t == null ? void 0 : t.medium, l = t == null ? void 0 : t.small, o = this.processedBlock.id;
|
|
38
|
+
if (!o)
|
|
39
|
+
return "";
|
|
40
|
+
const d = r ? n({
|
|
41
|
+
className: o,
|
|
42
|
+
styles: r
|
|
43
|
+
}) : "", p = c ? n({
|
|
44
|
+
className: o,
|
|
45
|
+
styles: c,
|
|
46
|
+
mediaQuery: m(
|
|
47
|
+
"medium",
|
|
48
|
+
s
|
|
49
|
+
)
|
|
50
|
+
}) : "", u = l ? n({
|
|
51
|
+
className: o,
|
|
52
|
+
styles: l,
|
|
53
|
+
mediaQuery: m(
|
|
54
|
+
"small",
|
|
55
|
+
s
|
|
56
|
+
)
|
|
57
|
+
}) : "";
|
|
58
|
+
return [d, p, u].join(" ");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
var x = function() {
|
|
63
|
+
var e = this, s = e._self._c;
|
|
64
|
+
return e._self._setupProxy, e.TARGET !== "reactNative" && e.css && e.canShowBlock ? s("inlined-styles", { attrs: { styles: e.css } }) : e._e();
|
|
65
|
+
}, g = [], v = /* @__PURE__ */ y(
|
|
66
|
+
B,
|
|
67
|
+
x,
|
|
68
|
+
g,
|
|
69
|
+
!1,
|
|
70
|
+
null,
|
|
71
|
+
null,
|
|
72
|
+
null,
|
|
73
|
+
null
|
|
74
|
+
);
|
|
75
|
+
const F = v.exports;
|
|
76
|
+
export {
|
|
77
|
+
F as default
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),t=require("./index.d24a9f20.cjs"),p=require("./get-processed-block.06b725b4.cjs"),n=require("./css.21080882.cjs");require("./evaluate.79598493.cjs");require("./set.87eb0329.cjs");const S=()=>Promise.resolve().then(()=>require("./inlined-styles.ef691e26.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",e),e}),y=h.defineComponent({name:"block-styles",components:{"inlined-styles":S},props:["block","context"],data(){return{processedBlock:p.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),TARGET:t.TARGET}},computed:{canShowBlock(){return t.checkIsDefined(this.processedBlock.hide)?!this.processedBlock.hide:t.checkIsDefined(this.processedBlock.show)?this.processedBlock.show:!0},css(){var a;const e=this.processedBlock.responsiveStyles,s=this.context.content,o=t.getSizesForBreakpoints(((a=s==null?void 0:s.meta)==null?void 0:a.breakpoints)||{}),r=e==null?void 0:e.large,l=e==null?void 0:e.medium,i=e==null?void 0:e.small,c=this.processedBlock.id;if(!c)return"";const d=r?n.createCssClass({className:c,styles:r}):"",u=l?n.createCssClass({className:c,styles:l,mediaQuery:t.getMaxWidthQueryForSize("medium",o)}):"",m=i?n.createCssClass({className:c,styles:i,mediaQuery:t.getMaxWidthQueryForSize("small",o)}):"";return[d,u,m].join(" ")}}});var k=function(){var s=this,o=s._self._c;return s._self._setupProxy,s.TARGET!=="reactNative"&&s.css&&s.canShowBlock?o("inlined-styles",{attrs:{styles:s.css}}):s._e()},f=[],_=t.normalizeComponent(y,k,f,!1,null,null,null,null);const v=_.exports;exports.default=v;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { g as r } from "./get-block-actions
|
|
3
|
-
import { g as c } from "./get-block-properties
|
|
4
|
-
import { n } from "./index
|
|
5
|
-
import "./evaluate
|
|
6
|
-
import "./
|
|
7
|
-
|
|
8
|
-
const a = o({
|
|
1
|
+
import { defineComponent as e } from "vue";
|
|
2
|
+
import { g as r } from "./get-block-actions.982724b1.js";
|
|
3
|
+
import { g as c } from "./get-block-properties.008d318f.js";
|
|
4
|
+
import { n } from "./index.da59485b.js";
|
|
5
|
+
import "./evaluate.9bc5efc5.js";
|
|
6
|
+
import "./css.dd09e65b.js";
|
|
7
|
+
const a = e({
|
|
9
8
|
name: "block-wrapper",
|
|
10
|
-
props: ["Wrapper", "block", "context", "
|
|
9
|
+
props: ["Wrapper", "block", "context", "hasChildren"],
|
|
11
10
|
data() {
|
|
12
11
|
return { getBlockActions: r, getBlockProperties: c };
|
|
13
12
|
}
|
|
14
13
|
});
|
|
15
14
|
var l = function() {
|
|
16
|
-
var t = this,
|
|
17
|
-
return t._self._setupProxy, t.hasChildren ?
|
|
15
|
+
var t = this, o = t._self._c;
|
|
16
|
+
return t._self._setupProxy, t.hasChildren ? o(t.Wrapper, t._g(
|
|
18
17
|
t._b(
|
|
19
18
|
{ tag: "component" },
|
|
20
19
|
"component",
|
|
@@ -30,10 +29,9 @@ var l = function() {
|
|
|
30
29
|
rootSetState: t.context.rootSetState,
|
|
31
30
|
localState: t.context.localState,
|
|
32
31
|
context: t.context.context,
|
|
33
|
-
stripPrefix: !0
|
|
34
|
-
serverExecutor: t.serverExecutor
|
|
32
|
+
stripPrefix: !0
|
|
35
33
|
})
|
|
36
|
-
), [t._t("default")], 2) :
|
|
34
|
+
), [t._t("default")], 2) : o(t.Wrapper, t._g(
|
|
37
35
|
t._b(
|
|
38
36
|
{ tag: "component" },
|
|
39
37
|
"component",
|
|
@@ -49,21 +47,20 @@ var l = function() {
|
|
|
49
47
|
rootSetState: t.context.rootSetState,
|
|
50
48
|
localState: t.context.localState,
|
|
51
49
|
context: t.context.context,
|
|
52
|
-
stripPrefix: !0
|
|
53
|
-
serverExecutor: t.serverExecutor
|
|
50
|
+
stripPrefix: !0
|
|
54
51
|
})
|
|
55
52
|
));
|
|
56
|
-
},
|
|
53
|
+
}, p = [], s = /* @__PURE__ */ n(
|
|
57
54
|
a,
|
|
58
55
|
l,
|
|
59
|
-
|
|
56
|
+
p,
|
|
60
57
|
!1,
|
|
61
58
|
null,
|
|
62
59
|
null,
|
|
63
60
|
null,
|
|
64
61
|
null
|
|
65
62
|
);
|
|
66
|
-
const b =
|
|
63
|
+
const b = s.exports;
|
|
67
64
|
export {
|
|
68
65
|
b as default
|
|
69
66
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./get-block-actions.2fa72e92.cjs"),r=require("./get-block-properties.094bfc1a.cjs"),n=require("./index.d24a9f20.cjs");require("./evaluate.79598493.cjs");require("./css.21080882.cjs");const l=o.defineComponent({name:"block-wrapper",props:["Wrapper","block","context","hasChildren"],data(){return{getBlockActions:c.getBlockActions,getBlockProperties:r.getBlockProperties}}});var a=function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hasChildren?e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})),[t._t("default")],2):e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})))},s=[],i=n.normalizeComponent(l,a,s,!1,null,null,null,null);const p=i.exports;exports.default=p;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),a=require("./get-processed-block.06b725b4.cjs"),m=require("./evaluate.79598493.cjs"),d=require("./index.d24a9f20.cjs");require("./set.87eb0329.cjs");function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}const u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=t=>typeof t=="string"&&u.includes(t.toLowerCase()),b=({block:t,context:e,registeredComponents:o})=>{var r;const c=(r=a.getProcessedBlock({block:t,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!c)return null;const n=o[c];if(n)return n;console.warn(`
|
|
2
|
+
Could not find a registered component named "${c}".
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},f=({block:t,context:e})=>{const{repeat:o,...c}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const r=o.collection.split(".").pop(),s=o.itemName||(r?r+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:c}))},C=()=>Promise.resolve().then(()=>require("./block-styles.d4e625bc.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./repeated-block.27283bd9.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",t),t}),g=()=>Promise.resolve().then(()=>require("./component-ref.c0ab9fe2.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",t),t}),y=()=>Promise.resolve().then(()=>require("./block-wrapper.df62a070.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",t),t}),B=p.defineComponent({name:"block",components:{"component-ref":g,"block-wrapper":y,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return b({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return f({block:this.block,context:this.context})},processedBlock(){return this.repeatItem?this.block:a.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){return"hide"in this.processedBlock?!this.processedBlock.hide:"show"in this.processedBlock?this.processedBlock.show:!0},childrenWithoutParentComponent(){var e,o;return!((e=this.blockComponent)!=null&&e.component)&&!this.repeatItem?(o=this.processedBlock.children)!=null?o:[]:[]},componentRefProps(){var t,e,o,c,n,r;return{blockChildren:(t=this.processedBlock.children)!=null?t:[],componentRef:(e=this.blockComponent)==null?void 0:e.component,componentOptions:{...h(this.processedBlock),builderContext:this.context,...((o=this.blockComponent)==null?void 0:o.name)==="Symbol"||((c=this.blockComponent)==null?void 0:c.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((n=this.blockComponent)==null?void 0:n.noWrap)===!0,isInteractive:!((r=this.blockComponent)!=null&&r.isRSC)}}}});var x=function(){var c;var e=this,o=e._self._c;return e._self._setupProxy,!Boolean(!((c=e.blockComponent)!=null&&c.noWrap))&&e.canShowBlock?o("component-ref",e._b({},"component-ref",e.componentRefProps,!1)):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,r){return o("repeated-block",{key:r,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",e._b({},"component-ref",e.componentRefProps,!1)),e._l(e.childrenWithoutParentComponent,function(n,r){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,r){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},v=[],w=d.normalizeComponent(B,x,v,!1,null,null,null,null);const _=w.exports;exports.default=_;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { defineComponent as p } from "vue";
|
|
2
|
+
import { g as a } from "./get-processed-block.cabbf7c1.js";
|
|
3
|
+
import { e as m } from "./evaluate.9bc5efc5.js";
|
|
4
|
+
import { n as d } from "./index.da59485b.js";
|
|
5
|
+
import "./set.b219ab0e.js";
|
|
6
|
+
function h(e) {
|
|
7
|
+
var t;
|
|
8
|
+
return {
|
|
9
|
+
...(t = e.component) == null ? void 0 : t.options,
|
|
10
|
+
...e.options,
|
|
11
|
+
builderBlock: e
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], u = (e) => typeof e == "string" && k.includes(e.toLowerCase()), f = ({
|
|
15
|
+
block: e,
|
|
16
|
+
context: t,
|
|
17
|
+
registeredComponents: o
|
|
18
|
+
}) => {
|
|
19
|
+
var r;
|
|
20
|
+
const c = (r = a({
|
|
21
|
+
block: e,
|
|
22
|
+
localState: t.localState,
|
|
23
|
+
rootState: t.rootState,
|
|
24
|
+
rootSetState: t.rootSetState,
|
|
25
|
+
context: t.context,
|
|
26
|
+
shouldEvaluateBindings: !1
|
|
27
|
+
}).component) == null ? void 0 : r.name;
|
|
28
|
+
if (!c)
|
|
29
|
+
return null;
|
|
30
|
+
const n = o[c];
|
|
31
|
+
if (n)
|
|
32
|
+
return n;
|
|
33
|
+
console.warn(`
|
|
34
|
+
Could not find a registered component named "${c}".
|
|
35
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
36
|
+
}, b = ({
|
|
37
|
+
block: e,
|
|
38
|
+
context: t
|
|
39
|
+
}) => {
|
|
40
|
+
const {
|
|
41
|
+
repeat: o,
|
|
42
|
+
...c
|
|
43
|
+
} = e;
|
|
44
|
+
if (!(o != null && o.collection))
|
|
45
|
+
return;
|
|
46
|
+
const n = m({
|
|
47
|
+
code: o.collection,
|
|
48
|
+
localState: t.localState,
|
|
49
|
+
rootState: t.rootState,
|
|
50
|
+
rootSetState: t.rootSetState,
|
|
51
|
+
context: t.context
|
|
52
|
+
});
|
|
53
|
+
if (!Array.isArray(n))
|
|
54
|
+
return;
|
|
55
|
+
const r = o.collection.split(".").pop(), s = o.itemName || (r ? r + "Item" : "item");
|
|
56
|
+
return n.map((l, i) => ({
|
|
57
|
+
context: {
|
|
58
|
+
...t,
|
|
59
|
+
localState: {
|
|
60
|
+
...t.localState,
|
|
61
|
+
$index: i,
|
|
62
|
+
$item: l,
|
|
63
|
+
[s]: l,
|
|
64
|
+
[`$${s}Index`]: i
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
block: c
|
|
68
|
+
}));
|
|
69
|
+
}, C = () => import("./block-styles.4aca252e.js").then((e) => e.default).catch((e) => {
|
|
70
|
+
throw console.error(
|
|
71
|
+
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
72
|
+
e
|
|
73
|
+
), e;
|
|
74
|
+
}), S = () => import("./repeated-block.2b3065cd.js").then((e) => e.default).catch((e) => {
|
|
75
|
+
throw console.error(
|
|
76
|
+
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
77
|
+
e
|
|
78
|
+
), e;
|
|
79
|
+
}), g = () => import("./component-ref.2a5e1ada.js").then((e) => e.default).catch((e) => {
|
|
80
|
+
throw console.error(
|
|
81
|
+
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
82
|
+
e
|
|
83
|
+
), e;
|
|
84
|
+
}), y = () => import("./block-wrapper.266a0ef3.js").then((e) => e.default).catch((e) => {
|
|
85
|
+
throw console.error(
|
|
86
|
+
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
87
|
+
e
|
|
88
|
+
), e;
|
|
89
|
+
}), x = p({
|
|
90
|
+
name: "block",
|
|
91
|
+
components: {
|
|
92
|
+
"component-ref": g,
|
|
93
|
+
"block-wrapper": y,
|
|
94
|
+
"repeated-block": S,
|
|
95
|
+
"block-styles": C
|
|
96
|
+
},
|
|
97
|
+
props: ["block", "context", "registeredComponents"],
|
|
98
|
+
data() {
|
|
99
|
+
return { childrenContext: this.context, isEmptyHtmlElement: u };
|
|
100
|
+
},
|
|
101
|
+
computed: {
|
|
102
|
+
blockComponent() {
|
|
103
|
+
return f({
|
|
104
|
+
block: this.block,
|
|
105
|
+
context: this.context,
|
|
106
|
+
registeredComponents: this.registeredComponents
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
repeatItem() {
|
|
110
|
+
return b({
|
|
111
|
+
block: this.block,
|
|
112
|
+
context: this.context
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
processedBlock() {
|
|
116
|
+
return this.repeatItem ? this.block : a({
|
|
117
|
+
block: this.block,
|
|
118
|
+
localState: this.context.localState,
|
|
119
|
+
rootState: this.context.rootState,
|
|
120
|
+
rootSetState: this.context.rootSetState,
|
|
121
|
+
context: this.context.context,
|
|
122
|
+
shouldEvaluateBindings: !0
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
Tag() {
|
|
126
|
+
return this.block.tagName || "div";
|
|
127
|
+
},
|
|
128
|
+
canShowBlock() {
|
|
129
|
+
return "hide" in this.processedBlock ? !this.processedBlock.hide : "show" in this.processedBlock ? this.processedBlock.show : !0;
|
|
130
|
+
},
|
|
131
|
+
childrenWithoutParentComponent() {
|
|
132
|
+
var t, o;
|
|
133
|
+
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (o = this.processedBlock.children) != null ? o : [] : [];
|
|
134
|
+
},
|
|
135
|
+
componentRefProps() {
|
|
136
|
+
var e, t, o, c, n, r;
|
|
137
|
+
return {
|
|
138
|
+
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
139
|
+
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
140
|
+
componentOptions: {
|
|
141
|
+
...h(this.processedBlock),
|
|
142
|
+
builderContext: this.context,
|
|
143
|
+
...((o = this.blockComponent) == null ? void 0 : o.name) === "Symbol" || ((c = this.blockComponent) == null ? void 0 : c.name) === "Columns" ? {
|
|
144
|
+
builderComponents: this.registeredComponents
|
|
145
|
+
} : {}
|
|
146
|
+
},
|
|
147
|
+
context: this.childrenContext,
|
|
148
|
+
registeredComponents: this.registeredComponents,
|
|
149
|
+
builderBlock: this.processedBlock,
|
|
150
|
+
includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
|
|
151
|
+
isInteractive: !((r = this.blockComponent) != null && r.isRSC)
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
var B = function() {
|
|
157
|
+
var c;
|
|
158
|
+
var t = this, o = t._self._c;
|
|
159
|
+
return t._self._setupProxy, !Boolean(!((c = t.blockComponent) != null && c.noWrap)) && t.canShowBlock ? o("component-ref", t._b({}, "component-ref", t.componentRefProps, !1)) : t.isEmptyHtmlElement(t.Tag) && t.canShowBlock ? o("block-wrapper", { attrs: { Wrapper: t.Tag, block: t.processedBlock, context: t.context, hasChildren: !1 } }) : !t.isEmptyHtmlElement(t.Tag) && t.repeatItem && t.canShowBlock ? o("div", { staticClass: "vue2-root-element-workaround" }, t._l(t.repeatItem, function(n, r) {
|
|
160
|
+
return o("repeated-block", { key: r, attrs: { repeatContext: n.context, block: n.block, registeredComponents: t.registeredComponents } });
|
|
161
|
+
}), 1) : t.canShowBlock ? o("block-wrapper", { attrs: { Wrapper: t.Tag, block: t.processedBlock, context: t.context, hasChildren: !0 } }, [o("component-ref", t._b({}, "component-ref", t.componentRefProps, !1)), t._l(t.childrenWithoutParentComponent, function(n, r) {
|
|
162
|
+
return o("block", { key: "block-" + n.id, attrs: { block: n, context: t.childrenContext, registeredComponents: t.registeredComponents } });
|
|
163
|
+
}), t._l(t.childrenWithoutParentComponent, function(n, r) {
|
|
164
|
+
return o("block-styles", { key: "block-style-" + n.id, attrs: { block: n, context: t.childrenContext } });
|
|
165
|
+
})], 2) : t._e();
|
|
166
|
+
}, _ = [], w = /* @__PURE__ */ d(
|
|
167
|
+
x,
|
|
168
|
+
B,
|
|
169
|
+
_,
|
|
170
|
+
!1,
|
|
171
|
+
null,
|
|
172
|
+
null,
|
|
173
|
+
null,
|
|
174
|
+
null
|
|
175
|
+
);
|
|
176
|
+
const T = w.exports;
|
|
177
|
+
export {
|
|
178
|
+
T as default
|
|
179
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index.d24a9f20.cjs"),a=o.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(t){const e={};if(typeof t!="string")return e;const s=t.trim().split(/\s+/);for(const n of s)e[n]=!0;return e}}});var i=function(){var e=this,s=e._self._c;return e._self._setupProxy,s("div",e._b({class:e._classStringToObject(e.className+" div-tqyw9m0iue"),style:e.styleProp,attrs:{"builder-path":e.path,"builder-parent-id":e.parent},on:{click:function(n){return e.onClick()},mouseenter:function(n){return e.onMouseEnter()},keypress:function(n){return e.onClick()}}},"div",{},!1),[e._t("default")],2)},l=[],c=r.normalizeComponent(a,i,l,!1,null,"a3106f07",null,null);const p=c.exports;exports.default=p;
|
|
@@ -1,45 +1,39 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { g as
|
|
3
|
-
import { n as
|
|
4
|
-
import "./css
|
|
5
|
-
const
|
|
2
|
+
import { g as s } from "./get-block-properties.008d318f.js";
|
|
3
|
+
import { n as a } from "./index.da59485b.js";
|
|
4
|
+
import "./css.dd09e65b.js";
|
|
5
|
+
const m = ({
|
|
6
6
|
componentOptions: t,
|
|
7
7
|
builderBlock: e,
|
|
8
8
|
context: n,
|
|
9
9
|
componentRef: o,
|
|
10
10
|
includeBlockProps: r,
|
|
11
11
|
isInteractive: l,
|
|
12
|
-
contextValue:
|
|
13
|
-
serverExecutor: i
|
|
12
|
+
contextValue: i
|
|
14
13
|
}) => l ? {
|
|
15
14
|
Wrapper: o,
|
|
16
15
|
block: e,
|
|
17
16
|
context: n,
|
|
18
|
-
wrapperProps: t
|
|
19
|
-
serverExecutor: i
|
|
17
|
+
wrapperProps: t
|
|
20
18
|
} : {
|
|
21
19
|
...t,
|
|
22
|
-
/**
|
|
23
|
-
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
24
|
-
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
25
|
-
*/
|
|
26
20
|
...r ? {
|
|
27
|
-
attributes:
|
|
21
|
+
attributes: s({
|
|
28
22
|
block: e,
|
|
29
|
-
context:
|
|
23
|
+
context: i
|
|
30
24
|
})
|
|
31
25
|
} : {}
|
|
32
|
-
}, k = () => import("./block-styles
|
|
26
|
+
}, k = () => import("./block-styles.4aca252e.js").then((t) => t.default).catch((t) => {
|
|
33
27
|
throw console.error(
|
|
34
28
|
"Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
|
|
35
29
|
t
|
|
36
30
|
), t;
|
|
37
|
-
}),
|
|
31
|
+
}), u = () => import("./block.33475f0d.js").then((t) => t.default).catch((t) => {
|
|
38
32
|
throw console.error(
|
|
39
33
|
"Error while attempting to dynamically import component Block at ../../block.vue",
|
|
40
34
|
t
|
|
41
35
|
), t;
|
|
42
|
-
}), c = () => import("./interactive-element
|
|
36
|
+
}), c = () => import("./interactive-element.7172524e.js").then((t) => t.default).catch((t) => {
|
|
43
37
|
throw console.error(
|
|
44
38
|
"Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",
|
|
45
39
|
t
|
|
@@ -47,7 +41,7 @@ const u = ({
|
|
|
47
41
|
}), d = p({
|
|
48
42
|
name: "component-ref",
|
|
49
43
|
components: {
|
|
50
|
-
block:
|
|
44
|
+
block: u,
|
|
51
45
|
"block-styles": k,
|
|
52
46
|
"interactive-element": c
|
|
53
47
|
},
|
|
@@ -58,18 +52,17 @@ const u = ({
|
|
|
58
52
|
"builderBlock",
|
|
59
53
|
"context",
|
|
60
54
|
"includeBlockProps",
|
|
61
|
-
"serverExecutor",
|
|
62
55
|
"blockChildren",
|
|
63
56
|
"registeredComponents"
|
|
64
57
|
],
|
|
65
58
|
data() {
|
|
66
59
|
return {
|
|
67
60
|
Wrapper: this.isInteractive ? c : this.componentRef,
|
|
68
|
-
getWrapperProps:
|
|
61
|
+
getWrapperProps: m
|
|
69
62
|
};
|
|
70
63
|
}
|
|
71
64
|
});
|
|
72
|
-
var
|
|
65
|
+
var f = function() {
|
|
73
66
|
var e = this, n = e._self._c;
|
|
74
67
|
return e._self._setupProxy, e.componentRef ? n(e.Wrapper, e._b(
|
|
75
68
|
{ tag: "component" },
|
|
@@ -81,26 +74,25 @@ var v = function() {
|
|
|
81
74
|
componentRef: e.componentRef,
|
|
82
75
|
includeBlockProps: e.includeBlockProps,
|
|
83
76
|
isInteractive: e.isInteractive,
|
|
84
|
-
contextValue: e.context
|
|
85
|
-
serverExecutor: e.serverExecutor
|
|
77
|
+
contextValue: e.context
|
|
86
78
|
}),
|
|
87
79
|
!1
|
|
88
80
|
), [e._l(e.blockChildren, function(o, r) {
|
|
89
|
-
return n("block", { key: "block-" + o.id, attrs: { block: o, context: e.context,
|
|
81
|
+
return n("block", { key: "block-" + o.id, attrs: { block: o, context: e.context, registeredComponents: e.registeredComponents } });
|
|
90
82
|
}), e._l(e.blockChildren, function(o, r) {
|
|
91
|
-
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.context
|
|
83
|
+
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.context } });
|
|
92
84
|
})], 2) : e._e();
|
|
93
|
-
},
|
|
85
|
+
}, _ = [], b = /* @__PURE__ */ a(
|
|
94
86
|
d,
|
|
95
|
-
|
|
96
|
-
|
|
87
|
+
f,
|
|
88
|
+
_,
|
|
97
89
|
!1,
|
|
98
90
|
null,
|
|
99
91
|
null,
|
|
100
92
|
null,
|
|
101
93
|
null
|
|
102
94
|
);
|
|
103
|
-
const B =
|
|
95
|
+
const B = b.exports;
|
|
104
96
|
export {
|
|
105
97
|
B as default
|
|
106
98
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),a=require("./get-block-properties.094bfc1a.cjs"),p=require("./index.d24a9f20.cjs");require("./css.21080882.cjs");const m=({componentOptions:t,builderBlock:e,context:n,componentRef:o,includeBlockProps:r,isInteractive:l,contextValue:s})=>l?{Wrapper:o,block:e,context:n,wrapperProps:t}:{...t,...r?{attributes:a.getBlockProperties({block:e,context:s})}:{}},u=()=>Promise.resolve().then(()=>require("./block-styles.d4e625bc.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),d=()=>Promise.resolve().then(()=>require("./block.1c14e1e8.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element.0a1def03.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",t),t}),k=i.defineComponent({name:"component-ref",components:{block:d,"block-styles":u,"interactive-element":c},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c:this.componentRef,getWrapperProps:m}}});var b=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.componentRef?n(e.Wrapper,e._b({tag:"component"},"component",e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),!1),[e._l(e.blockChildren,function(o,r){return n("block",{key:"block-"+o.id,attrs:{block:o,context:e.context,registeredComponents:e.registeredComponents}})}),e._l(e.blockChildren,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},f=[],v=p.normalizeComponent(k,b,f,!1,null,null,null,null);const _=v.exports;exports.default=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),i=require("./index.d24a9f20.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&!!n.find(r=>r.get("width"))&&(!!n.find(c=>!c.get("width"))||n.reduce((s,l)=>s+l.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},x={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(o,s=6e4){return new Promise((l,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,l(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=o,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(o){return Math.round(o*1e3)/1e3}const r=e.get("image"),c=e.get("aspectRatio");if(fetch(r).then(o=>o.blob()).then(o=>{o.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!c||c===.7041))return n(r).then(o=>{const s=e.get("aspectRatio");e.get("image")===r&&(!s||s===.7041)&&o.width&&o.height&&(e.set("aspectRatio",a(o.height/o.width)),e.set("height",o.height),e.set("width",o.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},v={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},S={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},T={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},_={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`Embed`: Error running script:",a)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=i.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:i.isEditing,filterAttrs:i.filterAttrs}}});var P=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},W=[],$=i.normalizeComponent(A,P,W,!1,null,null,null,null);const j=$.exports,U={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},z=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}}},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const a of n)t[a]=!0;return t}}});var H=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},q=[],L=i.normalizeComponent(z,H,q,!1,null,null,null,null);const D=L.exports,N={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},f=()=>[{component:i.Button,...g},{component:i.Columns,...b},{component:D,...N},{component:V,...C},{component:i.Fragment,...y},{component:i.Image,...x},{component:j,...U},{component:i.Section,...v},{component:i.Symbol,...S},{component:i.Text,...T},{component:i.Video,..._}],M=({content:e,data:t,locale:n})=>{var c,o,s;const a={};(o=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||o.forEach(l=>{var d;l.name&&l.defaultValue!==void 0&&((d=e==null?void 0:e.data)==null?void 0:d.state)&&e.data.state[l.name]===void 0&&(a[l.name]=l.defaultValue)});const r={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...r}},B=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index.d24a9f20.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./styles.39410f45.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor.472fc3ec.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./inlined-script.7d9f29c5.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":J,"content-styles":O,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:i.getRenderContentScriptString({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:{component:a,...i.serializeComponentInfo(r)}}),{}),builderContextSignal:{content:B({content:this.content,data:this.data}),localState:void 0,rootState:M({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:i.serializeComponentInfo(r)}),{}),inheritedStyles:{}},TARGET:i.TARGET}},provide(){const e=this;return{[i.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var a,r,c,o,s,l,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,classNameProp:t.classNameProp,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(a=t.builderContextSignal.content)==null?void 0:a.id,cssCode:(c=(r=t.builderContextSignal.content)==null?void 0:r.data)==null?void 0:c.cssCode,customFonts:(s=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(l=t.builderContextSignal.content)==null?void 0:l.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=i.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|