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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { logos, photos } from './images';
export var groups = [{
  id: 392,
  type: 'group',
  name: 'Architects',
  description: '12 members'
}, {
  id: 83,
  type: 'group',
  name: 'Accountants',
  description: '21 members'
}];
export var companies = [{
  id: 39,
  type: 'company',
  name: 'Rush Hour',
  description: 'No rush',
  initials: 'whatever',
  imageUrl: logos[0]
}, {
  id: 312,
  type: 'company',
  name: 'Planes and Stuff',
  description: 'We build planes and stuff',
  imageUrl: logos[1]
}];
export var users = [{
  id: 1,
  type: 'user',
  name: 'Jack Canty',
  description: 'PM at Lumber Jack',
  initials: 'JC',
  imageUrl: photos[0]
}, {
  id: 2,
  type: 'user',
  name: 'Bob Smith',
  description: 'PM at Building Inspired',
  initials: 'BS',
  imageUrl: photos[1]
}, {
  id: 3,
  type: 'user',
  name: 'Alex Waters',
  description: 'HR at Work Push',
  initials: 'AW',
  imageUrl: photos[2]
}];
export var withoutImage = function withoutImage(item) {
  return _objectSpread(_objectSpread({}, item), {}, {
    imageUrl: undefined
  });
};
export var inactive = function inactive(item) {
  return _objectSpread(_objectSpread({}, item), {}, {
    inactive: true
  });
};
export var getAvatarMocks = function getAvatarMocks() {
  var slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 23;
  var avatars = [{
    id: 0,
    type: 'group',
    name: 'Architects',
    description: '12 members'
  }, {
    id: 1,
    type: 'company',
    name: 'Rush Hour',
    description: 'No rush',
    initials: 'whatever'
  }, {
    id: 2,
    type: 'user',
    imageUrl: photos[0],
    name: 'Jack Canty',
    description: 'PM at Lumber Jack',
    initials: 'JC',
    inactive: true,
    linkUrl: '#'
  }, {
    id: 3,
    type: 'user',
    imageUrl: photos[1],
    linkUrl: '#',
    name: 'Bob Smith',
    description: 'PM at Building Inspired',
    initials: 'BS'
  }, {
    id: 4,
    type: 'company',
    name: 'Planes and Stuff',
    description: 'We build planes and stuff'
  }, {
    id: 5,
    type: 'user',
    name: 'Alex Waters',
    description: 'HR at Work Push',
    initials: 'AW',
    inactive: true
  }, {
    id: 6,
    type: 'group',
    name: 'Accountants',
    description: '21 members'
  }, {
    id: 7,
    type: 'user',
    name: 'Tracey Molly',
    description: 'Architect at Brick Ltd.',
    initials: 'TM'
  }, {
    id: 8,
    type: 'user',
    imageUrl: photos[2],
    linkUrl: 'http://somewhere.com',
    name: 'Andrew Arctur',
    description: 'Builder at Building Inspired',
    initials: 'AA'
  }, {
    id: 9,
    type: 'company',
    name: 'OSCORP',
    description: 'From comics'
  }, {
    id: 10,
    type: 'user',
    name: 'Jimmy Alexander',
    imageUrl: photos[3],
    description: 'Builder at Company That Build Really Huge Things All Time'
  }, {
    id: 11,
    type: 'company',
    name: 'Brick Ltd.',
    description: 'Laying them',
    initials: 'whatever'
  }, {
    id: 12,
    type: 'user',
    linkUrl: 'http://somewhere.com',
    imageUrl: photos[4],
    name: 'Louis George Maurice Adolphe Roche Albert Jullien',
    description: 'Engineer at Work Push'
  }, {
    id: 13,
    type: 'user',
    imageUrl: photos[0],
    name: 'Pete Valentine',
    description: 'PM at Building Inspired',
    initials: 'PV'
  }, {
    id: 14,
    type: 'user',
    name: 'Zack Mayer',
    linkUrl: 'http://somewhere.com',
    description: 'Engineer at Lumber Jack',
    initials: 'ZM',
    inactive: true
  }, {
    id: 15,
    type: 'user',
    imageUrl: photos[1],
    name: 'Jackson Vally',
    description: 'Architect at Brick Ltd.',
    initials: 'JV'
  }, {
    id: 16,
    type: 'company',
    imageUrl: logos[2],
    name: 'ABC Corp',
    initials: 'whatever'
  }, {
    id: 17,
    type: 'user',
    name: 'Artemiy Matiz',
    description: 'Software Engineer at Rush Hour Inc.',
    initials: 'AM'
  }, {
    id: 18,
    type: 'company',
    imageUrl: logos[4],
    name: 'Work Push',
    description: 'Pushing some work',
    initials: 'whatever',
    inactive: true
  }, {
    id: 19,
    type: 'user',
    name: 'Andre Johnson',
    linkUrl: 'http://somewhere.com',
    description: 'Unit Manager at Brick Ltd.',
    initials: 'AJ'
  }, {
    id: 20,
    type: 'user',
    imageUrl: photos[3],
    linkUrl: 'http://somewhere.com',
    name: 'Nick Drywood',
    description: 'No Company'
  }, {
    id: 21,
    type: 'company',
    imageUrl: logos[3],
    name: 'Lumber Jack',
    description: 'Wood provider',
    initials: 'whatever',
    inactive: true
  }, {
    id: 22,
    type: 'user',
    imageUrl: photos[4],
    name: 'Olly Jack',
    description: 'Sr. Unit Manager at Building Inspired'
  }, {
    id: 23,
    type: 'user',
    imageUrl: photos[1],
    name: 'Andre Agassi',
    linkUrl: 'http://somewhere.com',
    description: 'Brick Ltd.'
  }, {
    id: 24,
    type: 'user',
    name: 'Pete Valentine',
    description: 'Engineer at Lumber Jack',
    initials: 'LJ'
  }, {
    id: 25,
    type: 'company',
    imageUrl: logos[2],
    name: 'Building Inspired',
    description: 'Building things',
    initials: 'whatever'
  }, {
    id: 26,
    type: 'user',
    imageUrl: photos[2],
    name: 'Angelo B.',
    description: 'No Company'
  }, {
    id: 27,
    type: 'user',
    imageUrl: photos[3],
    name: ' Ryan',
    linkUrl: 'http://somewhere.com',
    description: 'PM at Work Push'
  }, {
    id: 28,
    type: 'user',
    name: 'George',
    description: 'Builder at Building Homeland',
    initials: 'G'
  }, {
    id: 29,
    type: 'user',
    imageUrl: photos[4],
    name: 'Martin Lewis',
    linkUrl: 'http://somewhere.com',
    description: 'HR at ENCO Corp'
  }, {
    id: 30,
    type: 'user',
    imageUrl: photos[0],
    name: 'Rafael Nadal',
    description: 'No Company'
  }, {
    id: 31,
    type: 'company',
    imageUrl: logos[1],
    name: 'Building Inspired',
    description: 'Building things',
    initials: 'whatever'
  }, {
    id: 32,
    type: 'user',
    imageUrl: photos[1],
    name: 'Alex Baldwin',
    linkUrl: 'http://somewhere.com',
    description: 'Recruiter at ENCO Corp'
  }, {
    id: 33,
    type: 'user',
    imageUrl: photos[2],
    name: 'Jean Luke Andre Peter Drywoodshernhensonbergerzungermanalexander',
    description: 'Compliance Officer at at Serious Company With Strong Culture'
  }];
  if (slice > avatars.length) {
    return Array.from({
      length: slice
    }, function (v, index) {
      var avatarIndex = index - Math.floor(index / avatars.length) * avatars.length;
      return _objectSpread(_objectSpread({}, avatars[avatarIndex]), {}, {
        id: index
      });
    });
  }
  return avatars.slice(0, slice);
};
//# sourceMappingURL=getAvatarMocks.js.map