{"version":3,"file":"Dynamic_Spacer.C5_T3CGo.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/jw5rTbiRbJEETZrd3vDP/6F9GWhqCdHAfsuh586Sw/Dynamic_Spacer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function SpacerBlock(props){const[viewportHeight,setViewportHeight]=useState(0);useEffect(()=>{// Only run on the client\nconst updateHeight=()=>{if(typeof window!==\"undefined\"){setViewportHeight(window.innerHeight);}};updateHeight();window.addEventListener(\"resize\",updateHeight);return()=>window.removeEventListener(\"resize\",updateHeight);},[]);const spacerHeight=viewportHeight>0?(viewportHeight-props.siblingHeight)/2:0;return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:\"100%\",height:spacerHeight}});}SpacerBlock.displayName=\"Spacer Block\";addPropertyControls(SpacerBlock,{siblingHeight:{type:ControlType.Number,title:\"Sibling Height\",defaultValue:0,min:0,max:2e3,step:1,displayStepper:true,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SpacerBlock\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dynamic_Spacer.map"],"mappings":"0LAGG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,EAAe,GAAmBA,EAAS,EAAE,CAAC,MAAc,CAChH,IAAM,MAAiB,CAAW,IAAS,QAAa,EAAkB,EAAO,YAAY,EAAkE,OAA9D,GAAc,CAAC,EAAO,iBAAiB,SAAS,EAAa,KAAW,EAAO,oBAAoB,SAAS,EAAa,EAAG,EAAE,CAAC,CAAC,IAAM,EAAa,EAAe,GAAG,EAAe,EAAM,eAAe,EAAE,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,OAAO,OAAO,EAAa,CAAC,CAAC,sBAJ5V,IAAoD,IAAsC,CAIoQ,EAAY,YAAY,eAAe,EAAoB,EAAY,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,aAAa,EAAE,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,eAAe,GAAK,KAAK,KAAK,CAAC,CAAC"}