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,OADA,QAAQ,KAAK,wBAAwB,gDACjB,OAAO,QAAQ,cAAc,MAAM,QAAS,GACpE,EAEI,eAAiB,CAAC,EAAW,EAAM,EAAO,QAAQ,kBAAmB,EAAQ,QAAQ,sBACzF,OAAQ,GACN,IAAK,QACH,OAAO,MAAM,MAAM,eAAe,EAAM,EAAM,GAChD,IAAK,UACH,OAAO,MAAM,QAAQ,eAAe,EAAM,EAAM,GAClD,IAAK,QACH,OAAO,MAAM,MAAM,eAAe,EAAM,EAAM,GAChD,QAEE,OADA,QAAQ,KAAK,wBAAwB,gDAC9B,MAAM,QAAQ,eAAe,EAAM,EAAM,GACpD,EAEF,KAAK,eAAiB,eACtB,MAAM,mBAAqB,CAAC,EAAW,EAAM,EAAO,QAAQ,kBAAmB,EAAQ,QAAQ,sBAC7F,OAAQ,GACN,IAAK,QACH,OAAO,MAAM,MAAM,mBAAmB,EAAM,EAAM,GACpD,IAAK,UACH,OAAO,MAAM,QAAQ,mBAAmB,EAAM,EAAM,GACtD,IAAK,QACH,OAAO,MAAM,MAAM,mBAAmB,EAAM,EAAM,GACpD,QAEE,OADA,QAAQ,KAAK,wBAAwB,gDAC9B,MAAM,QAAQ,mBAAmB,EAAM,EAAM,GACxD,EAEF,KAAK,mBAAqB,mBAC1B,IAAI,SAAW,QAAQ,QAAU","file":"/npm/@react-native-vector-icons/fontawesome6@6.6.0-alpha.28/lib/commonjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@react-native-vector-icons/fontawesome6@6.6.0-alpha.28/lib/commonjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactNative = require(\"react-native\");\nvar _common = require(\"@react-native-vector-icons/common\");\nvar _FontAwesome6_brand = _interopRequireDefault(require(\"../../glyphmaps/FontAwesome6_brand.json\"));\nvar _FontAwesome6_regular = _interopRequireDefault(require(\"../../glyphmaps/FontAwesome6_regular.json\"));\nvar _FontAwesome6_solid = _interopRequireDefault(require(\"../../glyphmaps/FontAwesome6_solid.json\"));\nvar _FontAwesome6_meta = _interopRequireDefault(require(\"../../glyphmaps/FontAwesome6_meta.json\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n/* eslint-disable react/jsx-pascal-case, no-console */\n\n/**\n * FontAwesome6 icon set component.\n * Usage: <FontAwesome6 name=\"icon-name\" size={20} color=\"#4F8EF7\" />\n */\n\nconst glyphValidator = (glyph, iconType) => _FontAwesome6_meta.default[iconType]?.includes(glyph);\nconst fontStyle = fontWeight => _reactNative.Platform.select({\n  ios: {\n    fontWeight\n  },\n  default: {}\n});\nconst Icons = {\n  // biome-ignore format: We want these to be consistent adn we are fine with multiline for all\n  regular: (0, _common.createIconSet)(_FontAwesome6_regular.default, 'FontAwesome6Free-Regular', 'FontAwesome6_Regular.ttf', fontStyle('400')),\n  // biome-ignore format: We want these to be consistent adn we are fine with multiline for all\n  solid: (0, _common.createIconSet)(_FontAwesome6_solid.default, 'FontAwesome6Free-Solid', 'FontAwesome6_Solid.ttf', fontStyle('900')),\n  // biome-ignore format: We want these to be consistent adn we are fine with multiline for all\n  brand: (0, _common.createIconSet)(_FontAwesome6_brand.default, 'FontAwesome6Brands-Regular', 'FontAwesome6_Brands.ttf', fontStyle('400'))\n};\nconst Icon = props => {\n  const {\n    iconStyle,\n    name\n  } = props;\n  if (!iconStyle) {\n    return /*#__PURE__*/_react.default.createElement(Icons.regular, props);\n  }\n  if (!glyphValidator(name, iconStyle)) {\n    console.warn(`noSuchGlyph: glyph ${String(name)} does not exist for '${iconStyle}' icon type for FontAwesome6`);\n    return /*#__PURE__*/_react.default.createElement(Icons.regular, props);\n  }\n  switch (iconStyle) {\n    case 'brand':\n      return /*#__PURE__*/_react.default.createElement(Icons.brand, props);\n    case 'regular':\n      return /*#__PURE__*/_react.default.createElement(Icons.regular, props);\n    case 'solid':\n      return /*#__PURE__*/_react.default.createElement(Icons.solid, props);\n    default:\n      console.warn(`noSuchIconTypeName: '${iconStyle}' icon type does not exist for FontAwesome6`);\n      return /*#__PURE__*/_react.default.createElement(Icons.regular, props);\n  }\n};\nconst getImageSource = (iconStyle, name, size = _common.DEFAULT_ICON_SIZE, color = _common.DEFAULT_ICON_COLOR) => {\n  switch (iconStyle) {\n    case 'brand':\n      return Icons.brand.getImageSource(name, size, color);\n    case 'regular':\n      return Icons.regular.getImageSource(name, size, color);\n    case 'solid':\n      return Icons.solid.getImageSource(name, size, color);\n    default:\n      console.warn(`noSuchIconTypeName: '${iconStyle}' icon type does not exist for FontAwesome6`);\n      return Icons.regular.getImageSource(name, size, color);\n  }\n};\nIcon.getImageSource = getImageSource;\nconst getImageSourceSync = (iconStyle, name, size = _common.DEFAULT_ICON_SIZE, color = _common.DEFAULT_ICON_COLOR) => {\n  switch (iconStyle) {\n    case 'brand':\n      return Icons.brand.getImageSourceSync(name, size, color);\n    case 'regular':\n      return Icons.regular.getImageSourceSync(name, size, color);\n    case 'solid':\n      return Icons.solid.getImageSourceSync(name, size, color);\n    default:\n      console.warn(`noSuchIconTypeName: '${iconStyle}' icon type does not exist for FontAwesome6`);\n      return Icons.regular.getImageSourceSync(name, size, color);\n  }\n};\nIcon.getImageSourceSync = getImageSourceSync;\nvar _default = exports.default = Icon;\n"]}