{"version":3,"file":"DynamicAndRelativeUnits.CurEOTKo.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/nnJyte1WVbepBvBfsq9m/4hrXFzSOZ6nzCbKcB4VJ/DynamicAndRelativeUnits.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";const STYLE_REGEX=/(width|height):\\s*([0-9.]+[a-z%]+)/i;export function withDynamicAndRelativeUnits(Component){return props=>{const name=props[\"data-framer-name\"]||props.name||\"\";const dynamicStyle=useMemo(()=>name.toLowerCase().split(\"|\").reduce((acc,declaration)=>{const match=declaration.match(STYLE_REGEX);if(match){const[,property,value]=match;acc[property]=value;}return acc;},{}),[name]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,...dynamicStyle}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDynamicAndRelativeUnits\":{\"type\":\"reactHoc\",\"name\":\"withDynamicAndRelativeUnits\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicAndRelativeUnits.map"],"mappings":"kHAA8H,SAAgB,EAA4B,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAK,EAAM,qBAAqB,EAAM,MAAM,GAAS,EAAaA,MAAY,EAAK,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAI,IAAc,CAAC,IAAM,EAAM,EAAY,MAAM,CAAW,EAAE,GAAG,EAAM,CAAC,GAAK,EAAE,EAAS,GAAO,EAAM,EAAI,GAAU,CAAM,CAAC,OAAO,CAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAI,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,GAAG,CAAY,CAAC,CAAC,CAAE,CAAE,mBAA/f,IAA2B,EAAO,EAAY"}