"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"),renderProps={render_content:null},propTypes={class:_propTypes.default.string,className:_propTypes.default.string,children:_propTypes.default.oneOfType([_propTypes.default.string,_propTypes.default.node,_propTypes.default.func]),render_content:_propTypes.default.func};exports.propTypes=propTypes;var defaultProps=(0,_objectSpread2.default)({class:null,className:null,children:null},renderProps);exports.defaultProps=defaultProps;var Footer=function(e){function n(){return(0,_classCallCheck2.default)(this,n),(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(n).apply(this,arguments))}return(0,_inherits2.default)(n,e),(0,_createClass2.default)(n,[{key:"render",value:function(){var e=this.props,r=e.className,t=e.class,p=n.getContent(this.props),o={className:(0,_classnames.default)("dnb-footer",r,t)};return(0,_componentHelper.validateDOMAttributes)(this.props,o),_react.default.createElement("div",o,p)}}],[{key:"enableWebComponent",value:function(){(0,_componentHelper.registerElement)(n.tagName,n,defaultProps)}},{key:"getContent",value:function(e){return"function"==typeof e.render_content?e.render_content(e):(0,_componentHelper.processChildren)(e)}}]),n}(_react.PureComponent);exports.default=Footer,(0,_defineProperty2.default)(Footer,"tagName","dnb-footer"),(0,_defineProperty2.default)(Footer,"defaultProps",defaultProps),Footer.propTypes="production"!==process.env.NODE_ENV?propTypes:{};
//# sourceMappingURL=Footer.js.map
