'use strict';

var _templateObject = _taggedTemplateLiteral(['\n  ', '\n'], ['\n  ', '\n']);

var _styledComponents = require('styled-components');

var _icomoon = require('./fonts/icomoon.eot');

var _icomoon2 = _interopRequireDefault(_icomoon);

var _icomoon3 = require('./fonts/icomoon.svg');

var _icomoon4 = _interopRequireDefault(_icomoon3);

var _icomoon5 = require('./fonts/icomoon.ttf');

var _icomoon6 = _interopRequireDefault(_icomoon5);

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

function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }

var FontFace = function FontFace(name, eot, svg, ttf, weight) {
  return '\n    @font-face {\n      font-family: \'' + name + '\';\n      src: url(' + eot + ');\n      src: url(\'' + eot + '?#iefix\') format(\'embedded-opentype\'),\n          url(\'' + ttf + '\') format(\'truetype\'),\n          url(\'' + svg + '\') format(\'svg\');\n      font-weight: ' + weight + ';\n      font-style: normal;\n      font-stretch: normal;\n    }\n  ';
};

var Icomoon = FontFace('icomoon', _icomoon2.default, _icomoon4.default, _icomoon6.default, 'normal');

// Fonts management
(0, _styledComponents.injectGlobal)(_templateObject, Icomoon);