Liferay.Loader.define("portal-search-ranking-web@3.0.53/js/components/shared/ClayEmptyState.es",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DISPLAY_STATES=void 0;var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("@frontend-taglib-clay$clayui/button")),n=(a("liferay!frontend-js-react-web$prop-types"),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const e=Liferay.Language.get("sorry,-no-results-were-found"),l=Liferay.Language.get("no-results-found"),o="/o/admin-theme/images/states",c={EMPTY:"empty",SEARCH:"search",SUCCESS:"success"};t.DISPLAY_STATES=c;class ClayEmptyState extends n.Component{render(){const{actionLabel:t,description:a,displayState:i,onClickAction:c,title:s}=this.props;return n.default.createElement("div",{className:"empty-state-root"},n.default.createElement("img",{alt:Liferay.Language.get("empty-state-image"),className:"empty-state-image",src:"".concat(o,"/").concat(i,"_state.gif")}),n.default.createElement("div",{className:"empty-state-title"},s||l),n.default.createElement("div",{className:"empty-state-description"},a||e),t&&c&&n.default.createElement("div",{className:"empty-state-action"},n.default.createElement(r.default,{displayType:"secondary",onClick:c},t)))}}!function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}(ClayEmptyState,"defaultProps",{displayState:c.SEARCH});var i=ClayEmptyState;t.default=i}}));
//# sourceMappingURL=ClayEmptyState.es.js.map