{"version":3,"file":"UtilityOverrides.DUEychEd.mjs","names":[],"sources":["https:/framerusercontent.com/modules/0n8lAoZmGIKTGOSrztxX/H0UIsjWxoYjMLCjFIV4L/UtilityOverrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useLayoutEffect}from\"react\";// Learn more: https://www.framer.com/docs/guides/overrides/\nexport function withLogProps(Component){return props=>{console.log(props);return /*#__PURE__*/_jsx(Component,{...props});};}export function withHiddenContent(Component){return props=>{const cardCount=3;function hideChildrenCardWhenExceedsTheCount(){const filterElements=document.querySelectorAll(\".filter-cms-content-resource\");filterElements.forEach(parentNode=>{if(!parentNode)return;const children=Array.from(parentNode.children).filter(child=>!child.classList.contains(\"no-results-message\"));children.forEach((filterElement,index)=>{filterElement.style.display=index<cardCount?\"\":\"none\";});});}useLayoutEffect(()=>{hideChildrenCardWhenExceedsTheCount();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withFilterContent(Component){return props=>{const clsName=`${props.className} search-text-resource`;return /*#__PURE__*/_jsx(Component,{...props,className:clsName});};}export function withFilterContainer(Component){return props=>{const newCls=`${props.className} filter-cms-content-resource`;return /*#__PURE__*/_jsx(Component,{...props,className:newCls});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withFilterContainer\":{\"type\":\"reactHoc\",\"name\":\"withFilterContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterContent\":{\"type\":\"reactHoc\",\"name\":\"withFilterContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHiddenContent\":{\"type\":\"reactHoc\",\"name\":\"withHiddenContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLogProps\":{\"type\":\"reactHoc\",\"name\":\"withLogProps\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UtilityOverrides.map"],"mappings":"mJACA,SAAgB,EAAa,EAAU,CAAC,MAAO,CAAA,IAAQ,QAAQ,IAAI,EAAM,CAAqB,EAAK,EAAU,CAAC,GAAG,CAAM,EAAC,CAAI,CAA6kB,SAAgB,EAAkB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,KAAW,EAAM,UAAU,uBAAuB,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAM,UAAU,CAAQ,EAAC,AAAE,CAAE,UAAgB,EAAoB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,KAAU,EAAM,UAAU,8BAA8B,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAM,UAAU,CAAO,EAAC,AAAE,CAAE,cADhkC,GAA2C,IAAmC"}