{"version":3,"file":"Reroute.DHpCLaOL.mjs","names":["Action"],"sources":["https:/framerusercontent.com/modules/MidefrioaionQ4deDGDv/PSqvMjHo46pf1ZVkljll/Reroute.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType,addPropertyControls,useIsOnFramerCanvas}from\"framer\";import{useEffect}from\"react\";import{Action,useCurrentLocation}from\"https://framerusercontent.com/modules/kVCvDLGYYdUi1WZ43Zew/lIazEz7mLx5nb9QlAEc9/FramerDevGemsPrivate.js\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Reroute({path,delay}){const[,setCurrentLocation]=useCurrentLocation();const isOnCanvas=useIsOnFramerCanvas();useEffect(()=>{if(!path||isOnCanvas)return;if(delay){setTimeout(()=>{setCurrentLocation(path);},delay);}else{setCurrentLocation(path);}},[path]);return isOnCanvas&&/*#__PURE__*/_jsx(Action,{title:\"Reroute\"});}addPropertyControls(Reroute,{path:{type:ControlType.Link},delay:{type:ControlType.Number,min:0,max:1e5,unit:\"ms\",displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Reroute\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"wPAMG,SAAwB,EAAQ,CAAC,OAAK,SAAO,CAAC,GAAK,EAAE,GAAoB,GAAoB,CAAO,EAAW,GAAqB,CAAkJ,OAAjJ,MAAc,CAAI,CAAC,GAAM,IAAqB,EAAO,eAAe,CAAC,EAAmB,EAAK,EAAG,EAAM,CAAO,EAAmB,EAAK,GAAI,CAAC,EAAK,CAAC,CAAQ,GAAyB,EAAKA,EAAO,CAAC,MAAM,UAAU,CAAC,kBAN5S,IAAwE,IAA6B,IAA+I,CAM0D,EAAoB,EAAQ,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,IAAI,EAAE,IAAI,IAAI,KAAK,KAAK,eAAe,GAAK,CAAC,CAAC"}