{"version":3,"file":"Clock.Df39YBv9.mjs","names":["useState","useMemo"],"sources":["https:/framerusercontent.com/modules/lE3FnWj76o4bcJ2sowee/E45Xa9M4iB6aw7Mokdgn/xvTYe9Qg0.js","https:/framerusercontent.com/modules/75KbdOqyQmDc9g69B6KZ/sbEL6RfacQ0VftKvMpL4/Clock.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 10 4 L 10 10 L 14 14 M 20 10 C 20 15.523 15.523 20 10 20 C 4.477 20 0 15.523 0 10 C 0 4.477 4.477 0 10 0 C 15.523 0 20 4.477 20 10 Z\" fill=\"transparent\" height=\"20px\" id=\"q7gJHKBBj\" 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(\"2005987383\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-z768M\",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-z768M { -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\":\"Clock Time\",\"color\":{\"type\":\"variable\",\"value\":\"4rxgx6\"},\"set\":{\"localId\":\"vectorSet/dSZJyzeMx\",\"id\":\"dSZJyzeMx\",\"moduleId\":\"E1vFg1A6wcWAGuFi9Hz1\"}}\n */const Icon=withCSS(Component,css,\"framer-z768M\");Icon.displayName=\"Clock Time\";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\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"CRY1Fpez4\\\":\\\"color\\\",\\\"vet7gqNu_\\\":\\\"width1\\\"}\",\"framerIntrinsicWidth\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Clock Time\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"4rxgx6\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/dSZJyzeMx\\\",\\\"id\\\":\\\"dSZJyzeMx\\\",\\\"moduleId\\\":\\\"E1vFg1A6wcWAGuFi9Hz1\\\"}}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useMemo}from\"react\";const timeZones=typeof Intl!=\"undefined\"?Intl.supportedValuesOf(\"timeZone\"):[];/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function Clock(props){// Get the current time immediately without causing re-renders\nconst getCurrentTime=()=>{if(props.customTimeZone===\"auto\"){return new Date;}else{return new Date(new Date().toLocaleString(\"en-US\",{timeZone:props.customTimeZone}));}};// State for the clock\nconst[currentTime,setCurrentTime]=useState(getCurrentTime);// Effect to keep the time updated without any stutter\nuseEffect(()=>{const updateClock=()=>setCurrentTime(getCurrentTime());// Update immediately\nupdateClock();// Keep updating every second\nconst timerID=setInterval(updateClock,1e3);return()=>clearInterval(timerID);},[props.customTimeZone]);// Format AM/PM text\nconst ampmText=props.ampmCase===\"uppercase\"?[\"AM\",\"PM\"]:[\"am\",\"pm\"];// Format time\nconst hours=props.is12hour?currentTime.getHours()%12||12:currentTime.getHours();const minutes=currentTime.getMinutes().toString().padStart(2,\"0\");const seconds=props.seconds?`:${currentTime.getSeconds().toString().padStart(2,\"0\")}`:\"\";const ampm=props.is12hour?` ${currentTime.getHours()>=12?ampmText[1]:ampmText[0]}`:\"\";// Memoize time zone abbreviation to avoid unnecessary recalculations\nconst timeZoneAbbreviation=useMemo(()=>{if(!props.timeZone)return\"\";return\" \"+new Intl.DateTimeFormat(\"en-US\",{timeZone:props.customTimeZone===\"auto\"?undefined:props.customTimeZone,timeZoneName:\"short\"}).formatToParts(currentTime).find(part=>part.type===\"timeZoneName\").value;},[props.timeZone,props.customTimeZone,currentTime]);return /*#__PURE__*/_jsxs(\"p\",{style:{color:props.color,userSelect:props.textSelect?\"auto\":\"none\",margin:0,...props.font},children:[props.prefix,hours,\":\",minutes,seconds,ampm,timeZoneAbbreviation,props.suffix]});}// Property Controls\naddPropertyControls(Clock,{customTimeZone:{type:ControlType.Enum,defaultValue:\"auto\",options:[\"auto\",...timeZones],optionTitles:[\"Auto (Local)\",...timeZones],title:\"Time Zone\"},seconds:{type:ControlType.Boolean,defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},timeZone:{type:ControlType.Boolean,defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\",title:\"Time Zone Label\"},is12hour:{type:ControlType.Boolean,defaultValue:true,enabledTitle:\"12 Hour\",disabledTitle:\"24 Hour\",title:\"Mode\"},ampmCase:{type:ControlType.Enum,defaultValue:\"uppercase\",options:[\"uppercase\",\"lowercase\"],optionTitles:[\"AM / PM\",\"am / pm\"],title:\"Case\",hidden(props){return!props.is12hour;}},color:{type:ControlType.Color,defaultValue:\"#000\",title:\"Font Color\"},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:16,lineHeight:1}},prefix:{type:ControlType.String},suffix:{type:ControlType.String},textSelect:{type:ControlType.Boolean,defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Clock\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Clock.map"],"mappings":"mSAC2C,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,E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