(window.webpackJsonp=window.webpackJsonp||[]).push([[157],{1064:function(e,t,n){n(1065)},1065:function(e,t,n){"use strict";var r=n(9),c=n(42),o=n(59),l=n(232),f=n(326),m=n(53);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=l.f(t),r=n.resolve,v=n.reject,d=f((function(){var n=o(t.resolve),l=[],f=0,v=1;m(e,(function(e){var o=f++,m=!1;v++,c(n,t,e).then((function(e){m||(m=!0,l[o]={status:"fulfilled",value:e},--v||r(l))}),(function(e){m||(m=!0,l[o]={status:"rejected",reason:e},--v||r(l))}))})),--v||r(l)}));return d.error&&v(d.value),n.promise}})},1171:function(e,t,n){"use strict";n.r(t);n(4),n(1064),n(35),n(39),n(33),n(71);var r=n(5),c=n(21),o=n(49),l=n.n(o),f=n(174),m=Object(r.c)({props:{value:Array,label:String},setup:function(e,t){var n=Object(r.i)(e.value),o=Object(r.i)(""),m=Object(r.i)([]),v=Object(r.i)(!1);return Object(r.f)((function(){v.value=!1,Promise.allSettled(n.value.map((function(e){return new Promise((function(t){Object(c.getSocket)("/core/users").emit("getNameById",e,(function(n,r){if(n)return console.error(n);r&&m.value.push({userId:e,userName:r}),t(!0)}))}))}))).then((function(){return v.value=!1}))})),Object(r.p)(n,(function(e){t.emit("input",e)})),Object(r.p)(o,(function(e){v.value=!0;var t=Object(f.a)();e&&0!==e.trim().length?Object(c.getSocket)("/core/users").emit("find.viewers",{search:e,state:t,exactUsernameFromTwitch:!0},(function(e,n,r,c){if(e)return console.error(e);t===c&&(m.value=n,v.value=!1)})):v.value=!1})),{model:n,search:o,isLoading:v,searchItems:m,translate:l.a}}}),v=n(45),d=n(44),h=n.n(d),j=n(381),component=Object(v.a)(m,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-autocomplete",{attrs:{label:e.label,"search-input":e.search,items:e.searchItems,"hide-no-data":"",placeholder:"Start typing to Search",multiple:"","item-text":"userName","item-value":"userId",loading:e.isLoading,chips:"","small-chips":"","cache-items":"","deletable-chips":""},on:{"update:searchInput":function(t){e.search=t},"update:search-input":function(t){e.search=t}},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})}),[],!1,null,null,null);t.default=component.exports;h()(component,{VAutocomplete:j.a})}}]);