'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _react3 = require('@storybook/react');

var _addonKnobs = require('@storybook/addon-knobs');

var _index = require('./index');

var _index2 = _interopRequireDefault(_index);

var _InputCurrencyKnobs = require('./InputCurrency.knobs.options');

var _InputCurrencyKnobs2 = _interopRequireDefault(_InputCurrencyKnobs);

var _InputCurrency = require('./InputCurrency.md');

var _InputCurrency2 = _interopRequireDefault(_InputCurrency);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _react3.storiesOf)('forms|atoms', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('InputCurrency', function () {
  var inputTextOptionsWithKnobs = Object.assign.apply(Object, Object.entries(_InputCurrencyKnobs2.default).map(function (_ref) {
    var _ref2;

    var k = _ref[0],
        v = _ref[1];
    return _ref2 = {}, _ref2[k] = v(), _ref2;
  }));
  var languages = new Map();
  languages.set('Chinese', 'zh-CN');
  languages.set('English', 'en-US');
  languages.set('French', 'fr-FR');
  languages.set('Russian', 'ru-RU');
  inputTextOptionsWithKnobs.language = languages.get(inputTextOptionsWithKnobs.language);
  return _react2.default.createElement(_index2.default, inputTextOptionsWithKnobs);
}, { info: _InputCurrency2.default });