'use strict';

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

var dataZoomProcessor = require('./dataZoomProcessor.js');
var dataZoomAction = require('./dataZoomAction.js');

var installed = false;
function installCommon(registers) {
  if (installed) {
    return;
  }
  installed = true;
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, dataZoomProcessor.default);
  dataZoomAction.default(registers);
  registers.registerSubTypeDefaulter('dataZoom', function () {
    // Default 'slider' when no type specified.
    return 'slider';
  });
}

exports.default = installCommon;
