{"version":3,"file":"Current_year.C5cRGkXO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/v4EACQ0iw8tYbbiLFL0Q/nAqRykoh5DwPvTQ8ajwf/Current_year.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export const withCurrentYear=Component=>{return props=>{const now=new Date;// const currentYear = now.getFullYear()\n// const currentMonth = now.toLocaleString(\"en-US\", { month: \"long\" }) // Full month name\n// const updatedText = `${currentMonth} ${currentYear}`\n// Pick an \"anchor day\" (e.g., every 7 days starting from Jan 1, 1970)\nconst daysSinceEpoch=Math.floor(now.getTime()/(1e3*60*60*24));const weekIndex=Math.floor(daysSinceEpoch/7)// group days into blocks of 7\n;const startOfWeekDate=new Date(weekIndex*7*24*60*60*1e3);// Format it in English (United States)\nconst day=startOfWeekDate.getDate();const month=startOfWeekDate.toLocaleString(\"en-US\",{month:\"long\"});const year=startOfWeekDate.getFullYear();const updatedText=`${month} ${day}, ${year}`;return /*#__PURE__*/_jsx(Component,{...props,text:updatedText});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withCurrentYear\":{\"type\":\"reactHoc\",\"name\":\"withCurrentYear\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Current_year.map"],"mappings":"uHAA2C,CAAa,EAAgB,GAAmB,GAAO,CAAC,IAAM,EAAI,IAAI,KAI3G,EAAe,KAAK,MAAM,EAAI,SAAS,EAAE,IAAI,GAAG,GAAG,IAAI,CAAO,EAAU,KAAK,MAAM,EAAe,EAAE,CACnG,EAAgB,IAAI,KAAK,EAAU,EAAE,GAAG,GAAG,GAAG,IAAI,CACnD,EAAI,EAAgB,SAAS,CAAmH,EAAY,GAAlH,EAAgB,eAAe,QAAQ,CAAC,MAAM,OAAO,CAAC,CAAqE,GAAG,EAAI,IAAhE,EAAgB,aAAa,GAA8C,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAY,CAAC"}