Liferay.Loader.define("@liferay/object-js-components-web@1.0.33/components/Card",["module","exports","require","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./Card.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Card=function Card(e){let{children:t,className:r,disabled:o,title:c,tooltip:i,viewMode:d}=e,s=function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,l=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["children","className","disabled","title","tooltip","viewMode"]);const f="inline"===d,u="no-children"===d;return n.default.createElement("div",_extends({},s,{className:(0,l.default)(r,"lfr-objects__card",{"lfr-objects__card--inline":f,"lfr-objects__card--no-margin":u||"no-margin"===d})}),u?n.default.createElement("div",{className:"lfr-objects__card-title--with-padding"},c):n.default.createElement(n.default.Fragment,null,f?c:n.default.createElement("div",{className:"lfr-objects__card-header"},n.default.createElement("h3",{className:(0,l.default)("lfr-objects__card-title",{"lfr-objects__card-title--disabled":o})},c),i&&n.default.createElement("span",{className:"ml-2","data-tooltip-align":"top",title:i.content},n.default.createElement(a.default,{className:"lfr-objects__card-header-tooltip-icon",symbol:i.symbol}))),n.default.createElement("div",{className:(0,l.default)("lfr-objects__card-body",{"lfr-objects__card-body--inline":f,"lfr-objects__card-body--no-padding":"no-padding"===d})},t)))};var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),l=_interopRequireDefault(r("liferay!frontend-js-react-web$classnames")),n=_interopRequireDefault(r("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}r("./Card.scss")}}));
//# sourceMappingURL=Card.js.map