{"version":3,"file":"ApplyToday.B4PgTPpf.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/Q7iAjeBoIpwKvKqO4J8V/1MlWNHucaMSKgIrAeLV8/ApplyToday.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withTodaysDate(Component){return props=>{const today=new Date().toISOString().split(\"T\")[0]// YYYY-MM-DD format\n;return /*#__PURE__*/_jsx(Component,{...props,today:today});};}export const logEventData=props=>{console.log(\"🧐 Event Props Received:\",props);if(!props.dateTime){console.log(\"⚠️ Event is missing `dateTime`. Check if it's correctly mapped in Framer CMS.\");return{};}console.log(`📅 Event DateTime: ${props.dateTime}`);return{};};export const logCollectionData=props=>{console.log(\"🧐 Checking CMS Collection Props:\",props);if(!props.items||props.items.length===0){console.log(\"⚠️ No valid items found in CMS Collection. Data might not be loading.\");return{};}console.log(\"📦 CMS Collection Items:\",props.items);return{};};export const debugCMSData=props=>{console.log(\"🧐 Checking CMS Collection Props:\",props);if(!props.items||props.items.length===0){console.log(\"⚠️ No valid items found in CMS Collection. Data might not be loading.\");return{};}console.log(\"📦 CMS Collection Items:\",props.items);return{};};export const filterPastEvents=props=>{const today=new Date;if(!props.dateTime)return{};const eventDate=new Date(props.dateTime);if(eventDate<today){return{style:{display:\"none\"}};}return{};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withlogEventData(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...logEventData(props)});};}withlogEventData.displayName=\"logEventData\";export function withlogCollectionData(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...logCollectionData(props)});};}withlogCollectionData.displayName=\"logCollectionData\";export function withdebugCMSData(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...debugCMSData(props)});};}withdebugCMSData.displayName=\"debugCMSData\";export function withfilterPastEvents(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...filterPastEvents(props)});};}withfilterPastEvents.displayName=\"filterPastEvents\";\nexport const __FramerMetadata__ = {\"exports\":{\"withlogCollectionData\":{\"type\":\"reactHoc\",\"name\":\"withlogCollectionData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withfilterPastEvents\":{\"type\":\"reactHoc\",\"name\":\"withfilterPastEvents\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withdebugCMSData\":{\"type\":\"reactHoc\",\"name\":\"withdebugCMSData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"debugCMSData\":{\"type\":\"override\",\"name\":\"debugCMSData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTodaysDate\":{\"type\":\"reactHoc\",\"name\":\"withTodaysDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"logCollectionData\":{\"type\":\"override\",\"name\":\"logCollectionData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"filterPastEvents\":{\"type\":\"override\",\"name\":\"filterPastEvents\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"logEventData\":{\"type\":\"override\",\"name\":\"logEventData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withlogEventData\":{\"type\":\"reactHoc\",\"name\":\"withlogEventData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplyToday.map"],"mappings":"mKAA2C,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAM,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,IAAI,CAAC,GACnJ,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAY,QAAM,CAAC,EAAqqC,SAAgB,EAAiB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAA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