{"version":3,"file":"ApplyToday.CEf-eEok.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JcU7DFWs9vYtKoIjENBG/V1x6SLCVAimac8O7349i/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;//const today = new Date()\nconsole.log(\"Today:\",today);return /*#__PURE__*/_jsx(Component,{...props,today:today});};}export function withTodaysDateStartOfDay(Component){return props=>{const today=new Date;today.setHours(0,0,0,0);const formattedToday=today.toISOString().split(\"T\")[0]// YYYY-MM-DD format\n;//const today = new Date()\nconsole.log(\"Today:\",formattedToday);return /*#__PURE__*/_jsx(Component,{...props,today:formattedToday});};}export function withYesterdaysDate(Component){return props=>{const yesterday=new Date;yesterday.setDate(yesterday.getDate()-1);yesterday.setHours(23,59,59,999)// Set to 11:59:59.999 PM\n;const formattedYesterday=yesterday.toISOString().split(\"T\")[0]// YYYY-MM-DD format\n;console.log(\"Yesterday:\",formattedYesterday);return /*#__PURE__*/_jsx(Component,{...props,yesterday:formattedYesterday});};}export function setTodayAndYesterdayandTomorrow(Component){return props=>{const today=new Date().toISOString().split(\"T\")[0]// YYYY-MM-DD format\n;console.log(\"Today:\",today);const yesterday=new Date;yesterday.setDate(yesterday.getDate()-1);//yesterday.setHours(23, 59, 59, 999) // 11:59:59.999 PM\nyesterday.setHours(0,0,0,0);const formattedYesterday=yesterday.toISOString().split(\"T\")[0]// YYYY-MM-DD format\n;console.log(\"Yesterday:\",formattedYesterday);const tomorrow=new Date;tomorrow.setDate(tomorrow.getDate()+1);//tomorrow.setHours(23, 59, 59, 999) // 11:59:59.999 PM\nconst formattedTomorrow=tomorrow.toISOString().split(\"T\")[0]// YYYY-MM-DD format\n;console.log(\"Tomorrow:\",formattedTomorrow);return /*#__PURE__*/_jsx(Component,{...props,today:today,yesterday:formattedYesterday,tomorrow:formattedTomorrow});};}\nexport const __FramerMetadata__ = {\"exports\":{\"setTodayAndYesterdayandTomorrow\":{\"type\":\"reactHoc\",\"name\":\"setTodayAndYesterdayandTomorrow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTodaysDate\":{\"type\":\"reactHoc\",\"name\":\"withTodaysDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withYesterdaysDate\":{\"type\":\"reactHoc\",\"name\":\"withYesterdaysDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTodaysDateStartOfDay\":{\"type\":\"reactHoc\",\"name\":\"withTodaysDateStartOfDay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplyToday.map"],"mappings":"oGAA2C,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAM,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,IAAI,CAAC,GAExH,OAA5B,QAAQ,IAAI,SAAS,EAAM,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAY,QAAM,CAAC,EAIuC,SAAgB,EAAgC,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAM,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,IAAI,CAAC,GACtP,QAAQ,IAAI,SAAS,EAAM,CAAC,IAAM,EAAU,IAAI,KAAK,EAAU,QAAQ,EAAU,SAAS,CAAC,EAAE,CAC9F,EAAU,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,IAAM,EAAmB,EAAU,aAAa,CAAC,MAAM,IAAI,CAAC,GACvF,QAAQ,IAAI,aAAa,EAAmB,CAAC,IAAM,EAAS,IAAI,KAAK,EAAS,QAAQ,EAAS,SAAS,CAAC,EAAE,CAC5G,IAAM,EAAkB,EAAS,aAAa,CAAC,MAAM,IAAI,CAAC,GACd,OAA3C,QAAQ,IAAI,YAAY,EAAkB,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAY,QAAM,UAAU,EAAmB,SAAS,EAAkB,CAAC,mBAXnH"}