"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")),_classnames=_interopRequireDefault(require("classnames")),_propTypes=_interopRequireDefault(require("prop-types")),_withStyles=_interopRequireDefault(require("../../hoc/withStyles")),_ErrorBoundary=_interopRequireDefault(require("../../hoc/ErrorBoundary")),_styles=_interopRequireDefault(require("./styles")),ProjectCard=/*#__PURE__*/function(_React$Component){function ProjectCard(){return(0,_classCallCheck2.default)(this,ProjectCard),(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(ProjectCard).apply(this,arguments))}return(0,_inherits2.default)(ProjectCard,_React$Component),(0,_createClass2.default)(ProjectCard,[{key:"render",value:function render(){var _this$props=this.props,classes=_this$props.classes,title=_this$props.title,companyName=_this$props.companyName,projectStatus=_this$props.projectStatus,onEditClick=_this$props.onEditClick;return React.createElement(_ErrorBoundary.default,null,React.createElement("div",{className:classes.component,"data-test":"project-".concat(title)},React.createElement("div",{className:classes.wrapper},React.createElement("div",{className:classes.titleWrapper},React.createElement("div",{className:classes.title},title),React.createElement("i",{className:(0,_classnames.default)("ion-edit",classes.editIcon),onClick:onEditClick})),React.createElement("div",{className:classes.infoWrapper},React.createElement("div",{className:classes.companyName},companyName),React.createElement("div",{className:classes.projectStatus},projectStatus)))))}}]),ProjectCard}(React.Component);(0,_defineProperty2.default)(ProjectCard,"propTypes",{title:_propTypes.default.string,titleColor:_propTypes.default.oneOf(["darkBlue","green"]),companyName:_propTypes.default.string,projectStatus:_propTypes.default.string,invoiceStatus:_propTypes.default.string,invoiceStatusColor:_propTypes.default.oneOf(["orange","green"]),invoiceDate:_propTypes.default.string,onEditClick:_propTypes.default.func,classes:_propTypes.default.object// comes from withStyles HOC
}),(0,_defineProperty2.default)(ProjectCard,"defaultProps",{titleColor:"darkBlue",invoiceStatusColor:"green",onEditClick:function onEditClick(){}});var _default=(0,_withStyles.default)(_styles.default)(ProjectCard);exports.default=_default;