{"version":3,"file":"Form-DO-L0_1P.js","sources":["../../../node_modules/reactstrap/es/Form.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nvar _excluded = [\"className\", \"cssModule\", \"inline\", \"tag\", \"innerRef\"];\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n children: PropTypes.node,\n inline: PropTypes.bool,\n tag: tagPropType,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'form'\n};\n\nvar Form = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Form, _Component);\n\n function Form(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n _this.getRef = _this.getRef.bind(_assertThisInitialized(_this));\n _this.submit = _this.submit.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n var _proto = Form.prototype;\n\n _proto.getRef = function getRef(ref) {\n if (this.props.innerRef) {\n this.props.innerRef(ref);\n }\n\n this.ref = ref;\n };\n\n _proto.submit = function submit() {\n if (this.ref) {\n this.ref.submit();\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n className = _this$props.className,\n cssModule = _this$props.cssModule,\n inline = _this$props.inline,\n Tag = _this$props.tag,\n innerRef = _this$props.innerRef,\n attributes = _objectWithoutPropertiesLoose(_this$props, _excluded);\n\n var classes = mapToCssModules(classNames(className, inline ? 'form-inline' : false), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n ref: innerRef,\n className: classes\n }));\n };\n\n return Form;\n}(Component);\n\nForm.propTypes = propTypes;\nForm.defaultProps = defaultProps;\nexport default Form;"],"names":["_excluded","propTypes","PropTypes","tagPropType","defaultProps","Form","_Component","_inheritsLoose","props","_this","_assertThisInitialized","_proto","ref","_this$props","className","cssModule","inline","Tag","innerRef","attributes","_objectWithoutPropertiesLoose","classes","mapToCssModules","classNames","React","_extends","Component"],"mappings":"6MAIA,IAAIA,EAAY,CAAC,YAAa,YAAa,SAAU,MAAO,UAAU,EAKlEC,EAAY,CACd,SAAUC,EAAU,KACpB,OAAQA,EAAU,KAClB,IAAKC,EACL,SAAUD,EAAU,UAAU,CAACA,EAAU,OAAQA,EAAU,KAAMA,EAAU,MAAM,CAAC,EAClF,UAAWA,EAAU,OACrB,UAAWA,EAAU,MACvB,EACIE,EAAe,CACjB,IAAK,MACP,EAEIC,EAAoB,SAAUC,EAAY,CAC5CC,EAAeF,EAAMC,CAAU,EAE/B,SAASD,EAAKG,EAAO,CACnB,IAAIC,EAEJ,OAAAA,EAAQH,EAAW,KAAK,KAAME,CAAK,GAAK,KACxCC,EAAM,OAASA,EAAM,OAAO,KAAKC,EAAuBD,CAAK,CAAC,EAC9DA,EAAM,OAASA,EAAM,OAAO,KAAKC,EAAuBD,CAAK,CAAC,EACvDA,CACR,CAED,IAAIE,EAASN,EAAK,UAElB,OAAAM,EAAO,OAAS,SAAgBC,EAAK,CAC/B,KAAK,MAAM,UACb,KAAK,MAAM,SAASA,CAAG,EAGzB,KAAK,IAAMA,CACf,EAEED,EAAO,OAAS,UAAkB,CAC5B,KAAK,KACP,KAAK,IAAI,QAEf,EAEEA,EAAO,OAAS,UAAkB,CAChC,IAAIE,EAAc,KAAK,MACnBC,EAAYD,EAAY,UACxBE,EAAYF,EAAY,UACxBG,EAASH,EAAY,OACrBI,EAAMJ,EAAY,IAClBK,EAAWL,EAAY,SACvBM,EAAaC,EAA8BP,EAAab,CAAS,EAEjEqB,EAAUC,EAAgBC,EAAWT,EAAWE,EAAS,cAAgB,EAAK,EAAGD,CAAS,EAC9F,OAAoBS,EAAM,cAAcP,EAAKQ,EAAS,CAAA,EAAIN,EAAY,CACpE,IAAKD,EACL,UAAWG,CACZ,CAAA,CAAC,CACN,EAEShB,CACT,EAAEqB,WAAS,EAEXrB,EAAK,UAAYJ,EACjBI,EAAK,aAAeD","x_google_ignoreList":[0]}