{"version":3,"file":"BackButton.CSHp9bYp.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/sxukYZuvMsw4meVTOHCB/9EhNH8rebOpFhEaqo4vX/BackButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const fallbackRoute=\"\"// Goes to homepage if couldn't go back\n;export const GoBack=()=>{return{onTap(){// Check if the history length is greater than 1\nif(window.history.length>1){window.history.back();}else{// Navigate to the UI kit page if there's no history to go back to\nwindow.location.href=`${window.location.origin}/${fallbackRoute}`;}}};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withGoBack(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GoBack(props)});};}withGoBack.displayName=\"GoBack\";\nexport const __FramerMetadata__ = {\"exports\":{\"withGoBack\":{\"type\":\"reactHoc\",\"name\":\"withGoBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GoBack\":{\"type\":\"override\",\"name\":\"GoBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"kLAG2N,SAAgB,EAAW,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAO,EAAM,CAAC,CAAC,2BAH/U,IAG6F,IAAmF,CAH1K,EAAc,GACjD,OAAkB,CAAC,OAAO,CACrC,EAAO,QAAQ,OAAO,EAAG,EAAO,QAAQ,MAAM,CACjD,EAAO,SAAS,KAAK,GAAG,EAAO,SAAS,OAAO,GAAG,KAAmB,EAAyT,EAAW,YAAY"}