{"version":3,"file":"Timer.BHrZGSqu.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/U8dLSMNMcU4l3b1Ssd5t/uMthk8IXTvp2x1nokURq/Timer.js"],"sourcesContent":["// Timer component with timezone support and customizable text styling\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Timer(props){const{timezone=\"America/New_York\",format=\"12h\",showSeconds=true,showDate=false,dateFormat=\"short\",font,textColor=\"#000000\"}=props;const[time,setTime]=useState(\"\");useEffect(()=>{if(typeof window===\"undefined\")return;const updateTime=()=>{const now=new Date;const options={timeZone:timezone,hour:\"2-digit\",minute:\"2-digit\",...showSeconds&&{second:\"2-digit\"},hour12:format===\"12h\"};let timeString=new Intl.DateTimeFormat(\"en-US\",options).format(now);if(showDate){const dateOptions={timeZone:timezone,...dateFormat===\"short\"&&{month:\"short\",day:\"numeric\"},...dateFormat===\"long\"&&{weekday:\"long\",month:\"long\",day:\"numeric\",year:\"numeric\"},...dateFormat===\"numeric\"&&{month:\"2-digit\",day:\"2-digit\",year:\"numeric\"}};const dateString=new Intl.DateTimeFormat(\"en-US\",dateOptions).format(now);timeString=`${dateString} ${timeString}`;}startTransition(()=>setTime(timeString));};updateTime();const interval=setInterval(updateTime,1e3);return()=>clearInterval(interval);},[timezone,format,showSeconds,showDate,dateFormat]);return /*#__PURE__*/_jsx(\"span\",{style:{...font,color:textColor,width:\"max-content\",minWidth:\"max-content\"},children:time||\"Loading...\"});}addPropertyControls(Timer,{timezone:{type:ControlType.Enum,title:\"Timezone\",defaultValue:\"America/New_York\",options:[\"America/New_York\",\"America/Chicago\",\"America/Denver\",\"America/Los_Angeles\",\"America/Anchorage\",\"Pacific/Honolulu\",\"Europe/London\",\"Europe/Paris\",\"Europe/Berlin\",\"Europe/Rome\",\"Europe/Madrid\",\"Europe/Amsterdam\",\"Europe/Brussels\",\"Europe/Vienna\",\"Europe/Stockholm\",\"Europe/Copenhagen\",\"Europe/Oslo\",\"Europe/Helsinki\",\"Europe/Warsaw\",\"Europe/Prague\",\"Europe/Budapest\",\"Europe/Athens\",\"Europe/Istanbul\",\"Europe/Moscow\",\"Asia/Dubai\",\"Asia/Karachi\",\"Asia/Kolkata\",\"Asia/Dhaka\",\"Asia/Bangkok\",\"Asia/Singapore\",\"Asia/Hong_Kong\",\"Asia/Shanghai\",\"Asia/Tokyo\",\"Asia/Seoul\",\"Australia/Sydney\",\"Australia/Melbourne\",\"Australia/Brisbane\",\"Australia/Perth\",\"Pacific/Auckland\",\"Pacific/Fiji\",\"America/Toronto\",\"America/Vancouver\",\"America/Mexico_City\",\"America/Sao_Paulo\",\"America/Buenos_Aires\",\"America/Santiago\",\"America/Lima\",\"America/Bogota\",\"America/Caracas\",\"Africa/Cairo\",\"Africa/Johannesburg\",\"Africa/Lagos\",\"Africa/Nairobi\",\"UTC\"],optionTitles:[\"New York (EST/EDT)\",\"Chicago (CST/CDT)\",\"Denver (MST/MDT)\",\"Los Angeles (PST/PDT)\",\"Anchorage (AKST/AKDT)\",\"Honolulu (HST)\",\"London (GMT/BST)\",\"Paris (CET/CEST)\",\"Berlin (CET/CEST)\",\"Rome (CET/CEST)\",\"Madrid (CET/CEST)\",\"Amsterdam (CET/CEST)\",\"Brussels (CET/CEST)\",\"Vienna (CET/CEST)\",\"Stockholm (CET/CEST)\",\"Copenhagen (CET/CEST)\",\"Oslo (CET/CEST)\",\"Helsinki (EET/EEST)\",\"Warsaw (CET/CEST)\",\"Prague (CET/CEST)\",\"Budapest (CET/CEST)\",\"Athens (EET/EEST)\",\"Istanbul (TRT)\",\"Moscow (MSK)\",\"Dubai (GST)\",\"Karachi (PKT)\",\"Mumbai (IST)\",\"Dhaka (BST)\",\"Bangkok (ICT)\",\"Singapore (SGT)\",\"Hong Kong (HKT)\",\"Shanghai (CST)\",\"Tokyo (JST)\",\"Seoul (KST)\",\"Sydney (AEDT/AEST)\",\"Melbourne (AEDT/AEST)\",\"Brisbane (AEST)\",\"Perth (AWST)\",\"Auckland (NZDT/NZST)\",\"Fiji (FJT)\",\"Toronto (EST/EDT)\",\"Vancouver (PST/PDT)\",\"Mexico City (CST/CDT)\",\"S\\xe3o Paulo (BRT)\",\"Buenos Aires (ART)\",\"Santiago (CLT)\",\"Lima (PET)\",\"Bogot\\xe1 (COT)\",\"Caracas (VET)\",\"Cairo (EET)\",\"Johannesburg (SAST)\",\"Lagos (WAT)\",\"Nairobi (EAT)\",\"UTC\"]},format:{type:ControlType.Enum,title:\"Format\",defaultValue:\"12h\",options:[\"12h\",\"24h\"],optionTitles:[\"12 Hour\",\"24 Hour\"],displaySegmentedControl:true},showSeconds:{type:ControlType.Boolean,title:\"Show Seconds\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},showDate:{type:ControlType.Boolean,title:\"Show Date\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},dateFormat:{type:ControlType.Enum,title:\"Date Format\",defaultValue:\"short\",options:[\"short\",\"long\",\"numeric\"],optionTitles:[\"Short (Jan 1)\",\"Long (Monday, January 1, 2024)\",\"Numeric (01/01/2024)\"],hidden:({showDate})=>!showDate},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Timer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Timer.map"],"mappings":"sMAIG,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,WAAS,mBAA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