{"version":3,"file":"ResponsiveRadius.CjvIQbbB.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/u9ul4XYaRc3IYmEixeHz/jmJ6C1paMJfYXe5ALFFH/ResponsiveRadius.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export function withResponsiveRadius(Component){return props=>{const[radius,setRadius]=useState(18);useEffect(()=>{const updateRadius=()=>{const width=window.innerWidth;// Desktop 1920 and more (starts at 1650 based on your screenshot)\nif(width>=1650){setRadius(18);}else if(width>=1320){setRadius(12);}else if(width>=1024){setRadius(12);}else if(width>=810){setRadius(12);}else{setRadius(15);}};updateRadius();window.addEventListener(\"resize\",updateRadius);return()=>window.removeEventListener(\"resize\",updateRadius);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,borderRadius:radius,// These ensure the radius is forced onto the element\nborderTopLeftRadius:radius,borderTopRightRadius:radius,borderBottomLeftRadius:radius,borderBottomRightRadius:radius,overflow:\"hidden\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withResponsiveRadius\":{\"type\":\"reactHoc\",\"name\":\"withResponsiveRadius\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ResponsiveRadius.map"],"mappings":"uIAAiF,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAS,GAAG,CAC4G,OAD3G,MAAc,CAAC,IAAM,MAAiB,CAAC,IAAM,EAAM,EAAO,WAC/N,EAAb,GAAO,KAAgB,GAAa,GAAO,MAA6B,GAAO,MAA6B,GAAO,IAAxD,GAA2F,GAAG,EAAkE,OAA9D,GAAc,CAAC,EAAO,iBAAiB,SAAS,EAAa,KAAW,EAAO,oBAAoB,SAAS,EAAa,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,aAAa,EAChX,oBAAoB,EAAO,qBAAqB,EAAO,uBAAuB,EAAO,wBAAwB,EAAO,SAAS,SAAS,CAAC,CAAC,uBAF7F,IAAsC"}