(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[99],{928:function(e,r,t){"use strict";var n=t(10),a=t.n(n),s=t(15),c=t(1),o=(t(0),t(55)),u=t(181),l=t(22),i=t(182),p=t(824),b=t(684),f=t(9),h=t(109),d=f.a.serverPreference.pagination.searchProblemsPreview;r.a=Object(o.a)((function(e){var r=Object(l.i)("components.problem_search");return Object(c.jsx)(p.a,{className:e.className,placeholder:e.placeholder||r(".placeholder"),noResultsMessage:r(".no_result"),onGetResultKey:function(e){return e.meta.id},onSearch:function(){var t=Object(s.a)(a.a.mark((function t(n){var s,c,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.startsWith("*")&&(n=n.substr(1)),n){t.next=4;break}return t.abrupt("return",[]);case 4:return t.next=6,u.c.problem.queryProblemSet(Object.assign({locale:f.a.locale},e.queryParameters,{keyword:n,keywordMatchesId:!0,titleOnly:!0,skipCount:0,takeCount:d}));case 6:if(s=t.sent,c=s.requestError,o=s.response,!c){t.next=13;break}i.a.error(c(r)),t.next=14;break;case 13:return t.abrupt("return",o.result);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),onRenderResult:function(e){return Object(c.jsx)(h.a,{children:Object(c.jsx)("div",{className:"title",children:Object(b.a)(e.meta,e.title,r)})})},onResultSelect:e.onResultSelect,onEnterPress:e.onEnterPress})}))}}]);
//# sourceMappingURL=99.6eff4d40.chunk.js.map