{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/FrVSxKNFznvkdL7qcGVZ/f1Bvufg1UnKtI2cnXncI/UserTimeNow.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function LocalTimeComponent(props){const{font,format24Hour,fallbackTime,style,fontColor}=props;const[time,setTime]=useState(\"\");useEffect(()=>{// Function to update the time\nconst updateTime=()=>{try{const now=new Date;// Format the time based on component settings (no seconds)\nconst formattedTime=format24Hour?now.toLocaleTimeString([],{hour12:false,hour:\"2-digit\",minute:\"2-digit\"}):now.toLocaleTimeString([],{hour12:true,hour:\"2-digit\",minute:\"2-digit\"});setTime(formattedTime);}catch(err){console.error(\"Error getting local time:\",err);setTime(fallbackTime);}};// Update time immediately and then set interval (60 seconds = 1 minute)\nupdateTime();const intervalId=setInterval(updateTime,6e4);// Clean up on unmount\nreturn()=>clearInterval(intervalId);},[format24Hour,fallbackTime]);return /*#__PURE__*/_jsx(\"div\",{style:{...style,...font,color:fontColor},children:time});}// Property controls\naddPropertyControls(LocalTimeComponent,{// Font control as specified\nfont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",displayFontSize:true,displayTextAlignment:true,defaultValue:{fontSize:16,lineHeight:1.4}},fontColor:{type:ControlType.Color,defaultValue:\"#000\"},// Time format control - just 12/24 hour option\nformat24Hour:{type:ControlType.Boolean,title:\"24 Hour Format\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},// Just the fallback time\nfallbackTime:{type:ControlType.String,title:\"Fallback Time\",defaultValue:\"12:00 PM\",placeholder:\"e.g., 15:30 or 3:30 PM\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocalTimeComponent\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UserTimeNow.map"],
  "mappings": "uGAIkB,SAARA,EAAoCC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,aAAAC,EAAa,aAAAC,EAAa,MAAAC,EAAM,UAAAC,CAAS,EAAEL,EAAW,CAACM,EAAKC,CAAO,EAAEC,EAAS,EAAE,EAAE,OAAAC,EAAU,IAAI,CAChK,IAAMC,EAAW,IAAI,CAAC,GAAG,CAAC,IAAMC,EAAI,IAAI,KAClCC,EAAcV,EAAaS,EAAI,mBAAmB,CAAC,EAAE,CAAC,OAAO,GAAM,KAAK,UAAU,OAAO,SAAS,CAAC,EAAEA,EAAI,mBAAmB,CAAC,EAAE,CAAC,OAAO,GAAK,KAAK,UAAU,OAAO,SAAS,CAAC,EAAEJ,EAAQK,CAAa,CAAE,OAAOC,EAAI,CAAC,QAAQ,MAAM,4BAA4BA,CAAG,EAAEN,EAAQJ,CAAY,CAAE,CAAC,EAC7RO,EAAW,EAAE,IAAMI,EAAW,YAAYJ,EAAW,GAAG,EACxD,MAAM,IAAI,cAAcI,CAAU,CAAE,EAAE,CAACZ,EAAaC,CAAY,CAAC,EAAsBY,EAAK,MAAM,CAAC,MAAM,CAAC,GAAGX,EAAM,GAAGH,EAAK,MAAMI,CAAS,EAAE,SAASC,CAAI,CAAC,CAAE,CAC5JU,EAAoBjB,EAAmB,CACvC,KAAK,CAAC,KAAKkB,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,gBAAgB,GAAK,qBAAqB,GAAK,aAAa,CAAC,SAAS,GAAG,WAAW,GAAG,CAAC,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,aAAa,MAAM,EACzO,aAAa,CAAC,KAAKA,EAAY,QAAQ,MAAM,iBAAiB,aAAa,GAAM,aAAa,MAAM,cAAc,IAAI,EACtH,aAAa,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,WAAW,YAAY,wBAAwB,CAAC,CAAC",
  "names": ["LocalTimeComponent", "props", "font", "format24Hour", "fallbackTime", "style", "fontColor", "time", "setTime", "ye", "ue", "updateTime", "now", "formattedTime", "err", "intervalId", "p", "addPropertyControls", "ControlType"]
}
