{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ucis7b59KCkZVsNOtQsX/NmcwjCXP5aGiBWCqABNc/current_time.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";const CurrentTimeStyles={display:\"flex\",justifyContent:\"flex-start\",alignItems:\"flex-start\"};export function CurrentTime(props){const{fontSize,fontColor,showTimeZone,showText,gapSize,displayText,customFont}=props;const timeStyles={fontSize:fontSize,fontWeight:400,fontFamily:customFont||\"Arial\",color:fontColor,display:\"flex\",justifyContent:\"flex-start\",alignItems:\"flex-start\"};const[time,setTime]=useState(new Date);const[userTimeZone,setUserTimeZone]=useState(Intl.DateTimeFormat().resolvedOptions().timeZone);useEffect(()=>{const intervalId=setInterval(()=>{setTime(new Date);},1e3);return()=>{clearInterval(intervalId);};},[]);const userTime=time.toLocaleString(\"en-US\",{timeZone:userTimeZone,hour12:false,hour:\"numeric\",minute:\"numeric\",second:\"numeric\",timeZoneName:showTimeZone?\"short\":undefined});return /*#__PURE__*/_jsxs(motion.div,{style:{...CurrentTimeStyles,gap:`${gapSize}px`,flexDirection:\"row\"},children:[/*#__PURE__*/_jsx(\"div\",{style:timeStyles,children:userTime}),showText&&/*#__PURE__*/_jsx(\"div\",{style:timeStyles,children:userTimeZone})]});}CurrentTime.defaultProps={fontSize:14,fontColor:\"#707070\",showTimeZone:true,showText:true,gapSize:14,displayText:\"\",customFont:\"Arial\"};addPropertyControls(CurrentTime,{customFont:{title:\"Custom Font\",type:ControlType.String,defaultValue:\"Century Schoolbook Monospace Regular\"},fontSize:{title:\"Font Size\",type:ControlType.Number,min:8,max:72,step:1},fontColor:{title:\"Font Color\",type:ControlType.Color},showTimeZone:{title:\"Show Time Zone\",type:ControlType.Boolean,defaultValue:true},showText:{title:\"Show Time Zone Text\",type:ControlType.Boolean,defaultValue:true},gapSize:{title:\"Gap Size\",type:ControlType.Number,min:0,max:100,step:1,defaultValue:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"CurrentTime\":{\"type\":\"reactComponent\",\"name\":\"CurrentTime\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./current_time.map"],
  "mappings": "uJAAqL,IAAMA,EAAkB,CAAC,QAAQ,OAAO,eAAe,aAAa,WAAW,YAAY,EAAS,SAASC,EAAYC,EAAM,CAAC,GAAK,CAAC,SAAAC,EAAS,UAAAC,EAAU,aAAAC,EAAa,SAAAC,EAAS,QAAAC,EAAQ,YAAAC,EAAY,WAAAC,CAAU,EAAEP,EAAYQ,EAAW,CAAC,SAASP,EAAS,WAAW,IAAI,WAAWM,GAAY,QAAQ,MAAML,EAAU,QAAQ,OAAO,eAAe,aAAa,WAAW,YAAY,EAAO,CAACO,EAAKC,CAAO,EAAEC,EAAS,IAAI,IAAI,EAAO,CAACC,EAAaC,CAAe,EAAEF,EAAS,KAAK,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAAEG,EAAU,IAAI,CAAC,IAAMC,EAAW,YAAY,IAAI,CAACL,EAAQ,IAAI,IAAI,CAAE,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC,cAAcK,CAAU,CAAE,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMC,EAASP,EAAK,eAAe,QAAQ,CAAC,SAASG,EAAa,OAAO,GAAM,KAAK,UAAU,OAAO,UAAU,OAAO,UAAU,aAAaT,EAAa,QAAQ,MAAS,CAAC,EAAE,OAAoBc,EAAMC,EAAO,IAAI,CAAC,MAAM,CAAC,GAAGpB,EAAkB,IAAI,GAAGO,CAAO,KAAK,cAAc,KAAK,EAAE,SAAS,CAAcc,EAAK,MAAM,CAAC,MAAMX,EAAW,SAASQ,CAAQ,CAAC,EAAEZ,GAAuBe,EAAK,MAAM,CAAC,MAAMX,EAAW,SAASI,CAAY,CAAC,CAAC,CAAC,CAAC,CAAE,CAACb,EAAY,aAAa,CAAC,SAAS,GAAG,UAAU,UAAU,aAAa,GAAK,SAAS,GAAK,QAAQ,GAAG,YAAY,GAAG,WAAW,OAAO,EAAEqB,EAAoBrB,EAAY,CAAC,WAAW,CAAC,MAAM,cAAc,KAAKsB,EAAY,OAAO,aAAa,sCAAsC,EAAE,SAAS,CAAC,MAAM,YAAY,KAAKA,EAAY,OAAO,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,UAAU,CAAC,MAAM,aAAa,KAAKA,EAAY,KAAK,EAAE,aAAa,CAAC,MAAM,iBAAiB,KAAKA,EAAY,QAAQ,aAAa,EAAI,EAAE,SAAS,CAAC,MAAM,sBAAsB,KAAKA,EAAY,QAAQ,aAAa,EAAI,EAAE,QAAQ,CAAC,MAAM,WAAW,KAAKA,EAAY,OAAO,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC",
  "names": ["CurrentTimeStyles", "CurrentTime", "props", "fontSize", "fontColor", "showTimeZone", "showText", "gapSize", "displayText", "customFont", "timeStyles", "time", "setTime", "ye", "userTimeZone", "setUserTimeZone", "ue", "intervalId", "userTime", "u", "motion", "p", "addPropertyControls", "ControlType"]
}
