{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/xgvoQgl39LERBj2qvZdv/6wykcOjQcPAJrbDDPtGq/Back_page.js"],
  "sourcesContent": ["// \u4E3B\u8981\u7528\u5728\u8FD4\u56DE\u6309\u94AE\uFF0C\u5B9E\u73B0\u7F51\u9875\u4ECE\u54EA\u6765\uFF0C\u56DE\u54EA\u53BB\n//\u6559\u7A0B\uFF1Ahttps://www.framerverse.com/resources/browser-history-back-button-overide#how-to\n// A custom Framer code override by Chris Kellett - Framerverse\n// Get more components at www.framerverse.com\n// Previous Page Overide\n// Version 1.0\nimport{jsx as _jsx}from\"react/jsx-runtime\";/**\n * This override adds a click handler to go back in browser history\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, log a message\nconsole.log(\"No previous page in history\");}};// 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=./Back_page.map"],
  "mappings": "kFAUU,SAASA,EAAgBC,EAAU,CAC7C,OAAOC,GAIaC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAH1B,IAAI,CACpBE,EAAO,QAAQ,OAAO,EAAGA,EAAO,QAAQ,KAAK,EAChD,QAAQ,IAAI,6BAA6B,CAAG,CACqB,CAAC,CAAI",
  "names": ["withHistoryBack", "Component", "props", "p", "window"]
}
