(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[42],{779:function(e,r,a){"use strict";var t=a(10),s=a.n(t),n=a(15),u=a(1),c=(a(0),a(1339)),o=a.n(c),l=a(181),i=a(22),p=a(182),b=a(733),d=a(824);r.a=function(e){var r=Object(i.i)("components.user_search");return Object(u.jsx)(d.a,{className:e.className,placeholder:e.placeholder||r(".placeholder"),noResultsMessage:r(".no_result"),onGetResultKey:function(e){return e.id},onSearch:function(){var e=Object(n.a)(s.a.mark((function e(a){var t,n,u,c;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=a.startsWith("*"))&&(a=a.substr(1)),a){e.next=4;break}return e.abrupt("return",[]);case 4:return e.next=6,l.c.user.searchUser({query:a,wildcard:t?"Both":"End"});case 6:if(n=e.sent,u=n.requestError,c=n.response,!u){e.next=13;break}p.a.error(u(r)),e.next=14;break;case 13:return e.abrupt("return",c.userMetas);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),onRenderResult:function(e){return Object(u.jsxs)("div",{className:o.a.result,children:[Object(u.jsx)(b.a,{className:o.a.avatar,userAvatar:e.avatar,imageSize:27.5,rounded:!0}),Object(u.jsx)("div",{className:o.a.username,children:e.username})]})},onResultSelect:e.onResultSelect})}}}]);
//# sourceMappingURL=42.fd00d4c1.chunk.js.map