{"version":3,"file":"HistoryBack.LJ5RxeVc.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","c","init_jsx_runtime","withHistoryBack","Component","props","event","init_HistoryBack"],"sources":["https:/framerusercontent.com/modules/slN3j5pI5Iq4hVTOHr1r/1FMgkcmn7XHRUfp0PQz0/HistoryBack.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// \"Back\" link: goes back in history, or home when the page was opened directly.\nexport function withHistoryBack(Component){return function HistoryBack(props){return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:\"pointer\"},onClick:event=>{props.onClick?.(event);if(typeof window===\"undefined\")return;if(window.history.length>1)window.history.back();else window.location.href=\"/\";}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHistoryBack\":{\"type\":\"reactHoc\",\"name\":\"withHistoryBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HistoryBack.map"],"mappings":"A,kHACA,SAAgBK,EAAgB,EAAU,CAAC,OAAO,SAAqB,EAAM,CAAC,MAAoB,gBAAKC,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,OAAO,SAAS,EAAE,QAAQ,GAAO,CAACA,EAAM,UAAUC,CAAK,EAAYN,IAAS,SAAsBA,EAAO,QAAQ,OAAO,EAAEA,EAAO,QAAQ,KAAK,EAAO,EAAO,SAAS,KAAK,IAAI,CAAC,CAAC,CAAE,CAAE,C"}