define(["require","exports","modules/core/i18n","modules/clean/datetime","modules/clean/previews/util","modules/clean/react/pass/constants"],(function(e,n,a,i,r,s){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.buildSeenStateTemplate=function(e){return e.isActive?a._("%(user_name)s Viewing now",{comment:'Format like "user_name Viewing now"'}):null!=e.whenLastSeen?(function(e){var n=a._("%(user_name)s Viewed %(ago)s",{comment:'Format like "userName Viewed 5 days ago'});if(r.shouldShowPlatformInfo()){var o=e.platformType;o===s.PassPlatform.DESKTOP?n=a._("%(user_name)s Viewed %(ago)s on desktop",{comment:'Format like "userName Viewed 5 days ago on desktop'}):o===s.PassPlatform.WEB?n=a._("%(user_name)s Viewed %(ago)s on web",{comment:'Format like "userName Viewed 5 days ago on web'}):o===s.PassPlatform.MOBILE&&(n=a._("%(user_name)s Viewed %(ago)s on mobile",{comment:'Format like "userName Viewed 5 days ago on mobile'}))}return n.replace("%(ago)s",i.ago(1e3*e.whenLastSeen,!1,!0,!0))})(e):(function(e){switch(e){case"owner":return a._("%(user_name)s Owner",{comment:'Format like "user_name Owner"'});case"writer":return a._("%(user_name)s Can edit",{comment:'Format like "user_name Can edit"'});case"reader":return a._("%(user_name)s Can comment",{comment:'Format like "user_name Can comment"'});case"reader_no_comment":case void 0:return a._("%(user_name)s Can view",{comment:'Format like "user_name Can view"'})}})(e.accessLevel)},n.buildSeenStateMessage=function(e){return n.buildSeenStateTemplate(e).replace("","").replace("","").replace("","").replace("%(user_name)s","").trim()}})); //# sourceMappingURL=tooltip_helpers.min.js-vfl4_dx0l.map