{"version":3,"file":"TimeDisplay.pdNKewtH.mjs","names":["React.forwardRef","useState","__esmMin","init_ssg_sandbox_shims","te","_e","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","window","motion","cx","useSVGTemplate","addPropertyControls","init_framer_CaDWdxiz","ControlType","withCSS","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_iobJSpmub","props","rest","animated","color","width1","restProps","href","className","vet7gqNu_","CRY1Fpez4","style","TimeDisplay","time","setTime","updateTime","now","options","showSeconds","format24Hour","formattedTime","interval","timeZone","textColor","font","init_TimeDisplay"],"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":"A,0UACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAG2B,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUf,EAAO,OAAOQ,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,smBAA4mB,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,SAAO,GAAGD,MAAgB,CAAC,GAAGA,EAAM,UAAUG,GAAO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