{"version":3,"file":"ExternalLink.Cpg_jSF8.mjs","names":["useState","_window"],"sources":["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":"gPAQG,SAAwB,EAAa,EAAM,CAAa,GAAK,CAAC,OAAK,UAAQ,QAAM,EAAY,EAAW,IAAU,OAAO,EAAc,EAAqB,EAAU,CAAC,GAAG,EAAc,GAAG,EAAW,CAAM,CAAC,EAAc,GAAkBA,EAAS,KAAK,CAAqc,OAApc,MAAc,CAA0D,IAAM,EAA+C,GAAkE,UAAoE,QAAyE,GAAG,EAAiB,EAAK,EAAK,EAAa,KAAK,EAAG,CAAU,GAAgD,SAAS,CAAC,CAAqB,EAAK,EAAO,IAAI,CAAC,MAAM,EAAe,SAAsB,EAAK,EAAO,EAAE,CAAC,MAAM,EAAU,WAAW,CAAC,MAAM,EAAE,OAAO,UAAU,aAAa,MAAM,WAAW,CAAC,SAAS,GAAG,KAAK,QAAQ,CAAC,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,KAAK,EAAc,SAAS,EAAK,CAAC,CAAC,CAAC,8BAN/5B,IAAoD,IAAkC,IAAsC,CAMqyB,EAAoB,EAAa,CAAC,KAAK,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,aAAa,gBAAgB,CAAC,QAAQ,CAAC,MAAM,iBAAiB,KAAK,EAAY,KAAK,aAAa,OAAO,QAAQ,CAAC,OAAO,QAAQ,CAAC,a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