{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/e0WyHu56Kv5ab2TBgkX7/vGa9K4b5bIlDP6KTBR9D/ExternalLink.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{useEffect,useState}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ExternalLink(props){var _window;const{text,variant,link}=props;const extraStyle=variant===\"blue\"?blueLinkStyle:whiteLinkStyle;const linkStyle={...baseLinkStyle,...extraStyle};const[formattedLink,setFormattedLink]=useState(null);useEffect(()=>{var _window_location,_window;var _window_location_search;const searchParams=(_window_location_search=(_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.search)!==null&&_window_location_search!==void 0?_window_location_search:\"\";setFormattedLink(link?link+searchParams:null);},[(_window=window)===null||_window===void 0?void 0:_window.location]);return /*#__PURE__*/_jsx(motion.div,{style:containerStyle,children:/*#__PURE__*/_jsx(motion.a,{style:linkStyle,whileHover:{scale:1,cursor:\"pointer\",borderRadius:\"8px\",transition:{duration:.3,type:\"tween\"}},whileTap:{scale:.98},href:formattedLink,children:text})});}addPropertyControls(ExternalLink,{text:{title:\"Link Text\",type:ControlType.String,defaultValue:\"External Link\"},variant:{title:\"Button Variant\",type:ControlType.Enum,defaultValue:\"blue\",options:[\"blue\",\"white\"],optionTitles:[\"Blue\",\"White\"]},link:{title:\"Link URL\",type:ControlType.Link,defaultValue:null}});// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};const baseLinkStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",borderRadius:\"100px\",padding:\"1rem 2.5rem\",fontSize:\"1rem\",fontWeight:600,border:0,textDecoration:\"none\",textAlign:\"center\"};const blueLinkStyle={backgroundColor:\"#0085ff\",color:\"white\",border:\"1px solid #0085ff\"};const whiteLinkStyle={backgroundColor:\"white\",color:\"black\",border:\"1px solid black\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ExternalLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExternalLink.map"],
  "mappings": "qHAQkB,SAARA,EAA8BC,EAAM,CAAC,IAAIC,EAAQ,GAAK,CAAC,KAAAC,EAAK,QAAAC,EAAQ,KAAAC,CAAI,EAAEJ,EAA2EK,EAAU,CAAC,GAAGC,EAAc,GAAhFH,IAAU,OAAOI,EAAcC,CAA8D,EAAO,CAACC,EAAcC,CAAgB,EAAEC,EAAS,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAIC,EAAiBZ,EAAYa,EAAwB,IAAMC,GAAcD,GAAyBb,EAAQe,KAAU,MAAMf,IAAU,SAAeY,EAAiBZ,EAAQ,YAAY,MAAMY,IAAmB,OAAtE,OAAoFA,EAAiB,UAAU,MAAMC,IAA0B,OAAOA,EAAwB,GAAGJ,EAAiBN,EAAKA,EAAKW,EAAa,IAAI,CAAE,EAAE,EAAEd,EAAQe,KAAU,MAAMf,IAAU,OAAO,OAAOA,EAAQ,QAAQ,CAAC,EAAsBgB,EAAKC,EAAO,IAAI,CAAC,MAAMC,EAAe,SAAsBF,EAAKC,EAAO,EAAE,CAAC,MAAMb,EAAU,WAAW,CAAC,MAAM,EAAE,OAAO,UAAU,aAAa,MAAM,WAAW,CAAC,SAAS,GAAG,KAAK,OAAO,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,EAAE,KAAKI,EAAc,SAASP,CAAI,CAAC,CAAC,CAAC,CAAE,CAACkB,EAAoBrB,EAAa,CAAC,KAAK,CAAC,MAAM,YAAY,KAAKsB,EAAY,OAAO,aAAa,eAAe,EAAE,QAAQ,CAAC,MAAM,iBAAiB,KAAKA,EAAY,KAAK,aAAa,OAAO,QAAQ,CAAC,OAAO,OAAO,EAAE,aAAa,CAAC,OAAO,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,WAAW,KAAKA,EAAY,KAAK,aAAa,IAAI,CAAC,CAAC,EAE9vC,IAAMF,EAAe,CAAC,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,QAAQ,EAAQb,EAAc,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,aAAa,QAAQ,QAAQ,cAAc,SAAS,OAAO,WAAW,IAAI,OAAO,EAAE,eAAe,OAAO,UAAU,QAAQ,EAAQC,EAAc,CAAC,gBAAgB,UAAU,MAAM,QAAQ,OAAO,mBAAmB,EAAQC,EAAe,CAAC,gBAAgB,QAAQ,MAAM,QAAQ,OAAO,iBAAiB",
  "names": ["ExternalLink", "props", "_window", "text", "variant", "link", "linkStyle", "baseLinkStyle", "blueLinkStyle", "whiteLinkStyle", "formattedLink", "setFormattedLink", "ye", "ue", "_window_location", "_window_location_search", "searchParams", "window", "p", "motion", "containerStyle", "addPropertyControls", "ControlType"]
}
