"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),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")),_classnames=_interopRequireDefault(require("classnames")),_componentHelper=require("../../shared/component-helper"),_DescriptionList=_interopRequireDefault(require("../description-list/DescriptionList")),renderProps={},propTypes={title:_propTypes.default.string,text:_propTypes.default.string,descriptionListData:_propTypes.default.oneOfType([_propTypes.default.string,_propTypes.default.array]),descriptionListInfo:_propTypes.default.string,class:_propTypes.default.string,className:_propTypes.default.string,children:_propTypes.default.oneOfType([_propTypes.default.string,_propTypes.default.node,_propTypes.default.func])};exports.propTypes=propTypes;var defaultProps=(0,_objectSpread2.default)({title:null,text:null,descriptionListData:null,descriptionListInfo:null,class:null,className:null,children:null},renderProps);exports.defaultProps=defaultProps;var FormSummary=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=this.props,r=e.title,t=e.text,a=e.descriptionListData,l=e.descriptionListInfo,s=e.className,i=e.class,p={className:(0,_classnames.default)("dnb-form-summary",s,i)};return(0,_componentHelper.validateDOMAttributes)(this.props,p),_react.default.createElement("div",p,_react.default.createElement("div",{className:"dnb-belt"},_react.default.createElement("div",{className:"dnb-width-limit"},_react.default.createElement("div",{className:"dnb-grid dnb-grid--gutters"},_react.default.createElement("div",{className:"dnb-grid__cell u-1of3"},_react.default.createElement("div",{className:"dnb-form-summary__header"},_react.default.createElement("h2",{className:"dnb-form-summary__title typo-light"},r),_react.default.createElement("p",{className:"dnb-form-summary__info dnb-typo-book"},t))),_react.default.createElement("div",{className:"dnb-grid__cell"},_react.default.createElement("div",{className:"dnb-form-summary__list"},_react.default.createElement(_DescriptionList.default,{data:a,info:l})))))))}}],[{key:"enableWebComponent",value:function(){(0,_componentHelper.registerElement)(r.tagName,r,defaultProps)}}]),r}(_react.PureComponent);exports.default=FormSummary,(0,_defineProperty2.default)(FormSummary,"tagName","dnb-form-summary"),(0,_defineProperty2.default)(FormSummary,"defaultProps",defaultProps),FormSummary.propTypes="production"!==process.env.NODE_ENV?propTypes:{};
//# sourceMappingURL=FormSummary.js.map
