{"version":3,"file":"code.8OrXBWjq.mjs","names":["useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/1T7MZkzh0R8UAUsyVd0B/MLUDyEUnkRQrKDtRRl7i/code.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function osto2(){const[height,setHeight]=useState(null);useEffect(()=>{const target=document.querySelector('[data-framer-name=\"osto1\"]');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 withosto2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...osto2(props)});};}withosto2.displayName=\"osto2\";\nexport const __FramerMetadata__ = {\"exports\":{\"osto2\":{\"type\":\"override\",\"name\":\"osto2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withosto2\":{\"type\":\"reactHoc\",\"name\":\"withosto2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./code.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"}