define(["require","exports","tslib","react","deep-integrations/platform/server/localization","modules/clean/react/pass/integration/profile_card_popover","react-redux","modules/clean/integrations/app_store_lite_modal","modules/clean/integrations/link_service","modules/clean/react/pass/tooltip_helpers","modules/clean/integrations/data/actions","modules/clean/integrations/profile_card_tooltip","modules/clean/integrations/data/selectors","deep-integrations/async","spectrum/avatar","file-viewer/titlebar"],(function(e,t,r,o,n,i,a,l,s,c,d,p,f,u,v,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o=r.__importDefault(o);t.UserAvatarPassiveTooltipContent=function(e){var t=e.colorSeed,r=e.integrationStore,i=e.userInfo,l=e.userInfo.displayName,s=m.truncateStringByLength(l,22);return o.default.createElement(a.Provider,{store:r},o.default.createElement("div",{className:"rich-facepile-tooltip-content--passive"},o.default.createElement(p.StatefulProfileCardTooltipContent,{displayName:s,seenState:c.buildSeenStateMessage(i),avatarColor:v.avatarColorForUserIdentifier(t),localization:n.localization})))};var g=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.connectService=function(e){var r=t.props,o=r.integrationStore,n=r.integrationInfo.userId,i=f.isConnectServiceLandingPagesEnabled(o.getState());return s.linkService(n,e,i).then((function(){(0,o.dispatch)(d.fetchListServices())}))},t.showAppStoreLiteModal=function(){window.dispatchEvent(new Event("resize")),l.showAppStoreLiteModal(t.props.integrationInfo.userId)},t}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.colorSeed,r=e.integrationInfo,n=r.fileId,l=r.fileName,s=e.integrationStore,c=e.logEvent,d=e.performanceTimer,p=e.reportError,f=e.userInfo;return o.default.createElement(a.Provider,{store:s},o.default.createElement("div",{className:"rich-facepile-tooltip-content--active"},o.default.createElement(i.ProfileCardPopover,{userInfo:f,fileInfo:{".tag":"file",id:u.fulfilled(n),name:l},avatarColor:v.avatarColorForUserIdentifier(t),onConnectService:this.connectService,onConnectServices:this.showAppStoreLiteModal,logEvent:c,entryPoint:"file_preview",performanceTimer:d,reportError:p})))},t})(o.default.Component);t.UserAvatarActiveTooltipContent=g})); //# sourceMappingURL=avatars.min.js-vflitHDlI.map