Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.151/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({numberOfResults:e=null}){const[t,r]=(0,a.useState)("");return(0,a.useEffect)((()=>{if(!(0,u.default)(e)){const t=setTimeout((()=>{const t=e?(0,n.sub)(Liferay.Language.get("showing-x-results"),e):Liferay.Language.get("no-results-found");r(t)}),500);return()=>{clearTimeout(t)}}}),[e]),a.default.createElement("span",{className:"sr-only",role:"status"},t)};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