Liferay.Loader.define("change-tracking-web@2.0.87/publications/js/components/manage-collaborators-modal/SharingAutocomplete",["module","exports","require","@frontend-taglib-clay$clayui/drop-down","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/sticker","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/drop-down")),r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),i=_interopRequireDefault(a("@frontend-taglib-clay$clayui/sticker")),n=_interopRequireDefault(a("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=({onItemClick:e=(()=>{}),sourceItems:t})=>n.default.createElement(l.default.ItemList,null,t.sort(((e,t)=>e.emailAddress<t.emailAddress?-1:1)).map((t=>n.default.createElement(l.default.Item,{"data-tooltip-align":"top",disabled:t.isOwner,key:t.userId,onClick:()=>e(t),title:t.isOwner?Liferay.Language.get("cannot-update-permissions-for-an-owner"):""},n.default.createElement("div",{className:"autofit-row autofit-row-center"},n.default.createElement("div",{className:"autofit-col mr-3"},n.default.createElement(i.default,{className:"sticker-user-icon ".concat(t.portraitURL?"":"user-icon-color-"+t.userId%10),size:"lg"},t.portraitURL?n.default.createElement("div",{className:"sticker-overlay"},n.default.createElement("img",{className:"sticker-img",src:t.portraitURL})):n.default.createElement(r.default,{symbol:"user"}))),n.default.createElement("div",{className:"autofit-col"},n.default.createElement("strong",null,t.fullName),n.default.createElement("span",null,t.emailAddress)))))));t.default=_default}}));
//# sourceMappingURL=SharingAutocomplete.js.map