{"version":3,"file":"GoBack.fZYVfhgA.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","c","init_jsx_runtime","withHistoryBack","handleGoBack","Component","props","init_GoBack"],"sources":["https:/framerusercontent.com/modules/Q2IVDN5KKhQmPR8ReaWE/F5EdzxbB8JslAe4WWchE/GoBack.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * @param Component\n * @returns\n */export function withHistoryBack(Component){return props=>{const handleGoBack=()=>{if(window.history.length>1){window.history.back();}else{console.log(\"No previous page in history\");}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleGoBack});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHistoryBack\":{\"type\":\"reactHoc\",\"name\":\"withHistoryBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoBack.map"],"mappings":"A,kHAGG,SAAgBK,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMC,MAAiB,CAAIJ,EAAO,QAAQ,OAAO,EAAGA,EAAO,QAAQ,KAAK,EAAQ,QAAQ,IAAI,6BAA6B,CAAG,EAAE,MAAoB,gBAAKK,EAAU,CAAC,GAAGC,EAAM,QAAQF,CAAY,CAAC,CAAE,CAAE,C"}