Liferay.Loader.define("data-engine-taglib@3.3.53/data_layout_builder/js/components/empty-state/EmptyState.es",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","../../utils/lang.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.withEmpty=function withEmpty(e){return t=>{let{emptyState:r,isEmpty:a,keywords:o}=t,l=function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,n=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(t,["emptyState","isEmpty","keywords"]);return a?n.default.createElement(EmptyState,{emptyState:r,keywords:o}):n.default.createElement(e,l)}},t.default=void 0;var a=_interopRequireDefault(r("liferay!frontend-js-react-web$classnames")),n=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),o=r("../../utils/lang.es");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EmptyState=({emptyState:e,keywords:t="",small:r=!1})=>{const l={description:null,title:Liferay.Language.get("there-are-no-entries")},s={description:(0,o.sub)(Liferay.Language.get("there-are-no-results-for-x"),[t]),title:Liferay.Language.get("no-results-were-found")};e=_objectSpread(_objectSpread({},l),e);const i=_objectSpread(_objectSpread({},s),e.search),c=""!==t,{button:u,description:f,title:p}=c?i:e;return n.default.createElement("div",{className:"taglib-empty-result-message"},n.default.createElement("div",{className:"text-center"},n.default.createElement("div",{className:(0,a.default)({"taglib-empty-state":!c,"taglib-search-state":c},{"empty-state-small":r})}),p&&n.default.createElement("h1",{className:(0,a.default)("taglib-empty-result-message-title",{"empty-state-title-small":r})},p),f&&n.default.createElement("p",{className:"empty-message-color taglib-empty-result-message-description"},f),u&&u()))};var l=EmptyState;t.default=l}}));
//# sourceMappingURL=EmptyState.es.js.map