{"version":3,"file":"Toronto_Clock.h049OMsC.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/hYVLjNoEoUSN9ov9HiVY/bzcZx3tne8sVclJluFLI/Toronto_Clock.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";function TorontoClock({layout}){const[time,setTime]=useState(new Date);useEffect(()=>{const interval=setInterval(()=>setTime(new Date),1e3);return()=>clearInterval(interval);},[]);const torontoTime=time.toLocaleTimeString(\"en-CA\",{timeZone:\"America/Toronto\",hour:\"2-digit\",minute:\"2-digit\",hour12:false});const isReversed=layout===\"reversed\";return /*#__PURE__*/_jsx(motion.div,{style:{fontSize:\"16px\",display:\"flex\",alignItems:\"center\",gap:\"6px\",fontFamily:`\"Geist\", \"Geist regular\", \"Geist light\", sans-serif`},children:isReversed?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#757575\"},children:\"Toronto\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#757575\"},children:\"/\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#FFFFFF\"},children:torontoTime}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#757575\"},children:\"/\"})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#757575\"},children:\"/\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#FFFFFF\"},children:torontoTime}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#757575\"},children:\"/\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"500\",color:\"#757575\"},children:\"Toronto\"})]})});}export default TorontoClock;// Add control for layout switching in the Framer editor\naddPropertyControls(TorontoClock,{layout:{type:ControlType.Enum,options:[\"default\",\"reversed\"],optionTitles:[\"Time then City\",\"City then Time\"],title:\"Layout\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TorontoClock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Toronto_Clock.map"],"mappings":"gPAA2M,SAAS,EAAa,CAAC,UAAQ,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,IAAI,IAAI,EAAE,MAAc,CAAC,IAAM,EAAS,gBAAgB,EAAQ,IAAI,IAAI,EAAE,GAAG,EAAE,UAAU,cAAc,CAAQ,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAY,EAAK,mBAAmB,QAAQ,CAAC,SAAS,kBAAkB,KAAK,UAAU,OAAO,UAAU,OAAO,EAAK,CAAC,EAAQ,EAAW,IAAS,WAAW,OAAoB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,OAAO,QAAQ,OAAO,WAAW,SAAS,IAAI,MAAM,WAAW,qDAAqD,EAAE,SAAS,EAAwB,EAAMC,EAAU,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,SAAS,EAAE,SAAS,SAAS,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,SAAS,EAAE,SAAS,GAAG,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,SAAS,EAAE,SAAS,CAAW,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,SAAS,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,EAAe,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,SAAS,EAAE,SAAS,GAAG,CA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