"use strict";
exports.id = 981;
exports.ids = [981];
exports.modules = {

/***/ 940981:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Z": () => (/* binding */ A)
/* harmony export */ });
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(920997);
/* 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 next_link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(741664);
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lib_base_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(348397);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(371017);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__);




function A(props) {
    const { href  } = props;
    if (href == null) {
        return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
            ...copyWithout(props, new Set([
                "external"
            ]))
        });
    }
    if (href.includes("://") || href.startsWith("mailto:")) {
        return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
            ...copyWithout(props, new Set([
                "external"
            ])),
            target: "_blank",
            rel: "noopener"
        });
    }
    if (props.external) {
        const props2 = copyWithout(props, new Set([
            "external"
        ]));
        if (!href.startsWith(lib_base_path__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)) {
            // @ts-ignore
            props2.href = (0,path__WEBPACK_IMPORTED_MODULE_2__.join)(lib_base_path__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, href);
        }
        return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
            ...props2,
            target: "_blank",
            rel: "noopener"
        });
    }
    return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_link__WEBPACK_IMPORTED_MODULE_1___default()), {
        href: href,
        children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
            ...copyWithout(props, new Set([
                "external",
                "href"
            ]))
        })
    });
};
function copyWithout(props, without) {
    const props2 = {};
    for(const key in props){
        if (!without.has(key)) {
            props2[key] = props[key];
        }
    }
    return props2;
}


/***/ })

};
;