Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/common/components/SearchResultsMessage",["module","exports","require","frontend-js-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../app/utils/isNullOrUndefined"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function SearchResultsMessage({resultType:e=Liferay.Language.get("results"),numberOfResults:t=null}){const[r,i]=(0,a.useState)("");return(0,a.useEffect)((()=>{if(!(0,u.default)(t)){const r=setTimeout((()=>{const r=t?(0,n.sub)(Liferay.Language.get("showing-x-x"),[t,e]):Liferay.Language.get("no-results-found");i(r)}),500);return()=>{clearTimeout(r)}}}),[e,t]),a.default.createElement("span",{className:"sr-only",role:"status"},r)};var n=r("frontend-js-web"),a=(_interopRequireDefault(r("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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=n?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),u=_interopRequireDefault(r("../../app/utils/isNullOrUndefined"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=SearchResultsMessage.js.map