{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/wcHpgIhIMvxWVY132xNn/UbKJnZcUk7TQHLnjR9Ed/ForwardTraffic_Prod.js"],
  "sourcesContent": ["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n */function ForwardTraffic(props){const{redirectUrl,openInNewTab}=props;const[hasRedirected,setHasRedirected]=React.useState(false);React.useEffect(()=>{// Check if we're in the Framer environment\nconst isInFramerEnvironment=()=>{return typeof window!==\"undefined\"&&(window[\"Framer\"]!==undefined||window[\"__framer__\"]!==undefined);};// Only redirect if we're not in the Framer environment and haven't redirected yet\nif(!isInFramerEnvironment()&&!hasRedirected){let finalUrl=redirectUrl;if(!finalUrl.startsWith(\"https://\")&&!finalUrl.startsWith(\"http://\")){finalUrl=\"https://\"+finalUrl;}setHasRedirected(true);if(openInNewTab){window.open(finalUrl,\"_blank\");}else{window.location.href=finalUrl;}}},[redirectUrl,openInNewTab,hasRedirected]);// Render nothing\nreturn /*#__PURE__*/_jsx(_Fragment,{});}ForwardTraffic.displayName=\"Forward Traffic\";addPropertyControls(ForwardTraffic,{redirectUrl:{title:\"URL\",type:ControlType.String,defaultValue:\"framer.university\",description:\"Enter the URL to redirect to when the page is visited.\"},openInNewTab:{title:\"New Tab\",type:ControlType.Boolean,defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});export default ForwardTraffic;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ForwardTraffic\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ForwardTraffic_Prod.map"],
  "mappings": "qHAEG,SAASA,EAAeC,EAAM,CAAC,GAAK,CAAC,YAAAC,EAAY,aAAAC,CAAY,EAAEF,EAAW,CAACG,EAAcC,CAAgB,EAAQC,EAAS,EAAK,EAAE,OAAMC,EAAU,IAAI,CAExJ,GAAG,EADqC,OAAOC,EAAS,MAAcA,EAAO,SAAY,QAAWA,EAAO,aAAgB,UAC9F,CAACJ,EAAc,CAAC,IAAIK,EAASP,EAAe,CAACO,EAAS,WAAW,UAAU,GAAG,CAACA,EAAS,WAAW,SAAS,IAAGA,EAAS,WAAWA,GAAUJ,EAAiB,EAAI,EAAKF,EAAcK,EAAO,KAAKC,EAAS,QAAQ,EAAQD,EAAO,SAAS,KAAKC,CAAU,CAAC,EAAE,CAACP,EAAYC,EAAaC,CAAa,CAAC,EAC7SM,EAAKC,EAAU,CAAC,CAAC,CAAE,CAACX,EAAe,YAAY,kBAAkBY,EAAoBZ,EAAe,CAAC,YAAY,CAAC,MAAM,MAAM,KAAKa,EAAY,OAAO,aAAa,oBAAoB,YAAY,wDAAwD,EAAE,aAAa,CAAC,MAAM,UAAU,KAAKA,EAAY,QAAQ,aAAa,GAAM,aAAa,MAAM,cAAc,KAAK,YAAY,oEAAoE,CAAC,CAAC,EAAE,IAAOC,EAAQd",
  "names": ["ForwardTraffic", "props", "redirectUrl", "openInNewTab", "hasRedirected", "setHasRedirected", "ye", "ue", "window", "finalUrl", "p", "l", "addPropertyControls", "ControlType", "ForwardTraffic_Prod_default"]
}
