{"version":3,"file":"shared-lib.BakfGwqb.mjs","names":["useState","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/KuTLfJoLiWKClMTJnhEQ/78RMKhYYzhSiyI58wARA/ArchiveLiveTimestamp.js","https:/framerusercontent.com/modules/mxXGApn1T5z9KxipjPqa/lW3cf5TeN89lJsI2valT/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";function formatLocalTime(date){const hh=String(date.getHours()).padStart(2,\"0\");const mm=String(date.getMinutes()).padStart(2,\"0\");const ss=String(date.getSeconds()).padStart(2,\"0\");return`${hh}:${mm}:${ss}`;}/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ArchiveLiveTimestamp(props){const{textColor=\"rgba(245,244,241,0.52)\",fontSize=10,letterSpacing=.04,opacity=1,prefix=\"\"}=props;const isStaticRenderer=useIsStaticRenderer();const[now,setNow]=useState(()=>new Date);const updateTime=useCallback(()=>{startTransition(()=>{setNow(new Date);});},[]);useEffect(()=>{if(isStaticRenderer)return;const intervalId=window.setInterval(updateTime,1e3);return()=>window.clearInterval(intervalId);},[isStaticRenderer,updateTime]);const timestamp=useMemo(()=>formatLocalTime(now),[now]);const label=useMemo(()=>prefix?`${prefix}${timestamp}`:timestamp,[prefix,timestamp]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"max-content\",minWidth:\"max-content\",fontFamily:'\"IBM Plex Mono\", monospace',fontWeight:400,fontSize:`${fontSize}px`,letterSpacing:`${letterSpacing}em`,lineHeight:1.2,color:textColor,opacity,textAlign:\"right\",background:\"transparent\",border:\"none\",padding:0,margin:0,whiteSpace:\"nowrap\"},\"aria-label\":\"Local timestamp\",children:label});}addPropertyControls(ArchiveLiveTimestamp,{textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"rgba(245,244,241,0.52)\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:10,min:8,max:32,unit:\"px\",step:1},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing\",defaultValue:.04,min:-.1,max:.3,step:.01,unit:\"em\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:0,max:1,step:.01},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\",placeholder:\"e.g. archived at \"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArchiveLiveTimestamp\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArchiveLiveTimestamp.map","// Generated by Framer (a7e392f)\nexport default function metadata(params,activeLocale){return{description:\"The Missing Hour is a feature film presented through an immersive public archive documenting the mystery of the hour that happens twice each year.\",robots:\"max-image-preview:large\",title:\"The Clocks Remain Under ReviewThe Missing Hour | Official Film Website\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4NAA6L,SAAS,EAAgB,EAAK,CAAwJ,MAAM,GAApJ,OAAO,EAAK,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE,GAAqH,EAAE,GAAzG,OAAO,EAAK,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,GAAwE,EAAE,GAA5D,OAAO,EAAK,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,GAA2B,GAAI,CAG1Y,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,YAAU,yBAAyB,WAAS,GAAG,gBAAc,IAAI,UAAQ,EAAE,SAAO,IAAI,EAAY,EAAiB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