@builder.io/sdk-vue 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.5d12dd48.cjs → block-styles.18ca317b.cjs} +1 -1
  3. package/packages/_vue2/dist/{block-styles.6046e541.js → block-styles.69ca115c.js} +4 -4
  4. package/packages/_vue2/dist/{css.1c33bc00.cjs → css.24c082d4.cjs} +1 -1
  5. package/packages/{_vue3/dist/css.136ed67a.js → _vue2/dist/css.ce776b44.js} +2 -2
  6. package/packages/{_vue3/dist/evaluate.38cae9b6.js → _vue2/dist/evaluate.8238dbc9.js} +1 -1
  7. package/packages/_vue2/dist/{evaluate.1f3c9eb2.cjs → evaluate.cff086ca.cjs} +1 -1
  8. package/packages/_vue2/dist/{index.d1a8c547.cjs → index.c16f4cca.cjs} +8 -8
  9. package/packages/_vue2/dist/{index.75296c8a.js → index.e2db82e0.js} +28 -27
  10. package/packages/_vue2/dist/{render-block.0c043cce.js → render-block.0f23cd7e.js} +6 -6
  11. package/packages/_vue2/dist/{render-block.aa8d982e.cjs → render-block.954cc390.cjs} +2 -2
  12. package/packages/_vue2/dist/{render-component.d72cfa86.js → render-component.74280c04.js} +3 -3
  13. package/packages/_vue2/dist/render-component.e8047ef5.cjs +1 -0
  14. package/packages/_vue2/dist/{render-content.a8742da7.js → render-content.672eabd9.js} +5 -5
  15. package/packages/_vue2/dist/{render-content.0b8e6a43.cjs → render-content.702f0387.cjs} +1 -1
  16. package/packages/_vue2/dist/{render-inlined-styles.80c83f3f.cjs → render-inlined-styles.2c0cf85b.cjs} +1 -1
  17. package/packages/_vue2/dist/{render-inlined-styles.57cb3887.js → render-inlined-styles.ac06208e.js} +1 -1
  18. package/packages/_vue2/dist/{render-repeated-block.aeeee917.cjs → render-repeated-block.5740965b.cjs} +1 -1
  19. package/packages/_vue2/dist/{render-repeated-block.7a35249f.js → render-repeated-block.c40e7c25.js} +2 -2
  20. package/packages/_vue2/dist/{render-styles.0e5b622f.js → render-styles.af4e2d5a.js} +2 -2
  21. package/packages/_vue2/dist/{render-styles.189908f8.cjs → render-styles.e6e62ba1.cjs} +2 -2
  22. package/packages/_vue2/dist/sdk.cjs +1 -1
  23. package/packages/_vue2/dist/sdk.js +11 -10
  24. package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
  25. package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
  26. package/packages/_vue2/dist/src/index.d.ts +1 -0
  27. package/packages/_vue3/dist/{block-styles.bce8f3cd.js → block-styles.7969d695.js} +4 -4
  28. package/packages/_vue3/dist/{block-styles.10cf87f2.cjs → block-styles.e3f09eb7.cjs} +1 -1
  29. package/packages/_vue3/dist/{css.ecfa9f0c.cjs → css.5cacc3c3.cjs} +4 -4
  30. package/packages/{_vue2/dist/css.6d40adbf.js → _vue3/dist/css.7fe37cb4.js} +2 -2
  31. package/packages/{_vue2/dist/evaluate.9b61c455.js → _vue3/dist/evaluate.975fa4d3.js} +1 -1
  32. package/packages/_vue3/dist/{evaluate.e68b2bb7.cjs → evaluate.9a614eea.cjs} +1 -1
  33. package/packages/_vue3/dist/{index.b0a65841.cjs → index.3f716812.cjs} +7 -7
  34. package/packages/_vue3/dist/{index.32c5f4e2.js → index.cdd37dcf.js} +11 -10
  35. package/packages/_vue3/dist/{render-block.d226379d.js → render-block.348e561a.js} +6 -6
  36. package/packages/_vue3/dist/{render-block.9e2345a9.cjs → render-block.d1c4ccaa.cjs} +2 -2
  37. package/packages/_vue3/dist/{render-component.b3f51b9c.cjs → render-component.788543b4.cjs} +1 -1
  38. package/packages/_vue3/dist/{render-component.b49ee7fc.js → render-component.9bd5c435.js} +3 -3
  39. package/packages/_vue3/dist/{render-content.03e6b41b.js → render-content.0423df8b.js} +5 -5
  40. package/packages/_vue3/dist/{render-content.e7b1a19e.cjs → render-content.17e9b187.cjs} +1 -1
  41. package/packages/_vue3/dist/{render-inlined-styles.00a6f102.js → render-inlined-styles.49a121f8.js} +1 -1
  42. package/packages/_vue3/dist/{render-inlined-styles.03a0b90a.cjs → render-inlined-styles.528fb5cd.cjs} +1 -1
  43. package/packages/_vue3/dist/{render-repeated-block.671f867f.cjs → render-repeated-block.04301799.cjs} +1 -1
  44. package/packages/_vue3/dist/{render-repeated-block.a26cf553.js → render-repeated-block.35a0d813.js} +2 -2
  45. package/packages/_vue3/dist/{render-styles.665ea958.js → render-styles.3411b577.js} +2 -2
  46. package/packages/_vue3/dist/{render-styles.90c0cc7c.cjs → render-styles.b4509dd3.cjs} +2 -2
  47. package/packages/_vue3/dist/sdk.cjs +1 -1
  48. package/packages/_vue3/dist/sdk.js +11 -10
  49. package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
  50. package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
  51. package/packages/_vue3/dist/src/index.d.ts +1 -0
  52. package/packages/_vue2/dist/render-component.89838d4a.cjs +0 -1
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "workspaces": [
5
5
  "packages/*"
6
6
  ],
7
- "version": "0.4.0",
7
+ "version": "0.4.1",
8
8
  "main": "./packages/_vue2/dist/sdk.js",
9
9
  "module": "./packages/_vue2/dist/sdk.js",
10
10
  "type": "module",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),s=require("./index.d1a8c547.cjs"),r=require("./css.1c33bc00.cjs");require("./evaluate.1f3c9eb2.cjs");const S=()=>Promise.resolve().then(()=>require("./render-inlined-styles.80c83f3f.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}),y=h.defineComponent({name:"block-styles",components:{RenderInlinedStyles:S},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{useBlock(){return r.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return s.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:s.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var a;const e=this.useBlock.responsiveStyles,t=this.context.content,o=s.getSizesForBreakpoints(((a=t==null?void 0:t.meta)==null?void 0:a.breakpoints)||{}),c=e==null?void 0:e.large,l=e==null?void 0:e.medium,i=e==null?void 0:e.small,n=this.useBlock.id;if(!n)return"";const u=c?r.createCssClass({className:n,styles:c}):"",d=l?r.createCssClass({className:n,styles:l,mediaQuery:s.getMaxWidthQueryForSize("medium",o)}):"",m=i?r.createCssClass({className:n,styles:i,mediaQuery:s.getMaxWidthQueryForSize("small",o)}):"";return[u,d,m].join(" ")}}});var k=function(){var t=this,o=t._self._c;return t._self._setupProxy,t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?o("render-inlined-styles",{attrs:{styles:t.css}}):t._e()},f=[],p=s.normalizeComponent(y,k,f,!1,null,null,null,null);const _=p.exports;exports.default=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),s=require("./index.c16f4cca.cjs"),c=require("./css.24c082d4.cjs");require("./evaluate.cff086ca.cjs");const S=()=>Promise.resolve().then(()=>require("./render-inlined-styles.2c0cf85b.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}),y=h.defineComponent({name:"block-styles",components:{RenderInlinedStyles:S},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{useBlock(){return c.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return s.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:s.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var a;const e=this.useBlock.responsiveStyles,t=this.context.content,o=s.getSizesForBreakpoints(((a=t==null?void 0:t.meta)==null?void 0:a.breakpoints)||{}),r=e==null?void 0:e.large,l=e==null?void 0:e.medium,i=e==null?void 0:e.small,n=this.useBlock.id;if(!n)return"";const u=r?c.createCssClass({className:n,styles:r}):"",d=l?c.createCssClass({className:n,styles:l,mediaQuery:s.getMaxWidthQueryForSize("medium",o)}):"",m=i?c.createCssClass({className:n,styles:i,mediaQuery:s.getMaxWidthQueryForSize("small",o)}):"";return[u,d,m].join(" ")}}});var f=function(){var t=this,o=t._self._c;return t._self._setupProxy,t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?o("render-inlined-styles",{attrs:{styles:t.css}}):t._e()},k=[],p=s.normalizeComponent(y,f,k,!1,null,null,null,null);const _=p.exports;exports.default=_;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as p } from "vue";
2
- import { T as S, c as i, g as k, a as m, n as y } from "./index.75296c8a.js";
3
- import { g as f, c as n } from "./css.6d40adbf.js";
4
- import "./evaluate.9b61c455.js";
5
- const _ = () => import("./render-inlined-styles.57cb3887.js").then((t) => t.default).catch((t) => {
2
+ import { T as S, c as i, g as k, a as m, n as y } from "./index.e2db82e0.js";
3
+ import { g as f, c as n } from "./css.ce776b44.js";
4
+ import "./evaluate.8238dbc9.js";
5
+ const _ = () => import("./render-inlined-styles.ac06208e.js").then((t) => t.default).catch((t) => {
6
6
  throw console.error(
7
7
  "Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
8
8
  t
@@ -1,4 +1,4 @@
1
- "use strict";const f=require("./evaluate.1f3c9eb2.cjs"),a=require("./index.d1a8c547.cjs"),p=(e,t,n)=>{if(Object(e)!==e)return e;const s=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return s.slice(0,-1).reduce((c,r,o)=>Object(c[r])===c[r]?c[r]:c[r]=Math.abs(Number(s[o+1]))>>0===+s[o+1]?[]:{},e)[s[s.length-1]]=n,e};const g=({block:e,context:t,localState:n,rootState:s,rootSetState:c})=>{if(!e.bindings)return e;const r=a.fastClone(e),o={...r,properties:{...r.properties},actions:{...r.actions}};for(const i in e.bindings){const l=e.bindings[i],d=f.evaluate({code:l,localState:n,rootState:s,rootSetState:c,context:t});p(o,i,d)}return o};function C({block:e,context:t,shouldEvaluateBindings:n,localState:s,rootState:c,rootSetState:r}){const o=e;return n?g({block:o,localState:s,rootState:c,rootSetState:r,context:t}):o}const S=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),u=e=>Object.entries(e).map(([n,s])=>{if(typeof s=="string")return`${S(n)}: ${s};`}).filter(a.checkIsDefined),v=e=>u(e).join(`
1
+ "use strict";const d=require("./evaluate.cff086ca.cjs"),a=require("./index.c16f4cca.cjs"),p=(e,t,n)=>{if(Object(e)!==e)return e;const s=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return s.slice(0,-1).reduce((c,r,o)=>Object(c[r])===c[r]?c[r]:c[r]=Math.abs(Number(s[o+1]))>>0===+s[o+1]?[]:{},e)[s[s.length-1]]=n,e};const g=({block:e,context:t,localState:n,rootState:s,rootSetState:c})=>{if(!e.bindings)return e;const r=a.fastClone(e),o={...r,properties:{...r.properties},actions:{...r.actions}};for(const i in e.bindings){const l=e.bindings[i],f=d.evaluate({code:l,localState:n,rootState:s,rootSetState:c,context:t});p(o,i,f)}return o};function C({block:e,context:t,shouldEvaluateBindings:n,localState:s,rootState:c,rootSetState:r}){const o=e;return n?g({block:o,localState:s,rootState:c,rootSetState:r,context:t}):o}const S=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),u=e=>Object.entries(e).map(([n,s])=>{if(typeof s=="string")return`${S(n)}: ${s};`}).filter(a.checkIsDefined),v=e=>u(e).join(`
2
2
  `),y=({mediaQuery:e,className:t,styles:n})=>{const s=`.${t} {
3
3
  ${v(n)}
4
4
  }`;return e?`${e} {
@@ -1,5 +1,5 @@
1
- import { e as u } from "./evaluate.38cae9b6.js";
2
- import { f as p, c as l } from "./index.32c5f4e2.js";
1
+ import { e as u } from "./evaluate.8238dbc9.js";
2
+ import { f as p, c as l } from "./index.e2db82e0.js";
3
3
  const g = (e, t, n) => {
4
4
  if (Object(e) !== e)
5
5
  return e;
@@ -1,4 +1,4 @@
1
- import { i as d, b as w } from "./index.32c5f4e2.js";
1
+ import { i as d, b as w } from "./index.e2db82e0.js";
2
2
  function h({
3
3
  code: n,
4
4
  context: r,
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./index.d1a8c547.cjs");function f({code:n,context:r,localState:i,rootState:s,rootSetState:e,event:u,isExpression:w=!0}){if(n===""){console.warn("Skipping evaluation of empty code block.");return}const c={isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser()},l=w&&!(n.includes(";")||n.includes(" return ")||n.trim().startsWith("return "))?`return (${n});`:n;try{return new Function("builder","Builder","state","context","event",l)(c,c,o(s,i,e),r,u)}catch(d){console.warn(`Builder custom code error:
1
+ "use strict";const t=require("./index.c16f4cca.cjs");function f({code:n,context:r,localState:i,rootState:s,rootSetState:e,event:u,isExpression:w=!0}){if(n===""){console.warn("Skipping evaluation of empty code block.");return}const c={isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser()},l=w&&!(n.includes(";")||n.includes(" return ")||n.trim().startsWith("return "))?`return (${n});`:n;try{return new Function("builder","Builder","state","context","event",l)(c,c,o(s,i,e),r,u)}catch(d){console.warn(`Builder custom code error:
2
2
  While Evaluating:
3
3
  `,l,`
4
4
  `,d)}}function o(n,r,i){if(n===r)throw new Error("rootState === localState");return new Proxy(n,{get:(s,e)=>r&&e in r?r[e]:n[e],set:(s,e,u)=>{if(r&&e in r)throw new Error("Writing to local state is not allowed as it is read-only.");return n[e]=u,i==null||i(n),!0}})}exports.evaluate=f;
@@ -1,4 +1,4 @@
1
- "use strict";const y=require("vue"),ut=y.defineComponent({name:"builder-button",props:["attributes","text","link","openLinkInNewTab"],methods:{filterAttrs:function(t={},n){const r="v-on:";return Object.keys(t).filter(o=>{if(!t[o])return!1;const s=o.startsWith(r);return n?s:!s}).reduce((o,s)=>({...o,[s.replace(r,"")]:t[s]}),{})},_classStringToObject(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 b(e,t,n,r,o,s,i,u){var a=typeof e=="function"?e.options:e;t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var c;if(i?(c=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__),o&&o.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(i)},a._ssrRegister=c):o&&(c=u?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(a.functional){a._injectStyles=c;var _=a.render;a.render=function(m,d){return c.call(d),_(m,d)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:a}}var dt=function(){var t=this,n=t._self._c;return t._self._setupProxy,t.link?n("a",t._g(t._b({attrs:{role:"button",href:t.link,target:t.openLinkInNewTab?"_blank":void 0}},"a",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[t._v(" "+t._s(t.text)+" ")]):n("button",t._g(t._b({class:t._classStringToObject(t.attributes.class+" button-2fnk003dqad")},"button",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[t._v(" "+t._s(t.text)+" ")])},ft=[],mt=b(ut,dt,ft,!1,null,"7e3d619b",null,null);const pt=mt.exports,R=e=>JSON.parse(JSON.stringify(e)),M={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},ht=(e,t=M)=>`@media (max-width: ${t[e].max}px)`,U=({small:e,medium:t})=>{const n=R(M);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const s=n.medium.max+1;return n.large={max:2e3,min:s,default:s+1},n},C="vue2",bt=Symbol(),I={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,registeredComponents:{},inheritedStyles:{}},key:bt},_t=()=>Promise.resolve().then(()=>L).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",e),e}),gt=()=>Promise.resolve().then(()=>require("./render-inlined-styles.80c83f3f.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",e),e}),yt=y.defineComponent({name:"builder-columns",components:{RenderInlinedStyles:gt,RenderBlocks:_t},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderBlock"],data(){return{gutterSize:typeof this.space=="number"?this.space||0:20,cols:this.columns||[],stackAt:this.stackColumnsAt||"tablet",flexDir:this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column",TARGET:C}},inject:{builderContext:I.key},computed:{columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnsStyles(){return`
1
+ "use strict";const y=require("vue"),dt=y.defineComponent({name:"builder-button",props:["attributes","text","link","openLinkInNewTab"],methods:{filterAttrs:function(t={},n){const r="v-on:";return Object.keys(t).filter(o=>{if(!t[o])return!1;const s=o.startsWith(r);return n?s:!s}).reduce((o,s)=>({...o,[s.replace(r,"")]:t[s]}),{})},_classStringToObject(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 b(e,t,n,r,o,s,i,u){var a=typeof e=="function"?e.options:e;t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var c;if(i?(c=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__),o&&o.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(i)},a._ssrRegister=c):o&&(c=u?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(a.functional){a._injectStyles=c;var _=a.render;a.render=function(m,d){return c.call(d),_(m,d)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:a}}var ft=function(){var t=this,n=t._self._c;return t._self._setupProxy,t.link?n("a",t._g(t._b({attrs:{role:"button",href:t.link,target:t.openLinkInNewTab?"_blank":void 0}},"a",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[t._v(" "+t._s(t.text)+" ")]):n("button",t._g(t._b({class:t._classStringToObject(t.attributes.class+" button-2fnk003dqad")},"button",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[t._v(" "+t._s(t.text)+" ")])},mt=[],pt=b(dt,ft,mt,!1,null,"7e3d619b",null,null);const ht=pt.exports,R=e=>JSON.parse(JSON.stringify(e)),M={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},bt=(e,t=M)=>`@media (max-width: ${t[e].max}px)`,U=({small:e,medium:t})=>{const n=R(M);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const s=n.medium.max+1;return n.large={max:2e3,min:s,default:s+1},n},C="vue2",_t=Symbol(),I={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,registeredComponents:{},inheritedStyles:{}},key:_t},gt=()=>Promise.resolve().then(()=>L).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",e),e}),yt=()=>Promise.resolve().then(()=>require("./render-inlined-styles.2c0cf85b.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",e),e}),vt=y.defineComponent({name:"builder-columns",components:{RenderInlinedStyles:yt,RenderBlocks:gt},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderBlock"],data(){return{gutterSize:typeof this.space=="number"?this.space||0:20,cols:this.columns||[],stackAt:this.stackColumnsAt||"tablet",flexDir:this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column",TARGET:C}},inject:{builderContext:I.key},computed:{columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnsStyles(){return`
2
2
  @media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
3
3
  .${this.builderBlock.id}-breakpoints {
4
4
  flex-direction: var(--flex-dir-tablet);
@@ -22,11 +22,11 @@
22
22
  margin-left: var(--column-margin-left-mobile) !important;
23
23
  }
24
24
  },
25
- `}},methods:{getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.gutterSize*(this.cols.length-1)/this.cols.length;return`calc(${this.getWidth(e)}% - ${t}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",s=0;return{width:n,"margin-left":r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:s,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:s,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return U(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max},_classStringToObject(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}}});var vt=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{class:t._classStringToObject(`builder-columns ${t.builderBlock.id}-breakpoints div-t9spj7joih`),style:t.columnsCssVars,attrs:{dataSet:{"builder-block-name":"builder-columns"}}},[t.TARGET!=="reactNative"?[n("render-inlined-styles",{attrs:{styles:t.columnsStyles}})]:t._e(),t._l(t.columns,function(r,o){return n("div",{key:o,staticClass:"builder-column div-t9spj7joih-2",style:t.columnCssVars(o),attrs:{dataSet:{"builder-block-name":"builder-column"}}},[n("render-blocks",{attrs:{blocks:r.blocks,path:`component.options.columns.${o}.blocks`,parent:t.builderBlock.id,styleProp:{flexGrow:"1"}}})],1)})],2)},St=[],kt=b(yt,vt,St,!1,null,"ea80c645",null,null);const xt=kt.exports,Ct=y.defineComponent({name:"builder-fragment-component",props:[]});var wt=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("span",[t._t("default")],2)},$t=[],Tt=b(Ct,wt,$t,!1,null,null,null,null);const Rt=Tt.exports;function O(e){return e.replace(/http(s)?:/,"")}function It(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function Et(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return O(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],s=t.match("x")?t:`${t}x`;return O(`${r[0]}_${s}${o}`)}return null}function E(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${It(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Et(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const Pt=y.defineComponent({name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(t.match(/builder\.io/)||t.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"),E(t)}else if(this.image&&!this.srcset)return E(t);return E(t)},webpSrcSet(){var e;return((e=this.srcSetToUse)==null?void 0:e.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});var At=function(){var r,o,s,i;var t=this,n=t._self._c;return t._self._setupProxy,n("div",[n("picture",[t.webpSrcSet?[n("source",{attrs:{type:"image/webp",srcset:t.webpSrcSet}})]:t._e(),n("img",{class:t._classStringToObject("builder-image"+(t.className?" "+t.className:"")+" img-1pl23ac79ld"),style:{objectPosition:t.backgroundPosition||"center",objectFit:t.backgroundSize||"cover",...t.aspectRatioCss},attrs:{loading:"lazy",alt:t.altText,role:t.altText?"presentation":void 0,src:t.image,srcset:t.srcSetToUse,sizes:t.sizes}})],2),t.aspectRatio&&!(((o=(r=t.builderBlock)==null?void 0:r.children)==null?void 0:o.length)&&t.fitContent)?[n("div",{staticClass:"builder-image-sizer div-1pl23ac79ld",style:{paddingTop:t.aspectRatio*100+"%"}})]:t._e(),((i=(s=t.builderBlock)==null?void 0:s.children)==null?void 0:i.length)&&t.fitContent?[t._t("default")]:t._e(),!t.fitContent&&t.children?[n("div",{staticClass:"div-1pl23ac79ld-2"},[t._t("default")],2)]:t._e()],2)},Ot=[],Vt=b(Pt,At,Ot,!1,null,"7eca4996",null,null);const jt=Vt.exports;function p(){return typeof window<"u"&&typeof document<"u"}function Bt(){return p()&&window.self!==window.top}function x(){return Bt()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Nt=()=>Promise.resolve().then(()=>require("./block-styles.5d12dd48.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",e),e}),Ft=()=>Promise.resolve().then(()=>require("./render-block.aa8d982e.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",e),e}),Mt=y.defineComponent({name:"render-blocks",components:{RenderBlock:Ft,BlockStyles:Nt},props:["blocks","parent","path","styleProp"],inject:{builderContext:I.key},computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,t;x()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,t;x()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(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}}});var Ut=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{class:t._classStringToObject(t.className+" div-21azgz5avex"),style:t.styleProp,attrs:{"builder-path":t.path,"builder-parent-id":t.parent,dataSet:{class:t.className}},on:{click:function(r){return t.onClick()},mouseenter:function(r){return t.onMouseEnter()}}},[t.blocks?t._l(t.blocks,function(r,o){return n("render-block",{key:"render-block-"+r.id,attrs:{block:r,context:t.builderContext}})}):t._e(),t.blocks?t._l(t.blocks,function(r,o){return n("block-styles",{key:"block-style-"+r.id,attrs:{block:r,context:t.builderContext}})}):t._e()],2)},Wt=[],Lt=b(Mt,Ut,Wt,!1,null,"23bbd49b",null,null);const W=Lt.exports,L=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),zt=y.defineComponent({name:"builder-section-component",props:["maxWidth","attributes"],methods:{filterAttrs:function(t={},n){const r="v-on:";return Object.keys(t).filter(o=>{if(!t[o])return!1;const s=o.startsWith(r);return n?s:!s}).reduce((o,s)=>({...o,[s.replace(r,"")]:t[s]}),{})}}});var Kt=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("section",t._g(t._b({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:t.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},"section",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[t._t("default")],2)},Gt=[],qt=b(zt,Kt,Gt,!1,null,null,null,null);const Dt=qt.exports,w="[Builder.io]: ",v={log:(...e)=>console.log(w,...e),error:(...e)=>console.error(w,...e),warn:(...e)=>console.warn(w,...e),debug:(...e)=>console.debug(w,...e)},S=e=>e!=null,Ht=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},z=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){v.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},K=async e=>z(e),Jt=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(S).join("; "),Qt=[["secure",""],["SameSite","None"]],Xt=({name:e,value:t,expires:n})=>{const o=(p()?location.protocol==="https:":!0)?Qt:[[]],s=n?[["expires",n.toUTCString()]]:[[]],i=[[e,t],...s,["path","/"],["domain",Ht(window.location.hostname)],...o];return Jt(i)},G=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Xt({name:e,value:t,expires:n});document.cookie=o}catch(o){v.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},Yt="builder.tests",A=e=>`${Yt}.${e}`,Zt=({contentId:e})=>K({name:A(e),canTrack:!0}),te=({contentId:e})=>z({name:A(e),canTrack:!0}),ee=({contentId:e,value:t})=>G({name:A(e),value:t,canTrack:!0}),q=e=>S(e.id)&&S(e.variations)&&Object.keys(e.variations).length>0,ne=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const s in t){const i=(o=t[s])==null?void 0:o.testRatio;if(n+=i,r<n)return s}return e},D=e=>{const t=ne(e);return ee({contentId:e.id,value:t}).catch(n=>{v.error("could not store A/B test variation: ",n)}),t},H=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},re=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!q(e))return e;const n=te({contentId:e.id})||D({variations:e.variations,id:e.id}),r=H({item:e,testGroupId:n});return{...e,...r}},oe=async({item:e,canTrack:t})=>{if(!t||!q(e))return e;const r=await Zt({contentId:e.id})||D({variations:e.variations,id:e.id}),o=H({item:e,testGroupId:r});return{...e,...o}},$=e=>S(e)?e:!0;function se(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function ie(){const e=se().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
26
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const J=ie();function P(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const s=e[o],i=[t,o].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...r,...P(s,i,n)}:{...r,[i]:s}},{})}const V="builder.",ae="options.",ce=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},le=e=>{if(!e)return{};const t=Q(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(V)){const o=r.replace(V,"").replace(ae,"");n[o]=t[r]}}),n},ue=()=>{if(!p())return{};const e=new URLSearchParams(window.location.search);return le(e)},Q=e=>e instanceof URLSearchParams?ce(e):e,de="v3",X=e=>{const{limit:t=30,userAttributes:n,query:r,noTraverse:o=!1,model:s,apiKey:i,includeRefs:u=!0,enrich:a,locale:c,apiVersion:_=de}=e;if(!i)throw new Error("Missing API key");if(!["v2","v3"].includes(_))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${_}'`);const f=new URL(`https://cdn.builder.io/api/${_}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${o}&includeRefs=${u}${c?`&locale=${c}`:""}${a?`&enrich=${a}`:""}`),l={...ue(),...Q(e.options||{})},m=P(l);for(const d in m)f.searchParams.set(d,String(m[d]));if(n&&f.searchParams.set("userAttributes",JSON.stringify(n)),r){const d=P({query:r});for(const g in d)f.searchParams.set(g,JSON.stringify(d[g]))}return f},Y=e=>"results"in e;async function Z(e){const t=await et({...e,limit:1});return t&&Y(t)&&t.results[0]||null}const fe=async e=>{const t=X(e);return await(await J(t.href)).json()},tt=async(e,t)=>{const n=$(e.canTrack);if(!n||!(p()||C==="reactNative"))return t;try{const r=[];for(const o of t.results)r.push(await oe({item:o,canTrack:n}));t.results=r}catch(r){v.error("Could not process A/B tests. ",r)}return t};async function et(e){try{const t=X(e),n=await fe(e);return Y(n)?tt(e,n):(v.error("Error fetching data. ",{url:t,content:n,options:e}),n)}catch(t){return v.error("Error fetching data. ",t),null}}const me=()=>Promise.resolve().then(()=>require("./render-content.0b8e6a43.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",e),e}),pe=y.defineComponent({name:"builder-symbol",components:{RenderContent:me},props:["attributes","symbol","dynamic"],data(){var e,t,n;return{className:[...Object.keys(this.attributes.class),"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,((t=this.symbol)==null?void 0:t.dynamic)||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" "),contentToUse:(n=this.symbol)==null?void 0:n.content}},inject:{builderContext:I.key},mounted(){this.fetchContent()},watch:{onUpdateHook0:{handler(){this.fetchContent()},immediate:!0}},computed:{onUpdateHook0(){return{0:this.symbol}}},methods:{fetchContent(){var e,t;!this.contentToUse&&((e=this.symbol)==null?void 0:e.model)&&((t=this.builderContext)==null?void 0:t.apiKey)&&Z({model:this.symbol.model,apiKey:this.builderContext.apiKey,apiVersion:this.builderContext.apiVersion,query:{id:this.symbol.entry}}).then(n=>{n&&(this.contentToUse=n)}).catch(n=>{v.error("Could not fetch symbol content: ",n)})},filterAttrs:function(t={},n){const r="v-on:";return Object.keys(t).filter(o=>{if(!t[o])return!1;const s=o.startsWith(r);return n?s:!s}).reduce((o,s)=>({...o,[s.replace(r,"")]:t[s]}),{})},_classStringToObject(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}}});var he=function(){var r,o,s,i;var t=this,n=t._self._c;return t._self._setupProxy,n("div",t._g(t._b({class:t._classStringToObject(t.className),attrs:{dataSet:{class:t.className}}},"div",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[n("render-content",{attrs:{apiVersion:t.builderContext.apiVersion,apiKey:t.builderContext.apiKey,context:t.builderContext.context,customComponents:Object.values(t.builderContext.registeredComponents),data:{...(r=t.symbol)==null?void 0:r.data,...t.builderContext.localState,...(s=(o=t.contentToUse)==null?void 0:o.data)==null?void 0:s.state},model:(i=t.symbol)==null?void 0:i.model,content:t.contentToUse}})],1)},be=[],_e=b(pe,he,be,!1,null,null,null,null);const ge=_e.exports,ye=y.defineComponent({name:"builder-text",props:["text"]});var ve=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("span",{staticClass:"builder-text",style:{outline:"none"},domProps:{innerHTML:t._s(t.text)}})},Se=[],ke=b(ye,ve,Se,!1,null,null,null,null);const xe=ke.exports,Ce=y.defineComponent({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 we=function(){var r;var t=this,n=t._self._c;return t._self._setupProxy,n("video",t._b({style:{width:"100%",height:"100%",...(r=t.attributes)==null?void 0:r.style,objectFit:t.fit,objectPosition:t.position,borderRadius:1},attrs:{src:t.video||"no-src",poster:t.posterImage}},"video",t.spreadProps,!1))},$e=[],Te=b(Ce,we,$e,!1,null,null,null,null);const Re=Te.exports,T=e=>Object.values((e==null?void 0:e.variations)||{}),j=({canTrack:e,content:t})=>!(!(T(t).length>0)||!e||p());function Ie(e,t,n){function r(){function i(m,d,g){let k="";if(g){const h=new Date;h.setTime(h.getTime()+g*24*60*60*1e3),k="; expires="+h.toUTCString()}document.cookie=m+"="+(d||"")+k+"; path=/; Secure; SameSite=None"}function u(m){const d=m+"=",g=document.cookie.split(";");for(let k=0;k<g.length;k++){let h=g[k];for(;h.charAt(0)===" ";)h=h.substring(1,h.length);if(h.indexOf(d)===0)return h.substring(d.length,h.length)}return null}const a=`builder.tests.${e}`,c=u(a),_=t.map(m=>m.id).concat(e);if(c&&_.includes(c))return c;let f=0;const l=Math.random();for(let m=0;m<t.length;m++){const d=t[m],g=d.testRatio;if(f+=g,l<f)return i(a,d.id),d.id}return i(a,e),e}const o=r(),s=document.getElementById(`variants-styles-${e}`);if(n){s.remove();const i=document.getElementById(`variants-script-${e}`);i==null||i.remove()}else{const i=t.concat({id:e}).filter(u=>u.id!==o).map(u=>`.variant-${u.id} { display: none; }
27
- `).join("");s.innerHTML=i}}function Ee(e,t,n){if(!navigator.cookieEnabled)return;function r(a){const c=a+"=",_=document.cookie.split(";");for(let f=0;f<_.length;f++){let l=_[f];for(;l.charAt(0)===" ";)l=l.substring(1,l.length);if(l.indexOf(c)===0)return l.substring(c.length,l.length)}return null}const o=`builder.tests.${t}`,s=r(o),i=document.querySelector(`[builder-content-id="${e}"]`),u=e===t;if(s===e){if(u)return;i==null||i.removeAttribute("hidden"),i==null||i.removeAttribute("aria-hidden")}else{u&&(n?i==null||i.remove():(i==null||i.setAttribute("hidden","true"),i==null||i.setAttribute("aria-hidden","true")));return}}const nt=e=>e==="react"||e==="reactNative"||e==="vue3"||e==="vue2",B="bldrAbTest",rt="bldrCntntScrpt",Pe=(e,t)=>{const n=Ie.toString().replace(/\s+/g," "),r=Ee.toString().replace(/\s+/g," ");return`
28
- const ${B} = ${n}
29
- const ${rt} = ${r}
30
- ${B}("${t}", ${JSON.stringify(e)}, ${nt})
25
+ `}},methods:{getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.gutterSize*(this.cols.length-1)/this.cols.length;return`calc(${this.getWidth(e)}% - ${t}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",s=0;return{width:n,"margin-left":r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:s,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:s,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return U(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max},_classStringToObject(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}}});var St=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{class:t._classStringToObject(`builder-columns ${t.builderBlock.id}-breakpoints div-t9spj7joih`),style:t.columnsCssVars,attrs:{dataSet:{"builder-block-name":"builder-columns"}}},[t.TARGET!=="reactNative"?[n("render-inlined-styles",{attrs:{styles:t.columnsStyles}})]:t._e(),t._l(t.columns,function(r,o){return n("div",{key:o,staticClass:"builder-column div-t9spj7joih-2",style:t.columnCssVars(o),attrs:{dataSet:{"builder-block-name":"builder-column"}}},[n("render-blocks",{attrs:{blocks:r.blocks,path:`component.options.columns.${o}.blocks`,parent:t.builderBlock.id,styleProp:{flexGrow:"1"}}})],1)})],2)},kt=[],xt=b(vt,St,kt,!1,null,"ea80c645",null,null);const Ct=xt.exports,wt=y.defineComponent({name:"builder-fragment-component",props:[]});var $t=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("span",[t._t("default")],2)},Tt=[],Rt=b(wt,$t,Tt,!1,null,null,null,null);const It=Rt.exports;function O(e){return e.replace(/http(s)?:/,"")}function Et(e="",t,n){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function Pt(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return O(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const r=e.split(n[0]),o=n[3],s=t.match("x")?t:`${t}x`;return O(`${r[0]}_${s}${o}`)}return null}function E(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const r=Number(e.split("?width=")[1]);return isNaN(r)||(n=`${n} ${r}w`),t.filter(o=>o!==r).map(o=>`${Et(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Pt(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,r])=>`${n} ${r}w`).concat([e]).join(", "):e}const At=y.defineComponent({name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(t.match(/builder\.io/)||t.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"),E(t)}else if(this.image&&!this.srcset)return E(t);return E(t)},webpSrcSet(){var e;return((e=this.srcSetToUse)==null?void 0:e.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const r of n)t[r]=!0;return t}}});var Ot=function(){var r,o,s,i;var t=this,n=t._self._c;return t._self._setupProxy,n("div",[n("picture",[t.webpSrcSet?[n("source",{attrs:{type:"image/webp",srcset:t.webpSrcSet}})]:t._e(),n("img",{class:t._classStringToObject("builder-image"+(t.className?" "+t.className:"")+" img-1pl23ac79ld"),style:{objectPosition:t.backgroundPosition||"center",objectFit:t.backgroundSize||"cover",...t.aspectRatioCss},attrs:{loading:"lazy",alt:t.altText,role:t.altText?"presentation":void 0,src:t.image,srcset:t.srcSetToUse,sizes:t.sizes}})],2),t.aspectRatio&&!(((o=(r=t.builderBlock)==null?void 0:r.children)==null?void 0:o.length)&&t.fitContent)?[n("div",{staticClass:"builder-image-sizer div-1pl23ac79ld",style:{paddingTop:t.aspectRatio*100+"%"}})]:t._e(),((i=(s=t.builderBlock)==null?void 0:s.children)==null?void 0:i.length)&&t.fitContent?[t._t("default")]:t._e(),!t.fitContent&&t.children?[n("div",{staticClass:"div-1pl23ac79ld-2"},[t._t("default")],2)]:t._e()],2)},Vt=[],Bt=b(At,Ot,Vt,!1,null,"7eca4996",null,null);const jt=Bt.exports;function p(){return typeof window<"u"&&typeof document<"u"}function Nt(){return p()&&window.self!==window.top}function x(){return Nt()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Ft=()=>Promise.resolve().then(()=>require("./block-styles.18ca317b.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",e),e}),Mt=()=>Promise.resolve().then(()=>require("./render-block.954cc390.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",e),e}),Ut=y.defineComponent({name:"render-blocks",components:{RenderBlock:Mt,BlockStyles:Ft},props:["blocks","parent","path","styleProp"],inject:{builderContext:I.key},computed:{className(){var e;return"builder-blocks"+((e=this.blocks)!=null&&e.length?"":" no-blocks")}},methods:{onClick(){var e,t;x()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var e,t;x()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(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}}});var Wt=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{class:t._classStringToObject(t.className+" div-21azgz5avex"),style:t.styleProp,attrs:{"builder-path":t.path,"builder-parent-id":t.parent,dataSet:{class:t.className}},on:{click:function(r){return t.onClick()},mouseenter:function(r){return t.onMouseEnter()}}},[t.blocks?t._l(t.blocks,function(r,o){return n("render-block",{key:"render-block-"+r.id,attrs:{block:r,context:t.builderContext}})}):t._e(),t.blocks?t._l(t.blocks,function(r,o){return n("block-styles",{key:"block-style-"+r.id,attrs:{block:r,context:t.builderContext}})}):t._e()],2)},Lt=[],zt=b(Ut,Wt,Lt,!1,null,"23bbd49b",null,null);const W=zt.exports,L=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),Kt=y.defineComponent({name:"builder-section-component",props:["maxWidth","attributes"],methods:{filterAttrs:function(t={},n){const r="v-on:";return Object.keys(t).filter(o=>{if(!t[o])return!1;const s=o.startsWith(r);return n?s:!s}).reduce((o,s)=>({...o,[s.replace(r,"")]:t[s]}),{})}}});var Gt=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("section",t._g(t._b({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:t.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},"section",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[t._t("default")],2)},qt=[],Dt=b(Kt,Gt,qt,!1,null,null,null,null);const Ht=Dt.exports,w="[Builder.io]: ",v={log:(...e)=>console.log(w,...e),error:(...e)=>console.error(w,...e),warn:(...e)=>console.warn(w,...e),debug:(...e)=>console.debug(w,...e)},S=e=>e!=null,Jt=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},z=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){v.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},K=async e=>z(e),Qt=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(S).join("; "),Xt=[["secure",""],["SameSite","None"]],Yt=({name:e,value:t,expires:n})=>{const o=(p()?location.protocol==="https:":!0)?Xt:[[]],s=n?[["expires",n.toUTCString()]]:[[]],i=[[e,t],...s,["path","/"],["domain",Jt(window.location.hostname)],...o];return Qt(i)},G=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Yt({name:e,value:t,expires:n});document.cookie=o}catch(o){v.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},Zt="builder.tests",A=e=>`${Zt}.${e}`,te=({contentId:e})=>K({name:A(e),canTrack:!0}),ee=({contentId:e})=>z({name:A(e),canTrack:!0}),ne=({contentId:e,value:t})=>G({name:A(e),value:t,canTrack:!0}),q=e=>S(e.id)&&S(e.variations)&&Object.keys(e.variations).length>0,re=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const s in t){const i=(o=t[s])==null?void 0:o.testRatio;if(n+=i,r<n)return s}return e},D=e=>{const t=re(e);return ne({contentId:e.id,value:t}).catch(n=>{v.error("could not store A/B test variation: ",n)}),t},H=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},oe=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!q(e))return e;const n=ee({contentId:e.id})||D({variations:e.variations,id:e.id}),r=H({item:e,testGroupId:n});return{...e,...r}},se=async({item:e,canTrack:t})=>{if(!t||!q(e))return e;const r=await te({contentId:e.id})||D({variations:e.variations,id:e.id}),o=H({item:e,testGroupId:r});return{...e,...o}},$=e=>S(e)?e:!0;function ie(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function ae(){const e=ie().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
26
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const J=ae();function P(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const s=e[o],i=[t,o].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...r,...P(s,i,n)}:{...r,[i]:s}},{})}const V="builder.",ce="options.",le=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},Q=e=>{if(!e)return{};const t=X(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(V)){const o=r.replace(V,"").replace(ce,"");n[o]=t[r]}}),n},ue=()=>{if(!p())return{};const e=new URLSearchParams(window.location.search);return Q(e)},X=e=>e instanceof URLSearchParams?le(e):e,de="v3",Y=e=>{const{limit:t=30,userAttributes:n,query:r,noTraverse:o=!1,model:s,apiKey:i,includeRefs:u=!0,enrich:a,locale:c,apiVersion:_=de}=e;if(!i)throw new Error("Missing API key");if(!["v2","v3"].includes(_))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${_}'`);const f=new URL(`https://cdn.builder.io/api/${_}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${o}&includeRefs=${u}${c?`&locale=${c}`:""}${a?`&enrich=${a}`:""}`),l={...ue(),...X(e.options||{})},m=P(l);for(const d in m)f.searchParams.set(d,String(m[d]));if(n&&f.searchParams.set("userAttributes",JSON.stringify(n)),r){const d=P({query:r});for(const g in d)f.searchParams.set(g,JSON.stringify(d[g]))}return f},Z=e=>"results"in e;async function tt(e){const t=await nt({...e,limit:1});return t&&Z(t)&&t.results[0]||null}const fe=async e=>{const t=Y(e);return await(await J(t.href)).json()},et=async(e,t)=>{const n=$(e.canTrack);if(!n||!(p()||C==="reactNative"))return t;try{const r=[];for(const o of t.results)r.push(await se({item:o,canTrack:n}));t.results=r}catch(r){v.error("Could not process A/B tests. ",r)}return t};async function nt(e){try{const t=Y(e),n=await fe(e);return Z(n)?et(e,n):(v.error("Error fetching data. ",{url:t,content:n,options:e}),n)}catch(t){return v.error("Error fetching data. ",t),null}}const me=()=>Promise.resolve().then(()=>require("./render-content.702f0387.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",e),e}),pe=y.defineComponent({name:"builder-symbol",components:{RenderContent:me},props:["attributes","symbol","dynamic"],data(){var e,t,n;return{className:[...Object.keys(this.attributes.class),"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,((t=this.symbol)==null?void 0:t.dynamic)||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" "),contentToUse:(n=this.symbol)==null?void 0:n.content}},inject:{builderContext:I.key},mounted(){this.fetchContent()},watch:{onUpdateHook0:{handler(){this.fetchContent()},immediate:!0}},computed:{onUpdateHook0(){return{0:this.symbol}}},methods:{fetchContent(){var e,t;!this.contentToUse&&((e=this.symbol)==null?void 0:e.model)&&((t=this.builderContext)==null?void 0:t.apiKey)&&tt({model:this.symbol.model,apiKey:this.builderContext.apiKey,apiVersion:this.builderContext.apiVersion,query:{id:this.symbol.entry}}).then(n=>{n&&(this.contentToUse=n)}).catch(n=>{v.error("Could not fetch symbol content: ",n)})},filterAttrs:function(t={},n){const r="v-on:";return Object.keys(t).filter(o=>{if(!t[o])return!1;const s=o.startsWith(r);return n?s:!s}).reduce((o,s)=>({...o,[s.replace(r,"")]:t[s]}),{})},_classStringToObject(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}}});var he=function(){var r,o,s,i;var t=this,n=t._self._c;return t._self._setupProxy,n("div",t._g(t._b({class:t._classStringToObject(t.className),attrs:{dataSet:{class:t.className}}},"div",t.filterAttrs(t.attributes,!1),!1),t.filterAttrs(t.attributes,!0)),[n("render-content",{attrs:{apiVersion:t.builderContext.apiVersion,apiKey:t.builderContext.apiKey,context:t.builderContext.context,customComponents:Object.values(t.builderContext.registeredComponents),data:{...(r=t.symbol)==null?void 0:r.data,...t.builderContext.localState,...(s=(o=t.contentToUse)==null?void 0:o.data)==null?void 0:s.state},model:(i=t.symbol)==null?void 0:i.model,content:t.contentToUse}})],1)},be=[],_e=b(pe,he,be,!1,null,null,null,null);const ge=_e.exports,ye=y.defineComponent({name:"builder-text",props:["text"]});var ve=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("span",{staticClass:"builder-text",style:{outline:"none"},domProps:{innerHTML:t._s(t.text)}})},Se=[],ke=b(ye,ve,Se,!1,null,null,null,null);const xe=ke.exports,Ce=y.defineComponent({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 we=function(){var r;var t=this,n=t._self._c;return t._self._setupProxy,n("video",t._b({style:{width:"100%",height:"100%",...(r=t.attributes)==null?void 0:r.style,objectFit:t.fit,objectPosition:t.position,borderRadius:1},attrs:{src:t.video||"no-src",poster:t.posterImage}},"video",t.spreadProps,!1))},$e=[],Te=b(Ce,we,$e,!1,null,null,null,null);const Re=Te.exports,T=e=>Object.values((e==null?void 0:e.variations)||{}),B=({canTrack:e,content:t})=>!(!(T(t).length>0)||!e||p());function Ie(e,t,n){function r(){function i(m,d,g){let k="";if(g){const h=new Date;h.setTime(h.getTime()+g*24*60*60*1e3),k="; expires="+h.toUTCString()}document.cookie=m+"="+(d||"")+k+"; path=/; Secure; SameSite=None"}function u(m){const d=m+"=",g=document.cookie.split(";");for(let k=0;k<g.length;k++){let h=g[k];for(;h.charAt(0)===" ";)h=h.substring(1,h.length);if(h.indexOf(d)===0)return h.substring(d.length,h.length)}return null}const a=`builder.tests.${e}`,c=u(a),_=t.map(m=>m.id).concat(e);if(c&&_.includes(c))return c;let f=0;const l=Math.random();for(let m=0;m<t.length;m++){const d=t[m],g=d.testRatio;if(f+=g,l<f)return i(a,d.id),d.id}return i(a,e),e}const o=r(),s=document.getElementById(`variants-styles-${e}`);if(n){s.remove();const i=document.getElementById(`variants-script-${e}`);i==null||i.remove()}else{const i=t.concat({id:e}).filter(u=>u.id!==o).map(u=>`.variant-${u.id} { display: none; }
27
+ `).join("");s.innerHTML=i}}function Ee(e,t,n){if(!navigator.cookieEnabled)return;function r(a){const c=a+"=",_=document.cookie.split(";");for(let f=0;f<_.length;f++){let l=_[f];for(;l.charAt(0)===" ";)l=l.substring(1,l.length);if(l.indexOf(c)===0)return l.substring(c.length,l.length)}return null}const o=`builder.tests.${t}`,s=r(o),i=document.querySelector(`[builder-content-id="${e}"]`),u=e===t;if(s===e){if(u)return;i==null||i.removeAttribute("hidden"),i==null||i.removeAttribute("aria-hidden")}else{u&&(n?i==null||i.remove():(i==null||i.setAttribute("hidden","true"),i==null||i.setAttribute("aria-hidden","true")));return}}const rt=e=>e==="react"||e==="reactNative"||e==="vue3"||e==="vue2",j="bldrAbTest",ot="bldrCntntScrpt",Pe=(e,t)=>{const n=Ie.toString().replace(/\s+/g," "),r=Ee.toString().replace(/\s+/g," ");return`
28
+ const ${j} = ${n}
29
+ const ${ot} = ${r}
30
+ ${j}("${t}", ${JSON.stringify(e)}, ${rt})
31
31
  `},Ae=({parentContentId:e,contentId:t})=>`
32
- ${rt}("${t}", "${e}", ${nt})`,Oe=()=>Promise.resolve().then(()=>require("./render-content.0b8e6a43.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderContent at ../render-content/render-content.vue",e),e}),Ve=()=>Promise.resolve().then(()=>require("./render-inlined-styles.80c83f3f.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}),je=y.defineComponent({name:"render-content-variants",components:{RenderInlinedStyles:Ve,RenderContent:Oe},props:["content","canTrack","apiKey","apiVersion","customComponents","model"],data(){var e;return{variantScriptStr:Pe(T(this.content).map(t=>({id:t.id,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||""),shouldRenderVariants:j({canTrack:$(this.canTrack),content:this.content}),hideVariantsStyleString:T(this.content).map(t=>`.variant-${t.id} { display: none; } `).join(""),contentToRender:j({canTrack:$(this.canTrack),content:this.content})?this.content:re({item:this.content,canTrack:$(this.canTrack)}),getVariants:T}}});var Be=function(){var r,o,s,i;var t=this,n=t._self._c;return t._self._setupProxy,n("div",[t.shouldRenderVariants?[n("render-inlined-styles",{attrs:{id:`variants-styles-${(r=t.content)==null?void 0:r.id}`,styles:t.hideVariantsStyleString}}),n("script",{tag:"component",attrs:{id:`variants-script-${(o=t.content)==null?void 0:o.id}`},domProps:{innerHTML:t._s(t.variantScriptStr)}}),t._l(t.getVariants(t.content),function(u,a){var c;return n("render-content",{key:u.id,attrs:{content:u,apiKey:t.apiKey,apiVersion:t.apiVersion,canTrack:t.canTrack,customComponents:t.customComponents,hideContent:!0,parentContentId:(c=t.content)==null?void 0:c.id,isSsrAbTest:t.shouldRenderVariants}})})]:t._e(),n("render-content",{attrs:{model:t.model,content:t.contentToRender,apiKey:t.apiKey,apiVersion:t.apiVersion,canTrack:t.canTrack,customComponents:t.customComponents,classNameProp:`variant-${(s=t.content)==null?void 0:s.id}`,parentContentId:(i=t.content)==null?void 0:i.id,isSsrAbTest:t.shouldRenderVariants}})],2)},Ne=[],Fe=b(je,Be,Ne,!1,null,null,null,null);const Me=Fe.exports;function Ue(){return!p()||x()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const ot=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},We=[],Le=({component:e,...t})=>({type:"builder.registerComponent",data:Ke(t)}),ze=e=>typeof e=="function"?ot(e):R(e),Ke=({inputs:e,...t})=>({...R(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,s])=>({...r,[o]:ze(s)}),{}))}),N={};function Ge(e,t){let n=N[e];if(n||(n=N[e]=[]),n.push(t),p()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const F={};function qe(e){if(p()){Object.assign(F,e);const t={type:"builder.settingsChange",data:F};parent.postMessage(t,"*")}}function De(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function st(){return De().replace(/-/g,"")}const it="builderSessionId",He=async({canTrack:e})=>{if(!e)return;const t=await K({name:it,canTrack:e});if(S(t))return t;{const n=Je();return Qe({id:n,canTrack:e}),n}},Je=()=>st(),Qe=({id:e,canTrack:t})=>G({name:it,value:e,canTrack:t}),at=()=>p()&&typeof localStorage<"u"?localStorage:void 0,Xe=({key:e,canTrack:t})=>{var n;try{return t?(n=at())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ye=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=at())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},ct="builderVisitorId",Ze=({canTrack:e})=>{if(!e)return;const t=Xe({key:ct,canTrack:e});if(S(t))return t;{const n=tn();return en({id:n,canTrack:e}),n}},tn=()=>st(),en=({id:e,canTrack:t})=>Ye({key:ct,value:e,canTrack:t}),nn=()=>{if(p()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},rn=()=>typeof navigator=="object"&&navigator.userAgent||"",on=()=>{const e=rn(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||C==="reactNative"}},n=e.match(/Tablet|iPad/i),r=nn();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},sn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await He({canTrack:e}),n=Ze({canTrack:e});return{sessionId:t,visitorId:n}},an=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await sn({canTrack:t}),userAttributes:on(),ownerId:n}});async function lt(e){if(!e.apiKey){v.error("Missing API key for track call. Please provide your API key.");return}if(!!e.canTrack&&!x()&&!!(p()||C==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await an(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const cn=e=>lt({...e,canTrack:!0});exports.BuilderContext=I;exports.Button=pt;exports.Columns=xt;exports.Fragment=Rt;exports.Image=jt;exports.Section=Dt;exports.Symbol=ge;exports.TARGET=C;exports.Text=xe;exports.Video=Re;exports._track=lt;exports.checkIsDefined=S;exports.components=We;exports.createRegisterComponentMessage=Le;exports.fastClone=R;exports.fetch=J;exports.getAllContent=et;exports.getContent=Z;exports.getMaxWidthQueryForSize=ht;exports.getRenderContentScriptString=Ae;exports.getSizesForBreakpoints=U;exports.isBrowser=p;exports.isEditing=x;exports.isPreviewing=Ue;exports.logger=v;exports.normalizeComponent=b;exports.processContentResult=tt;exports.register=Ge;exports.renderBlocks=W;exports.renderBlocks$1=L;exports.renderContentVariants=Me;exports.serializeFn=ot;exports.setEditorSettings=qe;exports.track=cn;
32
+ ${ot}("${t}", "${e}", ${rt})`,Oe=()=>Promise.resolve().then(()=>require("./render-content.702f0387.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderContent at ../render-content/render-content.vue",e),e}),Ve=()=>Promise.resolve().then(()=>require("./render-inlined-styles.2c0cf85b.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}),Be=y.defineComponent({name:"render-content-variants",components:{RenderInlinedStyles:Ve,RenderContent:Oe},props:["content","canTrack","apiKey","apiVersion","customComponents","model"],data(){var e;return{variantScriptStr:Pe(T(this.content).map(t=>({id:t.id,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||""),shouldRenderVariants:B({canTrack:$(this.canTrack),content:this.content}),hideVariantsStyleString:T(this.content).map(t=>`.variant-${t.id} { display: none; } `).join(""),contentToRender:B({canTrack:$(this.canTrack),content:this.content})?this.content:oe({item:this.content,canTrack:$(this.canTrack)}),getVariants:T}}});var je=function(){var r,o,s,i;var t=this,n=t._self._c;return t._self._setupProxy,n("div",[t.shouldRenderVariants?[n("render-inlined-styles",{attrs:{id:`variants-styles-${(r=t.content)==null?void 0:r.id}`,styles:t.hideVariantsStyleString}}),n("script",{tag:"component",attrs:{id:`variants-script-${(o=t.content)==null?void 0:o.id}`},domProps:{innerHTML:t._s(t.variantScriptStr)}}),t._l(t.getVariants(t.content),function(u,a){var c;return n("render-content",{key:u.id,attrs:{content:u,apiKey:t.apiKey,apiVersion:t.apiVersion,canTrack:t.canTrack,customComponents:t.customComponents,hideContent:!0,parentContentId:(c=t.content)==null?void 0:c.id,isSsrAbTest:t.shouldRenderVariants}})})]:t._e(),n("render-content",{attrs:{model:t.model,content:t.contentToRender,apiKey:t.apiKey,apiVersion:t.apiVersion,canTrack:t.canTrack,customComponents:t.customComponents,classNameProp:`variant-${(s=t.content)==null?void 0:s.id}`,parentContentId:(i=t.content)==null?void 0:i.id,isSsrAbTest:t.shouldRenderVariants}})],2)},Ne=[],Fe=b(Be,je,Ne,!1,null,null,null,null);const Me=Fe.exports;function Ue(){return!p()||x()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const st=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},We=[],Le=({component:e,...t})=>({type:"builder.registerComponent",data:Ke(t)}),ze=e=>typeof e=="function"?st(e):R(e),Ke=({inputs:e,...t})=>({...R(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,s])=>({...r,[o]:ze(s)}),{}))}),N={};function Ge(e,t){let n=N[e];if(n||(n=N[e]=[]),n.push(t),p()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}const F={};function qe(e){if(p()){Object.assign(F,e);const t={type:"builder.settingsChange",data:F};parent.postMessage(t,"*")}}function De(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function it(){return De().replace(/-/g,"")}const at="builderSessionId",He=async({canTrack:e})=>{if(!e)return;const t=await K({name:at,canTrack:e});if(S(t))return t;{const n=Je();return Qe({id:n,canTrack:e}),n}},Je=()=>it(),Qe=({id:e,canTrack:t})=>G({name:at,value:e,canTrack:t}),ct=()=>p()&&typeof localStorage<"u"?localStorage:void 0,Xe=({key:e,canTrack:t})=>{var n;try{return t?(n=ct())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ye=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=ct())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},lt="builderVisitorId",Ze=({canTrack:e})=>{if(!e)return;const t=Xe({key:lt,canTrack:e});if(S(t))return t;{const n=tn();return en({id:n,canTrack:e}),n}},tn=()=>it(),en=({id:e,canTrack:t})=>Ye({key:lt,value:e,canTrack:t}),nn=()=>{if(p()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},rn=()=>typeof navigator=="object"&&navigator.userAgent||"",on=()=>{const e=rn(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||C==="reactNative"}},n=e.match(/Tablet|iPad/i),r=nn();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},sn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await He({canTrack:e}),n=Ze({canTrack:e});return{sessionId:t,visitorId:n}},an=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await sn({canTrack:t}),userAttributes:on(),ownerId:n}});async function ut(e){if(!e.apiKey){v.error("Missing API key for track call. Please provide your API key.");return}if(!!e.canTrack&&!x()&&!!(p()||C==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await an(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const cn=e=>ut({...e,canTrack:!0});exports.BuilderContext=I;exports.Button=ht;exports.Columns=Ct;exports.Fragment=It;exports.Image=jt;exports.Section=Ht;exports.Symbol=ge;exports.TARGET=C;exports.Text=xe;exports.Video=Re;exports._track=ut;exports.checkIsDefined=S;exports.components=We;exports.createRegisterComponentMessage=Le;exports.fastClone=R;exports.fetch=J;exports.getAllContent=nt;exports.getBuilderSearchParams=Q;exports.getContent=tt;exports.getMaxWidthQueryForSize=bt;exports.getRenderContentScriptString=Ae;exports.getSizesForBreakpoints=U;exports.isBrowser=p;exports.isEditing=x;exports.isPreviewing=Ue;exports.logger=v;exports.normalizeComponent=b;exports.processContentResult=et;exports.register=Ge;exports.renderBlocks=W;exports.renderBlocks$1=L;exports.renderContentVariants=Me;exports.serializeFn=st;exports.setEditorSettings=qe;exports.track=cn;
@@ -71,7 +71,7 @@ var nt = function() {
71
71
  null,
72
72
  null
73
73
  );
74
- const De = ot.exports, E = (e) => JSON.parse(JSON.stringify(e)), M = {
74
+ const De = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), M = {
75
75
  small: {
76
76
  min: 320,
77
77
  default: 321,
@@ -88,7 +88,7 @@ const De = ot.exports, E = (e) => JSON.parse(JSON.stringify(e)), M = {
88
88
  max: 1200
89
89
  }
90
90
  }, He = (e, t = M) => `@media (max-width: ${t[e].max}px)`, st = ({ small: e, medium: t }) => {
91
- const n = E(M);
91
+ const n = A(M);
92
92
  if (!e || !t)
93
93
  return n;
94
94
  const r = Math.floor(e / 2);
@@ -109,7 +109,7 @@ const De = ot.exports, E = (e) => JSON.parse(JSON.stringify(e)), M = {
109
109
  min: s,
110
110
  default: s + 1
111
111
  }, n;
112
- }, T = "vue2", it = Symbol(), A = {
112
+ }, T = "vue2", it = Symbol(), E = {
113
113
  Builder: {
114
114
  content: null,
115
115
  context: {},
@@ -123,12 +123,12 @@ const De = ot.exports, E = (e) => JSON.parse(JSON.stringify(e)), M = {
123
123
  inheritedStyles: {}
124
124
  },
125
125
  key: it
126
- }, at = () => Promise.resolve().then(() => At).then((e) => e.default).catch((e) => {
126
+ }, at = () => Promise.resolve().then(() => Et).then((e) => e.default).catch((e) => {
127
127
  throw console.error(
128
128
  "Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
129
129
  e
130
130
  ), e;
131
- }), ct = () => import("./render-inlined-styles.57cb3887.js").then((e) => e.default).catch((e) => {
131
+ }), ct = () => import("./render-inlined-styles.ac06208e.js").then((e) => e.default).catch((e) => {
132
132
  throw console.error(
133
133
  "Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
134
134
  e
@@ -156,7 +156,7 @@ const De = ot.exports, E = (e) => JSON.parse(JSON.stringify(e)), M = {
156
156
  };
157
157
  },
158
158
  inject: {
159
- builderContext: A.key
159
+ builderContext: E.key
160
160
  },
161
161
  computed: {
162
162
  columnsCssVars() {
@@ -418,12 +418,12 @@ function xt() {
418
418
  function $() {
419
419
  return xt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
420
420
  }
421
- const Ct = () => import("./block-styles.6046e541.js").then((e) => e.default).catch((e) => {
421
+ const Ct = () => import("./block-styles.69ca115c.js").then((e) => e.default).catch((e) => {
422
422
  throw console.error(
423
423
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
424
424
  e
425
425
  ), e;
426
- }), wt = () => import("./render-block.0c043cce.js").then((e) => e.default).catch((e) => {
426
+ }), wt = () => import("./render-block.0f23cd7e.js").then((e) => e.default).catch((e) => {
427
427
  throw console.error(
428
428
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
429
429
  e
@@ -433,7 +433,7 @@ const Ct = () => import("./block-styles.6046e541.js").then((e) => e.default).cat
433
433
  components: { RenderBlock: wt, BlockStyles: Ct },
434
434
  props: ["blocks", "parent", "path", "styleProp"],
435
435
  inject: {
436
- builderContext: A.key
436
+ builderContext: E.key
437
437
  },
438
438
  computed: {
439
439
  className() {
@@ -502,9 +502,9 @@ var Tt = function() {
502
502
  null,
503
503
  null
504
504
  );
505
- const Et = It.exports, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
505
+ const At = It.exports, Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
506
506
  __proto__: null,
507
- default: Et
507
+ default: At
508
508
  }, Symbol.toStringTag, { value: "Module" })), Ot = g({
509
509
  name: "builder-section-component",
510
510
  props: ["maxWidth", "attributes"],
@@ -781,7 +781,7 @@ async function oe(e) {
781
781
  return v.error("Error fetching data. ", t), null;
782
782
  }
783
783
  }
784
- const se = () => import("./render-content.a8742da7.js").then((e) => e.default).catch((e) => {
784
+ const se = () => import("./render-content.672eabd9.js").then((e) => e.default).catch((e) => {
785
785
  throw console.error(
786
786
  "Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
787
787
  e
@@ -803,7 +803,7 @@ const se = () => import("./render-content.a8742da7.js").then((e) => e.default).c
803
803
  };
804
804
  },
805
805
  inject: {
806
- builderContext: A.key
806
+ builderContext: E.key
807
807
  },
808
808
  mounted() {
809
809
  this.fetchContent();
@@ -1058,12 +1058,12 @@ const J = (e) => e === "react" || e === "reactNative" || e === "vue3" || e === "
1058
1058
  parentContentId: e,
1059
1059
  contentId: t
1060
1060
  }) => `
1061
- ${X}("${t}", "${e}", ${J})`, Se = () => import("./render-content.a8742da7.js").then((e) => e.default).catch((e) => {
1061
+ ${X}("${t}", "${e}", ${J})`, Se = () => import("./render-content.672eabd9.js").then((e) => e.default).catch((e) => {
1062
1062
  throw console.error(
1063
1063
  "Error while attempting to dynamically import component RenderContent at ../render-content/render-content.vue",
1064
1064
  e
1065
1065
  ), e;
1066
- }), ke = () => import("./render-inlined-styles.57cb3887.js").then((e) => e.default).catch((e) => {
1066
+ }), ke = () => import("./render-inlined-styles.ac06208e.js").then((e) => e.default).catch((e) => {
1067
1067
  throw console.error(
1068
1068
  "Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
1069
1069
  e
@@ -1138,11 +1138,11 @@ const Te = (e) => {
1138
1138
  }) => ({
1139
1139
  type: "builder.registerComponent",
1140
1140
  data: Ie(t)
1141
- }), Re = (e) => typeof e == "function" ? Te(e) : E(e), Ie = ({
1141
+ }), Re = (e) => typeof e == "function" ? Te(e) : A(e), Ie = ({
1142
1142
  inputs: e,
1143
1143
  ...t
1144
1144
  }) => ({
1145
- ...E(t),
1145
+ ...A(t),
1146
1146
  inputs: e == null ? void 0 : e.map(
1147
1147
  (n) => Object.entries(n).reduce(
1148
1148
  (r, [o, s]) => ({
@@ -1181,16 +1181,16 @@ function cn(e) {
1181
1181
  parent.postMessage(t, "*");
1182
1182
  }
1183
1183
  }
1184
- function Ee() {
1184
+ function Ae() {
1185
1185
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1186
1186
  const t = Math.random() * 16 | 0;
1187
1187
  return (e == "x" ? t : t & 3 | 8).toString(16);
1188
1188
  });
1189
1189
  }
1190
1190
  function Q() {
1191
- return Ee().replace(/-/g, "");
1191
+ return Ae().replace(/-/g, "");
1192
1192
  }
1193
- const Y = "builderSessionId", Ae = async ({
1193
+ const Y = "builderSessionId", Ee = async ({
1194
1194
  canTrack: e
1195
1195
  }) => {
1196
1196
  if (!e)
@@ -1287,7 +1287,7 @@ const Y = "builderSessionId", Ae = async ({
1287
1287
  }) => {
1288
1288
  if (!e)
1289
1289
  return { visitorId: void 0, sessionId: void 0 };
1290
- const t = await Ae({ canTrack: e }), n = Be({ canTrack: e });
1290
+ const t = await Ee({ canTrack: e }), n = Be({ canTrack: e });
1291
1291
  return {
1292
1292
  sessionId: t,
1293
1293
  visitorId: n
@@ -1334,6 +1334,7 @@ async function Ke(e) {
1334
1334
  }
1335
1335
  const ln = (e) => Ke({ ...e, canTrack: !0 });
1336
1336
  export {
1337
+ Et as A,
1337
1338
  De as B,
1338
1339
  qe as C,
1339
1340
  Je as F,
@@ -1347,12 +1348,12 @@ export {
1347
1348
  k as c,
1348
1349
  Ye as d,
1349
1350
  Ze as e,
1350
- E as f,
1351
+ A as f,
1351
1352
  st as g,
1352
1353
  on as h,
1353
1354
  $ as i,
1354
1355
  en as j,
1355
- A as k,
1356
+ E as k,
1356
1357
  v as l,
1357
1358
  sn as m,
1358
1359
  y as n,
@@ -1364,8 +1365,8 @@ export {
1364
1365
  cn as t,
1365
1366
  oe as u,
1366
1367
  re as v,
1367
- ln as w,
1368
- Et as x,
1369
- nn as y,
1370
- At as z
1368
+ Yt as w,
1369
+ ln as x,
1370
+ At as y,
1371
+ nn as z
1371
1372
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m } from "vue";
2
- import { e as l } from "./evaluate.9b61c455.js";
3
- import { T as u, n as d } from "./index.75296c8a.js";
4
- import { a as h, g as p } from "./css.6d40adbf.js";
2
+ import { e as l } from "./evaluate.8238dbc9.js";
3
+ import { T as u, n as d } from "./index.e2db82e0.js";
4
+ import { a as h, g as p } from "./css.ce776b44.js";
5
5
  const S = (e) => `v-on:${e.toLowerCase()}`, f = (e, t) => (o) => l({
6
6
  code: e,
7
7
  context: t.context,
@@ -135,17 +135,17 @@ const C = [
135
135
  },
136
136
  block: r
137
137
  }));
138
- }, R = () => import("./block-styles.6046e541.js").then((e) => e.default).catch((e) => {
138
+ }, R = () => import("./block-styles.69ca115c.js").then((e) => e.default).catch((e) => {
139
139
  throw console.error(
140
140
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
141
141
  e
142
142
  ), e;
143
- }), P = () => import("./render-repeated-block.7a35249f.js").then((e) => e.default).catch((e) => {
143
+ }), P = () => import("./render-repeated-block.c40e7c25.js").then((e) => e.default).catch((e) => {
144
144
  throw console.error(
145
145
  "Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
146
146
  e
147
147
  ), e;
148
- }), T = () => import("./render-component.d72cfa86.js").then((e) => e.default).catch((e) => {
148
+ }), T = () => import("./render-component.74280c04.js").then((e) => e.default).catch((e) => {
149
149
  throw console.error(
150
150
  "Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
151
151
  e
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),u=require("./evaluate.1f3c9eb2.cjs"),d=require("./index.d1a8c547.cjs"),s=require("./css.1c33bc00.cjs"),m=e=>`v-on:${e.toLowerCase()}`,h=(e,t)=>o=>u.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function S(e){var r;const t={},o=(r=e.block.actions)!=null?r:{};for(const n in o){if(!o.hasOwnProperty(n))continue;const c=o[n];t[m(n)]=h(c,e)}return t}function k(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}function f(e){const t={};if(typeof e!="string")return t;const o=e.trim().split(/\\s+/);for(const r of o)t[r]=!0;return t}function b(e){return e.class=f(e.class),e}const x=e=>({href:e.href});function y(e){var o;const t={...x(e),...e.properties,"builder-id":e.id,style:v(e.style),class:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return b(t)}function v(e){if(!!e)switch(d.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return s.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":return e}}const g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],B=e=>typeof e=="string"&&g.includes(e.toLowerCase()),C=({block:e,context:t})=>{var n;const o=(n=s.getProcessedBlock({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:n.name;if(!o)return null;const r=t.registeredComponents[o];if(r)return r;console.warn(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),u=require("./evaluate.cff086ca.cjs"),d=require("./index.c16f4cca.cjs"),s=require("./css.24c082d4.cjs"),m=e=>`v-on:${e.toLowerCase()}`,h=(e,t)=>o=>u.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function S(e){var r;const t={},o=(r=e.block.actions)!=null?r:{};for(const n in o){if(!o.hasOwnProperty(n))continue;const c=o[n];t[m(n)]=h(c,e)}return t}function k(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}function f(e){const t={};if(typeof e!="string")return t;const o=e.trim().split(/\\s+/);for(const r of o)t[r]=!0;return t}function b(e){return e.class=f(e.class),e}const x=e=>({href:e.href});function y(e){var o;const t={...x(e),...e.properties,"builder-id":e.id,style:v(e.style),class:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return b(t)}function v(e){if(!!e)switch(d.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return s.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":return e}}const g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],B=e=>typeof e=="string"&&g.includes(e.toLowerCase()),C=({block:e,context:t})=>{var n;const o=(n=s.getProcessedBlock({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:n.name;if(!o)return null;const r=t.registeredComponents[o];if(r)return r;console.warn(`
2
2
  Could not find a registered component named "${o}".
3
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},_=({block:e,context:t})=>{const{repeat:o,...r}=e;if(!(o!=null&&o.collection))return;const n=u.evaluate({code:o.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),a=o.itemName||(c?c+"Item":"item");return n.map((i,l)=>({context:{...t,localState:{...t.localState,$index:l,$item:i,[a]:i,[`$${a}Index`]:l}},block:r}))},w=()=>Promise.resolve().then(()=>require("./block-styles.5d12dd48.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),P=()=>Promise.resolve().then(()=>require("./render-repeated-block.aeeee917.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}),E=()=>Promise.resolve().then(()=>require("./render-component.89838d4a.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=p.defineComponent({name:"render-block",components:{RenderComponent:E,RenderRepeatedBlock:P,BlockStyles:w},props:["block","context"],data(){return{component:C({block:this.block,context:this.context}),Tag:this.block.tagName||"div",isEmptyHtmlElement:B}},computed:{repeatItem(){return _({block:this.block,context:this.context})},useBlock(){return this.repeatItem?this.block:s.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return"hide"in this.useBlock?!this.useBlock.hide:"show"in this.useBlock?this.useBlock.show:!0},actions(){return S({block:this.useBlock,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})},attributes(){return{...y(this.useBlock)}},childrenWithoutParentComponent(){var t,o;return!((t=this.component)!=null&&t.component)&&!this.repeatItem?(o=this.useBlock.children)!=null?o:[]:[]},childrenContext(){const e=()=>({});return{apiKey:this.context.apiKey,apiVersion:this.context.apiVersion,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,content:this.context.content,context:this.context.context,registeredComponents:this.context.registeredComponents,inheritedStyles:e()}},renderComponentProps(){var e,t,o;return{blockChildren:(e=this.useBlock.children)!=null?e:[],componentRef:(t=this.component)==null?void 0:t.component,componentOptions:{...k(this.useBlock),...(o=this.component)!=null&&o.noWrap?{attributes:{...this.attributes,...this.actions}}:{}},context:this.childrenContext}}},methods:{stripVOn:function(t={}){return Object.keys(t).reduce((o,r)=>({...o,[r.replace("v-on:","")]:t[r]}),{})}}});var T=function(){var r;var t=this,o=t._self._c;return t._self._setupProxy,!Boolean(!((r=t.component)!=null&&r.noWrap))&&t.canShowBlock?o("render-component",t._b({},"render-component",t.renderComponentProps,!1)):t.isEmptyHtmlElement(t.Tag)&&t.canShowBlock?o(t.Tag,t._g(t._b({tag:"component"},"component",t.attributes,!1),t.stripVOn(t.actions))):!t.isEmptyHtmlElement(t.Tag)&&t.repeatItem&&t.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},t._l(t.repeatItem,function(n,c){return o("render-repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block}})}),1):t.canShowBlock?o(t.Tag,t._g(t._b({tag:"component"},"component",t.attributes,!1),t.stripVOn(t.actions)),[o("render-component",t._b({},"render-component",t.renderComponentProps,!1)),t._l(t.childrenWithoutParentComponent,function(n,c){return o("render-block",{key:"render-block-"+n.id,attrs:{block:n,context:t.childrenContext}})}),t._l(t.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:t.childrenContext}})})],2):t._e()},j=[],O=d.normalizeComponent(R,T,j,!1,null,null,null,null);const A=O.exports;exports.default=A;
3
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},_=({block:e,context:t})=>{const{repeat:o,...r}=e;if(!(o!=null&&o.collection))return;const n=u.evaluate({code:o.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),a=o.itemName||(c?c+"Item":"item");return n.map((i,l)=>({context:{...t,localState:{...t.localState,$index:l,$item:i,[a]:i,[`$${a}Index`]:l}},block:r}))},w=()=>Promise.resolve().then(()=>require("./block-styles.18ca317b.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),P=()=>Promise.resolve().then(()=>require("./render-repeated-block.5740965b.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}),E=()=>Promise.resolve().then(()=>require("./render-component.e8047ef5.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=p.defineComponent({name:"render-block",components:{RenderComponent:E,RenderRepeatedBlock:P,BlockStyles:w},props:["block","context"],data(){return{component:C({block:this.block,context:this.context}),Tag:this.block.tagName||"div",isEmptyHtmlElement:B}},computed:{repeatItem(){return _({block:this.block,context:this.context})},useBlock(){return this.repeatItem?this.block:s.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return"hide"in this.useBlock?!this.useBlock.hide:"show"in this.useBlock?this.useBlock.show:!0},actions(){return S({block:this.useBlock,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})},attributes(){return{...y(this.useBlock)}},childrenWithoutParentComponent(){var t,o;return!((t=this.component)!=null&&t.component)&&!this.repeatItem?(o=this.useBlock.children)!=null?o:[]:[]},childrenContext(){const e=()=>({});return{apiKey:this.context.apiKey,apiVersion:this.context.apiVersion,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,content:this.context.content,context:this.context.context,registeredComponents:this.context.registeredComponents,inheritedStyles:e()}},renderComponentProps(){var e,t,o;return{blockChildren:(e=this.useBlock.children)!=null?e:[],componentRef:(t=this.component)==null?void 0:t.component,componentOptions:{...k(this.useBlock),...(o=this.component)!=null&&o.noWrap?{attributes:{...this.attributes,...this.actions}}:{}},context:this.childrenContext}}},methods:{stripVOn:function(t={}){return Object.keys(t).reduce((o,r)=>({...o,[r.replace("v-on:","")]:t[r]}),{})}}});var T=function(){var r;var t=this,o=t._self._c;return t._self._setupProxy,!Boolean(!((r=t.component)!=null&&r.noWrap))&&t.canShowBlock?o("render-component",t._b({},"render-component",t.renderComponentProps,!1)):t.isEmptyHtmlElement(t.Tag)&&t.canShowBlock?o(t.Tag,t._g(t._b({tag:"component"},"component",t.attributes,!1),t.stripVOn(t.actions))):!t.isEmptyHtmlElement(t.Tag)&&t.repeatItem&&t.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},t._l(t.repeatItem,function(n,c){return o("render-repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block}})}),1):t.canShowBlock?o(t.Tag,t._g(t._b({tag:"component"},"component",t.attributes,!1),t.stripVOn(t.actions)),[o("render-component",t._b({},"render-component",t.renderComponentProps,!1)),t._l(t.childrenWithoutParentComponent,function(n,c){return o("render-block",{key:"render-block-"+n.id,attrs:{block:n,context:t.childrenContext}})}),t._l(t.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:t.childrenContext}})})],2):t._e()},j=[],O=d.normalizeComponent(R,T,j,!1,null,null,null,null);const A=O.exports;exports.default=A;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as c } from "vue";
2
- import { n as l } from "./index.75296c8a.js";
3
- const s = () => import("./block-styles.6046e541.js").then((e) => e.default).catch((e) => {
2
+ import { n as l } from "./index.e2db82e0.js";
3
+ const s = () => import("./block-styles.69ca115c.js").then((e) => e.default).catch((e) => {
4
4
  throw console.error(
5
5
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
6
6
  e
7
7
  ), e;
8
- }), m = () => import("./render-block.0c043cce.js").then((e) => e.default).catch((e) => {
8
+ }), m = () => import("./render-block.0f23cd7e.js").then((e) => e.default).catch((e) => {
9
9
  throw console.error(
10
10
  "Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
11
11
  e
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),l=require("./index.c16f4cca.cjs"),s=()=>Promise.resolve().then(()=>require("./block-styles.18ca317b.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",n),n}),i=()=>Promise.resolve().then(()=>require("./render-block.954cc390.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",n),n}),a=r.defineComponent({name:"render-component",components:{RenderBlock:i,BlockStyles:s},props:["componentRef","componentOptions","blockChildren","context"]});var m=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.componentRef?t(e.componentRef,e._b({tag:"component"},"component",e.componentOptions,!1),[e._l(e.blockChildren,function(o,c){return t("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.context}})}),e._l(e.blockChildren,function(o,c){return t("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},d=[],p=l.normalizeComponent(a,m,d,!1,null,null,null,null);const u=p.exports;exports.default=u;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h } from "vue";
2
- import { s as b, n as f, i as m, B as R, C as I, F as w, I as _, S as E, d as F, e as V, V as A, r as U, b as g, T, c as P, h as j, j as H, k as $, l as W, m as L, _ as v, o as M, p as q, q as B } from "./index.75296c8a.js";
3
- import { e as x } from "./evaluate.9b61c455.js";
2
+ import { s as b, n as f, i as m, B as R, C as I, F as w, I as _, S as E, d as F, e as V, V as A, r as U, b as g, T, c as P, h as j, j as H, k as $, l as W, m as L, _ as v, o as M, p as q, q as B } from "./index.e2db82e0.js";
3
+ import { e as x } from "./evaluate.8238dbc9.js";
4
4
  const N = {
5
5
  name: "Core:Button",
6
6
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -854,7 +854,7 @@ const fe = he.exports, ge = {
854
854
  { component: F, ...J },
855
855
  { component: V, ...Y },
856
856
  { component: A, ...G }
857
- ], ye = "0.4.0", ve = () => {
857
+ ], ye = "0.4.1", ve = () => {
858
858
  U("insertMenu", {
859
859
  name: "_default",
860
860
  default: !0,
@@ -995,12 +995,12 @@ const Ce = (e, t, n = !0) => {
995
995
  ...t
996
996
  },
997
997
  meta: e == null ? void 0 : e.meta
998
- } : void 0, Ie = () => import("./index.75296c8a.js").then((e) => e.z).then((e) => e.default).catch((e) => {
998
+ } : void 0, Ie = () => import("./index.e2db82e0.js").then((e) => e.A).then((e) => e.default).catch((e) => {
999
999
  throw console.error(
1000
1000
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1001
1001
  e
1002
1002
  ), e;
1003
- }), we = () => import("./render-styles.0e5b622f.js").then((e) => e.default).catch((e) => {
1003
+ }), we = () => import("./render-styles.af4e2d5a.js").then((e) => e.default).catch((e) => {
1004
1004
  throw console.error(
1005
1005
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1006
1006
  e