'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

exports.default = configContext => data => {
  var _configContext$record = configContext.recordDataHelpers;
  const deepGet = _configContext$record.deepGet,
        getPart = _configContext$record.getPart;


  if (!data) {
    return '';
  }

  const common = getPart(data, 'persons_common');

  if (!common) {
    return '';
  }

  const displayName = deepGet(common, ['personTermGroupList', 'personTermGroup', 0, 'termDisplayName']);

  return displayName;
};