import*as e from"../../../frontend-js-react-web/__liferay__/exports/classnames.js";import*as t from"../../../frontend-js-react-web/__liferay__/exports/react.js";var r={764:(s,d,u)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.default=void 0;var c=function _interopRequireDefault(s){return s&&s.__esModule?s:{default:s}}(u(421)).default.createContext("a");c.displayName="ClayLinkContext";var f=c;d.default=f},238:s=>{s.exports=e},421:s=>{s.exports=t}},n={};function __webpack_require__(s){var d=n[s];if(void 0!==d)return d.exports;var u=n[s]={exports:{}};return r[s](u,u.exports,__webpack_require__),u.exports}var o={};(()=>{var s=o;Object.defineProperty(s,"X$",{value:!0}),Object.defineProperty(s,"ju",{enumerable:!0,get:function get(){return c.default}}),s.ZP=void 0;var d=_interopRequireDefault(__webpack_require__(238)),u=_interopRequireDefault(__webpack_require__(421)),c=_interopRequireDefault(__webpack_require__(764)),f=["block","borderless","button","children","className","decoration","displayType","fontSize","messages","monospaced","outline","rel","small","target","weight"];function _interopRequireDefault(s){return s&&s.__esModule?s:{default:s}}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(s){for(var d=1;d<arguments.length;d++){var u=arguments[d];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(s[c]=u[c])}return s}).apply(this,arguments)}function _defineProperty(s,d,u){return d in s?Object.defineProperty(s,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[d]=u,s}var p={danger:{base:"c-link text-danger",decoration:"underline"},primary:{base:"c-link link-primary",decoration:"underline"},secondary:{base:"c-link link-secondary",decoration:"underline"},tertiary:{base:"c-link text-tertiary",decoration:null},unstyled:{base:"link-unstyled",decoration:null}},_={normal:"font-weight-normal","semi-bold":"font-weight-semi-bold"},b={opensNewWindow:"(Opens a new window)"},y=u.default.forwardRef((function(s,y){var m,v,k,x,w,P=s.block,g=s.borderless,j=s.button,O=s.children,h=s.className,q=s.decoration,N=s.displayType,C=s.fontSize,R=s.messages,D=void 0===R?b:R,L=s.monospaced,M=s.outline,S=s.rel,W=s.small,E=s.target,Z=s.weight,z=function _objectWithoutProperties(s,d){if(null==s)return{};var u,c,f=function _objectWithoutPropertiesLoose(s,d){if(null==s)return{};var u,c,f={},p=Object.keys(s);for(c=0;c<p.length;c++)u=p[c],d.indexOf(u)>=0||(f[u]=s[u]);return f}(s,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(s);for(c=0;c<p.length;c++)u=p[c],d.indexOf(u)>=0||Object.prototype.propertyIsEnumerable.call(s,u)&&(f[u]=s[u])}return f}(s,f),T=u.default.useContext(c.default);return j?(_defineProperty(v={btn:!!(j=!0===j?{}:j),"btn-block":j.block||P,"btn-monospaced":j.monospaced||L,"btn-outline-borderless":g,"btn-sm":j.small||W},"btn-".concat(N),N&&!M&&!g),_defineProperty(v,"btn-outline-".concat(N),N&&(M||g)),_defineProperty(v,_[Z],Z),_defineProperty(v,"text-".concat(C),C),_defineProperty(v,"text-decoration-".concat(q),q),m=v):(q=null===q||M?void 0:q||(null===(k=p[N])||void 0===k?void 0:k.decoration),_defineProperty(w={"link-monospaced":L,"link-outline":M,"link-outline-borderless":g},null===(x=p[N])||void 0===x?void 0:x.base,N&&!M),_defineProperty(w,"link-outline-".concat(N),N&&M),_defineProperty(w,_[Z],Z),_defineProperty(w,"text-".concat(C),C),_defineProperty(w,"text-decoration-".concat(q),q),m=w),E&&!S&&(S="noreferrer noopener"),u.default.createElement(T,_extends({className:(0,d.default)(h,m),ref:y,rel:S,target:E},z),O,"_blank"===E&&u.default.createElement("span",{className:"sr-only"},D.opensNewWindow))}));y.displayName="ClayLink";var m=y;s.ZP=m})();var a=o.ju,i=o.X$,l=o.ZP;export{a as ClayLinkContext,i as __esModule,l as default};
//# sourceMappingURL=@clayui$link.js.map