{"version":3,"file":"BaselClock.C2qY_jSo.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/ttsGrMs3OjRX03jMCD4G/GZIqWzmcIt3dL2qoBYuG/BaselClock.js"],"sourcesContent":["// Show current time in Basel, Switzerland with font controls\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Basel Time\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 60\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function BaselClock(props){const{font,style}=props;const[time,setTime]=useState(\"\");useEffect(()=>{function updateTime(){// Basel is Europe/Zurich\nconst now=new Date;const options={hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\",hour12:false,timeZone:\"Europe/Zurich\"};const timeString=now.toLocaleTimeString([],options);startTransition(()=>setTime(timeString));}updateTime();const interval=setInterval(updateTime,1e3);return()=>clearInterval(interval);},[]);return /*#__PURE__*/_jsx(\"span\",{style:{...style,...font,color:props.color,width:\"max-content\",minWidth:\"max-content\",display:\"inline-block\"},\"aria-label\":\"Current time in Basel, Switzerland\",children:time});}addPropertyControls(BaselClock,{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BaselClock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicHeight\":\"60\",\"framerIntrinsicWidth\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BaselClock.map"],"mappings":"iRASG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,SAAO,EAAW,CAAC,EAAK,GAASA,EAAS,GAAG,CACmN,OADlN,MAAc,CAAC,SAAS,GAAY,CAChB,IAAM,EAAtH,IAAI,MAAI,CAA6H,mBAAmB,EAAE,CAAnI,CAAC,KAAK,UAAU,OAAO,UAAU,OAAO,UAAU,OAAO,GAAM,SAAS,gBAAgB,CAAoD,CAAC,MAAoB,EAAQ,EAAW,CAAC,CAAE,GAAY,CAAC,IAAM,EAAS,YAAY,EAAW,IAAI,CAAC,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAqB,EAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAM,GAAG,EAAK,MAAM,EAAM,MAAM,MAAM,cAAc,SAAS,cAAc,QAAQ,eAAe,CAAC,aAAa,qCAAqC,SAAS,EAAK,CAAC,kBAT5d,IAAsD,IAAoD,CASoX,EAAoB,EAAW,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,OAAO,cAAc,UAAU,WAAW,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,UAAU,CAAC,CAAC"}