var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
  for (var prop in b || (b = {}))
    if (__hasOwnProp.call(b, prop))
      __defNormalProp(a, prop, b[prop]);
  if (__getOwnPropSymbols)
    for (var prop of __getOwnPropSymbols(b)) {
      if (__propIsEnum.call(b, prop))
        __defNormalProp(a, prop, b[prop]);
    }
  return a;
};

// src/relay/resolvers/suggested-friends-resolvers.ts
function SuggestedFriend(id, _args, context) {
  return context.mock.resolveById(id);
}
function name(model, _args, context) {
  var _a, _b;
  const data = model.name;
  if (data === null) {
    return data;
  }
  return __spreadValues({
    firstName: (_a = data == null ? void 0 : data.firstName) != null ? _a : context.mock.resolve("String"),
    lastName: (_b = data == null ? void 0 : data.lastName) != null ? _b : context.mock.resolve("String")
  }, data);
}
function firstName(model, _args, context) {
  var _a;
  return (_a = model.firstName) != null ? _a : context.mock.resolve("String");
}
function lastName(model, _args, context) {
  var _a;
  return (_a = model.lastName) != null ? _a : context.mock.resolve("String");
}
function suggestedFriends(_args, context) {
  var _a, _b;
  const resolverData = (_b = (_a = context.mock.resolve("Viewer")) == null ? void 0 : _a.suggestedFriends) != null ? _b : [];
  for (const item of resolverData) {
    context.mock.storeById(item.id, item);
  }
  return resolverData;
}
export {
  SuggestedFriend,
  firstName,
  lastName,
  name,
  suggestedFriends
};
