'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, 'locations_common');

  if (!common) {
    return '';
  }

  const displayName = deepGet(common, ['locTermGroupList', 'locTermGroup', 0, 'termDisplayName']);

  return displayName;
};