{"version":3,"file":"Time.BCJDOVfK.mjs","names":["React.forwardRef","useCallback","useRef","useState"],"sources":["https:/framerusercontent.com/modules/BIr4048P448Z3JVm9daA/SDTOSL299FycmfcJaUo6/SgHPfbILI.js","https:/framerusercontent.com/modules/HYcHVPAbe8jLEeU7c4mp/QiycTxX7vdblEOi3o00G/Time.js"],"sourcesContent":["// Generated by Framer (4458791)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 884 182\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 701.751 0 C 713.686 0 723.798 0.218 731.839 4.746 C 742.15 10.553 739.269 24.271 734.865 35.902 C 732.551 42.015 731.096 45.494 727.447 50.687 C 721.276 59.47 710.024 62.327 699.29 62.327 L 649.438 62.327 C 646.214 62.327 643.661 63.44 642.475 66.585 L 641.11 70.205 C 639.983 73.172 638.915 75.665 637.833 79.237 C 635.411 87.237 640.029 96.819 660.315 96.819 L 676.353 96.819 L 738.559 96.885 L 746.296 96.885 C 751.483 96.879 756.124 93.662 757.951 88.808 C 760.355 82.443 762.772 76.083 765.204 69.729 C 773.775 47.313 780.801 28.959 784.551 19.168 C 788.301 9.376 794.502 0.06 814.579 0.06 L 884.003 0.06 L 881.165 7.357 C 877.617 16.481 868.831 22.491 859.041 22.491 L 838.723 22.491 C 822.878 22.491 822.466 22.491 818.605 32.52 C 815.518 40.538 796.717 89.372 794.105 96.269 C 793.039 99.031 791.978 101.796 790.923 104.562 C 787.618 113.232 779.276 119.101 769.997 119.092 C 758.972 119.08 745.917 119.064 738.559 119.064 L 738.559 119.03 L 670.045 119.03 L 670.052 119.067 L 453.243 119.067 C 448.9 119.067 445.907 114.713 447.461 110.658 L 451.956 98.93 C 452.415 97.732 453.565 96.941 454.848 96.941 L 489.192 96.941 L 513.062 34.085 C 514.1 31.35 512.08 28.421 509.154 28.421 L 465.515 28.421 C 462.946 28.42 460.643 30.007 459.728 32.408 L 402.81 181.77 L 358.395 181.77 L 382.344 119.068 L 267.052 119.068 C 262.709 119.068 259.715 114.714 261.27 110.659 L 265.765 98.931 C 266.224 97.733 267.373 96.942 268.656 96.942 L 302.764 96.942 L 326.846 34.098 C 327.895 31.36 325.874 28.422 322.942 28.422 L 279.323 28.422 C 276.754 28.422 274.451 30.008 273.536 32.409 L 216.618 181.77 L 172.203 181.77 L 196.284 118.723 L 48.034 118.723 C 41.128 118.723 36.372 116.62 33.517 112.283 C 30.769 108.137 30.112 102.712 31.51 95.699 C 32.31 91.637 34.311 87.771 35.942 83.059 L 59.295 22.055 L 0 22.055 C 0.822 19.831 1.655 17.611 2.498 15.395 C 5.979 6.21 14.798 0.167 24.618 0.167 L 113.435 0.166 L 81.195 84.002 C 78.303 89.928 82.497 96.846 89.092 96.846 L 108.553 96.846 C 112.101 96.846 114.91 94.743 116.319 91.481 L 151.304 0.166 L 198.329 0.166 L 164.483 88.053 C 162.512 92.115 165.475 96.846 169.991 96.846 L 204.641 96.846 L 234.113 19.683 C 238.603 7.93 249.88 0.166 262.461 0.166 L 359.485 0.166 C 371.443 0.166 379.677 12.167 375.374 23.324 L 346.979 96.941 L 390.795 96.941 L 420.305 19.683 C 424.794 7.93 436.071 0.166 448.652 0.166 L 545.733 0.166 C 557.676 0.166 565.91 12.139 561.636 23.291 L 533.409 96.941 L 591.405 96.941 C 588.927 89.801 587.272 80.046 589.016 68.436 C 593.448 46.19 603.114 29.316 621.274 16.723 C 636.842 5.946 658.022 0 676.589 0 Z M 668.814 20.283 C 663.058 20.283 659.32 22.848 657.302 28.188 L 650.309 46.142 C 649.522 47.73 650.678 49.592 652.45 49.592 L 682.76 49.592 L 690.912 28.334 C 692.415 24.414 689.511 20.206 685.312 20.222 Z\" fill=\"var(--token-2aaad805-2b1e-4fe7-96e5-ee85b2e20060, rgb(19, 28, 47))\" height=\"181.76999999999998px\" id=\"nqeeXpJqC\" width=\"884.0029999999999px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,width,...props})=>{return{...props};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-oI4QB\",className),layoutId:layoutId,ref:ref,style:{...style}});});const css=[`.framer-oI4QB { -webkit-mask: ${mask}; aspect-ratio: 4.857142857142857; background-color: var(--token-2aaad805-2b1e-4fe7-96e5-ee85b2e20060, #131c2f); mask: ${mask}; width: 884px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 884\n * @framerIntrinsicHeight 182\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Vector\",\"color\":{\"type\":\"static\",\"value\":\"var(--token-2aaad805-2b1e-4fe7-96e5-ee85b2e20060, rgb(19, 28, 47))\"},\"set\":{\"localId\":\"vectorSet/xp2MMzI4J\",\"id\":\"xp2MMzI4J\",\"moduleId\":\"JKjGdJ9W6EkGg4xSAYDC\"}}\n */const Icon=withCSS(Component,css,\"framer-oI4QB\");Icon.displayName=\"Vector\";export default Icon;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"182\",\"framerVector\":\"{\\\"name\\\":\\\"Vector\\\",\\\"color\\\":{\\\"type\\\":\\\"static\\\",\\\"value\\\":\\\"var(--token-2aaad805-2b1e-4fe7-96e5-ee85b2e20060, rgb(19, 28, 47))\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/xp2MMzI4J\\\",\\\"id\\\":\\\"xp2MMzI4J\\\",\\\"moduleId\\\":\\\"JKjGdJ9W6EkGg4xSAYDC\\\"}}\",\"framerIntrinsicWidth\":\"884\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,useLocaleCode}from\"framer\";import{startTransition,useCallback,useEffect,useRef,useState}from\"react\";const fontStack=`\"Inter\", system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"`;function formatTimeOrDate(outputType,{showYear,showMonth,showWeekday,showMinutes,showSeconds},timeFormat,monthFormat,localCode){const date=new Date;const onlyYearIsShown=!showWeekday&&!showMonth&&showYear;switch(outputType){case\"date\":return new Intl.DateTimeFormat(localCode,{weekday:showWeekday?\"long\":undefined,day:onlyYearIsShown?undefined:\"numeric\",month:showMonth?monthFormat:undefined,year:showYear?\"numeric\":undefined}).format(date);case\"time\":return new Intl.DateTimeFormat(localCode,{hour:\"numeric\",minute:showMinutes?\"numeric\":undefined,second:showSeconds&&showMinutes?\"numeric\":undefined,hour12:timeFormat===\"12h\"}).format(date);default:return new Intl.DateTimeFormat(localCode).format(date);}}const defaultProps={height:20,width:140,outputType:\"time\",color:\"#999\",timeFormat:\"24h\",showYear:true,showMonth:true,showWeekday:true,showMinutes:true,showSeconds:true,monthFormat:\"long\",alignment:\"center\"};/**\n * TIME AND DATE\n * FORKED FROM PROTOTYPING\n *\n * @framerIntrinsicWidth 140\n * @framerIntrinsicHeight 20\n *\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export function Time(props){const mergedProps={...defaultProps,...props};const{outputType,timeFormat,showYear,showMonth,showWeekday,// showHours,\nshowMinutes,showSeconds,monthFormat,color,font,tabularFont}=mergedProps;const localCode=useLocaleCode();const getTextContent=useCallback(()=>formatTimeOrDate(outputType,{showYear,showMonth,showWeekday,// showHours,\n    showMinutes,showSeconds},timeFormat,monthFormat,localCode),[localCode,monthFormat,outputType,showMinutes,showMonth,showSeconds,showWeekday,showYear,timeFormat]);const timeoutRef=useRef()// FIXME: With React 19, we can remove this and return a cleanup from the ref callback\n;const updateCountdown=useCallback(node=>{if(node===null){// React calls w/ `null` on unmount or if the ref function changes.\nclearTimeout(timeoutRef.current);return;}let prev;const tick=()=>{const date=new Date;const next=new Date().setSeconds(date.getSeconds()+1,0)-+date;timeoutRef.current=setTimeout(tick,next);const textContent=getTextContent();if(prev!==textContent){node.textContent=textContent;prev=textContent;}};tick();},[getTextContent]);const[visible,setIsVisible]=useState(false);const isCanvas=RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{startTransition(()=>setIsVisible(true));// Don’t want real time on Canvas\nif(isCanvas)return;},[isCanvas]);return /*#__PURE__*/_jsx(\"p\",{suppressHydrationWarning:true,style:{margin:0,padding:0,color,fontFamily:fontStack,fontWeight:500,fontSize:16,lineHeight:1,visibility:visible?\"visible\":\"hidden\",...font,fontVariantNumeric:tabularFont?\"tabular-nums\":\"normal\",whiteSpace:\"nowrap\"},ref:isCanvas?undefined:updateCountdown,children:getTextContent()});}Time.displayName=\"Time & Date\";addPropertyControls(Time,{outputType:{title:\"Type\",type:ControlType.Enum,displaySegmentedControl:true,options:[\"date\",\"time\"],optionTitles:[\"Date\",\"Time\"],defaultValue:defaultProps.outputType},showWeekday:{title:\"Day\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:defaultProps.showWeekday,hidden:props=>props.outputType!==\"date\"},showMonth:{title:\"Month\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:defaultProps.showMonth,hidden:props=>props.outputType!==\"date\"},monthFormat:{title:\"Format\",type:ControlType.Enum,options:[\"short\",\"long\",\"numeric\"],optionTitles:[\"Short\",\"Long\",\"Numeric\"],defaultValue:defaultProps.monthFormat,hidden:props=>props.outputType!==\"date\"||!props.showMonth},showYear:{title:\"Year\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:defaultProps.showYear,hidden:props=>props.outputType!==\"date\"},timeFormat:{title:\"Format\",type:ControlType.Enum,options:[\"12h\",\"24h\"],optionTitles:[\"12h\",\"24h\"],displaySegmentedControl:true,defaultValue:defaultProps.timeFormat,hidden:props=>props.outputType!==\"time\"},// showHours: {\n//     title: \"Hours\",\n//     type: ControlType.Boolean,\n//     enabledTitle: \"Show\",\n//     disabledTitle: \"Hide\",\n//     defaultValue: defaultProps.showHours,\n//     hidden: (props) => props.outputType !== \"time\",\n// },\nshowMinutes:{title:\"Minutes\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:defaultProps.showMinutes,hidden:props=>props.outputType!==\"time\"},showSeconds:{title:\"Seconds\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:defaultProps.showSeconds,hidden:props=>props.outputType!==\"time\"||!props.showMinutes},font:{type:ControlType.Font,controls:\"extended\"},tabularFont:{title:\"Tabular\",type:ControlType.Boolean,defaultValue:true},color:{type:ControlType.Color,defaultValue:defaultProps.color}});\nexport const __FramerMetadata__ = {\"exports\":{\"Time\":{\"type\":\"reactComponent\",\"name\":\"Time\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"20\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"140\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Time.map"],"mappings":"wSAC0C,IAAsC,IAA4B,EAAqC,EAAK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