{"version":3,"file":"Div_Delete.CFmeRSPs.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/sj61Mw1fB5ESaA37DLV8/2e5jAizoEnuyXzCLh3cr/Div_Delete.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{Frame}from\"framer\";export function HideEmptyDiv(){const[shouldHide,setShouldHide]=useState(false);useEffect(()=>{// Select all matching divs\nconst divs=document.querySelectorAll(\"div[style*='position: relative']\");divs.forEach(div=>{if(div.textContent?.trim()===\"Empty\"){div.style.display=\"none\";setShouldHide(true);}});},[]);return /*#__PURE__*/_jsx(Frame,{background:\"transparent\",size:\"100%\",children:shouldHide?\"Empty div hidden\":\"No 'Empty' div found\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"HideEmptyDiv\":{\"type\":\"reactComponent\",\"name\":\"HideEmptyDiv\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Div_Delete.map"],"mappings":"2KAA2G,SAAgB,GAAc,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAS,GAAM,CACA,OADC,MAAc,CAC7L,SAAS,iBAAiB,mCAAmC,CAAM,QAAQ,GAAK,CAAI,EAAI,aAAa,MAAM,GAAG,UAAS,EAAI,MAAM,QAAQ,OAAO,EAAc,GAAK,GAAI,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAM,CAAC,WAAW,cAAc,KAAK,OAAO,SAAS,EAAW,mBAAmB,uBAAuB,CAAC,kBADlR,IAAsC,IAA0B"}