'use strict';

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

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


  if (!data) {
    return '';
  }

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

  if (!common) {
    return '';
  }

  const displayName = deepGet(common, ['placeTermGroupList', 'placeTermGroup', 0, 'termDisplayName']);

  return displayName;
};