{"version":3,"file":"code.BkX653xZ.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,IAAI,EACwK,OADtK,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,4BAA4B,EAAE,GAAG,CAAC,EAAO,OAAO,IAAM,MAAiB,CAC1Q,GAAG,EAAO,WAAW,KAAK,CAAC,EAAU,IAAI,EAAE,MAAO,CAAC,EAAU,EAAO,sBAAsB,CAAC,CAAC,MAAM,CAAE,EAAE,EAAa,EAAE,IAAM,EAAG,IAAI,eAAe,CAAY,EAAoE,OAAlE,EAAG,QAAQ,CAAM,EAAE,EAAO,iBAAiB,SAAS,CAAY,MAAY,CAAC,EAAG,WAAW,EAAE,EAAO,oBAAoB,SAAS,CAAY,CAAE,CAAE,EAAE,CAAC,CAAC,EAAQ,CAAC,MAAM,CACnU,UAAU,IAAS,KAAmB,IAAA,GAAd,GAAG,EAAO,IAAc,UAAU,YAAY,CAAC,CAAE,CAAoJ,SAAgB,EAAU,EAAE,CAAC,MAAO,KAAQ,EAA+BC,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAM,CAAK,CAAC,CAAC,EAAI,qBAFnV,IAAsC,IAE4I,EAAkK,EAAU,YAAY"}