"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")),_possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")),_getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")),_assertThisInitialized2=_interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")),_createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass")),_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={},propTypes={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)({class:null,className:null,children:null},renderProps);exports.defaultProps=defaultProps;var Form=function(e){function t(e){var r;return(0,_classCallCheck2.default)(this,t),r=(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(t).call(this,e)),(0,_defineProperty2.default)((0,_assertThisInitialized2.default)(r),"state",{value:null}),r.state.value=e.range_val,r}return(0,_inherits2.default)(t,e),(0,_createClass2.default)(t,null,[{key:"enableWebComponent",value:function(){(0,_componentHelper.registerElement)(t.tagName,t,defaultProps)}}]),(0,_createClass2.default)(t,[{key:"render",value:function(){var e=this.props,r=e.children,t=e.className,a=e.class,l={className:(0,_classnames.default)("dnb-form",t,a)};return(0,_componentHelper.validateDOMAttributes)(this.props,l),_react.default.createElement("form",l,r)}}]),t}(_react.PureComponent);exports.default=Form,(0,_defineProperty2.default)(Form,"tagName","dnb-form"),(0,_defineProperty2.default)(Form,"defaultProps",defaultProps),Form.propTypes="production"!==process.env.NODE_ENV?propTypes:{};
//# sourceMappingURL=Form.js.map
