@builder.io/sdk-vue 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/block-styles.4b0c0560.js +69 -0
- package/packages/_vue2/dist/block-styles.7bec5cd1.cjs +1 -0
- package/packages/{_vue3/dist/get-processed-block.7f0848a3.js → _vue2/dist/get-processed-block.c75c2852.js} +1 -1
- package/packages/{_vue3/dist/get-processed-block.d00eccbb.cjs → _vue2/dist/get-processed-block.cf207900.cjs} +1 -1
- package/packages/_vue2/dist/{index.2d467eb1.cjs → index.c7f4d491.cjs} +5 -5
- package/packages/_vue2/dist/{index.055082cd.js → index.dec756fc.js} +36 -35
- package/packages/_vue2/dist/render-block.52b9bfb5.cjs +3 -0
- package/packages/_vue2/dist/{render-block.3d616731.js → render-block.bec02b6f.js} +34 -31
- package/packages/_vue2/dist/{render-component.f92ce0c3.cjs → render-component.1e97315e.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.69758ebf.js → render-component.d5d82be4.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.8d0c5a9b.js → render-inlined-styles.32a11bb1.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.3d0f9fe7.cjs → render-inlined-styles.7d83a347.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.6c0e784a.cjs → render-repeated-block.7ff2fef4.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.e773db2b.js → render-repeated-block.bb747825.js} +2 -2
- package/packages/_vue2/dist/{render-styles.38da6402.js → render-styles.2844231b.js} +2 -2
- package/packages/_vue2/dist/{render-styles.f5c763be.cjs → render-styles.e2a9b12c.cjs} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +3 -3
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +4 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +4 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +3 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +3 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +3 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +4 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +4 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +8 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.2ded86d7.cjs +1 -0
- package/packages/_vue3/dist/block-styles.f9c554cb.js +66 -0
- package/packages/{_vue2/dist/get-processed-block.3cf6c3ff.cjs → _vue3/dist/get-processed-block.496ea0a2.cjs} +1 -1
- package/packages/{_vue2/dist/get-processed-block.e426e5c8.js → _vue3/dist/get-processed-block.885c1bd9.js} +1 -1
- package/packages/_vue3/dist/{index.59001d0e.cjs → index.2aa53f88.cjs} +4 -4
- package/packages/_vue3/dist/{index.3d6c5319.js → index.d8e8e5a6.js} +33 -32
- package/packages/_vue3/dist/{render-block.9166425b.js → render-block.3f0e76cb.js} +76 -71
- package/packages/_vue3/dist/render-block.8383c9c9.cjs +3 -0
- package/packages/_vue3/dist/{render-component.79b00fb5.cjs → render-component.5674d138.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.bca347e7.js → render-component.942d8c45.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.56c17d2f.cjs → render-inlined-styles.1a93ff69.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.97f3e330.js → render-inlined-styles.d2e5f785.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.d0ab60c1.js → render-repeated-block.8caddcea.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.791d2698.cjs → render-repeated-block.d8bcc141.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.e5ee2819.js → render-styles.43492acf.js} +2 -2
- package/packages/_vue3/dist/{render-styles.86687760.cjs → render-styles.60e81530.cjs} +5 -5
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +3 -3
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +8 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.39cc91ef.cjs +0 -1
- package/packages/_vue2/dist/block-styles.ed7736cd.js +0 -66
- package/packages/_vue2/dist/render-block.f934b32f.cjs +0 -3
- package/packages/_vue3/dist/block-styles.057be752.cjs +0 -1
- package/packages/_vue3/dist/block-styles.90be320f.js +0 -63
- package/packages/_vue3/dist/render-block.fad21827.cjs +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const i=require("vue"),k="vue3";function h(){return typeof window<"u"&&typeof document<"u"}const P={};function M(e,n){let t=P[e];if(t||(t=P[e]=[]),t.push(n),h()){const o={type:"builder.register",data:{type:e,info:n}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(s){console.debug("Could not postmessage",s)}}}const be=()=>{M("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let F=!1;const ye=(e={})=>{var n,t;F||(F=!0,h()&&((n=window.parent)==null||n.postMessage({type:"builder.sdkInfo",data:{target:k,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(t=window.parent)==null||t.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var s,r;if(!!(o!=null&&o.type))switch(o.type){case"builder.evaluate":{const a=o.data.text,l=o.data.arguments||[],c=o.data.id,d=new Function(a);let u,m=null;try{u=d.apply(null,l)}catch(p){m=p}m?(s=window.parent)==null||s.postMessage({type:"builder.evaluateError",data:{id:c,error:m.message}},"*"):u&&typeof u.then=="function"?u.then(p=>{var b;(b=window.parent)==null||b.postMessage({type:"builder.evaluateResult",data:{id:c,result:p}},"*")}).catch(console.error):(r=window.parent)==null||r.postMessage({type:"builder.evaluateResult",data:{result:u,id:c}},"*");break}}})))},ke={name:"builder-button",props:["attributes","text","link","openLinkInNewTab"],methods:{filterAttrs:function(n={},t){const o="v-on:";return Object.keys(n).filter(s=>{const r=s.startsWith(o);return t?r:!r}).reduce((s,r)=>({...s,[r.replace(o,"")]:n[r]}),{})}}};const f=(e,n)=>{const t=e.__vccOpts||e;for(const[o,s]of n)t[o]=s;return t},ve=["href","target"];function xe(e,n,t,o,s,r){return t.link?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:0,role:"button",href:t.link,target:t.openLinkInNewTab?"_blank":void 0},r.filterAttrs(t.attributes,!1),i.toHandlers(r.filterAttrs(t.attributes,!0),!0)),i.toDisplayString(t.text),17,ve)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:1,class:"button-
|
|
1
|
+
"use strict";const i=require("vue"),k="vue3";function h(){return typeof window<"u"&&typeof document<"u"}const P={};function M(e,n){let t=P[e];if(t||(t=P[e]=[]),t.push(n),h()){const o={type:"builder.register",data:{type:e,info:n}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(s){console.debug("Could not postmessage",s)}}}const be=()=>{M("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let F=!1;const ye=(e={})=>{var n,t;F||(F=!0,h()&&((n=window.parent)==null||n.postMessage({type:"builder.sdkInfo",data:{target:k,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(t=window.parent)==null||t.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var s,r;if(!!(o!=null&&o.type))switch(o.type){case"builder.evaluate":{const a=o.data.text,l=o.data.arguments||[],c=o.data.id,d=new Function(a);let u,m=null;try{u=d.apply(null,l)}catch(p){m=p}m?(s=window.parent)==null||s.postMessage({type:"builder.evaluateError",data:{id:c,error:m.message}},"*"):u&&typeof u.then=="function"?u.then(p=>{var b;(b=window.parent)==null||b.postMessage({type:"builder.evaluateResult",data:{id:c,result:p}},"*")}).catch(console.error):(r=window.parent)==null||r.postMessage({type:"builder.evaluateResult",data:{result:u,id:c}},"*");break}}})))},ke={name:"builder-button",props:["attributes","text","link","openLinkInNewTab"],methods:{filterAttrs:function(n={},t){const o="v-on:";return Object.keys(n).filter(s=>{const r=s.startsWith(o);return t?r:!r}).reduce((s,r)=>({...s,[r.replace(o,"")]:n[r]}),{})}}};const f=(e,n)=>{const t=e.__vccOpts||e;for(const[o,s]of n)t[o]=s;return t},ve=["href","target"];function xe(e,n,t,o,s,r){return t.link?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:0,role:"button",href:t.link,target:t.openLinkInNewTab?"_blank":void 0},r.filterAttrs(t.attributes,!1),i.toHandlers(r.filterAttrs(t.attributes,!0),!0)),i.toDisplayString(t.text),17,ve)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:1,class:"button-1yj9n7yt24z"},r.filterAttrs(t.attributes,!1),i.toHandlers(r.filterAttrs(t.attributes,!0),!0)),i.toDisplayString(t.text),17))}const $=f(ke,[["render",xe],["__scopeId","data-v-28c9cee7"]]),C=e=>JSON.parse(JSON.stringify(e)),z={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Ce=(e,n=z)=>`@media (max-width: ${n[e].max}px)`,H=({small:e,medium:n})=>{const t=C(z);if(!e||!n)return t;const o=Math.floor(e/2);t.small={max:e,min:o,default:o+1};const s=t.small.max+1;t.medium={max:n,min:s,default:s+1};const r=t.medium.max+1;return t.large={max:2e3,min:r,default:r+1},t},Se=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),y=e=>e!=null,K=e=>Object.entries(e).map(([t,o])=>{if(typeof o=="string")return`${Se(t)}: ${o};`}).filter(y),v=e=>K(e).join(`
|
|
2
2
|
`),_e=({mediaQuery:e,className:n,styles:t})=>{const o=`.${n} {
|
|
3
3
|
${v(t)}
|
|
4
4
|
}`;return e?`${e} {
|
|
5
5
|
${o}
|
|
6
|
-
}`:o},we=Symbol(),x={Builder:{content:null,context:{},state:{},setState(){},apiKey:null,registeredComponents:{},inheritedStyles:{}},key:we},Ie=()=>Promise.resolve().then(()=>X).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",e),e}),Te=()=>Promise.resolve().then(()=>require("./render-inlined-styles.
|
|
6
|
+
}`:o},we=Symbol(),x={Builder:{content:null,context:{},state:{},setState(){},apiKey:null,registeredComponents:{},inheritedStyles:{}},key:we},Ie=()=>Promise.resolve().then(()=>X).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",e),e}),Te=()=>Promise.resolve().then(()=>require("./render-inlined-styles.1a93ff69.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",e),e}),Re={name:"builder-columns",components:{RenderInlinedStyles:i.defineAsyncComponent(Te),RenderBlocks:i.defineAsyncComponent(Ie)},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderBlock"],data(){return{TARGET:k}},inject:{builderContext:x.key},computed:{columnsCssVars(){const e=this.stackColumnsAt==="never"?"inherit":this.reverseColumnsWhenStacked?"column-reverse":"column";return{"--flex-dir":e,"--flex-dir-tablet":this.maybeApplyForTablet(e)}},columnCssVars(){const e="100%",n="0";return{"--column-width":e,"--column-margin-left":n,"--column-width-tablet":this.maybeApplyForTablet(e),"--column-margin-left-tablet":this.maybeApplyForTablet(n)}},columnStyleObjects(){return{columns:{small:{flexDirection:"var(--flex-dir)",alignItems:"stretch"},medium:{flexDirection:"var(--flex-dir-tablet)",alignItems:"stretch"}},column:{small:{width:"var(--column-width) !important",marginLeft:"var(--column-margin-left) !important"},medium:{width:"var(--column-width-tablet) !important",marginLeft:"var(--column-margin-left-tablet) !important"}}}},columnsStyles(){return`
|
|
7
7
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
8
8
|
.${this.builderBlock.id}-breakpoints {
|
|
9
9
|
${v(this.columnStyleObjects.columns.medium)}
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
${v(this.columnStyleObjects.column.small)}
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
`},reactNativeColumnsStyles(){return this.columnStyleObjects.columns.small},reactNativeColumnStyles(){return this.columnStyleObjects.column.small}},methods:{getGutterSize(){return typeof this.space=="number"?this.space||0:20},getColumns(){return this.columns||[]},getWidth(e){var t;const n=this.getColumns();return((t=n[e])==null?void 0:t.width)||100/n.length},getColumnCssWidth(e){const n=this.getColumns(),o=this.getGutterSize()*(n.length-1)/n.length;return`calc(${this.getWidth(e)}% - ${o}px)`},maybeApplyForTablet(e){return(this.stackColumnsAt||"tablet")==="tablet"?e:"inherit"},getWidthForBreakpointSize(e){var t,o;return H(((o=(t=this.builderContext.content)==null?void 0:t.meta)==null?void 0:o.breakpoints)||{})[e].max},_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}};function Be(e,n,t,o,s,r){const a=i.resolveComponent("render-inlined-styles"),l=i.resolveComponent("render-blocks");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r._classStringToObject(`builder-columns ${t.builderBlock.id}-breakpoints div-256wrwn33ry`)),style:i.normalizeStyle({...s.TARGET==="reactNative"?r.reactNativeColumnsStyles:{},...r.columnsCssVars})},[s.TARGET!=="reactNative"?(i.openBlock(),i.createBlock(a,{key:0,styles:r.columnsStyles},null,8,["styles"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.columns,(c,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:"builder-column div-256wrwn33ry-2",style:i.normalizeStyle({width:r.getColumnCssWidth(d),marginLeft:`${d===0?0:r.getGutterSize()}px`,...s.TARGET==="reactNative"?r.reactNativeColumnStyles:{},...r.columnCssVars})},[i.createVNode(l,{blocks:c.blocks,path:`component.options.columns.${d}.blocks`,parent:t.builderBlock.id,styleProp:{flexGrow:"1"}},null,8,["blocks","path","parent"])],4))),128))],6)}const D=f(Re,[["render",Be],["__scopeId","data-v-2cf782bf"]]),Ee={name:"builder-fragment-component",props:[]};function Ae(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("span",null,[i.renderSlot(e.$slots,"default")])}const q=f(Ee,[["render",Ae]]);function O(e){return e.replace(/http(s)?:/,"")}function je(e="",n,t){const o=new RegExp("([?&])"+n+"=.*?(&|$)","i"),s=e.indexOf("?")!==-1?"&":"?";return e.match(o)?e.replace(o,"$1"+n+"="+encodeURIComponent(t)+"$2"):e+s+n+"="+encodeURIComponent(t)}function Pe(e,n){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!n)return e;if(n==="master")return O(e);const t=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(t){const o=e.split(t[0]),s=t[3],r=n.match("x")?n:`${n}x`;return O(`${o[0]}_${r}${s}`)}return null}function _(e){if(!e)return e;const n=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let t=e;const o=Number(e.split("?width=")[1]);return isNaN(o)||(t=`${t} ${o}w`),n.filter(s=>s!==o).map(s=>`${je(e,"width",s)} ${s}w`).concat([t]).join(", ")}return e.match(/cdn\.shopify\.com/)?n.map(t=>[Pe(e,`${t}x${t}`),t]).filter(([t])=>!!t).map(([t,o])=>`${t} ${o}w`).concat([e]).join(", "):e}const Fe={name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var t;const n=this.image||this.src;if(!n||!(n.match(/builder\.io/)||n.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((t=this.image)==null?void 0:t.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),_(n)}else if(this.image&&!this.srcset)return _(n);return _(n)},webpSrcSet(){var e;return((e=this.srcSetToUse)==null?void 0:e.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}},methods:{_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}};const Oe=["srcset"],Ve=["alt","role","src","srcset","sizes"],Ue={key:2,class:"div-kd7f8ex7am-2"};function Ne(e,n,t,o,s,r){var a,l,c,d;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("picture",null,[r.webpSrcSet?(i.openBlock(),i.createElementBlock("source",{key:0,type:"image/webp",srcset:r.webpSrcSet},null,8,Oe)):i.createCommentVNode("",!0),i.createElementVNode("img",{loading:"lazy",alt:t.altText,role:t.altText?"presentation":void 0,style:i.normalizeStyle({objectPosition:t.backgroundPosition||"center",objectFit:t.backgroundSize||"cover",...r.aspectRatioCss}),class:i.normalizeClass(r._classStringToObject("builder-image"+(t.className?" "+t.className:"")+" img-kd7f8ex7am")),src:t.image,srcset:r.srcSetToUse,sizes:t.sizes},null,14,Ve)]),t.aspectRatio&&!(((l=(a=t.builderBlock)==null?void 0:a.children)==null?void 0:l.length)&&t.fitContent)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"builder-image-sizer div-kd7f8ex7am",style:i.normalizeStyle({paddingTop:t.aspectRatio*100+"%"})},null,4)):i.createCommentVNode("",!0),((d=(c=t.builderBlock)==null?void 0:c.children)==null?void 0:d.length)&&t.fitContent?i.renderSlot(e.$slots,"default",{key:1},void 0,!0):i.createCommentVNode("",!0),!t.fitContent&&e.children?(i.openBlock(),i.createElementBlock("div",Ue,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)],64)}const G=f(Fe,[["render",Ne],["__scopeId","data-v-7ef88ea3"]]);function We(){return h()&&window.self!==window.top}function g(){return We()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Le=()=>Promise.resolve().then(()=>require("./block-styles.057be752.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",e),e}),Me=()=>Promise.resolve().then(()=>require("./render-block.fad21827.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",e),e}),$e={name:"render-blocks",components:{RenderBlock:i.defineAsyncComponent(Me),BlockStyles:i.defineAsyncComponent(Le)},props:["blocks","parent","path","styleProp"],inject:{builderContext:x.key},computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,n;g()&&!((e=this.blocks)!=null&&e.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,n;g()&&!((e=this.blocks)!=null&&e.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}};const ze=["builder-path","builder-parent-id","dataSet"];function He(e,n,t,o,s,r){const a=i.resolveComponent("render-block"),l=i.resolveComponent("block-styles");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r._classStringToObject(r.className+" div-2oa2wtipkzk")),"builder-path":t.path,"builder-parent-id":t.parent,dataSet:{class:r.className},style:i.normalizeStyle(t.styleProp),onClick:n[0]||(n[0]=c=>r.onClick()),onMouseenter:n[1]||(n[1]=c=>r.onMouseEnter())},[t.blocks?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.blocks,(c,d)=>(i.openBlock(),i.createBlock(a,{key:"render-block-"+c.id,block:c,context:r.builderContext},null,8,["block","context"]))),128)):i.createCommentVNode("",!0),t.blocks?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.blocks,(c,d)=>(i.openBlock(),i.createBlock(l,{key:"block-style-"+c.id,block:c,context:r.builderContext},null,8,["block","context"]))),128)):i.createCommentVNode("",!0)],46,ze)}const J=f($e,[["render",He],["__scopeId","data-v-0924b77d"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})),Ke={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},S=e=>{const n=e.toString().trim();return`return (${!n.startsWith("function")&&!n.startsWith("(")?"function ":""}${n}).apply(this, arguments)`},De={name:"Columns",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:S(e=>{function n(){t.forEach(o=>{o.delete("width")})}const t=e.get("columns");Array.isArray(t)&&!!t.find(s=>s.get("width"))&&(!!t.find(r=>!r.get("width"))||t.reduce((l,c)=>l+c.get("width"),0)!==100)&&n()})},{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}]},qe={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ge={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%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",onChange:S(e=>{e.delete("srcset"),e.delete("noWebp");function t(a,l=6e4){return new Promise((c,d)=>{const u=document.createElement("img");let m=!1;u.onload=()=>{m=!0,c(u)},u.addEventListener("error",p=>{console.warn("Image load failed",p.error),d(p.error)}),u.src=a,setTimeout(()=>{m||d(new Error("Image load timed out"))},l)})}function o(a){return Math.round(a*1e3)/1e3}const s=e.get("image"),r=e.get("aspectRatio");if(fetch(s).then(a=>a.blob()).then(a=>{a.type.includes("svg")&&e.set("noWebp",!0)}),s&&(!r||r===.7041))return t(s).then(a=>{const l=e.get("aspectRatio");e.get("image")===s&&(!l||l===.7041)&&a.width&&a.height&&(e.set("aspectRatio",o(a.height/a.width)),e.set("height",a.height),e.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}]},Je={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>"}}}]},Xe={name:"builder-section-component",props:["maxWidth","attributes"],methods:{filterAttrs:function(n={},t){const o="v-on:";return Object.keys(n).filter(s=>{const r=s.startsWith(o);return t?r:!r}).reduce((s,r)=>({...s,[r.replace(o,"")]:n[r]}),{})}}};function Ye(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("section",i.mergeProps({style:{width:"100%",alignSelf:"stretch",flexGrow:"1",boxSizing:"border-box",maxWidth:`${t.maxWidth&&typeof t.maxWidth=="number"?t.maxWidth:1200}px`,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},r.filterAttrs(t.attributes,!1),i.toHandlers(r.filterAttrs(t.attributes,!0),!0)),[i.renderSlot(e.$slots,"default")],16)}const Y=f(Xe,[["render",Ye]]),Qe={name:"Symbol",noWrap:!0,static:!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"}]};function Ze(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function et(){const e=Ze().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
26
|
+
`},reactNativeColumnsStyles(){return this.columnStyleObjects.columns.small},reactNativeColumnStyles(){return this.columnStyleObjects.column.small}},methods:{getGutterSize(){return typeof this.space=="number"?this.space||0:20},getColumns(){return this.columns||[]},getWidth(e){var t;const n=this.getColumns();return((t=n[e])==null?void 0:t.width)||100/n.length},getColumnCssWidth(e){const n=this.getColumns(),o=this.getGutterSize()*(n.length-1)/n.length;return`calc(${this.getWidth(e)}% - ${o}px)`},maybeApplyForTablet(e){return(this.stackColumnsAt||"tablet")==="tablet"?e:"inherit"},getWidthForBreakpointSize(e){var t,o;return H(((o=(t=this.builderContext.content)==null?void 0:t.meta)==null?void 0:o.breakpoints)||{})[e].max},_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}};function Be(e,n,t,o,s,r){const a=i.resolveComponent("render-inlined-styles"),l=i.resolveComponent("render-blocks");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r._classStringToObject(`builder-columns ${t.builderBlock.id}-breakpoints div-361b1o6wv2k`)),style:i.normalizeStyle({...s.TARGET==="reactNative"?r.reactNativeColumnsStyles:{},...r.columnsCssVars})},[s.TARGET!=="reactNative"?(i.openBlock(),i.createBlock(a,{key:0,styles:r.columnsStyles},null,8,["styles"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.columns,(c,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:"builder-column div-361b1o6wv2k-2",style:i.normalizeStyle({width:r.getColumnCssWidth(d),marginLeft:`${d===0?0:r.getGutterSize()}px`,...s.TARGET==="reactNative"?r.reactNativeColumnStyles:{},...r.columnCssVars})},[i.createVNode(l,{blocks:c.blocks,path:`component.options.columns.${d}.blocks`,parent:t.builderBlock.id,styleProp:{flexGrow:"1"}},null,8,["blocks","path","parent"])],4))),128))],6)}const D=f(Re,[["render",Be],["__scopeId","data-v-64d36a32"]]),Ee={name:"builder-fragment-component",props:[]};function Ae(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("span",null,[i.renderSlot(e.$slots,"default")])}const q=f(Ee,[["render",Ae]]);function O(e){return e.replace(/http(s)?:/,"")}function je(e="",n,t){const o=new RegExp("([?&])"+n+"=.*?(&|$)","i"),s=e.indexOf("?")!==-1?"&":"?";return e.match(o)?e.replace(o,"$1"+n+"="+encodeURIComponent(t)+"$2"):e+s+n+"="+encodeURIComponent(t)}function Pe(e,n){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!n)return e;if(n==="master")return O(e);const t=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(t){const o=e.split(t[0]),s=t[3],r=n.match("x")?n:`${n}x`;return O(`${o[0]}_${r}${s}`)}return null}function _(e){if(!e)return e;const n=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let t=e;const o=Number(e.split("?width=")[1]);return isNaN(o)||(t=`${t} ${o}w`),n.filter(s=>s!==o).map(s=>`${je(e,"width",s)} ${s}w`).concat([t]).join(", ")}return e.match(/cdn\.shopify\.com/)?n.map(t=>[Pe(e,`${t}x${t}`),t]).filter(([t])=>!!t).map(([t,o])=>`${t} ${o}w`).concat([e]).join(", "):e}const Fe={name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var t;const n=this.image||this.src;if(!n||!(n.match(/builder\.io/)||n.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((t=this.image)==null?void 0:t.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),_(n)}else if(this.image&&!this.srcset)return _(n);return _(n)},webpSrcSet(){var e;return((e=this.srcSetToUse)==null?void 0:e.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}},methods:{_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}};const Oe=["srcset"],Ve=["alt","role","src","srcset","sizes"],Ue={key:2,class:"div-7jvpanrlkn-2"};function Ne(e,n,t,o,s,r){var a,l,c,d;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("picture",null,[r.webpSrcSet?(i.openBlock(),i.createElementBlock("source",{key:0,type:"image/webp",srcset:r.webpSrcSet},null,8,Oe)):i.createCommentVNode("",!0),i.createElementVNode("img",{loading:"lazy",alt:t.altText,role:t.altText?"presentation":void 0,style:i.normalizeStyle({objectPosition:t.backgroundPosition||"center",objectFit:t.backgroundSize||"cover",...r.aspectRatioCss}),class:i.normalizeClass(r._classStringToObject("builder-image"+(t.className?" "+t.className:"")+" img-7jvpanrlkn")),src:t.image,srcset:r.srcSetToUse,sizes:t.sizes},null,14,Ve)]),t.aspectRatio&&!(((l=(a=t.builderBlock)==null?void 0:a.children)==null?void 0:l.length)&&t.fitContent)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"builder-image-sizer div-7jvpanrlkn",style:i.normalizeStyle({paddingTop:t.aspectRatio*100+"%"})},null,4)):i.createCommentVNode("",!0),((d=(c=t.builderBlock)==null?void 0:c.children)==null?void 0:d.length)&&t.fitContent?i.renderSlot(e.$slots,"default",{key:1},void 0,!0):i.createCommentVNode("",!0),!t.fitContent&&e.children?(i.openBlock(),i.createElementBlock("div",Ue,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)],64)}const G=f(Fe,[["render",Ne],["__scopeId","data-v-22833d9f"]]);function We(){return h()&&window.self!==window.top}function g(){return We()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Le=()=>Promise.resolve().then(()=>require("./block-styles.2ded86d7.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",e),e}),Me=()=>Promise.resolve().then(()=>require("./render-block.8383c9c9.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",e),e}),$e={name:"render-blocks",components:{RenderBlock:i.defineAsyncComponent(Me),BlockStyles:i.defineAsyncComponent(Le)},props:["blocks","parent","path","styleProp"],inject:{builderContext:x.key},computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,n;g()&&!((e=this.blocks)!=null&&e.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,n;g()&&!((e=this.blocks)!=null&&e.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}};const ze=["builder-path","builder-parent-id","dataSet"];function He(e,n,t,o,s,r){const a=i.resolveComponent("render-block"),l=i.resolveComponent("block-styles");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r._classStringToObject(r.className+" div-2oa2wtipkzk")),"builder-path":t.path,"builder-parent-id":t.parent,dataSet:{class:r.className},style:i.normalizeStyle(t.styleProp),onClick:n[0]||(n[0]=c=>r.onClick()),onMouseenter:n[1]||(n[1]=c=>r.onMouseEnter())},[t.blocks?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.blocks,(c,d)=>(i.openBlock(),i.createBlock(a,{key:"render-block-"+c.id,block:c,context:r.builderContext},null,8,["block","context"]))),128)):i.createCommentVNode("",!0),t.blocks?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.blocks,(c,d)=>(i.openBlock(),i.createBlock(l,{key:"block-style-"+c.id,block:c,context:r.builderContext},null,8,["block","context"]))),128)):i.createCommentVNode("",!0)],46,ze)}const J=f($e,[["render",He],["__scopeId","data-v-0924b77d"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})),Ke={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},S=e=>{const n=e.toString().trim();return`return (${!n.startsWith("function")&&!n.startsWith("(")?"function ":""}${n}).apply(this, arguments)`},De={name:"Columns",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:S(e=>{function n(){t.forEach(o=>{o.delete("width")})}const t=e.get("columns");Array.isArray(t)&&!!t.find(s=>s.get("width"))&&(!!t.find(r=>!r.get("width"))||t.reduce((l,c)=>l+c.get("width"),0)!==100)&&n()})},{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}]},qe={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ge={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%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",onChange:S(e=>{e.delete("srcset"),e.delete("noWebp");function t(a,l=6e4){return new Promise((c,d)=>{const u=document.createElement("img");let m=!1;u.onload=()=>{m=!0,c(u)},u.addEventListener("error",p=>{console.warn("Image load failed",p.error),d(p.error)}),u.src=a,setTimeout(()=>{m||d(new Error("Image load timed out"))},l)})}function o(a){return Math.round(a*1e3)/1e3}const s=e.get("image"),r=e.get("aspectRatio");if(fetch(s).then(a=>a.blob()).then(a=>{a.type.includes("svg")&&e.set("noWebp",!0)}),s&&(!r||r===.7041))return t(s).then(a=>{const l=e.get("aspectRatio");e.get("image")===s&&(!l||l===.7041)&&a.width&&a.height&&(e.set("aspectRatio",o(a.height/a.width)),e.set("height",a.height),e.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}]},Je={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>"}}}]},Xe={name:"builder-section-component",props:["maxWidth","attributes"],methods:{filterAttrs:function(n={},t){const o="v-on:";return Object.keys(n).filter(s=>{const r=s.startsWith(o);return t?r:!r}).reduce((s,r)=>({...s,[r.replace(o,"")]:n[r]}),{})}}};function Ye(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("section",i.mergeProps({style:{width:"100%",alignSelf:"stretch",flexGrow:"1",boxSizing:"border-box",maxWidth:`${t.maxWidth&&typeof t.maxWidth=="number"?t.maxWidth:1200}px`,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},r.filterAttrs(t.attributes,!1),i.toHandlers(r.filterAttrs(t.attributes,!0),!0)),[i.renderSlot(e.$slots,"default")],16)}const Y=f(Xe,[["render",Ye]]),Qe={name:"Symbol",noWrap:!0,static:!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"}]};function Ze(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function et(){const e=Ze().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
27
27
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Q=et(),tt=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const n=e.split(".");return n.length>2?n.slice(1).join("."):e},Z=async({name:e,canTrack:n})=>{var t;try{return n?(t=document.cookie.split("; ").find(o=>o.startsWith(`${e}=`)))==null?void 0:t.split("=")[1]:void 0}catch(o){console.debug("[COOKIE] GET error: ",o);return}},nt=e=>e.map(([n,t])=>t?`${n}=${t}`:n).filter(y).join("; "),ot=[["secure",""],["SameSite","None"]],rt=({name:e,value:n,expires:t})=>{const s=(h()?location.protocol==="https:":!0)?ot:[[]],r=t?[["expires",t.toUTCString()]]:[[]],a=[[e,n],...r,["path","/"],["domain",tt(window.location.hostname)],...s];return nt(a)},ee=async({name:e,value:n,expires:t,canTrack:o})=>{try{if(!o)return;const s=rt({name:e,value:n,expires:t});document.cookie=s}catch(s){console.warn("[COOKIE] SET error: ",s)}},st="builderio.variations",te=e=>`${st}.${e}`,it=({contentId:e,canTrack:n})=>Z({name:te(e),canTrack:n}),at=({contentId:e,canTrack:n,value:t})=>ee({name:te(e),value:t,canTrack:n}),ct=e=>y(e.id)&&y(e.variations)&&Object.keys(e.variations).length>0,lt=({id:e,variations:n})=>{var s;let t=0;const o=Math.random();for(const r in n)if(t+=(s=n[r])==null?void 0:s.testRatio,o<t)return r;return e},V=({item:e,testGroupId:n})=>{const t=e.variations[n];return n===e.id||!t?{testVariationId:e.id,testVariationName:"Default"}:{data:t.data,testVariationId:t.id,testVariationName:t.name||(t.id===e.id?"Default":"")}},dt=async({item:e,canTrack:n})=>{const t=await it({canTrack:n,contentId:e.id}),o=t?V({item:e,testGroupId:t}):void 0;if(o)return o;{const s=lt({variations:e.variations,id:e.id});return at({contentId:e.id,value:s,canTrack:n}).catch(r=>{console.error("could not store A/B test variation: ",r)}),V({item:e,testGroupId:s})}},ut=async({item:e,canTrack:n})=>{if(!ct(e))return;const t=await dt({item:e,canTrack:n});Object.assign(e,t)};function w(e,n=null,t="."){return Object.keys(e).reduce((o,s)=>{const r=e[s],a=[n,s].filter(Boolean).join(t);return[typeof r=="object",r!==null,!(Array.isArray(r)&&r.length===0)].every(Boolean)?{...o,...w(r,a,t)}:{...o,[a]:r}},{})}const U="builder.",mt="options.",ne=e=>{const n={};return e.forEach((t,o)=>{n[o]=t}),n},oe=e=>{if(!e)return{};const n=R(e),t={};return Object.keys(n).forEach(o=>{if(o.startsWith(U)){const s=o.replace(U,"").replace(mt,"");t[s]=n[o]}}),t},re=()=>{if(!h())return{};const e=new URLSearchParams(window.location.search);return oe(e)},R=e=>e instanceof URLSearchParams?ne(e):e,pt=e=>{const{limit:n=30,userAttributes:t,query:o,noTraverse:s=!1,model:r,apiKey:a,includeRefs:l=!0,locale:c}=e;if(!a)throw new Error("Missing API key");const d=new URL(`https://cdn.builder.io/api/v2/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${s}&includeRefs=${l}${c?`&locale=${c}`:""}`),u={...re(),...R(e.options||{})},m=w(u);for(const p in m)d.searchParams.set(p,String(m[p]));if(t&&d.searchParams.set("userAttributes",JSON.stringify(t)),o){const p=w({query:o});for(const b in p)d.searchParams.set(b,JSON.stringify(p[b]))}return d};async function B(e){return(await se({...e,limit:1})).results[0]||null}async function se(e){const n=pt(e),o=await(await Q(n.href)).json(),s=e.canTrack!==!1;if(s&&Array.isArray(o.results))for(const r of o.results)await ut({item:r,canTrack:s});return o}const ht=()=>Promise.resolve().then(()=>kn).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",e),e}),ft={name:"builder-symbol",components:{RenderContent:i.defineAsyncComponent(ht)},props:["attributes","symbol","dynamic"],data(){return{fetchedContent:null}},inject:{builderContext:x.key},watch:{onUpdateHook0:{handler(){var n;const e=this.symbol;e&&!e.content&&!this.fetchedContent&&e.model&&((n=this.builderContext)==null?void 0:n.apiKey)&&B({model:e.model,apiKey:this.builderContext.apiKey,query:{id:e.entry}}).then(t=>{this.fetchedContent=t})},immediate:!0}},computed:{className(){var e,n;return[...Object.keys(this.attributes.class),"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,((n=this.symbol)==null?void 0:n.dynamic)||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},contentToUse(){var e;return((e=this.symbol)==null?void 0:e.content)||this.fetchedContent},onUpdateHook0(){return{0:this.symbol,1:this.fetchedContent}}},methods:{filterAttrs:function(n={},t){const o="v-on:";return Object.keys(n).filter(s=>{const r=s.startsWith(o);return t?r:!r}).reduce((s,r)=>({...s,[r.replace(o,"")]:n[r]}),{})},_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}},gt=["dataSet"];function bt(e,n,t,o,s,r){var l,c,d,u,m;const a=i.resolveComponent("render-content");return i.openBlock(),i.createElementBlock("div",i.mergeProps({dataSet:{class:r.className},class:r._classStringToObject(r.className)},r.filterAttrs(t.attributes,!1),i.toHandlers(r.filterAttrs(t.attributes,!0),!0)),[i.createVNode(a,{apiKey:r.builderContext.apiKey,context:r.builderContext.context,customComponents:Object.values(r.builderContext.registeredComponents),data:{...(l=t.symbol)==null?void 0:l.data,...r.builderContext.state,...(u=(d=(c=t.symbol)==null?void 0:c.content)==null?void 0:d.data)==null?void 0:u.state},model:(m=t.symbol)==null?void 0:m.model,content:r.contentToUse},null,8,["apiKey","context","customComponents","data","model","content"])],16,gt)}const ie=f(ft,[["render",bt]]),yt={name:"Text",static:!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"}},kt={name:"builder-text",props:["text"]},vt=["innerHTML"];function xt(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("span",{class:"builder-text",innerHTML:t.text},null,8,vt)}const ae=f(kt,[["render",xt]]),Ct={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:"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}]},St={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}:{}}},spreadProps(){return{...this.attributes,...this.videoProps}}}},_t=["src","poster"];function wt(e,n,t,o,s,r){var a;return i.openBlock(),i.createElementBlock("video",i.mergeProps({style:{width:"100%",height:"100%",...(a=t.attributes)==null?void 0:a.style,objectFit:t.fit,objectPosition:t.position,borderRadius:1},src:t.video||"no-src",poster:t.posterImage},r.spreadProps),null,16,_t)}const ce=f(St,[["render",wt]]),It={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:S(e=>{const n=e.get("url");if(n)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${n}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{e.get("url")===n&&(o.html?e.set("content",o.html):e.set("content","Invalid url, please try another"))}).catch(o=>{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}]},Tt=["text/javascript","application/javascript","application/ecmascript"],Rt=e=>Tt.includes(e.type),Bt={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 n=0;n<e.length;n++){const t=e[n];if(t.src&&!this.scriptsInserted.includes(t.src)){this.scriptsInserted.push(t.src);const o=document.createElement("script");o.async=!0,o.src=t.src,document.head.appendChild(o)}else if(Rt(t)&&!this.scriptsRun.includes(t.innerText))try{this.scriptsRun.push(t.innerText),new Function(t.innerText)()}catch(o){console.warn("`Embed`: Error running script:",o)}}}}},Et=["innerHTML"];function At(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("div",{class:"builder-embed",ref:"elem",innerHTML:t.content},null,8,Et)}const jt=f(Bt,[["render",At]]),Pt={name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:g}},methods:{filterAttrs:function(n={},t){const o="v-on:";return Object.keys(n).filter(s=>{const r=s.startsWith(o);return t?r:!r}).reduce((s,r)=>({...s,[r.replace(o,"")]:n[r]}),{})}}},Ft=["alt","src"];function Ot(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("img",i.mergeProps({style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},key:s.isEditing()&&t.imgSrc||"default-key",alt:t.altText,src:t.imgSrc||t.image},r.filterAttrs(t.attributes,!1),i.toHandlers(r.filterAttrs(t.attributes,!0),!0)),null,16,Ft)}const Vt=f(Pt,[["render",Ot]]),Ut={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"],required:!0}],noWrap:!0,static:!0},Nt={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 n=0;n<e.length;n++){const t=e[n];if(t.src){if(this.scriptsInserted.includes(t.src))continue;this.scriptsInserted.push(t.src);const o=document.createElement("script");o.async=!0,o.src=t.src,document.head.appendChild(o)}else if(!t.type||["text/javascript","application/javascript","application/ecmascript"].includes(t.type)){if(this.scriptsRun.includes(t.innerText))continue;try{this.scriptsRun.push(t.innerText),new Function(t.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}}},_classStringToObject(e){const n={};if(typeof e!="string")return n;const t=e.trim().split(/\s+/);for(const o of t)n[o]=!0;return n}}},Wt=["innerHTML"];function Lt(e,n,t,o,s,r){return i.openBlock(),i.createElementBlock("div",{ref:"elem",class:i.normalizeClass(r._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":""))),innerHTML:t.code},null,10,Wt)}const Mt=f(Nt,[["render",Lt]]),$t={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}]},zt=()=>[{component:$,...Ke},{component:D,...De},{component:Mt,...$t},{component:jt,...It},{component:q,...qe},{component:G,...Ge},{component:Vt,...Ut},{component:Y,...Je},{component:ie,...Qe},{component:ae,...yt},{component:ce,...Ct}];function I({code:e,context:n,state:t,event:o,isExpression:s=!0}){if(e===""){console.warn("Skipping evaluation of empty code block.");return}const r={isEditing:g(),isBrowser:h(),isServer:!h()},l=s&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;try{return new Function("builder","Builder","state","context","event",l)(r,r,t,n,o)}catch(c){console.warn(`Builder custom code error:
|
|
28
28
|
While Evaluating:
|
|
29
29
|
`,l,`
|
|
30
|
-
`,c)}}function le(){return!h()||g()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const E=[];function Ht(e,n){return E.push({component:e,...n}),console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."),e}const de=({component:e,...n})=>({type:"builder.registerComponent",data:Dt(n)}),Kt=e=>typeof e=="function"?S(e):C(e),Dt=({inputs:e,...n})=>({...C(n),inputs:e==null?void 0:e.map(t=>Object.entries(t).reduce((o,[s,r])=>({...o,[s]:Kt(r)}),{}))});function qt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const n=Math.random()*16|0;return(e=="x"?n:n&3|8).toString(16)})}function ue(){return qt().replace(/-/g,"")}const me="builderSessionId",Gt=async({canTrack:e})=>{if(!e)return;const n=await Z({name:me,canTrack:e});if(y(n))return n;{const t=Jt();return Xt({id:t,canTrack:e}),t}},Jt=()=>ue(),Xt=({id:e,canTrack:n})=>ee({name:me,value:e,canTrack:n}),pe=()=>h()&&typeof localStorage<"u"?localStorage:void 0,Yt=({key:e,canTrack:n})=>{var t;try{return n?(t=pe())==null?void 0:t.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},Qt=({key:e,canTrack:n,value:t})=>{var o;try{n&&((o=pe())==null||o.setItem(e,t))}catch(s){console.debug("[LocalStorage] SET error: ",s)}},he="builderVisitorId",Zt=({canTrack:e})=>{if(!e)return;const n=Yt({key:he,canTrack:e});if(y(n))return n;{const t=en();return tn({id:t,canTrack:e}),t}},en=()=>ue(),tn=({id:e,canTrack:n})=>Qt({key:he,value:e,canTrack:n}),nn=()=>{if(h()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},on=()=>typeof navigator=="object"&&navigator.userAgent||"",rn=()=>{const e=on(),n={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return n.Android()||n.BlackBerry()||n.iOS()||n.Opera()||n.Windows()||k==="reactNative"}},t=e.match(/Tablet|iPad/i),o=nn();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:t?"tablet":n.any()?"mobile":"desktop"}},sn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const n=await Gt({canTrack:e}),t=Zt({canTrack:e});return{sessionId:n,visitorId:t}},an=async({type:e,canTrack:n,apiKey:t,metadata:o,...s})=>({type:e,data:{...s,metadata:{url:location.href,...o},...await sn({canTrack:n}),userAttributes:rn(),ownerId:t}});async function T(e){if(!e.apiKey){console.error("[Builder.io]: Missing API key for track call. Please provide your API key.");return}if(!!e.canTrack&&!g()&&!!(h()||k==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await an(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(n=>{console.error("Failed to track: ",n)})}const cn=e=>T({...e,canTrack:!0});function N(e){return Math.round(e*1e3)/1e3}const ln=(e,n,t=!0)=>{if(!(e instanceof HTMLElement))return null;let o=t?e:e.parentElement;do{if(!o)return null;if(n(o))return o}while(o=o.parentElement);return null},dn=e=>ln(e,n=>{const t=n.getAttribute("builder-id")||n.id;return Boolean((t==null?void 0:t.indexOf("builder-"))===0)}),W=({event:e,target:n})=>{const t=n.getBoundingClientRect(),o=e.clientX-t.left,s=e.clientY-t.top,r=N(o/t.width),a=N(s/t.height);return{x:r,y:a}},un=e=>{const n=e.target,t=n&&dn(n),o=(t==null?void 0:t.getAttribute("builder-id"))||(t==null?void 0:t.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:n?W({event:e,target:n}):void 0,builderTargetOffset:t?W({event:e,target:t}):void 0,builderElementIndex:t&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(t):void 0}}},mn=({content:e,data:n,locale:t})=>{var r,a,l;const o={};(a=(r=e==null?void 0:e.data)==null?void 0:r.inputs)==null||a.forEach(c=>{var d;c.name&&c.defaultValue!==void 0&&((d=e==null?void 0:e.data)==null?void 0:d.state)&&e.data.state[c.name]===void 0&&(o[c.name]=c.defaultValue)});const s={...(l=e==null?void 0:e.data)==null?void 0:l.state,...n,...t?{locale:t}:{}};return{...o,...s}},pn=({content:e,data:n})=>e?{...e,data:{...e==null?void 0:e.data,...n},meta:e==null?void 0:e.meta}:void 0,hn=()=>Promise.resolve().then(()=>X).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",e),e}),fn=()=>Promise.resolve().then(()=>require("./render-styles.86687760.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",e),e}),gn={name:"render-content",components:{RenderContentStyles:i.defineAsyncComponent(fn),RenderBlocks:i.defineAsyncComponent(hn)},props:["content","data","canTrack","locale","customComponents","model","context","apiKey","includeRefs"],data(){return{forceReRenderCount:0,overrideContent:null,useContent:pn({content:this.content,data:this.data}),update:0,canTrackToUse:y(this.canTrack)?this.canTrack:!0,contentState:mn({content:this.content,data:this.data,locale:this.locale}),allRegisteredComponents:[...zt(),...E,...this.customComponents||[]].reduce((e,n)=>({...e,[n.name]:n}),{}),httpReqsData:{},clicked:!1}},provide(){const e=this;return{[x.key]:{content:e.useContent,state:e.contentState,setState:e.setContextState,context:e.context||{},apiKey:e.apiKey,registeredComponents:e.allRegisteredComponents}}},mounted(){var e,n;if(this.apiKey||console.error("[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),h()){if(g()&&(this.forceReRenderCount=this.forceReRenderCount+1,be(),ye({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{}}),Object.values(this.allRegisteredComponents).forEach(t=>{var s;const o=de(t);(s=window.parent)==null||s.postMessage(o,"*")}),window.addEventListener("message",this.processMessage),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.useContent){const t=(e=this.useContent)==null?void 0:e.testVariationId,o=(n=this.useContent)==null?void 0:n.id;T({type:"impression",canTrack:this.canTrackToUse,contentId:o,apiKey:this.apiKey,variationId:t!==o?t:void 0})}if(le()){const t=new URL(location.href).searchParams,o=t.get("builder.preview"),s=t.get("apiKey")||t.get("builder.space");o===this.model&&s===this.apiKey&&B({model:this.model,apiKey:this.apiKey}).then(r=>{r&&this.mergeNewContent(r)})}this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()}},watch:{onUpdateHook0:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook1:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook2:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){h()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{shouldRenderContentStyles(){var e,n,t,o,s;return Boolean((((n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.cssCode)||((s=(o=(t=this.useContent)==null?void 0:t.data)==null?void 0:o.customFonts)==null?void 0:s.length))&&k!=="reactNative")},onUpdateHook0(){var e,n;return{0:(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.jsCode,1:this.contentState}},onUpdateHook1(){var e,n;return{0:(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.httpRequests}},onUpdateHook2(){return{0:this.contentState}}},methods:{mergeNewContent(e){var n,t,o,s,r;this.useContent={...this.useContent,...e,data:{...(n=this.useContent)==null?void 0:n.data,...e==null?void 0:e.data},meta:{...(t=this.useContent)==null?void 0:t.meta,...e==null?void 0:e.meta,breakpoints:((o=e==null?void 0:e.meta)==null?void 0:o.breakpoints)||((r=(s=this.useContent)==null?void 0:s.meta)==null?void 0:r.breakpoints)}}},setBreakpoints(e){var n;this.useContent={...this.useContent,meta:{...(n=this.useContent)==null?void 0:n.meta,breakpoints:e}}},setContextState(e){this.contentState=e},processMessage(e){var t;const{data:n}=e;if(n)switch(n.type){case"builder.configureSdk":{const o=n.data,{breakpoints:s,contentId:r}=o;if(!r||r!==((t=this.useContent)==null?void 0:t.id))return;s&&this.setBreakpoints(s),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const o=n.data,s=o.key||o.alias||o.entry||o.modelName,r=o.data;s===this.model&&(this.mergeNewContent(r),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var n,t;const e=(t=(n=this.useContent)==null?void 0:n.data)==null?void 0:t.jsCode;e&&I({code:e,context:this.context||{},state:this.contentState})},onClick(e){var n,t;if(this.useContent){const o=(n=this.useContent)==null?void 0:n.testVariationId,s=(t=this.useContent)==null?void 0:t.id;T({type:"click",canTrack:this.canTrackToUse,contentId:s,apiKey:this.apiKey,variationId:o!==s?o:void 0,...un(e),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(e){return e.replace(/{{([^}]+)}}/g,(n,t)=>I({code:t,context:this.context||{},state:this.contentState}))},handleRequest({url:e,key:n}){Q(e).then(t=>t.json()).then(t=>{const o={...this.contentState,[n]:t};this.setContextState(o)}).catch(t=>{console.log("error fetching dynamic data",e,t)})},runHttpRequests(){var n,t,o;const e=(o=(t=(n=this.useContent)==null?void 0:n.data)==null?void 0:t.httpRequests)!=null?o:{};Object.entries(e).forEach(([s,r])=>{if(r&&(!this.httpReqsData[s]||g())){const a=this.evalExpression(r);this.handleRequest({url:a,key:s})}})},emitStateUpdate(){g()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:this.contentState,ref:{name:this.model}}}))}}},bn=["builder-content-id","builder-model"];function yn(e,n,t,o,s,r){var c,d,u,m,p,b,A,j;const a=i.resolveComponent("render-content-styles"),l=i.resolveComponent("render-blocks");return s.useContent?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"elementRef",onClick:n[0]||(n[0]=ge=>r.onClick(ge)),"builder-content-id":(c=s.useContent)==null?void 0:c.id,"builder-model":t.model},[r.shouldRenderContentStyles?(i.openBlock(),i.createBlock(a,{key:0,contentId:(d=s.useContent)==null?void 0:d.id,cssCode:(m=(u=s.useContent)==null?void 0:u.data)==null?void 0:m.cssCode,customFonts:(b=(p=s.useContent)==null?void 0:p.data)==null?void 0:b.customFonts},null,8,["contentId","cssCode","customFonts"])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(l,{blocks:(j=(A=s.useContent)==null?void 0:A.data)==null?void 0:j.blocks,key:s.forceReRenderCount},null,8,["blocks"]))],8,bn)):i.createCommentVNode("",!0)}const fe=f(gn,[["render",yn]]),kn=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"})),L={};function vn(e){if(h()){Object.assign(L,e);const n={type:"builder.settingsChange",data:L};parent.postMessage(n,"*")}}exports.BuilderContext=x;exports.Button=$;exports.Columns=D;exports.Fragment=q;exports.Image=G;exports.Section=Y;exports.Symbol=ie;exports.TARGET=k;exports.Text=ae;exports.Video=ce;exports._export_sfc=f;exports.components=E;exports.convertSearchParamsToQueryObject=ne;exports.convertStyleMapToCSSArray=K;exports.createCssClass=_e;exports.createRegisterComponentMessage=de;exports.evaluate=I;exports.fastClone=C;exports.getAllContent=se;exports.getBuilderSearchParams=oe;exports.getBuilderSearchParamsFromWindow=re;exports.getContent=B;exports.getMaxWidthQueryForSize=Ce;exports.getSizesForBreakpoints=H;exports.isEditing=g;exports.isPreviewing=le;exports.normalizeSearchParams=R;exports.register=M;exports.registerComponent=Ht;exports.renderBlocks=J;exports.renderContent=fe;exports.setEditorSettings=vn;exports.track=cn;
|
|
30
|
+
`,c)}}function le(){return!h()||g()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const E=[];function Ht(e,n){return E.push({component:e,...n}),console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."),e}const de=({component:e,...n})=>({type:"builder.registerComponent",data:Dt(n)}),Kt=e=>typeof e=="function"?S(e):C(e),Dt=({inputs:e,...n})=>({...C(n),inputs:e==null?void 0:e.map(t=>Object.entries(t).reduce((o,[s,r])=>({...o,[s]:Kt(r)}),{}))});function qt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const n=Math.random()*16|0;return(e=="x"?n:n&3|8).toString(16)})}function ue(){return qt().replace(/-/g,"")}const me="builderSessionId",Gt=async({canTrack:e})=>{if(!e)return;const n=await Z({name:me,canTrack:e});if(y(n))return n;{const t=Jt();return Xt({id:t,canTrack:e}),t}},Jt=()=>ue(),Xt=({id:e,canTrack:n})=>ee({name:me,value:e,canTrack:n}),pe=()=>h()&&typeof localStorage<"u"?localStorage:void 0,Yt=({key:e,canTrack:n})=>{var t;try{return n?(t=pe())==null?void 0:t.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},Qt=({key:e,canTrack:n,value:t})=>{var o;try{n&&((o=pe())==null||o.setItem(e,t))}catch(s){console.debug("[LocalStorage] SET error: ",s)}},he="builderVisitorId",Zt=({canTrack:e})=>{if(!e)return;const n=Yt({key:he,canTrack:e});if(y(n))return n;{const t=en();return tn({id:t,canTrack:e}),t}},en=()=>ue(),tn=({id:e,canTrack:n})=>Qt({key:he,value:e,canTrack:n}),nn=()=>{if(h()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},on=()=>typeof navigator=="object"&&navigator.userAgent||"",rn=()=>{const e=on(),n={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return n.Android()||n.BlackBerry()||n.iOS()||n.Opera()||n.Windows()||k==="reactNative"}},t=e.match(/Tablet|iPad/i),o=nn();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:t?"tablet":n.any()?"mobile":"desktop"}},sn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const n=await Gt({canTrack:e}),t=Zt({canTrack:e});return{sessionId:n,visitorId:t}},an=async({type:e,canTrack:n,apiKey:t,metadata:o,...s})=>({type:e,data:{...s,metadata:{url:location.href,...o},...await sn({canTrack:n}),userAttributes:rn(),ownerId:t}});async function T(e){if(!e.apiKey){console.error("[Builder.io]: Missing API key for track call. Please provide your API key.");return}if(!!e.canTrack&&!g()&&!!(h()||k==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await an(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(n=>{console.error("Failed to track: ",n)})}const cn=e=>T({...e,canTrack:!0});function N(e){return Math.round(e*1e3)/1e3}const ln=(e,n,t=!0)=>{if(!(e instanceof HTMLElement))return null;let o=t?e:e.parentElement;do{if(!o)return null;if(n(o))return o}while(o=o.parentElement);return null},dn=e=>ln(e,n=>{const t=n.getAttribute("builder-id")||n.id;return Boolean((t==null?void 0:t.indexOf("builder-"))===0)}),W=({event:e,target:n})=>{const t=n.getBoundingClientRect(),o=e.clientX-t.left,s=e.clientY-t.top,r=N(o/t.width),a=N(s/t.height);return{x:r,y:a}},un=e=>{const n=e.target,t=n&&dn(n),o=(t==null?void 0:t.getAttribute("builder-id"))||(t==null?void 0:t.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:n?W({event:e,target:n}):void 0,builderTargetOffset:t?W({event:e,target:t}):void 0,builderElementIndex:t&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(t):void 0}}},mn=({content:e,data:n,locale:t})=>{var r,a,l;const o={};(a=(r=e==null?void 0:e.data)==null?void 0:r.inputs)==null||a.forEach(c=>{var d;c.name&&c.defaultValue!==void 0&&((d=e==null?void 0:e.data)==null?void 0:d.state)&&e.data.state[c.name]===void 0&&(o[c.name]=c.defaultValue)});const s={...(l=e==null?void 0:e.data)==null?void 0:l.state,...n,...t?{locale:t}:{}};return{...o,...s}},pn=({content:e,data:n})=>e?{...e,data:{...e==null?void 0:e.data,...n},meta:e==null?void 0:e.meta}:void 0,hn=()=>Promise.resolve().then(()=>X).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",e),e}),fn=()=>Promise.resolve().then(()=>require("./render-styles.60e81530.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",e),e}),gn={name:"render-content",components:{RenderContentStyles:i.defineAsyncComponent(fn),RenderBlocks:i.defineAsyncComponent(hn)},props:["content","data","canTrack","locale","customComponents","model","context","apiKey","includeRefs"],data(){return{forceReRenderCount:0,overrideContent:null,useContent:pn({content:this.content,data:this.data}),update:0,canTrackToUse:y(this.canTrack)?this.canTrack:!0,contentState:mn({content:this.content,data:this.data,locale:this.locale}),allRegisteredComponents:[...zt(),...E,...this.customComponents||[]].reduce((e,n)=>({...e,[n.name]:n}),{}),httpReqsData:{},clicked:!1}},provide(){const e=this;return{[x.key]:{content:e.useContent,state:e.contentState,setState:e.setContextState,context:e.context||{},apiKey:e.apiKey,registeredComponents:e.allRegisteredComponents}}},mounted(){var e,n;if(this.apiKey||console.error("[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),h()){if(g()&&(this.forceReRenderCount=this.forceReRenderCount+1,be(),ye({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{}}),Object.values(this.allRegisteredComponents).forEach(t=>{var s;const o=de(t);(s=window.parent)==null||s.postMessage(o,"*")}),window.addEventListener("message",this.processMessage),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.useContent){const t=(e=this.useContent)==null?void 0:e.testVariationId,o=(n=this.useContent)==null?void 0:n.id;T({type:"impression",canTrack:this.canTrackToUse,contentId:o,apiKey:this.apiKey,variationId:t!==o?t:void 0})}if(le()){const t=new URL(location.href).searchParams,o=t.get("builder.preview"),s=t.get("apiKey")||t.get("builder.space");o===this.model&&s===this.apiKey&&B({model:this.model,apiKey:this.apiKey}).then(r=>{r&&this.mergeNewContent(r)})}this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()}},watch:{onUpdateHook0:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook1:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook2:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){h()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{shouldRenderContentStyles(){var e,n,t,o,s;return Boolean((((n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.cssCode)||((s=(o=(t=this.useContent)==null?void 0:t.data)==null?void 0:o.customFonts)==null?void 0:s.length))&&k!=="reactNative")},onUpdateHook0(){var e,n;return{0:(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.jsCode,1:this.contentState}},onUpdateHook1(){var e,n;return{0:(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.httpRequests}},onUpdateHook2(){return{0:this.contentState}}},methods:{mergeNewContent(e){var n,t,o,s,r;this.useContent={...this.useContent,...e,data:{...(n=this.useContent)==null?void 0:n.data,...e==null?void 0:e.data},meta:{...(t=this.useContent)==null?void 0:t.meta,...e==null?void 0:e.meta,breakpoints:((o=e==null?void 0:e.meta)==null?void 0:o.breakpoints)||((r=(s=this.useContent)==null?void 0:s.meta)==null?void 0:r.breakpoints)}}},setBreakpoints(e){var n;this.useContent={...this.useContent,meta:{...(n=this.useContent)==null?void 0:n.meta,breakpoints:e}}},setContextState(e){this.contentState=e},processMessage(e){var t;const{data:n}=e;if(n)switch(n.type){case"builder.configureSdk":{const o=n.data,{breakpoints:s,contentId:r}=o;if(!r||r!==((t=this.useContent)==null?void 0:t.id))return;s&&this.setBreakpoints(s),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const o=n.data,s=o.key||o.alias||o.entry||o.modelName,r=o.data;s===this.model&&(this.mergeNewContent(r),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var n,t;const e=(t=(n=this.useContent)==null?void 0:n.data)==null?void 0:t.jsCode;e&&I({code:e,context:this.context||{},state:this.contentState})},onClick(e){var n,t;if(this.useContent){const o=(n=this.useContent)==null?void 0:n.testVariationId,s=(t=this.useContent)==null?void 0:t.id;T({type:"click",canTrack:this.canTrackToUse,contentId:s,apiKey:this.apiKey,variationId:o!==s?o:void 0,...un(e),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(e){return e.replace(/{{([^}]+)}}/g,(n,t)=>I({code:t,context:this.context||{},state:this.contentState}))},handleRequest({url:e,key:n}){Q(e).then(t=>t.json()).then(t=>{const o={...this.contentState,[n]:t};this.setContextState(o)}).catch(t=>{console.log("error fetching dynamic data",e,t)})},runHttpRequests(){var n,t,o;const e=(o=(t=(n=this.useContent)==null?void 0:n.data)==null?void 0:t.httpRequests)!=null?o:{};Object.entries(e).forEach(([s,r])=>{if(r&&(!this.httpReqsData[s]||g())){const a=this.evalExpression(r);this.handleRequest({url:a,key:s})}})},emitStateUpdate(){g()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:this.contentState,ref:{name:this.model}}}))}}},bn=["builder-content-id","builder-model"];function yn(e,n,t,o,s,r){var c,d,u,m,p,b,A,j;const a=i.resolveComponent("render-content-styles"),l=i.resolveComponent("render-blocks");return s.useContent?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"elementRef",onClick:n[0]||(n[0]=ge=>r.onClick(ge)),"builder-content-id":(c=s.useContent)==null?void 0:c.id,"builder-model":t.model},[r.shouldRenderContentStyles?(i.openBlock(),i.createBlock(a,{key:0,contentId:(d=s.useContent)==null?void 0:d.id,cssCode:(m=(u=s.useContent)==null?void 0:u.data)==null?void 0:m.cssCode,customFonts:(b=(p=s.useContent)==null?void 0:p.data)==null?void 0:b.customFonts},null,8,["contentId","cssCode","customFonts"])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(l,{blocks:(j=(A=s.useContent)==null?void 0:A.data)==null?void 0:j.blocks,key:s.forceReRenderCount},null,8,["blocks"]))],8,bn)):i.createCommentVNode("",!0)}const fe=f(gn,[["render",yn]]),kn=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"})),L={};function vn(e){if(h()){Object.assign(L,e);const n={type:"builder.settingsChange",data:L};parent.postMessage(n,"*")}}exports.BuilderContext=x;exports.Button=$;exports.Columns=D;exports.Fragment=q;exports.Image=G;exports.Section=Y;exports.Symbol=ie;exports.TARGET=k;exports.Text=ae;exports.Video=ce;exports._export_sfc=f;exports.checkIsDefined=y;exports.components=E;exports.convertSearchParamsToQueryObject=ne;exports.convertStyleMapToCSSArray=K;exports.createCssClass=_e;exports.createRegisterComponentMessage=de;exports.evaluate=I;exports.fastClone=C;exports.getAllContent=se;exports.getBuilderSearchParams=oe;exports.getBuilderSearchParamsFromWindow=re;exports.getContent=B;exports.getMaxWidthQueryForSize=Ce;exports.getSizesForBreakpoints=H;exports.isEditing=g;exports.isPreviewing=le;exports.normalizeSearchParams=R;exports.register=M;exports.registerComponent=Ht;exports.renderBlocks=J;exports.renderContent=fe;exports.setEditorSettings=vn;exports.track=cn;
|
|
@@ -130,10 +130,10 @@ function ye(e, n, t, o, r, s) {
|
|
|
130
130
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
131
131
|
}, s.filterAttrs(t.attributes, !1), w(s.filterAttrs(t.attributes, !0), !0)), M(t.text), 17, be)) : (d(), u("button", C({
|
|
132
132
|
key: 1,
|
|
133
|
-
class: "button-
|
|
133
|
+
class: "button-1yj9n7yt24z"
|
|
134
134
|
}, s.filterAttrs(t.attributes, !1), w(s.filterAttrs(t.attributes, !0), !0)), M(t.text), 17));
|
|
135
135
|
}
|
|
136
|
-
const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-
|
|
136
|
+
const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-28c9cee7"]]), W = (e) => JSON.parse(JSON.stringify(e)), Z = {
|
|
137
137
|
small: {
|
|
138
138
|
min: 320,
|
|
139
139
|
default: 321,
|
|
@@ -203,7 +203,7 @@ const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-9644a0b2
|
|
|
203
203
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
204
204
|
e
|
|
205
205
|
), e;
|
|
206
|
-
}), we = () => import("./render-inlined-styles.
|
|
206
|
+
}), we = () => import("./render-inlined-styles.d2e5f785.js").then((e) => e.default).catch((e) => {
|
|
207
207
|
throw console.error(
|
|
208
208
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
209
209
|
e
|
|
@@ -339,7 +339,7 @@ function Te(e, n, t, o, r, s) {
|
|
|
339
339
|
return d(), u("div", {
|
|
340
340
|
class: j(
|
|
341
341
|
s._classStringToObject(
|
|
342
|
-
`builder-columns ${t.builderBlock.id}-breakpoints div-
|
|
342
|
+
`builder-columns ${t.builderBlock.id}-breakpoints div-361b1o6wv2k`
|
|
343
343
|
)
|
|
344
344
|
),
|
|
345
345
|
style: I({
|
|
@@ -353,7 +353,7 @@ function Te(e, n, t, o, r, s) {
|
|
|
353
353
|
}, null, 8, ["styles"])) : b("", !0),
|
|
354
354
|
(d(!0), u(E, null, P(t.columns, (a, l) => (d(), u("div", {
|
|
355
355
|
key: l,
|
|
356
|
-
class: "builder-column div-
|
|
356
|
+
class: "builder-column div-361b1o6wv2k-2",
|
|
357
357
|
style: I({
|
|
358
358
|
width: s.getColumnCssWidth(l),
|
|
359
359
|
marginLeft: `${l === 0 ? 0 : s.getGutterSize()}px`,
|
|
@@ -372,7 +372,7 @@ function Te(e, n, t, o, r, s) {
|
|
|
372
372
|
], 4))), 128))
|
|
373
373
|
], 6);
|
|
374
374
|
}
|
|
375
|
-
const Re = /* @__PURE__ */ g(Ie, [["render", Te], ["__scopeId", "data-v-
|
|
375
|
+
const Re = /* @__PURE__ */ g(Ie, [["render", Te], ["__scopeId", "data-v-64d36a32"]]), Ee = {
|
|
376
376
|
name: "builder-fragment-component",
|
|
377
377
|
props: []
|
|
378
378
|
};
|
|
@@ -472,7 +472,7 @@ const Be = {
|
|
|
472
472
|
};
|
|
473
473
|
const Pe = ["srcset"], Ve = ["alt", "role", "src", "srcset", "sizes"], Ue = {
|
|
474
474
|
key: 2,
|
|
475
|
-
class: "div-
|
|
475
|
+
class: "div-7jvpanrlkn-2"
|
|
476
476
|
};
|
|
477
477
|
function We(e, n, t, o, r, s) {
|
|
478
478
|
var i, c, a, l;
|
|
@@ -494,7 +494,7 @@ function We(e, n, t, o, r, s) {
|
|
|
494
494
|
}),
|
|
495
495
|
class: j(
|
|
496
496
|
s._classStringToObject(
|
|
497
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
497
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-7jvpanrlkn"
|
|
498
498
|
)
|
|
499
499
|
),
|
|
500
500
|
src: t.image,
|
|
@@ -504,7 +504,7 @@ function We(e, n, t, o, r, s) {
|
|
|
504
504
|
]),
|
|
505
505
|
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (d(), u("div", {
|
|
506
506
|
key: 0,
|
|
507
|
-
class: "builder-image-sizer div-
|
|
507
|
+
class: "builder-image-sizer div-7jvpanrlkn",
|
|
508
508
|
style: I({
|
|
509
509
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
510
510
|
})
|
|
@@ -515,19 +515,19 @@ function We(e, n, t, o, r, s) {
|
|
|
515
515
|
])) : b("", !0)
|
|
516
516
|
], 64);
|
|
517
517
|
}
|
|
518
|
-
const Le = /* @__PURE__ */ g(Be, [["render", We], ["__scopeId", "data-v-
|
|
518
|
+
const Le = /* @__PURE__ */ g(Be, [["render", We], ["__scopeId", "data-v-22833d9f"]]);
|
|
519
519
|
function Ne() {
|
|
520
520
|
return f() && window.self !== window.top;
|
|
521
521
|
}
|
|
522
522
|
function y() {
|
|
523
523
|
return Ne() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
524
524
|
}
|
|
525
|
-
const Me = () => import("./block-styles.
|
|
525
|
+
const Me = () => import("./block-styles.f9c554cb.js").then((e) => e.default).catch((e) => {
|
|
526
526
|
throw console.error(
|
|
527
527
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
528
528
|
e
|
|
529
529
|
), e;
|
|
530
|
-
}), $e = () => import("./render-block.
|
|
530
|
+
}), $e = () => import("./render-block.3f0e76cb.js").then((e) => e.default).catch((e) => {
|
|
531
531
|
throw console.error(
|
|
532
532
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
533
533
|
e
|
|
@@ -2138,7 +2138,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2138
2138
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
2139
2139
|
e
|
|
2140
2140
|
), e;
|
|
2141
|
-
}), wn = () => import("./render-styles.
|
|
2141
|
+
}), wn = () => import("./render-styles.43492acf.js").then((e) => e.default).catch((e) => {
|
|
2142
2142
|
throw console.error(
|
|
2143
2143
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
2144
2144
|
e
|
|
@@ -2465,29 +2465,30 @@ export {
|
|
|
2465
2465
|
R as T,
|
|
2466
2466
|
Pt as V,
|
|
2467
2467
|
g as _,
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2468
|
+
Fn as a,
|
|
2469
|
+
On as b,
|
|
2470
|
+
S as c,
|
|
2471
|
+
Se as d,
|
|
2472
2472
|
G as e,
|
|
2473
2473
|
W as f,
|
|
2474
2474
|
xe as g,
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2475
|
+
ve as h,
|
|
2476
|
+
En as i,
|
|
2477
|
+
wt as j,
|
|
2478
|
+
At as k,
|
|
2479
|
+
y as l,
|
|
2480
|
+
en as m,
|
|
2481
|
+
ae as n,
|
|
2482
|
+
Bn as o,
|
|
2483
|
+
tn as p,
|
|
2484
|
+
pe as q,
|
|
2485
2485
|
De as r,
|
|
2486
2486
|
Vn as s,
|
|
2487
2487
|
Pn as t,
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2488
|
+
ie as u,
|
|
2489
|
+
xt as v,
|
|
2490
|
+
gt as w,
|
|
2491
|
+
bt as x,
|
|
2492
|
+
yt as y,
|
|
2493
|
+
re as z
|
|
2493
2494
|
};
|