@builder.io/sdk-vue 0.1.3 → 0.1.4

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.
Files changed (42) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.d52d65f7.js → block-styles.062b71eb.js} +3 -3
  3. package/packages/_vue2/dist/{block-styles.426683e4.cjs → block-styles.c799c71a.cjs} +1 -1
  4. package/packages/{_vue3/dist/get-processed-block.aed48c68.js → _vue2/dist/get-processed-block.44306844.js} +1 -1
  5. package/packages/{_vue3/dist/get-processed-block.7681705a.cjs → _vue2/dist/get-processed-block.837e0313.cjs} +1 -1
  6. package/packages/_vue2/dist/{index.57d3bafb.cjs → index.59a0624f.cjs} +4 -4
  7. package/packages/_vue2/dist/{index.3403bf5e.js → index.b2edb9b2.js} +34 -34
  8. package/packages/_vue2/dist/{render-block.5069cc94.js → render-block.74bfd4ea.js} +5 -5
  9. package/packages/_vue2/dist/{render-block.93fcfc84.cjs → render-block.b97311ac.cjs} +2 -2
  10. package/packages/_vue2/dist/{render-component.5e59a26d.js → render-component.b325feac.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.697eb0f0.cjs → render-component.e59489c1.cjs} +1 -1
  12. package/packages/_vue2/dist/render-inlined-styles.14b606a5.cjs +1 -0
  13. package/packages/_vue2/dist/{render-inlined-styles.c4ede85b.js → render-inlined-styles.734fe2c9.js} +4 -4
  14. package/packages/_vue2/dist/{render-repeated-block.82ac5fdf.cjs → render-repeated-block.bbbfafcc.cjs} +1 -1
  15. package/packages/_vue2/dist/{render-repeated-block.88a83bb3.js → render-repeated-block.e1d94c10.js} +2 -2
  16. package/packages/_vue2/dist/{render-styles.78a78d13.js → render-styles.0b296b86.js} +2 -2
  17. package/packages/_vue2/dist/{render-styles.95a1cf8d.cjs → render-styles.6732290e.cjs} +1 -1
  18. package/packages/_vue2/dist/sdk.cjs +1 -1
  19. package/packages/_vue2/dist/sdk.js +1 -1
  20. package/packages/_vue2/dist/style.css +1 -1
  21. package/packages/_vue3/dist/{block-styles.b1836f48.js → block-styles.413a68e9.js} +3 -3
  22. package/packages/_vue3/dist/{block-styles.b81e8e00.cjs → block-styles.6e935df7.cjs} +1 -1
  23. package/packages/{_vue2/dist/get-processed-block.b1e9044b.js → _vue3/dist/get-processed-block.ab2d823c.js} +1 -1
  24. package/packages/{_vue2/dist/get-processed-block.25e77989.cjs → _vue3/dist/get-processed-block.b0588cd8.cjs} +1 -1
  25. package/packages/_vue3/dist/{index.0bf7b9df.cjs → index.218c45a5.cjs} +5 -5
  26. package/packages/_vue3/dist/{index.dfbf4ad8.js → index.7db5ef7e.js} +31 -31
  27. package/packages/_vue3/dist/{render-block.bd00521b.js → render-block.a53e9af1.js} +5 -5
  28. package/packages/_vue3/dist/{render-block.7d6c9594.cjs → render-block.a9195cb6.cjs} +2 -2
  29. package/packages/_vue3/dist/{render-component.98c61732.js → render-component.41330655.js} +3 -3
  30. package/packages/_vue3/dist/{render-component.7b0412f1.cjs → render-component.adae07fa.cjs} +1 -1
  31. package/packages/_vue3/dist/render-inlined-styles.47114c43.js +32 -0
  32. package/packages/_vue3/dist/render-inlined-styles.c80dee1c.cjs +1 -0
  33. package/packages/_vue3/dist/{render-repeated-block.dc67945a.cjs → render-repeated-block.5b77dd2a.cjs} +1 -1
  34. package/packages/_vue3/dist/{render-repeated-block.c0e57489.js → render-repeated-block.648adc14.js} +2 -2
  35. package/packages/_vue3/dist/{render-styles.c739f8f5.js → render-styles.8780951f.js} +2 -2
  36. package/packages/_vue3/dist/{render-styles.c2fe7073.cjs → render-styles.9f30e56b.cjs} +1 -1
  37. package/packages/_vue3/dist/sdk.cjs +1 -1
  38. package/packages/_vue3/dist/sdk.js +1 -1
  39. package/packages/_vue3/dist/style.css +1 -1
  40. package/packages/_vue2/dist/render-inlined-styles.d6107d6b.cjs +0 -1
  41. package/packages/_vue3/dist/render-inlined-styles.dc458558.js +0 -32
  42. package/packages/_vue3/dist/render-inlined-styles.fb31ff26.cjs +0 -1
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "workspaces": [
5
5
  "packages/*"
6
6
  ],
7
- "version": "0.1.3",
7
+ "version": "0.1.4",
8
8
  "main": "./packages/_vue2/dist/sdk.js",
9
9
  "module": "./packages/_vue2/dist/sdk.js",
10
10
  "type": "module",
@@ -1,6 +1,6 @@
1
- import { T as p, g as y, c as o, a as i, n as _ } from "./index.3403bf5e.js";
2
- import { g as h } from "./get-processed-block.b1e9044b.js";
3
- const k = () => import("./render-inlined-styles.c4ede85b.js").then((e) => e.default).catch((e) => {
1
+ import { T as p, g as y, c as o, a as i, n as _ } from "./index.b2edb9b2.js";
2
+ import { g as h } from "./get-processed-block.44306844.js";
3
+ const k = () => import("./render-inlined-styles.734fe2c9.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
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.57d3bafb.cjs"),m=require("./get-processed-block.25e77989.cjs"),y=()=>Promise.resolve().then(()=>require("./render-inlined-styles.d6107d6b.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}),p={name:"block-styles",components:{RenderInlinedStyles:y},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{useBlock(){return m.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},css(){var a;const e=this.useBlock.responsiveStyles,s=this.context.content,n=t.getSizesForBreakpoints(((a=s==null?void 0:s.meta)==null?void 0:a.breakpoints)||{}),o=e==null?void 0:e.large,r=e==null?void 0:e.medium,c=e==null?void 0:e.small,l=this.useBlock.id,i=o?t.createCssClass({className:l,styles:o}):"",d=r?t.createCssClass({className:l,styles:r,mediaQuery:t.getMaxWidthQueryForSize("medium",n)}):"",u=c?t.createCssClass({className:l,styles:c,mediaQuery:t.getMaxWidthQueryForSize("small",n)}):"";return[i,d,u].join(" ")}}};var h=function(){var s=this,n=s._self._c;return s.TARGET!=="reactNative"&&s.css?n("render-inlined-styles",{attrs:{styles:s.css}}):s._e()},S=[],_=t.normalizeComponent(p,h,S,!1,null,null,null,null);const k=_.exports;exports.default=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.59a0624f.cjs"),m=require("./get-processed-block.837e0313.cjs"),y=()=>Promise.resolve().then(()=>require("./render-inlined-styles.14b606a5.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}),p={name:"block-styles",components:{RenderInlinedStyles:y},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{useBlock(){return m.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},css(){var a;const e=this.useBlock.responsiveStyles,s=this.context.content,n=t.getSizesForBreakpoints(((a=s==null?void 0:s.meta)==null?void 0:a.breakpoints)||{}),o=e==null?void 0:e.large,r=e==null?void 0:e.medium,c=e==null?void 0:e.small,l=this.useBlock.id,i=o?t.createCssClass({className:l,styles:o}):"",d=r?t.createCssClass({className:l,styles:r,mediaQuery:t.getMaxWidthQueryForSize("medium",n)}):"",u=c?t.createCssClass({className:l,styles:c,mediaQuery:t.getMaxWidthQueryForSize("small",n)}):"";return[i,d,u].join(" ")}}};var h=function(){var s=this,n=s._self._c;return s.TARGET!=="reactNative"&&s.css?n("render-inlined-styles",{attrs:{styles:s.css}}):s._e()},S=[],_=t.normalizeComponent(p,h,S,!1,null,null,null,null);const k=_.exports;exports.default=k;
@@ -1,4 +1,4 @@
1
- import { f as a, e as u } from "./index.dfbf4ad8.js";
1
+ import { f as a, e as u } from "./index.b2edb9b2.js";
2
2
  const f = (n, r, i) => {
3
3
  if (Object(n) !== n)
4
4
  return n;
@@ -1 +1 @@
1
- "use strict";const o=require("./index.0bf7b9df.cjs"),d=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const a=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n=o.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const s in e.bindings){const c=e.bindings[s],u=o.evaluate({code:c,state:i,context:r});d(t,s,u)}return t};function f({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?a({block:t,state:n,context:r}):t}exports.getProcessedBlock=f;
1
+ "use strict";const o=require("./index.59a0624f.cjs"),d=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const a=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n=o.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const s in e.bindings){const c=e.bindings[s],u=o.evaluate({code:c,state:i,context:r});d(t,s,u)}return t};function f({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?a({block:t,state:n,context:r}):t}exports.getProcessedBlock=f;
@@ -3,7 +3,7 @@
3
3
  ${v(n)}
4
4
  }`;return t?`${t} {
5
5
  ${o}
6
- }`:o},ve=()=>Promise.resolve().then(()=>pe).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",t),t}),_e=()=>Promise.resolve().then(()=>require("./render-inlined-styles.d6107d6b.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",t),t}),xe={name:"builder-columns",components:{RenderInlinedStyles:_e,RenderBlocks:ve},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","customBreakpoints","builderBlock"],data(){return{TARGET:y}},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)}},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`
6
+ }`:o},ve=()=>Promise.resolve().then(()=>pe).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",t),t}),_e=()=>Promise.resolve().then(()=>require("./render-inlined-styles.14b606a5.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",t),t}),xe={name:"builder-columns",components:{RenderInlinedStyles:_e,RenderBlocks:ve},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","customBreakpoints","builderBlock"],data(){return{TARGET:y}},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)}},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(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"},getWidthForBreakpointSize(t){return L(this.customBreakpoints||{})[t].max},_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}}};function p(t,e,n,o,r,s,i,c){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var d;if(i?(d=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!l&&typeof __VUE_SSR_CONTEXT__<"u"&&(l=__VUE_SSR_CONTEXT__),r&&r.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(i)},a._ssrRegister=d):r&&(d=c?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(a.functional){a._injectStyles=d;var u=a.render;a.render=function(g,E){return d.call(E),u(g,E)}}else{var h=a.beforeCreate;a.beforeCreate=h?[].concat(h,d):[d]}return{exports:t,options:a}}var Ce=function(){var e=this,n=e._self._c;return n("div",{class:e._classStringToObject(`builder-columns ${e.builderBlock.id}-breakpoints div-29wpyomtntv`),style:{...e.TARGET==="reactNative"?e.reactNativeColumnsStyles:{},...e.columnsCssVars}},[e.TARGET!=="reactNative"?[n("render-inlined-styles",{attrs:{styles:e.columnsStyles}})]:e._e(),e._l(e.columns,function(o,r){return n("div",{key:r,staticClass:"builder-column div-29wpyomtntv-2",style:{width:e.getColumnCssWidth(r),marginLeft:`${r===0?0:e.getGutterSize()}px`,...e.TARGET==="reactNative"?e.reactNativeColumnStyles:{},...e.columnCssVars}},[n("render-blocks",{attrs:{blocks:o.blocks,path:`component.options.columns.${r}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"}}})],1)})],2)},ke=[],Se=p(xe,Ce,ke,!1,null,"a89ca538",null,null);const z=Se.exports;function P(t){return t.replace(/http(s)?:/,"")}function we(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 Ie(t,e){if(!t||!(t!=null&&t.match(/cdn\.shopify\.com/))||!e)return t;if(e==="master")return P(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 P(`${o[0]}_${s}${r}`)}return null}function k(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=>`${we(t,"width",r)} ${r}w`).concat([n]).join(", ")}return t.match(/cdn\.shopify\.com/)?e.map(n=>[Ie(t,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,o])=>`${n} ${o}w`).concat([t]).join(", "):t}const Re={name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],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"),k(e)}else if(this.image&&!this.srcset)return k(e);return k(e)},webpSrcSet(){var t;return((t=this.srcSetToUse)==null?void 0:t.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const t={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?t:void 0}},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 Te=function(){var o,r,s,i;var e=this,n=e._self._c;return n("div",[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-1j57pcfa436"),style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...e.aspectRatioCss},attrs:{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,src:e.image,srcset:e.srcSetToUse,sizes:e.sizes}})],2),e.aspectRatio&&!(((r=(o=e.builderBlock)==null?void 0:o.children)==null?void 0:r.length)&&e.fitContent)?[n("div",{staticClass:"builder-image-sizer div-1j57pcfa436",style:{paddingTop:e.aspectRatio*100+"%"}})]:e._e(),((i=(s=e.builderBlock)==null?void 0:s.children)==null?void 0:i.length)&&e.fitContent?[e._t("default")]:e._e(),!e.fitContent&&e.children?[n("div",{staticClass:"div-1j57pcfa436-2"},[e._t("default")],2)]:e._e()],2)},$e=[],Ee=p(Re,Te,$e,!1,null,"76004f06",null,null);const K=Ee.exports,Fe={name:"builder-text",props:["text"]};var je=function(){var e=this,n=e._self._c;return n("span",{staticClass:"builder-text",domProps:{innerHTML:e._s(e.text)}})},Pe=[],Oe=p(Fe,je,Pe,!1,null,null,null,null);const D=Oe.exports,Be={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}}}};var Ae=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.spreadProps,!1))},Ue=[],Ve=p(Be,Ae,Ue,!1,null,null,null,null);const H=Ve.exports,We=Symbol(),x={Builder:{content:null,context:{},state:{},apiKey:null,registeredComponents:{},inheritedStyles:{}},key:We};function Me(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Le(){const t=Me().fetch;if(typeof t>"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
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return t}const q=Le(),Ne=t=>{if(t==="localhost"||t==="127.0.0.1")return t;const e=t.split(".");return e.length>2?e.slice(1).join("."):t},G=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);return}},ze=t=>t.map(([e,n])=>n?`${e}=${n}`:e).filter(b).join("; "),Ke=[["secure",""],["SameSite","None"]],De=({name:t,value:e,expires:n})=>{const r=(m()?location.protocol==="https:":!0)?Ke:[[]],s=n?[["expires",n.toUTCString()]]:[[]],i=[[t,e],...s,["path","/"],["domain",Ne(window.location.hostname)],...r];return ze(i)},J=async({name:t,value:e,expires:n,canTrack:o})=>{try{if(!o)return;const r=De({name:t,value:e,expires:n});document.cookie=r}catch(r){console.warn("[COOKIE] SET error: ",r)}},He="builderio.variations",X=t=>`${He}.${t}`,qe=({contentId:t,canTrack:e})=>G({name:X(t),canTrack:e}),Ge=({contentId:t,canTrack:e,value:n})=>J({name:X(t),value:n,canTrack:e}),Je=t=>b(t.id)&&b(t.variations)&&Object.keys(t.variations).length>0,Xe=({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},O=({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":"")}},Ye=async({item:t,canTrack:e})=>{const n=await qe({canTrack:e,contentId:t.id}),o=n?O({item:t,testGroupId:n}):void 0;if(o)return o;{const r=Xe({variations:t.variations,id:t.id});return Ge({contentId:t.id,value:r,canTrack:e}).catch(s=>{console.error("could not store A/B test variation: ",s)}),O({item:t,testGroupId:r})}},Qe=async({item:t,canTrack:e})=>{if(!Je(t))return;const n=await Ye({item:t,canTrack:e});Object.assign(t,n)};function S(t,e=null,n="."){return Object.keys(t).reduce((o,r)=>{const s=t[r],i=[e,r].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...o,...S(s,i,n)}:{...o,[i]:s}},{})}const B="builder.",Ze="options.",Y=t=>{const e={};return t.forEach((n,o)=>{e[o]=n}),e},Q=t=>{if(!t)return{};const e=R(t),n={};return Object.keys(e).forEach(o=>{if(o.startsWith(B)){const r=o.replace(B,"").replace(Ze,"");n[r]=e[o]}}),n},Z=()=>{if(!m())return{};const t=new URLSearchParams(window.location.search);return Q(t)},R=t=>t instanceof URLSearchParams?Y(t):t,et=t=>{const{limit:e=30,userAttributes:n,query:o,noTraverse:r=!1,model:s,apiKey:i,includeRefs:c=!0,locale:a}=t;if(!i)throw new Error("Missing API key");const d=new URL(`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${e}&noTraverse=${r}&includeRefs=${c}${a?`&locale=${a}`:""}`),u={...Z(),...R(t.options||{})},h=S(u);for(const l in h)d.searchParams.set(l,String(h[l]));if(n&&d.searchParams.set("userAttributes",JSON.stringify(n)),o){const l=S({query:o});for(const g in l)d.searchParams.set(g,JSON.stringify(l[g]))}return d};async function T(t){return(await ee({...t,limit:1})).results[0]||null}async function ee(t){const e=et(t),o=await(await q(e.href)).json(),r=t.canTrack!==!1;if(r&&Array.isArray(o.results))for(const s of o.results)await Qe({item:s,canTrack:r});return o}const tt=()=>Promise.resolve().then(()=>Cn).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}),nt={name:"builder-symbol",components:{RenderContent:tt},props:["attributes","symbol","dynamic"],data(){return{fetchedContent:null}},inject:{builderContext:x.key},watch:{onUpdateHook0:{handler(){var e;const t=this.symbol;t&&!t.content&&!this.fetchedContent&&t.model&&((e=this.builderContext)==null?void 0:e.apiKey)&&T({model:t.model,apiKey:this.builderContext.apiKey,query:{id:t.entry}}).then(n=>{this.fetchedContent=n})},immediate:!0}},computed:{className(){var t,e;return[...Object.keys(this.attributes.class),"builder-symbol",(t=this.symbol)!=null&&t.inline?"builder-inline-symbol":void 0,((e=this.symbol)==null?void 0:e.dynamic)||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},contentToUse(){var t;return((t=this.symbol)==null?void 0:t.content)||this.fetchedContent},onUpdateHook0(){return{0:this.symbol,1:this.fetchedContent}}},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 ot=function(){var o,r,s,i,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:Object.values(e.builderContext.registeredComponents),data:{...(o=e.symbol)==null?void 0:o.data,...e.builderContext.state,...(i=(s=(r=e.symbol)==null?void 0:r.content)==null?void 0:s.data)==null?void 0:i.state},model:(c=e.symbol)==null?void 0:c.model,content:e.contentToUse}})],1)},rt=[],st=p(nt,ot,rt,!1,null,null,null,null);const te=st.exports,it={name:"builder-button",props:["attributes","text","link","openLinkInNewTab"]};var at=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-1pl23ac79ld"},"button",e.attributes,!1),[e._v(" "+e._s(e.text)+" ")])},ct=[],lt=p(it,at,ct,!1,null,"9d610bd1",null,null);const ne=lt.exports,dt={name:"builder-section-component",props:["attributes","maxWidth"]};var ut=function(){var e=this,n=e._self._c;return n("section",e._b({style:{width:"100%",alignSelf:"stretch",flexGrow:"1",boxSizing:"border-box",maxWidth:`${e.maxWidth&&typeof e.maxWidth=="number"?e.maxWidth:1200}px`,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},"section",e.attributes,!1),[e._t("default")],2)},mt=[],pt=p(dt,ut,mt,!1,null,null,null,null);const oe=pt.exports,ht={name:"builder-fragment-component",props:[]};var ft=function(){var e=this,n=e._self._c;return n("span",[e._t("default")],2)},gt=[],bt=p(ht,ft,gt,!1,null,null,null,null);const re=bt.exports,yt={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},C=t=>{const e=t.toString().trim();return`return (${!e.startsWith("function")&&!e.startsWith("(")?"function ":""}${e}).apply(this, arguments)`},vt={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:C(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,a)=>c+a.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}]},_t={name:"Fragment",static:!0,hidden:!0,builtIn:!0,canHaveChildren:!0,noWrap:!0},xt={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:C(t=>{t.delete("srcset"),t.delete("noWebp");function n(i,c=6e4){return new Promise((a,d)=>{const u=document.createElement("img");let h=!1;u.onload=()=>{h=!0,a(u)},u.addEventListener("error",l=>{console.warn("Image load failed",l.error),d(l.error)}),u.src=i,setTimeout(()=>{h||d(new Error("Image load timed out"))},c)})}function o(i){return Math.round(i*1e3)/1e3}const r=t.get("image"),s=t.get("aspectRatio");if(fetch(r).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&t.set("noWebp",!0)}),r&&(!s||s===.7041))return n(r).then(i=>{const c=t.get("aspectRatio");t.get("image")===r&&(!c||c===.7041)&&i.width&&i.height&&(t.set("aspectRatio",o(i.height/i.width)),t.set("height",i.height),t.set("width",i.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}]},Ct={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>"}}}]},kt={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"}]},St={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"}},wt={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}]},It={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:C(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}]},Rt=["text/javascript","application/javascript","application/ecmascript"],Tt=t=>Rt.includes(t.type),$t={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 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(Tt(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 Et=function(){var e=this,n=e._self._c;return n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:e._s(e.content)}})},Ft=[],jt=p($t,Et,Ft,!1,null,null,null,null);const Pt=jt.exports;function Ot(){return m()&&window.self!==window.top}function f(){return Ot()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Bt={name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:f}}};var At=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))},Ut=[],Vt=p(Bt,At,Ut,!1,null,null,null,null);const Wt=Vt.exports,Mt={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},Lt={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 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 Nt=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)}})},zt=[],Kt=p(Lt,Nt,zt,!1,null,null,null,null);const Dt=Kt.exports,Ht={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}]},qt=()=>[{component:z,...vt},{component:K,...xt},{component:Wt,...Mt},{component:D,...St},{component:H,...wt},{component:te,...kt},{component:ne,...yt},{component:oe,...Ct},{component:re,..._t},{component:Pt,...It},{component:Dt,...Ht}];function w({code:t,context:e,state:n,event:o,isExpression:r=!0}){if(t===""){console.warn("Skipping evaluation of empty code block.");return}const s={isEditing:f(),isBrowser:m(),isServer:!m()},c=r&&!(t.includes(";")||t.includes(" return ")||t.trim().startsWith("return "))?`return (${t});`:t;try{return new Function("builder","Builder","state","context","event",c)(s,s,n,e,o)}catch(a){console.warn(`Builder custom code error:
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(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"},getWidthForBreakpointSize(t){return L(this.customBreakpoints||{})[t].max},_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}}};function p(t,e,n,o,r,s,i,c){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var d;if(i?(d=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!l&&typeof __VUE_SSR_CONTEXT__<"u"&&(l=__VUE_SSR_CONTEXT__),r&&r.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(i)},a._ssrRegister=d):r&&(d=c?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(a.functional){a._injectStyles=d;var u=a.render;a.render=function(g,E){return d.call(E),u(g,E)}}else{var h=a.beforeCreate;a.beforeCreate=h?[].concat(h,d):[d]}return{exports:t,options:a}}var Ce=function(){var e=this,n=e._self._c;return n("div",{class:e._classStringToObject(`builder-columns ${e.builderBlock.id}-breakpoints div-t9spj7joih`),style:{...e.TARGET==="reactNative"?e.reactNativeColumnsStyles:{},...e.columnsCssVars}},[e.TARGET!=="reactNative"?[n("render-inlined-styles",{attrs:{styles:e.columnsStyles}})]:e._e(),e._l(e.columns,function(o,r){return n("div",{key:r,staticClass:"builder-column div-t9spj7joih-2",style:{width:e.getColumnCssWidth(r),marginLeft:`${r===0?0:e.getGutterSize()}px`,...e.TARGET==="reactNative"?e.reactNativeColumnStyles:{},...e.columnCssVars}},[n("render-blocks",{attrs:{blocks:o.blocks,path:`component.options.columns.${r}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"}}})],1)})],2)},ke=[],Se=p(xe,Ce,ke,!1,null,"72d9045b",null,null);const z=Se.exports;function P(t){return t.replace(/http(s)?:/,"")}function we(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 Ie(t,e){if(!t||!(t!=null&&t.match(/cdn\.shopify\.com/))||!e)return t;if(e==="master")return P(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 P(`${o[0]}_${s}${r}`)}return null}function k(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=>`${we(t,"width",r)} ${r}w`).concat([n]).join(", ")}return t.match(/cdn\.shopify\.com/)?e.map(n=>[Ie(t,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,o])=>`${n} ${o}w`).concat([t]).join(", "):t}const Re={name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],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"),k(e)}else if(this.image&&!this.srcset)return k(e);return k(e)},webpSrcSet(){var t;return((t=this.srcSetToUse)==null?void 0:t.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const t={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?t:void 0}},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 Te=function(){var o,r,s,i;var e=this,n=e._self._c;return n("div",[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-1pl23ac79ld"),style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...e.aspectRatioCss},attrs:{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,src:e.image,srcset:e.srcSetToUse,sizes:e.sizes}})],2),e.aspectRatio&&!(((r=(o=e.builderBlock)==null?void 0:o.children)==null?void 0:r.length)&&e.fitContent)?[n("div",{staticClass:"builder-image-sizer div-1pl23ac79ld",style:{paddingTop:e.aspectRatio*100+"%"}})]:e._e(),((i=(s=e.builderBlock)==null?void 0:s.children)==null?void 0:i.length)&&e.fitContent?[e._t("default")]:e._e(),!e.fitContent&&e.children?[n("div",{staticClass:"div-1pl23ac79ld-2"},[e._t("default")],2)]:e._e()],2)},$e=[],Ee=p(Re,Te,$e,!1,null,"d14c6f82",null,null);const K=Ee.exports,Fe={name:"builder-text",props:["text"]};var je=function(){var e=this,n=e._self._c;return n("span",{staticClass:"builder-text",domProps:{innerHTML:e._s(e.text)}})},Pe=[],Oe=p(Fe,je,Pe,!1,null,null,null,null);const D=Oe.exports,Be={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}}}};var Ae=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.spreadProps,!1))},Ue=[],Ve=p(Be,Ae,Ue,!1,null,null,null,null);const H=Ve.exports,We=Symbol(),x={Builder:{content:null,context:{},state:{},apiKey:null,registeredComponents:{},inheritedStyles:{}},key:We};function Me(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Le(){const t=Me().fetch;if(typeof t>"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
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return t}const q=Le(),Ne=t=>{if(t==="localhost"||t==="127.0.0.1")return t;const e=t.split(".");return e.length>2?e.slice(1).join("."):t},G=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);return}},ze=t=>t.map(([e,n])=>n?`${e}=${n}`:e).filter(b).join("; "),Ke=[["secure",""],["SameSite","None"]],De=({name:t,value:e,expires:n})=>{const r=(m()?location.protocol==="https:":!0)?Ke:[[]],s=n?[["expires",n.toUTCString()]]:[[]],i=[[t,e],...s,["path","/"],["domain",Ne(window.location.hostname)],...r];return ze(i)},J=async({name:t,value:e,expires:n,canTrack:o})=>{try{if(!o)return;const r=De({name:t,value:e,expires:n});document.cookie=r}catch(r){console.warn("[COOKIE] SET error: ",r)}},He="builderio.variations",X=t=>`${He}.${t}`,qe=({contentId:t,canTrack:e})=>G({name:X(t),canTrack:e}),Ge=({contentId:t,canTrack:e,value:n})=>J({name:X(t),value:n,canTrack:e}),Je=t=>b(t.id)&&b(t.variations)&&Object.keys(t.variations).length>0,Xe=({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},O=({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":"")}},Ye=async({item:t,canTrack:e})=>{const n=await qe({canTrack:e,contentId:t.id}),o=n?O({item:t,testGroupId:n}):void 0;if(o)return o;{const r=Xe({variations:t.variations,id:t.id});return Ge({contentId:t.id,value:r,canTrack:e}).catch(s=>{console.error("could not store A/B test variation: ",s)}),O({item:t,testGroupId:r})}},Qe=async({item:t,canTrack:e})=>{if(!Je(t))return;const n=await Ye({item:t,canTrack:e});Object.assign(t,n)};function S(t,e=null,n="."){return Object.keys(t).reduce((o,r)=>{const s=t[r],i=[e,r].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...o,...S(s,i,n)}:{...o,[i]:s}},{})}const B="builder.",Ze="options.",Y=t=>{const e={};return t.forEach((n,o)=>{e[o]=n}),e},Q=t=>{if(!t)return{};const e=R(t),n={};return Object.keys(e).forEach(o=>{if(o.startsWith(B)){const r=o.replace(B,"").replace(Ze,"");n[r]=e[o]}}),n},Z=()=>{if(!m())return{};const t=new URLSearchParams(window.location.search);return Q(t)},R=t=>t instanceof URLSearchParams?Y(t):t,et=t=>{const{limit:e=30,userAttributes:n,query:o,noTraverse:r=!1,model:s,apiKey:i,includeRefs:c=!0,locale:a}=t;if(!i)throw new Error("Missing API key");const d=new URL(`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${e}&noTraverse=${r}&includeRefs=${c}${a?`&locale=${a}`:""}`),u={...Z(),...R(t.options||{})},h=S(u);for(const l in h)d.searchParams.set(l,String(h[l]));if(n&&d.searchParams.set("userAttributes",JSON.stringify(n)),o){const l=S({query:o});for(const g in l)d.searchParams.set(g,JSON.stringify(l[g]))}return d};async function T(t){return(await ee({...t,limit:1})).results[0]||null}async function ee(t){const e=et(t),o=await(await q(e.href)).json(),r=t.canTrack!==!1;if(r&&Array.isArray(o.results))for(const s of o.results)await Qe({item:s,canTrack:r});return o}const tt=()=>Promise.resolve().then(()=>Cn).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}),nt={name:"builder-symbol",components:{RenderContent:tt},props:["attributes","symbol","dynamic"],data(){return{fetchedContent:null}},inject:{builderContext:x.key},watch:{onUpdateHook0:{handler(){var e;const t=this.symbol;t&&!t.content&&!this.fetchedContent&&t.model&&((e=this.builderContext)==null?void 0:e.apiKey)&&T({model:t.model,apiKey:this.builderContext.apiKey,query:{id:t.entry}}).then(n=>{this.fetchedContent=n})},immediate:!0}},computed:{className(){var t,e;return[...Object.keys(this.attributes.class),"builder-symbol",(t=this.symbol)!=null&&t.inline?"builder-inline-symbol":void 0,((e=this.symbol)==null?void 0:e.dynamic)||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},contentToUse(){var t;return((t=this.symbol)==null?void 0:t.content)||this.fetchedContent},onUpdateHook0(){return{0:this.symbol,1:this.fetchedContent}}},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 ot=function(){var o,r,s,i,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:Object.values(e.builderContext.registeredComponents),data:{...(o=e.symbol)==null?void 0:o.data,...e.builderContext.state,...(i=(s=(r=e.symbol)==null?void 0:r.content)==null?void 0:s.data)==null?void 0:i.state},model:(c=e.symbol)==null?void 0:c.model,content:e.contentToUse}})],1)},rt=[],st=p(nt,ot,rt,!1,null,null,null,null);const te=st.exports,it={name:"builder-button",props:["attributes","text","link","openLinkInNewTab"]};var at=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-2fnk003dqad"},"button",e.attributes,!1),[e._v(" "+e._s(e.text)+" ")])},ct=[],lt=p(it,at,ct,!1,null,"1e816d57",null,null);const ne=lt.exports,dt={name:"builder-section-component",props:["attributes","maxWidth"]};var ut=function(){var e=this,n=e._self._c;return n("section",e._b({style:{width:"100%",alignSelf:"stretch",flexGrow:"1",boxSizing:"border-box",maxWidth:`${e.maxWidth&&typeof e.maxWidth=="number"?e.maxWidth:1200}px`,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},"section",e.attributes,!1),[e._t("default")],2)},mt=[],pt=p(dt,ut,mt,!1,null,null,null,null);const oe=pt.exports,ht={name:"builder-fragment-component",props:[]};var ft=function(){var e=this,n=e._self._c;return n("span",[e._t("default")],2)},gt=[],bt=p(ht,ft,gt,!1,null,null,null,null);const re=bt.exports,yt={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},C=t=>{const e=t.toString().trim();return`return (${!e.startsWith("function")&&!e.startsWith("(")?"function ":""}${e}).apply(this, arguments)`},vt={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:C(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,a)=>c+a.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}]},_t={name:"Fragment",static:!0,hidden:!0,builtIn:!0,canHaveChildren:!0,noWrap:!0},xt={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:C(t=>{t.delete("srcset"),t.delete("noWebp");function n(i,c=6e4){return new Promise((a,d)=>{const u=document.createElement("img");let h=!1;u.onload=()=>{h=!0,a(u)},u.addEventListener("error",l=>{console.warn("Image load failed",l.error),d(l.error)}),u.src=i,setTimeout(()=>{h||d(new Error("Image load timed out"))},c)})}function o(i){return Math.round(i*1e3)/1e3}const r=t.get("image"),s=t.get("aspectRatio");if(fetch(r).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&t.set("noWebp",!0)}),r&&(!s||s===.7041))return n(r).then(i=>{const c=t.get("aspectRatio");t.get("image")===r&&(!c||c===.7041)&&i.width&&i.height&&(t.set("aspectRatio",o(i.height/i.width)),t.set("height",i.height),t.set("width",i.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}]},Ct={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>"}}}]},kt={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"}]},St={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"}},wt={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}]},It={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:C(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}]},Rt=["text/javascript","application/javascript","application/ecmascript"],Tt=t=>Rt.includes(t.type),$t={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 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(Tt(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 Et=function(){var e=this,n=e._self._c;return n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:e._s(e.content)}})},Ft=[],jt=p($t,Et,Ft,!1,null,null,null,null);const Pt=jt.exports;function Ot(){return m()&&window.self!==window.top}function f(){return Ot()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Bt={name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:f}}};var At=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))},Ut=[],Vt=p(Bt,At,Ut,!1,null,null,null,null);const Wt=Vt.exports,Mt={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},Lt={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 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 Nt=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)}})},zt=[],Kt=p(Lt,Nt,zt,!1,null,null,null,null);const Dt=Kt.exports,Ht={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}]},qt=()=>[{component:z,...vt},{component:K,...xt},{component:Wt,...Mt},{component:D,...St},{component:H,...wt},{component:te,...kt},{component:ne,...yt},{component:oe,...Ct},{component:re,..._t},{component:Pt,...It},{component:Dt,...Ht}];function w({code:t,context:e,state:n,event:o,isExpression:r=!0}){if(t===""){console.warn("Skipping evaluation of empty code block.");return}const s={isEditing:f(),isBrowser:m(),isServer:!m()},c=r&&!(t.includes(";")||t.includes(" return ")||t.trim().startsWith("return "))?`return (${t});`:t;try{return new Function("builder","Builder","state","context","event",c)(s,s,n,e,o)}catch(a){console.warn(`Builder custom code error:
28
28
  While Evaluating:
29
29
  `,c,`
30
- `,a)}}function se(){return!m()||f()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const $=[];function Gt(t,e){return $.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 ie=({component:t,...e})=>({type:"builder.registerComponent",data:Xt(e)}),Jt=t=>typeof t=="function"?C(t):_(t),Xt=({inputs:t,...e})=>({..._(e),inputs:t==null?void 0:t.map(n=>Object.entries(n).reduce((o,[r,s])=>({...o,[r]:Jt(s)}),{}))});function Yt(){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 ae(){return Yt().replace(/-/g,"")}const ce="builderSessionId",Qt=async({canTrack:t})=>{if(!t)return;const e=await G({name:ce,canTrack:t});if(b(e))return e;{const n=Zt();return en({id:n,canTrack:t}),n}},Zt=()=>ae(),en=({id:t,canTrack:e})=>J({name:ce,value:t,canTrack:e}),le=()=>m()&&typeof localStorage<"u"?localStorage:void 0,tn=({key:t,canTrack:e})=>{var n;try{return e?(n=le())==null?void 0:n.getItem(t):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},nn=({key:t,canTrack:e,value:n})=>{var o;try{e&&((o=le())==null||o.setItem(t,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},de="builderVisitorId",on=({canTrack:t})=>{if(!t)return;const e=tn({key:de,canTrack:t});if(b(e))return e;{const n=rn();return sn({id:n,canTrack:t}),n}},rn=()=>ae(),sn=({id:t,canTrack:e})=>nn({key:de,value:t,canTrack:e}),an=()=>{if(m()){const t=new URL(location.href);return t.pathname===""&&(t.pathname="/"),t}else return console.warn("Cannot get location for tracking in non-browser environment"),null},cn=()=>typeof navigator=="object"&&navigator.userAgent||"",ln=()=>{const t=cn(),e={Android(){return t.match(/Android/i)},BlackBerry(){return t.match(/BlackBerry/i)},iOS(){return t.match(/iPhone|iPod/i)},Opera(){return t.match(/Opera Mini/i)},Windows(){return t.match(/IEMobile/i)||t.match(/WPDesktop/i)},any(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()||y==="reactNative"}},n=t.match(/Tablet|iPad/i),o=an();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":e.any()?"mobile":"desktop"}},dn=async({canTrack:t})=>{if(!t)return{visitorId:void 0,sessionId:void 0};const e=await Qt({canTrack:t}),n=on({canTrack:t});return{sessionId:e,visitorId:n}},un=async({type:t,canTrack:e,apiKey:n,metadata:o,...r})=>({type:t,data:{...r,metadata:{url:location.href,...o},...await dn({canTrack:e}),userAttributes:ln(),ownerId:n}});async function I(t){if(!t.apiKey){console.error("[Builder.io]: Missing API key for track call. Please provide your API key.");return}if(!!t.canTrack&&!f()&&!!(m()||y==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await un(t)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(e=>{console.error("Failed to track: ",e)})}const mn=t=>I({...t,canTrack:!0});function A(t){return Math.round(t*1e3)/1e3}const pn=(t,e,n=!0)=>{if(!(t instanceof HTMLElement))return null;let o=n?t:t.parentElement;do{if(!o)return null;if(e(o))return o}while(o=o.parentElement);return null},hn=t=>pn(t,e=>{const n=e.getAttribute("builder-id")||e.id;return Boolean((n==null?void 0:n.indexOf("builder-"))===0)}),U=({event:t,target:e})=>{const n=e.getBoundingClientRect(),o=t.clientX-n.left,r=t.clientY-n.top,s=A(o/n.width),i=A(r/n.height);return{x:s,y:i}},fn=t=>{const e=t.target,n=e&&hn(e),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:e?U({event:t,target:e}):void 0,builderTargetOffset:n?U({event:t,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},gn=()=>Promise.resolve().then(()=>pe).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",t),t}),bn=()=>Promise.resolve().then(()=>require("./render-styles.95a1cf8d.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}),yn={name:"render-content",components:{RenderContentStyles:bn,RenderBlocks:gn},props:["content","data","canTrack","locale","context","customComponents","model","apiKey","includeRefs"],data(){return{forceReRenderCount:0,overrideContent:null,update:0,useBreakpoints:null,canTrackToUse:b(this.canTrack)?this.canTrack:!0,overrideState:{},contextContext:this.context||{},allRegisteredComponents:[...qt(),...$,...this.customComponents||[]].reduce((t,e)=>({...t,[e.name]:e}),{}),httpReqsData:{},clicked:!1}},provide(){const t=this;return{[x.key]:{content:t.useContent,state:t.contentState,context:t.contextContext,apiKey:t.apiKey,registeredComponents:t.allRegisteredComponents}}},mounted(){var t,e;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."),m()){if(f()&&(this.forceReRenderCount=this.forceReRenderCount+1,he(),fe({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{}}),Object.values(this.allRegisteredComponents).forEach(n=>{var r;const o=ie(n);(r=window.parent)==null||r.postMessage(o,"*")}),window.addEventListener("message",this.processMessage),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.useContent){const n=(t=this.useContent)==null?void 0:t.testVariationId,o=(e=this.useContent)==null?void 0:e.id;I({type:"impression",canTrack:this.canTrackToUse,contentId:o,apiKey:this.apiKey,variationId:n!==o?n:void 0})}if(se()){const n=new URL(location.href).searchParams,o=n.get("builder.preview"),r=n.get("apiKey")||n.get("builder.space");o===this.model&&r===this.apiKey&&T({model:this.model,apiKey:this.apiKey}).then(s=>{s&&(this.overrideContent=s)})}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(){m()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{useContent(){var t,e,n,o,r,s,i,c;if(!(!this.content&&!this.overrideContent))return{...this.content,...this.overrideContent,data:{...(t=this.content)==null?void 0:t.data,...this.data,...(e=this.overrideContent)==null?void 0:e.data},meta:{...(n=this.content)==null?void 0:n.meta,...(o=this.overrideContent)==null?void 0:o.meta,breakpoints:this.useBreakpoints||((s=(r=this.overrideContent)==null?void 0:r.meta)==null?void 0:s.breakpoints)||((c=(i=this.content)==null?void 0:i.meta)==null?void 0:c.breakpoints)}}},contentState(){var t,e;return{...(e=(t=this.content)==null?void 0:t.data)==null?void 0:e.state,...this.data,...this.locale?{locale:this.locale}:{},...this.overrideState}},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))&&y!=="reactNative")},onUpdateHook0(){var t,e;return{0:(e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.jsCode,1:this.contentState}},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){var n;const{data:e}=t;if(e)switch(e.type){case"builder.configureSdk":{const o=e.data,{breakpoints:r,contentId:s}=o;if(!s||s!==((n=this.useContent)==null?void 0:n.id))return;this.useBreakpoints=r,this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const o=e.data,r=o.key||o.alias||o.entry||o.modelName,s=o.data;r===this.model&&(this.overrideContent=s,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&&w({code:t,context:this.contextContext,state:this.contentState})},onClick(t){var e,n;if(this.useContent){const o=(e=this.useContent)==null?void 0:e.testVariationId,r=(n=this.useContent)==null?void 0:n.id;I({type:"click",canTrack:this.canTrackToUse,contentId:r,apiKey:this.apiKey,variationId:o!==r?o:void 0,...fn(t),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(t){return t.replace(/{{([^}]+)}}/g,(e,n)=>w({code:n,context:this.contextContext,state:this.contentState}))},handleRequest({url:t,key:e}){q(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]||f())){const i=this.evalExpression(s);this.handleRequest({url:i,key:r})}})},emitStateUpdate(){f()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:this.contentState,ref:{name:this.model}}}))}}};var vn=function(){var o,r,s,i,c,a,d;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,"builder-model":e.model},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=(i=e.useContent)==null?void 0:i.data)==null?void 0:c.customFonts}})]:e._e(),n("render-blocks",{key:e.forceReRenderCount,attrs:{blocks:(d=(a=e.useContent)==null?void 0:a.data)==null?void 0:d.blocks}})],2):e._e()},_n=[],xn=p(yn,vn,_n,!1,null,null,null,null);const ue=xn.exports,Cn=Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"})),kn=()=>Promise.resolve().then(()=>require("./block-styles.426683e4.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.93fcfc84.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}),wn={name:"render-blocks",components:{RenderBlock:Sn,BlockStyles:kn},props:["blocks","parent","path","styleProp"],inject:{builderContext:x.key},computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;f()&&!((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;f()&&!((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 In=function(){var e=this,n=e._self._c;return n("div",{class:e._classStringToObject(e.className+" div-23e8fqt91nf"),style:e.styleProp,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)},Rn=[],Tn=p(wn,In,Rn,!1,null,"7c56f14d",null,null);const me=Tn.exports,pe=Object.freeze(Object.defineProperty({__proto__:null,default:me},Symbol.toStringTag,{value:"Module"})),V={};function $n(t){if(m()){Object.assign(V,t);const e={type:"builder.settingsChange",data:V};parent.postMessage(e,"*")}}exports.BuilderContext=x;exports.Button=ne;exports.Columns=z;exports.Fragment=re;exports.Image=K;exports.Section=oe;exports.Symbol=te;exports.TARGET=y;exports.Text=D;exports.Video=H;exports.components=$;exports.convertSearchParamsToQueryObject=Y;exports.convertStyleMapToCSSArray=N;exports.createCssClass=ye;exports.createRegisterComponentMessage=ie;exports.evaluate=w;exports.fastClone=_;exports.getAllContent=ee;exports.getBuilderSearchParams=Q;exports.getBuilderSearchParamsFromWindow=Z;exports.getContent=T;exports.getMaxWidthQueryForSize=ge;exports.getSizesForBreakpoints=L;exports.isEditing=f;exports.isPreviewing=se;exports.normalizeComponent=p;exports.normalizeSearchParams=R;exports.register=W;exports.registerComponent=Gt;exports.renderBlocks=me;exports.renderContent=ue;exports.setEditorSettings=$n;exports.track=mn;
30
+ `,a)}}function se(){return!m()||f()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const $=[];function Gt(t,e){return $.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 ie=({component:t,...e})=>({type:"builder.registerComponent",data:Xt(e)}),Jt=t=>typeof t=="function"?C(t):_(t),Xt=({inputs:t,...e})=>({..._(e),inputs:t==null?void 0:t.map(n=>Object.entries(n).reduce((o,[r,s])=>({...o,[r]:Jt(s)}),{}))});function Yt(){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 ae(){return Yt().replace(/-/g,"")}const ce="builderSessionId",Qt=async({canTrack:t})=>{if(!t)return;const e=await G({name:ce,canTrack:t});if(b(e))return e;{const n=Zt();return en({id:n,canTrack:t}),n}},Zt=()=>ae(),en=({id:t,canTrack:e})=>J({name:ce,value:t,canTrack:e}),le=()=>m()&&typeof localStorage<"u"?localStorage:void 0,tn=({key:t,canTrack:e})=>{var n;try{return e?(n=le())==null?void 0:n.getItem(t):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},nn=({key:t,canTrack:e,value:n})=>{var o;try{e&&((o=le())==null||o.setItem(t,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},de="builderVisitorId",on=({canTrack:t})=>{if(!t)return;const e=tn({key:de,canTrack:t});if(b(e))return e;{const n=rn();return sn({id:n,canTrack:t}),n}},rn=()=>ae(),sn=({id:t,canTrack:e})=>nn({key:de,value:t,canTrack:e}),an=()=>{if(m()){const t=new URL(location.href);return t.pathname===""&&(t.pathname="/"),t}else return console.warn("Cannot get location for tracking in non-browser environment"),null},cn=()=>typeof navigator=="object"&&navigator.userAgent||"",ln=()=>{const t=cn(),e={Android(){return t.match(/Android/i)},BlackBerry(){return t.match(/BlackBerry/i)},iOS(){return t.match(/iPhone|iPod/i)},Opera(){return t.match(/Opera Mini/i)},Windows(){return t.match(/IEMobile/i)||t.match(/WPDesktop/i)},any(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()||y==="reactNative"}},n=t.match(/Tablet|iPad/i),o=an();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":e.any()?"mobile":"desktop"}},dn=async({canTrack:t})=>{if(!t)return{visitorId:void 0,sessionId:void 0};const e=await Qt({canTrack:t}),n=on({canTrack:t});return{sessionId:e,visitorId:n}},un=async({type:t,canTrack:e,apiKey:n,metadata:o,...r})=>({type:t,data:{...r,metadata:{url:location.href,...o},...await dn({canTrack:e}),userAttributes:ln(),ownerId:n}});async function I(t){if(!t.apiKey){console.error("[Builder.io]: Missing API key for track call. Please provide your API key.");return}if(!!t.canTrack&&!f()&&!!(m()||y==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await un(t)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(e=>{console.error("Failed to track: ",e)})}const mn=t=>I({...t,canTrack:!0});function A(t){return Math.round(t*1e3)/1e3}const pn=(t,e,n=!0)=>{if(!(t instanceof HTMLElement))return null;let o=n?t:t.parentElement;do{if(!o)return null;if(e(o))return o}while(o=o.parentElement);return null},hn=t=>pn(t,e=>{const n=e.getAttribute("builder-id")||e.id;return Boolean((n==null?void 0:n.indexOf("builder-"))===0)}),U=({event:t,target:e})=>{const n=e.getBoundingClientRect(),o=t.clientX-n.left,r=t.clientY-n.top,s=A(o/n.width),i=A(r/n.height);return{x:s,y:i}},fn=t=>{const e=t.target,n=e&&hn(e),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:e?U({event:t,target:e}):void 0,builderTargetOffset:n?U({event:t,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},gn=()=>Promise.resolve().then(()=>pe).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",t),t}),bn=()=>Promise.resolve().then(()=>require("./render-styles.6732290e.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}),yn={name:"render-content",components:{RenderContentStyles:bn,RenderBlocks:gn},props:["content","data","canTrack","locale","context","customComponents","model","apiKey","includeRefs"],data(){return{forceReRenderCount:0,overrideContent:null,update:0,useBreakpoints:null,canTrackToUse:b(this.canTrack)?this.canTrack:!0,overrideState:{},contextContext:this.context||{},allRegisteredComponents:[...qt(),...$,...this.customComponents||[]].reduce((t,e)=>({...t,[e.name]:e}),{}),httpReqsData:{},clicked:!1}},provide(){const t=this;return{[x.key]:{content:t.useContent,state:t.contentState,context:t.contextContext,apiKey:t.apiKey,registeredComponents:t.allRegisteredComponents}}},mounted(){var t,e;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."),m()){if(f()&&(this.forceReRenderCount=this.forceReRenderCount+1,he(),fe({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{}}),Object.values(this.allRegisteredComponents).forEach(n=>{var r;const o=ie(n);(r=window.parent)==null||r.postMessage(o,"*")}),window.addEventListener("message",this.processMessage),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.useContent){const n=(t=this.useContent)==null?void 0:t.testVariationId,o=(e=this.useContent)==null?void 0:e.id;I({type:"impression",canTrack:this.canTrackToUse,contentId:o,apiKey:this.apiKey,variationId:n!==o?n:void 0})}if(se()){const n=new URL(location.href).searchParams,o=n.get("builder.preview"),r=n.get("apiKey")||n.get("builder.space");o===this.model&&r===this.apiKey&&T({model:this.model,apiKey:this.apiKey}).then(s=>{s&&(this.overrideContent=s)})}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(){m()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{useContent(){var t,e,n,o,r,s,i,c;if(!(!this.content&&!this.overrideContent))return{...this.content,...this.overrideContent,data:{...(t=this.content)==null?void 0:t.data,...this.data,...(e=this.overrideContent)==null?void 0:e.data},meta:{...(n=this.content)==null?void 0:n.meta,...(o=this.overrideContent)==null?void 0:o.meta,breakpoints:this.useBreakpoints||((s=(r=this.overrideContent)==null?void 0:r.meta)==null?void 0:s.breakpoints)||((c=(i=this.content)==null?void 0:i.meta)==null?void 0:c.breakpoints)}}},contentState(){var t,e;return{...(e=(t=this.content)==null?void 0:t.data)==null?void 0:e.state,...this.data,...this.locale?{locale:this.locale}:{},...this.overrideState}},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))&&y!=="reactNative")},onUpdateHook0(){var t,e;return{0:(e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.jsCode,1:this.contentState}},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){var n;const{data:e}=t;if(e)switch(e.type){case"builder.configureSdk":{const o=e.data,{breakpoints:r,contentId:s}=o;if(!s||s!==((n=this.useContent)==null?void 0:n.id))return;this.useBreakpoints=r,this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const o=e.data,r=o.key||o.alias||o.entry||o.modelName,s=o.data;r===this.model&&(this.overrideContent=s,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&&w({code:t,context:this.contextContext,state:this.contentState})},onClick(t){var e,n;if(this.useContent){const o=(e=this.useContent)==null?void 0:e.testVariationId,r=(n=this.useContent)==null?void 0:n.id;I({type:"click",canTrack:this.canTrackToUse,contentId:r,apiKey:this.apiKey,variationId:o!==r?o:void 0,...fn(t),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(t){return t.replace(/{{([^}]+)}}/g,(e,n)=>w({code:n,context:this.contextContext,state:this.contentState}))},handleRequest({url:t,key:e}){q(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]||f())){const i=this.evalExpression(s);this.handleRequest({url:i,key:r})}})},emitStateUpdate(){f()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:this.contentState,ref:{name:this.model}}}))}}};var vn=function(){var o,r,s,i,c,a,d;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,"builder-model":e.model},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=(i=e.useContent)==null?void 0:i.data)==null?void 0:c.customFonts}})]:e._e(),n("render-blocks",{key:e.forceReRenderCount,attrs:{blocks:(d=(a=e.useContent)==null?void 0:a.data)==null?void 0:d.blocks}})],2):e._e()},_n=[],xn=p(yn,vn,_n,!1,null,null,null,null);const ue=xn.exports,Cn=Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"})),kn=()=>Promise.resolve().then(()=>require("./block-styles.c799c71a.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.b97311ac.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}),wn={name:"render-blocks",components:{RenderBlock:Sn,BlockStyles:kn},props:["blocks","parent","path","styleProp"],inject:{builderContext:x.key},computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;f()&&!((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;f()&&!((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 In=function(){var e=this,n=e._self._c;return n("div",{class:e._classStringToObject(e.className+" div-23e8fqt91nf"),style:e.styleProp,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)},Rn=[],Tn=p(wn,In,Rn,!1,null,"7c56f14d",null,null);const me=Tn.exports,pe=Object.freeze(Object.defineProperty({__proto__:null,default:me},Symbol.toStringTag,{value:"Module"})),V={};function $n(t){if(m()){Object.assign(V,t);const e={type:"builder.settingsChange",data:V};parent.postMessage(e,"*")}}exports.BuilderContext=x;exports.Button=ne;exports.Columns=z;exports.Fragment=re;exports.Image=K;exports.Section=oe;exports.Symbol=te;exports.TARGET=y;exports.Text=D;exports.Video=H;exports.components=$;exports.convertSearchParamsToQueryObject=Y;exports.convertStyleMapToCSSArray=N;exports.createCssClass=ye;exports.createRegisterComponentMessage=ie;exports.evaluate=w;exports.fastClone=_;exports.getAllContent=ee;exports.getBuilderSearchParams=Q;exports.getBuilderSearchParamsFromWindow=Z;exports.getContent=T;exports.getMaxWidthQueryForSize=ge;exports.getSizesForBreakpoints=L;exports.isEditing=f;exports.isPreviewing=se;exports.normalizeComponent=p;exports.normalizeSearchParams=R;exports.register=W;exports.registerComponent=Gt;exports.renderBlocks=me;exports.renderContent=ue;exports.setEditorSettings=$n;exports.track=mn;
@@ -96,7 +96,7 @@ const Y = (t = {}) => {
96
96
  }
97
97
  }
98
98
  })));
99
- }, w = (t) => JSON.parse(JSON.stringify(t)), P = {
99
+ }, S = (t) => JSON.parse(JSON.stringify(t)), P = {
100
100
  small: {
101
101
  min: 320,
102
102
  default: 321,
@@ -112,8 +112,8 @@ const Y = (t = {}) => {
112
112
  default: 991,
113
113
  max: 1200
114
114
  }
115
- }, Sn = (t, e = P) => `@media (max-width: ${e[t].max}px)`, Q = ({ small: t, medium: e }) => {
116
- const n = w(P);
115
+ }, wn = (t, e = P) => `@media (max-width: ${e[t].max}px)`, Q = ({ small: t, medium: e }) => {
116
+ const n = S(P);
117
117
  if (!t || !e)
118
118
  return n;
119
119
  const o = Math.floor(t / 2);
@@ -154,7 +154,7 @@ const Y = (t = {}) => {
154
154
  "Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
155
155
  t
156
156
  ), t;
157
- }), ne = () => import("./render-inlined-styles.c4ede85b.js").then((t) => t.default).catch((t) => {
157
+ }), ne = () => import("./render-inlined-styles.734fe2c9.js").then((t) => t.default).catch((t) => {
158
158
  throw console.error(
159
159
  "Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
160
160
  t
@@ -312,12 +312,12 @@ function p(t, e, n, o, s, r, i, c) {
312
312
  var se = function() {
313
313
  var e = this, n = e._self._c;
314
314
  return n("div", { class: e._classStringToObject(
315
- `builder-columns ${e.builderBlock.id}-breakpoints div-29wpyomtntv`
315
+ `builder-columns ${e.builderBlock.id}-breakpoints div-t9spj7joih`
316
316
  ), style: {
317
317
  ...e.TARGET === "reactNative" ? e.reactNativeColumnsStyles : {},
318
318
  ...e.columnsCssVars
319
319
  } }, [e.TARGET !== "reactNative" ? [n("render-inlined-styles", { attrs: { styles: e.columnsStyles } })] : e._e(), e._l(e.columns, function(o, s) {
320
- return n("div", { key: s, staticClass: "builder-column div-29wpyomtntv-2", style: {
320
+ return n("div", { key: s, staticClass: "builder-column div-t9spj7joih-2", style: {
321
321
  width: e.getColumnCssWidth(s),
322
322
  marginLeft: `${s === 0 ? 0 : e.getGutterSize()}px`,
323
323
  ...e.TARGET === "reactNative" ? e.reactNativeColumnStyles : {},
@@ -332,7 +332,7 @@ var se = function() {
332
332
  re,
333
333
  !1,
334
334
  null,
335
- "a89ca538",
335
+ "72d9045b",
336
336
  null,
337
337
  null
338
338
  );
@@ -429,21 +429,21 @@ var ue = function() {
429
429
  var o, s, r, i;
430
430
  var e = this, n = e._self._c;
431
431
  return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
432
- "builder-image" + (e.className ? " " + e.className : "") + " img-1j57pcfa436"
432
+ "builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
433
433
  ), style: {
434
434
  objectPosition: e.backgroundPosition || "center",
435
435
  objectFit: e.backgroundSize || "cover",
436
436
  ...e.aspectRatioCss
437
- }, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1j57pcfa436", style: {
437
+ }, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
438
438
  paddingTop: e.aspectRatio * 100 + "%"
439
- } })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-1j57pcfa436-2" }, [e._t("default")], 2)] : e._e()], 2);
439
+ } })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [e._t("default")], 2)] : e._e()], 2);
440
440
  }, me = [], pe = /* @__PURE__ */ p(
441
441
  de,
442
442
  ue,
443
443
  me,
444
444
  !1,
445
445
  null,
446
- "76004f06",
446
+ "d14c6f82",
447
447
  null,
448
448
  null
449
449
  );
@@ -527,7 +527,7 @@ var xe = function() {
527
527
  null,
528
528
  null
529
529
  );
530
- const we = ke.exports, Se = Symbol(), S = {
530
+ const Se = ke.exports, we = Symbol(), w = {
531
531
  Builder: {
532
532
  content: null,
533
533
  context: {},
@@ -536,7 +536,7 @@ const we = ke.exports, Se = Symbol(), S = {
536
536
  registeredComponents: {},
537
537
  inheritedStyles: {}
538
538
  },
539
- key: Se
539
+ key: we
540
540
  };
541
541
  function Ie() {
542
542
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
@@ -740,7 +740,7 @@ const De = () => Promise.resolve().then(() => bn).then((t) => t.default).catch((
740
740
  return { fetchedContent: null };
741
741
  },
742
742
  inject: {
743
- builderContext: S.key
743
+ builderContext: w.key
744
744
  },
745
745
  watch: {
746
746
  onUpdateHook0: {
@@ -819,14 +819,14 @@ const Xe = Je.exports, Ye = {
819
819
  };
820
820
  var Qe = function() {
821
821
  var e = this, n = e._self._c;
822
- 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-1pl23ac79ld" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
822
+ 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-2fnk003dqad" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
823
823
  }, Ze = [], et = /* @__PURE__ */ p(
824
824
  Ye,
825
825
  Qe,
826
826
  Ze,
827
827
  !1,
828
828
  null,
829
- "9d610bd1",
829
+ "1e816d57",
830
830
  null,
831
831
  null
832
832
  );
@@ -1564,13 +1564,13 @@ const ut = dt.exports, mt = {
1564
1564
  }
1565
1565
  }
1566
1566
  };
1567
- var wt = function() {
1567
+ var St = function() {
1568
1568
  var e = this, n = e._self._c;
1569
1569
  return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
1570
- }, St = [], It = /* @__PURE__ */ p(
1570
+ }, wt = [], It = /* @__PURE__ */ p(
1571
1571
  kt,
1572
- wt,
1573
1572
  St,
1573
+ wt,
1574
1574
  !1,
1575
1575
  null,
1576
1576
  null,
@@ -1725,7 +1725,7 @@ const Wt = Vt.exports, Lt = {
1725
1725
  { component: he, ...ft },
1726
1726
  { component: Ot, ...At },
1727
1727
  { component: ve, ...yt },
1728
- { component: we, ...vt },
1728
+ { component: Se, ...vt },
1729
1729
  { component: Xe, ...bt },
1730
1730
  { component: tt, ...mt },
1731
1731
  { component: it, ...gt },
@@ -1785,11 +1785,11 @@ const zt = ({
1785
1785
  }) => ({
1786
1786
  type: "builder.registerComponent",
1787
1787
  data: Dt(e)
1788
- }), Kt = (t) => typeof t == "function" ? _(t) : w(t), Dt = ({
1788
+ }), Kt = (t) => typeof t == "function" ? _(t) : S(t), Dt = ({
1789
1789
  inputs: t,
1790
1790
  ...e
1791
1791
  }) => ({
1792
- ...w(e),
1792
+ ...S(e),
1793
1793
  inputs: t == null ? void 0 : t.map(
1794
1794
  (n) => Object.entries(n).reduce(
1795
1795
  (o, [s, r]) => ({
@@ -1993,7 +1993,7 @@ const an = (t, e, n = !0) => {
1993
1993
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1994
1994
  t
1995
1995
  ), t;
1996
- }), un = () => import("./render-styles.78a78d13.js").then((t) => t.default).catch((t) => {
1996
+ }), un = () => import("./render-styles.0b296b86.js").then((t) => t.default).catch((t) => {
1997
1997
  throw console.error(
1998
1998
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1999
1999
  t
@@ -2042,7 +2042,7 @@ const an = (t, e, n = !0) => {
2042
2042
  provide() {
2043
2043
  const t = this;
2044
2044
  return {
2045
- [S.key]: {
2045
+ [w.key]: {
2046
2046
  content: t.useContent,
2047
2047
  state: t.contentState,
2048
2048
  context: t.contextContext,
@@ -2287,12 +2287,12 @@ var pn = function() {
2287
2287
  const gn = fn.exports, bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2288
2288
  __proto__: null,
2289
2289
  default: gn
2290
- }, Symbol.toStringTag, { value: "Module" })), yn = () => import("./block-styles.d52d65f7.js").then((t) => t.default).catch((t) => {
2290
+ }, Symbol.toStringTag, { value: "Module" })), yn = () => import("./block-styles.062b71eb.js").then((t) => t.default).catch((t) => {
2291
2291
  throw console.error(
2292
2292
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
2293
2293
  t
2294
2294
  ), t;
2295
- }), vn = () => import("./render-block.5069cc94.js").then((t) => t.default).catch((t) => {
2295
+ }), vn = () => import("./render-block.74bfd4ea.js").then((t) => t.default).catch((t) => {
2296
2296
  throw console.error(
2297
2297
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
2298
2298
  t
@@ -2302,7 +2302,7 @@ const gn = fn.exports, bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
2302
2302
  components: { RenderBlock: vn, BlockStyles: yn },
2303
2303
  props: ["blocks", "parent", "path", "styleProp"],
2304
2304
  inject: {
2305
- builderContext: S.key
2305
+ builderContext: w.key
2306
2306
  },
2307
2307
  computed: {
2308
2308
  className() {
@@ -2371,9 +2371,9 @@ var xn = function() {
2371
2371
  null,
2372
2372
  null
2373
2373
  );
2374
- const wn = kn.exports, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2374
+ const Sn = kn.exports, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2375
2375
  __proto__: null,
2376
- default: wn
2376
+ default: Sn
2377
2377
  }, Symbol.toStringTag, { value: "Module" })), B = {};
2378
2378
  function $n(t) {
2379
2379
  if (m()) {
@@ -2386,23 +2386,23 @@ function $n(t) {
2386
2386
  }
2387
2387
  }
2388
2388
  export {
2389
- S as B,
2389
+ w as B,
2390
2390
  ae as C,
2391
2391
  ut as F,
2392
2392
  he as I,
2393
2393
  Xe as S,
2394
2394
  v as T,
2395
- we as V,
2396
- Sn as a,
2395
+ Se as V,
2396
+ wn as a,
2397
2397
  ee as b,
2398
2398
  In as c,
2399
2399
  ve as d,
2400
2400
  j as e,
2401
- w as f,
2401
+ S as f,
2402
2402
  Q as g,
2403
2403
  tt as h,
2404
2404
  it as i,
2405
- wn as j,
2405
+ Sn as j,
2406
2406
  f as k,
2407
2407
  Mt as l,
2408
2408
  z as m,
@@ -1,5 +1,5 @@
1
- import { e as l, T as m, b as u, n as d } from "./index.3403bf5e.js";
2
- import { g as p } from "./get-processed-block.b1e9044b.js";
1
+ import { e as l, T as m, b as u, n as d } from "./index.b2edb9b2.js";
2
+ import { g as p } from "./get-processed-block.44306844.js";
3
3
  const h = (t) => `v-on:${t.toLowerCase()}`, k = (t, e) => (n) => l({
4
4
  code: t,
5
5
  context: e.context,
@@ -128,17 +128,17 @@ const B = [
128
128
  },
129
129
  block: r
130
130
  }));
131
- }, w = () => import("./block-styles.d52d65f7.js").then((t) => t.default).catch((t) => {
131
+ }, w = () => import("./block-styles.062b71eb.js").then((t) => t.default).catch((t) => {
132
132
  throw console.error(
133
133
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
134
134
  t
135
135
  ), t;
136
- }), P = () => import("./render-repeated-block.88a83bb3.js").then((t) => t.default).catch((t) => {
136
+ }), P = () => import("./render-repeated-block.e1d94c10.js").then((t) => t.default).catch((t) => {
137
137
  throw console.error(
138
138
  "Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
139
139
  t
140
140
  ), t;
141
- }), T = () => import("./render-component.5e59a26d.js").then((t) => t.default).catch((t) => {
141
+ }), T = () => import("./render-component.b325feac.js").then((t) => t.default).catch((t) => {
142
142
  throw console.error(
143
143
  "Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
144
144
  t
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.57d3bafb.cjs"),d=require("./get-processed-block.25e77989.cjs"),u=e=>`v-on:${e.toLowerCase()}`,p=(e,t)=>n=>c.evaluate({code:e,context:t.context,state:t.state,event:n,isExpression:!1});function m(e){var r;const t={},n=(r=e.block.actions)!=null?r:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];t[u(o)]=p(s,e)}return t}function h(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}function k(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\\s+/);for(const r of n)t[r]=!0;return t}function f(e){return e.class=k(e.class),e}function b(e){var n;const t={...e.properties,"builder-id":e.id,style:x(e.style),class:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return f(t)}function x(e){if(!!e)switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return c.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":return e}}function g(e){return e.tagName||"div"}const y=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],v=e=>typeof e=="string"&&y.includes(e.toLowerCase()),C=({block:e,context:t})=>{var o;const n=(o=d.getProcessedBlock({block:e,state:t.state,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:o.name;if(!n)return null;const r=t.registeredComponents[n];if(r)return r;console.warn(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.59a0624f.cjs"),u=require("./get-processed-block.837e0313.cjs"),d=e=>`v-on:${e.toLowerCase()}`,p=(e,t)=>n=>s.evaluate({code:e,context:t.context,state:t.state,event:n,isExpression:!1});function m(e){var r;const t={},n=(r=e.block.actions)!=null?r:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const c=n[o];t[d(o)]=p(c,e)}return t}function h(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}function k(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\\s+/);for(const r of n)t[r]=!0;return t}function f(e){return e.class=k(e.class),e}function b(e){var n;const t={...e.properties,"builder-id":e.id,style:x(e.style),class:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return f(t)}function x(e){if(!!e)switch(s.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return s.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":return e}}function g(e){return e.tagName||"div"}const y=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],v=e=>typeof e=="string"&&y.includes(e.toLowerCase()),C=({block:e,context:t})=>{var o;const n=(o=u.getProcessedBlock({block:e,state:t.state,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:o.name;if(!n)return null;const r=t.registeredComponents[n];if(r)return r;console.warn(`
2
2
  Could not find a registered component named "${n}".
3
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},B=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=c.evaluate({code:n.collection,state:t.state,context:t.context});if(!Array.isArray(o))return;const s=n.collection.split(".").pop(),i=n.itemName||(s?s+"Item":"item");return o.map((a,l)=>({context:{...t,state:{...t.state,$index:l,$item:a,[i]:a,[`$${i}Index`]:l}},block:r}))},_=()=>Promise.resolve().then(()=>require("./block-styles.426683e4.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),E=()=>Promise.resolve().then(()=>require("./render-repeated-block.82ac5fdf.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}),P=()=>Promise.resolve().then(()=>require("./render-component.697eb0f0.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),R={name:"render-block",components:{RenderComponent:P,RenderRepeatedBlock:E,BlockStyles:_},props:["block","context"],data(){return{component:C({block:this.block,context:this.context}),repeatItemData:B({block:this.block,context:this.context}),isEmptyHtmlElement:v}},computed:{tag(){return g(this.useBlock)},useBlock(){return this.repeatItemData?this.block:d.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},actions(){return m({block:this.useBlock,state:this.context.state,context:this.context.context})},attributes(){return{...b(this.useBlock)}},renderComponentProps(){var e,t,n,r,o,s;return{blockChildren:(e=this.useBlock.children)!=null?e:[],componentRef:(t=this.component)==null?void 0:t.component,componentOptions:{...h(this.useBlock),...(n=this.component)!=null&&n.noWrap?{attributes:{...this.attributes,...this.actions}}:{},customBreakpoints:(s=(o=(r=this.childrenContext)==null?void 0:r.content)==null?void 0:o.meta)==null?void 0:s.breakpoints},context:this.childrenContext}},childrenWithoutParentComponent(){var t,n;return!((t=this.component)!=null&&t.component)&&!this.repeatItemData?(n=this.useBlock.children)!=null?n:[]:[]},childrenContext(){const e=()=>({});return{apiKey:this.context.apiKey,state:this.context.state,content:this.context.content,context:this.context.context,registeredComponents:this.context.registeredComponents,inheritedStyles:e()}}}};var w=function(){var r;var t=this,n=t._self._c;return Boolean(!((r=t.component)!=null&&r.noWrap))?t.isEmptyHtmlElement(t.tag)?n(t.tag,t._b({tag:"component"},"component",{...t.attributes,...t.actions},!1)):!t.isEmptyHtmlElement(t.tag)&&t.repeatItemData?n("div",{staticClass:"vue2-root-element-workaround"},t._l(t.repeatItemData,function(o,s){return n("render-repeated-block",{key:s,attrs:{repeatContext:o.context,block:o.block}})}),1):n(t.tag,t._b({tag:"component"},"component",{...t.attributes,...t.actions},!1),[n("render-component",t._b({},"render-component",t.renderComponentProps,!1)),t._l(t.childrenWithoutParentComponent,function(o,s){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:t.childrenContext}})}),t._l(t.childrenWithoutParentComponent,function(o,s){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:t.childrenContext}})})],2):n("render-component",t._b({},"render-component",t.renderComponentProps,!1))},S=[],j=c.normalizeComponent(R,w,S,!1,null,null,null,null);const T=j.exports;exports.default=T;
3
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},B=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=s.evaluate({code:n.collection,state:t.state,context:t.context});if(!Array.isArray(o))return;const c=n.collection.split(".").pop(),i=n.itemName||(c?c+"Item":"item");return o.map((a,l)=>({context:{...t,state:{...t.state,$index:l,$item:a,[i]:a,[`$${i}Index`]:l}},block:r}))},_=()=>Promise.resolve().then(()=>require("./block-styles.c799c71a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),E=()=>Promise.resolve().then(()=>require("./render-repeated-block.bbbfafcc.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}),P=()=>Promise.resolve().then(()=>require("./render-component.e59489c1.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),R={name:"render-block",components:{RenderComponent:P,RenderRepeatedBlock:E,BlockStyles:_},props:["block","context"],data(){return{component:C({block:this.block,context:this.context}),repeatItemData:B({block:this.block,context:this.context}),isEmptyHtmlElement:v}},computed:{tag(){return g(this.useBlock)},useBlock(){return this.repeatItemData?this.block:u.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},actions(){return m({block:this.useBlock,state:this.context.state,context:this.context.context})},attributes(){return{...b(this.useBlock)}},renderComponentProps(){var e,t,n,r,o,c;return{blockChildren:(e=this.useBlock.children)!=null?e:[],componentRef:(t=this.component)==null?void 0:t.component,componentOptions:{...h(this.useBlock),...(n=this.component)!=null&&n.noWrap?{attributes:{...this.attributes,...this.actions}}:{},customBreakpoints:(c=(o=(r=this.childrenContext)==null?void 0:r.content)==null?void 0:o.meta)==null?void 0:c.breakpoints},context:this.childrenContext}},childrenWithoutParentComponent(){var t,n;return!((t=this.component)!=null&&t.component)&&!this.repeatItemData?(n=this.useBlock.children)!=null?n:[]:[]},childrenContext(){const e=()=>({});return{apiKey:this.context.apiKey,state:this.context.state,content:this.context.content,context:this.context.context,registeredComponents:this.context.registeredComponents,inheritedStyles:e()}}}};var w=function(){var r;var t=this,n=t._self._c;return Boolean(!((r=t.component)!=null&&r.noWrap))?t.isEmptyHtmlElement(t.tag)?n(t.tag,t._b({tag:"component"},"component",{...t.attributes,...t.actions},!1)):!t.isEmptyHtmlElement(t.tag)&&t.repeatItemData?n("div",{staticClass:"vue2-root-element-workaround"},t._l(t.repeatItemData,function(o,c){return n("render-repeated-block",{key:c,attrs:{repeatContext:o.context,block:o.block}})}),1):n(t.tag,t._b({tag:"component"},"component",{...t.attributes,...t.actions},!1),[n("render-component",t._b({},"render-component",t.renderComponentProps,!1)),t._l(t.childrenWithoutParentComponent,function(o,c){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:t.childrenContext}})}),t._l(t.childrenWithoutParentComponent,function(o,c){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:t.childrenContext}})})],2):n("render-component",t._b({},"render-component",t.renderComponentProps,!1))},S=[],j=s.normalizeComponent(R,w,S,!1,null,null,null,null);const T=j.exports;exports.default=T;
@@ -1,10 +1,10 @@
1
- import { n as c } from "./index.3403bf5e.js";
2
- const l = () => import("./block-styles.d52d65f7.js").then((o) => o.default).catch((o) => {
1
+ import { n as c } from "./index.b2edb9b2.js";
2
+ const l = () => import("./block-styles.062b71eb.js").then((o) => o.default).catch((o) => {
3
3
  throw console.error(
4
4
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
5
5
  o
6
6
  ), o;
7
- }), s = () => import("./render-block.5069cc94.js").then((o) => o.default).catch((o) => {
7
+ }), s = () => import("./render-block.74bfd4ea.js").then((o) => o.default).catch((o) => {
8
8
  throw console.error(
9
9
  "Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
10
10
  o