"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),n=require("react"),t=require("prop-types"),o=require("@material-ui/core"),r=require("./components/Content.js"),s=require("../Modal/Modal.js"),i=require("react/jsx-runtime");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=d(e),l=o.makeStyles({modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1}});function c(e){var t=e.onClose,d=e.isProcessing,c=e.isSaveDisabled,u=e.onSave,m=e.startAdornment,p=e.endAdornment,C=e.actionsAdornment,A=e.customContent,f=e.userCompanyId,j=l(),x=n.useState(),b=a.default(x,2),y=b[0],h=b[1];return i.jsx(s,{open:!0,onClose:t,title:"Add a Comment",contentClassName:j.modal,actions:i.jsxs(o.Grid,{container:!0,direction:"row",justify:"flex-end",alignItems:"center",spacing:2,children:[C&&i.jsx(o.Grid,{item:!0,className:j.actionsAdornment,children:C}),i.jsx(o.Grid,{item:!0,children:i.jsx(o.Button,{color:"primary",disabled:d,onClick:t,children:"Cancel"})}),i.jsx(o.Grid,{item:!0,children:i.jsx(o.Button,{variant:"contained",color:"primary",disabled:c,onClick:function(){return u(y)},children:d?"Processing...":"Send"})})]}),children:i.jsx(r,{userCompanyId:f,startAdornment:m,endAdornment:p,customContent:A,setComment:h})})}c.propTypes={onClose:t.func,onSave:t.func.isRequired,isProcessing:t.bool,isSaveDisabled:t.bool,startAdornment:t.node,endAdornment:t.node,actionsAdornment:t.node,customContent:t.node,userCompanyId:t.number.isRequired},c.defaultProps={onClose:function(){},isProcessing:!1,isSaveDisabled:!1,startAdornment:null,endAdornment:null,customContent:null,actionsAdornment:null},module.exports=c;
//# sourceMappingURL=Popup.js.map
