{"version":3,"file":"TimeNowSetter.B2LKZg-l.mjs","names":[],"sources":["https:/framerusercontent.com/modules/U82L16Gxvsz95xENcH6r/q6gEV81Q9JY3SI3krjL7/TimeNowSetter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Evaluated ONCE when the module loads into the browser.\n// Stays 100% identical across all renders and transitions.\nconst baseNow=new Date;export function withTimeNow(Component){return props=>{// Reads `offsetMinutes` (+ or - number) passed from the component's parameters\nconst offsetMinutes=Number(props.offsetMinutes)||0;// Calculate the shifted timestamp relative to the frozen load time\nconst modifiedDate=new Date(baseNow.getTime()+offsetMinutes*60*1e3);// Adjust for local timezone offset so the ISO string numbers reflect the visitor's local wall-clock time\nconst localDate=new Date(modifiedDate.getTime()-modifiedDate.getTimezoneOffset()*60*1e3);const today=localDate.toISOString().split(\"T\")[0]// YYYY-MM-DD in local time\n;const timeNow=localDate.toISOString()// Local wall-clock time formatted as an ISO timestamp\n;return /*#__PURE__*/_jsx(Component,{...props,today:today,timeNow:timeNow});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTimeNow\":{\"type\":\"reactHoc\",\"name\":\"withTimeNow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TimeNowSetter.map"],"mappings":"oGAEuB,SAAgB,EAAY,EAAU,CAAC,MAAO,IAAO,CAC5E,IAAM,EAAc,OAAO,EAAM,aAAa,GAAG,EAC3C,EAAa,IAAI,KAAK,EAAQ,QAAQ,EAAE,EAAc,GAAG,GAAG,EAC5D,EAAU,IAAI,KAAK,EAAa,QAAQ,EAAE,EAAa,kBAAkB,EAAE,GAAG,GAAG,EAAQ,EAAM,EAAU,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GACjI,EAAQ,EAAU,YAAY,EACpC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAY,QAAc,SAAO,CAAC,CAAE,CAAE,mBAPpC,EAEpC,EAAQ,IAAI"}