{"version":3,"file":"DisplayTime.DexcBpNv.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/zOTYncx0LNFBLLmaYiqa/ITimoSxcaGIWOwPJ7NcG/DisplayTime.js"],"sourcesContent":["// Date component with timezone selection that displays current date in format 'SAT, AUG 28, 2025'\n// Timezone component that displays timezone name in short format\n// Time component with timezone selection that displays current time with timezone name in short format\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Mapping of timezone identifiers to custom short names\nconst timezoneShortNames={\"Pacific/Midway\":\"MW\",\"Pacific/Honolulu\":\"HI\",\"America/Anchorage\":\"AK\",\"America/Los_Angeles\":\"LA\",\"America/Denver\":\"DV\",\"America/Chicago\":\"CH\",\"America/New_York\":\"NY\",\"America/Caracas\":\"CR\",\"America/Santiago\":\"ST\",\"America/Sao_Paulo\":\"SP\",\"America/Argentina/Buenos_Aires\":\"BA\",\"Atlantic/South_Georgia\":\"SG\",\"Atlantic/Azores\":\"AZ\",\"Europe/London\":\"LN\",\"Europe/Berlin\":\"BR\",\"Europe/Athens\":\"AT\",\"Europe/Moscow\":\"MC\",\"Asia/Dubai\":\"DB\",\"Asia/Karachi\":\"KR\",\"Asia/Kolkata\":\"IST\",\"Asia/Dhaka\":\"DH\",\"Asia/Bangkok\":\"BK\",\"Asia/Shanghai\":\"SH\",\"Asia/Tokyo\":\"TK\",\"Australia/Adelaide\":\"AD\",\"Australia/Sydney\":\"SY\",\"Pacific/Norfolk\":\"NF\",\"Pacific/Auckland\":\"AU\",\"Pacific/Chatham\":\"CT\",\"Pacific/Kiritimati\":\"KI\"};/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function DisplayTime(props){const{timezone,textColor,font}=props;const[currentTime,setCurrentTime]=useState(\"\");useEffect(()=>{const updateTime=()=>{try{const now=new Date;const formatter=new Intl.DateTimeFormat(\"en-US\",{timeZone:timezone,hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\"});const parts=formatter.formatToParts(now);const hour=parts.find(part=>part.type===\"hour\")?.value;const minute=parts.find(part=>part.type===\"minute\")?.value;const second=parts.find(part=>part.type===\"second\")?.value;const shortName=timezoneShortNames[timezone]||timezone;const formattedTime=`${hour}:${minute}:${second} ${shortName}`;startTransition(()=>setCurrentTime(formattedTime));}catch(error){startTransition(()=>setCurrentTime(\"INVALID TIMEZONE\"));}};updateTime();const timeInterval=setInterval(updateTime,1e3)// Update every second\n;return()=>{clearInterval(timeInterval);};},[timezone]);const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:textColor,minWidth:\"max-content\",minHeight:\"1.2em\",...isFixedWidth?{...props?.style}:{width:\"max-content\"},...font},children:currentTime});}addPropertyControls(DisplayTime,{timezone:{type:ControlType.Enum,title:\"Timezone\",defaultValue:\"Asia/Kolkata\",options:[\"Pacific/Midway\",\"Pacific/Honolulu\",\"America/Anchorage\",\"America/Los_Angeles\",\"America/Denver\",\"America/Chicago\",\"America/New_York\",\"America/Caracas\",\"America/Santiago\",\"America/Sao_Paulo\",\"America/Argentina/Buenos_Aires\",\"Atlantic/South_Georgia\",\"Atlantic/Azores\",\"Europe/London\",\"Europe/Berlin\",\"Europe/Athens\",\"Europe/Moscow\",\"Asia/Dubai\",\"Asia/Karachi\",\"Asia/Kolkata\",\"Asia/Dhaka\",\"Asia/Bangkok\",\"Asia/Shanghai\",\"Asia/Tokyo\",\"Australia/Adelaide\",\"Australia/Sydney\",\"Pacific/Norfolk\",\"Pacific/Auckland\",\"Pacific/Chatham\",\"Pacific/Kiritimati\"],optionTitles:[\"Midway (UTC-11)\",\"Honolulu (UTC-10)\",\"Anchorage (UTC-9)\",\"Los Angeles (UTC-8)\",\"Denver (UTC-7)\",\"Chicago (UTC-6)\",\"New York (UTC-5)\",\"Caracas (UTC-4)\",\"Santiago (UTC-3)\",\"S\\xe3o Paulo (UTC-3)\",\"Buenos Aires (UTC-3)\",\"South Georgia (UTC-2)\",\"Azores (UTC-1)\",\"London (UTC+0)\",\"Berlin (UTC+1)\",\"Athens (UTC+2)\",\"Moscow (UTC+3)\",\"Dubai (UTC+4)\",\"Karachi (UTC+5)\",\"India (IST UTC+5:30)\",\"Dhaka (UTC+6)\",\"Bangkok (UTC+7)\",\"Shanghai (UTC+8)\",\"Tokyo (UTC+9)\",\"Adelaide (UTC+9:30)\",\"Sydney (UTC+10)\",\"Norfolk (UTC+11)\",\"Auckland (UTC+12)\",\"Chatham (UTC+12:45)\",\"Kiritimati (UTC+14)\"]},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"24px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DisplayTime\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DisplayTime.map"],"mappings":"wLAOG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,WAAS,YAAU,QAAM,EAAW,CAAC,EAAY,GAAgBA,EAAS,EAAE,EAAE,MAAc,CAAC,IAAM,MAAe,CAAC,GAAG,CAAC,IAAM,EAAI,IAAI,KAAiI,EAAM,IAA9G,KAAK,eAAe,QAAQ,CAAC,SAAS,EAAS,KAAK,UAAU,OAAO,UAAU,OAAO,SAAS,CAAuB,CAAC,CAAC,cAAc,CAAG,EAA4O,EAAc,GAA7O,EAAM,KAAK,GAAM,EAAK,OAAO,MAAM,CAAC,EAAE,MAA+M,GAA5L,EAAM,KAAK,GAAM,EAAK,OAAO,QAAQ,CAAC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