Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/explorer / lib / components / FileWindowPanel / tabs / tabs.constants.js
Size: Mime:
var _TABS_COMPONENTS;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
import { MoreDetails, VersioningOutline, Comment2Right, Actions } from '@scaleflex/icons';
import isImage from '@filerobot/utils/lib/isImage';
import isVideo from '@filerobot/utils/lib/isVideo';
import CommentsTab from './CommentsTab';
import ActivityTab from './ActivityTab';
import DetailsTab from './DetailsTab';
import VersioningTab from './VersioningTab';
export var TABS_IDS = {
  DETAILS: 'details_tab',
  ACTIVITY: 'activity_tab',
  VERSIONING: 'versioning_tab',
  COMMENTS: 'comments_tab'
};
export var TABS_COMPONENTS = (_TABS_COMPONENTS = {}, _defineProperty(_TABS_COMPONENTS, TABS_IDS.DETAILS, DetailsTab), _defineProperty(_TABS_COMPONENTS, TABS_IDS.ACTIVITY, ActivityTab), _defineProperty(_TABS_COMPONENTS, TABS_IDS.VERSIONING, VersioningTab), _defineProperty(_TABS_COMPONENTS, TABS_IDS.COMMENTS, CommentsTab), _TABS_COMPONENTS);
export var ALL_TABS = [{
  id: TABS_IDS.DETAILS,
  i18nStr: 'detailsTabLabel',
  iconComponent: MoreDetails
  // hide: (args) => false
}, {
  id: TABS_IDS.ACTIVITY,
  i18nStr: 'activityTabLabel',
  iconComponent: Actions
}, {
  id: TABS_IDS.VERSIONING,
  i18nStr: 'versioningTabLabel',
  iconComponent: VersioningOutline
}, {
  id: TABS_IDS.COMMENTS,
  i18nStr: 'commentsTabLabel',
  iconComponent: Comment2Right,
  hide: function hide(_ref) {
    var previewedFile = _ref.previewedFile,
      isFastToken = _ref.isFastToken,
      isUserAuth = _ref.isUserAuth;
    return !((isImage(previewedFile) || isVideo(previewedFile)) && !isFastToken && isUserAuth);
  }
}];