"use strict";var e=require("prop-types"),t=require("lodash"),r=require("./ChipSelector.js"),s=require("../../Avatar/index.js"),i=require("react/jsx-runtime");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e),u={container:{display:"flex",justifyContent:"start",alignItems:"center"},username:{marginLeft:20}},d=function(e){return i.jsxs("div",{style:u.container,children:[i.jsx(s.AvatarComponent,{displayName:t.get(e,"displayName"),imgSrc:t.get(e,"profilePhoto")}),i.jsx("div",{style:u.username,children:t.get(e,"displayName")})]})},o=function(e){var s=e.users,n=e.selectedUsers,a=e.onAddUser,u=e.onRemoveUser;return i.jsx(r,{items:s,selectedItems:n,onAdd:a,onRemove:u,chipFormatter:function(e){return t.get(e,"displayName")},listItemFormatter:d,hintText:"Type user name...",errorText:"You can not add not existing user",listTitle:"Recent users"})};o.propTypes={selectedUsers:a.default.shape([]).isRequired,onAddUser:a.default.func.isRequired,onRemoveUser:a.default.func.isRequired,users:a.default.arrayOf(a.default.shape({id:a.default.oneOfType([a.default.string,a.default.number]).isRequired,displayName:a.default.string.isRequired,persistent:a.default.bool})).isRequired},module.exports=o;
//# sourceMappingURL=UsersChipSelector.js.map
