{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/H64w5wIHr7AHseLFeBQi/LI1PtiUfHkFNj46Mg4Oq/PreviousPage.js"],
  "sourcesContent": ["// A custom Framer code override by Chris Kellett - Framerverse\n// Get more components at www.framerverse.com\n// Previous Page Override with Homepage Fallback\n// Version 1.1\nimport{jsx as _jsx}from\"react/jsx-runtime\";/**\n * This override adds a click handler to go back in browser history\n * If no history exists, redirects to homepage\n * @param Component - The component to apply the override to\n * @returns A component with the history back functionality\n */export function withHistoryBack(Component){// This part runs once when creating the override\nreturn props=>{// This function handles the actual navigation\nconst handleGoBack=()=>{// Check if we can go back in history\nif(window.history.length>1){window.history.back();}else{// If no history exists, redirect to homepage\nwindow.location.href=\"/\"// Redirects to the root/homepage\n;}};// Return the component with our click handler\nreturn /*#__PURE__*/_jsx(Component,{...props,onClick:handleGoBack});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHistoryBack\":{\"type\":\"reactHoc\",\"name\":\"withHistoryBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PreviousPage.map"],
  "mappings": "kFASU,SAASA,EAAgBC,EAAU,CAC7C,OAAOC,GAKaC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAJ1B,IAAI,CACpBE,EAAO,QAAQ,OAAO,EAAGA,EAAO,QAAQ,KAAK,EAChDA,EAAO,SAAS,KAAK,GACnB,CAC+D,CAAC,CAAI",
  "names": ["withHistoryBack", "Component", "props", "p", "window"]
}
