exports.id = 61239; exports.ids = [61239]; exports.modules = { /***/ 66803: /***/ ((module) => { // Exports module.exports = { "base": "Link_base__9W8Qs", "highlight": "Link_highlight__HdSrf", "primary": "Link_primary__rWdtP", "secondary": "Link_secondary__m0KtR", "blend": "Link_blend___ORVn" }; /***/ }), /***/ 41701: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /** * Wrap a component `children` with a `wrapper` component if `condition` is `true`. * * Reference: * - https://blog.hackages.io/conditionally-wrap-an-element-in-react-a8b9a47fab2ng.html * - https://arjayosma.com/how-to-conditionally-wrap-a-react-component/ * * @param {Props} props * @returns {JSX.Element} */ const Wrapper = ({ children , shouldWrap , wrapper })=>shouldWrap ? wrapper(children) : children; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Wrapper); /***/ }), /***/ 61239: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__), /* harmony export */ "r": () => (/* binding */ LinkVariant) /* harmony export */ }); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59003); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79165); /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _Link_module_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66803); /* harmony import */ var _Link_module_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Link_module_scss__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _components_Wrapper_Wrapper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41701); /* eslint-disable react/jsx-no-target-blank */ // eslint failed to lint properly var LinkVariant; (function(LinkVariant) { LinkVariant["Highlight"] = "highlight"; LinkVariant["Primary"] = "primary"; LinkVariant["Secondary"] = "secondary"; LinkVariant["Blend"] = "blend"; })(LinkVariant || (LinkVariant = {})); const Link = ({ href , children , isNewTab =false , variant , download , className , onClick , shouldPassHref , isShallow =false , shouldPrefetch =true , title , ariaLabel , })=>/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_Wrapper_Wrapper__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { shouldWrap: !download, wrapper: (node)=>/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_link__WEBPACK_IMPORTED_MODULE_2___default()), { href: href, ...shouldPassHref && { shouldPassHref }, ...shouldPrefetch === false && { prefetch: false }, shallow: isShallow, children: node }), children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { href: href, download: download, target: isNewTab ? "_blank" : undefined, rel: isNewTab ? "noreferrer" : undefined, className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_Link_module_scss__WEBPACK_IMPORTED_MODULE_4___default().base), className, { [(_Link_module_scss__WEBPACK_IMPORTED_MODULE_4___default().highlight)]: variant === LinkVariant.Highlight, [(_Link_module_scss__WEBPACK_IMPORTED_MODULE_4___default().primary)]: variant === LinkVariant.Primary, [(_Link_module_scss__WEBPACK_IMPORTED_MODULE_4___default().secondary)]: variant === LinkVariant.Secondary, [(_Link_module_scss__WEBPACK_IMPORTED_MODULE_4___default().blend)]: variant === LinkVariant.Blend }), ...onClick && { onClick }, ...title && { title }, ...ariaLabel && { "aria-label": ariaLabel }, children: children }) }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Link); /***/ }) }; ; //# sourceMappingURL=61239.js.map