{"version":3,"file":"ExcludeBlogSearch.BotW483o.mjs","names":[],"sources":["https:/framerusercontent.com/modules/nfEY2rWVc0fXUSajbFuP/WFGPfkCbrD9PJNm3ZXnK/ExcludeBlogSearch.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function excludeBlogFromSearch(Component){return props=>{useEffect(()=>{const hideBlogResults=()=>{// Find all links pointing to blog pages\nconst blogLinks=document.querySelectorAll('a[href*=\"/blog\"]');blogLinks.forEach(link=>{// SAFEGUARD 1: Never touch links inside navbars, headers, or footers\nif(link.closest(\"nav, header, footer, [class*='nav'], [class*='Nav']\")){return;}// SAFEGUARD 2: Check the parent container\nconst parent=link.parentElement;if(parent){const linksInParent=parent.querySelectorAll(\"a\").length;// If parent wraps ONLY this single result item, hide the parent wrapper\nif(linksInParent===1&&parent.tagName!==\"BODY\"){parent.style.setProperty(\"display\",\"none\",\"important\");}else{// If parent holds ALL search results, hide ONLY this specific blog link\nlink.style.setProperty(\"display\",\"none\",\"important\");}}});};hideBlogResults();// Dynamic observer to handle results as you type\nconst observer=new MutationObserver(hideBlogResults);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"excludeBlogFromSearch\":{\"type\":\"reactHoc\",\"name\":\"excludeBlogFromSearch\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExcludeBlogSearch.map"],"mappings":"kHAAwE,SAAgB,EAAsB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,MAAoB,CACnH,SAArC,iBAAiB,kBAA4B,CAAC,CAAC,QAAQ,GAAM,CACtF,GAAG,EAAK,QAAQ,qDAAqD,EAAG,OACxE,IAAM,EAAO,EAAK,cAAiB,IAA4B,EAAO,iBAAiB,GAAG,CAAC,CAAC,SACzE,GAAG,EAAO,UAAU,OAAQ,EAAO,MAAM,YAAY,UAAU,OAAO,WAAW,EACpG,EAAK,MAAM,YAAY,UAAU,OAAO,WAAW,EAAI,CAAC,CAAE,EAAE,EAAgB,EAC5E,IAAM,EAAS,IAAI,iBAAiB,CAAe,EAAgE,OAA9D,EAAS,QAAQ,SAAS,KAAK,CAAC,UAAU,GAAK,QAAQ,EAAI,CAAC,MAAY,EAAS,WAAW,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,iBANhK,IAA6B"}