{"version":3,"file":"TimeDisplay.B3rcRI4L.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/6ei5YZxRc7AeqTY1JmzV/vr1sdSne3PqarCFI0co5/iobJSpmub.js","https:/framerusercontent.com/modules/xCQBVpwQUaQM4EQRRwCe/1iKNtHaVPIU2NwSGnuqT/TimeDisplay.js"],"sourcesContent":["// Generated by Framer (dd59b2c)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 20 10 C 20 15.523 15.523 20 10 20 M 20 10 C 20 4.477 15.523 0 10 0 M 20 10 L 0 10 M 10 20 C 4.477 20 0 15.523 0 10 M 10 20 C 12.474 17.475 14 13.815 14 10 C 14 6.185 12.474 2.525 10 0 M 10 20 C 7.526 17.475 6 13.815 6 10 C 6 6.185 7.526 2.525 10 0 M 0 10 C 0 4.477 4.477 0 10 0\" fill=\"transparent\" height=\"20px\" id=\"iFhVvyxnn\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--1ww558a, 2)\" stroke=\"var(--4rxgx6, black)\" transform=\"translate(2 2)\" width=\"20px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,CRY1Fpez4:color??props.CRY1Fpez4??\"rgb(0, 0, 0)\",vet7gqNu_:width1??props.vet7gqNu_??2};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,CRY1Fpez4,vet7gqNu_,...restProps}=getProps(props);const href=useSVGTemplate(\"1008787320\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-gaopj\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1ww558a\":vet7gqNu_,\"--4rxgx6\":CRY1Fpez4,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-gaopj { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"CRY1Fpez4\":\"color\",\"vet7gqNu_\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Globe World Earth\",\"color\":{\"type\":\"variable\",\"value\":\"4rxgx6\"},\"set\":{\"localId\":\"vectorSet/dSZJyzeMx\",\"id\":\"dSZJyzeMx\",\"moduleId\":\"E1vFg1A6wcWAGuFi9Hz1\"}}\n */const Icon=withCSS(Component,css,\"framer-gaopj\");Icon.displayName=\"Globe World Earth\";export default Icon;addPropertyControls(Icon,{CRY1Fpez4:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},vet7gqNu_:{defaultValue:2,displayStepper:true,hidden:false,max:4,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerIntrinsicHeight\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Globe World Earth\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"4rxgx6\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/dSZJyzeMx\\\",\\\"id\\\":\\\"dSZJyzeMx\\\",\\\"moduleId\\\":\\\"E1vFg1A6wcWAGuFi9Hz1\\\"}}\",\"framerVariables\":\"{\\\"CRY1Fpez4\\\":\\\"color\\\",\\\"vet7gqNu_\\\":\\\"width1\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Simple and minimal display of the current time with customizable font, size, color and time zone\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 TimeDisplay(props){const{timeZone=\"America/New_York\",textColor=\"#000000\",font,format24Hour=false,showSeconds=true}=props;const[time,setTime]=useState(\"\");useEffect(()=>{if(typeof window===\"undefined\")return;const updateTime=()=>{const now=new Date;const options={timeZone,hour:\"2-digit\",minute:\"2-digit\",...showSeconds&&{second:\"2-digit\"},hour12:!format24Hour};const formattedTime=new Intl.DateTimeFormat(\"en-US\",options).format(now);startTransition(()=>setTime(formattedTime));};updateTime();const interval=setInterval(updateTime,1e3);return()=>clearInterval(interval);},[timeZone,format24Hour,showSeconds]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-block\",color:textColor,width:\"max-content\",...font},children:time});}addPropertyControls(TimeDisplay,{timeZone:{type:ControlType.Enum,title:\"City\",defaultValue:\"America/New_York\",options:[\"America/New_York\",\"America/Los_Angeles\",\"America/Chicago\",\"America/Denver\",\"America/Phoenix\",\"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/Tokyo\",\"Asia/Shanghai\",\"Asia/Hong_Kong\",\"Asia/Singapore\",\"Asia/Seoul\",\"Asia/Bangkok\",\"Asia/Jakarta\",\"Asia/Manila\",\"Asia/Taipei\",\"Asia/Kolkata\",\"Asia/Karachi\",\"Australia/Sydney\",\"Australia/Melbourne\",\"Australia/Brisbane\",\"Australia/Perth\",\"Pacific/Auckland\",\"America/Toronto\",\"America/Vancouver\",\"America/Mexico_City\",\"America/Sao_Paulo\",\"America/Buenos_Aires\",\"Africa/Cairo\",\"Africa/Johannesburg\",\"Africa/Lagos\",\"Africa/Nairobi\"],optionTitles:[\"New York\",\"Los Angeles\",\"Chicago\",\"Denver\",\"Phoenix\",\"Anchorage\",\"Honolulu\",\"London\",\"Paris\",\"Berlin\",\"Rome\",\"Madrid\",\"Amsterdam\",\"Brussels\",\"Vienna\",\"Stockholm\",\"Copenhagen\",\"Oslo\",\"Helsinki\",\"Warsaw\",\"Prague\",\"Budapest\",\"Athens\",\"Istanbul\",\"Moscow\",\"Dubai\",\"Tokyo\",\"Shanghai\",\"Hong Kong\",\"Singapore\",\"Seoul\",\"Bangkok\",\"Jakarta\",\"Manila\",\"Taipei\",\"Mumbai\",\"Karachi\",\"Sydney\",\"Melbourne\",\"Brisbane\",\"Perth\",\"Auckland\",\"Toronto\",\"Vancouver\",\"Mexico City\",\"S\\xe3o Paulo\",\"Buenos Aires\",\"Cairo\",\"Johannesburg\",\"Lagos\",\"Nairobi\"]},format24Hour:{type:ControlType.Boolean,title:\"Format\",defaultValue:false,enabledTitle:\"24h\",disabledTitle:\"12h\"},showSeconds:{type:ControlType.Boolean,title:\"Seconds\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TimeDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TimeDisplay.map"],"mappings":"+SAC2C,IAAqF,IAA4B,CAAoC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,SAAS,CAAC,EAAG,CAAO,EAAU,EAAO,OAAO,EAAK,CAAO,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,WAAS,CAAC,CAAc,EAAK,MAAM,CAAC,GAAG,EAAS,MAAa,WAAS,CAAC,EAAG,CAAO,EAAI,smBAA4mB,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,SAAO,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAO,EAAM,WAAW,eAAe,UAAU,GAAQ,EAAM,WAAW,EAAE,EASn5C,EAAK,EAT86C,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,GAAG,GAAW,EAAS,EAAM,CAAO,EAAK,EAAe,aAAa,EAAI,CAAC,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,EAAU,CAAU,WAAa,MAAI,KAAK,eAAe,MAAM,CAAC,YAAY,EAAU,WAA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