{"version":3,"file":"Live_Clock.DunDoPYQ.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/shWWNClmlBjjcIcJ7wcT/T1iIfFBLdiT6AoleRy5Y/Live_Clock.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Live Clock — shows the current time in any city (e.g. \"Lisbon 14:20 WET\").\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function LiveClock(props){const{city=\"Lisbon\",timeZone=\"Europe/Lisbon\",suffix=\"WET\",seconds=false,cityColor=\"#9A9A96\",timeColor=\"#2B2B2D\",font,style}=props;const fmt=()=>{try{return new Intl.DateTimeFormat(\"en-GB\",{timeZone,hour:\"2-digit\",minute:\"2-digit\",...seconds?{second:\"2-digit\"}:{}}).format(new Date);}catch{return\"--:--\";}};const[t,setT]=React.useState(fmt);React.useEffect(()=>{const id=setInterval(()=>setT(fmt()),seconds?1e3:15e3);return()=>clearInterval(id);},[timeZone,seconds]);return /*#__PURE__*/_jsxs(\"span\",{style:{font:\"500 11px/1.45 'JetBrains Mono', monospace\",letterSpacing:\".06em\",textTransform:\"uppercase\",whiteSpace:\"nowrap\",...font,...style},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:cityColor,marginRight:8},children:city}),/*#__PURE__*/_jsx(\"b\",{style:{color:timeColor,fontWeight:500},children:t}),suffix?/*#__PURE__*/_jsx(\"span\",{style:{color:cityColor,marginLeft:6},children:suffix}):null]});}addPropertyControls(LiveClock,{city:{type:ControlType.String,title:\"City\",defaultValue:\"Lisbon\"},timeZone:{type:ControlType.String,title:\"Time zone\",defaultValue:\"Europe/Lisbon\",description:\"IANA name, e.g. America/New_York\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"WET\"},seconds:{type:ControlType.Boolean,title:\"Seconds\",defaultValue:false},cityColor:{type:ControlType.Color,title:\"City colour\",defaultValue:\"#9A9A96\"},timeColor:{type:ControlType.Color,title:\"Time colour\",defaultValue:\"#2B2B2D\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"monospace\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LiveClock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Live_Clock.map"],"mappings":"wLAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,OAAK,SAAS,WAAS,gBAAgB,SAAO,MAAM,UAAQ,GAAM,YAAU,UAAU,YAAU,UAAU,OAAK,SAAO,EAAY,MAAQ,CAAC,GAAG,CAAC,OAAO,IAAI,KAAK,eAAe,QAAQ,CAAC,WAAS,KAAK,UAAU,OAAO,UAAU,GAAG,EAAQ,CAAC,OAAO,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,IAAI,CAAE,MAAM,CAAC,MAAM,OAAQ,CAAC,EAAO,CAAC,EAAE,GAAMA,EAAe,CAAG,EAAgI,OAA9H,MAAoB,CAAC,IAAM,EAAG,gBAAgB,EAAK,EAAI,CAAC,EAAE,EAAQ,IAAI,IAAI,EAAE,UAAU,cAAc,CAAE,CAAE,EAAE,CAAC,EAAS,CAAO,CAAC,EAAsB,EAAM,OAAO,CAAC,MAAM,CAAC,KAAK,4CAA4C,cAAc,QAAQ,cAAc,YAAY,WAAW,SAAS,GAAG,EAAK,GAAG,CAAK,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAU,YAAY,CAAC,EAAE,SAAS,CAAI,CAAC,EAAe,EAAK,IAAI,CAAC,MAAM,CAAC,MAAM,EAAU,WAAW,GAAG,EAAE,SAAS,CAAC,CAAC,EAAE,EAAoB,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,E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