@builder.io/sdk-react-nextjs 0.9.0 → 0.11.0

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 (31) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-bf9c49b7.cjs → USE_CLIENT_BUNDLE-edb9d9fb.cjs} +3 -3
  2. package/lib/{node/USE_CLIENT_BUNDLE-f9aeb249.js → browser/USE_CLIENT_BUNDLE-f0aeb87c.js} +4 -4
  3. package/lib/{edge/USE_SERVER_BUNDLE-839ea6b2.js → browser/USE_SERVER_BUNDLE-0ea3e848.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-fce92ad5.cjs → browser/USE_SERVER_BUNDLE-3ae19308.cjs} +1 -1
  5. package/lib/browser/{bundle-dc5a8b6f.cjs → bundle-48159788.cjs} +3 -3
  6. package/lib/browser/{bundle-a454b553.js → bundle-9c29c9d1.js} +7 -9
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{browser/USE_CLIENT_BUNDLE-dfea4654.js → edge/USE_CLIENT_BUNDLE-1cacf6c8.js} +4 -4
  10. package/lib/{node/USE_CLIENT_BUNDLE-ed964e93.cjs → edge/USE_CLIENT_BUNDLE-97438f67.cjs} +3 -3
  11. package/lib/{node/USE_SERVER_BUNDLE-8da077cb.cjs → edge/USE_SERVER_BUNDLE-3783d376.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-4a85453c.js → edge/USE_SERVER_BUNDLE-668b44ba.js} +1 -1
  13. package/lib/edge/{bundle-c0cd3b98.js → bundle-28c9300c.js} +7 -9
  14. package/lib/edge/{bundle-af3f93cf.cjs → bundle-b154d2ce.cjs} +3 -3
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-ab37324a.js → node/USE_CLIENT_BUNDLE-674c3a2b.js} +4 -4
  18. package/lib/{edge/USE_CLIENT_BUNDLE-e6667575.cjs → node/USE_CLIENT_BUNDLE-da39207d.cjs} +3 -3
  19. package/lib/{browser/USE_SERVER_BUNDLE-b7c58bed.js → node/USE_SERVER_BUNDLE-1b907ae9.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-ad40cda1.cjs → node/USE_SERVER_BUNDLE-3c56bf9c.cjs} +1 -1
  21. package/lib/node/{bundle-1b559f4d.js → bundle-24b5f3b0.js} +12 -14
  22. package/lib/node/{bundle-0a83b0be.cjs → bundle-a7c78519.cjs} +3 -3
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/constants/sdk-version.d.ts +1 -1
  27. package/types/cjs/functions/get-content/index.d.ts +2 -2
  28. package/types/cjs/types/targets.d.ts +1 -1
  29. package/types/esm/constants/sdk-version.d.ts +1 -1
  30. package/types/esm/functions/get-content/index.d.ts +2 -2
  31. package/types/esm/types/targets.d.ts +1 -1
@@ -1,10 +1,10 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-dc5a8b6f.cjs"),l=require("react"),V=require("./USE_SERVER_BUNDLE-ad40cda1.cjs"),A=require("next/navigation");function D(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-5294b10c",children:e.text})}),t.jsx("style",{children:`.button-5294b10c {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-48159788.cjs"),l=require("react"),V=require("./USE_SERVER_BUNDLE-3ae19308.cjs"),A=require("next/navigation");function D(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-3ecc5438",children:e.text})}),t.jsx("style",{children:`.button-3ecc5438 {
2
2
  all: unset;
3
3
  }`})]})}function U(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function H(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function O(e){function a(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,f;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((f=window.parent)==null||f.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function x(){var s,f;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((f=window.parent)==null||f.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:a()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>x(),onKeyPress:s=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  align-items: stretch;
7
- }`})]})}function J(e){return t.jsx("span",{children:e.children})}function $(e){var s,f,S,v;function a(){var h;const r=e.image||e.src;if(!r||!(r.match(/builder\.io/)||r.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((h=e.image)!=null&&h.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),c.getSrcSet(r)}else if(e.image&&!e.srcset)return c.getSrcSet(r);return c.getSrcSet(r)}function g(){var b;return(b=a==null?void 0:a())!=null&&b.match(/builder\.io/)&&!e.noWebp?a().replace(/\?/g,"?format=webp&"):""}function x(){const b={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?b:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...x()},className:"builder-image"+(e.className?" "+e.className:"")+" img-dbab4030",src:e.image,srcSet:a(),sizes:e.sizes})]}),e.aspectRatio&&!((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length&&e.fitContent)?t.jsx(t.Fragment,{children:t.jsx("div",{className:"builder-image-sizer div-dbab4030",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&e.children?t.jsx(t.Fragment,{children:t.jsx("div",{className:"div-dbab4030-2",children:e.children})}):null]}),t.jsx("style",{children:`.img-dbab4030 {
7
+ }`})]})}function J(e){return t.jsx("span",{children:e.children})}function $(e){var s,f,S,v;function a(){var b;const r=e.image||e.src;if(!r||!(r.match(/builder\.io/)||r.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((b=e.image)!=null&&b.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),c.getSrcSet(r)}else if(e.image&&!e.srcset)return c.getSrcSet(r);return c.getSrcSet(r)}function g(){var h;return(h=a==null?void 0:a())!=null&&h.match(/builder\.io/)&&!e.noWebp?a().replace(/\?/g,"?format=webp&"):""}function x(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...x()},className:"builder-image"+(e.className?" "+e.className:"")+" img-dbab4030",src:e.image,srcSet:a(),sizes:e.sizes})]}),e.aspectRatio&&!((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length&&e.fitContent)?t.jsx(t.Fragment,{children:t.jsx("div",{className:"builder-image-sizer div-dbab4030",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&e.children?t.jsx(t.Fragment,{children:t.jsx("div",{className:"div-dbab4030-2",children:e.children})}):null]}),t.jsx("style",{children:`.img-dbab4030 {
8
8
  opacity: 1;
9
9
  transition: opacity 0.2s ease-in-out;
10
10
  }.div-dbab4030 {
@@ -20,4 +20,4 @@
20
20
  left: 0;
21
21
  width: 100%;
22
22
  height: 100%;
23
- }`})]})}function G(e){return t.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}function Q(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]);return l.useEffect(()=>{var v;if(!((v=a.current)!=null&&v.getElementsByTagName)||typeof window>"u")return;const S=a.current.getElementsByTagName("script");for(let b=0;b<S.length;b++){const r=S[b];if(r.src){if(g.includes(r.src))continue;g.push(r.src);const h=document.createElement("script");h.async=!0,h.src=r.src,document.head.appendChild(h)}else if(!r.type||["text/javascript","application/javascript","application/ecmascript"].includes(r.type)){if(s.includes(r.innerText))continue;try{s.push(r.innerText),new Function(r.innerText)()}catch(h){console.warn("`CustomCode`: Error running script:",h)}}}},[]),t.jsx("div",{ref:a,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}function X(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]),[S,v]=l.useState(()=>!1);function b(){if(!a.current||!a.current.getElementsByTagName)return;const r=a.current.getElementsByTagName("script");for(let h=0;h<r.length;h++){const k=r[h];if(k.src&&!g.includes(k.src)){g.push(k.src);const y=document.createElement("script");y.async=!0,y.src=k.src,document.head.appendChild(y)}else if(c.isJsScript(k)&&!s.includes(k.innerText))try{s.push(k.innerText),new Function(k.innerText)()}catch(y){console.warn("`Embed`: Error running script:",y)}}}return l.useEffect(()=>{a.current&&!S&&(v(!0),b())},[a.current,S]),t.jsx("div",{className:"builder-embed",ref:a,dangerouslySetInnerHTML:{__html:e.content}})}function Y(e){return t.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},c.isEditing()&&e.imgSrc||"default-key")}function Z(e){var x,s,f,S,v,b,r;function a(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function g(){return{...a()}}return t.jsxs("div",{style:{position:"relative"},children:[t.jsx("video",{className:"builder-video",...g(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(x=e.attributes)==null?void 0:x.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:t.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length))?t.jsx(t.Fragment,{children:t.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(r=(b=e.builderBlock)==null?void 0:b.children)!=null&&r.length&&!e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const p=l.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});function ee(e){var I,P,B,F,T,N,L;const a=l.useRef(null),[g,x]=l.useState(()=>0);function s(n){var o,d,u,m,W;const i={...e.builderContextSignal.content,...n,data:{...(o=e.builderContextSignal.content)==null?void 0:o.data,...n==null?void 0:n.data},meta:{...(d=e.builderContextSignal.content)==null?void 0:d.meta,...n==null?void 0:n.meta,breakpoints:((u=n==null?void 0:n.meta)==null?void 0:u.breakpoints)||((W=(m=e.builderContextSignal.content)==null?void 0:m.meta)==null?void 0:W.breakpoints)}};V.postPreviewContent({value:i,key:i.id}).then(()=>{M.refresh()})}l.useState(()=>0);const[f,S]=l.useState(()=>!1),[v,b]=l.useState(()=>e.contentWrapper||"div");function r(n){var o;const{data:i}=n;if(i)switch(i.type){case"builder.configureSdk":{const d=i.data,{breakpoints:u,contentId:m}=d;if(!m||m!==((o=e.builderContextSignal.content)==null?void 0:o.id))return;u&&s({meta:{breakpoints:u}}),x(g+1);break}case"builder.contentUpdate":{const d=i.data,u=d.key||d.alias||d.entry||d.modelName,m=d.data;u===e.model&&(s(m),x(g+1));break}}}function h(){var i,o;const n=(o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.jsCode;n&&c.evaluate({code:n,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[k,y]=l.useState(()=>({})),[E,K]=l.useState(()=>!1);function q(n){var i,o;if(e.builderContextSignal.content){const d=(i=e.builderContextSignal.content)==null?void 0:i.testVariationId,u=(o=e.builderContextSignal.content)==null?void 0:o.id;c._track({type:"click",canTrack:c.getDefaultCanTrack(e.canTrack),contentId:u,apiKey:e.apiKey,variationId:d!==u?d:void 0,...c.getInteractionPropertiesForEvent(n),unique:!E})}E||K(!0)}function _(n){return n.replace(/{{([^}]+)}}/g,(i,o)=>c.evaluate({code:o,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function z({url:n,key:i}){c.fetch(n).then(o=>o.json()).then(o=>{var u,m;const d={...e.builderContextSignal.rootState,[i]:o};(m=(u=e.builderContextSignal).rootSetState)==null||m.call(u,d),k[i]=!0}).catch(o=>{console.error("error fetching dynamic data",n,o)})}function j(){var i,o;const n=((o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.httpRequests)??{};Object.entries(n).forEach(([d,u])=>{if(u&&(!k[d]||c.isEditing())){const m=_(u);z({url:m,key:d})}})}function C(){c.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:c.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function w(n){x(g+1),window.addEventListener("message",r),c.registerInsertMenu(),c.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(i=>{var d;const o=c.createRegisterComponentMessage(i);(d=window.parent)==null||d.postMessage(o,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",C)}function R(n){const i=new URL(location.href).searchParams,o=i.get("builder.preview"),d=i.get(`builder.preview.${o}`),u=i.get("apiKey")||i.get("builder.space");o===e.model&&u===e.apiKey&&(!e.content||d===e.content.id)&&c.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(m=>{m&&s(m)})}const M=A.useRouter();return l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initeditingbldr",w),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initeditingbldr",w)}},[]),l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initpreviewingbldr",R),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initpreviewingbldr",R)}},[]),l.useEffect(()=>{var n,i;if(c.isBrowser()){if(c.isEditing()&&a.current&&a.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&c.getDefaultCanTrack(e.canTrack)){const d=(n=e.builderContextSignal.content)==null?void 0:n.testVariationId,u=(i=e.builderContextSignal.content)==null?void 0:i.id,m=e.apiKey;c._track({type:"impression",canTrack:!0,contentId:u,apiKey:m,variationId:d!==u?d:void 0})}c.isPreviewing()&&a.current}},[]),l.useEffect(()=>{e.apiKey||c.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),h(),j(),C()},[]),l.useEffect(()=>{},[e.content]),l.useEffect(()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.addEventListener("message",r))},[f]),l.useEffect(()=>{h()},[(P=(I=e.builderContextSignal.content)==null?void 0:I.data)==null?void 0:P.jsCode,e.builderContextSignal.rootState]),l.useEffect(()=>{j()},[(F=(B=e.builderContextSignal.content)==null?void 0:B.data)==null?void 0:F.httpRequests]),l.useEffect(()=>{C()},[e.builderContextSignal.rootState]),l.useEffect(()=>()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.removeEventListener("builder:component:stateChangeListenerActivated",C))},[]),t.jsx(p.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?t.jsx(t.Fragment,{children:l.createElement(v,{key:g,ref:a,onClick:n=>q(n),"builder-content-id":(T=e.builderContextSignal.content)==null?void 0:T.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((N=e.content)==null?void 0:N.testVariationId)||((L=e.content)==null?void 0:L.id)}`},e.children)}):null})}exports.BlockWrapper=U;exports.BlocksWrapper=O;exports.Button=D;exports.CustomCode=Q;exports.Embed=X;exports.EnableEditor=ee;exports.FragmentComponent=J;exports.Image=$;exports.ImgComponent=Y;exports.InteractiveElement=H;exports.SectionComponent=G;exports.Video=Z;
23
+ }`})]})}function G(e){return t.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}function Q(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]);return l.useEffect(()=>{var v;if(!((v=a.current)!=null&&v.getElementsByTagName)||typeof window>"u")return;const S=a.current.getElementsByTagName("script");for(let h=0;h<S.length;h++){const r=S[h];if(r.src){if(g.includes(r.src))continue;g.push(r.src);const b=document.createElement("script");b.async=!0,b.src=r.src,document.head.appendChild(b)}else if(!r.type||["text/javascript","application/javascript","application/ecmascript"].includes(r.type)){if(s.includes(r.innerText))continue;try{s.push(r.innerText),new Function(r.innerText)()}catch(b){console.warn("`CustomCode`: Error running script:",b)}}}},[]),t.jsx("div",{ref:a,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}function X(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]),[S,v]=l.useState(()=>!1);function h(){if(!a.current||!a.current.getElementsByTagName)return;const r=a.current.getElementsByTagName("script");for(let b=0;b<r.length;b++){const k=r[b];if(k.src&&!g.includes(k.src)){g.push(k.src);const y=document.createElement("script");y.async=!0,y.src=k.src,document.head.appendChild(y)}else if(c.isJsScript(k)&&!s.includes(k.innerText))try{s.push(k.innerText),new Function(k.innerText)()}catch(y){console.warn("`Embed`: Error running script:",y)}}}return l.useEffect(()=>{a.current&&!S&&(v(!0),h())},[a.current,S]),t.jsx("div",{className:"builder-embed",ref:a,dangerouslySetInnerHTML:{__html:e.content}})}function Y(e){return t.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},c.isEditing()&&e.imgSrc||"default-key")}function Z(e){var x,s,f,S,v,h,r;function a(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function g(){return{...a()}}return t.jsxs("div",{style:{position:"relative"},children:[t.jsx("video",{className:"builder-video",...g(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(x=e.attributes)==null?void 0:x.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:t.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length))?t.jsx(t.Fragment,{children:t.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(r=(h=e.builderBlock)==null?void 0:h.children)!=null&&r.length&&!e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const p=l.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});function ee(e){var I,P,B,F,T,N,L;const a=l.useRef(null),[g,x]=l.useState(()=>0);function s(n){var o,d,u,m,W;const i={...e.builderContextSignal.content,...n,data:{...(o=e.builderContextSignal.content)==null?void 0:o.data,...n==null?void 0:n.data},meta:{...(d=e.builderContextSignal.content)==null?void 0:d.meta,...n==null?void 0:n.meta,breakpoints:((u=n==null?void 0:n.meta)==null?void 0:u.breakpoints)||((W=(m=e.builderContextSignal.content)==null?void 0:m.meta)==null?void 0:W.breakpoints)}};V.postPreviewContent({value:i,key:i.id}).then(()=>{M.refresh()})}l.useState(()=>0);const[f,S]=l.useState(()=>!1),[v,h]=l.useState(()=>e.contentWrapper||"div");function r(n){var o;const{data:i}=n;if(i)switch(i.type){case"builder.configureSdk":{const d=i.data,{breakpoints:u,contentId:m}=d;if(!m||m!==((o=e.builderContextSignal.content)==null?void 0:o.id))return;u&&s({meta:{breakpoints:u}}),x(g+1);break}case"builder.contentUpdate":{const d=i.data,u=d.key||d.alias||d.entry||d.modelName,m=d.data;u===e.model&&(s(m),x(g+1));break}}}function b(){var i,o;const n=(o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.jsCode;n&&c.evaluate({code:n,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[k,y]=l.useState(()=>({})),[E,K]=l.useState(()=>!1);function q(n){var i,o;if(e.builderContextSignal.content){const d=(i=e.builderContextSignal.content)==null?void 0:i.testVariationId,u=(o=e.builderContextSignal.content)==null?void 0:o.id;c._track({type:"click",canTrack:c.getDefaultCanTrack(e.canTrack),contentId:u,apiKey:e.apiKey,variationId:d!==u?d:void 0,...c.getInteractionPropertiesForEvent(n),unique:!E})}E||K(!0)}function _(n){return n.replace(/{{([^}]+)}}/g,(i,o)=>c.evaluate({code:o,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function z({url:n,key:i}){c.fetch(n).then(o=>o.json()).then(o=>{var u,m;const d={...e.builderContextSignal.rootState,[i]:o};(m=(u=e.builderContextSignal).rootSetState)==null||m.call(u,d),k[i]=!0}).catch(o=>{console.error("error fetching dynamic data",n,o)})}function j(){var i,o;const n=((o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.httpRequests)??{};Object.entries(n).forEach(([d,u])=>{if(u&&(!k[d]||c.isEditing())){const m=_(u);z({url:m,key:d})}})}function C(){c.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:c.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function w(n){x(g+1),window.addEventListener("message",r),c.registerInsertMenu(),c.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(i=>{var d;const o=c.createRegisterComponentMessage(i);(d=window.parent)==null||d.postMessage(o,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",C)}function R(n){const i=new URL(location.href).searchParams,o=i.get("builder.preview"),d=i.get(`builder.preview.${o}`),u=i.get("apiKey")||i.get("builder.space");o===e.model&&u===e.apiKey&&(!e.content||d===e.content.id)&&c.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(m=>{m&&s(m)})}const M=A.useRouter();return l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initeditingbldr",w),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initeditingbldr",w)}},[]),l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initpreviewingbldr",R),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initpreviewingbldr",R)}},[]),l.useEffect(()=>{var n,i;if(c.isBrowser()){if(c.isEditing()&&a.current&&a.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&c.getDefaultCanTrack(e.canTrack)){const d=(n=e.builderContextSignal.content)==null?void 0:n.testVariationId,u=(i=e.builderContextSignal.content)==null?void 0:i.id,m=e.apiKey;c._track({type:"impression",canTrack:!0,contentId:u,apiKey:m,variationId:d!==u?d:void 0})}c.isPreviewing()&&a.current}},[]),l.useEffect(()=>{e.apiKey||c.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),b(),j(),C()},[]),l.useEffect(()=>{},[e.content]),l.useEffect(()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.addEventListener("message",r))},[f]),l.useEffect(()=>{b()},[(P=(I=e.builderContextSignal.content)==null?void 0:I.data)==null?void 0:P.jsCode,e.builderContextSignal.rootState]),l.useEffect(()=>{j()},[(F=(B=e.builderContextSignal.content)==null?void 0:B.data)==null?void 0:F.httpRequests]),l.useEffect(()=>{C()},[e.builderContextSignal.rootState]),l.useEffect(()=>()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.removeEventListener("builder:component:stateChangeListenerActivated",C))},[]),t.jsx(p.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?t.jsx(t.Fragment,{children:l.createElement(v,{key:g,ref:a,onClick:n=>q(n),"builder-content-id":(T=e.builderContextSignal.content)==null?void 0:T.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((N=e.content)==null?void 0:N.testVariationId)||((L=e.content)==null?void 0:L.id)}`},e.children)}):null})}exports.BlockWrapper=U;exports.BlocksWrapper=O;exports.Button=D;exports.CustomCode=Q;exports.Embed=X;exports.EnableEditor=ee;exports.FragmentComponent=J;exports.Image=$;exports.ImgComponent=Y;exports.InteractiveElement=H;exports.SectionComponent=G;exports.Video=Z;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as C, Fragment as m, jsx as i } from "react/jsx-runtime";
3
- import { g as T, a as B, i as E, b as R, c as Y, d as P, e as U, _ as H, f as Z, l as p, h as O, j as ee, k as te, r as ne, s as ie, m as ae, n as ce, o as re } from "./bundle-1b559f4d.js";
3
+ import { g as T, a as B, i as E, b as R, c as Y, d as P, e as U, _ as H, f as Z, l as p, h as O, j as ee, k as te, r as ne, s as ie, m as ae, n as ce, o as re } from "./bundle-9c29c9d1.js";
4
4
  import { useRef as N, useState as k, useEffect as v, createContext as oe, createElement as le } from "react";
5
- import { p as de } from "./USE_SERVER_BUNDLE-4a85453c.js";
5
+ import { p as de } from "./USE_SERVER_BUNDLE-0ea3e848.js";
6
6
  import { useRouter as se } from "next/navigation";
7
7
  function Se(e) {
8
8
  return /* @__PURE__ */ C(m, { children: [
@@ -20,11 +20,11 @@ function Se(e) {
20
20
  {
21
21
  ...e.attributes,
22
22
  style: e.attributes.style,
23
- className: e.attributes.className + " button-5294b10c",
23
+ className: e.attributes.className + " button-3ecc5438",
24
24
  children: e.text
25
25
  }
26
26
  ) }),
27
- /* @__PURE__ */ i("style", { children: `.button-5294b10c {
27
+ /* @__PURE__ */ i("style", { children: `.button-3ecc5438 {
28
28
  all: unset;
29
29
  }` })
30
30
  ] });
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { p as s } from "./bundle-c0cd3b98.js";
2
+ import { p as s } from "./bundle-9c29c9d1.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-af3f93cf.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-48159788.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,11 +1,11 @@
1
- "use strict";const Ne=require("lru-cache"),s=require("react/jsx-runtime"),_e=require("react"),S=require("./USE_CLIENT_BUNDLE-bf9c49b7.cjs");require("next/navigation");function Le(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const B="[Builder.io]: ",k={log:(...e)=>console.log(B,...e),error:(...e)=>console.error(B,...e),warn:(...e)=>console.warn(B,...e),debug:(...e)=>console.debug(B,...e)};function x(){return typeof window<"u"&&typeof document<"u"}const I="rsc";function Ue(){return x()&&window.self!==window.top}function $(){return Ue()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Me=()=>{if(x()){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},De=()=>typeof navigator=="object"&&navigator.userAgent||"",ue=()=>{const e=De(),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()||I==="reactNative"}},n=e.match(/Tablet|iPad/i),o=Me();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},Ke=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),He=()=>({isEditing:$(),isBrowser:x(),isServer:!x(),getUserAttributes:()=>ue()}),ze=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Q=({code:e,builder:t,context:n,event:o,localState:i,rootSetState:r,rootState:a})=>{const c=Ke({builder:t,context:n,event:o,state:qe(a,i,r)});return new Function(...c.map(([l])=>l),e)(...c.map(([,l])=>l))};function qe(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(o,i)=>t&&i in t?t[i]:e[i],set:(o,i,r)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[i]=r,n==null||n(e),!0}})}const Ge=e=>(x(),Q(e));function F({code:e,context:t,localState:n,rootState:o,rootSetState:i,event:r,isExpression:a=!0}){if(e===""){k.warn("Skipping evaluation of empty code block.");return}const c={code:ze(e,{isExpression:a}),builder:He(),context:t,event:r,rootSetState:i,rootState:o,localState:n};try{return Ge(c)}catch(l){k.error("Failed code evaluation: "+l.message,{code:e});return}}const R=e=>JSON.parse(JSON.stringify(e)),Je=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((i,r,a)=>Object(i[r])===i[r]?i[r]:i[r]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e};const Ye=({block:e,context:t,localState:n,rootState:o,rootSetState:i})=>{if(!e.bindings)return e;const r=R(e),a={...r,properties:{...r.properties},actions:{...r.actions}};for(const c in e.bindings){const l=e.bindings[c],m=F({code:l,localState:n,rootState:o,rootSetState:i,context:t});Je(a,c,m)}return a};function j({block:e,context:t,shouldEvaluateBindings:n,localState:o,rootState:i,rootSetState:r}){const a=e;return n?Ye({block:a,localState:o,rootState:i,rootSetState:r,context:t}):a}const Qe=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],U=e=>typeof e=="string"&&Qe.includes(e.toLowerCase()),Xe=({block:e,context:t,registeredComponents:n})=>{var r;const o=(r=j({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!o)return null;const i=n[o];if(i)return i;console.warn(`
1
+ "use strict";const Ne=require("lru-cache"),s=require("react/jsx-runtime"),_e=require("react"),S=require("./USE_CLIENT_BUNDLE-edb9d9fb.cjs");require("next/navigation");function Le(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const B="[Builder.io]: ",k={log:(...e)=>console.log(B,...e),error:(...e)=>console.error(B,...e),warn:(...e)=>console.warn(B,...e),debug:(...e)=>console.debug(B,...e)};function x(){return typeof window<"u"&&typeof document<"u"}const I="rsc";function Ue(){return x()&&window.self!==window.top}function $(){return Ue()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const Me=()=>{if(x()){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},De=()=>typeof navigator=="object"&&navigator.userAgent||"",ue=()=>{const e=De(),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()||I==="reactNative"}},n=e.match(/Tablet|iPad/i),o=Me();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},Ke=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),He=()=>({isEditing:$(),isBrowser:x(),isServer:!x(),getUserAttributes:()=>ue()}),ze=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,Q=({code:e,builder:t,context:n,event:o,localState:i,rootSetState:r,rootState:a})=>{const c=Ke({builder:t,context:n,event:o,state:qe(a,i,r)});return new Function(...c.map(([l])=>l),e)(...c.map(([,l])=>l))};function qe(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(o,i)=>t&&i in t?t[i]:e[i],set:(o,i,r)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[i]=r,n==null||n(e),!0}})}const Ge=e=>(x(),Q(e));function F({code:e,context:t,localState:n,rootState:o,rootSetState:i,event:r,isExpression:a=!0}){if(e===""){k.warn("Skipping evaluation of empty code block.");return}const c={code:ze(e,{isExpression:a}),builder:He(),context:t,event:r,rootSetState:i,rootState:o,localState:n};try{return Ge(c)}catch(l){k.error("Failed code evaluation: "+l.message,{code:e});return}}const R=e=>JSON.parse(JSON.stringify(e)),Je=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((i,r,a)=>Object(i[r])===i[r]?i[r]:i[r]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e};const Ye=({block:e,context:t,localState:n,rootState:o,rootSetState:i})=>{if(!e.bindings)return e;const r=R(e),a={...r,properties:{...r.properties},actions:{...r.actions}};for(const c in e.bindings){const l=e.bindings[c],m=F({code:l,localState:n,rootState:o,rootSetState:i,context:t});Je(a,c,m)}return a};function j({block:e,context:t,shouldEvaluateBindings:n,localState:o,rootState:i,rootSetState:r}){const a=e;return n?Ye({block:a,localState:o,rootState:i,rootSetState:r,context:t}):a}const Qe=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],U=e=>typeof e=="string"&&Qe.includes(e.toLowerCase()),Xe=({block:e,context:t,registeredComponents:n})=>{var r;const o=(r=j({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!o)return null;const i=n[o];if(i)return i;console.warn(`
2
2
  Could not find a registered component named "${o}".
3
3
  If you registered it, is the file that registered it imported by the file that needs to render it?`)},Ze=({block:e,context:t})=>{const{repeat:n,...o}=e;if(!(n!=null&&n.collection))return;const i=F({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(i))return;const r=n.collection.split(".").pop(),a=n.itemName||(r?r+"Item":"item");return i.map((l,m)=>({context:{...t,localState:{...t.localState,$index:m,$item:l,[a]:l,[`$${a}Index`]:m}},block:o}))},me={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},X=(e,t=me)=>`@media (max-width: ${t[e].max}px)`,fe=({small:e,medium:t})=>{const n=R(me);if(!e||!t)return n;const o=Math.floor(e/2);n.small={max:e,min:o,default:o+1};const i=n.small.max+1;n.medium={max:t,min:i,default:i+1};const r=n.medium.max+1;return n.large={max:2e3,min:r,default:r+1},n},et=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),w=e=>e!=null,he=e=>Object.entries(e).map(([n,o])=>{if(typeof o=="string")return`${et(n)}: ${o};`}).filter(w),tt=e=>he(e).join(`
4
4
  `),M=({mediaQuery:e,className:t,styles:n})=>{const o=`.${t} {
5
5
  ${tt(n)}
6
6
  }`;return e?`${e} {
7
7
  ${o}
8
- }`:o};function O(e){return s.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function H(e){const t=function(){const i=j({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return w(i.hide)?!i.hide:w(i.show)?i.show:!0},n=function(){var d;const i=j({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),r=i.responsiveStyles,a=e.context.content,c=fe(((d=a==null?void 0:a.meta)==null?void 0:d.breakpoints)||{}),l=r==null?void 0:r.large,m=r==null?void 0:r.medium,h=r==null?void 0:r.small,g=i.id;if(!g)return"";const y=l?M({className:g,styles:l}):"",u=m?M({className:g,styles:m,mediaQuery:X("medium",c)}):"",f=h?M({className:g,styles:h,mediaQuery:X("small",c)}):"";return[y,u,f].join(" ")};return s.jsx(s.Fragment,{children:n()&&t()?s.jsx(s.Fragment,{children:s.jsx(O,{styles:n()})}):null})}function nt(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ot=e=>`on${nt(e)}`,it=(e,t)=>n=>F({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1});function rt(e){const t={},n=e.block.actions??{};for(const o in n){if(!n.hasOwnProperty(o))continue;const i=n[o];let r=ot(o);if(e.stripPrefix)switch(I){case"vue2":case"vue3":r=r.replace("v-on:","");break;case"svelte":r=r.replace("on:","");break}t[r]=it(i,e)}return t}function at({properties:e}){return e.className=e.class,delete e.class,e}const st=e=>({href:e.href});function ge({block:e,context:t}){var o;const n={...st(e),...e.properties,"builder-id":e.id,style:e.style?ct(e.style):void 0,class:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return at({properties:n,context:t,block:e})}function ct(e){switch(I){case"svelte":case"vue2":case"vue3":case"solid":return he(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const lt=({componentOptions:e,builderBlock:t,context:n,componentRef:o,includeBlockProps:i,isInteractive:r,contextValue:a})=>r?{Wrapper:o,block:t,context:n,wrapperProps:e}:{...e,...i?{attributes:ge({block:t,context:a})}:{}};function Z(e){var n,o;const t=e.isInteractive?S.InteractiveElement:e.componentRef;return s.jsx(s.Fragment,{children:e.componentRef?s.jsx(s.Fragment,{children:s.jsxs(t,{...lt({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:[(n=e.blockChildren)==null?void 0:n.map(i=>s.jsx(N,{block:i,context:e.context,registeredComponents:e.registeredComponents},"block-"+i.id)),(o=e.blockChildren)==null?void 0:o.map(i=>s.jsx(H,{block:i,context:e.context},"block-style-"+i.id))]})}):null})}function dt(e){const t=e.repeatContext;return s.jsx(N,{block:e.block,context:t,registeredComponents:e.registeredComponents})}function N(e){var m,h,g,y;const t=function(){return Xe({block:e.block,context:e.context,registeredComponents:e.registeredComponents})},n=function(){return Ze({block:e.block,context:e.context})},o=function(){var f;return(f=e.block.repeat)!=null&&f.collection?e.block:j({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})},i=function(){return e.block.tagName||"div"},r=function(){var b,v;if((b=e.block.repeat)!=null&&b.collection)return!!((v=n())!=null&&v.length);const f="hide"in o()?o().hide:!1;return("show"in o()?o().show:!0)&&!f},a=function(){var d;return!((d=t())!=null&&d.component)&&!n()?o().children??[]:[]},c=function(){var f,d,b,v,p;return{blockChildren:o().children??[],componentRef:(f=t())==null?void 0:f.component,componentOptions:{...Le(o()),builderContext:e.context,...((d=t())==null?void 0:d.name)==="Symbol"||((b=t())==null?void 0:b.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:l,registeredComponents:e.registeredComponents,builderBlock:o(),includeBlockProps:((v=t())==null?void 0:v.noWrap)===!0,isInteractive:!((p=t())!=null&&p.isRSC)}},l=e.context;return s.jsx(s.Fragment,{children:r()?s.jsx(s.Fragment,{children:(m=t())!=null&&m.noWrap?s.jsx(s.Fragment,{children:s.jsx(Z,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive})}):s.jsxs(s.Fragment,{children:[U(i())?s.jsx(s.Fragment,{children:s.jsx(S.BlockWrapper,{Wrapper:i(),block:o(),context:e.context,hasChildren:!1})}):null,!U(i())&&n()?s.jsx(s.Fragment,{children:(h=n())==null?void 0:h.map((u,f)=>s.jsx(dt,{repeatContext:u.context,block:u.block,registeredComponents:e.registeredComponents},f))}):null,!U(i())&&!n()?s.jsx(s.Fragment,{children:s.jsxs(S.BlockWrapper,{Wrapper:i(),block:o(),context:e.context,hasChildren:!0,children:[s.jsx(Z,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive}),(g=a())==null?void 0:g.map(u=>s.jsx(N,{block:u,context:l,registeredComponents:e.registeredComponents},"block-"+u.id)),(y=a())==null?void 0:y.map(u=>s.jsx(H,{block:u,context:l},"block-style-"+u.id))]})}):null]})}):null})}function _(e){var t,n,o,i;return s.jsxs(S.BlocksWrapper,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(t=e.context)==null?void 0:t.BlocksWrapper,BlocksWrapperProps:(n=e.context)==null?void 0:n.BlocksWrapperProps,children:[e.blocks?s.jsx(s.Fragment,{children:(o=e.blocks)==null?void 0:o.map(r=>s.jsx(N,{block:r,context:e.context,registeredComponents:e.registeredComponents},"render-block-"+r.id))}):null,e.blocks?s.jsx(s.Fragment,{children:(i=e.blocks)==null?void 0:i.map(r=>s.jsx(H,{block:r,context:e.context},"block-style-"+r.id))}):null]})}function pe(e){var u;const t=typeof e.space=="number"?e.space||0:20,n=e.columns||[],o=e.stackColumnsAt||"tablet",i=function(d){var b;return((b=n[d])==null?void 0:b.width)||100/n.length},r=function(d){const b=t*(n.length-1)/n.length;return`calc(${i(d)}% - ${b}px)`},a=function({stackedStyle:d,desktopStyle:b}){return o==="tablet"?d:b},c=function({stackedStyle:d,desktopStyle:b}){return o==="never"?b:d},l=e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column",m=function(){return{"--flex-dir":l,"--flex-dir-tablet":a({stackedStyle:l,desktopStyle:"row"})}},h=function(d){const b=d===0?0:t,v=r(d),p=`${b}px`,P="100%",E=0;return{width:v,["marginLeft"]:p,"--column-width-mobile":c({stackedStyle:P,desktopStyle:v}),"--column-margin-left-mobile":c({stackedStyle:E,desktopStyle:p}),"--column-width-tablet":a({stackedStyle:P,desktopStyle:v}),"--column-margin-left-tablet":a({stackedStyle:E,desktopStyle:p})}},g=function(d){var v,p;return fe(((p=(v=e.builderContext.content)==null?void 0:v.meta)==null?void 0:p.breakpoints)||{})[d].max},y=function(){return`
8
+ }`:o};function O(e){return s.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function H(e){const t=function(){const i=j({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return w(i.hide)?!i.hide:w(i.show)?i.show:!0},n=function(){var d;const i=j({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),r=i.responsiveStyles,a=e.context.content,c=fe(((d=a==null?void 0:a.meta)==null?void 0:d.breakpoints)||{}),l=r==null?void 0:r.large,m=r==null?void 0:r.medium,h=r==null?void 0:r.small,g=i.id;if(!g)return"";const y=l?M({className:g,styles:l}):"",u=m?M({className:g,styles:m,mediaQuery:X("medium",c)}):"",f=h?M({className:g,styles:h,mediaQuery:X("small",c)}):"";return[y,u,f].join(" ")};return s.jsx(s.Fragment,{children:n()&&t()?s.jsx(s.Fragment,{children:s.jsx(O,{styles:n()})}):null})}function nt(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ot=e=>`on${nt(e)}`,it=(e,t)=>n=>F({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1});function rt(e){const t={},n=e.block.actions??{};for(const o in n){if(!n.hasOwnProperty(o))continue;const i=n[o];let r=ot(o);if(e.stripPrefix)switch(I){case"vue":r=r.replace("v-on:","");break;case"svelte":r=r.replace("on:","");break}t[r]=it(i,e)}return t}function at({properties:e}){return e.className=e.class,delete e.class,e}const st=e=>({href:e.href});function ge({block:e,context:t}){var o;const n={...st(e),...e.properties,"builder-id":e.id,style:e.style?ct(e.style):void 0,class:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return at({properties:n,context:t,block:e})}function ct(e){switch(I){case"svelte":case"vue":case"solid":return he(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const lt=({componentOptions:e,builderBlock:t,context:n,componentRef:o,includeBlockProps:i,isInteractive:r,contextValue:a})=>r?{Wrapper:o,block:t,context:n,wrapperProps:e}:{...e,...i?{attributes:ge({block:t,context:a})}:{}};function Z(e){var n,o;const t=e.isInteractive?S.InteractiveElement:e.componentRef;return s.jsx(s.Fragment,{children:e.componentRef?s.jsx(s.Fragment,{children:s.jsxs(t,{...lt({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:[(n=e.blockChildren)==null?void 0:n.map(i=>s.jsx(N,{block:i,context:e.context,registeredComponents:e.registeredComponents},"block-"+i.id)),(o=e.blockChildren)==null?void 0:o.map(i=>s.jsx(H,{block:i,context:e.context},"block-style-"+i.id))]})}):null})}function dt(e){const t=e.repeatContext;return s.jsx(N,{block:e.block,context:t,registeredComponents:e.registeredComponents})}function N(e){var m,h,g,y;const t=function(){return Xe({block:e.block,context:e.context,registeredComponents:e.registeredComponents})},n=function(){return Ze({block:e.block,context:e.context})},o=function(){var f;return(f=e.block.repeat)!=null&&f.collection?e.block:j({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})},i=function(){return e.block.tagName||"div"},r=function(){var b,v;if((b=e.block.repeat)!=null&&b.collection)return!!((v=n())!=null&&v.length);const f="hide"in o()?o().hide:!1;return("show"in o()?o().show:!0)&&!f},a=function(){var d;return!((d=t())!=null&&d.component)&&!n()?o().children??[]:[]},c=function(){var f,d,b,v,p;return{blockChildren:o().children??[],componentRef:(f=t())==null?void 0:f.component,componentOptions:{...Le(o()),builderContext:e.context,...((d=t())==null?void 0:d.name)==="Symbol"||((b=t())==null?void 0:b.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:l,registeredComponents:e.registeredComponents,builderBlock:o(),includeBlockProps:((v=t())==null?void 0:v.noWrap)===!0,isInteractive:!((p=t())!=null&&p.isRSC)}},l=e.context;return s.jsx(s.Fragment,{children:r()?s.jsx(s.Fragment,{children:(m=t())!=null&&m.noWrap?s.jsx(s.Fragment,{children:s.jsx(Z,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive})}):s.jsxs(s.Fragment,{children:[U(i())?s.jsx(s.Fragment,{children:s.jsx(S.BlockWrapper,{Wrapper:i(),block:o(),context:e.context,hasChildren:!1})}):null,!U(i())&&n()?s.jsx(s.Fragment,{children:(h=n())==null?void 0:h.map((u,f)=>s.jsx(dt,{repeatContext:u.context,block:u.block,registeredComponents:e.registeredComponents},f))}):null,!U(i())&&!n()?s.jsx(s.Fragment,{children:s.jsxs(S.BlockWrapper,{Wrapper:i(),block:o(),context:e.context,hasChildren:!0,children:[s.jsx(Z,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive}),(g=a())==null?void 0:g.map(u=>s.jsx(N,{block:u,context:l,registeredComponents:e.registeredComponents},"block-"+u.id)),(y=a())==null?void 0:y.map(u=>s.jsx(H,{block:u,context:l},"block-style-"+u.id))]})}):null]})}):null})}function _(e){var t,n,o,i;return s.jsxs(S.BlocksWrapper,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(t=e.context)==null?void 0:t.BlocksWrapper,BlocksWrapperProps:(n=e.context)==null?void 0:n.BlocksWrapperProps,children:[e.blocks?s.jsx(s.Fragment,{children:(o=e.blocks)==null?void 0:o.map(r=>s.jsx(N,{block:r,context:e.context,registeredComponents:e.registeredComponents},"render-block-"+r.id))}):null,e.blocks?s.jsx(s.Fragment,{children:(i=e.blocks)==null?void 0:i.map(r=>s.jsx(H,{block:r,context:e.context},"block-style-"+r.id))}):null]})}function pe(e){var u;const t=typeof e.space=="number"?e.space||0:20,n=e.columns||[],o=e.stackColumnsAt||"tablet",i=function(d){var b;return((b=n[d])==null?void 0:b.width)||100/n.length},r=function(d){const b=t*(n.length-1)/n.length;return`calc(${i(d)}% - ${b}px)`},a=function({stackedStyle:d,desktopStyle:b}){return o==="tablet"?d:b},c=function({stackedStyle:d,desktopStyle:b}){return o==="never"?b:d},l=e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column",m=function(){return{"--flex-dir":l,"--flex-dir-tablet":a({stackedStyle:l,desktopStyle:"row"})}},h=function(d){const b=d===0?0:t,v=r(d),p=`${b}px`,P="100%",E=0;return{width:v,["marginLeft"]:p,"--column-width-mobile":c({stackedStyle:P,desktopStyle:v}),"--column-margin-left-mobile":c({stackedStyle:E,desktopStyle:p}),"--column-width-tablet":a({stackedStyle:P,desktopStyle:v}),"--column-margin-left-tablet":a({stackedStyle:E,desktopStyle:p})}},g=function(d){var v,p;return fe(((p=(v=e.builderContext.content)==null?void 0:v.meta)==null?void 0:p.breakpoints)||{})[d].max},y=function(){return`
9
9
  @media (max-width: ${g("medium")}px) {
10
10
  .${e.builderBlock.id}-breakpoints {
11
11
  flex-direction: var(--flex-dir-tablet);
@@ -135,7 +135,7 @@
135
135
  )`,qt=({contentId:e,variationId:t})=>`window.${Ie}(
136
136
  "${t}", "${e}", ${Ee}
137
137
  )`;function K(e){return s.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}const Gt=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||k.warn("No previewed ID found in search params."),n};function Te(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new Ne.LRUCache({max:500,ttl:1e3*60*5}))}function Jt(e){Te();const t=Gt(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function Yt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Qt(){const e=Yt().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.
138
- 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 Re=Qt();function V(e,t=null,n="."){return Object.keys(e).reduce((o,i)=>{const r=e[i],a=[t,i].filter(Boolean).join(n);return[typeof r=="object",r!==null,!(Array.isArray(r)&&r.length===0)].every(Boolean)?{...o,...V(r,a,n)}:{...o,[a]:r}},{})}const Xt="v3",oe="builder.",Zt="options.",en=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},q=e=>{if(!e)return{};const t=Pe(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(oe)){const i=o.replace(oe,"").replace(Zt,"");n[i]=t[o]}}),n},tn=()=>{if(!x())return{};const e=new URLSearchParams(window.location.search);return q(e)},Pe=e=>e instanceof URLSearchParams?en(e):e,ie=e=>typeof e=="number"&&!isNaN(e)&&e>=0,G=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:o,query:i,model:r,apiKey:a,includeRefs:c=!0,enrich:l,locale:m,apiVersion:h=Xt,fields:g,omit:y,offset:u,cacheSeconds:f,staleCacheSeconds:d,sort:b,includeUnpublished:v}=e;if(!a)throw new Error("Missing API key");if(!["v2","v3"].includes(h))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${h}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const p=new URL(`https://cdn.builder.io/api/${h}/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${c}${m?`&locale=${m}`:""}${l?`&enrich=${l}`:""}`);if(p.searchParams.set("omit",y||"meta.componentsUsed"),g&&p.searchParams.set("fields",g),Number.isFinite(u)&&u>-1&&p.searchParams.set("offset",String(Math.floor(u))),typeof v=="boolean"&&p.searchParams.set("includeUnpublished",String(v)),f&&ie(f)&&p.searchParams.set("cacheSeconds",String(f)),d&&ie(d)&&p.searchParams.set("staleCacheSeconds",String(d)),b){const C=V({sort:b});for(const T in C)p.searchParams.set(T,JSON.stringify(C[T]))}const P={...tn(),...Pe(e.options||{})},E=V(P);for(const C in E)p.searchParams.set(C,String(E[C]));if(o&&p.searchParams.set("userAttributes",JSON.stringify(o)),i){const C=V({query:i});for(const T in C)p.searchParams.set(T,JSON.stringify(C[T]))}return p},nn=e=>"results"in e;async function L(e){const t=await J({...e,limit:1});return t&&t.results[0]||null}const on=L,rn=async e=>{const t=G(e);return await(await Re(t.href)).json()},Be=async(e,t,n=G(e))=>{const o=W(e.canTrack);if(n.search.includes("preview=")){const r=[];for(const a of t.results){const c=Jt(n.searchParams);r.push(c||a)}t.results=r}if(!o||!(x()||I==="reactNative"))return t;try{const r=[];for(const a of t.results)r.push(await wt({item:a,canTrack:o}));t.results=r}catch(r){k.error("Could not process A/B tests. ",r)}return t};async function J(e){try{const t=G(e),n=await rn(e);return nn(n)?Be(e,n):(k.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return k.error("Error fetching data. ",t),null}}const an=J;function sn(){return!x()||$()?!1:location.search.indexOf("builder.preview=")!==-1}function cn(){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 Ae(){return cn().replace(/-/g,"")}const Ve="builderSessionId",ln=async({canTrack:e})=>{if(!e)return;const t=await ye({name:Ve,canTrack:e});if(w(t))return t;{const n=dn();return un({id:n,canTrack:e}),n}},dn=()=>Ae(),un=({id:e,canTrack:t})=>xe({name:Ve,value:e,canTrack:t}),je=()=>x()&&typeof localStorage<"u"?localStorage:void 0,mn=({key:e,canTrack:t})=>{var n;try{return t?(n=je())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},fn=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=je())==null||o.setItem(e,n))}catch(i){console.debug("[LocalStorage] SET error: ",i)}},We="builderVisitorId",hn=({canTrack:e})=>{if(!e)return;const t=mn({key:We,canTrack:e});if(w(t))return t;{const n=gn();return pn({id:n,canTrack:e}),n}},gn=()=>Ae(),pn=({id:e,canTrack:t})=>fn({key:We,value:e,canTrack:t}),bn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await ln({canTrack:e}),n=hn({canTrack:e});return{sessionId:t,visitorId:n}},yn=async({type:e,canTrack:t,apiKey:n,metadata:o,...i})=>({type:e,data:{...i,metadata:{url:location.href,...o},...await bn({canTrack:t}),userAttributes:ue(),ownerId:n}});async function $e(e){if(!e.apiKey){k.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!$()&&(x()||I==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await yn(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const xn=e=>$e({...e,canTrack:!0});function re(e){return Math.round(e*1e3)/1e3}const vn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},Sn=e=>vn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ae=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,i=e.clientY-n.top,r=re(o/n.width),a=re(i/n.height);return{x:r,y:a}},kn=e=>{const t=e.target,n=t&&Sn(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?ae({event:e,target:t}):void 0,builderTargetOffset:n?ae({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},Cn="0.9.0",se={};function Fe(e,t){let n=se[e];if(n||(n=se[e]=[]),n.push(t),x()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(i){console.debug("Could not postmessage",i)}}}const wn=()=>{Fe("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let ce=!1;const In=(e={})=>{var t,n;ce||(ce=!0,x()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:I,version:Cn,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var i,r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const a=o.data.text,c=o.data.arguments||[],l=o.data.id,m=new Function(a);let h,g=null;try{h=m.apply(null,c)}catch(y){g=y}g?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:l,error:g.message}},"*"):h&&typeof h.then=="function"?h.then(y=>{var u;(u=window.parent)==null||u.postMessage({type:"builder.evaluateResult",data:{id:l,result:y}},"*")}).catch(console.error):(r=window.parent)==null||r.postMessage({type:"builder.evaluateResult",data:{result:h,id:l}},"*");break}}})))},En=e=>{var r;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],o=e.fileUrl??((r=e==null?void 0:e.files)==null?void 0:r.regular);let i="";if(o&&t&&n&&(i+=`
138
+ 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 Re=Qt();function V(e,t=null,n="."){return Object.keys(e).reduce((o,i)=>{const r=e[i],a=[t,i].filter(Boolean).join(n);return[typeof r=="object",r!==null,!(Array.isArray(r)&&r.length===0)].every(Boolean)?{...o,...V(r,a,n)}:{...o,[a]:r}},{})}const Xt="v3",oe="builder.",Zt="options.",en=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},q=e=>{if(!e)return{};const t=Pe(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(oe)){const i=o.replace(oe,"").replace(Zt,"");n[i]=t[o]}}),n},tn=()=>{if(!x())return{};const e=new URLSearchParams(window.location.search);return q(e)},Pe=e=>e instanceof URLSearchParams?en(e):e,ie=e=>typeof e=="number"&&!isNaN(e)&&e>=0,G=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:o,query:i,model:r,apiKey:a,includeRefs:c=!0,enrich:l,locale:m,apiVersion:h=Xt,fields:g,omit:y,offset:u,cacheSeconds:f,staleCacheSeconds:d,sort:b,includeUnpublished:v}=e;if(!a)throw new Error("Missing API key");if(!["v2","v3"].includes(h))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${h}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);const p=new URL(`https://cdn.builder.io/api/${h}/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${c}${m?`&locale=${m}`:""}${l?`&enrich=${l}`:""}`);if(p.searchParams.set("omit",y||"meta.componentsUsed"),g&&p.searchParams.set("fields",g),Number.isFinite(u)&&u>-1&&p.searchParams.set("offset",String(Math.floor(u))),typeof v=="boolean"&&p.searchParams.set("includeUnpublished",String(v)),f&&ie(f)&&p.searchParams.set("cacheSeconds",String(f)),d&&ie(d)&&p.searchParams.set("staleCacheSeconds",String(d)),b){const C=V({sort:b});for(const T in C)p.searchParams.set(T,JSON.stringify(C[T]))}const P={...tn(),...Pe(e.options||{})},E=V(P);for(const C in E)p.searchParams.set(C,String(E[C]));if(o&&p.searchParams.set("userAttributes",JSON.stringify(o)),i){const C=V({query:i});for(const T in C)p.searchParams.set(T,JSON.stringify(C[T]))}return p},nn=e=>"results"in e;async function L(e){const t=await J({...e,limit:1});return t&&t[0]||null}const on=L,rn=async e=>{const t=G(e);return await(await Re(t.href)).json()},Be=async(e,t,n=G(e))=>{const o=W(e.canTrack);if(n.search.includes("preview=")){const r=[];for(const a of t.results){const c=Jt(n.searchParams);r.push(c||a)}t.results=r}if(!o||!(x()||I==="reactNative"))return t.results;try{const r=[];for(const a of t.results)r.push(await wt({item:a,canTrack:o}));t.results=r}catch(r){k.error("Could not process A/B tests. ",r)}return t.results};async function J(e){try{const t=G(e),n=await rn(e);return nn(n)?Be(e,n):(k.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return k.error("Error fetching data. ",t),null}}const an=J;function sn(){return!x()||$()?!1:location.search.indexOf("builder.preview=")!==-1}function cn(){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 Ae(){return cn().replace(/-/g,"")}const Ve="builderSessionId",ln=async({canTrack:e})=>{if(!e)return;const t=await ye({name:Ve,canTrack:e});if(w(t))return t;{const n=dn();return un({id:n,canTrack:e}),n}},dn=()=>Ae(),un=({id:e,canTrack:t})=>xe({name:Ve,value:e,canTrack:t}),je=()=>x()&&typeof localStorage<"u"?localStorage:void 0,mn=({key:e,canTrack:t})=>{var n;try{return t?(n=je())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},fn=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=je())==null||o.setItem(e,n))}catch(i){console.debug("[LocalStorage] SET error: ",i)}},We="builderVisitorId",hn=({canTrack:e})=>{if(!e)return;const t=mn({key:We,canTrack:e});if(w(t))return t;{const n=gn();return pn({id:n,canTrack:e}),n}},gn=()=>Ae(),pn=({id:e,canTrack:t})=>fn({key:We,value:e,canTrack:t}),bn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await ln({canTrack:e}),n=hn({canTrack:e});return{sessionId:t,visitorId:n}},yn=async({type:e,canTrack:t,apiKey:n,metadata:o,...i})=>({type:e,data:{...i,metadata:{url:location.href,...o},...await bn({canTrack:t}),userAttributes:ue(),ownerId:n}});async function $e(e){if(!e.apiKey){k.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!$()&&(x()||I==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await yn(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const xn=e=>$e({...e,canTrack:!0});function re(e){return Math.round(e*1e3)/1e3}const vn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},Sn=e=>vn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ae=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,i=e.clientY-n.top,r=re(o/n.width),a=re(i/n.height);return{x:r,y:a}},kn=e=>{const t=e.target,n=t&&Sn(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?ae({event:e,target:t}):void 0,builderTargetOffset:n?ae({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},Cn="0.11.0",se={};function Fe(e,t){let n=se[e];if(n||(n=se[e]=[]),n.push(t),x()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(i){console.debug("Could not postmessage",i)}}}const wn=()=>{Fe("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let ce=!1;const In=(e={})=>{var t,n;ce||(ce=!0,x()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:I,version:Cn,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:o})=>{var i,r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const a=o.data.text,c=o.data.arguments||[],l=o.data.id,m=new Function(a);let h,g=null;try{h=m.apply(null,c)}catch(y){g=y}g?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:l,error:g.message}},"*"):h&&typeof h.then=="function"?h.then(y=>{var u;(u=window.parent)==null||u.postMessage({type:"builder.evaluateResult",data:{id:l,result:y}},"*")}).catch(console.error):(r=window.parent)==null||r.postMessage({type:"builder.evaluateResult",data:{result:h,id:l}},"*");break}}})))},En=e=>{var r;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],o=e.fileUrl??((r=e==null?void 0:e.files)==null?void 0:r.regular);let i="";if(o&&t&&n&&(i+=`
139
139
  @font-face {
140
140
  font-family: "${t}";
141
141
  src: local("${n}"), url('${o}') format('woff2');
@@ -1,7 +1,7 @@
1
1
  import { LRUCache as Ve } from "lru-cache";
2
2
  import { jsx as l, Fragment as y, jsxs as w } from "react/jsx-runtime";
3
3
  import { createElement as Be } from "react";
4
- import { I as We, B as Y, a as $e, b as Oe, C as Fe, E as Ne, F as _e, c as Le, d as Ue, S as Me, V as De, e as je } from "./USE_CLIENT_BUNDLE-dfea4654.js";
4
+ import { I as We, B as Y, a as $e, b as Oe, C as Fe, E as Ne, F as _e, c as Le, d as Ue, S as Me, V as De, e as je } from "./USE_CLIENT_BUNDLE-f0aeb87c.js";
5
5
  import "next/navigation";
6
6
  function Ke(e) {
7
7
  var t;
@@ -381,8 +381,7 @@ function Un(e) {
381
381
  let r = st(o);
382
382
  if (e.stripPrefix)
383
383
  switch (T) {
384
- case "vue2":
385
- case "vue3":
384
+ case "vue":
386
385
  r = r.replace("v-on:", "");
387
386
  break;
388
387
  case "svelte":
@@ -422,8 +421,7 @@ function ut({
422
421
  function mt(e) {
423
422
  switch (T) {
424
423
  case "svelte":
425
- case "vue2":
426
- case "vue3":
424
+ case "vue":
427
425
  case "solid":
428
426
  return fe(e).join(" ");
429
427
  case "qwik":
@@ -1820,7 +1818,7 @@ async function G(e) {
1820
1818
  ...e,
1821
1819
  limit: 1
1822
1820
  });
1823
- return t && t.results[0] || null;
1821
+ return t && t[0] || null;
1824
1822
  }
1825
1823
  const Kn = G, ln = async (e) => {
1826
1824
  const t = q(e);
@@ -1836,7 +1834,7 @@ const Kn = G, ln = async (e) => {
1836
1834
  t.results = r;
1837
1835
  }
1838
1836
  if (!o || !(S() || T === "reactNative"))
1839
- return t;
1837
+ return t.results;
1840
1838
  try {
1841
1839
  const r = [];
1842
1840
  for (const a of t.results)
@@ -1848,7 +1846,7 @@ const Kn = G, ln = async (e) => {
1848
1846
  } catch (r) {
1849
1847
  k.error("Could not process A/B tests. ", r);
1850
1848
  }
1851
- return t;
1849
+ return t.results;
1852
1850
  };
1853
1851
  async function Ie(e) {
1854
1852
  try {
@@ -2050,7 +2048,7 @@ const Cn = (e, t, n = !0) => {
2050
2048
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2051
2049
  }
2052
2050
  };
2053
- }, In = "0.9.0", ae = {};
2051
+ }, In = "0.11.0", ae = {};
2054
2052
  function Tn(e, t) {
2055
2053
  let n = ae[e];
2056
2054
  if (n || (n = ae[e] = []), n.push(t), S()) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-dc5a8b6f.cjs"),t=require("./USE_CLIENT_BUNDLE-bf9c49b7.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-ad40cda1.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-48159788.cjs"),t=require("./USE_CLIENT_BUNDLE-edb9d9fb.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-3ae19308.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
@@ -1,10 +1,10 @@
1
- import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, w as d, m as f, E as u, x as B, n as S, y as E, A as R, z as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-a454b553.js";
2
- import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-dfea4654.js";
1
+ import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, w as d, m as f, E as u, x as B, n as S, y as E, A as R, z as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-9c29c9d1.js";
2
+ import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-f0aeb87c.js";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-b7c58bed.js";
7
+ import "./USE_SERVER_BUNDLE-0ea3e848.js";
8
8
  export {
9
9
  i as Blocks,
10
10
  w as Button,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as C, Fragment as m, jsx as i } from "react/jsx-runtime";
3
- import { g as T, a as B, i as E, b as R, c as Y, d as P, e as U, _ as H, f as Z, l as p, h as O, j as ee, k as te, r as ne, s as ie, m as ae, n as ce, o as re } from "./bundle-a454b553.js";
3
+ import { g as T, a as B, i as E, b as R, c as Y, d as P, e as U, _ as H, f as Z, l as p, h as O, j as ee, k as te, r as ne, s as ie, m as ae, n as ce, o as re } from "./bundle-28c9300c.js";
4
4
  import { useRef as N, useState as k, useEffect as v, createContext as oe, createElement as le } from "react";
5
- import { p as de } from "./USE_SERVER_BUNDLE-b7c58bed.js";
5
+ import { p as de } from "./USE_SERVER_BUNDLE-668b44ba.js";
6
6
  import { useRouter as se } from "next/navigation";
7
7
  function Se(e) {
8
8
  return /* @__PURE__ */ C(m, { children: [
@@ -20,11 +20,11 @@ function Se(e) {
20
20
  {
21
21
  ...e.attributes,
22
22
  style: e.attributes.style,
23
- className: e.attributes.className + " button-5294b10c",
23
+ className: e.attributes.className + " button-3ecc5438",
24
24
  children: e.text
25
25
  }
26
26
  ) }),
27
- /* @__PURE__ */ i("style", { children: `.button-5294b10c {
27
+ /* @__PURE__ */ i("style", { children: `.button-3ecc5438 {
28
28
  all: unset;
29
29
  }` })
30
30
  ] });
@@ -1,10 +1,10 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-0a83b0be.cjs"),l=require("react"),V=require("./USE_SERVER_BUNDLE-8da077cb.cjs"),A=require("next/navigation");function D(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-5294b10c",children:e.text})}),t.jsx("style",{children:`.button-5294b10c {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-b154d2ce.cjs"),l=require("react"),V=require("./USE_SERVER_BUNDLE-3783d376.cjs"),A=require("next/navigation");function D(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-3ecc5438",children:e.text})}),t.jsx("style",{children:`.button-3ecc5438 {
2
2
  all: unset;
3
3
  }`})]})}function U(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function H(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function O(e){function a(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,f;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((f=window.parent)==null||f.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function x(){var s,f;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((f=window.parent)==null||f.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:a()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>x(),onKeyPress:s=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  align-items: stretch;
7
- }`})]})}function J(e){return t.jsx("span",{children:e.children})}function $(e){var s,f,S,v;function a(){var h;const r=e.image||e.src;if(!r||!(r.match(/builder\.io/)||r.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((h=e.image)!=null&&h.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),c.getSrcSet(r)}else if(e.image&&!e.srcset)return c.getSrcSet(r);return c.getSrcSet(r)}function g(){var b;return(b=a==null?void 0:a())!=null&&b.match(/builder\.io/)&&!e.noWebp?a().replace(/\?/g,"?format=webp&"):""}function x(){const b={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?b:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...x()},className:"builder-image"+(e.className?" "+e.className:"")+" img-dbab4030",src:e.image,srcSet:a(),sizes:e.sizes})]}),e.aspectRatio&&!((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length&&e.fitContent)?t.jsx(t.Fragment,{children:t.jsx("div",{className:"builder-image-sizer div-dbab4030",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&e.children?t.jsx(t.Fragment,{children:t.jsx("div",{className:"div-dbab4030-2",children:e.children})}):null]}),t.jsx("style",{children:`.img-dbab4030 {
7
+ }`})]})}function J(e){return t.jsx("span",{children:e.children})}function $(e){var s,f,S,v;function a(){var b;const r=e.image||e.src;if(!r||!(r.match(/builder\.io/)||r.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((b=e.image)!=null&&b.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),c.getSrcSet(r)}else if(e.image&&!e.srcset)return c.getSrcSet(r);return c.getSrcSet(r)}function g(){var h;return(h=a==null?void 0:a())!=null&&h.match(/builder\.io/)&&!e.noWebp?a().replace(/\?/g,"?format=webp&"):""}function x(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...x()},className:"builder-image"+(e.className?" "+e.className:"")+" img-dbab4030",src:e.image,srcSet:a(),sizes:e.sizes})]}),e.aspectRatio&&!((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length&&e.fitContent)?t.jsx(t.Fragment,{children:t.jsx("div",{className:"builder-image-sizer div-dbab4030",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&e.children?t.jsx(t.Fragment,{children:t.jsx("div",{className:"div-dbab4030-2",children:e.children})}):null]}),t.jsx("style",{children:`.img-dbab4030 {
8
8
  opacity: 1;
9
9
  transition: opacity 0.2s ease-in-out;
10
10
  }.div-dbab4030 {
@@ -20,4 +20,4 @@
20
20
  left: 0;
21
21
  width: 100%;
22
22
  height: 100%;
23
- }`})]})}function G(e){return t.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}function Q(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]);return l.useEffect(()=>{var v;if(!((v=a.current)!=null&&v.getElementsByTagName)||typeof window>"u")return;const S=a.current.getElementsByTagName("script");for(let b=0;b<S.length;b++){const r=S[b];if(r.src){if(g.includes(r.src))continue;g.push(r.src);const h=document.createElement("script");h.async=!0,h.src=r.src,document.head.appendChild(h)}else if(!r.type||["text/javascript","application/javascript","application/ecmascript"].includes(r.type)){if(s.includes(r.innerText))continue;try{s.push(r.innerText),new Function(r.innerText)()}catch(h){console.warn("`CustomCode`: Error running script:",h)}}}},[]),t.jsx("div",{ref:a,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}function X(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]),[S,v]=l.useState(()=>!1);function b(){if(!a.current||!a.current.getElementsByTagName)return;const r=a.current.getElementsByTagName("script");for(let h=0;h<r.length;h++){const k=r[h];if(k.src&&!g.includes(k.src)){g.push(k.src);const y=document.createElement("script");y.async=!0,y.src=k.src,document.head.appendChild(y)}else if(c.isJsScript(k)&&!s.includes(k.innerText))try{s.push(k.innerText),new Function(k.innerText)()}catch(y){console.warn("`Embed`: Error running script:",y)}}}return l.useEffect(()=>{a.current&&!S&&(v(!0),b())},[a.current,S]),t.jsx("div",{className:"builder-embed",ref:a,dangerouslySetInnerHTML:{__html:e.content}})}function Y(e){return t.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},c.isEditing()&&e.imgSrc||"default-key")}function Z(e){var x,s,f,S,v,b,r;function a(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function g(){return{...a()}}return t.jsxs("div",{style:{position:"relative"},children:[t.jsx("video",{className:"builder-video",...g(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(x=e.attributes)==null?void 0:x.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:t.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length))?t.jsx(t.Fragment,{children:t.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(r=(b=e.builderBlock)==null?void 0:b.children)!=null&&r.length&&!e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const p=l.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});function ee(e){var I,P,B,F,T,N,L;const a=l.useRef(null),[g,x]=l.useState(()=>0);function s(n){var o,d,u,m,W;const i={...e.builderContextSignal.content,...n,data:{...(o=e.builderContextSignal.content)==null?void 0:o.data,...n==null?void 0:n.data},meta:{...(d=e.builderContextSignal.content)==null?void 0:d.meta,...n==null?void 0:n.meta,breakpoints:((u=n==null?void 0:n.meta)==null?void 0:u.breakpoints)||((W=(m=e.builderContextSignal.content)==null?void 0:m.meta)==null?void 0:W.breakpoints)}};V.postPreviewContent({value:i,key:i.id}).then(()=>{M.refresh()})}l.useState(()=>0);const[f,S]=l.useState(()=>!1),[v,b]=l.useState(()=>e.contentWrapper||"div");function r(n){var o;const{data:i}=n;if(i)switch(i.type){case"builder.configureSdk":{const d=i.data,{breakpoints:u,contentId:m}=d;if(!m||m!==((o=e.builderContextSignal.content)==null?void 0:o.id))return;u&&s({meta:{breakpoints:u}}),x(g+1);break}case"builder.contentUpdate":{const d=i.data,u=d.key||d.alias||d.entry||d.modelName,m=d.data;u===e.model&&(s(m),x(g+1));break}}}function h(){var i,o;const n=(o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.jsCode;n&&c.evaluate({code:n,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[k,y]=l.useState(()=>({})),[E,K]=l.useState(()=>!1);function q(n){var i,o;if(e.builderContextSignal.content){const d=(i=e.builderContextSignal.content)==null?void 0:i.testVariationId,u=(o=e.builderContextSignal.content)==null?void 0:o.id;c._track({type:"click",canTrack:c.getDefaultCanTrack(e.canTrack),contentId:u,apiKey:e.apiKey,variationId:d!==u?d:void 0,...c.getInteractionPropertiesForEvent(n),unique:!E})}E||K(!0)}function _(n){return n.replace(/{{([^}]+)}}/g,(i,o)=>c.evaluate({code:o,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function z({url:n,key:i}){c.fetch(n).then(o=>o.json()).then(o=>{var u,m;const d={...e.builderContextSignal.rootState,[i]:o};(m=(u=e.builderContextSignal).rootSetState)==null||m.call(u,d),k[i]=!0}).catch(o=>{console.error("error fetching dynamic data",n,o)})}function j(){var i,o;const n=((o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.httpRequests)??{};Object.entries(n).forEach(([d,u])=>{if(u&&(!k[d]||c.isEditing())){const m=_(u);z({url:m,key:d})}})}function C(){c.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:c.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function w(n){x(g+1),window.addEventListener("message",r),c.registerInsertMenu(),c.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(i=>{var d;const o=c.createRegisterComponentMessage(i);(d=window.parent)==null||d.postMessage(o,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",C)}function R(n){const i=new URL(location.href).searchParams,o=i.get("builder.preview"),d=i.get(`builder.preview.${o}`),u=i.get("apiKey")||i.get("builder.space");o===e.model&&u===e.apiKey&&(!e.content||d===e.content.id)&&c.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(m=>{m&&s(m)})}const M=A.useRouter();return l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initeditingbldr",w),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initeditingbldr",w)}},[]),l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initpreviewingbldr",R),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initpreviewingbldr",R)}},[]),l.useEffect(()=>{var n,i;if(c.isBrowser()){if(c.isEditing()&&a.current&&a.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&c.getDefaultCanTrack(e.canTrack)){const d=(n=e.builderContextSignal.content)==null?void 0:n.testVariationId,u=(i=e.builderContextSignal.content)==null?void 0:i.id,m=e.apiKey;c._track({type:"impression",canTrack:!0,contentId:u,apiKey:m,variationId:d!==u?d:void 0})}c.isPreviewing()&&a.current}},[]),l.useEffect(()=>{e.apiKey||c.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),h(),j(),C()},[]),l.useEffect(()=>{},[e.content]),l.useEffect(()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.addEventListener("message",r))},[f]),l.useEffect(()=>{h()},[(P=(I=e.builderContextSignal.content)==null?void 0:I.data)==null?void 0:P.jsCode,e.builderContextSignal.rootState]),l.useEffect(()=>{j()},[(F=(B=e.builderContextSignal.content)==null?void 0:B.data)==null?void 0:F.httpRequests]),l.useEffect(()=>{C()},[e.builderContextSignal.rootState]),l.useEffect(()=>()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.removeEventListener("builder:component:stateChangeListenerActivated",C))},[]),t.jsx(p.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?t.jsx(t.Fragment,{children:l.createElement(v,{key:g,ref:a,onClick:n=>q(n),"builder-content-id":(T=e.builderContextSignal.content)==null?void 0:T.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((N=e.content)==null?void 0:N.testVariationId)||((L=e.content)==null?void 0:L.id)}`},e.children)}):null})}exports.BlockWrapper=U;exports.BlocksWrapper=O;exports.Button=D;exports.CustomCode=Q;exports.Embed=X;exports.EnableEditor=ee;exports.FragmentComponent=J;exports.Image=$;exports.ImgComponent=Y;exports.InteractiveElement=H;exports.SectionComponent=G;exports.Video=Z;
23
+ }`})]})}function G(e){return t.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}function Q(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]);return l.useEffect(()=>{var v;if(!((v=a.current)!=null&&v.getElementsByTagName)||typeof window>"u")return;const S=a.current.getElementsByTagName("script");for(let h=0;h<S.length;h++){const r=S[h];if(r.src){if(g.includes(r.src))continue;g.push(r.src);const b=document.createElement("script");b.async=!0,b.src=r.src,document.head.appendChild(b)}else if(!r.type||["text/javascript","application/javascript","application/ecmascript"].includes(r.type)){if(s.includes(r.innerText))continue;try{s.push(r.innerText),new Function(r.innerText)()}catch(b){console.warn("`CustomCode`: Error running script:",b)}}}},[]),t.jsx("div",{ref:a,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}function X(e){const a=l.useRef(null),[g,x]=l.useState(()=>[]),[s,f]=l.useState(()=>[]),[S,v]=l.useState(()=>!1);function h(){if(!a.current||!a.current.getElementsByTagName)return;const r=a.current.getElementsByTagName("script");for(let b=0;b<r.length;b++){const k=r[b];if(k.src&&!g.includes(k.src)){g.push(k.src);const y=document.createElement("script");y.async=!0,y.src=k.src,document.head.appendChild(y)}else if(c.isJsScript(k)&&!s.includes(k.innerText))try{s.push(k.innerText),new Function(k.innerText)()}catch(y){console.warn("`Embed`: Error running script:",y)}}}return l.useEffect(()=>{a.current&&!S&&(v(!0),h())},[a.current,S]),t.jsx("div",{className:"builder-embed",ref:a,dangerouslySetInnerHTML:{__html:e.content}})}function Y(e){return t.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},c.isEditing()&&e.imgSrc||"default-key")}function Z(e){var x,s,f,S,v,h,r;function a(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function g(){return{...a()}}return t.jsxs("div",{style:{position:"relative"},children:[t.jsx("video",{className:"builder-video",...g(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(x=e.attributes)==null?void 0:x.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:t.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length))?t.jsx(t.Fragment,{children:t.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(r=(h=e.builderBlock)==null?void 0:h.children)!=null&&r.length&&!e.fitContent?t.jsx(t.Fragment,{children:t.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children})}):null]})}const p=l.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});function ee(e){var I,P,B,F,T,N,L;const a=l.useRef(null),[g,x]=l.useState(()=>0);function s(n){var o,d,u,m,W;const i={...e.builderContextSignal.content,...n,data:{...(o=e.builderContextSignal.content)==null?void 0:o.data,...n==null?void 0:n.data},meta:{...(d=e.builderContextSignal.content)==null?void 0:d.meta,...n==null?void 0:n.meta,breakpoints:((u=n==null?void 0:n.meta)==null?void 0:u.breakpoints)||((W=(m=e.builderContextSignal.content)==null?void 0:m.meta)==null?void 0:W.breakpoints)}};V.postPreviewContent({value:i,key:i.id}).then(()=>{M.refresh()})}l.useState(()=>0);const[f,S]=l.useState(()=>!1),[v,h]=l.useState(()=>e.contentWrapper||"div");function r(n){var o;const{data:i}=n;if(i)switch(i.type){case"builder.configureSdk":{const d=i.data,{breakpoints:u,contentId:m}=d;if(!m||m!==((o=e.builderContextSignal.content)==null?void 0:o.id))return;u&&s({meta:{breakpoints:u}}),x(g+1);break}case"builder.contentUpdate":{const d=i.data,u=d.key||d.alias||d.entry||d.modelName,m=d.data;u===e.model&&(s(m),x(g+1));break}}}function b(){var i,o;const n=(o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.jsCode;n&&c.evaluate({code:n,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[k,y]=l.useState(()=>({})),[E,K]=l.useState(()=>!1);function q(n){var i,o;if(e.builderContextSignal.content){const d=(i=e.builderContextSignal.content)==null?void 0:i.testVariationId,u=(o=e.builderContextSignal.content)==null?void 0:o.id;c._track({type:"click",canTrack:c.getDefaultCanTrack(e.canTrack),contentId:u,apiKey:e.apiKey,variationId:d!==u?d:void 0,...c.getInteractionPropertiesForEvent(n),unique:!E})}E||K(!0)}function _(n){return n.replace(/{{([^}]+)}}/g,(i,o)=>c.evaluate({code:o,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function z({url:n,key:i}){c.fetch(n).then(o=>o.json()).then(o=>{var u,m;const d={...e.builderContextSignal.rootState,[i]:o};(m=(u=e.builderContextSignal).rootSetState)==null||m.call(u,d),k[i]=!0}).catch(o=>{console.error("error fetching dynamic data",n,o)})}function j(){var i,o;const n=((o=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:o.httpRequests)??{};Object.entries(n).forEach(([d,u])=>{if(u&&(!k[d]||c.isEditing())){const m=_(u);z({url:m,key:d})}})}function C(){c.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:c.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function w(n){x(g+1),window.addEventListener("message",r),c.registerInsertMenu(),c.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(i=>{var d;const o=c.createRegisterComponentMessage(i);(d=window.parent)==null||d.postMessage(o,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",C)}function R(n){const i=new URL(location.href).searchParams,o=i.get("builder.preview"),d=i.get(`builder.preview.${o}`),u=i.get("apiKey")||i.get("builder.space");o===e.model&&u===e.apiKey&&(!e.content||d===e.content.id)&&c.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(m=>{m&&s(m)})}const M=A.useRouter();return l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initeditingbldr",w),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initeditingbldr",w)}},[]),l.useEffect(()=>{var n;return(n=a.current)==null||n.addEventListener("initpreviewingbldr",R),()=>{var i;return(i=a.current)==null?void 0:i.removeEventListener("initpreviewingbldr",R)}},[]),l.useEffect(()=>{var n,i;if(c.isBrowser()){if(c.isEditing()&&a.current&&a.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&c.getDefaultCanTrack(e.canTrack)){const d=(n=e.builderContextSignal.content)==null?void 0:n.testVariationId,u=(i=e.builderContextSignal.content)==null?void 0:i.id,m=e.apiKey;c._track({type:"impression",canTrack:!0,contentId:u,apiKey:m,variationId:d!==u?d:void 0})}c.isPreviewing()&&a.current}},[]),l.useEffect(()=>{e.apiKey||c.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),b(),j(),C()},[]),l.useEffect(()=>{},[e.content]),l.useEffect(()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.addEventListener("message",r))},[f]),l.useEffect(()=>{b()},[(P=(I=e.builderContextSignal.content)==null?void 0:I.data)==null?void 0:P.jsCode,e.builderContextSignal.rootState]),l.useEffect(()=>{j()},[(F=(B=e.builderContextSignal.content)==null?void 0:B.data)==null?void 0:F.httpRequests]),l.useEffect(()=>{C()},[e.builderContextSignal.rootState]),l.useEffect(()=>()=>{c.isBrowser()&&(window.removeEventListener("message",r),window.removeEventListener("builder:component:stateChangeListenerActivated",C))},[]),t.jsx(p.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?t.jsx(t.Fragment,{children:l.createElement(v,{key:g,ref:a,onClick:n=>q(n),"builder-content-id":(T=e.builderContextSignal.content)==null?void 0:T.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((N=e.content)==null?void 0:N.testVariationId)||((L=e.content)==null?void 0:L.id)}`},e.children)}):null})}exports.BlockWrapper=U;exports.BlocksWrapper=O;exports.Button=D;exports.CustomCode=Q;exports.Embed=X;exports.EnableEditor=ee;exports.FragmentComponent=J;exports.Image=$;exports.ImgComponent=Y;exports.InteractiveElement=H;exports.SectionComponent=G;exports.Video=Z;
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-0a83b0be.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-b154d2ce.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { p as s } from "./bundle-1b559f4d.js";
2
+ import { p as s } from "./bundle-28c9300c.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1,7 +1,7 @@
1
1
  import { LRUCache as Qr } from "lru-cache";
2
2
  import { jsx as C, Fragment as D, jsxs as ue } from "react/jsx-runtime";
3
3
  import { createElement as eo } from "react";
4
- import { I as to, B as $n, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-ab37324a.js";
4
+ import { I as to, B as $n, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-1cacf6c8.js";
5
5
  import "next/navigation";
6
6
  function po(e) {
7
7
  var t;
@@ -2854,8 +2854,7 @@ function Ea(e) {
2854
2854
  let i = Xo(r);
2855
2855
  if (e.stripPrefix)
2856
2856
  switch (be) {
2857
- case "vue2":
2858
- case "vue3":
2857
+ case "vue":
2859
2858
  i = i.replace("v-on:", "");
2860
2859
  break;
2861
2860
  case "svelte":
@@ -2895,8 +2894,7 @@ function qo({
2895
2894
  function Zo(e) {
2896
2895
  switch (be) {
2897
2896
  case "svelte":
2898
- case "vue2":
2899
- case "vue3":
2897
+ case "vue":
2900
2898
  case "solid":
2901
2899
  return br(e).join(" ");
2902
2900
  case "qwik":
@@ -4293,7 +4291,7 @@ async function fn(e) {
4293
4291
  ...e,
4294
4292
  limit: 1
4295
4293
  });
4296
- return t && t.results[0] || null;
4294
+ return t && t[0] || null;
4297
4295
  }
4298
4296
  const Oa = fn, Yi = async (e) => {
4299
4297
  const t = un(e);
@@ -4309,7 +4307,7 @@ const Oa = fn, Yi = async (e) => {
4309
4307
  t.results = i;
4310
4308
  }
4311
4309
  if (!r || !(G() || be === "reactNative"))
4312
- return t;
4310
+ return t.results;
4313
4311
  try {
4314
4312
  const i = [];
4315
4313
  for (const s of t.results)
@@ -4321,7 +4319,7 @@ const Oa = fn, Yi = async (e) => {
4321
4319
  } catch (i) {
4322
4320
  q.error("Could not process A/B tests. ", i);
4323
4321
  }
4324
- return t;
4322
+ return t.results;
4325
4323
  };
4326
4324
  async function Rr(e) {
4327
4325
  try {
@@ -4523,7 +4521,7 @@ const la = (e, t, n = !0) => {
4523
4521
  builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4524
4522
  }
4525
4523
  };
4526
- }, ua = "0.9.0", ir = {};
4524
+ }, ua = "0.11.0", ir = {};
4527
4525
  function fa(e, t) {
4528
4526
  let n = ir[e];
4529
4527
  if (n || (n = ir[e] = []), n.push(t), G()) {