{"version":3,"file":"BackButton.CoKSpMjq.mjs","names":[],"sources":["https:/framerusercontent.com/modules/MnPdYWUxI7MqyX6Gb5yn/0z5U943i4BG5UpmO8bJx/BackButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withBackNavigation(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,// This forces the browser to show the hand/pointer icon on hover\nstyle:{...props.style,cursor:\"pointer\"},onClick:e=>{e.preventDefault();if(typeof window!==\"undefined\"){const hasInternalHistory=document.referrer&&document.referrer.includes(window.location.host);if(hasInternalHistory){window.history.back();}else{window.location.pathname=\"/policies\";}}}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBackNavigation\":{\"type\":\"reactHoc\",\"name\":\"withBackNavigation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"kHAA2C,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAC/I,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,SAAS,EAAE,QAAQ,GAAG,CAAC,EAAE,eAAe,EAAY,IAAS,SAAsC,SAAS,UAAU,SAAS,SAAS,SAAS,EAAO,SAAS,IAAI,EAAyB,EAAO,QAAQ,KAAK,EAAQ,EAAO,SAAS,SAAS,YAAc,CAAC,CAAC,CAAI,qBAD1P"}