{"version":3,"sources":["webpack://frontend-taglib-clay/node_modules/@clayui/link/lib/Context.js","webpack://frontend-taglib-clay/frontend-js-react-web/__liferay__/exports/classnames.js\"","webpack://frontend-taglib-clay/frontend-js-react-web/__liferay__/exports/react.js\"","webpack://frontend-taglib-clay/webpack/bootstrap","webpack://frontend-taglib-clay/node_modules/@clayui/link/lib/index.js"],"names":["obj","Object","defineProperty","exports","value","context","__webpack_require__","__esModule","default","createContext","displayName","_default","module","__WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_classnames_js_a73da2a0__","__WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_react_js_52accfa8__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","enumerable","get","_Context","_classnames","_interopRequireDefault","_react","_excluded","_extends","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_defineProperty","configurable","writable","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","ClayLink","forwardRef","_ref","ref","classes","_classes","_classes2","block","borderless","button","children","className","displayType","monospaced","outline","rel","small","otherProps","TagOrComponent","useContext","btn","btn-block","btn-monospaced","btn-outline-borderless","btn-sm","concat","link-monospaced","link-outline","link-outline-borderless","createElement"],"mappings":";;;uEAOA,IAEAA,EAPAC,OAAAC,eAAAC,EAAA,aAAA,CACAC,OAAA,IAEAD,EAAA,aAAA,EAUA,IAAAE,IANAL,EAFAM,cAAA,WAEAN,EAAAO,WAAAP,EAAA,CAAAQ,QAAAR,IAMAQ,QAAAC,cAAA,KAEAJ,EAAAK,YAAA,kBACA,IAAAC,EAAAN,EACAF,EAAA,QAAAQ;;;2FCjBAC,EAAAT,QAAAU;;;sFCAAD,EAAAT,QAAAW,uFCDAC,yBAAA,GAGA,SAAAT,oBAAAU,GAEA,IAAAC,EAAAF,yBAAAC,GACA,QAAAE,IAAAD,EACA,OAAAA,EAAAd,QAGA,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,GAJAV,EAIAE,GAOA,OAJA7B,IAAAsC,IACAA,EAAA,uBAGA1C,EAAAjB,QAAAyE,cAAAX,EAAA3C,EAAA,CACAoC,WAAA,EAAAxC,EAAAf,SAAAuD,EAAAP,GACAD,IAAAA,EACAY,IAAAA,EACAtC,OAAAA,GACAwC,GAAAP,MAGAV,EAAA1C,YAAA,WACA,IAAAC,EAAAyC,EACAjD,EAAA,QAAAQ","sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * SPDX-FileCopyrightText: © 2019 Liferay, Inc. \n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar context = /*#__PURE__*/_react.default.createContext('a');\n\ncontext.displayName = 'ClayLinkContext';\nvar _default = context;\nexports.default = _default;","var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }\nvar y = x => () => x\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_classnames_js_a73da2a0__;","var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }\nvar y = x => () => x\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_react_js_52accfa8__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"ClayLinkContext\", {\n enumerable: true,\n get: function get() {\n return _Context.default;\n }\n});\nexports.default = void 0;\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Context = _interopRequireDefault(require(\"./Context\"));\n\nvar _excluded = [\"block\", \"borderless\", \"button\", \"children\", \"className\", \"displayType\", \"monospaced\", \"outline\", \"rel\", \"small\", \"target\"];\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nvar ClayLink = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {\n var block = _ref.block,\n borderless = _ref.borderless,\n button = _ref.button,\n children = _ref.children,\n className = _ref.className,\n displayType = _ref.displayType,\n monospaced = _ref.monospaced,\n outline = _ref.outline,\n rel = _ref.rel,\n small = _ref.small,\n target = _ref.target,\n otherProps = _objectWithoutProperties(_ref, _excluded);\n\n var TagOrComponent = _react.default.useContext(_Context.default);\n\n var classes;\n\n if (button) {\n var _classes;\n\n button = button === true ? {} : button;\n classes = (_classes = {\n btn: !!button,\n 'btn-block': button.block || block,\n 'btn-monospaced': button.monospaced || monospaced,\n 'btn-outline-borderless': borderless,\n 'btn-sm': button.small || small\n }, _defineProperty(_classes, \"btn-\".concat(displayType), displayType && !outline && !borderless), _defineProperty(_classes, \"btn-outline-\".concat(displayType), displayType && (outline || borderless)), _classes);\n } else {\n var _classes2;\n\n classes = (_classes2 = {\n 'link-monospaced': monospaced,\n 'link-outline': outline,\n 'link-outline-borderless': borderless\n }, _defineProperty(_classes2, \"link-\".concat(displayType), displayType && !outline), _defineProperty(_classes2, \"link-outline-\".concat(displayType), displayType && outline), _classes2);\n }\n\n if (target && !rel) {\n rel = 'noreferrer noopener';\n }\n\n return /*#__PURE__*/_react.default.createElement(TagOrComponent, _extends({\n className: (0, _classnames.default)(className, classes),\n ref: ref,\n rel: rel,\n target: target\n }, otherProps), children);\n});\n\nClayLink.displayName = 'ClayLink';\nvar _default = ClayLink;\nexports.default = _default;"]}