"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
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;
};
var __export = (target, all) => {
  for (var name2 in all)
    __defProp(target, name2, { get: all[name2], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var suggested_friends_resolvers_exports = {};
__export(suggested_friends_resolvers_exports, {
  SuggestedFriend: () => SuggestedFriend,
  firstName: () => firstName,
  lastName: () => lastName,
  name: () => name,
  suggestedFriends: () => suggestedFriends
});
module.exports = __toCommonJS(suggested_friends_resolvers_exports);
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;
}
