'use strict';

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

var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');

var createFormatterArgs = function createFormatterArgs(props, options) {
  return _rollupPluginBabelHelpers.objectSpread2({
    decimalScale: props.decimalScale,
    thousandsGroupStyle: props.thousandsGroupStyle,
    thousandSeparator: props.thousandSeparator,
    decimalSeparator: props.decimalSeparator,
    fixedDecimalScale: props.fixedDecimalScale,
    allowNegative: true,
    allowLeadingZeros: false
  }, options);
};
var createNormalizedFormatterArgs = function createNormalizedFormatterArgs(props) {
  return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, createFormatterArgs(props)), {}, {
    thousandSeparator: '',
    decimalSeparator: '.',
    thousandsGroupStyle: 'none'
  });
};

exports.createFormatterArgs = createFormatterArgs;
exports.createNormalizedFormatterArgs = createNormalizedFormatterArgs;
