{"version":3,"file":"MissingHourMotionOverrides.gRvRak9F.mjs","names":["useRef","useState","useMemo","useCallback","__esmMin","init_ssg_sandbox_shims","te","ne","window","_e","de","init_jsx_runtime","pe","J","c","init_npm_react_18_3_1","ce","useReducedMotion","init_framer_motion_DhsWWWsN","init_framer_B1b760uK","useIsStaticRenderer","getTextSource","props","SectionLabelTypeIn","reducedMotion","isStaticRenderer","timerRef","typedIndexRef","displayText","setDisplayText","hasStarted","setHasStarted","source","fullText","handleViewportEnter","args","next","injectedText","textProp","Component","StampLandOnce","hasAnimated","setHasAnimated","animateProps","init_MissingHourMotionOverrides"],"sources":["https:/framerusercontent.com/modules/FtHIZhSmMqhVKbd0gDsg/ueSwNPW3mbF1aGFpOUFR/MissingHourMotionOverrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";import{useReducedMotion}from\"framer-motion\";function formatLocalTime(date){const hh=String(date.getHours()).padStart(2,\"0\");const mm=String(date.getMinutes()).padStart(2,\"0\");const ss=String(date.getSeconds()).padStart(2,\"0\");return`${hh}:${mm}:${ss}`;}function getTextSource(props){if(typeof props.text===\"string\"){return{key:\"text\",value:props.text};}if(typeof props.children===\"string\"){return{key:\"children\",value:props.children};}return null;}export function SectionLabelTypeIn(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const reducedMotion=useReducedMotion();const isStaticRenderer=useIsStaticRenderer();const timerRef=useRef(null);const typedIndexRef=useRef(0);const[displayText,setDisplayText]=useState(null);const[hasStarted,setHasStarted]=useState(false);const source=useMemo(()=>getTextSource(props),[props]);const fullText=source?.value??\"\";useEffect(()=>{return()=>{if(timerRef.current!==null&&typeof window!==\"undefined\"){window.clearInterval(timerRef.current);}};},[]);const handleViewportEnter=useCallback((...args)=>{if(typeof props.onViewportEnter===\"function\"){props.onViewportEnter(...args);}if(hasStarted||reducedMotion||isStaticRenderer||!source)return;startTransition(()=>{setHasStarted(true);setDisplayText(\"\");});typedIndexRef.current=0;if(typeof window===\"undefined\")return;timerRef.current=window.setInterval(()=>{typedIndexRef.current+=1;const next=fullText.slice(0,typedIndexRef.current);startTransition(()=>{setDisplayText(next);});if(typedIndexRef.current>=fullText.length){if(timerRef.current!==null)window.clearInterval(timerRef.current);timerRef.current=null;}},25);},[fullText,hasStarted,isStaticRenderer,props,reducedMotion,source]);const injectedText=displayText===null||!source?source?.value:displayText;const textProp=!source||injectedText===undefined?{}:source.key===\"text\"?{text:injectedText}:{children:injectedText};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,...textProp,onViewportEnter:handleViewportEnter,viewport:{...props.viewport??{},once:true}});});}export function StampLandOnce(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const reducedMotion=useReducedMotion();const isStaticRenderer=useIsStaticRenderer();const[hasAnimated,setHasAnimated]=useState(false);const handleViewportEnter=useCallback((...args)=>{if(typeof props.onViewportEnter===\"function\"){props.onViewportEnter(...args);}if(hasAnimated||reducedMotion||isStaticRenderer)return;startTransition(()=>{setHasAnimated(true);});},[hasAnimated,isStaticRenderer,props,reducedMotion]);const animateProps=hasAnimated&&!reducedMotion&&!isStaticRenderer?{scale:[1.6,1],opacity:[0,1]}:props.animate;return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:animateProps,transition:hasAnimated&&!reducedMotion&&!isStaticRenderer?{duration:.25,ease:[.2,.8,.2,1]}:props.transition,onViewportEnter:handleViewportEnter,viewport:{...props.viewport??{},once:true}});});}export function ClockTick(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const reducedMotion=useReducedMotion();const isStaticRenderer=useIsStaticRenderer();const intervalRef=useRef(null);const source=useMemo(()=>getTextSource(props),[props]);const[clockText,setClockText]=useState(null);useEffect(()=>{if(intervalRef.current!==null&&typeof window!==\"undefined\"){window.clearInterval(intervalRef.current);intervalRef.current=null;}if(reducedMotion||isStaticRenderer||!source||typeof window===\"undefined\")return;startTransition(()=>{setClockText(formatLocalTime(new Date));});intervalRef.current=window.setInterval(()=>{startTransition(()=>{setClockText(formatLocalTime(new Date));});},1e3);return()=>{if(intervalRef.current!==null){window.clearInterval(intervalRef.current);intervalRef.current=null;}};},[isStaticRenderer,reducedMotion,source]);useEffect(()=>{return()=>{if(intervalRef.current!==null&&typeof window!==\"undefined\"){window.clearInterval(intervalRef.current);intervalRef.current=null;}};},[]);const injectedText=clockText??source?.value;const textProp=!source||injectedText===undefined?{}:source.key===\"text\"?{text:injectedText}:{children:injectedText};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,...textProp});});}\nexport const __FramerMetadata__ = {\"exports\":{\"ClockTick\":{\"type\":\"reactHoc\",\"name\":\"ClockTick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SectionLabelTypeIn\":{\"type\":\"reactHoc\",\"name\":\"SectionLabelTypeIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StampLandOnce\":{\"type\":\"reactHoc\",\"name\":\"StampLandOnce\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MissingHourMotionOverrides.map"],"mappings":"A,6QAA4a,SAASqB,EAAc,EAAM,CAAyJ,OAArJ,OAAOC,EAAM,MAAO,SAAgB,CAAC,IAAI,OAAO,MAAMA,EAAM,IAAI,EAAM,OAAOA,EAAM,UAAW,SAAgB,CAAC,IAAI,WAAW,MAAMA,EAAM,QAAQ,EAAU,IAAK,CAAC,SAAgBC,EAAmB,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,IAAMC,EAAcP,EAAiB,EAAQQ,EAAiBL,EAAoB,EAAQM,EAAS1B,EAAO,IAAI,EAAQ2B,EAAc3B,EAAO,CAAC,EAAO,CAAC4B,EAAYC,GAAgB5B,EAAS,IAAI,EAAO,CAAC6B,EAAWC,GAAe9B,EAAS,EAAK,EAAQ+B,EAAO9B,MAAYmB,EAAcC,CAAK,EAAE,CAACA,CAAK,CAAC,E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