{"version":3,"file":"Clock.FCslqzM5.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/hszEPawFmnBKuirA3pAs/Lt5CkmWePfkFrNaSl1BA/dKg4d4Wgl.js","https:/framerusercontent.com/modules/BIHaw55VACfRKwSgwtj7/G7JGvVhzHUbk6jZsTk1B/Clock.js"],"sourcesContent":["// Generated by Framer (139b156)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;DM Sans-500\",\"GF;DM Sans-700\",\"GF;DM Sans-700italic\",\"GF;DM Sans-500italic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"DM Sans\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhS2f3ZGMZpg.woff2\",weight:\"500\"},{family:\"DM Sans\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthS2f3ZGMZpg.woff2\",weight:\"700\"},{family:\"DM Sans\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/dmsans/v15/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm32RmYJpso5.woff2\",weight:\"700\"},{family:\"DM Sans\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/dmsans/v15/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW32RmYJpso5.woff2\",weight:\"500\"}]}];export const css=['.framer-SQFDJ .framer-styles-preset-9w7x32:not(.rich-text-wrapper), .framer-SQFDJ .framer-styles-preset-9w7x32.rich-text-wrapper p { --framer-font-family: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-a62ea61d-ff7a-4157-8e11-935395736ce4, #575757); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1439px) and (min-width: 1200px) { .framer-SQFDJ .framer-styles-preset-9w7x32:not(.rich-text-wrapper), .framer-SQFDJ .framer-styles-preset-9w7x32.rich-text-wrapper p { --framer-font-family: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-a62ea61d-ff7a-4157-8e11-935395736ce4, #575757); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 1199px) and (min-width: 810px) { .framer-SQFDJ .framer-styles-preset-9w7x32:not(.rich-text-wrapper), .framer-SQFDJ .framer-styles-preset-9w7x32.rich-text-wrapper p { --framer-font-family: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-a62ea61d-ff7a-4157-8e11-935395736ce4, #575757); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-SQFDJ .framer-styles-preset-9w7x32:not(.rich-text-wrapper), .framer-SQFDJ .framer-styles-preset-9w7x32.rich-text-wrapper p { --framer-font-family: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-bold-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-family-italic: \"DM Sans\", \"DM Sans Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.6em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-a62ea61d-ff7a-4157-8e11-935395736ce4, #575757); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-SQFDJ\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Component made by Eleveight Supply, All rights reserved.\n/**\n\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth 100%\n * @framerSupportedLayoutHeight 100%\n */export default function Clock({timezone,is24HourFormat,showSeconds,font,fontSize,textColor,dateSettings:{showDate,dateFormat,datePosition,monthFormat},prefixSuffixSettings:{usePrefixSuffix,text:psText}}){const[currentDateTime,setCurrentDateTime]=useState(\"\");const[isValidTimezone,setIsValidTimezone]=useState(true);useEffect(()=>{function updateDateTime(){try{const now=new Date;const timeOptions={hour:\"2-digit\",minute:\"2-digit\",second:showSeconds?\"2-digit\":undefined,timeZone:timezone,hour12:!is24HourFormat};const dateOptions={year:dateFormat.includes(\"Y\")?\"numeric\":undefined,month:dateFormat.includes(\"M\")?monthFormat===\"text\"?\"long\":\"2-digit\":undefined,day:dateFormat.includes(\"D\")?\"2-digit\":undefined};const timeFormatter=new Intl.DateTimeFormat(\"en-US\",timeOptions);const dateFormatter=new Intl.DateTimeFormat(\"en-US\",dateOptions);const timeString=timeFormatter.format(now);const dateString=showDate?dateFormatter.format(now):\"\";let combinedString=dateString?`${dateString} - ${timeString}`:timeString;if(usePrefixSuffix===\"prefix\"&&psText){combinedString=`${psText} ${combinedString}`;}else if(usePrefixSuffix===\"suffix\"&&psText){combinedString=`${combinedString} ${psText}`;}setCurrentDateTime(combinedString);setIsValidTimezone(true);}catch(error){console.error(\"Error with timezone: \",error);setIsValidTimezone(false);}}updateDateTime();const intervalId=setInterval(updateDateTime,1e3);return()=>clearInterval(intervalId);},[timezone,is24HourFormat,showSeconds,showDate,dateFormat,datePosition,monthFormat,textColor,font,fontSize,usePrefixSuffix,psText]);const dynamicStyle={fontSize:`${fontSize}px`,fontFeatureSettings:\"'tnum'\",fontVariantNumeric:\"lining-nums\",color:textColor,...font};return /*#__PURE__*/_jsx(\"div\",{style:dynamicStyle,children:currentDateTime});}Clock.defaultProps={timezone:\"America/New_York\",is24HourFormat:true,showSeconds:false,dateSettings:{showDate:false,dateFormat:\"DMY\",datePosition:\"prefix\",monthFormat:\"number\"},prefixSuffixSettings:{usePrefixSuffix:\"none\",text:\"\",fontSize:16},textColor:\"#999999\",fontSize:24};addPropertyControls(Clock,{timezone:{type:ControlType.String,title:\"Timezone\",defaultValue:\"America/New_York\",description:\"Use a timezone identifier ie: 'America/Los_Angeles' [Full list here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:\"Inter\",controls:\"extended\"},textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#999999\"},is24HourFormat:{type:ControlType.Boolean,title:\"Format\",defaultValue:true,enabledTitle:\"24h\",disabledTitle:\"12h\"},showSeconds:{type:ControlType.Boolean,title:\"Seconds\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},prefixSuffixSettings:{type:ControlType.Object,title:\"Prefix/Suffix\",controls:{usePrefixSuffix:{type:ControlType.SegmentedEnum,title:\"Use\",options:[\"none\",\"prefix\",\"suffix\"],optionTitles:[\"None\",\"Pref.\",\"Suff.\"],defaultValue:\"none\"},text:{type:ControlType.String,title:\"Text\",defaultValue:\"\",description:\"include your divider directly here, ie: - , :\"}}},dateSettings:{type:ControlType.Object,title:\"Date\",controls:{showDate:{type:ControlType.Boolean,title:\"Show Date\"},dateFormat:{type:ControlType.Enum,title:\"Format\",options:[\"D\",\"M\",\"DM\",\"DMY\"],optionTitles:[\"Only Day\",\"Only Month\",\"Day and Month\",\"Day, Month and Year\"]},datePosition:{type:ControlType.SegmentedEnum,title:\"Position\",options:[\"prefix\",\"suffix\"],optionTitles:[\"Front\",\"End\"]},monthFormat:{type:ControlType.SegmentedEnum,title:\"Month Format\",options:[\"number\",\"text\"],optionTitles:[\"Numeric\",\"Text\"]}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Clock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"100%\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"100%\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Clock.map"],"mappings":"+MAC8B,GAAU,UAAU,CAAC,iBAAiB,iBAAiB,uBAAuB,uBAAuB,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,UAAU,OAAO,SAAS,MAAM,SAAS,IAAI,8GAA8G,OAAO,MAAM,CAAC,CAAC,OAAO,UAAU,OAAO,SAAS,MAAM,SAAS,IAAI,8GAA8G,OAAO,MAAM,CAAC,CAAC,OAAO,UAAU,OAAO,SAAS,MAAM,SAAS,IAAI,gHAAgH,OAAO,MAAM,CAAC,CAAC,OAAO,UAAU,OAAO,SAAS,MAAM,SAAS,IAAI,gHAAgH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAc,EAAI,CAAC,soCAAsoC,6rCAA6rC,4rCAA4rC,yrCAAyrC,CAAc,EAAU,kBCM9lL,SAAwB,EAAM,CAAC,WAAS,iBAAe,cAAY,OAAK,WAAS,YAAU,aAAa,CAAC,WAAS,aAAW,eAAa,eAAa,qBAAqB,CAAC,kBAAgB,KAAK,IAAS,CAAC,GAAK,CAAC,EAAgB,GAAoBA,EAAS,GAAG,CAAM,CAAC,EAAgB,GAAoBA,EAAS,GAAK,CAAy2C,OAAx2C,MAAc,CAAC,SAAS,GAAgB,CAAC,GAAG,CAAC,IAAM,EAAI,IAA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