{"version":3,"file":"EnglandTimeDisplay.BjRfpCRC.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/MpMm2p42MWt2t9NVykdT/DoxWPggfpVgEsxFqEuXG/EnglandTimeDisplay.js"],"sourcesContent":["// Time display for England (UK)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * England Time Display\n * Shows the current time in the UK (London timezone), updating every second.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function EnglandTimeDisplay(props){const{font,color,background,borderRadius,padding,style}=props;const[time,setTime]=useState(\"\");useEffect(()=>{function updateTime(){const now=new Date;const ukTime=now.toLocaleTimeString(\"en-GB\",{timeZone:\"Europe/London\",hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\"});startTransition(()=>setTime(ukTime));}updateTime();const interval=setInterval(updateTime,1e3);return()=>clearInterval(interval);},[]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-block\",background,color,borderRadius,padding,...font,...style,minWidth:\"max-content\",position:\"relative\",textAlign:\"center\"},children:time||\"--:--:--\"});}addPropertyControls(EnglandTimeDisplay,{font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\",textAlign:\"center\"},controls:\"extended\",defaultFontType:\"sans-serif\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:0,max:40}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EnglandTimeDisplay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLay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