b3cab816a516bf5c7faa63323e5b9125.json 1.72 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=_default;var _createIconSet=_interopRequireDefault(require(\"./createIconSet\"));function _default(config,expoFontName,expoAssetId){var glyphMap={};config.icons.forEach(function(icon){icon.properties.name.split(/\\s*,\\s*/g).forEach(function(name){glyphMap[name]=icon.properties.code;});});var fontFamily=expoFontName||config.preferences.fontPref.metadata.fontFamily;return(0,_createIconSet.default)(glyphMap,fontFamily,expoAssetId||fontFamily+\".ttf\");}","map":{"version":3,"sources":["../src/createIconSetFromIcoMoon.ts"],"names":[],"mappings":"qKAAA,sEAEc,kBAAU,MAAV,CAAkB,YAAlB,CAAgC,WAAhC,CAA2C,CACvD,GAAM,CAAA,QAAQ,CAAG,EAAjB,CACA,MAAM,CAAC,KAAP,CAAa,OAAb,CAAqB,SAAA,IAAI,CAAG,CAC1B,IAAI,CAAC,UAAL,CAAgB,IAAhB,CAAqB,KAArB,CAA2B,UAA3B,EAAuC,OAAvC,CAA+C,SAAA,IAAI,CAAG,CACpD,QAAQ,CAAC,IAAD,CAAR,CAAiB,IAAI,CAAC,UAAL,CAAgB,IAAjC,CACD,CAFD,EAGD,CAJD,EAMA,GAAM,CAAA,UAAU,CACd,YAAY,EAAI,MAAM,CAAC,WAAP,CAAmB,QAAnB,CAA4B,QAA5B,CAAqC,UADvD,CAGA,MAAO,2BACL,QADK,CAEL,UAFK,CAGL,WAAW,EAAO,UAAP,OAHN,CAAP,CAKD","sourcesContent":["import createIconSet from \"./createIconSet\";\n\nexport default function(config, expoFontName, expoAssetId) {\n  const glyphMap = {};\n  config.icons.forEach(icon => {\n    icon.properties.name.split(/\\s*,\\s*/g).forEach(name => {\n      glyphMap[name] = icon.properties.code;\n    });\n  });\n\n  const fontFamily =\n    expoFontName || config.preferences.fontPref.metadata.fontFamily;\n\n  return createIconSet(\n    glyphMap,\n    fontFamily,\n    expoAssetId || `${fontFamily}.ttf`\n  );\n}\n"],"sourceRoot":""},"metadata":{},"sourceType":"script"}