{"version":3,"file":"Refresh.B3iscVOY.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vZhYcHdZifvhrmIOBYr7/zcGfcpIFQZQTHFd0l75F/Refresh.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Code Override: Refresh Page on Click\n *\n * Apply this override to any button or clickable element\n * to refresh the page when clicked.\n *\n * Usage:\n * 1. Select your button on the canvas\n * 2. In the Properties panel, find \"Code Override\"\n * 3. Select this file and choose \"withRefreshPage\"\n */export function withRefreshPage(Component){return props=>{const handleTap=event=>{// Call original onTap handler if it exists\nif(props.onTap){props.onTap(event);}// Refresh the page\nwindow.location.reload();};return /*#__PURE__*/_jsx(Component,{...props,onTap:handleTap});};}/**\n * Alternative: Refresh with confirmation\n * Use this if you want to ask the user before refreshing\n */export function withRefreshPageConfirm(Component){return props=>{const handleTap=event=>{// Call original onTap handler if it exists\nif(props.onTap){props.onTap(event);}// Ask for confirmation before refreshing\nconst confirmRefresh=window.confirm(\"Are you sure you want to refresh the page?\");if(confirmRefresh){window.location.reload();}};return /*#__PURE__*/_jsx(Component,{...props,onTap:handleTap});};}/**\n * Alternative: Hard refresh (clears cache)\n * Use this if you need to clear the browser cache on refresh\n */export function withHardRefreshPage(Component){return props=>{const handleTap=event=>{// Call original onTap handler if it exists\nif(props.onTap){props.onTap(event);}// Hard refresh (bypasses cache)\nwindow.location.reload(true);};return /*#__PURE__*/_jsx(Component,{...props,onTap:handleTap});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRefreshPageConfirm\":{\"type\":\"reactHoc\",\"name\":\"withRefreshPageConfirm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRefreshPage\":{\"type\":\"reactHoc\",\"name\":\"withRefreshPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHardRefreshPage\":{\"type\":\"reactHoc\",\"name\":\"withHardRefreshPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Refresh.map"],"mappings":"kHAUG,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAU,GAAO,CACjF,EAAM,OAAO,EAAM,MAAM,EAAM,CAClC,EAAO,SAAS,QAAQ,EAAG,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,EAAU,CAAC,uBAZ9C"}