{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/i8hmgkT34SRg8A1tGefa/RIWfvxc0hJsk4H0w4cK0/ScrollToTopButton.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"],
  "mappings": "yFAAoE,SAASA,EAAqB,CAAC,QAAAC,EAAQ,OAAAC,CAAM,EAAE,CAAC,GAAK,CAACC,EAAUC,CAAU,EAAEC,EAAM,SAAS,EAAI,EAAE,OAAAA,EAAM,UAAU,IAAID,EAAW,EAAK,EAAE,CAAC,CAAC,EAASD,EAAUF,EAAQC,CAAO,CAAC,SAASI,GAAa,CAACC,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,QAAQ,CAAC,CAAE,CAAC,SAASC,EAAWC,EAAU,CAAC,OAAOC,GAA6BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAAQJ,CAAW,CAAC,CAAI,CAAQ,SAASM,EAAkBH,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMG,EAAoBL,EAAWC,CAAS,EAAE,OAAqBE,EAAKX,EAAqB,CAAC,QAAsBW,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAE,OAAqBC,EAAKE,EAAoB,CAAC,GAAGH,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE",
  "names": ["OptimizationFriendly", "loading", "loaded", "isLoading", "setLoading", "e", "scrollToTop", "window", "withLoaded", "Component", "props", "p", "ScrollToTopButton", "ComponentWithLoaded"]
}
