{"version":3,"file":"WithCSS.FAAGYmB1.mjs","names":["React","Component","useRef","_Fragment","Component"],"sources":["https:/framerusercontent.com/modules/f8wBTZ8mxclvbvykScIB/6DAlfznMzfm4bNXZ4cAd/ScrollToTopButton.js","https:/framerusercontent.com/modules/41u3AHE65BgliwAHv4it/xlWoziM6JkOUhps7TMOB/jKmMvbcnB.js","https:/framerusercontent.com/modules/zKUXvGxqmCPPnIdtzorA/d4CNpo5y2yqvRth2ZCh0/WithCSS.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import React from\"react\";function OptimizationFriendly({loading,loaded}){const[isLoading,setLoading]=React.useState(true);React.useEffect(()=>setLoading(false),[]);return isLoading?loading:loaded;}function scrollToTop(){window.scrollTo({top:0,behavior:\"smooth\"});}function withLoaded(Component){return props=>{return /*#__PURE__*/ _jsx(Component,{...props,onClick:scrollToTop});};}export function ScrollToTopButton(Component){return props=>{const ComponentWithLoaded=withLoaded(Component);return /*#__PURE__*/ _jsx(OptimizationFriendly,{loading:/*#__PURE__*/ _jsx(Component,{...props}),loaded:/*#__PURE__*/ _jsx(ComponentWithLoaded,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"ScrollToTopButton\":{\"type\":\"reactHoc\",\"name\":\"ScrollToTopButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollToTopButton.map","// Generated by Framer (5b26096)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCodeBoundaryForOverrides,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{ScrollToTopButton}from\"https://framerusercontent.com/modules/f8wBTZ8mxclvbvykScIB/6DAlfznMzfm4bNXZ4cAd/ScrollToTopButton.js\";import SVG from\"https://framerusercontent.com/modules/I1DC9cTt2FcHsDUAaRxW/6iIIX4SzvuX6GX8XtSv5/SVG_Prod.js\";const SVGFonts=getFonts(SVG);const MotionDivScrollToTopButtonfni2o5=withCodeBoundaryForOverrides(motion.div,{nodeId:\"BMbVNtuLC\",override:ScrollToTopButton,scopeId:\"jKmMvbcnB\"});const cycleOrder=[\"BMbVNtuLC\",\"WV50XrTw5\"];const serializationHash=\"framer-uwFdK\";const variantClassNames={BMbVNtuLC:\"framer-v-fni2o5\",WV50XrTw5:\"framer-v-1wyk755\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};const transformTemplate1=(_,t)=>`translate(-50%, -50%) ${t}`;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 humanReadableVariantMap={Hidden:\"WV50XrTw5\",Show:\"BMbVNtuLC\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"BMbVNtuLC\"};};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,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"BMbVNtuLC\",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(MotionDivScrollToTopButtonfni2o5,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-fni2o5\",className,classNames),\"data-framer-name\":\"Show\",layoutDependency:layoutDependency,layoutId:\"BMbVNtuLC\",ref:refBinding,style:{borderBottomLeftRadius:1e3,borderBottomRightRadius:1e3,borderTopLeftRadius:1e3,borderTopRightRadius:1e3,...style},...addPropertyOverrides({WV50XrTw5:{\"data-framer-name\":\"Hidden\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1u424rp\",\"data-framer-name\":\"Button\",layoutDependency:layoutDependency,layoutId:\"z3ljYNAiP\",style:{backgroundColor:\"var(--token-55d73c21-ccc9-41bd-839e-99695cecf70c, rgb(255, 255, 255))\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100},transformTemplate:transformTemplate1,children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-zfiojp-container\",\"data-framer-name\":\"Arrow\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"E2orhB61y-container\",name:\"Arrow\",nodeId:\"E2orhB61y\",rendersWithMotion:true,scopeId:\"jKmMvbcnB\",style:{rotate:-90},children:/*#__PURE__*/_jsx(SVG,{customColor:\"var(--token-01d691df-aaf7-4dcd-bbac-1967c1eb478b, rgb(255, 226, 29))\",customPadding:4,customStrokeWidth:16,customSvgCode:'<svg width=\"159\" height=\"164\" viewBox=\"0 0 159 164\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M71.2186 157.106L146.281 82.0439L71.2186 6.98145\" stroke=\"black\" stroke-width=\"18\"/> <path d=\"M135.154 82.0766L0.922886 82.0766\" stroke=\"black\" stroke-width=\"18\"/> </svg>',description:\"\",height:\"100%\",id:\"E2orhB61y\",layoutId:\"E2orhB61y\",lineCap:\"butt\",lineJoin:\"miter\",name:\"Arrow\",style:{height:\"100%\",width:\"100%\"},title:\"\",width:\"100%\"})})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-uwFdK.framer-1yjwojv, .framer-uwFdK .framer-1yjwojv { display: block; }\",\".framer-uwFdK.framer-fni2o5 { height: 60px; overflow: hidden; position: relative; width: 60px; will-change: var(--framer-will-change-override, transform); }\",\".framer-uwFdK .framer-1u424rp { align-content: center; align-items: center; aspect-ratio: 1 / 1; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: var(--framer-aspect-ratio-supported, 60px); justify-content: center; left: 50%; overflow: visible; padding: 0px; position: absolute; top: 50%; width: 60px; }\",\".framer-uwFdK .framer-zfiojp-container { aspect-ratio: 16 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 39px); position: relative; width: 38px; z-index: 1; }\",\".framer-uwFdK.framer-v-1wyk755 .framer-1u424rp { top: 158%; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 60\n * @framerIntrinsicWidth 60\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"WV50XrTw5\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerjKmMvbcnB=withCSS(Component,css,\"framer-uwFdK\");export default FramerjKmMvbcnB;FramerjKmMvbcnB.displayName=\"Scroll-to-Top Button\";FramerjKmMvbcnB.defaultProps={height:60,width:60};addPropertyControls(FramerjKmMvbcnB,{variant:{options:[\"BMbVNtuLC\",\"WV50XrTw5\"],optionTitles:[\"Show\",\"Hidden\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerjKmMvbcnB,[{explicitInter:true,fonts:[]},...SVGFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerjKmMvbcnB\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"60\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"60\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"WV50XrTw5\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./jKmMvbcnB.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";export function withoutFramerBadge(Component){return props=>{return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                        #__framer-badge-container { display: none !important; }\n                    `}),/*#__PURE__*/_jsx(Component,{...props})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withoutFramerBadge\":{\"type\":\"reactHoc\",\"name\":\"withoutFramerBadge\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithCSS.map"],"mappings":"yvBAAoE,SAAS,EAAqB,CAAC,UAAQ,SAAO,CAAC,CAAC,GAAK,CAAC,EAAU,EAAW,CAACA,EAAM,SAAS,IAAgD,OAA1C,EAAM,cAAc,EAA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