{"version":3,"file":"withBackToTopVisibility.CV1NQJAI.mjs","names":["ButtonIconCustomAtom","React.useContext","React.useMemo","_jsx","React.Fragment","React.forwardRef","useRef","React.useId","ArrowUp","forwardRef","useState","useRef","useCallback","useEffect","_jsx","__exportAll","x","pe","init_npm_react_18_3_1","window","_e","de","oe","ne","J","c","ie","ce","init_ssg_sandbox_shims","getFonts","forwardLoader","useVariantState","cx","withCSS","init_framer_B3LLf74D","ComponentViewportProvider","useComponentViewport","addFonts","SmartComponentScopedContainer","runTasksWithYield","LazyValue","useLocaleInfo","useIsStaticRenderer","motion","LayoutGroup","MotionConfigContext","init_framer_motion_1EwlFBEG","FramerPSV_lTuvy","init_PSV_lTuvy","init_AXGoil19a","Icon","getLocalizedValue","key","locale","values","valuesByLocaleId","value","preload","promises","promise","usePreloadLocalizedValues","preloadPromise","init_nB84ju2wA","__esmMin","nB84ju2wA_exports","__FramerMetadata__","FramernB84ju2wA","ButtonIconCustomAtomFonts","serializationHash","variantClassNames","transition1","animation","Transition","Variants","getProps","createLayoutDependency","init_nB84ju2wA$1","init_jsx_runtime","children","config","transition","contextValue","height","id","width","props","variants","ref","fallbackRef","refBinding","defaultLayoutId","activeLocale","contentLocale","setLocale","componentViewport","style","className","layoutId","variant","restProps","baseVariant","classNames","clearLoadingGesture","gestureHandlers","gestureVariant","isLoading","setGestureState","setVariant","layoutDependency","scopingClassNames","context","\"exports\"","\"Props\"","\"type\"","\"annotations\"","\"framerContractVersion\"","\"default\"","\"name\"","\"slots\"","\"framerComponentViewportWidth\"","\"framerCanvasComponentVariantDetails\"","\"framerDisplayContentsDiv\"","\"framerImmutableVariables\"","\"framerAutoSizeImages\"","\"framerIntrinsicHeight\"","\"framerColorSyntax\"","\"framerResolvesOwnDefaults\"","\"framerIntrinsicWidth\"","\"__FramerMetadata__\"","findContent","CONTENT_IDS","element","isInsideContent","SHOW_AFTER_SCROLL","content","rect","main","MAIN_ID","withBackToTopVisibility","Component","isStatic","inside","setInside","reducedMotion","setReducedMotion","rootRef","setRoot","node","query","syncMotion","frame","update","schedule","shown","host","root","scrollToTop","event","FADE_MS","init_withBackToTopVisibility"],"sources":["https:/framerusercontent.com/modules/0D97dgI7kUQE63yjSKSy/oMMeA6H5ioFPj5MVPqoL/nB84ju2wA.js","https:/framerusercontent.com/modules/qH6YbmbrJ1ziZ7VHBv5b/umMNbXZwEqAJLneasx6g/nB84ju2wA.js","https:/framerusercontent.com/modules/6VjlHgp2gIvrQHOMFwBU/q4MM3ymW6TalGk6mvgAK/withBackToTopVisibility.js"],"sourcesContent":["// Generated by Framer (7a6b81b)\nimport{LazyValue}from\"framer\";const valuesByLocaleId={bSopCqJGP:new LazyValue(()=>import(\"./nB84ju2wA-0.js\")),EfgYgbZLb:new LazyValue(()=>import(\"./nB84ju2wA-10.js\")),fihKBqv5P:new LazyValue(()=>import(\"./nB84ju2wA-8.js\")),jO9_w7v6B:new LazyValue(()=>import(\"./nB84ju2wA-2.js\")),l6rHbscXf:new LazyValue(()=>import(\"./nB84ju2wA-9.js\")),mVUcGhPFq:new LazyValue(()=>import(\"./nB84ju2wA-3.js\")),nTDoPyvTg:new LazyValue(()=>import(\"./nB84ju2wA-5.js\")),UDOwqE0sA:new LazyValue(()=>import(\"./nB84ju2wA-1.js\")),wP1SJY5O_:new LazyValue(()=>import(\"./nB84ju2wA-6.js\")),YoA_hgiPk:new LazyValue(()=>import(\"./nB84ju2wA-7.js\")),ZAARDKer0:new LazyValue(()=>import(\"./nB84ju2wA-11.js\")),zX4287OCE:new LazyValue(()=>import(\"./nB84ju2wA-4.js\"))};export default function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values&&values.status===\"fulfilled\"){const value=values.read()[key];if(value)return value;}locale=locale.fallback;}}function preload(locale){const promises=[];while(locale){const values=valuesByLocaleId[locale.id];if(values){const promise=values.preload();if(promise)promises.push(promise);}locale=locale.fallback;}if(promises.length>0)return Promise.all(promises);}export function usePreloadLocalizedValues(locale){const preloadPromise=preload(locale);if(preloadPromise)throw preloadPromise;}\nexport const __FramerMetadata__ = {\"exports\":{\"usePreloadLocalizedValues\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (7a6b81b)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,ComponentViewportProvider,cx,forwardLoader,getFonts,runTasksWithYield,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import getLocalizedValue,{usePreloadLocalizedValues}from\"https://framerusercontent.com/modules/0D97dgI7kUQE63yjSKSy/oMMeA6H5ioFPj5MVPqoL/nB84ju2wA.js\";import ArrowUp from\"https://framerusercontent.com/modules/wJYdj9a1Nz4FGtUTkO9h/bmyfWSuquKF6HLtnebsN/AXGoil19a.js\";import ButtonIconCustomAtom from\"https://framerusercontent.com/modules/OVRvJLrU3kVR2ZT65adE/JNi5U6VM1xFjqtkw40zd/PSV_lTuvy.js\";const ButtonIconCustomAtomFonts=getFonts(ButtonIconCustomAtom);const serializationHash=\"framer-wvYZY\";const variantClassNames={TDL7I6TtT:\"framer-v-c8xajn\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const transition2={delay:0,duration:.15,ease:[.2,0,0,1],type:\"tween\"};const animation={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:.97,skewX:0,skewY:0,transition:transition2};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,contentLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"TDL7I6TtT\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);usePreloadLocalizedValues(activeLocale);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-c8xajn\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"TDL7I6TtT\",ref:refBinding,style:{...style},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{height:48,y:(componentViewport?.y||0)+((componentViewport?.height||200)-48)/2,children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1qnr27o-container\",\"data-framer-name\":\"Back to top\",layoutDependency:layoutDependency,layoutId:\"hXQW73WJP-container\",name:\"Back to top\",nodeId:\"hXQW73WJP\",rendersWithMotion:true,scopeId:\"nB84ju2wA\",whileTap:animation,children:/*#__PURE__*/_jsx(ButtonIconCustomAtom,{a4eyQKzI2:ArrowUp,height:\"100%\",id:\"hXQW73WJP\",ilEb4omQX:\"#main-content\",layoutId:\"hXQW73WJP\",name:\"Back to top\",UF0MUfS_6:false,w4hmXpvZN:getLocalizedValue(\"v0\",contentLocale)??\"Back to top\",width:\"100%\"})})})})})})});});const css=[\".framer-wvYZY.framer-cdizjj, .framer-wvYZY .framer-cdizjj { display: block; }\",\".framer-wvYZY.framer-c8xajn { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-wvYZY .framer-1qnr27o-container { flex: none; height: auto; position: relative; width: auto; will-change: var(--framer-will-change-effect-override, transform); }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 200\n * @framerIntrinsicWidth 200\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerResolvesOwnDefaults true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramernB84ju2wA=withCSS(Component,css,\"framer-wvYZY\");export default FramernB84ju2wA;FramernB84ju2wA.displayName=\"Back to Top Button - Atom\";FramernB84ju2wA.defaultProps={height:200,width:200};addFonts(FramernB84ju2wA,[{explicitInter:true,fonts:[]},...ButtonIconCustomAtomFonts],{supportsExplicitInterCodegen:true});FramernB84ju2wA.loader={load:(props,context)=>{return runTasksWithYield([()=>forwardLoader(ButtonIconCustomAtom,{},context)],context);}};\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramernB84ju2wA\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"200\",\"framerColorSyntax\":\"true\",\"framerResolvesOwnDefaults\":\"true\",\"framerIntrinsicWidth\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";/**\n * Back-to-top button visibility for documents and blog posts. Apply it to the fixed button instance.\n * Hidden at the top of the page and below the content section, visible while the reader is inside it.\n * The content section is the instance with anchor id \"page-content\" (documents keep their older \"content\" id).\n * Without that anchor it falls back to the main content element, then to scroll depth alone.\n * Starts hidden so server-rendered and hydrated output match. The canvas always shows the button.\n * A click scrolls to the top of the page. The atom links to \"#main-content\", which resolves to the home page\n * from a blog post or document, so the link navigation is cancelled.\n * The override styles the component root, so the fixed wrapper around it is switched off separately\n * while hidden. Otherwise that empty box would still catch clicks.\n */const SHOW_AFTER_SCROLL=200;const FADE_MS=200;const CONTENT_IDS=[\"page-content\",\"content\"];const MAIN_ID=\"main-content\";function findContent(){for(const id of CONTENT_IDS){const element=document.getElementById(id);if(element&&element.getClientRects().length>0)return element;}return null;}function isInsideContent(){const scrollY=window.scrollY||document.documentElement.scrollTop||0;if(scrollY<=SHOW_AFTER_SCROLL)return false;const content=findContent();if(content){const rect=content.getBoundingClientRect();return rect.top<window.innerHeight/2&&rect.bottom>0;}const main=document.getElementById(MAIN_ID);return main?main.getBoundingClientRect().bottom>0:true;}export function withBackToTopVisibility(Component){return /*#__PURE__*/forwardRef(function WithBackToTopVisibility(props,ref){const isStatic=useIsStaticRenderer();const[inside,setInside]=useState(false);const[reducedMotion,setReducedMotion]=useState(false);const rootRef=useRef(null);const setRoot=useCallback(node=>{rootRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;},[ref]);useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const query=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const syncMotion=()=>setReducedMotion(query.matches);syncMotion();let frame=0;const update=()=>{frame=0;setInside(isInsideContent());};const schedule=()=>{if(!frame)frame=window.requestAnimationFrame(update);};update();window.addEventListener(\"scroll\",schedule,{passive:true});window.addEventListener(\"resize\",schedule);window.addEventListener(\"pageshow\",schedule);query.addEventListener(\"change\",syncMotion);return()=>{if(frame)window.cancelAnimationFrame(frame);window.removeEventListener(\"scroll\",schedule);window.removeEventListener(\"resize\",schedule);window.removeEventListener(\"pageshow\",schedule);query.removeEventListener(\"change\",syncMotion);};},[isStatic]);const shown=isStatic||inside;useEffect(()=>{const host=rootRef.current?.parentElement;if(isStatic||!host)return;host.style.pointerEvents=shown?\"\":\"none\";return()=>{host.style.pointerEvents=\"\";};},[shown,isStatic]);useEffect(()=>{const root=rootRef.current;if(isStatic||!root)return;const scrollToTop=event=>{const plainClick=event.button===0&&!(event.metaKey||event.ctrlKey||event.shiftKey||event.altKey);if(!plainClick||!event.target.closest(\"a\"))return;event.preventDefault();event.stopPropagation();window.scrollTo({top:0,behavior:reducedMotion?\"auto\":\"smooth\"});};root.addEventListener(\"click\",scrollToTop,true);return()=>root.removeEventListener(\"click\",scrollToTop,true);},[isStatic,reducedMotion]);const transition=reducedMotion?\"none\":`opacity ${FADE_MS}ms ease, visibility 0s linear ${shown?0:FADE_MS}ms`;return /*#__PURE__*/_jsx(Component,{ref:setRoot,...props,\"aria-hidden\":shown?undefined:true,style:{...props.style,opacity:shown?1:0,visibility:shown?\"visible\":\"hidden\",pointerEvents:shown?\"auto\":\"none\",transition}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withBackToTopVisibility\":{\"type\":\"reactHoc\",\"name\":\"withBackToTopVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./withBackToTopVisibility.map"],"mappings":"A,mfACytB,SAAwBmD,GAAkBC,EAAIC,EAAO,CAAC,KAAMA,GAAO,CAAC,IAAMC,EAAOC,EAAiBF,EAAO,IA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