@builder.io/sdk-vue 0.0.2-2 → 0.0.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -3
- package/packages/_vue2/dist/block-styles.234651b2.js +86 -0
- package/packages/_vue2/dist/block-styles.c531694e.cjs +6 -0
- package/packages/_vue2/dist/env.d.ts +1 -0
- package/packages/_vue2/dist/get-processed-block.1ba91586.js +40 -0
- package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +1 -0
- package/packages/_vue2/dist/{index.e1356b24.js → index.19474a4f.js} +307 -285
- package/packages/_vue2/dist/index.e85eb7cf.cjs +4 -0
- package/packages/_vue2/dist/render-block.3cf39e0e.js +237 -0
- package/packages/_vue2/dist/render-block.4f260352.cjs +3 -0
- package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +53 -0
- package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +1 -0
- package/packages/_vue2/dist/{render-component.76541f08.js → render-component.56e5101d.js} +14 -14
- package/packages/_vue2/dist/render-component.a9d4efb1.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.0a71b4a1.cjs → render-inlined-styles.9b6439ce.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.fb54d112.js → render-inlined-styles.b6534355.js} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.caf201fb.js → render-repeated-block.3e536590.js} +11 -8
- package/packages/_vue2/dist/render-repeated-block.95861e2e.cjs +1 -0
- package/packages/_vue2/dist/{render-styles.76adf086.cjs → render-styles.9d4787d0.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.79b15aed.js → render-styles.ad89c45c.js} +8 -8
- 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/style.css +1 -1
- package/packages/_vue3/dist/block-styles.88005ace.js +83 -0
- package/packages/_vue3/dist/block-styles.e3632a69.cjs +6 -0
- package/packages/_vue3/dist/env.d.ts +1 -0
- package/packages/_vue3/dist/get-processed-block.0d475a13.js +40 -0
- package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +1 -0
- package/packages/_vue3/dist/{index.eb0e01ba.js → index.2472a241.js} +315 -304
- package/packages/_vue3/dist/index.e7c6fe34.cjs +4 -0
- package/packages/_vue3/dist/render-block.593fc01c.js +258 -0
- package/packages/_vue3/dist/render-block.92199649.cjs +3 -0
- package/packages/_vue3/dist/render-component-with-context.f5cab824.js +45 -0
- package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +1 -0
- package/packages/_vue3/dist/render-component.06b4587b.cjs +1 -0
- package/packages/_vue3/dist/{render-component.963a01c2.js → render-component.d5c26257.js} +15 -16
- package/packages/_vue3/dist/render-inlined-styles.3fab5467.cjs +1 -0
- package/packages/_vue3/dist/{render-inlined-styles.1c41d49e.js → render-inlined-styles.be1aba8b.js} +7 -8
- package/packages/_vue3/dist/{render-repeated-block.760bb69a.js → render-repeated-block.1d1c64a8.js} +11 -9
- package/packages/_vue3/dist/render-repeated-block.d1580cb5.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.c0cc9565.cjs → render-styles.4717b645.cjs} +2 -2
- package/packages/_vue3/dist/{render-styles.750ea842.js → render-styles.efaaccdf.js} +14 -15
- 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/style.css +1 -1
- package/packages/_vue2/dist/block-styles.7900ea80.cjs +0 -10
- package/packages/_vue2/dist/block-styles.dd3d70e3.js +0 -56
- 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.a2f51c18.js +0 -237
- package/packages/_vue2/dist/render-block.e4f18476.cjs +0 -3
- package/packages/_vue2/dist/render-component.fc56f8dc.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.0990371f.cjs +0 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as a, resolveComponent as d, openBlock as m, createBlock as f } from "vue";
|
|
2
|
-
import { _ as p } from "./index.
|
|
3
|
-
const y = () => import("./render-inlined-styles.
|
|
2
|
+
import { _ as p } from "./index.2472a241.js";
|
|
3
|
+
const y = () => import("./render-inlined-styles.be1aba8b.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
|
|
6
6
|
e
|
|
@@ -8,7 +8,7 @@ const y = () => import("./render-inlined-styles.1c41d49e.js").then((e) => e.defa
|
|
|
8
8
|
}), u = {
|
|
9
9
|
name: "render-content-styles",
|
|
10
10
|
components: {
|
|
11
|
-
|
|
11
|
+
RenderInlinedStyles: a(y)
|
|
12
12
|
},
|
|
13
13
|
props: ["cssCode", "customFonts"],
|
|
14
14
|
computed: {
|
|
@@ -22,8 +22,8 @@ ${this.getFontCss({
|
|
|
22
22
|
},
|
|
23
23
|
methods: {
|
|
24
24
|
getCssFromFont(e) {
|
|
25
|
-
var i,
|
|
26
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], s = (
|
|
25
|
+
var i, l;
|
|
26
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], s = (l = e.fileUrl) != null ? l : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
|
|
27
27
|
let r = "";
|
|
28
28
|
if (s && t && n && (r += `
|
|
29
29
|
@font-face {
|
|
@@ -33,16 +33,16 @@ ${this.getFontCss({
|
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
}
|
|
35
35
|
`.trim()), e.files)
|
|
36
|
-
for (const
|
|
37
|
-
if (!(String(Number(
|
|
36
|
+
for (const o in e.files) {
|
|
37
|
+
if (!(String(Number(o)) === o))
|
|
38
38
|
continue;
|
|
39
|
-
const c = e.files[
|
|
39
|
+
const c = e.files[o];
|
|
40
40
|
c && c !== s && (r += `
|
|
41
41
|
@font-face {
|
|
42
42
|
font-family: "${t}";
|
|
43
43
|
src: url('${c}') format('woff2');
|
|
44
44
|
font-display: fallback;
|
|
45
|
-
font-weight: ${
|
|
45
|
+
font-weight: ${o};
|
|
46
46
|
}
|
|
47
47
|
`.trim());
|
|
48
48
|
}
|
|
@@ -52,14 +52,13 @@ ${this.getFontCss({
|
|
|
52
52
|
var t;
|
|
53
53
|
return ((t = e == null ? void 0 : e.map((n) => this.getCssFromFont(n))) == null ? void 0 : t.join(" ")) || "";
|
|
54
54
|
}
|
|
55
|
-
}
|
|
56
|
-
compatConfig: { MODE: 3 }
|
|
55
|
+
}
|
|
57
56
|
};
|
|
58
57
|
function h(e, t, n, s, r, i) {
|
|
59
|
-
const
|
|
60
|
-
return m(), f(
|
|
58
|
+
const l = d("render-inlined-styles");
|
|
59
|
+
return m(), f(l, { styles: i.injectedStyles }, null, 8, ["styles"]);
|
|
61
60
|
}
|
|
62
|
-
const
|
|
61
|
+
const w = /* @__PURE__ */ p(u, [["render", h]]);
|
|
63
62
|
export {
|
|
64
|
-
|
|
63
|
+
w as default
|
|
65
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.e7c6fe34.cjs");require("vue");exports.Button=e.Button;exports.Columns=e.Columns;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.renderBlocks;exports.RenderContent=e.renderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports.components=e.components;exports.convertSearchParamsToQueryObject=e.convertSearchParamsToQueryObject;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.generateContentUrl=e.generateContentUrl;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getBuilderSearchParamsFromWindow=e.getBuilderSearchParamsFromWindow;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.normalizeSearchParams=e.normalizeSearchParams;exports.register=e.register;exports.registerComponent=e.registerComponent;exports.setEditorSettings=e.setEditorSettings;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/index'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as t, C as r, F as n, I as o, c as i, r as g, b as m, S as c, a as l, V as d, f as C, o as S, h as p, l as h, n as u, p as B, q as P, k as b, i as F, d as R, t as f, j, g as k, s as v } from "./index.
|
|
1
|
+
import { B as t, C as r, F as n, I as o, c as i, r as g, b as m, S as c, a as l, V as d, f as C, o as S, h as p, l as h, n as u, p as B, q as P, k as b, i as F, d as R, t as f, j, g as k, s as v } from "./index.2472a241.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
t as Button,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.div-
|
|
1
|
+
.div-361b1o6wv2k[data-v-c19c7ec1]{display:flex;align-items:stretch;line-height:normal}@media (max-width: 991px){.div-361b1o6wv2k[data-v-c19c7ec1]{flex-direction:var(--flex-dir-tablet)}}@media (max-width: 639px){.div-361b1o6wv2k[data-v-c19c7ec1]{flex-direction:var(--flex-dir)}}.div-361b1o6wv2k-2[data-v-c19c7ec1]{display:flex;flex-direction:column;align-items:stretch}@media (max-width: 991px){.div-361b1o6wv2k-2[data-v-c19c7ec1]{width:var(--column-width-tablet)!important;margin-left:var(--column-margin-left-tablet)!important}}@media (max-width: 639px){.div-361b1o6wv2k-2[data-v-c19c7ec1]{width:var(--column-width)!important;margin-left:var(--column-margin-left)!important}}.img-256wrwn33ry[data-v-bf4ee294]{opacity:1;transition:opacity .2s ease-in-out;position:absolute;height:100%;width:100%;top:0px;left:0px}.div-256wrwn33ry[data-v-bf4ee294]{width:100%;pointer-events:none;font-size:0}.div-256wrwn33ry-2[data-v-bf4ee294]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.button-1yj9n7yt24z[data-v-a1cb1b3e]{all:unset}.div-7fq9d0i380[data-v-768b9dd4]{display:flex;flex-direction:column;align-items:stretch}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./get-processed-block.14848083.cjs"),c=require("./index.9247eff2.cjs"),l=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),r=e=>Object.entries(e).map(([s,n])=>{if(typeof n=="string")return`${l(s)}: ${n};`}).join(`
|
|
2
|
-
`),i=()=>Promise.resolve().then(()=>require("./render-inlined-styles.0a71b4a1.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",e),e}),a={name:"block-styles",components:{"render-inlined-styles":i},props:["block","context"],data:()=>({TARGET:c.TARGET}),computed:{useBlock(){return o.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},css(){const e=this.useBlock.responsiveStyles,t=e==null?void 0:e.large,s=e==null?void 0:e.medium,n=e==null?void 0:e.small;return`
|
|
3
|
-
${t?`.${this.useBlock.id} {${r(t)}}`:""}
|
|
4
|
-
${s?`${o.getMaxWidthQueryForSize("medium")} {
|
|
5
|
-
.${this.useBlock.id} {${r(s)}}
|
|
6
|
-
}`:""}
|
|
7
|
-
${n?`${o.getMaxWidthQueryForSize("small")} {
|
|
8
|
-
.${this.useBlock.id} {${r(n)}}
|
|
9
|
-
}`:""}
|
|
10
|
-
}`}}};var d=function(){var t=this,s=t._self._c;return t.TARGET==="vue2"||t.TARGET==="vue3"||t.TARGET==="svelte"||t.TARGET==="qwik"?s("render-inlined-styles",{attrs:{styles:t.css}}):t._e()},u=[],m=c.normalizeComponent(a,d,u,!1,null,null,null,null);const p=m.exports;exports.default=p;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { g as l, a as r } from "./get-processed-block.eda4b627.js";
|
|
2
|
-
import { T as c, n as i } from "./index.e1356b24.js";
|
|
3
|
-
const a = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), o = (e) => Object.entries(e).map(([s, n]) => {
|
|
4
|
-
if (typeof n == "string")
|
|
5
|
-
return `${a(s)}: ${n};`;
|
|
6
|
-
}).join(`
|
|
7
|
-
`), d = () => import("./render-inlined-styles.fb54d112.js").then((e) => e.default).catch((e) => {
|
|
8
|
-
throw console.error(
|
|
9
|
-
"Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
|
|
10
|
-
e
|
|
11
|
-
), e;
|
|
12
|
-
}), m = {
|
|
13
|
-
name: "block-styles",
|
|
14
|
-
components: { "render-inlined-styles": d },
|
|
15
|
-
props: ["block", "context"],
|
|
16
|
-
data: () => ({ TARGET: c }),
|
|
17
|
-
computed: {
|
|
18
|
-
useBlock() {
|
|
19
|
-
return l({
|
|
20
|
-
block: this.block,
|
|
21
|
-
state: this.context.state,
|
|
22
|
-
context: this.context.context,
|
|
23
|
-
shouldEvaluateBindings: !0
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
css() {
|
|
27
|
-
const e = this.useBlock.responsiveStyles, t = e == null ? void 0 : e.large, s = e == null ? void 0 : e.medium, n = e == null ? void 0 : e.small;
|
|
28
|
-
return `
|
|
29
|
-
${t ? `.${this.useBlock.id} {${o(t)}}` : ""}
|
|
30
|
-
${s ? `${r("medium")} {
|
|
31
|
-
.${this.useBlock.id} {${o(s)}}
|
|
32
|
-
}` : ""}
|
|
33
|
-
${n ? `${r("small")} {
|
|
34
|
-
.${this.useBlock.id} {${o(n)}}
|
|
35
|
-
}` : ""}
|
|
36
|
-
}`;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var u = function() {
|
|
41
|
-
var t = this, s = t._self._c;
|
|
42
|
-
return t.TARGET === "vue2" || t.TARGET === "vue3" || t.TARGET === "svelte" || t.TARGET === "qwik" ? s("render-inlined-styles", { attrs: { styles: t.css } }) : t._e();
|
|
43
|
-
}, p = [], _ = /* @__PURE__ */ i(
|
|
44
|
-
m,
|
|
45
|
-
u,
|
|
46
|
-
p,
|
|
47
|
-
!1,
|
|
48
|
-
null,
|
|
49
|
-
null,
|
|
50
|
-
null,
|
|
51
|
-
null
|
|
52
|
-
);
|
|
53
|
-
const f = _.exports;
|
|
54
|
-
export {
|
|
55
|
-
f as default
|
|
56
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./index.9247eff2.cjs"),c={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},u=e=>`@media (max-width: ${c[e].max}px)`,d=(e,r,s)=>{if(Object(e)!==e)return e;const t=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return t.slice(0,-1).reduce((n,i,a)=>Object(n[i])===n[i]?n[i]:n[i]=Math.abs(Number(t[a+1]))>>0===+t[a+1]?[]:{},e)[t[t.length-1]]=s,e};const m=({block:e,context:r,state:s})=>{if(!e.bindings)return e;const t={...e,properties:{...e.properties},actions:{...e.actions}};for(const n in e.bindings){const i=e.bindings[n],a=o.evaluate({code:i,state:s,context:r});d(t,n,a)}return t};function f({block:e,context:r,shouldEvaluateBindings:s,state:t}){const n=e;return s?m({block:n,state:t,context:r}):n}exports.getMaxWidthQueryForSize=u;exports.getProcessedBlock=f;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { e as o } from "./index.e1356b24.js";
|
|
2
|
-
const u = {
|
|
3
|
-
small: {
|
|
4
|
-
min: 320,
|
|
5
|
-
default: 321,
|
|
6
|
-
max: 640
|
|
7
|
-
},
|
|
8
|
-
medium: {
|
|
9
|
-
min: 641,
|
|
10
|
-
default: 642,
|
|
11
|
-
max: 991
|
|
12
|
-
},
|
|
13
|
-
large: {
|
|
14
|
-
min: 990,
|
|
15
|
-
default: 991,
|
|
16
|
-
max: 1200
|
|
17
|
-
}
|
|
18
|
-
}, f = (e) => `@media (max-width: ${u[e].max}px)`, m = (e, r, s) => {
|
|
19
|
-
if (Object(e) !== e)
|
|
20
|
-
return e;
|
|
21
|
-
const t = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g);
|
|
22
|
-
return t.slice(0, -1).reduce(
|
|
23
|
-
(n, i, a) => Object(n[i]) === n[i] ? n[i] : n[i] = Math.abs(Number(t[a + 1])) >> 0 === +t[a + 1] ? [] : {},
|
|
24
|
-
e
|
|
25
|
-
)[t[t.length - 1]] = s, e;
|
|
26
|
-
};
|
|
27
|
-
const c = ({
|
|
28
|
-
block: e,
|
|
29
|
-
context: r,
|
|
30
|
-
state: s
|
|
31
|
-
}) => {
|
|
32
|
-
if (!e.bindings)
|
|
33
|
-
return e;
|
|
34
|
-
const t = {
|
|
35
|
-
...e,
|
|
36
|
-
properties: { ...e.properties },
|
|
37
|
-
actions: { ...e.actions }
|
|
38
|
-
};
|
|
39
|
-
for (const n in e.bindings) {
|
|
40
|
-
const i = e.bindings[n], a = o({ code: i, state: s, context: r });
|
|
41
|
-
m(t, n, a);
|
|
42
|
-
}
|
|
43
|
-
return t;
|
|
44
|
-
};
|
|
45
|
-
function g({
|
|
46
|
-
block: e,
|
|
47
|
-
context: r,
|
|
48
|
-
shouldEvaluateBindings: s,
|
|
49
|
-
state: t
|
|
50
|
-
}) {
|
|
51
|
-
const n = e;
|
|
52
|
-
return s ? c({ block: n, state: t, context: r }) : n;
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
f as a,
|
|
56
|
-
g
|
|
57
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";function ce(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const b="reactNative";function p(){return typeof window<"u"&&typeof document<"u"}const T={};function U(t,e){let n=T[t];if(n||(n=T[t]=[]),n.push(e),p()){const o={type:"builder.register",data:{type:t,info:e}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const le=()=>{U("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"}]})},ue=()=>{var t;p()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:b,supportsPatchUpdates:!1}},"*"),window.addEventListener("message",({data:e})=>{var n,o;if(e)switch(e.type){case"builder.evaluate":{const r=e.data.text,s=e.data.arguments||[],a=e.data.id,c=new Function(r);let i,l=null;try{i=c.apply(null,s)}catch(u){l=u}l?(n=window.parent)==null||n.postMessage({type:"builder.evaluateError",data:{id:a,error:l.message}},"*"):i&&typeof i.then=="function"?i.then(u=>{var f;(f=window.parent)==null||f.postMessage({type:"builder.evaluateResult",data:{id:a,result:u}},"*")}).catch(console.error):(o=window.parent)==null||o.postMessage({type:"builder.evaluateResult",data:{result:i,id:a}},"*");break}}}))};function x(t){return t}function de(t){return t}const pe=()=>Promise.resolve().then(()=>ae).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",t),t}),me={name:"builder-columns",components:{"render-blocks":pe},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderBlock"],data:()=>({markMutable:x}),computed:{columnsCssVars(){const t=this.stackColumnsAt==="never"?"inherit":this.reverseColumnsWhenStacked?"column-reverse":"column";return{"--flex-dir":t,"--flex-dir-tablet":this.maybeApplyForTablet(t)}},columnCssVars(){const t="100%",e="0";return{"--column-width":t,"--column-margin-left":e,"--column-width-tablet":this.maybeApplyForTablet(t),"--column-margin-left-tablet":this.maybeApplyForTablet(e)}}},methods:{getGutterSize(){return typeof this.space=="number"?this.space||0:20},getColumns(){return this.columns||[]},getWidth(t){var n;const e=this.getColumns();return((n=e[t])==null?void 0:n.width)||100/e.length},getColumnCssWidth(t){const e=this.getColumns(),o=this.getGutterSize()*(e.length-1)/e.length;return`calc(${this.getWidth(t)}% - ${o}px)`},maybeApplyForTablet(t){return(this.stackColumnsAt||"tablet")==="tablet"?t:"inherit"}}};function d(t,e,n,o,r,s,a,c){var i=typeof t=="function"?t.options:t;e&&(i.render=e,i.staticRenderFns=n,i._compiled=!0),o&&(i.functional=!0),s&&(i._scopeId="data-v-"+s);var l;if(a?(l=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__<"u"&&(m=__VUE_SSR_CONTEXT__),r&&r.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(a)},i._ssrRegister=l):r&&(l=c?function(){r.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(i.functional){i._injectStyles=l;var u=i.render;i.render=function(ie,I){return l.call(I),u(ie,I)}}else{var f=i.beforeCreate;i.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:i}}var fe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"builder-columns div-20351ewpue7",style:e.columnsCssVars},e._l(e.columns,function(o,r){return n("div",{key:r,staticClass:"builder-column div-20351ewpue7-2",style:{width:e.getColumnCssWidth(r),marginLeft:`${r===0?0:e.getGutterSize()}px`,...e.columnCssVars}},[n("render-blocks",{attrs:{blocks:e.markMutable(o.blocks),path:`component.options.columns.${r}.blocks`,parent:e.builderBlock.id}})],1)}),0)},he=[],ge=d(me,fe,he,!1,null,"074f8045",null,null);const P=ge.exports;function R(t){return t.replace(/http(s)?:/,"")}function be(t="",e,n){const o=new RegExp("([?&])"+e+"=.*?(&|$)","i"),r=t.indexOf("?")!==-1?"&":"?";return t.match(o)?t.replace(o,"$1"+e+"="+encodeURIComponent(n)+"$2"):t+r+e+"="+encodeURIComponent(n)}function ve(t,e){if(!t||!(t!=null&&t.match(/cdn\.shopify\.com/))||!e)return t;if(e==="master")return R(t);const n=t.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const o=t.split(n[0]),r=n[3],s=e.match("x")?e:`${e}x`;return R(`${o[0]}_${s}${r}`)}return null}function v(t){if(!t)return t;const e=[100,200,400,800,1200,1600,2e3];if(t.match(/builder\.io/)){let n=t;const o=Number(t.split("?width=")[1]);return isNaN(o)||(n=`${n} ${o}w`),e.filter(r=>r!==o).map(r=>`${be(t,"width",r)} ${r}w`).concat([n]).join(", ")}return t.match(/cdn\.shopify\.com/)?e.map(n=>[ve(t,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,o])=>`${n} ${o}w`).concat([t]).join(", "):t}const _e={name:"builder-image",props:["image","src","srcset","noWebp","altText","backgroundSize","className","sizes","aspectRatio","fitContent","builderBlock"],computed:{srcSetToUse(){var n;const e=this.image||this.src;if(!e||!(e.match(/builder\.io/)||e.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((n=this.image)==null?void 0:n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),v(e)}else if(this.image&&!this.srcset)return v(e);return v(e)},webpSrcSet(){var t;return((t=this.srcSetToUse)==null?void 0:t.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""}},methods:{_classStringToObject(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var ye=function(){var o,r,s,a;var e=this,n=e._self._c;return n("div",{staticClass:"div-cvp1sc2nsao"},[n("picture",[e.webpSrcSet?[n("source",{attrs:{type:"image/webp",srcset:e.webpSrcSet}})]:e._e(),n("img",{class:e._classStringToObject("builder-image"+(e.className?" "+e.className:"")+" img-cvp1sc2nsao"),style:{objectPosition:e.backgroundSize||"center",objectFit:e.backgroundSize||"cover"},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&&((r=(o=e.builderBlock)==null?void 0:o.children)==null?void 0:r.length))?[n("div",{staticClass:"builder-image-sizer div-cvp1sc2nsao-2",style:{paddingTop:e.aspectRatio*100+"%"}})]:e._e(),((a=(s=e.builderBlock)==null?void 0:s.children)==null?void 0:a.length)&&e.fitContent?[e._t("default")]:e._e(),e.fitContent?e._e():[n("div",{staticClass:"div-cvp1sc2nsao-3"},[e._t("default")],2)]],2)},xe=[],Ce=d(_e,ye,xe,!1,null,"fef5e4cf",null,null);const O=Ce.exports,ke={name:"builder-text",props:["text"]};var we=function(){var e=this,n=e._self._c;return n("span",{staticClass:"builder-text",domProps:{innerHTML:e._s(e.text)}})},Se=[],Ie=d(ke,we,Se,!1,null,null,null,null);const A=Ie.exports,Te={name:"builder-video",props:["autoPlay","muted","controls","loop","playsInline","attributes","fit","position","video","posterImage"],computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}}}};var Re=function(){var o;var e=this,n=e._self._c;return n("video",e._b({style:{width:"100%",height:"100%",...(o=e.attributes)==null?void 0:o.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},attrs:{src:e.video||"no-src",poster:e.posterImage}},"video",e.videoProps,!1))},$e=[],Ee=d(Te,Re,$e,!1,null,null,null,null);const V=Ee.exports;function _(t,e=null,n="."){return Object.keys(t).reduce((o,r)=>{const s=t[r],a=[e,r].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...o,..._(s,a,n)}:{...o,[a]:s}},{})}const $="builder.",W=t=>{const e={};return t.forEach((n,o)=>{e[o]=n}),e},B=t=>{if(!t)return{};const e=C(t),n={};return Object.keys(e).forEach(o=>{if(o.startsWith($)){const r=o.replace($,"");n[r]=e[o]}}),n},M=()=>{if(!p())return{};const t=new URLSearchParams(window.location.search);return B(t)},C=t=>t instanceof URLSearchParams?W(t):t;function Fe(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:null}async function L(){const t=Fe().fetch;if(typeof t>"u"&&typeof global<"u"){const e=Promise.resolve().then(()=>ce(require("node-fetch"))).then(n=>n.default);return e.default||e}return t.default||t}const je=t=>{const e=t.split(".");return e.length>2?e.slice(1).join("."):t},N=async({name:t,canTrack:e})=>{var n;try{return e?(n=document.cookie.split("; ").find(o=>o.startsWith(`${t}=`)))==null?void 0:n.split("=")[1]:void 0}catch(o){console.debug("[COOKIE] GET error: ",o)}},Ue=t=>t.map(([e,n])=>n?`${e}=${n}`:e).join("; "),Pe=[["secure",""],["SameSite","None"]],Oe=({name:t,value:e,expires:n})=>{const r=(p()?location.protocol==="https:":!0)?Pe:[[]],s=n?[["expires",n.toUTCString()]]:[[]],a=[[t,e],...s,["path","/"],["domain",je(window.location.hostname)],...r];return Ue(a)},z=async({name:t,value:e,expires:n,canTrack:o})=>{try{if(!o)return;const r=Oe({name:t,value:e,expires:n});document.cookie=r}catch(r){console.warn("[COOKIE] SET error: ",r)}},Ae="builderio.variations",H=t=>`${Ae}.${t}`,Ve=({contentId:t,canTrack:e})=>N({name:H(t),canTrack:e}),We=({contentId:t,canTrack:e,value:n})=>z({name:H(t),value:n,canTrack:e}),g=t=>t!=null,Be=t=>g(t.id)&&g(t.variations)&&Object.keys(t.variations).length>0,Me=({id:t,variations:e})=>{var r;let n=0;const o=Math.random();for(const s in e)if(n+=(r=e[s])==null?void 0:r.testRatio,o<n)return s;return t},E=({item:t,testGroupId:e})=>{const n=t.variations[e];return e===t.id||!n?{testVariationId:t.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===t.id?"Default":"")}},Le=async({item:t,canTrack:e})=>{const n=await Ve({canTrack:e,contentId:t.id}),o=n?E({item:t,testGroupId:n}):void 0;if(o)return o;{const r=Me({variations:t.variations,id:t.id});return We({contentId:t.id,value:r,canTrack:e}).catch(s=>{console.error("could not store A/B test variation: ",s)}),E({item:t,testGroupId:r})}},Ne=async({item:t,canTrack:e})=>{if(!Be(t))return;const n=await Le({item:t,canTrack:e});Object.assign(t,n)};async function k(t){return(await D({...t,limit:1})).results[0]||null}const q=t=>{const{limit:e=30,userAttributes:n,query:o,noTraverse:r=!1,model:s,apiKey:a}=t,c=new URL(`https://cdn.builder.io/api/v2/content/${s}?apiKey=${a}&limit=${e}&noTraverse=${r}`),i={...M(),...C(t.options||{})},l=_(i);for(const u in l)c.searchParams.set(u,String(l[u]));if(n&&c.searchParams.set("userAttributes",JSON.stringify(n)),o){const u=_({query:o});for(const f in u)c.searchParams.set(f,JSON.stringify(u[f]))}return c};async function D(t){const e=q(t),o=await(await L())(e.href).then(s=>s.json()),r=t.canTrack!==!1;if(r)for(const s of o.results)await Ne({item:s,canTrack:r});return o}const ze=()=>Promise.resolve().then(()=>on).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",t),t}),He={name:"builder-symbol",components:{"render-content":ze},props:["symbol","attributes"],data:()=>({className:"builder-symbol",content:null,markMutable:x}),inject:{builderContext:"BuilderContext"},mounted(){var t;this.content=(t=this.symbol)==null?void 0:t.content},watch:{onUpdateHook0(){const t=this.symbol;t&&!t.content&&!this.content&&t.model&&k({model:t.model,apiKey:this.builderContext.apiKey,query:{id:t.entry}}).then(e=>{this.content=e})}},computed:{onUpdateHook0(){return{0:this.symbol,1:this.content}}},methods:{_classStringToObject(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var qe=function(){var o,r,s,a,c;var e=this,n=e._self._c;return n("div",e._b({class:e._classStringToObject(e.className),attrs:{dataSet:{class:e.className}}},"div",e.attributes,!1),[n("render-content",{attrs:{apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:e.markMutable(Object.values(e.builderContext.registeredComponents)),data:e.markMutable({...(o=e.symbol)==null?void 0:o.data,...e.builderContext.state,...(a=(s=(r=e.symbol)==null?void 0:r.content)==null?void 0:s.data)==null?void 0:a.state}),model:(c=e.symbol)==null?void 0:c.model,content:e.markMutable(e.content)}})],1)},De=[],Ke=d(He,qe,De,!1,null,null,null,null);const K=Ke.exports,Ge={name:"builder-button",props:["attributes","text","link","openLinkInNewTab"]};var Je=function(){var e=this,n=e._self._c;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-1be3j8m9ewb"},"button",e.attributes,!1),[e._v(" "+e._s(e.text)+" ")])},Xe=[],Ye=d(Ge,Je,Xe,!1,null,"4348d458",null,null);const G=Ye.exports,Qe={name:"builder-section-component",props:["attributes","maxWidth"]};var Ze=function(){var e=this,n=e._self._c;return n("section",e._b({style:e.maxWidth&&typeof e.maxWidth=="number"?{maxWidth:e.maxWidth}:void 0},"section",e.attributes,!1),[e._t("default")],2)},et=[],tt=d(Qe,Ze,et,!1,null,null,null,null);const J=tt.exports,nt={name:"builder-fragment-component",props:[]};var ot=function(){var e=this,n=e._self._c;return n("span",[e._t("default")],2)},rt=[],st=d(nt,ot,rt,!1,null,null,null,null);const X=st.exports,at={name:"Core:Button",builtIn:!0,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};function w(t){return t.__qwik_serializable__=!0,t}const it={name:"Columns",builtIn:!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:w(t=>{function e(){n.forEach(o=>{o.delete("width")})}const n=t.get("columns");Array.isArray(n)&&!!n.find(r=>r.get("width"))&&(!!n.find(s=>!s.get("width"))||n.reduce((c,i)=>c+i.get("width"),0)!==100)&&e()})},{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}]},ct={name:"Fragment",static:!0,hidden:!0,builtIn:!0,canHaveChildren:!0,noWrap:!0},lt={name:"Image",static:!0,builtIn:!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%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",onChange:w(t=>{t.delete("srcset"),t.delete("noWebp");function n(a,c=6e4){return new Promise((i,l)=>{const u=document.createElement("img");let f=!1;u.onload=()=>{f=!0,i(u)},u.addEventListener("error",m=>{console.warn("Image load failed",m.error),l(m.error)}),u.src=a,setTimeout(()=>{f||l(new Error("Image load timed out"))},c)})}function o(a){return Math.round(a*1e3)/1e3}const r=t.get("image"),s=t.get("aspectRatio");if(fetch(r).then(a=>a.blob()).then(a=>{a.type.includes("svg")&&t.set("noWebp",!0)}),r&&(!s||s===.7041))return n(r).then(a=>{const c=t.get("aspectRatio");t.get("image")===r&&(!c||c===.7041)&&a.width&&a.height&&(t.set("aspectRatio",o(a.height/a.width)),t.set("height",a.height),t.set("width",a.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}]},ut={name:"Core:Section",static:!0,builtIn:!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>"}}}]},dt={name:"Symbol",noWrap:!0,static:!0,builtIn:!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"}]},pt={name:"Text",static:!0,builtIn:!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"}},mt={name:"Video",canHaveChildren:!0,builtIn:!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:"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}]},ft={name:"Embed",static:!0,builtIn:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:w(t=>{const e=t.get("url");if(e)return t.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${e}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{t.get("url")===e&&(o.html?t.set("content",o.html):t.set("content","Invalid url, please try another"))}).catch(o=>{t.set("content","There was an error embedding this URL, please try again or another URL")});t.delete("content")})},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},ht=["text/javascript","application/javascript","application/ecmascript"],gt=t=>ht.includes(t.type),bt={name:"builder-embed",props:["content"],data:()=>({scriptsInserted:[],scriptsRun:[],ranInitFn:!1}),watch:{onUpdateHook0(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const t=this.$refs.elem.getElementsByTagName("script");for(let e=0;e<t.length;e++){const n=t[e];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}else if(gt(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(o){console.warn("`Embed`: Error running script:",o)}}}}};var vt=function(){var e=this,n=e._self._c;return n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:e._s(e.content)}})},_t=[],yt=d(bt,vt,_t,!1,null,null,null,null);const xt=yt.exports;function Ct(){return p()&&window.self!==window.top}function h(){return Ct()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const kt={name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data:()=>({isEditing:h})};var wt=function(){var e=this,n=e._self._c;return n("img",e._b({key:e.isEditing()&&e.imgSrc||"default-key",style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},attrs:{alt:e.altText,src:e.imgSrc||e.image}},"img",e.attributes,!1))},St=[],It=d(kt,wt,St,!1,null,null,null,null);const Tt=It.exports,Rt={name:"Raw:Img",hideFromInsertMenu:!0,builtIn:!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"],required:!0}],noWrap:!0,static:!0},$t={name:"builder-custom-code",props:["replaceNodes","code"],data:()=>({scriptsInserted:[],scriptsRun:[]}),mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const t=this.$refs.elem.getElementsByTagName("script");for(let e=0;e<t.length;e++){const n=t[e];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}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(o){console.warn("`CustomCode`: Error running script:",o)}}}}},_classStringToObject(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var Et=function(){var e=this,n=e._self._c;return n("div",{ref:"elem",class:e._classStringToObject("builder-custom-code"+(e.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:e._s(e.code)}})},Ft=[],jt=d($t,Et,Ft,!1,null,null,null,null);const Ut=jt.exports,Pt={name:"Custom Code",static:!0,builtIn:!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}]},Ot=()=>[{component:P,...it},{component:O,...lt},{component:Tt,...Rt},{component:A,...pt},{component:V,...mt},{component:K,...dt},{component:G,...at},{component:J,...ut},{component:X,...ct},{component:xt,...ft},{component:Ut,...Pt}];function y({code:t,context:e,state:n,event:o}){if(t===""){console.warn("Skipping evaluation of empty code block.");return}const r={isEditing:h(),isBrowser:p(),isServer:!p()},a=!(t.includes(";")||t.includes(" return ")||t.trim().startsWith("return "))?`return (${t});`:t;try{return new Function("builder","Builder","state","context","event",a)(r,r,n,e,o)}catch(c){console.warn(`Builder custom code error:
|
|
2
|
-
While Evaluating:
|
|
3
|
-
`,a,`
|
|
4
|
-
`,c.message||c)}}function Y(){return!p()||h()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const S=[];function At(t,e){return S.push({component:t,...e}),console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."),t}const Q=({component:t,...e})=>({type:"builder.registerComponent",data:Bt(e)}),Z=t=>JSON.parse(JSON.stringify(t)),Vt=t=>typeof t=="function"?Wt(t):Z(t),Wt=t=>{const e=t.toString().trim();return`return (${!e.startsWith("function")&&!e.startsWith("(")?"function ":""}${e}).apply(this, arguments)`},Bt=({inputs:t,...e})=>({...Z(e),inputs:t==null?void 0:t.map(n=>Object.entries(n).reduce((o,[r,s])=>({...o,[r]:Vt(s)}),{}))});function Mt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}function ee(){return Mt().replace(/-/g,"")}const te="builderSessionId",Lt=async({canTrack:t})=>{if(!t)return;const e=await N({name:te,canTrack:t});if(g(e))return e;{const n=Nt();zt({id:n,canTrack:t})}},Nt=()=>ee(),zt=({id:t,canTrack:e})=>z({name:te,value:t,canTrack:e}),ne=()=>p()&&typeof localStorage<"u"?localStorage:void 0,Ht=({key:t,canTrack:e})=>{var n;try{return e?(n=ne())==null?void 0:n.getItem(t):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o)}},qt=({key:t,canTrack:e,value:n})=>{var o;try{e&&((o=ne())==null||o.setItem(t,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},oe="builderVisitorId",Dt=({canTrack:t})=>{if(!t)return;const e=Ht({key:oe,canTrack:t});if(g(e))return e;{const n=Kt();Gt({id:n,canTrack:t})}},Kt=()=>ee(),Gt=({id:t,canTrack:e})=>qt({key:oe,value:t,canTrack:e}),Jt=async({canTrack:t})=>{if(!t)return{visitorId:void 0,sessionId:void 0};const e=await Lt({canTrack:t}),n=Dt({canTrack:t});return{sessionId:e,visitorId:n}},Xt=async({type:t,canTrack:e,orgId:n,contentId:o,...r})=>({type:t,data:{...r,...await Jt({canTrack:e}),ownerId:n,contentId:o}});async function F(t){if(!!t.canTrack&&!h()&&!!(p()||b==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Xt(t)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(e=>{console.error("Failed to track: ",e)})}const Yt=()=>Promise.resolve().then(()=>ae).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",t),t}),Qt=()=>Promise.resolve().then(()=>require("./render-styles.76adf086.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",t),t}),Zt={name:"render-content",components:{"render-content-styles":Qt,"render-blocks":Yt},props:["content","data","canTrack","context","customComponents","model","apiKey"],data:()=>({forceReRenderCount:0,overrideContent:null,update:0,overrideState:{},markMutable:x}),provide(){const t=this;return{BuilderContext:{get content(){return t.useContent},get state(){return t.contentState},get context(){return t.contextContext},get apiKey(){return t.apiKey},get registeredComponents(){return t.allRegisteredComponents}}}},mounted(){var t;if(p()){if(h()&&(this.forceReRenderCount=this.forceReRenderCount+1,le(),ue(),Object.values(this.allRegisteredComponents).forEach(e=>{var o;const n=Q(e);(o=window.parent)==null||o.postMessage(n,"*")}),window.addEventListener("message",this.processMessage),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.useContent&&F({type:"impression",canTrack:this.canTrackToUse,contentId:(t=this.useContent)==null?void 0:t.id,orgId:this.apiKey}),Y()){const e=new URL(location.href).searchParams;if(this.model&&e.get("builder.preview")===this.model){const n=e.get("apiKey")||e.get("builder.space");n&&k({model:this.model,apiKey:n}).then(o=>{o&&(this.overrideContent=o)})}}this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()}},watch:{onUpdateHook0(){this.evaluateJsCode()},onUpdateHook1(){this.runHttpRequests()},onUpdateHook2(){this.emitStateUpdate()}},unmounted(){p()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{useContent(){var e,n;return!this.content&&!this.overrideContent?void 0:{...this.content,...this.overrideContent,data:{...(e=this.content)==null?void 0:e.data,...this.data,...(n=this.overrideContent)==null?void 0:n.data}}},canTrackToUse(){return this.canTrack||!0},contentState(){var t,e;return{...(e=(t=this.content)==null?void 0:t.data)==null?void 0:e.state,...this.data,...this.overrideState}},contextContext(){return this.context||{}},allRegisteredComponents(){return[...Ot(),...S,...this.customComponents||[]].reduce((n,o)=>({...n,[o.name]:o}),{})},httpReqsData(){return{}},shouldRenderContentStyles(){var t,e,n,o,r;return Boolean((((e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.cssCode)||((r=(o=(n=this.useContent)==null?void 0:n.data)==null?void 0:o.customFonts)==null?void 0:r.length))&&b!=="reactNative")},onUpdateHook0(){var t,e;return{0:(e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.jsCode}},onUpdateHook1(){var t,e;return{0:(e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.httpRequests}},onUpdateHook2(){return{0:this.contentState}}},methods:{processMessage(t){const{data:e}=t;if(e)switch(e.type){case"builder.contentUpdate":{const n=e.data,o=n.key||n.alias||n.entry||n.modelName,r=n.data;o===this.model&&(this.overrideContent=r,this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var e,n;const t=(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.jsCode;t&&y({code:t,context:this.contextContext,state:this.contentState})},onClick(t){var e;this.useContent&&F({type:"click",canTrack:this.canTrackToUse,contentId:(e=this.useContent)==null?void 0:e.id,orgId:this.apiKey})},evalExpression(t){return t.replace(/{{([^}]+)}}/g,(e,n)=>y({code:n,context:this.contextContext,state:this.contentState}))},handleRequest({url:t,key:e}){L().then(n=>n(t)).then(n=>n.json()).then(n=>{const o={...this.overrideState,[e]:n};this.overrideState=o}).catch(n=>{console.log("error fetching dynamic data",t,n)})},runHttpRequests(){var e,n,o;const t=(o=(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.httpRequests)!=null?o:{};Object.entries(t).forEach(([r,s])=>{if(s&&(!this.httpReqsData[r]||h())){const a=this.evalExpression(s);this.handleRequest({url:a,key:r})}})},emitStateUpdate(){h()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:this.contentState,ref:{name:this.model}}}))}}};var en=function(){var o,r,s,a,c,i,l;var e=this,n=e._self._c;return e.useContent?n("div",{ref:"elementRef",attrs:{"builder-content-id":(o=e.useContent)==null?void 0:o.id},on:{click:function(u){return e.onClick(u)}}},[e.shouldRenderContentStyles?[n("render-content-styles",{attrs:{cssCode:(s=(r=e.useContent)==null?void 0:r.data)==null?void 0:s.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()},tn=[],nn=d(Zt,en,tn,!1,null,null,null,null);const re=nn.exports,on=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),rn=()=>Promise.resolve().then(()=>require("./block-styles.7900ea80.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",t),t}),sn=()=>Promise.resolve().then(()=>require("./render-block.e4f18476.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",t),t}),an={name:"render-blocks",components:{"render-block":sn,"block-styles":rn},props:["blocks","parent","path"],inject:{builderContext:"BuilderContext"},computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;h()&&!((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;h()&&!((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 n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var cn=function(){var e=this,n=e._self._c;return n("div",{class:e._classStringToObject(e.className+" div-23e8fqt91nf"),attrs:{"builder-path":e.path,"builder-parent-id":e.parent,dataSet:{class:e.className}},on:{click:function(o){return e.onClick()},mouseenter:function(o){return e.onMouseEnter()}}},[e.blocks?e._l(e.blocks,function(o,r){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.builderContext}})}):e._e(),e.blocks?e._l(e.blocks,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.builderContext}})}):e._e()],2)},ln=[],un=d(an,cn,ln,!1,null,"69abb8b2",null,null);const se=un.exports,ae=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"})),j={};function dn(t){if(p()){Object.assign(j,t);const e={type:"builder.settingsChange",data:j};parent.postMessage(e,"*")}}exports.Button=G;exports.Columns=P;exports.Fragment=X;exports.Image=O;exports.Section=J;exports.Symbol=K;exports.TARGET=b;exports.Text=A;exports.Video=V;exports.components=S;exports.convertSearchParamsToQueryObject=W;exports.createRegisterComponentMessage=Q;exports.evaluate=y;exports.generateContentUrl=q;exports.getAllContent=D;exports.getBuilderSearchParams=B;exports.getBuilderSearchParamsFromWindow=M;exports.getContent=k;exports.isEditing=h;exports.isPreviewing=Y;exports.markPropsMutable=de;exports.normalizeComponent=d;exports.normalizeSearchParams=C;exports.register=U;exports.registerComponent=At;exports.renderBlocks=se;exports.renderContent=re;exports.setEditorSettings=dn;
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { e as p, T as u, n as d } from "./index.e1356b24.js";
|
|
2
|
-
import { a as l, g as m } from "./get-processed-block.eda4b627.js";
|
|
3
|
-
function h(t) {
|
|
4
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
5
|
-
}
|
|
6
|
-
const f = (t) => `on${h(t)}`;
|
|
7
|
-
function k(t, e) {
|
|
8
|
-
return (n) => p({
|
|
9
|
-
code: t,
|
|
10
|
-
context: e.context,
|
|
11
|
-
state: e.state,
|
|
12
|
-
event: n
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function g(t) {
|
|
16
|
-
var c;
|
|
17
|
-
const e = {}, n = (c = t.block.actions) != null ? c : {};
|
|
18
|
-
for (const o in n) {
|
|
19
|
-
if (!n.hasOwnProperty(o))
|
|
20
|
-
continue;
|
|
21
|
-
const s = n[o];
|
|
22
|
-
e[f(o)] = k(s, t);
|
|
23
|
-
}
|
|
24
|
-
return e;
|
|
25
|
-
}
|
|
26
|
-
function x(t) {
|
|
27
|
-
var e;
|
|
28
|
-
return {
|
|
29
|
-
...(e = t.component) == null ? void 0 : e.options,
|
|
30
|
-
...t.options,
|
|
31
|
-
builderBlock: t
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function b(t) {
|
|
35
|
-
var e;
|
|
36
|
-
return {
|
|
37
|
-
...t.properties,
|
|
38
|
-
"builder-id": t.id,
|
|
39
|
-
class: [t.id, "builder-block", t.class, (e = t.properties) == null ? void 0 : e.class].filter(Boolean).join(" ")
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
const r = (t) => t, B = (t) => t, v = (t) => {
|
|
43
|
-
switch (u) {
|
|
44
|
-
case "reactNative":
|
|
45
|
-
return {
|
|
46
|
-
...t.large ? r(t.large) : {},
|
|
47
|
-
...t.medium ? r(t.medium) : {},
|
|
48
|
-
...t.small ? r(t.small) : {}
|
|
49
|
-
};
|
|
50
|
-
default:
|
|
51
|
-
return {
|
|
52
|
-
...t.large ? r(t.large) : {},
|
|
53
|
-
...t.medium ? {
|
|
54
|
-
[l("medium")]: r(
|
|
55
|
-
t.medium
|
|
56
|
-
)
|
|
57
|
-
} : {},
|
|
58
|
-
...t.small ? {
|
|
59
|
-
[l("small")]: r(
|
|
60
|
-
t.small
|
|
61
|
-
)
|
|
62
|
-
} : {}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
function y(t) {
|
|
67
|
-
if (!t.responsiveStyles)
|
|
68
|
-
return {};
|
|
69
|
-
const e = v(t.responsiveStyles);
|
|
70
|
-
return B(e);
|
|
71
|
-
}
|
|
72
|
-
function _(t) {
|
|
73
|
-
return t.tagName || "div";
|
|
74
|
-
}
|
|
75
|
-
const R = [
|
|
76
|
-
"area",
|
|
77
|
-
"base",
|
|
78
|
-
"br",
|
|
79
|
-
"col",
|
|
80
|
-
"embed",
|
|
81
|
-
"hr",
|
|
82
|
-
"img",
|
|
83
|
-
"input",
|
|
84
|
-
"keygen",
|
|
85
|
-
"link",
|
|
86
|
-
"meta",
|
|
87
|
-
"param",
|
|
88
|
-
"source",
|
|
89
|
-
"track",
|
|
90
|
-
"wbr"
|
|
91
|
-
], E = (t) => typeof t == "string" && R.includes(t.toLowerCase()), C = () => import("./block-styles.dd3d70e3.js").then((t) => t.default).catch((t) => {
|
|
92
|
-
throw console.error(
|
|
93
|
-
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
94
|
-
t
|
|
95
|
-
), t;
|
|
96
|
-
}), w = () => import("./render-component.76541f08.js").then((t) => t.default).catch((t) => {
|
|
97
|
-
throw console.error(
|
|
98
|
-
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
99
|
-
t
|
|
100
|
-
), t;
|
|
101
|
-
}), S = () => import("./render-repeated-block.caf201fb.js").then((t) => t.default).catch((t) => {
|
|
102
|
-
throw console.error(
|
|
103
|
-
"Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
|
|
104
|
-
t
|
|
105
|
-
), t;
|
|
106
|
-
}), N = {
|
|
107
|
-
name: "render-block",
|
|
108
|
-
components: {
|
|
109
|
-
"render-component": w,
|
|
110
|
-
"render-repeated-block": S,
|
|
111
|
-
"block-styles": C
|
|
112
|
-
},
|
|
113
|
-
props: ["block", "context"],
|
|
114
|
-
data: () => ({ isEmptyHtmlElement: E }),
|
|
115
|
-
computed: {
|
|
116
|
-
component() {
|
|
117
|
-
var n;
|
|
118
|
-
const t = (n = m({
|
|
119
|
-
block: this.block,
|
|
120
|
-
state: this.context.state,
|
|
121
|
-
context: this.context.context,
|
|
122
|
-
shouldEvaluateBindings: !1
|
|
123
|
-
}).component) == null ? void 0 : n.name;
|
|
124
|
-
if (!t)
|
|
125
|
-
return null;
|
|
126
|
-
const e = this.context.registeredComponents[t];
|
|
127
|
-
if (e)
|
|
128
|
-
return e;
|
|
129
|
-
console.warn(`
|
|
130
|
-
Could not find a registered component named "${t}".
|
|
131
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
132
|
-
},
|
|
133
|
-
componentInfo() {
|
|
134
|
-
if (this.component) {
|
|
135
|
-
const { component: t, ...e } = this.component;
|
|
136
|
-
return e;
|
|
137
|
-
} else
|
|
138
|
-
return;
|
|
139
|
-
},
|
|
140
|
-
componentRef() {
|
|
141
|
-
var t;
|
|
142
|
-
return (t = this.component) == null ? void 0 : t.component;
|
|
143
|
-
},
|
|
144
|
-
tagName() {
|
|
145
|
-
return _(this.useBlock);
|
|
146
|
-
},
|
|
147
|
-
useBlock() {
|
|
148
|
-
return this.repeatItemData ? this.block : m({
|
|
149
|
-
block: this.block,
|
|
150
|
-
state: this.context.state,
|
|
151
|
-
context: this.context.context,
|
|
152
|
-
shouldEvaluateBindings: !0
|
|
153
|
-
});
|
|
154
|
-
},
|
|
155
|
-
attributes() {
|
|
156
|
-
return {
|
|
157
|
-
...b(this.useBlock),
|
|
158
|
-
...g({
|
|
159
|
-
block: this.useBlock,
|
|
160
|
-
state: this.context.state,
|
|
161
|
-
context: this.context.context
|
|
162
|
-
}),
|
|
163
|
-
style: y(this.useBlock)
|
|
164
|
-
};
|
|
165
|
-
},
|
|
166
|
-
shouldWrap() {
|
|
167
|
-
var t;
|
|
168
|
-
return !((t = this.componentInfo) != null && t.noWrap);
|
|
169
|
-
},
|
|
170
|
-
componentOptions() {
|
|
171
|
-
return {
|
|
172
|
-
...x(this.useBlock),
|
|
173
|
-
...this.shouldWrap ? {} : {
|
|
174
|
-
attributes: this.attributes
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
},
|
|
178
|
-
renderComponentProps() {
|
|
179
|
-
return {
|
|
180
|
-
blockChildren: this.children,
|
|
181
|
-
componentRef: this.componentRef,
|
|
182
|
-
componentOptions: this.componentOptions,
|
|
183
|
-
context: this.context
|
|
184
|
-
};
|
|
185
|
-
},
|
|
186
|
-
children() {
|
|
187
|
-
var t;
|
|
188
|
-
return (t = this.useBlock.children) != null ? t : [];
|
|
189
|
-
},
|
|
190
|
-
childrenWithoutParentComponent() {
|
|
191
|
-
return !this.componentRef && !this.repeatItemData ? this.children : [];
|
|
192
|
-
},
|
|
193
|
-
repeatItemData() {
|
|
194
|
-
const { repeat: t, ...e } = this.block;
|
|
195
|
-
if (!(t != null && t.collection))
|
|
196
|
-
return;
|
|
197
|
-
const n = p({
|
|
198
|
-
code: t.collection,
|
|
199
|
-
state: this.context.state,
|
|
200
|
-
context: this.context.context
|
|
201
|
-
});
|
|
202
|
-
if (!Array.isArray(n))
|
|
203
|
-
return;
|
|
204
|
-
const c = t.collection.split(".").pop(), o = t.itemName || (c ? c + "Item" : "item");
|
|
205
|
-
return n.map((i, a) => ({
|
|
206
|
-
context: {
|
|
207
|
-
...this.context,
|
|
208
|
-
state: {
|
|
209
|
-
...this.context.state,
|
|
210
|
-
$index: a,
|
|
211
|
-
$item: i,
|
|
212
|
-
[o]: i,
|
|
213
|
-
[`$${o}Index`]: a
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
block: e
|
|
217
|
-
}));
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
var A = function() {
|
|
222
|
-
var e = this, n = e._self._c;
|
|
223
|
-
return Boolean(e.shouldWrap) ? Boolean(!e.isEmptyHtmlElement(e.tagName)) ? e._e() : n(e.tagName, e._b({ tag: "component" }, "component", e.attributes, !1)) : n("render-component", e._b({ attrs: { context: e.context } }, "render-component", e.renderComponentProps, !1));
|
|
224
|
-
}, T = [], I = /* @__PURE__ */ d(
|
|
225
|
-
N,
|
|
226
|
-
A,
|
|
227
|
-
T,
|
|
228
|
-
!1,
|
|
229
|
-
null,
|
|
230
|
-
null,
|
|
231
|
-
null,
|
|
232
|
-
null
|
|
233
|
-
);
|
|
234
|
-
const W = I.exports;
|
|
235
|
-
export {
|
|
236
|
-
W as default
|
|
237
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.9247eff2.cjs"),s=require("./get-processed-block.14848083.cjs");function m(e){return e.charAt(0).toUpperCase()+e.slice(1)}const d=e=>`on${m(e)}`;function p(e,t){return n=>i.evaluate({code:e,context:t.context,state:t.state,event:n})}function h(e){var c;const t={},n=(c=e.block.actions)!=null?c:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const l=n[o];t[d(o)]=p(l,e)}return t}function f(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}function k(e){var t;return{...e.properties,"builder-id":e.id,class:[e.id,"builder-block",e.class,(t=e.properties)==null?void 0:t.class].filter(Boolean).join(" ")}}const r=e=>e,g=e=>e,x=e=>{switch(i.TARGET){case"reactNative":return{...e.large?r(e.large):{},...e.medium?r(e.medium):{},...e.small?r(e.small):{}};default:return{...e.large?r(e.large):{},...e.medium?{[s.getMaxWidthQueryForSize("medium")]:r(e.medium)}:{},...e.small?{[s.getMaxWidthQueryForSize("small")]:r(e.small)}:{}}}};function b(e){if(!e.responsiveStyles)return{};const t=x(e.responsiveStyles);return g(t)}function v(e){return e.tagName||"div"}const y=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],B=e=>typeof e=="string"&&y.includes(e.toLowerCase()),_=()=>Promise.resolve().then(()=>require("./block-styles.7900ea80.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),R=()=>Promise.resolve().then(()=>require("./render-component.fc56f8dc.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),E=()=>Promise.resolve().then(()=>require("./render-repeated-block.0990371f.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}),S={name:"render-block",components:{"render-component":R,"render-repeated-block":E,"block-styles":_},props:["block","context"],data:()=>({isEmptyHtmlElement:B}),computed:{component(){var n;const e=(n=s.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 v(this.useBlock)},useBlock(){return this.repeatItemData?this.block:s.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},attributes(){return{...k(this.useBlock),...h({block:this.useBlock,state:this.context.state,context:this.context.context}),style:b(this.useBlock)}},shouldWrap(){var e;return!((e=this.componentInfo)!=null&&e.noWrap)},componentOptions(){return{...f(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=i.evaluate({code:e.collection,state:this.context.state,context:this.context.context});if(!Array.isArray(n))return;const c=e.collection.split(".").pop(),o=e.itemName||(c?c+"Item":"item");return n.map((a,u)=>({context:{...this.context,state:{...this.context.state,$index:u,$item:a,[o]:a,[`$${o}Index`]:u}},block:t}))}}};var C=function(){var t=this,n=t._self._c;return Boolean(t.shouldWrap)?Boolean(!t.isEmptyHtmlElement(t.tagName))?t._e():n(t.tagName,t._b({tag:"component"},"component",t.attributes,!1)):n("render-component",t._b({attrs:{context:t.context}},"render-component",t.renderComponentProps,!1))},w=[],P=i.normalizeComponent(S,C,w,!1,null,null,null,null);const N=P.exports;exports.default=N;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.9247eff2.cjs"),l=()=>Promise.resolve().then(()=>require("./block-styles.7900ea80.cjs")).then(o=>o.default).catch(o=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",o),o}),s=()=>Promise.resolve().then(()=>require("./render-block.e4f18476.cjs")).then(o=>o.default).catch(o=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",o),o}),a={name:"render-component",components:{"render-block":s,"block-styles":l},props:["componentRef","componentOptions","blockChildren","context"],data:()=>({markPropsMutable:r.markPropsMutable})};var i=function(){var e=this,t=e._self._c;return e.componentRef?t(e.componentRef,e._b({tag:"component"},"component",e.markPropsMutable(e.componentOptions),!1),[e._l(e.blockChildren,function(n,c){return t("render-block",{key:"render-block-"+n.id,attrs:{block:n,context:e.context}})}),e._l(e.blockChildren,function(n,c){return t("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.context}})})],2):e._e()},m=[],d=r.normalizeComponent(a,i,m,!1,null,null,null,null);const p=d.exports;exports.default=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.9247eff2.cjs"),o=()=>Promise.resolve().then(()=>require("./render-block.e4f18476.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",e),e}),c={name:"render-repeated-block",components:{"render-block":o},props:["block","repeatContext"],provide(){const e=this;return{BuilderContext:{get content(){return e.repeatContext.content},get state(){return e.repeatContext.state},get context(){return e.repeatContext.context},get apiKey(){return e.repeatContext.apiKey},get registeredComponents(){return e.repeatContext.registeredComponents}}}}};var l=function(){var t=this,r=t._self._c;return r("render-block",{attrs:{block:t.block,context:t.repeatContext}})},a=[],s=n.normalizeComponent(c,l,a,!1,null,null,null,null);const i=s.exports;exports.default=i;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as i, resolveComponent as a, openBlock as d, createBlock as m, createCommentVNode as p } from "vue";
|
|
2
|
-
import { g as u, a as r } from "./get-processed-block.c491559e.js";
|
|
3
|
-
import { T as $, _ as y } from "./index.eb0e01ba.js";
|
|
4
|
-
const k = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), n = (e) => Object.entries(e).map(([o, t]) => {
|
|
5
|
-
if (typeof t == "string")
|
|
6
|
-
return `${k(o)}: ${t};`;
|
|
7
|
-
}).join(`
|
|
8
|
-
`), h = () => import("./render-inlined-styles.1c41d49e.js").then((e) => e.default).catch((e) => {
|
|
9
|
-
throw console.error(
|
|
10
|
-
"Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
|
|
11
|
-
e
|
|
12
|
-
), e;
|
|
13
|
-
}), f = {
|
|
14
|
-
name: "block-styles",
|
|
15
|
-
components: {
|
|
16
|
-
"render-inlined-styles": i(h)
|
|
17
|
-
},
|
|
18
|
-
props: ["block", "context"],
|
|
19
|
-
data: () => ({ TARGET: $ }),
|
|
20
|
-
computed: {
|
|
21
|
-
useBlock() {
|
|
22
|
-
return u({
|
|
23
|
-
block: this.block,
|
|
24
|
-
state: this.context.state,
|
|
25
|
-
context: this.context.context,
|
|
26
|
-
shouldEvaluateBindings: !0
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
css() {
|
|
30
|
-
const e = this.useBlock.responsiveStyles, s = e == null ? void 0 : e.large, o = e == null ? void 0 : e.medium, t = e == null ? void 0 : e.small;
|
|
31
|
-
return `
|
|
32
|
-
${s ? `.${this.useBlock.id} {${n(s)}}` : ""}
|
|
33
|
-
${o ? `${r("medium")} {
|
|
34
|
-
.${this.useBlock.id} {${n(o)}}
|
|
35
|
-
}` : ""}
|
|
36
|
-
${t ? `${r("small")} {
|
|
37
|
-
.${this.useBlock.id} {${n(t)}}
|
|
38
|
-
}` : ""}
|
|
39
|
-
}`;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
compatConfig: { MODE: 3 }
|
|
43
|
-
};
|
|
44
|
-
function T(e, s, o, t, S, c) {
|
|
45
|
-
const l = a("render-inlined-styles");
|
|
46
|
-
return e.TARGET === "vue2" || e.TARGET === "vue3" || e.TARGET === "svelte" || e.TARGET === "qwik" ? (d(), m(l, {
|
|
47
|
-
key: 0,
|
|
48
|
-
styles: c.css
|
|
49
|
-
}, null, 8, ["styles"])) : p("", !0);
|
|
50
|
-
}
|
|
51
|
-
const b = /* @__PURE__ */ y(f, [["render", T]]);
|
|
52
|
-
export {
|
|
53
|
-
b as default
|
|
54
|
-
};
|