{"version":3,"file":"Code2.DRSxXiIg.mjs","names":["useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/4tcZhYFadPukWbhN4SL5/JTwjSUQqu848FEJxPpIQ/Code2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function osto4(){const[height,setHeight]=useState(null);useEffect(()=>{const target=document.querySelector('[data-framer-name=\"osto3\"]');if(!target)return;const updateHeight=()=>{// Jos leveys alle 1023px → ei aseteta korkeutta\nif(window.innerWidth<1023){setHeight(null);return;}setHeight(target.getBoundingClientRect().height);};updateHeight();const ro=new ResizeObserver(updateHeight);ro.observe(target);window.addEventListener(\"resize\",updateHeight);return()=>{ro.disconnect();window.removeEventListener(\"resize\",updateHeight);};},[]);return{style:{// Aseta minHeight vain jos leveys on riittävä\nminHeight:height!==null?`${height}px`:undefined,boxSizing:\"border-box\"}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withosto4(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...osto4(props)});};}withosto4.displayName=\"osto4\";\nexport const __FramerMetadata__ = {\"exports\":{\"withosto4\":{\"type\":\"reactHoc\",\"name\":\"withosto4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"osto4\":{\"type\":\"override\",\"name\":\"osto4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Code2.map"],"mappings":"+LAAiF,SAAgB,GAAO,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAS,KAAK,CACuK,OADtK,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,6BAA6B,CAAC,GAAG,CAAC,EAAO,OAAO,IAAM,MAAiB,CAC1Q,GAAG,EAAO,WAAW,KAAK,CAAC,EAAU,KAAK,CAAC,OAAQ,EAAU,EAAO,uBAAuB,CAAC,OAAO,EAAG,GAAc,CAAC,IAAM,EAAG,IAAI,eAAe,EAAa,CAAmE,OAAlE,EAAG,QAAQ,EAAO,CAAC,EAAO,iBAAiB,SAAS,EAAa,KAAW,CAAC,EAAG,YAAY,CAAC,EAAO,oBAAoB,SAAS,EAAa,GAAK,EAAE,CAAC,CAAO,CAAC,MAAM,CACnU,UAAU,IAAS,KAAmB,IAAA,GAAd,GAAG,EAAO,IAAc,UAAU,aAAa,CAAC,CAAqJ,SAAgB,EAAU,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAM,EAAM,CAAC,CAAC,uBAF/U,IAAsC,IAE4I,CAAiK,EAAU,YAAY"}