'use strict';

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

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

exports.default = function (pluginContext) {
  var _document;

  var CompoundInput = pluginContext.inputComponents.CompoundInput;
  var config = pluginContext.configHelpers.configKey;


  return {
    document: (_document = {}, _defineProperty(_document, config, {
      view: {
        type: CompoundInput,
        props: {
          defaultChildSubpath: 'ns2:media_common'
        }
      }
    }), _defineProperty(_document, 'ns2:media_common', _defineProperty({}, config, {
      service: {
        ns: 'http://collectionspace.org/services/media'
      }
    })), _document)
  };
};