@builder.io/sdk-react 0.12.3 → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/lib/browser/index.cjs +27 -31
  2. package/lib/browser/index.mjs +663 -606
  3. package/lib/browser/{server-entry-f978b3a5.js → server-entry-0e4f0637.js} +1 -2
  4. package/lib/browser/{server-entry-df9eba5d.cjs → server-entry-bcb725be.cjs} +1 -1
  5. package/lib/browser/server-entry.cjs +1 -1
  6. package/lib/browser/server-entry.mjs +1 -1
  7. package/lib/edge/index.cjs +37 -41
  8. package/lib/edge/index.mjs +1283 -1226
  9. package/lib/edge/{server-entry-f978b3a5.js → server-entry-0e4f0637.js} +1 -2
  10. package/lib/{node/server-entry-df9eba5d.cjs → edge/server-entry-bcb725be.cjs} +1 -1
  11. package/lib/edge/server-entry.cjs +1 -1
  12. package/lib/edge/server-entry.mjs +1 -1
  13. package/lib/node/index.cjs +6 -10
  14. package/lib/node/index.mjs +366 -309
  15. package/lib/node/{server-entry-46908b1b.js → server-entry-9aa733e8.js} +1 -2
  16. package/lib/{edge/server-entry-df9eba5d.cjs → node/server-entry-bcb725be.cjs} +1 -1
  17. package/lib/node/server-entry.cjs +1 -1
  18. package/lib/node/server-entry.mjs +1 -1
  19. package/package.json +1 -1
  20. package/types/blocks/button/button.types.d.ts +2 -1
  21. package/types/blocks/columns/columns.types.d.ts +3 -3
  22. package/types/blocks/symbol/symbol.types.d.ts +2 -2
  23. package/types/components/block/block.d.ts +1 -0
  24. package/types/components/block/components/block-wrapper.d.ts +1 -0
  25. package/types/components/block/components/component-ref/component-ref.helpers.d.ts +4 -1
  26. package/types/components/block/components/repeated-block.d.ts +3 -5
  27. package/types/components/blocks/blocks.types.d.ts +1 -0
  28. package/types/components/content-variants/content-variants.types.d.ts +6 -2
  29. package/types/constants/sdk-version.d.ts +1 -1
  30. package/types/functions/get-block-properties.d.ts +5 -1
  31. package/types/functions/get-class-prop-name.d.ts +1 -0
  32. package/types/functions/get-style.d.ts +12 -0
  33. package/types/functions/transform-block-properties.d.ts +7 -5
  34. package/types/functions/transform-style-property.d.ts +7 -0
  35. package/types/helpers/omit.d.ts +1 -0
  36. package/types/types/builder-block.d.ts +1 -0
  37. package/types/types/builder-props.d.ts +3 -0
@@ -1,16 +1,16 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),m=require("react"),u=require("./server-entry-df9eba5d.cjs");function ce(e){return a.jsx(a.Fragment,{children:e.link?a.jsx(a.Fragment,{children:a.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):a.jsx(a.Fragment,{children:a.jsx("button",{role:"button",...e.attributes,className:`builder-button ${e.attributes.className}`,style:e.attributes.style,children:e.text})})})}const H=m.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),le=m.createContext({registeredComponents:{}});function Ie(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Ee=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),Te=()=>({isEditing:u.isEditing(),isBrowser:u.isBrowser(),isServer:!u.isBrowser(),getUserAttributes:()=>u.getUserAttributes()}),Re=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,X=({code:e,builder:t,context:n,event:i,localState:o,rootSetState:c,rootState:r})=>{const l=Ee({builder:t,context:n,event:i,state:je(r,o,c)});return new Function(...l.map(([s])=>s),e)(...l.map(([,s])=>s))};function je(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(i,o)=>t&&o in t?t[o]:e[o],set:(i,o,c)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[o]=c,n==null||n(e),!0}})}const Be=e=>(u.isBrowser(),X(e));function A({code:e,context:t,localState:n,rootState:i,rootSetState:o,event:c,isExpression:r=!0}){if(e===""){u.logger.warn("Skipping evaluation of empty code block.");return}const l={code:Re(e,{isExpression:r}),builder:Te(),context:t,event:c,rootSetState:o,rootState:i,localState:n};try{return Be(l)}catch(s){u.logger.error("Failed code evaluation: "+s.message,{code:e});return}}const Pe=(e,t,n)=>{if(Object(e)!==e)return e;const i=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return i.slice(0,-1).reduce((o,c,r)=>Object(o[c])===o[c]?o[c]:o[c]=Math.abs(Number(i[r+1]))>>0===+i[r+1]?[]:{},e)[i[i.length-1]]=n,e};const Fe=({block:e,context:t,localState:n,rootState:i,rootSetState:o})=>{if(!e.bindings)return e;const c=u.fastClone(e),r={...c,properties:{...c.properties},actions:{...c.actions}};for(const l in e.bindings){const s=e.bindings[l],d=A({code:s,localState:n,rootState:i,rootSetState:o,context:t});Pe(r,l,d)}return r};function N({block:e,context:t,shouldEvaluateBindings:n,localState:i,rootState:o,rootSetState:c}){const r=e;return n?Fe({block:r,localState:i,rootState:o,rootSetState:c,context:t}):r}const Ae=({block:e,context:t,registeredComponents:n})=>{var c;const i=(c=N({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:c.name;if(!i)return null;const o=n[i];if(o)return o;console.warn(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),m=require("react"),u=require("./server-entry-bcb725be.cjs"),Re=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),je=e=>typeof e=="string"&&Re.has(e.toLowerCase());function z(e){return a.jsx(a.Fragment,{children:je(e.TagName)?a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):a.jsx(a.Fragment,{children:typeof e.TagName=="string"?a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}const A=()=>{switch(u.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}};function se(e){return a.jsx(z,{TagName:e.link?e.builderLinkComponent||"a":"button",attributes:{...e.attributes,[A()]:`${e.link?"":"builder-button"} ${e.attributes[A()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},actionAttributes:{},children:e.text})}const q=m.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),de=m.createContext({registeredComponents:{}});function Pe(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Be=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),Fe=()=>({isEditing:u.isEditing(),isBrowser:u.isBrowser(),isServer:!u.isBrowser(),getUserAttributes:()=>u.getUserAttributes()}),Ae=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,ee=({code:e,builder:t,context:n,event:i,localState:o,rootSetState:l,rootState:r})=>{const c=Be({builder:t,context:n,event:i,state:We(r,o,l)});return new Function(...c.map(([s])=>s),e)(...c.map(([,s])=>s))};function We(e,t,n){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(i,o)=>t&&o in t?t[o]:e[o],set:(i,o,l)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[o]=l,n==null||n(e),!0}})}const Ve=e=>(u.isBrowser(),ee(e));function W({code:e,context:t,localState:n,rootState:i,rootSetState:o,event:l,isExpression:r=!0}){if(e===""){u.logger.warn("Skipping evaluation of empty code block.");return}const c={code:Ae(e,{isExpression:r}),builder:Fe(),context:t,event:l,rootSetState:o,rootState:i,localState:n};try{return Ve(c)}catch(s){u.logger.error("Failed code evaluation: "+s.message,{code:e});return}}const $e=(e,t,n)=>{if(Object(e)!==e)return e;const i=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return i.slice(0,-1).reduce((o,l,r)=>Object(o[l])===o[l]?o[l]:o[l]=Math.abs(Number(i[r+1]))>>0===+i[r+1]?[]:{},e)[i[i.length-1]]=n,e};const Ne=({block:e,context:t,localState:n,rootState:i,rootSetState:o})=>{if(!e.bindings)return e;const l=u.fastClone(e),r={...l,properties:{...l.properties},actions:{...l.actions}};for(const c in e.bindings){const s=e.bindings[c],d=W({code:s,localState:n,rootState:i,rootSetState:o,context:t});$e(r,c,d)}return r};function L({block:e,context:t,shouldEvaluateBindings:n,localState:i,rootState:o,rootSetState:l}){const r=e;return n?Ne({block:r,localState:i,rootState:o,rootSetState:l,context:t}):r}const Le=({block:e,context:t,registeredComponents:n})=>{var l;const i=(l=L({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:l.name;if(!i)return null;const o=n[i];if(o)return o;console.warn(`
2
2
  Could not find a registered component named "${i}".
3
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},We=({block:e,context:t})=>{const{repeat:n,...i}=e;if(!(n!=null&&n.collection))return;const o=A({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const c=n.collection.split(".").pop(),r=n.itemName||(c?c+"Item":"item");return o.map((s,d)=>({context:{...t,localState:{...t.localState,$index:d,$item:s,[r]:s,[`$${r}Index`]:d}},block:i}))},se={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Z=(e,t=se)=>`@media (max-width: ${t[e].max}px)`,de=({small:e,medium:t})=>{const n=u.fastClone(se);if(!e||!t)return n;const i=Math.floor(e/2);n.small={max:e,min:i,default:i+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const c=n.medium.max+1;return n.large={max:2e3,min:c,default:c+1},n},Ve=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),ue=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${Ve(n)}: ${i};`}).filter(u.checkIsDefined),$e=e=>ue(e).join(`
4
- `),M=({mediaQuery:e,className:t,styles:n})=>{const i=`.${t} {
5
- ${$e(n)}
3
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},_e=({block:e,context:t})=>{const{repeat:n,...i}=e;if(!(n!=null&&n.collection))return;const o=W({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const l=n.collection.split(".").pop(),r=n.itemName||(l?l+"Item":"item");return o.map((s,d)=>({context:{...t,localState:{...t.localState,$index:d,$item:s,[r]:s,[`$${r}Index`]:d}},block:i}))},ue={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},te=(e,t=ue)=>`@media (max-width: ${t[e].max}px)`,me=({small:e,medium:t})=>{const n=u.fastClone(ue);if(!e||!t)return n;const i=Math.floor(e/2);n.small={max:e,min:i,default:i+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const l=n.medium.max+1;return n.large={max:2e3,min:l,default:l+1},n},De=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),fe=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${De(n)}: ${i};`}).filter(u.checkIsDefined),Me=e=>fe(e).join(`
4
+ `),O=({mediaQuery:e,className:t,styles:n})=>{const i=`.${t} {
5
+ ${Me(n)}
6
6
  }`;return e?`${e} {
7
7
  ${i}
8
- }`:i};function _(e){return a.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function Ne(e){function t(){const i=N({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return u.checkIsDefined(i.hide)?!i.hide:u.checkIsDefined(i.show)?i.show:!0}function n(){var k;const i=N({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),o=i.responsiveStyles,c=e.context.content,r=de(((k=c==null?void 0:c.meta)==null?void 0:k.breakpoints)||{}),l=o==null?void 0:o.large,s=o==null?void 0:o.medium,d=o==null?void 0:o.small,g=i.id;if(!g)return"";const b=l?M({className:g,styles:l}):"",v=s?M({className:g,styles:s,mediaQuery:Z("medium",r)}):"",y=d?M({className:g,styles:d,mediaQuery:Z("small",r)}):"";return[b,v,y].join(" ")}return a.jsx(a.Fragment,{children:n()&&t()?a.jsx(a.Fragment,{children:a.jsx(_,{styles:n()})}):null})}function _e(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Le=e=>`on${_e(e)}`,De=(e,t)=>n=>A({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1});function me(e){var i;const t={},n=(i=e.block.actions)!=null?i:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const c=n[o];let r=Le(o);if(e.stripPrefix)switch(u.TARGET){case"vue":r=r.replace("v-on:","");break;case"svelte":r=r.replace("on:","");break}t[r]=De(c,e)}return t}function Me({properties:e}){return e.className=e.class,delete e.class,e}const Ue=e=>({href:e.href});function K({block:e,context:t}){var i;const n={...Ue(e),...e.properties,"builder-id":e.id,style:e.style?Oe(e.style):void 0,class:[e.id,"builder-block",e.class,(i=e.properties)==null?void 0:i.class].filter(Boolean).join(" ")};return Me({properties:n,context:t,block:e})}function Oe(e){switch(u.TARGET){case"svelte":case"vue":case"solid":return ue(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const He=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Ke=e=>typeof e=="string"&&He.has(e.toLowerCase());function ze(e){return a.jsx(a.Fragment,{children:Ke(e.TagName)?a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):a.jsx(a.Fragment,{children:typeof e.TagName=="string"?a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}function qe(e){return a.jsx(ze,{TagName:e.Wrapper,attributes:K({block:e.block,context:e.context}),actionAttributes:me({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function Ge(e){return a.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...K({block:e.block,context:e.context}),...me({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}const Ye=({componentOptions:e,builderBlock:t,context:n,componentRef:i,includeBlockProps:o,isInteractive:c,contextValue:r})=>{const l={...e,...o?{attributes:K({block:t,context:r})}:{}};return c?{Wrapper:i,block:t,context:n,wrapperProps:e,includeBlockProps:o}:l};function ee(e){var i;const[t,n]=m.useState(()=>e.isInteractive?Ge:e.componentRef);return a.jsx(a.Fragment,{children:e.componentRef?a.jsx(a.Fragment,{children:a.jsx(t,{...Ye({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(i=e.blockChildren)==null?void 0:i.map(o=>a.jsx(L,{block:o,context:e.context,registeredComponents:e.registeredComponents},o.id))})}):null})}function Qe(e){const[t,n]=m.useState(()=>e.repeatContext);return a.jsx(H.Provider,{value:t,children:a.jsx(L,{block:e.block,context:t,registeredComponents:e.registeredComponents})})}function L(e){var g,b,v;function t(){return Ae({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function n(){return We({block:e.block,context:e.context})}function i(){var y;return(y=e.block.repeat)!=null&&y.collection?e.block:N({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function o(){return e.block.tagName||"div"}function c(){var C,T;if((C=e.block.repeat)!=null&&C.collection)return!!((T=n==null?void 0:n())!=null&&T.length);const y="hide"in i()?i().hide:!1;return("show"in i()?i().show:!0)&&!y}function r(){var k,C;return!((k=t==null?void 0:t())!=null&&k.component)&&!n()?(C=i().children)!=null?C:[]:[]}function l(){var y,k,C,T,R,w;return{blockChildren:(y=i().children)!=null?y:[],componentRef:(k=t==null?void 0:t())==null?void 0:k.component,componentOptions:{...Ie(i()),builderContext:e.context,...((C=t==null?void 0:t())==null?void 0:C.name)==="Symbol"||((T=t==null?void 0:t())==null?void 0:T.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:s,registeredComponents:e.registeredComponents,builderBlock:i(),includeBlockProps:((R=t==null?void 0:t())==null?void 0:R.noWrap)===!0,isInteractive:!((w=t==null?void 0:t())!=null&&w.isRSC)}}const[s,d]=m.useState(()=>e.context);return a.jsx(a.Fragment,{children:c()?a.jsxs(a.Fragment,{children:[a.jsx(Ne,{block:e.block,context:e.context}),(g=t==null?void 0:t())!=null&&g.noWrap?a.jsx(a.Fragment,{children:a.jsx(ee,{componentRef:l().componentRef,componentOptions:l().componentOptions,blockChildren:l().blockChildren,context:l().context,registeredComponents:l().registeredComponents,builderBlock:l().builderBlock,includeBlockProps:l().includeBlockProps,isInteractive:l().isInteractive})}):a.jsx(a.Fragment,{children:n()?a.jsx(a.Fragment,{children:(v=n())==null?void 0:v.map((y,k)=>a.jsx(Qe,{repeatContext:y.context,block:y.block,registeredComponents:e.registeredComponents},k))}):a.jsx(a.Fragment,{children:a.jsxs(qe,{Wrapper:o(),block:i(),context:e.context,children:[a.jsx(ee,{componentRef:l().componentRef,componentOptions:l().componentOptions,blockChildren:l().blockChildren,context:l().context,registeredComponents:l().registeredComponents,builderBlock:l().builderBlock,includeBlockProps:l().includeBlockProps,isInteractive:l().isInteractive}),(b=r())==null?void 0:b.map(y=>a.jsx(L,{block:y,context:s,registeredComponents:e.registeredComponents},y.id))]})})})]}):null})}function Je(e){function t(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function n(){var o,c;u.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((c=window.parent)==null||c.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function i(){var o,c;u.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((c=window.parent)==null||c.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return a.jsxs(a.Fragment,{children:[a.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>n(),onMouseEnter:o=>i(),onKeyPress:o=>n(),...e.BlocksWrapperProps,children:e.children}),a.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
8
+ }`:i};function _(e){return a.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function Ue(e){function t(){const i=L({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return u.checkIsDefined(i.hide)?!i.hide:u.checkIsDefined(i.show)?i.show:!0}function n(){var v;const i=L({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),o=i.responsiveStyles,l=e.context.content,r=me(((v=l==null?void 0:l.meta)==null?void 0:v.breakpoints)||{}),c=o==null?void 0:o.large,s=o==null?void 0:o.medium,d=o==null?void 0:o.small,g=i.id;if(!g)return"";const b=c?O({className:g,styles:c}):"",k=s?O({className:g,styles:s,mediaQuery:te("medium",r)}):"",y=d?O({className:g,styles:d,mediaQuery:te("small",r)}):"";return[b,k,y].join(" ")}return a.jsx(a.Fragment,{children:n()&&t()?a.jsx(a.Fragment,{children:a.jsx(_,{styles:n()})}):null})}function Oe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const He=e=>`on${Oe(e)}`,Ke=(e,t)=>n=>W({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1});function ge(e){var i;const t={},n=(i=e.block.actions)!=null?i:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const l=n[o];let r=He(o);if(e.stripPrefix)switch(u.TARGET){case"vue":r=r.replace("v-on:","");break;case"svelte":r=r.replace("on:","");break}t[r]=Ke(l,e)}return t}function ze({style:e}){return e}const qe=({block:e,context:t})=>he(ze({style:e.style||{},context:t,block:e}));function he(e){switch(u.TARGET){case"svelte":case"vue":case"solid":return fe(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}function Ge({properties:e}){return e}const Ye=e=>({href:e.href});function G({block:e,context:t}){var i;const n={...Ye(e),...e.properties,"builder-id":e.id,style:qe({block:e,context:t}),[A()]:[e.id,"builder-block",e.class,(i=e.properties)==null?void 0:i.class].filter(Boolean).join(" ")};return Ge({properties:n,context:t,block:e})}function Qe(e){return a.jsx(z,{TagName:e.Wrapper,attributes:G({block:e.block,context:e.context}),actionAttributes:ge({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function Je(e){return a.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...G({block:e.block,context:e.context}),...ge({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}const Xe=({componentOptions:e,builderBlock:t,context:n,componentRef:i,includeBlockProps:o,isInteractive:l,contextValue:r})=>{const c={...e,...o?{attributes:G({block:t,context:r})}:{}};return l?{Wrapper:i,block:t,context:n,wrapperProps:e,includeBlockProps:o}:c};function ne(e){var i;const[t,n]=m.useState(()=>e.isInteractive?Je:e.componentRef);return a.jsx(a.Fragment,{children:e.componentRef?a.jsx(a.Fragment,{children:a.jsx(t,{...Xe({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(i=e.blockChildren)==null?void 0:i.map(o=>a.jsx(D,{block:o,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},o.id))})}):null})}function Ze(e){const[t,n]=m.useState(()=>e.repeatContext);return a.jsx(q.Provider,{value:t,children:a.jsx(D,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}function D(e){var g,b,k;function t(){return Le({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function n(){return _e({block:e.block,context:e.context})}function i(){var y;return(y=e.block.repeat)!=null&&y.collection?e.block:L({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function o(){var v;return e.block.tagName==="a"||((v=i().properties)==null?void 0:v.href)||i().href?e.linkComponent||"a":e.block.tagName||"div"}function l(){var p,E;if((p=e.block.repeat)!=null&&p.collection)return!!((E=n==null?void 0:n())!=null&&E.length);const y="hide"in i()?i().hide:!1;return("show"in i()?i().show:!0)&&!y}function r(){var v,p;return!((v=t==null?void 0:t())!=null&&v.component)&&!n()?(p=i().children)!=null?p:[]:[]}function c(){var y,v,p,E,j,w,I,R,P;return{blockChildren:(y=i().children)!=null?y:[],componentRef:(v=t==null?void 0:t())==null?void 0:v.component,componentOptions:{...Pe(i()),builderContext:e.context,...((p=t==null?void 0:t())==null?void 0:p.name)==="Core:Button"||((E=t==null?void 0:t())==null?void 0:E.name)==="Symbol"||((j=t==null?void 0:t())==null?void 0:j.name)==="Columns"?{builderLinkComponent:e.linkComponent}:{},...((w=t==null?void 0:t())==null?void 0:w.name)==="Symbol"||((I=t==null?void 0:t())==null?void 0:I.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:s,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:i(),includeBlockProps:((R=t==null?void 0:t())==null?void 0:R.noWrap)===!0,isInteractive:!((P=t==null?void 0:t())!=null&&P.isRSC)}}const[s,d]=m.useState(()=>e.context);return a.jsx(a.Fragment,{children:l()?a.jsxs(a.Fragment,{children:[a.jsx(Ue,{block:e.block,context:e.context}),(g=t==null?void 0:t())!=null&&g.noWrap?a.jsx(a.Fragment,{children:a.jsx(ne,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,linkComponent:c().linkComponent,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive})}):a.jsx(a.Fragment,{children:n()?a.jsx(a.Fragment,{children:(k=n())==null?void 0:k.map((y,v)=>a.jsx(Ze,{repeatContext:y.context,block:y.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},v))}):a.jsx(a.Fragment,{children:a.jsxs(Qe,{Wrapper:o(),block:i(),context:e.context,linkComponent:e.linkComponent,children:[a.jsx(ne,{componentRef:c().componentRef,componentOptions:c().componentOptions,blockChildren:c().blockChildren,context:c().context,registeredComponents:c().registeredComponents,linkComponent:c().linkComponent,builderBlock:c().builderBlock,includeBlockProps:c().includeBlockProps,isInteractive:c().isInteractive}),(b=r())==null?void 0:b.map(y=>a.jsx(D,{block:y,context:s,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},y.id))]})})})]}):null})}function et(e){function t(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function n(){var o,l;u.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((l=window.parent)==null||l.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function i(){var o,l;u.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((l=window.parent)==null||l.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return a.jsxs(a.Fragment,{children:[a.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>n(),onMouseEnter:o=>i(),onKeyPress:o=>n(),...e.BlocksWrapperProps,children:e.children}),a.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: stretch;
12
- }`})]})}function W(e){var i,o,c;const t=m.useContext(H),n=m.useContext(le);return a.jsx(Je,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(i=e.context)==null?void 0:i.BlocksWrapper,BlocksWrapperProps:(o=e.context)==null?void 0:o.BlocksWrapperProps,children:e.blocks?a.jsx(a.Fragment,{children:(c=e.blocks)==null?void 0:c.map(r=>a.jsx(L,{block:r,context:e.context||t,registeredComponents:e.registeredComponents||n.registeredComponents},r.id))}):null})}function fe(e){var R;const[t,n]=m.useState(()=>typeof e.space=="number"?e.space||0:20),[i,o]=m.useState(()=>e.columns||[]),[c,r]=m.useState(()=>e.stackColumnsAt||"tablet");function l(w){var I;return((I=i[w])==null?void 0:I.width)||100/i.length}function s(w){const I=t*(i.length-1)/i.length;return`calc(${l(w)}% - ${I}px)`}function d({stackedStyle:w,desktopStyle:I}){return c==="tablet"?w:I}function g({stackedStyle:w,desktopStyle:I}){return c==="never"?I:w}const[b,v]=m.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function y(){return{"--flex-dir":b,"--flex-dir-tablet":d({stackedStyle:b,desktopStyle:"row"})}}function k(w){const I=w===0?0:t,j=s(w),B=`${I}px`,P="100%",F=0;return{width:j,["marginLeft"]:B,"--column-width-mobile":g({stackedStyle:P,desktopStyle:j}),"--column-margin-left-mobile":g({stackedStyle:F,desktopStyle:B}),"--column-width-tablet":d({stackedStyle:P,desktopStyle:j}),"--column-margin-left-tablet":d({stackedStyle:F,desktopStyle:B})}}function C(w){var j,B;return de(((B=(j=e.builderContext.content)==null?void 0:j.meta)==null?void 0:B.breakpoints)||{})[w].max}function T(){return`
13
- @media (max-width: ${C("medium")}px) {
12
+ }`})]})}function V(e){var i,o,l;const t=m.useContext(q),n=m.useContext(de);return a.jsx(et,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(i=e.context)==null?void 0:i.BlocksWrapper,BlocksWrapperProps:(o=e.context)==null?void 0:o.BlocksWrapperProps,children:e.blocks?a.jsx(a.Fragment,{children:(l=e.blocks)==null?void 0:l.map(r=>a.jsx(D,{block:r,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||n.registeredComponents},r.id))}):null})}function be(e){var j;const[t,n]=m.useState(()=>typeof e.space=="number"?e.space||0:20),[i,o]=m.useState(()=>e.columns||[]),[l,r]=m.useState(()=>e.stackColumnsAt||"tablet");function c(w){var I;return((I=i[w])==null?void 0:I.width)||100/i.length}function s(w){const I=t*(i.length-1)/i.length;return`calc(${c(w)}% - ${I}px)`}function d({stackedStyle:w,desktopStyle:I}){return l==="tablet"?w:I}function g({stackedStyle:w,desktopStyle:I}){return l==="never"?I:w}const[b,k]=m.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function y(){return{"--flex-dir":b,"--flex-dir-tablet":d({stackedStyle:b,desktopStyle:"row"})}}function v(w){const I=w===0?0:t,R=s(w),P=`${I}px`,B="100%",F=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:R,["marginLeft"]:P,"--column-width-mobile":g({stackedStyle:B,desktopStyle:R}),"--column-margin-left-mobile":g({stackedStyle:F,desktopStyle:P}),"--column-width-tablet":d({stackedStyle:B,desktopStyle:R}),"--column-margin-left-tablet":d({stackedStyle:F,desktopStyle:P})}}function p(w){var R,P;return me(((P=(R=e.builderContext.content)==null?void 0:R.meta)==null?void 0:P.breakpoints)||{})[w].max}function E(){return`
13
+ @media (max-width: ${p("medium")}px) {
14
14
  .${e.builderBlock.id}-breakpoints {
15
15
  flex-direction: var(--flex-dir-tablet);
16
16
  align-items: stretch;
@@ -22,7 +22,7 @@
22
22
  }
23
23
  }
24
24
 
25
- @media (max-width: ${C("small")}px) {
25
+ @media (max-width: ${p("small")}px) {
26
26
  .${e.builderBlock.id}-breakpoints {
27
27
  flex-direction: var(--flex-dir);
28
28
  align-items: stretch;
@@ -33,14 +33,10 @@
33
33
  margin-left: var(--column-margin-left-mobile) !important;
34
34
  }
35
35
  },
36
- `}return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,style:y(),children:[a.jsx(a.Fragment,{children:a.jsx(_,{styles:T()})}),(R=e.columns)==null?void 0:R.map((w,I)=>m.createElement("div",{className:"builder-column div-3c01d6ec-2",style:k(I),key:I},a.jsx(W,{path:`component.options.columns.${I}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,blocks:w.blocks})))]}),a.jsx("style",{children:`.div-3c01d6ec {
36
+ `}return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,style:y(),children:[a.jsx(a.Fragment,{children:a.jsx(_,{styles:E()})}),(j=e.columns)==null?void 0:j.map((w,I)=>a.jsx(z,{TagName:w.link?e.builderLinkComponent||"a":"div",actionAttributes:{},attributes:{...w.link?{href:w.link}:{},[A()]:"builder-column",style:he(v(I))},children:a.jsx(V,{path:`component.options.columns.${I}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:w.blocks})},I))]}),a.jsx("style",{children:`.div-6f826264 {
37
37
  display: flex;
38
38
  line-height: normal;
39
- }.div-3c01d6ec-2 {
40
- display: flex;
41
- flex-direction: column;
42
- align-items: stretch;
43
- }`})]})}function ge(e){return a.jsx("span",{children:e.children})}function te(e){return e.replace(/http(s)?:/,"")}function Xe(e="",t,n){const i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function Ze(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return te(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const i=e.split(n[0]),o=n[3],c=t.match("x")?t:`${t}x`;return te(`${i[0]}_${c}${o}`)}return null}function U(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const i=Number(e.split("?width=")[1]);return isNaN(i)||(n=`${n} ${i}w`),t.filter(o=>o!==i).map(o=>`${Xe(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Ze(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,i])=>`${n} ${i}w`).concat([e]).join(", "):e}function he(e){var o,c,r,l;function t(){var g;const d=e.image||e.src;if(!d||!(d.match(/builder\.io/)||d.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((g=e.image)!=null&&g.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),U(d)}else if(e.image&&!e.srcset)return U(d);return U(d)}function n(){var s;return(s=t==null?void 0:t())!=null&&s.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function i(){const s={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?s:void 0}return a.jsxs(a.Fragment,{children:[a.jsxs(a.Fragment,{children:[a.jsxs("picture",{children:[n()?a.jsx(a.Fragment,{children:a.jsx("source",{type:"image/webp",srcSet:n()})}):null,a.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...i()},className:"builder-image"+(e.className?" "+e.className:"")+" img-40c70c9b",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((c=(o=e.builderBlock)==null?void 0:o.children)!=null&&c.length&&e.fitContent)?a.jsx(a.Fragment,{children:a.jsx("div",{className:"builder-image-sizer div-40c70c9b",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(l=(r=e.builderBlock)==null?void 0:r.children)!=null&&l.length&&e.fitContent?a.jsx(a.Fragment,{children:e.children}):null,!e.fitContent&&e.children?a.jsx(a.Fragment,{children:a.jsx("div",{className:"div-40c70c9b-2",children:e.children})}):null]}),a.jsx("style",{children:`.img-40c70c9b {
39
+ }`})]})}function xe(e){return a.jsx("span",{children:e.children})}function ie(e){return e.replace(/http(s)?:/,"")}function tt(e="",t,n){const i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function nt(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return ie(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const i=e.split(n[0]),o=n[3],l=t.match("x")?t:`${t}x`;return ie(`${i[0]}_${l}${o}`)}return null}function H(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const i=Number(e.split("?width=")[1]);return isNaN(i)||(n=`${n} ${i}w`),t.filter(o=>o!==i).map(o=>`${tt(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[nt(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,i])=>`${n} ${i}w`).concat([e]).join(", "):e}function Se(e){var o,l,r,c;function t(){var g;const d=e.image||e.src;if(!d||!(d.match(/builder\.io/)||d.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((g=e.image)!=null&&g.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),H(d)}else if(e.image&&!e.srcset)return H(d);return H(d)}function n(){var s;return(s=t==null?void 0:t())!=null&&s.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function i(){const s={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?s:void 0}return a.jsxs(a.Fragment,{children:[a.jsxs(a.Fragment,{children:[a.jsxs("picture",{children:[n()?a.jsx(a.Fragment,{children:a.jsx("source",{type:"image/webp",srcSet:n()})}):null,a.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...i()},className:"builder-image"+(e.className?" "+e.className:"")+" img-40c70c9b",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((l=(o=e.builderBlock)==null?void 0:o.children)!=null&&l.length&&e.fitContent)?a.jsx(a.Fragment,{children:a.jsx("div",{className:"builder-image-sizer div-40c70c9b",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(c=(r=e.builderBlock)==null?void 0:r.children)!=null&&c.length&&e.fitContent?a.jsx(a.Fragment,{children:e.children}):null,!e.fitContent&&e.children?a.jsx(a.Fragment,{children:a.jsx("div",{className:"div-40c70c9b-2",children:e.children})}):null]}),a.jsx("style",{children:`.img-40c70c9b {
44
40
  opacity: 1;
45
41
  transition: opacity 0.2s ease-in-out;
46
42
  }.div-40c70c9b {
@@ -56,7 +52,7 @@
56
52
  left: 0;
57
53
  width: 100%;
58
54
  height: 100%;
59
- }`})]})}function be(e){return a.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})}const et={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},tt={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(i=>{i.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(c=>!c.get("width"))||n.reduce((l,s)=>l+s.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},nt={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]};function it(e){const t=m.useRef(null),[n,i]=m.useState(()=>[]),[o,c]=m.useState(()=>[]);return m.useEffect(()=>{var l;if(!((l=t.current)!=null&&l.getElementsByTagName)||typeof window=="undefined")return;const r=t.current.getElementsByTagName("script");for(let s=0;s<r.length;s++){const d=r[s];if(d.src){if(n.includes(d.src))continue;n.push(d.src);const g=document.createElement("script");g.async=!0,g.src=d.src,document.head.appendChild(g)}else if(!d.type||["text/javascript","application/javascript","application/ecmascript"].includes(d.type)){if(o.includes(d.innerText))continue;try{o.push(d.innerText),new Function(d.innerText)()}catch(g){console.warn("`CustomCode`: Error running script:",g)}}}},[]),a.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const at={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(i=>i.json()).then(i=>{e.get("url")===t&&(i.html?e.set("content",i.html):e.set("content","Invalid url, please try another"))}).catch(i=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},ot=["text/javascript","application/javascript","application/ecmascript"],rt=e=>ot.includes(e.type);function ct(e){const t=m.useRef(null),[n,i]=m.useState(()=>[]),[o,c]=m.useState(()=>[]),[r,l]=m.useState(()=>!1);function s(){if(!t.current||!t.current.getElementsByTagName)return;const d=t.current.getElementsByTagName("script");for(let g=0;g<d.length;g++){const b=d[g];if(b.src&&!n.includes(b.src)){n.push(b.src);const v=document.createElement("script");v.async=!0,v.src=b.src,document.head.appendChild(v)}else if(rt(b)&&!o.includes(b.innerText))try{o.push(b.innerText),new Function(b.innerText)()}catch(v){console.warn("`Embed`: Error running script:",v)}}}return m.useEffect(()=>{t.current&&!r&&(l(!0),s())},[t.current,r]),a.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const lt={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},st={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(r,l=6e4){return new Promise((s,d)=>{const g=document.createElement("img");let b=!1;g.onload=()=>{b=!0,s(g)},g.addEventListener("error",v=>{console.warn("Image load failed",v.error),d(v.error)}),g.src=r,setTimeout(()=>{b||d(new Error("Image load timed out"))},l)})}function i(r){return Math.round(r*1e3)/1e3}const o=e.get("image"),c=e.get("aspectRatio");if(fetch(o).then(r=>r.blob()).then(r=>{r.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!c||c===.7041))return n(o).then(r=>{const l=e.get("aspectRatio");e.get("image")===o&&(!l||l===.7041)&&r.width&&r.height&&(e.set("aspectRatio",i(r.height/r.width)),e.set("height",r.height),e.set("width",r.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},dt={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0};function ut(e){return a.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},u.isEditing()&&e.imgSrc||"default-key")}const mt={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},ft={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function gt(e){var t,n,i;return a.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:a.jsx(W,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(i=e.builderContext.rootState)==null?void 0:i[e.name]})})}const ht={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},bt={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function xe(e){var t;return a.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const xt={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]};function Se(e){var i,o,c,r,l,s,d;function t(){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 n(){return{...t()}}return a.jsxs("div",{style:{position:"relative"},children:[a.jsx("video",{className:"builder-video",...n(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(i=e.attributes)==null?void 0:i.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:a.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((c=(o=e.builderBlock)==null?void 0:o.children)!=null&&c.length))?a.jsx(a.Fragment,{children:a.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(l=(r=e.builderBlock)==null?void 0:r.children)!=null&&l.length&&e.fitContent?a.jsx(a.Fragment,{children:a.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&!e.fitContent?a.jsx(a.Fragment,{children:a.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 ne=()=>[{component:ce,...et},{component:fe,...tt},{component:it,...nt},{component:ct,...at},{component:ge,...lt},{component:he,...st},{component:ut,...dt},{component:be,...mt},{component:Ce,...ht},{component:xe,...bt},{component:Se,...xt},{component:gt,...ft}],St=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
55
+ }`})]})}function ye(e){return a.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})}const it={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},at={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(i=>{i.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(l=>!l.get("width"))||n.reduce((c,s)=>c+s.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},ot={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]};function rt(e){const t=m.useRef(null),[n,i]=m.useState(()=>[]),[o,l]=m.useState(()=>[]);return m.useEffect(()=>{var c;if(!((c=t.current)!=null&&c.getElementsByTagName)||typeof window=="undefined")return;const r=t.current.getElementsByTagName("script");for(let s=0;s<r.length;s++){const d=r[s];if(d.src){if(n.includes(d.src))continue;n.push(d.src);const g=document.createElement("script");g.async=!0,g.src=d.src,document.head.appendChild(g)}else if(!d.type||["text/javascript","application/javascript","application/ecmascript"].includes(d.type)){if(o.includes(d.innerText))continue;try{o.push(d.innerText),new Function(d.innerText)()}catch(g){console.warn("`CustomCode`: Error running script:",g)}}}},[]),a.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const lt={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(i=>i.json()).then(i=>{e.get("url")===t&&(i.html?e.set("content",i.html):e.set("content","Invalid url, please try another"))}).catch(i=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},ct=["text/javascript","application/javascript","application/ecmascript"],st=e=>ct.includes(e.type);function dt(e){const t=m.useRef(null),[n,i]=m.useState(()=>[]),[o,l]=m.useState(()=>[]),[r,c]=m.useState(()=>!1);function s(){if(!t.current||!t.current.getElementsByTagName)return;const d=t.current.getElementsByTagName("script");for(let g=0;g<d.length;g++){const b=d[g];if(b.src&&!n.includes(b.src)){n.push(b.src);const k=document.createElement("script");k.async=!0,k.src=b.src,document.head.appendChild(k)}else if(st(b)&&!o.includes(b.innerText))try{o.push(b.innerText),new Function(b.innerText)()}catch(k){console.warn("`Embed`: Error running script:",k)}}}return m.useEffect(()=>{t.current&&!r&&(c(!0),s())},[t.current,r]),a.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const ut={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},mt={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(r,c=6e4){return new Promise((s,d)=>{const g=document.createElement("img");let b=!1;g.onload=()=>{b=!0,s(g)},g.addEventListener("error",k=>{console.warn("Image load failed",k.error),d(k.error)}),g.src=r,setTimeout(()=>{b||d(new Error("Image load timed out"))},c)})}function i(r){return Math.round(r*1e3)/1e3}const o=e.get("image"),l=e.get("aspectRatio");if(fetch(o).then(r=>r.blob()).then(r=>{r.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!l||l===.7041))return n(o).then(r=>{const c=e.get("aspectRatio");e.get("image")===o&&(!c||c===.7041)&&r.width&&r.height&&(e.set("aspectRatio",i(r.height/r.width)),e.set("height",r.height),e.set("width",r.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},ft={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0};function gt(e){return a.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},u.isEditing()&&e.imgSrc||"default-key")}const ht={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},bt={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}]};function xt(e){var t,n,i;return a.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:a.jsx(V,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(i=e.builderContext.rootState)==null?void 0:i[e.name]})})}const St={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},yt={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function ve(e){var t;return a.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const vt={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]};function ke(e){var i,o,l,r,c,s,d;function t(){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 n(){return{...t()}}return a.jsxs("div",{style:{position:"relative"},children:[a.jsx("video",{className:"builder-video",...n(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(i=e.attributes)==null?void 0:i.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:a.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((l=(o=e.builderBlock)==null?void 0:o.children)!=null&&l.length))?a.jsx(a.Fragment,{children:a.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}})}):null,(c=(r=e.builderBlock)==null?void 0:r.children)!=null&&c.length&&e.fitContent?a.jsx(a.Fragment,{children:a.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&!e.fitContent?a.jsx(a.Fragment,{children:a.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 ae=()=>[{component:se,...it},{component:be,...at},{component:rt,...ot},{component:dt,...lt},{component:xe,...ut},{component:Se,...mt},{component:gt,...ft},{component:ye,...ht},{component:Te,...St},{component:ve,...yt},{component:ke,...vt},{component:xt,...bt}],kt=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
60
56
  function getAndSetVariantId() {
61
57
  function setCookie(name, value, days) {
62
58
  let expires = '';
@@ -112,7 +108,7 @@
112
108
  }).join('');
113
109
  styleEl.innerHTML = newStyleStr;
114
110
  }
115
- }`,yt=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
111
+ }`,Ct=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
116
112
  if (!navigator.cookieEnabled) {
117
113
  return;
118
114
  }
@@ -146,31 +142,31 @@
146
142
  thisScriptEl?.remove();
147
143
  }
148
144
  return;
149
- }`,ye="builderIoAbTest",ve="builderIoRenderContent",$=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),vt=({canTrack:e,content:t})=>!(!($(t).length>0)||!e||u.isBrowser()),pt=e=>e==="react"||e==="reactNative",pe=pt(u.TARGET),kt=()=>`
150
- window.${ye} = ${St}
151
- window.${ve} = ${yt}
152
- `,Ct=(e,t)=>`
153
- window.${ye}(
154
- "${t}",${JSON.stringify(e)}, ${pe}
155
- )`,wt=({contentId:e,variationId:t})=>`window.${ve}(
156
- "${t}", "${e}", ${pe}
157
- )`;function O(e){return a.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}const It=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function ke(e,t){const n=new URL(t.origin),i=n.hostname;return(e||It).findIndex(o=>o.startsWith("*.")?i.endsWith(o.slice(1)):o===i)>-1}function ie(e){return Math.round(e*1e3)/1e3}const Et=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let i=n?e:e.parentElement;do{if(!i)return null;if(t(i))return i}while(i=i.parentElement);return null},Tt=e=>Et(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(),i=e.clientX-n.left,o=e.clientY-n.top,c=ie(i/n.width),r=ie(o/n.height);return{x:c,y:r}},Rt=e=>{const t=e.target,n=t&&Tt(t),i=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:t?ae({event:e,target:t}):void 0,builderTargetOffset:n?ae({event:e,target:n}):void 0,builderElementIndex:n&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(n):void 0}}},jt="0.12.3",Bt=()=>{u.register("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 oe=!1;const Pt=(e={})=>{var t,n;oe||(oe=!0,u.isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:u.TARGET,version:jt,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",i=>{var c,r;if(!ke(e.trustedHosts,i))return;const{data:o}=i;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const l=o.data.text,s=o.data.arguments||[],d=o.data.id,g=new Function(l);let b,v=null;try{b=g.apply(null,s)}catch(y){v=y}v?(c=window.parent)==null||c.postMessage({type:"builder.evaluateError",data:{id:d,error:v.message}},"*"):b&&typeof b.then=="function"?b.then(y=>{var k;(k=window.parent)==null||k.postMessage({type:"builder.evaluateResult",data:{id:d,result:y}},"*")}).catch(console.error):(r=window.parent)==null||r.postMessage({type:"builder.evaluateResult",data:{result:b,id:d}},"*");break}}})))};function Ft(e){var F,D,q,G,Y,Q,J;const t=m.useRef(null),[n,i]=m.useState(()=>0);m.useState(()=>!0);function o(f){var x,S;const h={...e.builderContextSignal.rootState,...f};e.builderContextSignal.rootSetState?(S=(x=e.builderContextSignal).rootSetState)==null||S.call(x,h):e.setBuilderContextSignal(p=>({...p,rootState:h}))}function c(f){var x,S,p,E,V;const h={...e.builderContextSignal.content,...f,data:{...(x=e.builderContextSignal.content)==null?void 0:x.data,...f==null?void 0:f.data},meta:{...(S=e.builderContextSignal.content)==null?void 0:S.meta,...f==null?void 0:f.meta,breakpoints:((p=f==null?void 0:f.meta)==null?void 0:p.breakpoints)||((V=(E=e.builderContextSignal.content)==null?void 0:E.meta)==null?void 0:V.breakpoints)}};e.setBuilderContextSignal(we=>({...we,content:h}))}m.useState(()=>0);const[r,l]=m.useState(()=>!1),[s,d]=m.useState(()=>e.contentWrapper||"div");function g(f){var x;if(!ke(e.trustedHosts,f))return;const{data:h}=f;if(h)switch(h.type){case"builder.configureSdk":{const S=h.data,{breakpoints:p,contentId:E}=S;if(!E||E!==((x=e.builderContextSignal.content)==null?void 0:x.id))return;p&&c({meta:{breakpoints:p}}),i(n+1);break}case"builder.contentUpdate":{const S=h.data,p=S.key||S.alias||S.entry||S.modelName,E=S.data;p===e.model&&(c(E),i(n+1));break}}}function b(){var h,x;const f=(x=(h=e.builderContextSignal.content)==null?void 0:h.data)==null?void 0:x.jsCode;f&&A({code:f,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[v,y]=m.useState(()=>({})),[k,C]=m.useState(()=>!1);function T(f){var h,x;if(e.builderContextSignal.content){const S=(h=e.builderContextSignal.content)==null?void 0:h.testVariationId,p=(x=e.builderContextSignal.content)==null?void 0:x.id;u._track({type:"click",canTrack:u.getDefaultCanTrack(e.canTrack),contentId:p,apiKey:e.apiKey,variationId:S!==p?S:void 0,...Rt(f),unique:!k})}k||C(!0)}function R(f){return f.replace(/{{([^}]+)}}/g,(h,x)=>A({code:x,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function w({url:f,key:h}){u.fetch(f).then(x=>x.json()).then(x=>{var p,E;const S={...e.builderContextSignal.rootState,[h]:x};(E=(p=e.builderContextSignal).rootSetState)==null||E.call(p,S),v[h]=!0}).catch(x=>{console.error("error fetching dynamic data",f,x)})}function I(){var h,x,S;const f=(S=(x=(h=e.builderContextSignal.content)==null?void 0:h.data)==null?void 0:x.httpRequests)!=null?S:{};Object.entries(f).forEach(([p,E])=>{if(E&&(!v[p]||u.isEditing())){const V=R(E);w({url:V,key:p})}})}function j(){u.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:u.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function B(f){i(n+1),window.addEventListener("message",g),Bt(),Pt({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(h=>{var S;const x=u.createRegisterComponentMessage(h);(S=window.parent)==null||S.postMessage(x,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",j)}function P(f){const h=new URL(location.href).searchParams,x=h.get("builder.preview"),S=h.get(`builder.preview.${x}`),p=h.get("apiKey")||h.get("builder.space");x===e.model&&p===e.apiKey&&(!e.content||S===e.content.id)&&u.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(E=>{E&&c(E)})}return m.useEffect(()=>{var f;return(f=t.current)==null||f.addEventListener("initeditingbldr",B),()=>{var h;return(h=t.current)==null?void 0:h.removeEventListener("initeditingbldr",B)}},[]),m.useEffect(()=>{var f;return(f=t.current)==null||f.addEventListener("initpreviewingbldr",P),()=>{var h;return(h=t.current)==null?void 0:h.removeEventListener("initpreviewingbldr",P)}},[]),m.useEffect(()=>{var f,h;if(u.isBrowser()){if(u.isEditing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&u.getDefaultCanTrack(e.canTrack)){const S=(f=e.builderContextSignal.content)==null?void 0:f.testVariationId,p=(h=e.builderContextSignal.content)==null?void 0:h.id,E=e.apiKey;u._track({type:"impression",canTrack:!0,contentId:p,apiKey:E,variationId:S!==p?S:void 0})}u.isPreviewing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"))}},[]),m.useEffect(()=>{e.apiKey||u.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),b(),I(),j()},[]),m.useEffect(()=>{e.content&&c(e.content)},[e.content]),m.useEffect(()=>{},[r]),m.useEffect(()=>{b()},[(D=(F=e.builderContextSignal.content)==null?void 0:F.data)==null?void 0:D.jsCode,e.builderContextSignal.rootState]),m.useEffect(()=>{I()},[(G=(q=e.builderContextSignal.content)==null?void 0:q.data)==null?void 0:G.httpRequests]),m.useEffect(()=>{j()},[e.builderContextSignal.rootState]),m.useEffect(()=>{e.data&&o(e.data)},[e.data]),m.useEffect(()=>{e.locale&&o({locale:e.locale})},[e.locale]),m.useEffect(()=>()=>{u.isBrowser()&&(window.removeEventListener("message",g),window.removeEventListener("builder:component:stateChangeListenerActivated",j))},[]),a.jsx(H.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?a.jsx(a.Fragment,{children:m.createElement(s,{key:n,ref:t,onClick:f=>T(f),"builder-content-id":(Y=e.builderContextSignal.content)==null?void 0:Y.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((Q=e.content)==null?void 0:Q.testVariationId)||((J=e.content)==null?void 0:J.id)}`},e.children)}):null})}const At=e=>{var c,r;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],i=(r=e.fileUrl)!=null?r:(c=e==null?void 0:e.files)==null?void 0:c.regular;let o="";if(i&&t&&n&&(o+=`
145
+ }`,Ce="builderIoAbTest",pe="builderIoRenderContent",N=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),pt=({canTrack:e,content:t})=>!(!(N(t).length>0)||!e||u.isBrowser()),wt=e=>e==="react"||e==="reactNative",we=wt(u.TARGET),It=()=>`
146
+ window.${Ce} = ${kt}
147
+ window.${pe} = ${Ct}
148
+ `,Tt=(e,t)=>`
149
+ window.${Ce}(
150
+ "${t}",${JSON.stringify(e)}, ${we}
151
+ )`,Et=({contentId:e,variationId:t})=>`window.${pe}(
152
+ "${t}", "${e}", ${we}
153
+ )`;function K(e){return a.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}const Rt=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Ie(e,t){const n=new URL(t.origin),i=n.hostname;return(e||Rt).findIndex(o=>o.startsWith("*.")?i.endsWith(o.slice(1)):o===i)>-1}function oe(e){return Math.round(e*1e3)/1e3}const jt=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let i=n?e:e.parentElement;do{if(!i)return null;if(t(i))return i}while(i=i.parentElement);return null},Pt=e=>jt(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),re=({event:e,target:t})=>{const n=t.getBoundingClientRect(),i=e.clientX-n.left,o=e.clientY-n.top,l=oe(i/n.width),r=oe(o/n.height);return{x:l,y:r}},Bt=e=>{const t=e.target,n=t&&Pt(t),i=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:t?re({event:e,target:t}):void 0,builderTargetOffset:n?re({event:e,target:n}):void 0,builderElementIndex:n&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(n):void 0}}},Ft="0.12.4",At=()=>{u.register("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 le=!1;const Wt=(e={})=>{var t,n;le||(le=!0,u.isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:u.TARGET,version:Ft,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",i=>{var l,r;if(!Ie(e.trustedHosts,i))return;const{data:o}=i;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const c=o.data.text,s=o.data.arguments||[],d=o.data.id,g=new Function(c);let b,k=null;try{b=g.apply(null,s)}catch(y){k=y}k?(l=window.parent)==null||l.postMessage({type:"builder.evaluateError",data:{id:d,error:k.message}},"*"):b&&typeof b.then=="function"?b.then(y=>{var v;(v=window.parent)==null||v.postMessage({type:"builder.evaluateResult",data:{id:d,result:y}},"*")}).catch(console.error):(r=window.parent)==null||r.postMessage({type:"builder.evaluateResult",data:{result:b,id:d}},"*");break}}})))};function Vt(e){var F,M,U,Q,J,X,Z;const t=m.useRef(null),[n,i]=m.useState(()=>0);m.useState(()=>!0);function o(f){var x,S;const h={...e.builderContextSignal.rootState,...f};e.builderContextSignal.rootSetState?(S=(x=e.builderContextSignal).rootSetState)==null||S.call(x,h):e.setBuilderContextSignal(C=>({...C,rootState:h}))}function l(f){var x,S,C,T,$;const h={...e.builderContextSignal.content,...f,data:{...(x=e.builderContextSignal.content)==null?void 0:x.data,...f==null?void 0:f.data},meta:{...(S=e.builderContextSignal.content)==null?void 0:S.meta,...f==null?void 0:f.meta,breakpoints:((C=f==null?void 0:f.meta)==null?void 0:C.breakpoints)||(($=(T=e.builderContextSignal.content)==null?void 0:T.meta)==null?void 0:$.breakpoints)}};e.setBuilderContextSignal(Ee=>({...Ee,content:h}))}m.useState(()=>0);const[r,c]=m.useState(()=>!1),[s,d]=m.useState(()=>e.contentWrapper||"div");function g(f){var x;if(!Ie(e.trustedHosts,f))return;const{data:h}=f;if(h)switch(h.type){case"builder.configureSdk":{const S=h.data,{breakpoints:C,contentId:T}=S;if(!T||T!==((x=e.builderContextSignal.content)==null?void 0:x.id))return;C&&l({meta:{breakpoints:C}}),i(n+1);break}case"builder.contentUpdate":{const S=h.data,C=S.key||S.alias||S.entry||S.modelName,T=S.data;C===e.model&&(l(T),i(n+1));break}}}function b(){var h,x;const f=(x=(h=e.builderContextSignal.content)==null?void 0:h.data)==null?void 0:x.jsCode;f&&W({code:f,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[k,y]=m.useState(()=>({})),[v,p]=m.useState(()=>!1);function E(f){var h,x;if(e.builderContextSignal.content){const S=(h=e.builderContextSignal.content)==null?void 0:h.testVariationId,C=(x=e.builderContextSignal.content)==null?void 0:x.id;u._track({type:"click",canTrack:u.getDefaultCanTrack(e.canTrack),contentId:C,apiKey:e.apiKey,variationId:S!==C?S:void 0,...Bt(f),unique:!v})}v||p(!0)}function j(f){return f.replace(/{{([^}]+)}}/g,(h,x)=>W({code:x,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function w({url:f,key:h}){u.fetch(f).then(x=>x.json()).then(x=>{var C,T;const S={...e.builderContextSignal.rootState,[h]:x};(T=(C=e.builderContextSignal).rootSetState)==null||T.call(C,S),k[h]=!0}).catch(x=>{console.error("error fetching dynamic data",f,x)})}function I(){var h,x,S;const f=(S=(x=(h=e.builderContextSignal.content)==null?void 0:h.data)==null?void 0:x.httpRequests)!=null?S:{};Object.entries(f).forEach(([C,T])=>{if(T&&(!k[C]||u.isEditing())){const $=j(T);w({url:$,key:C})}})}function R(){u.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:u.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function P(f){i(n+1),window.addEventListener("message",g),At(),Wt({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(h=>{var S;const x=u.createRegisterComponentMessage(h);(S=window.parent)==null||S.postMessage(x,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",R)}function B(f){const h=new URL(location.href).searchParams,x=h.get("builder.preview"),S=h.get(`builder.preview.${x}`),C=h.get("apiKey")||h.get("builder.space");x===e.model&&C===e.apiKey&&(!e.content||S===e.content.id)&&u.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(T=>{T&&l(T)})}return m.useEffect(()=>{var f;return(f=t.current)==null||f.addEventListener("initeditingbldr",P),()=>{var h;return(h=t.current)==null?void 0:h.removeEventListener("initeditingbldr",P)}},[]),m.useEffect(()=>{var f;return(f=t.current)==null||f.addEventListener("initpreviewingbldr",B),()=>{var h;return(h=t.current)==null?void 0:h.removeEventListener("initpreviewingbldr",B)}},[]),m.useEffect(()=>{var f,h;if(u.isBrowser()){if(u.isEditing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&u.getDefaultCanTrack(e.canTrack)){const S=(f=e.builderContextSignal.content)==null?void 0:f.testVariationId,C=(h=e.builderContextSignal.content)==null?void 0:h.id,T=e.apiKey;u._track({type:"impression",canTrack:!0,contentId:C,apiKey:T,variationId:S!==C?S:void 0})}u.isPreviewing()&&t.current&&t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"))}},[]),m.useEffect(()=>{e.apiKey||u.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),b(),I(),R()},[]),m.useEffect(()=>{e.content&&l(e.content)},[e.content]),m.useEffect(()=>{},[r]),m.useEffect(()=>{b()},[(M=(F=e.builderContextSignal.content)==null?void 0:F.data)==null?void 0:M.jsCode,e.builderContextSignal.rootState]),m.useEffect(()=>{I()},[(Q=(U=e.builderContextSignal.content)==null?void 0:U.data)==null?void 0:Q.httpRequests]),m.useEffect(()=>{R()},[e.builderContextSignal.rootState]),m.useEffect(()=>{e.data&&o(e.data)},[e.data]),m.useEffect(()=>{e.locale&&o({locale:e.locale})},[e.locale]),m.useEffect(()=>()=>{u.isBrowser()&&(window.removeEventListener("message",g),window.removeEventListener("builder:component:stateChangeListenerActivated",R))},[]),a.jsx(q.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?a.jsx(a.Fragment,{children:m.createElement(s,{key:n,ref:t,onClick:f=>E(f),"builder-content-id":(J=e.builderContextSignal.content)==null?void 0:J.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps,className:`variant-${((X=e.content)==null?void 0:X.testVariationId)||((Z=e.content)==null?void 0:Z.id)}`},e.children)}):null})}const $t=e=>{var l,r;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],i=(r=e.fileUrl)!=null?r:(l=e==null?void 0:e.files)==null?void 0:l.regular;let o="";if(i&&t&&n&&(o+=`
158
154
  @font-face {
159
155
  font-family: "${t}";
160
156
  src: local("${n}"), url('${i}') format('woff2');
161
157
  font-display: fallback;
162
158
  font-weight: 400;
163
159
  }
164
- `.trim()),e.files)for(const l in e.files){if(!(String(Number(l))===l))continue;const d=e.files[l];d&&d!==i&&(o+=`
160
+ `.trim()),e.files)for(const c in e.files){if(!(String(Number(c))===c))continue;const d=e.files[c];d&&d!==i&&(o+=`
165
161
  @font-face {
166
162
  font-family: "${t}";
167
163
  src: url('${d}') format('woff2');
168
164
  font-display: fallback;
169
- font-weight: ${l};
165
+ font-weight: ${c};
170
166
  }
171
- `.trim())}return o},Wt=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>At(n)))==null?void 0:t.join(" "))||""},Vt=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"";function $t(e){const[t,n]=m.useState(()=>`
172
- ${Vt({cssCode:e.cssCode,contentId:e.contentId})}
173
- ${Wt({customFonts:e.customFonts})}
167
+ `.trim())}return o},Nt=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>$t(n)))==null?void 0:t.join(" "))||""},Lt=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"";function _t(e){const[t,n]=m.useState(()=>`
168
+ ${Lt({cssCode:e.cssCode,contentId:e.contentId})}
169
+ ${Nt({customFonts:e.customFonts})}
174
170
 
175
171
  .builder-button {
176
172
  all: unset;
@@ -188,4 +184,4 @@ ${Wt({customFonts:e.customFonts})}
188
184
  text-align: inherit;
189
185
  font-family: inherit;
190
186
  }
191
- `.trim());return a.jsx(_,{styles:t})}const Nt=({content:e,data:t,locale:n})=>{var c,r,l;const i={},o=((c=e==null?void 0:e.data)==null?void 0:c.state)||{};return(l=(r=e==null?void 0:e.data)==null?void 0:r.inputs)==null||l.forEach(s=>{s.name&&s.defaultValue!==void 0&&(i[s.name]=s.defaultValue)}),{...i,...o,...t,...n?{locale:n}:{}}},_t=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function re(e){var s,d,g,b,v,y,k;const[t,n]=m.useState(()=>{var C,T;return wt({variationId:(C=e.content)==null?void 0:C.testVariationId,contentId:(T=e.content)==null?void 0:T.id})});function i(C){l(T=>({...T,rootState:C}))}const[o,c]=m.useState(()=>[...ne(),...u.components,...e.customComponents||[]].reduce((C,{component:T,...R})=>({...C,[R.name]:{component:T,...u.serializeComponentInfo(R)}}),{})),[r,l]=m.useState(()=>({content:_t({content:e.content,data:e.data}),localState:void 0,rootState:Nt({content:e.content,data:e.data,locale:e.locale}),rootSetState:i,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...ne(),...u.components,...e.customComponents||[]].reduce((C,{component:T,...R})=>({...C,[R.name]:u.serializeComponentInfo(R)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}}));return a.jsx(le.Provider,{value:{registeredComponents:o},children:a.jsxs(Ft,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,showContent:e.showContent,builderContextSignal:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,setBuilderContextSignal:l,children:[e.isSsrAbTest?a.jsx(a.Fragment,{children:a.jsx(O,{scriptStr:t})}):null,a.jsx(a.Fragment,{children:a.jsx($t,{contentId:(s=r.content)==null?void 0:s.id,cssCode:(g=(d=r.content)==null?void 0:d.data)==null?void 0:g.cssCode,customFonts:(v=(b=r.content)==null?void 0:b.data)==null?void 0:v.customFonts})}),a.jsx(W,{blocks:(k=(y=r.content)==null?void 0:y.data)==null?void 0:k.blocks,context:r,registeredComponents:o})]})})}function z(e){var r,l;const[t,n]=m.useState(()=>vt({canTrack:u.getDefaultCanTrack(e.canTrack),content:e.content}));function i(){var s;return Ct($(e.content).map(d=>({id:d.testVariationId,testRatio:d.testRatio})),((s=e.content)==null?void 0:s.id)||"")}function o(){return $(e.content).map(s=>`.variant-${s.testVariationId} { display: none; } `).join("")}function c(){var s;return t?{...e.content,testVariationId:(s=e.content)==null?void 0:s.id}:u.handleABTestingSync({item:e.content,canTrack:u.getDefaultCanTrack(e.canTrack)})}return m.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[!e.__isNestedRender&&u.TARGET!=="reactNative"?a.jsx(a.Fragment,{children:a.jsx(O,{scriptStr:kt()})}):null,t?a.jsxs(a.Fragment,{children:[a.jsx(_,{id:`variants-styles-${(r=e.content)==null?void 0:r.id}`,styles:o()}),a.jsx(O,{scriptStr:i()}),(l=$(e.content))==null?void 0:l.map(s=>a.jsx(re,{content:s,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},s.testVariationId))]}):null,a.jsx(re,{content:c(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const Lt=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return u.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{u.logger.error("Could not fetch symbol content: ",n)})};function Ce(e){var c,r,l,s;function t(){var d,g;return[e.attributes.className,"builder-symbol",(d=e.symbol)!=null&&d.inline?"builder-inline-symbol":void 0,(g=e.symbol)!=null&&g.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[n,i]=m.useState(()=>{var d;return(d=e.symbol)==null?void 0:d.content});function o(){n||Lt({symbol:e.symbol,builderContextValue:e.builderContext}).then(d=>{d&&i(d)})}return m.useEffect(()=>{},[]),m.useEffect(()=>{o()},[e.symbol]),a.jsx("div",{...e.attributes,className:t(),children:a.jsx(z,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(c=e.builderBlock)==null?void 0:c.id},customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(l=n==null?void 0:n.data)==null?void 0:l.state},model:(s=e.symbol)==null?void 0:s.model,content:n})})}const Dt=W,Mt=z;exports._processContentResult=u._processContentResult;exports.createRegisterComponentMessage=u.createRegisterComponentMessage;exports.fetchBuilderProps=u.fetchBuilderProps;exports.fetchEntries=u.fetchEntries;exports.fetchOneEntry=u.fetchOneEntry;exports.getAllContent=u.getAllContent;exports.getBuilderSearchParams=u.getBuilderSearchParams;exports.getContent=u.getContent;exports.isEditing=u.isEditing;exports.isPreviewing=u.isPreviewing;exports.register=u.register;exports.setEditorSettings=u.setEditorSettings;exports.track=u.track;exports.Blocks=W;exports.Button=ce;exports.Columns=fe;exports.Content=z;exports.Fragment=ge;exports.Image=he;exports.RenderBlocks=Dt;exports.RenderContent=Mt;exports.Section=be;exports.Symbol=Ce;exports.Text=xe;exports.Video=Se;
187
+ `.trim());return a.jsx(_,{styles:t})}const Dt=({content:e,data:t,locale:n})=>{var l,r,c;const i={},o=((l=e==null?void 0:e.data)==null?void 0:l.state)||{};return(c=(r=e==null?void 0:e.data)==null?void 0:r.inputs)==null||c.forEach(s=>{s.name&&s.defaultValue!==void 0&&(i[s.name]=s.defaultValue)}),{...i,...o,...t,...n?{locale:n}:{}}},Mt=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function ce(e){var s,d,g,b,k,y,v;const[t,n]=m.useState(()=>{var p,E;return Et({variationId:(p=e.content)==null?void 0:p.testVariationId,contentId:(E=e.content)==null?void 0:E.id})});function i(p){c(E=>({...E,rootState:p}))}const[o,l]=m.useState(()=>[...ae(),...u.components,...e.customComponents||[]].reduce((p,{component:E,...j})=>({...p,[j.name]:{component:E,...u.serializeComponentInfo(j)}}),{})),[r,c]=m.useState(()=>({content:Mt({content:e.content,data:e.data}),localState:void 0,rootState:Dt({content:e.content,data:e.data,locale:e.locale}),rootSetState:i,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...ae(),...u.components,...e.customComponents||[]].reduce((p,{component:E,...j})=>({...p,[j.name]:u.serializeComponentInfo(j)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}}));return a.jsx(de.Provider,{value:{registeredComponents:o},children:a.jsxs(Vt,{content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,showContent:e.showContent,builderContextSignal:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts,setBuilderContextSignal:c,children:[e.isSsrAbTest?a.jsx(a.Fragment,{children:a.jsx(K,{scriptStr:t})}):null,a.jsx(a.Fragment,{children:a.jsx(_t,{contentId:(s=r.content)==null?void 0:s.id,cssCode:(g=(d=r.content)==null?void 0:d.data)==null?void 0:g.cssCode,customFonts:(k=(b=r.content)==null?void 0:b.data)==null?void 0:k.customFonts})}),a.jsx(V,{blocks:(v=(y=r.content)==null?void 0:y.data)==null?void 0:v.blocks,context:r,registeredComponents:o,linkComponent:e.linkComponent})]})})}function Y(e){var r,c;const[t,n]=m.useState(()=>pt({canTrack:u.getDefaultCanTrack(e.canTrack),content:e.content}));function i(){var s;return Tt(N(e.content).map(d=>({id:d.testVariationId,testRatio:d.testRatio})),((s=e.content)==null?void 0:s.id)||"")}function o(){return N(e.content).map(s=>`.variant-${s.testVariationId} { display: none; } `).join("")}function l(){var s;return t?{...e.content,testVariationId:(s=e.content)==null?void 0:s.id}:u.handleABTestingSync({item:e.content,canTrack:u.getDefaultCanTrack(e.canTrack)})}return m.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[!e.__isNestedRender&&u.TARGET!=="reactNative"?a.jsx(a.Fragment,{children:a.jsx(K,{scriptStr:It()})}):null,t?a.jsxs(a.Fragment,{children:[a.jsx(_,{id:`variants-styles-${(r=e.content)==null?void 0:r.id}`,styles:o()}),a.jsx(K,{scriptStr:i()}),(c=N(e.content))==null?void 0:c.map(s=>a.jsx(ce,{content:s,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},s.testVariationId))]}):null,a.jsx(ce,{content:l(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const Ut=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return u.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{u.logger.error("Could not fetch symbol content: ",n)})};function Te(e){var l,r,c,s;function t(){var d,g;return[e.attributes[A()],"builder-symbol",(d=e.symbol)!=null&&d.inline?"builder-inline-symbol":void 0,(g=e.symbol)!=null&&g.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[n,i]=m.useState(()=>{var d;return(d=e.symbol)==null?void 0:d.content});function o(){n||Ut({symbol:e.symbol,builderContextValue:e.builderContext}).then(d=>{d&&i(d)})}return m.useEffect(()=>{},[]),m.useEffect(()=>{o()},[e.symbol]),a.jsx("div",{...e.attributes,className:t(),children:a.jsx(Y,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(l=e.builderBlock)==null?void 0:l.id},customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(c=n==null?void 0:n.data)==null?void 0:c.state},model:(s=e.symbol)==null?void 0:s.model,content:n,linkComponent:e.builderLinkComponent})})}const Ot=V,Ht=Y;exports._processContentResult=u._processContentResult;exports.createRegisterComponentMessage=u.createRegisterComponentMessage;exports.fetchBuilderProps=u.fetchBuilderProps;exports.fetchEntries=u.fetchEntries;exports.fetchOneEntry=u.fetchOneEntry;exports.getAllContent=u.getAllContent;exports.getBuilderSearchParams=u.getBuilderSearchParams;exports.getContent=u.getContent;exports.isEditing=u.isEditing;exports.isPreviewing=u.isPreviewing;exports.register=u.register;exports.setEditorSettings=u.setEditorSettings;exports.track=u.track;exports.Blocks=V;exports.Button=se;exports.Columns=be;exports.Content=Y;exports.Fragment=xe;exports.Image=Se;exports.RenderBlocks=Ot;exports.RenderContent=Ht;exports.Section=ye;exports.Symbol=Te;exports.Text=ve;exports.Video=ke;