{"version":3,"sources":["webpack://eva/webpack/universalModuleDefinition","webpack://eva/webpack/bootstrap","webpack://eva/./node_modules/classnames/dedupe.js","webpack://eva/./package/src/animation.scss","webpack://eva/./node_modules/css-loader/lib/css-base.js","webpack://eva/./node_modules/isomorphic-style-loader/insertCss.js","webpack://eva/./package/src/animation.scss?88b3","webpack://eva/./package/src/icon.js","webpack://eva/./package/src/icons.js","webpack://eva/./package/src/index.js","webpack://eva/./package/src/replace.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__WEBPACK_AMD_DEFINE_RESULT__","classNames","StorageObject","_parseArray","resultSet","array","length","_parse","hasOwn","SPACE","arg","argType","str","split","_parseString","Array","isArray","k","_parseObject","len","arguments","args","classSet","list","push","join","default","undefined","apply","useSourceMap","toString","map","item","content","cssMapping","btoa","sourceMapping","sourceMap","unescape","encodeURIComponent","JSON","stringify","sourceURLs","sources","source","sourceRoot","concat","cssWithMappingToString","mediaQuery","alreadyImportedModules","id","inserted","styles","_temp","_ref","_ref$replace","replace","_ref$prepend","prepend","_ref$prefix","prefix","ids","_styles$i","css","media","elem","document","getElementById","createElement","setAttribute","cssText","match","p1","String","fromCharCode","file","textContent","styleSheet","head","insertBefore","childNodes","appendChild","forEach","parentNode","removeChild","insertCss","locals","_getContent","_getCss","_insertCss","options","defaultAnimationOptions","hover","isString","Icon","contents","_classCallCheck","attrs","_objectSpread","DEFAULT_ATTRS","class","animation","remAttrs","_objectWithoutProperties","animationOptions","parse","mergedAnimationOptions","animationType","type","classnames","eva-animation","eva-infinite","infinite","getAnimationOptions","animationClasses","combinedAttrs","svg","keys","__webpack_exports__","_icon__WEBPACK_IMPORTED_MODULE_0__","_package_build_eva_icons_json__WEBPACK_IMPORTED_MODULE_1__","icons","reduce","icon","_icons__WEBPACK_IMPORTED_MODULE_0__","_replace__WEBPACK_IMPORTED_MODULE_1__","_animation_scss__WEBPACK_IMPORTED_MODULE_2__","window","style","animationKeys","data-eva-animation","data-eva-hover","data-eva-infinite","dataAttributesKeys","data-eva","data-eva-width","data-eva-height","data-eva-fill","Error","elementsToReplace","querySelectorAll","from","element","optionsAnimation","elementAttrsAnimation","_getAttrs","attributes","attr","_defineProperty","elementAttrs","svgString","toSvg","svgDocument","DOMParser","parseFromString","svgElement","querySelector","replaceChild","replaceElement"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,SAAAH,GACA,iBAAAC,QACAA,QAAA,IAAAD,IAEAD,EAAA,IAAAC,IARA,CASC,oBAAAK,UAAAC,KAAA,WACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAR,QAGA,IAAAC,EAAAK,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAV,QAAA,IAUA,OANAW,EAAAH,GAAAI,KAAAX,EAAAD,QAAAC,IAAAD,QAAAO,GAGAN,EAAAS,GAAA,EAGAT,EAAAD,QA0DA,OArDAO,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAf,EAAAgB,EAAAC,GACAV,EAAAW,EAAAlB,EAAAgB,IACAG,OAAAC,eAAApB,EAAAgB,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CV,EAAAgB,EAAA,SAAAvB,GACA,oBAAAwB,eAAAC,aACAN,OAAAC,eAAApB,EAAAwB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAApB,EAAA,cAAiD0B,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,KAA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AAKlK,QAZXgH,GACN,KAhCK1H,EADqC0K,EACrC1K,KAAS8K,EAD4B9C,EAAA0C,EAAA,UAGvCK,EAAY7B,UAAMlJ,GAAMgL,MAAZrD,EAAA,GACbR,EACA2D,EAFa,CAGhBhD,WA0CwB0C,EA1CMrD,EAAQW,UA0CI2C,EA1COK,EAAahD,UA2C5D0C,GAAoBC,EACtB9C,EAAA,GACK6C,EACAC,GAIA,OAjDF,CAAE5C,MAAOS,IAAWnB,EAAQU,MAAOiD,EAAajD,UAE/CoD,GAAc,IAAIC,WAAYC,gBAClCJ,EACA,aAEIK,EAAaH,EAAYI,cAAc,eAAiBJ,EAAYI,cAAc,OAExFd,EAAQ3D,WAAW0E,aAAaF,EAAYb,GAnB1CgB,CAAehB,EAASpD","file":"eva.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"eva\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"eva\"] = factory();\n\telse\n\t\troot[\"eva\"] = factory();\n})(typeof self !== \"undefined\" ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./package/src/index.js\");\n","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar classNames = (function () {\n\t\t// don't inherit from Object so we can skip hasOwnProperty check later\n\t\t// http://stackoverflow.com/questions/15518328/creating-js-object-with-object-createnull#answer-21079232\n\t\tfunction StorageObject() {}\n\t\tStorageObject.prototype = Object.create(null);\n\n\t\tfunction _parseArray (resultSet, array) {\n\t\t\tvar length = array.length;\n\n\t\t\tfor (var i = 0; i < length; ++i) {\n\t\t\t\t_parse(resultSet, array[i]);\n\t\t\t}\n\t\t}\n\n\t\tvar hasOwn = {}.hasOwnProperty;\n\n\t\tfunction _parseNumber (resultSet, num) {\n\t\t\tresultSet[num] = true;\n\t\t}\n\n\t\tfunction _parseObject (resultSet, object) {\n\t\t\tfor (var k in object) {\n\t\t\t\tif (hasOwn.call(object, k)) {\n\t\t\t\t\t// set value to false instead of deleting it to avoid changing object structure\n\t\t\t\t\t// https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/#de-referencing-misconceptions\n\t\t\t\t\tresultSet[k] = !!object[k];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvar SPACE = /\\s+/;\n\t\tfunction _parseString (resultSet, str) {\n\t\t\tvar array = str.split(SPACE);\n\t\t\tvar length = array.length;\n\n\t\t\tfor (var i = 0; i < length; ++i) {\n\t\t\t\tresultSet[array[i]] = true;\n\t\t\t}\n\t\t}\n\n\t\tfunction _parse (resultSet, arg) {\n\t\t\tif (!arg) return;\n\t\t\tvar argType = typeof arg;\n\n\t\t\t// 'foo bar'\n\t\t\tif (argType === 'string') {\n\t\t\t\t_parseString(resultSet, arg);\n\n\t\t\t// ['foo', 'bar', ...]\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t_parseArray(resultSet, arg);\n\n\t\t\t// { 'foo': true, ... }\n\t\t\t} else if (argType === 'object') {\n\t\t\t\t_parseObject(resultSet, arg);\n\n\t\t\t// '130'\n\t\t\t} else if (argType === 'number') {\n\t\t\t\t_parseNumber(resultSet, arg);\n\t\t\t}\n\t\t}\n\n\t\tfunction _classNames () {\n\t\t\t// don't leak arguments\n\t\t\t// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments\n\t\t\tvar len = arguments.length;\n\t\t\tvar args = Array(len);\n\t\t\tfor (var i = 0; i < len; i++) {\n\t\t\t\targs[i] = arguments[i];\n\t\t\t}\n\n\t\t\tvar classSet = new StorageObject();\n\t\t\t_parseArray(classSet, args);\n\n\t\t\tvar list = [];\n\n\t\t\tfor (var k in classSet) {\n\t\t\t\tif (classSet[k]) {\n\t\t\t\t\tlist.push(k)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn list.join(' ');\n\t\t}\n\n\t\treturn _classNames;\n\t})();\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"/**\\n * @license\\n * Copyright Akveo. All Rights Reserved.\\n * Licensed under the MIT License. See License.txt in the project root for license information.\\n */\\n.eva-animation {\\n animation-duration: 1s;\\n animation-fill-mode: both; }\\n\\n.eva-infinite {\\n animation-iteration-count: infinite; }\\n\\n.eva-icon-shake {\\n animation-name: eva-shake; }\\n\\n.eva-icon-zoom {\\n animation-name: eva-zoomIn; }\\n\\n.eva-icon-pulse {\\n animation-name: eva-pulse; }\\n\\n.eva-icon-flip {\\n animation-name: eva-flipInY; }\\n\\n.eva-hover {\\n display: inline-block; }\\n\\n.eva-hover:hover .eva-icon-hover-shake, .eva-parent-hover:hover .eva-icon-hover-shake {\\n animation-name: eva-shake; }\\n\\n.eva-hover:hover .eva-icon-hover-zoom, .eva-parent-hover:hover .eva-icon-hover-zoom {\\n animation-name: eva-zoomIn; }\\n\\n.eva-hover:hover .eva-icon-hover-pulse, .eva-parent-hover:hover .eva-icon-hover-pulse {\\n animation-name: eva-pulse; }\\n\\n.eva-hover:hover .eva-icon-hover-flip, .eva-parent-hover:hover .eva-icon-hover-flip {\\n animation-name: eva-flipInY; }\\n\\n@keyframes eva-flipInY {\\n from {\\n transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\\n animation-timing-function: ease-in;\\n opacity: 0; }\\n 40% {\\n transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\\n animation-timing-function: ease-in; }\\n 60% {\\n transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\\n opacity: 1; }\\n 80% {\\n transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }\\n to {\\n transform: perspective(400px); } }\\n\\n@keyframes eva-shake {\\n from,\\n to {\\n transform: translate3d(0, 0, 0); }\\n 10%,\\n 30%,\\n 50%,\\n 70%,\\n 90% {\\n transform: translate3d(-3px, 0, 0); }\\n 20%,\\n 40%,\\n 60%,\\n 80% {\\n transform: translate3d(3px, 0, 0); } }\\n\\n@keyframes eva-pulse {\\n from {\\n transform: scale3d(1, 1, 1); }\\n 50% {\\n transform: scale3d(1.2, 1.2, 1.2); }\\n to {\\n transform: scale3d(1, 1, 1); } }\\n\\n@keyframes eva-zoomIn {\\n from {\\n opacity: 1;\\n transform: scale3d(0.5, 0.5, 0.5); }\\n 50% {\\n opacity: 1; } }\\n\", \"\"]);\n\n// exports\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n","/*! Isomorphic Style Loader | MIT License | https://github.com/kriasoft/isomorphic-style-loader */\n\n'use strict';\n\nvar inserted = {};\n\nfunction b64EncodeUnicode(str) {\n return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n return String.fromCharCode(\"0x\" + p1);\n }));\n}\n\nfunction removeCss(ids) {\n ids.forEach(function (id) {\n if (--inserted[id] <= 0) {\n var elem = document.getElementById(id);\n\n if (elem) {\n elem.parentNode.removeChild(elem);\n }\n }\n });\n}\n\nfunction insertCss(styles, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$replace = _ref.replace,\n replace = _ref$replace === void 0 ? false : _ref$replace,\n _ref$prepend = _ref.prepend,\n prepend = _ref$prepend === void 0 ? false : _ref$prepend,\n _ref$prefix = _ref.prefix,\n prefix = _ref$prefix === void 0 ? 's' : _ref$prefix;\n\n var ids = [];\n\n for (var i = 0; i < styles.length; i++) {\n var _styles$i = styles[i],\n moduleId = _styles$i[0],\n css = _styles$i[1],\n media = _styles$i[2],\n sourceMap = _styles$i[3];\n var id = \"\" + prefix + moduleId + \"-\" + i;\n ids.push(id);\n\n if (inserted[id]) {\n if (!replace) {\n inserted[id]++;\n continue;\n }\n }\n\n inserted[id] = 1;\n var elem = document.getElementById(id);\n var create = false;\n\n if (!elem) {\n create = true;\n elem = document.createElement('style');\n elem.setAttribute('type', 'text/css');\n elem.id = id;\n\n if (media) {\n elem.setAttribute('media', media);\n }\n }\n\n var cssText = css;\n\n if (sourceMap && typeof btoa === 'function') {\n cssText += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + b64EncodeUnicode(JSON.stringify(sourceMap)) + \"*/\";\n cssText += \"\\n/*# sourceURL=\" + sourceMap.file + \"?\" + id + \"*/\";\n }\n\n if ('textContent' in elem) {\n elem.textContent = cssText;\n } else {\n elem.styleSheet.cssText = cssText;\n }\n\n if (create) {\n if (prepend) {\n document.head.insertBefore(elem, document.head.childNodes[0]);\n } else {\n document.head.appendChild(elem);\n }\n }\n }\n\n return removeCss.bind(null, ids);\n}\n\nmodule.exports = insertCss;\n//# sourceMappingURL=insertCss.js.map\n","\n var refs = 0;\n var css = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./animation.scss\");\n var insertCss = require(\"!../../node_modules/isomorphic-style-loader/insertCss.js\");\n var content = typeof css === 'string' ? [[module.id, css, '']] : css;\n\n exports = module.exports = css.locals || {};\n exports._getContent = function() { return content; };\n exports._getCss = function() { return '' + css; };\n exports._insertCss = function(options) { return insertCss(content, options) };\n\n // Hot Module Replacement\n // https://webpack.github.io/docs/hot-module-replacement\n // Only activated in browser context\n if (module.hot && typeof window !== 'undefined' && window.document) {\n var removeCss = function() {};\n module.hot.accept(\"!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./animation.scss\", function() {\n css = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./animation.scss\");\n content = typeof css === 'string' ? [[module.id, css, '']] : css;\n removeCss = insertCss(content, { replace: true });\n });\n module.hot.dispose(function() { removeCss(); });\n }\n ","/**\n * @license\n * Copyright Akveo. All Rights Reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n */\n\nimport classnames from 'classnames/dedupe';\n\nimport DEFAULT_ATTRS from './default-attrs.json';\nconst defaultAnimationOptions = {\n hover: true,\n};\n\nconst isString = (value) => typeof value === 'string' || value instanceof String;\n\nclass Icon {\n constructor(name, contents) {\n this.name = name;\n this.contents = contents;\n this.attrs = {\n ...DEFAULT_ATTRS,\n ...{ class: `eva eva-${name}` },\n };\n }\n\n toSvg(attrs = {}) {\n const { animation, ...remAttrs } = attrs;\n const animationOptions = getAnimationOptions(animation);\n const animationClasses = animationOptions ? animationOptions.class : '';\n const combinedAttrs = {\n ...this.attrs,\n ...remAttrs,\n ...{ class: classnames(this.attrs.class, attrs.class, animationClasses) },\n };\n const svg = `<svg ${attrsToString(combinedAttrs)}>${this.contents}</svg>`;\n\n return !!animationOptions ? animationOptions.hover ? `<i class=\"eva-hover\">${svg}</i>` : svg : svg;\n }\n\n toString() {\n return this.contents;\n }\n}\n\nfunction getAnimationOptions(animation) {\n if (!animation) {\n return null;\n }\n\n if (animation.hover) {\n animation.hover = isString(animation.hover) ? JSON.parse(animation.hover) : animation.hover;\n }\n\n const mergedAnimationOptions = {\n ...defaultAnimationOptions,\n ...animation,\n };\n const animationType = mergedAnimationOptions.hover ?\n `eva-icon-hover-${mergedAnimationOptions.type}` :\n `eva-icon-${mergedAnimationOptions.type}`;\n mergedAnimationOptions.class = classnames(\n {\n 'eva-animation': true,\n 'eva-infinite': isString(animation.infinite) ? JSON.parse(animation.infinite) : animation.infinite,\n },\n animationType,\n );\n\n return mergedAnimationOptions;\n}\n\nfunction attrsToString(attrs) {\n return Object.keys(attrs)\n .map(key => `${key}=\"${attrs[key]}\"`)\n .join(' ');\n}\n\nexport default Icon;\n","/**\n * @license\n * Copyright Akveo. All Rights Reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n */\n\nimport Icon from './icon';\nimport icons from '../../package-build/eva-icons.json';\n\nexport default Object.keys(icons)\n .map(key => new Icon(key, icons[key]))\n .reduce((object, icon) => {\n object[icon.name] = icon;\n\n return object;\n }, {});\n","/**\n * @license\n * Copyright Akveo. All Rights Reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n */\n\nimport icons from './icons';\nimport replace from './replace';\nimport style from './animation.scss';\n\nif (typeof window !== 'undefined') {\n style._insertCss();\n}\n\nexport { icons, replace };\n","/**\n * @license\n * Copyright Akveo. All Rights Reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n */\n\nimport classnames from 'classnames/dedupe';\n\nimport icons from './icons';\n\nconst animationKeys = {\n 'data-eva-animation': 'type',\n 'data-eva-hover': 'hover',\n 'data-eva-infinite': 'infinite',\n};\nconst dataAttributesKeys = {\n 'data-eva': 'name',\n 'data-eva-width': 'width',\n 'data-eva-height': 'height',\n 'data-eva-fill': 'fill',\n};\n\nfunction replace(options = {}) {\n if (typeof document === 'undefined') {\n throw new Error('`eva.replace()` only works in a browser environment.');\n }\n\n const elementsToReplace = document.querySelectorAll('[data-eva]');\n\n Array.from(elementsToReplace).forEach(element =>\n replaceElement(element, options),\n );\n}\n\nfunction replaceElement(element, options = {}) {\n const { name, ...elementAttrs } = getAttrs(element);\n\n const svgString = icons[name].toSvg({\n ...options,\n ...elementAttrs,\n animation: getAnimationObject(options.animation, elementAttrs.animation),\n ...{ class: classnames(options.class, elementAttrs.class) },\n });\n const svgDocument = new DOMParser().parseFromString(\n svgString,\n 'text/html',\n );\n const svgElement = svgDocument.querySelector('.eva-hover') || svgDocument.querySelector('svg');\n\n element.parentNode.replaceChild(svgElement, element);\n}\n\nfunction getAttrs(element) {\n return Array.from(element.attributes).reduce((attrs, attr) => {\n if (!!animationKeys[attr.name]) {\n attrs['animation'] = {\n ...attrs['animation'],\n [animationKeys[attr.name]]: attr.value,\n };\n } else {\n attrs = {\n ...attrs,\n ...getAttr(attr),\n };\n }\n\n return attrs;\n }, {});\n}\n\nfunction getAttr(attr) {\n if (!!dataAttributesKeys[attr.name]) {\n return ({\n [dataAttributesKeys[attr.name]]: attr.value,\n });\n }\n\n return ({\n [attr.name]: attr.value,\n });\n}\n\nfunction getAnimationObject(optionsAnimation, elementAttrsAnimation) {\n if (optionsAnimation || elementAttrsAnimation) {\n return ({\n ...optionsAnimation,\n ...elementAttrsAnimation,\n });\n }\n\n return null;\n}\n\nexport default replace;\n"],"sourceRoot":""}