{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/2deLso85XU1YsZsAzMxM/uE6KdcAHTd6CBYBc6DPh/Redirect.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerDisableUnlink\n * @framerSupportedLayoutHeight any\n */ export default function Redirect(props){// Function to check if running inside Framer\nconst isInsideFramerBuilder=()=>{// Checking for Framer-specific global objects\nreturn typeof window[\"Framer\"]!==\"undefined\";};// Automatically redirect if isActive is true, URL is provided, and not running inside Framer builder\nReact.useEffect(()=>{if(props.isActive&&props.url&&!isInsideFramerBuilder()){const timer=setTimeout(()=>{if(props.newTab){window.open(props.url,\"_blank\");}else{window.location.href=props.url;}},props.seconds*1e3);return()=>clearTimeout(timer);}},[props.seconds,props.url,props.isActive,props.newTab]);return /*#__PURE__*/ _jsx(\"div\",{style:{...containerStyle,width:props.width,height:props.height}});};// Define property controls\naddPropertyControls(Redirect,{isActive:{type:ControlType.Boolean,title:\"Active\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Toggle to activate or deactivate the redirect.\"},seconds:{type:ControlType.Number,title:\"Seconds\",defaultValue:5,min:0,max:60,step:1,description:\"Time in seconds before redirecting.\"},url:{type:ControlType.String,title:\"URL\",description:\"The URL to redirect to.\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Toggle to open the URL in a new tab.\"}});// Styles are written in object syntax\nconst containerStyle={opacity:0};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Redirect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerSupportedLayoutHeight any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Redirect.map"],
  "mappings": "uGAImB,SAARA,EAA0BC,EAAM,CAC3C,IAAMC,EAAsB,IACrB,OAAOC,EAAO,OAAY,IACjC,OAAMC,EAAU,IAAI,CAAC,GAAGH,EAAM,UAAUA,EAAM,KAAK,CAACC,EAAsB,EAAE,CAAC,IAAMG,EAAM,WAAW,IAAI,CAAIJ,EAAM,OAAQE,EAAO,KAAKF,EAAM,IAAI,QAAQ,EAAQE,EAAO,SAAS,KAAKF,EAAM,GAAK,EAAEA,EAAM,QAAQ,GAAG,EAAE,MAAM,IAAI,aAAaI,CAAK,EAAG,EAAE,CAACJ,EAAM,QAAQA,EAAM,IAAIA,EAAM,SAASA,EAAM,MAAM,CAAC,EAAuBK,EAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAe,MAAMN,EAAM,MAAM,OAAOA,EAAM,MAAM,CAAC,CAAC,CAAE,CAChZO,EAAoBR,EAAS,CAAC,SAAS,CAAC,KAAKS,EAAY,QAAQ,MAAM,SAAS,aAAa,GAAM,aAAa,KAAK,cAAc,MAAM,YAAY,gDAAgD,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,MAAM,UAAU,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,YAAY,qCAAqC,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,MAAM,YAAY,yBAAyB,EAAE,OAAO,CAAC,KAAKA,EAAY,QAAQ,MAAM,UAAU,aAAa,GAAM,aAAa,KAAK,cAAc,MAAM,YAAY,sCAAsC,CAAC,CAAC,EAC5jB,IAAMF,EAAe,CAAC,QAAQ,CAAC",
  "names": ["Redirect", "props", "isInsideFramerBuilder", "window", "ue", "timer", "p", "containerStyle", "addPropertyControls", "ControlType"]
}
