{"version":3,"file":"ScrollToTop.BBILRBPr.mjs","names":["getProps","North","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/ZLDbIQhTwdUqskMfLYMl/JmsNnL6qarKvitMeicZd/JUV9b1OiD.js","https:/framerusercontent.com/modules/hRt1UKJSle7hIijK6QcF/DbyLXeDIyrpjDNt7mZBx/jOMuJIXWI.js","https:/framerusercontent.com/modules/86Qh91e2PrLcjXUGQq1r/SN4CyvMqr6yI3nAKozvY/ScrollToTop.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,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 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 7 L 1.41 8.41 L 6 3.83 L 6 20 L 8 20 L 8 3.83 L 12.59 8.42 L 14 7 L 7 0 Z\" fill=\"var(--esondr, rgb(0,0,0))\" height=\"20px\" id=\"PABPwQhyw\" transform=\"translate(5 2)\" width=\"14px\"/></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=({fill,height,id,width,...props})=>{return{...props,K5AAorpEW:fill??props.K5AAorpEW??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,K5AAorpEW,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-HONEI\",className),layoutId:layoutId,ref:ref,style:{\"--esondr\":K5AAorpEW,...style}});});const css=[`.framer-HONEI { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--esondr); 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 {\"K5AAorpEW\":\"fill\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"North\",\"color\":{\"type\":\"variable\",\"value\":\"esondr\"},\"set\":{\"localId\":\"vectorSet/DnLsXE00W\",\"id\":\"DnLsXE00W\",\"moduleId\":\"JIScivAkNLgXrcOUxHXD\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-HONEI\");Icon.displayName=\"North\";export default Icon;addPropertyControls(Icon,{K5AAorpEW:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Fill\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"K5AAorpEW\\\":\\\"fill\\\"}\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"North\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"esondr\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/DnLsXE00W\\\",\\\"id\\\":\\\"DnLsXE00W\\\",\\\"moduleId\\\":\\\"JIScivAkNLgXrcOUxHXD\\\"}}\",\"framerIntrinsicWidth\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (ba156f5)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFonts,Link,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import North from\"https://framerusercontent.com/modules/ZLDbIQhTwdUqskMfLYMl/JmsNnL6qarKvitMeicZd/JUV9b1OiD.js\";const NorthFonts=getFonts(North);const serializationHash=\"framer-ZiibJ\";const variantClassNames={blE7cY8dK:\"framer-v-82sv11\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.4,ease:[.44,0,.56,1],type:\"tween\"};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=({header,height,id,smoothScroll,width,...props})=>{return{...props,MplQ0bukv:smoothScroll??props.MplQ0bukv??true,Q8R_4mSQg:header??props.Q8R_4mSQg};};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,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,Q8R_4mSQg,MplQ0bukv,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"blE7cY8dK\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:Q8R_4mSQg,motionChild:true,nodeId:\"blE7cY8dK\",openInNewTab:false,scopeId:\"jOMuJIXWI\",smoothScroll:MplQ0bukv,children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-82sv11\",className,classNames)} framer-1lg0jmj`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"blE7cY8dK\",ref:refBinding,style:{backgroundColor:\"var(--token-25c51094-167e-406a-8278-06b932420bab, rgb(130, 107, 3))\",borderBottomLeftRadius:20,borderBottomRightRadius:20,borderTopLeftRadius:20,borderTopRightRadius:20,...style},children:/*#__PURE__*/_jsx(North,{animated:true,className:\"framer-bva5om\",layoutDependency:layoutDependency,layoutId:\"pLQzkLb14\",style:{\"--esondr\":\"var(--token-c21010f9-5cb6-4d3d-85fc-4227a6481949, rgb(255, 255, 255))\"}})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-ZiibJ.framer-1lg0jmj, .framer-ZiibJ .framer-1lg0jmj { display: block; }\",\".framer-ZiibJ.framer-82sv11 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 5px; height: min-content; justify-content: center; overflow: visible; padding: 10px; position: relative; text-decoration: none; width: min-content; }\",\".framer-ZiibJ .framer-bva5om { flex: none; height: var(--framer-aspect-ratio-supported, 16px); position: relative; width: 16px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 36\n * @framerIntrinsicWidth 36\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"Q8R_4mSQg\":\"header\",\"MplQ0bukv\":\"smoothScroll\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerjOMuJIXWI=withCSS(Component,css,\"framer-ZiibJ\");export default FramerjOMuJIXWI;FramerjOMuJIXWI.displayName=\"Back to Top Button\";FramerjOMuJIXWI.defaultProps={height:36,width:36};addPropertyControls(FramerjOMuJIXWI,{Q8R_4mSQg:{title:\"#header\",type:ControlType.Link},MplQ0bukv:{defaultValue:true,title:\"Smooth Scroll\",type:ControlType.Boolean}});addFonts(FramerjOMuJIXWI,[{explicitInter:true,fonts:[]},...NorthFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerjOMuJIXWI\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"36\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"Q8R_4mSQg\\\":\\\"header\\\",\\\"MplQ0bukv\\\":\\\"smoothScroll\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"36\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./jOMuJIXWI.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function useScrollToTop(){const[visible,setVisible]=useState(false);useEffect(()=>{const handleScroll=()=>{if(window.scrollY>window.innerHeight*1.2){setVisible(true);}else{setVisible(false);}};window.addEventListener(\"scroll\",handleScroll);return()=>window.removeEventListener(\"scroll\",handleScroll);},[]);return{style:{position:\"fixed\",bottom:40,right:40,opacity:visible?1:0,pointerEvents:visible?\"auto\":\"none\",transition:\"opacity 0.3s ease-out\",zIndex:999},onClick:()=>{window.scrollTo({top:0,behavior:\"smooth\"});}};}export function BackToTopButtonOverride(){return{onClick:()=>{window.scrollTo({top:0,behavior:\"smooth\"});}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withuseScrollToTop(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...useScrollToTop(props)});};}withuseScrollToTop.displayName=\"useScrollToTop\";\nexport const __FramerMetadata__ = {\"exports\":{\"BackToTopButtonOverride\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useScrollToTop\":{\"type\":\"override\",\"name\":\"useScrollToTop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withuseScrollToTop\":{\"type\":\"reactHoc\",\"name\":\"withuseScrollToTop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollToTop.map"],"mappings":"6pBAC2C,IAAsE,IAA4B,CAAoC,EAAK,iaAAya,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAO,IAAI,CAAC,GAAG,EAAc,WAAa,MAAI,CAAC,CAAc,EAAK,MAAM,CAAC,GAAG,EAAS,MAAI,CAAC,EAAG,CAAOA,GAAU,CAAC,OAAK,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAM,EAAM,WAAW,eAAe,EAAS,EAAuB,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,GAAG,GAAWA,EAAS,EAAM,CAAC,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,EAAU,CAAU,WAAa,MAAI,MAAM,CAAC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