{"version":3,"file":"BlogOverrides.DXLCbAcY.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/dmcbcGeiUrvD08OEmq6K/zlakLBjwrEcxeNVFxDbl/BlogOverrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useRef}from\"react\";// Meant to be used when the only filter that is set is the Date\nexport function withBeforeTodaysDate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const todayISO=useRef(new Date().toISOString().slice(0,10));const queryWhereDate=props?.children?.props?.children?.props?.query?.where?.right?.value?.value;if(queryWhereDate){props.children.props.children.props.query.where.right.value.value=todayISO.current;}return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}// Meant to be used when only one filter is applied already before the Date\nexport function withBeforeTodaysDateNested(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const todayISO=useRef(new Date().toISOString().slice(0,10));const queryWhereDate=props?.children?.props?.children?.props?.query?.where?.right?.right?.value?.value;if(queryWhereDate){props.children.props.children.props.query.where.right.right.value.value=todayISO.current;}return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withBeforeTodaysDate\":{\"type\":\"reactHoc\",\"name\":\"withBeforeTodaysDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBeforeTodaysDateNested\":{\"type\":\"reactHoc\",\"name\":\"withBeforeTodaysDateNested\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogOverrides.map"],"mappings":"yHACA,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAASA,EAAO,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,CAAwM,OAAlL,GAAO,UAAU,OAAO,UAAU,OAAO,OAAO,OAAO,OAAO,OAAO,QAAyB,EAAM,SAAS,MAAM,SAAS,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,EAAS,SAA6B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAG,CACzZ,SAAgB,EAA2B,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAASA,EAAO,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,CAAqN,OAA/L,GAAO,UAAU,OAAO,UAAU,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,QAAyB,EAAM,SAAS,MAAM,SAAS,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,EAAS,SAA6B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAG,kBAFjY,IAAqC"}