"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DefaultIconSize",{enumerable:!0,get:function(){return _Icon.DefaultIconSize}}),exports.default=exports.defaultProps=exports.propTypes=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")),_createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass")),_possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")),_getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")),_inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits")),_defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty")),_objectSpread2=_interopRequireDefault(require("@babel/runtime/helpers/objectSpread")),_react=_interopRequireWildcard(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_Icon=_interopRequireWildcard(require("../icon/Icon")),primary_icons=_interopRequireWildcard(require("../../icons/primary_icons")),primary_icons_medium=_interopRequireWildcard(require("../../icons/primary_icons_medium")),icons=(0,_objectSpread2.default)({},primary_icons,primary_icons_medium),propTypes=(0,_objectSpread2.default)({},_Icon.default.propTypes,{icon:_propTypes.default.oneOfType([_propTypes.default.string,_propTypes.default.node,_propTypes.default.func])});exports.propTypes=propTypes;var defaultProps=(0,_objectSpread2.default)({},_Icon.default.defaultProps);exports.defaultProps=defaultProps;var IconPrimary=function(e){function r(){return(0,_classCallCheck2.default)(this,r),(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(r).apply(this,arguments))}return(0,_inherits2.default)(r,e),(0,_createClass2.default)(r,[{key:"render",value:function(){var e=(0,_Icon.prepareIcon)(this.props),r=e.icon,t=e.size,o=e.wrapperParams,i=e.iconParams,a=e.alt,p=(0,_Icon.prerenderIcon)({icon:r,size:t,alt:a,listOfIcons:icons});return p?_react.default.createElement("span",o,_react.default.createElement(p,i)):_react.default.createElement(_react.default.Fragment,null)}}],[{key:"enableWebComponent",value:function(){_Icon.default.enableWebComponent(r.tagName,r)}},{key:"getIcon",value:function(e){return _Icon.default.getIcon(e)}}]),r}(_react.PureComponent);exports.default=IconPrimary,(0,_defineProperty2.default)(IconPrimary,"tagName","dnb-icon-primary"),(0,_defineProperty2.default)(IconPrimary,"defaultProps",defaultProps),IconPrimary.propTypes="production"!==process.env.NODE_ENV?propTypes:{};
//# sourceMappingURL=IconPrimary.js.map
