"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")),_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")),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")),AddressForm=/*#__PURE__*/function(_React$Component){function AddressForm(){return(0,_classCallCheck2.default)(this,AddressForm),(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(AddressForm).apply(this,arguments))}return(0,_inherits2.default)(AddressForm,_React$Component),(0,_createClass2.default)(AddressForm,[{key:"render",value:function render(){var _this$props=this.props,classes=_this$props.classes,keys=_this$props.keys,labels=_this$props.labels;return React.createElement(_ErrorBoundary.default,null,React.createElement("div",{className:classes.component},React.createElement(_Grid.default,{container:!0,spacing:16},React.createElement(_Grid.default,{item:!0,xs:12},React.createElement(_FormikTextField.default,{label:labels.street,placeholder:"E.g: 80 Baker Street",name:keys.street,id:keys.street,showClearIcon:!1})),React.createElement(_Grid.default,{item:!0,xs:12,sm:6},React.createElement(_FormikTextField.default,{label:labels.city,placeholder:"E.g: PORT ALBANY",name:keys.city,id:keys.city,showClearIcon:!1})),React.createElement(_Grid.default,{item:!0,xs:12,sm:6},React.createElement(_FormikTextField.default,{label:labels.state,placeholder:"E.g: Western Australia",name:keys.state,id:keys.state,showClearIcon:!1})),React.createElement(_Grid.default,{item:!0,xs:12,sm:6},React.createElement(_FormikTextField.default,{label:labels.country,placeholder:"E.g: Australia",name:keys.country,id:keys.country,showClearIcon:!1})),React.createElement(_Grid.default,{item:!0,xs:12,sm:6},React.createElement(_FormikTextField.default,{label:labels.postcode,placeholder:"E.g: 6330",name:keys.postcode,id:keys.postcode,showClearIcon:!1})))))}}]),AddressForm}(React.Component);(0,_defineProperty2.default)(AddressForm,"defaultProps",{keys:{street:"street",city:"city",state:"state",country:"country",postcode:"postcode"},labels:{street:"Street Address",city:"City",state:"State/Province",country:"Country",postcode:"Postcode"}});var _default=(0,_withStyles.default)(_styles.default)(AddressForm);exports.default=_default;