{"version":3,"file":"TimeOverride.B9QWmWxK.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/wThVbqyScMyuzXuv0h8k/ahx5depvdGTrS2uQwQW5/TimeOverride.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export function withLondonTime(Component){return props=>{const[time,setTime]=useState(\"Loading...\");useEffect(()=>{const updateTime=()=>{const now=new Date;const formatter=new Intl.DateTimeFormat(\"en-US\",{timeZone:\"Europe/London\",hour:\"2-digit\",minute:\"2-digit\",hour12:true});setTime(formatter.format(now));};updateTime();const intervalId=setInterval(updateTime,1e3);return()=>clearInterval(intervalId);},[]);return /*#__PURE__*/_jsx(Component,{...props,text:time});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLondonTime\":{\"type\":\"reactHoc\",\"name\":\"withLondonTime\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TimeOverride.map"],"mappings":"yHAAiF,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,YAAY,EAAuT,OAArT,MAAc,CAAC,IAAM,MAAe,CAAC,IAAM,EAAI,IAAI,KAAW,EAAU,IAAI,KAAK,eAAe,QAAQ,CAAC,SAAS,gBAAgB,KAAK,UAAU,OAAO,UAAU,OAAO,EAAI,CAAC,EAAE,EAAQ,EAAU,OAAO,CAAG,CAAC,CAAE,EAAE,EAAW,EAAE,IAAM,EAAW,YAAY,EAAW,GAAG,EAAE,UAAU,cAAc,CAAU,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,CAAI,CAAC,CAAE,CAAE,iBAA3f,IAAsC"}