{"version":3,"file":"eEhPRrmIo.CtFPefSW.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/YiVwzs5VE53PQ0EgqMZq/NqWTcGPi4Liiz0wPoqdk/TimeZone_1.js","https:/framerusercontent.com/modules/lmyqO0uF7LlGgEIHdDqv/JCvfesTwBwDccA55ofFJ/eEhPRrmIo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TimeZoneDisplay(props){const{useCurrentTimezone=false,selectedTimezone=\"America/New_York\",format=\"12h\",showSeconds=true,showTimezone=true,textColor,font}=props;const[time,setTime]=useState(\"\");const isStatic=useIsStaticRenderer();useEffect(()=>{const updateTime=()=>{if(typeof window===\"undefined\")return;const timezone=useCurrentTimezone?Intl.DateTimeFormat().resolvedOptions().timeZone:selectedTimezone;const now=new Date;const options={timeZone:timezone,hour:\"2-digit\",minute:\"2-digit\",...showSeconds&&{second:\"2-digit\"},hour12:format===\"12h\",...showTimezone&&{timeZoneName:\"short\"}};const formattedTime=new Intl.DateTimeFormat(\"en-US\",options).format(now);startTransition(()=>setTime(formattedTime));};updateTime();if(isStatic)return;const interval=setInterval(updateTime,1e3);return()=>clearInterval(interval);},[useCurrentTimezone,selectedTimezone,format,showSeconds,showTimezone,isStatic]);const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",display:\"inline-block\",...isFixedWidth?{}:{width:\"max-content\"}},children:/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,...font,whiteSpace:\"nowrap\"},children:time||\"Loading...\"})});}addPropertyControls(TimeZoneDisplay,{useCurrentTimezone:{type:ControlType.Boolean,title:\"Timezone\",enabledTitle:\"Current\",disabledTitle:\"Selected\",defaultValue:false},selectedTimezone:{type:ControlType.Enum,title:\"Select Timezone\",options:[\"Etc/GMT+12\",\"Pacific/Midway\",\"Pacific/Honolulu\",\"America/Anchorage\",\"America/Los_Angeles\",\"America/Denver\",\"America/Chicago\",\"America/New_York\",\"America/Caracas\",\"America/Santiago\",\"America/Sao_Paulo\",\"Atlantic/South_Georgia\",\"Atlantic/Azores\",\"Europe/London\",\"Europe/Paris\",\"Europe/Berlin\",\"Europe/Athens\",\"Europe/Moscow\",\"Asia/Dubai\",\"Asia/Karachi\",\"Asia/Kolkata\",\"Asia/Bangkok\",\"Asia/Shanghai\",\"Asia/Tokyo\",\"Australia/Sydney\",\"Pacific/Auckland\",\"Pacific/Kiritimati\"],optionTitles:[\"GMT-12:00 (Etc/GMT+12)\",\"GMT-11:00 (Midway)\",\"GMT-10:00 (Honolulu)\",\"GMT-9:00 (Anchorage)\",\"GMT-8:00 (Pacific Time)\",\"GMT-7:00 (Mountain Time)\",\"GMT-6:00 (Central Time)\",\"GMT-5:00 (Eastern Time)\",\"GMT-4:30 (Caracas)\",\"GMT-4:00 (Santiago)\",\"GMT-3:00 (S\\xe3o Paulo)\",\"GMT-2:00 (South Georgia)\",\"GMT-1:00 (Azores)\",\"GMT+0:00 (London)\",\"GMT+1:00 (Paris)\",\"GMT+1:00 (Berlin)\",\"GMT+2:00 (Athens)\",\"GMT+3:00 (Moscow)\",\"GMT+4:00 (Dubai)\",\"GMT+5:00 (Karachi)\",\"GMT+5:30 (Kolkata)\",\"GMT+7:00 (Bangkok)\",\"GMT+8:00 (Shanghai)\",\"GMT+9:00 (Tokyo)\",\"GMT+10:00 (Sydney)\",\"GMT+12:00 (Auckland)\",\"GMT+14:00 (Kiritimati)\"],defaultValue:\"America/New_York\",hidden:({useCurrentTimezone})=>useCurrentTimezone},format:{type:ControlType.Enum,title:\"Format\",options:[\"12h\",\"24h\"],optionTitles:[\"12 Hour\",\"24 Hour\"],defaultValue:\"12h\",displaySegmentedControl:true},showSeconds:{type:ControlType.Boolean,title:\"Seconds\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false},showTimezone:{type:ControlType.Boolean,title:\"Timezone Label\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:true},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TimeZoneDisplay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TimeZone_1.map","// Generated by Framer (32af339)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-Lhxxt .framer-styles-preset-1qml0uu:not(.rich-text-wrapper), .framer-Lhxxt .framer-styles-preset-1qml0uu.rich-text-wrapper a { --framer-link-hover-text-color: var(--token-2b702f65-6e96-49ee-b393-08244e24cddc, #757575); --framer-link-text-color: var(--token-fe2f5de2-c396-41e5-bc3a-9ccde1cf353d, #ffffff); }\"];export const className=\"framer-Lhxxt\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qNAGG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,qBAAmB,GAAM,mBAAiB,mBAAmB,SAAO,MAAM,cAAY,GAAK,eAAa,GAAK,YAAU,QAAM,EAAW,CAAC,EAAK,GAASA,EAAS,GAAG,CAAO,EAA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