import*as e from"../../../frontend-js-react-web/__liferay__/exports/classnames.js";import*as t from"../../../frontend-js-react-web/__liferay__/exports/react.js";import*as r from"../../../frontend-taglib-clay/__liferay__/exports/@clayui$icon.js";import*as a from"../../../frontend-taglib-clay/__liferay__/exports/@clayui$link.js";var l={238:f=>{f.exports=e},421:f=>{f.exports=t},663:f=>{f.exports=r},437:f=>{f.exports=a}},s={};function __webpack_require__(f){var u=s[f];if(void 0!==u)return u.exports;var c=s[f]={exports:{}};return l[f](c,c.exports,__webpack_require__),c.exports}var n={};(()=>{var f=n;Object.defineProperty(f,"X",{value:!0}),f.Z=void 0;var u=_interopRequireDefault(__webpack_require__(663)),c=_interopRequireDefault(__webpack_require__(437)),d=_interopRequireDefault(__webpack_require__(238)),p=_interopRequireDefault(__webpack_require__(421)),_=["children","className"],m=["children","className"],b=["children","className","href"],y=["children","className","dismissible","displayType","large"],v=["children","closeButtonProps","href","innerElementProps","withClose","spritemap"];function _interopRequireDefault(f){return f&&f.__esModule?f:{default:f}}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(f){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(f[d]=c[d])}return f}).apply(this,arguments)}function _objectWithoutProperties(f,u){if(null==f)return{};var c,d,p=function _objectWithoutPropertiesLoose(f,u){if(null==f)return{};var c,d,p={},_=Object.keys(f);for(d=0;d<_.length;d++)c=_[d],u.indexOf(c)>=0||(p[c]=f[c]);return p}(f,u);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(f);for(d=0;d<_.length;d++)c=_[d],u.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(f,c)&&(p[c]=f[c])}return p}var h=p.default.forwardRef((function(f,u){var c=f.children,m=f.className,b=_objectWithoutProperties(f,_);return p.default.createElement("span",_extends({},b,{className:(0,d.default)(m,"label-item label-item-after"),ref:u}),c)}));h.displayName="ClayLabelItemAfter";var x=p.default.forwardRef((function(f,u){var c=f.children,_=f.className,b=_objectWithoutProperties(f,m);return p.default.createElement("span",_extends({},b,{className:(0,d.default)(_,"label-item label-item-before"),ref:u}),c)}));x.displayName="ClayLabelItemBefore";var j=p.default.forwardRef((function(f,u){var _=f.children,m=f.className,y=f.href,v=_objectWithoutProperties(f,b),h=y?c.default:"span";return p.default.createElement(h,_extends({},v,{className:(0,d.default)(m,"label-item label-item-expand"),href:y,ref:u}),_)}));j.displayName="ClayLabelItemExpand";var w=p.default.forwardRef((function(f,u){var c,_,m,b=f.children,v=f.className,h=f.dismissible,x=f.displayType,j=void 0===x?"secondary":x,w=f.large,N=void 0!==w&&w,P=_objectWithoutProperties(f,y);return p.default.createElement("span",_extends({},P,{className:(0,d.default)("label",v,(c={"label-dismissible":h,"label-lg":N},_="label-".concat(j),m=j,_ in c?Object.defineProperty(c,_,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[_]=m,c)),ref:u}),b)}));w.displayName="ClayLabel";var N=p.default.forwardRef((function(f,c){var _=f.children,m=f.closeButtonProps,b=f.href,y=f.innerElementProps,x=void 0===y?{}:y,N=f.withClose,P=void 0===N||N,g=f.spritemap,E=_objectWithoutProperties(f,v);return p.default.createElement(w,_extends({dismissible:P&&!!m},E,{ref:c}),!P&&_,P&&p.default.createElement(p.default.Fragment,null,p.default.createElement(j,_extends({},x,{href:b}),_),m&&p.default.createElement(h,null,p.default.createElement("button",_extends({},m,{className:(0,d.default)(m.className,"close"),type:"button"}),p.default.createElement(u.default,{spritemap:g,symbol:"times-small"})))))}));N.displayName="ClayLabel";var P=Object.assign(N,{ItemAfter:h,ItemBefore:x,ItemExpand:j});f.Z=P})();var i=n.X,o=n.Z;export{i as __esModule,o as default};
//# sourceMappingURL=@clayui$label.js.map