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