"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));require("core-js/modules/es6.regexp.split");var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")),_react=_interopRequireDefault(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_classnames=_interopRequireDefault(require("classnames")),_Element=_interopRequireDefault(require("./Element")),P=function(e){var t=e.style_type,r=e.className,s=(0,_objectWithoutProperties2.default)(e,["style_type","className"]);return t&&(r=/ /.test(t)?(t=t.split(/ /g).reduce(function(e,t){return"".concat(e," dnb-p--").concat(t)},""),(0,_classnames.default)(t,r)):(0,_classnames.default)("dnb-p--".concat(t),r)),_react.default.createElement(_Element.default,(0,_extends2.default)({is:"p"},s,{className:r}))};P.tagName="dnb-p",P.propTypes="production"!==process.env.NODE_ENV?{className:_propTypes.default.string,style_type:_propTypes.default.string}:{},P.defaultProps={className:null,style_type:null};var _default=P;exports.default=_default;
//# sourceMappingURL=P.js.map
