"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")),_createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass")),_inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits")),_possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")),_getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")),_defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty")),React=_interopRequireWildcard(require("react")),_Grid=_interopRequireDefault(require("@material-ui/core/Grid")),_withStyles=_interopRequireDefault(require("../../hoc/withStyles")),_ErrorBoundary=_interopRequireDefault(require("../../hoc/ErrorBoundary")),_FormikTextField=_interopRequireDefault(require("../../bosons/TextField/FormikTextField")),_styles=_interopRequireDefault(require("./styles"));function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var result,Super=(0,_getPrototypeOf2["default"])(Derived);if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2["default"])(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return(0,_possibleConstructorReturn2["default"])(this,result)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var CustomerForm=/*#__PURE__*/function(_React$Component){function CustomerForm(){return(0,_classCallCheck2["default"])(this,CustomerForm),_super.apply(this,arguments)}(0,_inherits2["default"])(CustomerForm,_React$Component);var _super=_createSuper(CustomerForm);return(0,_createClass2["default"])(CustomerForm,[{key:"render",value:function render(){var _this$props=this.props,classes=_this$props.classes,keys=_this$props.keys,labels=_this$props.labels;return/*#__PURE__*/React.createElement(_ErrorBoundary["default"],null,/*#__PURE__*/React.createElement("div",{className:classes.component},/*#__PURE__*/React.createElement(_Grid["default"],{container:!0,spacing:16},/*#__PURE__*/React.createElement(_Grid["default"],{item:!0,xs:12},/*#__PURE__*/React.createElement(_FormikTextField["default"],{label:labels.customer_name,placeholder:"E.g: Google",name:keys.customer_name,id:keys.customer_name,showClearIcon:!1})),/*#__PURE__*/React.createElement(_Grid["default"],{item:!0,xs:12,sm:6},/*#__PURE__*/React.createElement(_FormikTextField["default"],{label:labels.contact_name,placeholder:"E.g: John",name:keys.contact_name,id:keys.contact_name,showClearIcon:!1})),/*#__PURE__*/React.createElement(_Grid["default"],{item:!0,xs:12,sm:6},/*#__PURE__*/React.createElement(_FormikTextField["default"],{label:labels.contact_surname,placeholder:"E.g: Doe",name:keys.contact_surname,id:keys.contact_surname,showClearIcon:!1})),/*#__PURE__*/React.createElement(_Grid["default"],{item:!0,xs:12,sm:6},/*#__PURE__*/React.createElement(_FormikTextField["default"],{label:labels.abn,placeholder:"E.g: 123456789",name:keys.abn,id:keys.abn,showClearIcon:!1})),/*#__PURE__*/React.createElement(_Grid["default"],{item:!0,xs:12,sm:6},/*#__PURE__*/React.createElement(_FormikTextField["default"],{label:labels.email,placeholder:"E.g: abc@google.com",name:keys.email,id:keys.email,showClearIcon:!1})))))}}]),CustomerForm}(React.Component);(0,_defineProperty2["default"])(CustomerForm,"defaultProps",{keys:{customer_name:"customer_name",contact_name:"contact_name",contact_surname:"contact_surname",abn:"abn",email:"email"},labels:{customer_name:"Customer Name",contact_name:"Contact Name",contact_surname:"Contact Surname",abn:"ABN",email:"Email"}});var _default=(0,_withStyles["default"])(_styles["default"])(CustomerForm);exports["default"]=_default;