"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _default = () => data => {
  if (!data) {
    return '';
  }

  const common = data.get('ns3:audit_common');

  if (!common) {
    return '';
  }

  const resource = common.get('resourceCSID');
  const date = common.get('eventDate');
  return [resource, date].filter(part => !!part).join(' – ');
};

exports.default = _default;