Liferay.Loader.define("@liferay/analytics-settings-web@5.0.51/js/components/table/StateRenderer",["module","exports","require","liferay!frontend-js-react-web$react","../../utils/constants","../StateRenderer","./Context"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("liferay!frontend-js-react-web$react")),n=r("../../utils/constants"),l=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 r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("../StateRenderer")),o=r("./Context");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}var _default=({children:e,empty:t,emptyState:{contentRenderer:r,description:i="",noResultsTitle:u,title:c},error:d,loading:f,refetch:s})=>{const{keywords:p}=(0,o.useData)();return a.default.createElement(l.default,{empty:t,error:d,loading:f,loadingProps:{absolute:!0,style:{display:"block",minHeight:300}}},!p&&a.default.createElement(l.default.Empty,null,a.default.createElement(l.EmptyStateComponent,{className:"empty-state-border",description:i,imgSrc:n.EMPTY_STATE_GIF,title:c},r&&r())),p&&a.default.createElement(l.default.Empty,null,a.default.createElement(l.EmptyStateComponent,{className:"empty-state-border",description:"",imgSrc:n.NOT_FOUND_GIF,title:u})),a.default.createElement(l.default.Error,null,a.default.createElement(l.ErrorStateComponent,{className:"empty-state-border mb-0 pb-5",onClickRefetch:s})),a.default.createElement(l.default.Success,null,e))};t.default=_default}}));
//# sourceMappingURL=StateRenderer.js.map