Liferay.Loader.define("frontend-taglib-clay@12.0.6/management_toolbar/LinkOrButton",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/link","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./FeatureFlagContext"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(r("@frontend-taglib-clay$clayui/button")),a=c(r("@frontend-taglib-clay$clayui/icon")),l=c(r("@frontend-taglib-clay$clayui/link")),o=c(r("liferay!frontend-js-react-web$classnames")),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),u=c(r("./FeatureFlagContext"));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var b=e=>{var t,r;let{ariaLabel:f,children:c,className:b,disabled:y,href:p,symbol:m,title:g,wide:v}=e,O=s(e,["ariaLabel","children","className","disabled","href","symbol","title","wide"]);const{showDesignImprovements:j}=(0,i.useContext)(u.default),w=m&&c,h=p&&!y?l.default:n.default;return i.default.createElement(i.default.Fragment,null,i.default.createElement(h,d({"aria-label":m&&f,block:null===(t=O.button)||void 0===t?void 0:t.block,className:(0,o.default)(b,{"d-md-none":j&&w,"nav-btn-monospaced":j&&w,"pl-4 pr-4":v&&!m}),disabled:y,href:p},O,{title:m&&g}),m?i.default.createElement(a.default,{symbol:m}):c),j&&w&&i.default.createElement(h,d({block:null===(r=O.button)||void 0===r?void 0:r.block,className:(0,o.default)(b,"d-md-flex d-none",{"pl-4 pr-4":v}),disabled:y,href:p},O),c))};t.default=b}}));
//# sourceMappingURL=LinkOrButton.js.map