0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.17.181.181


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/303.fa336802.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[303],{1351:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(100),o=r(101),i=r(103),c=r(102),s=r(104),l=r(2),u=r.n(l),h=r(941),p=r(1160),f=r(266),d=r(264),m=r(1377),g=r(316),y=r(1374),v=r(1343),w=r(724),b=r(706),E=r(1074),x=r(406),L=r(105),O=r(273),j=r(0),k=r(371),G=r.n(k),I=(r(372),r(726)),_=r(1141),N=r(321),S=r(1335),C=r(1157),F=r(287),T=r.n(F),A=r(274);function P(){P=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new N(n||[]);return a(i,"_invoke",{value:k(e,r,c)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",d="executing",m="completed",g={};function y(){}function v(){}function w(){}var b={};l(b,i,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(S([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=w.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var s=h(e[a],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(u).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function k(t,r,n){var a=p;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var s=G(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?m:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function G(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,G(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function S(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return v.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:v,configurable:!0}),v.displayName=l(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,s,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(j.prototype),l(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(L),l(L,s,"Generator"),l(L,i,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var M=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return(r=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(s)))).state={grouphead:{},groupId:"",fmessage:"",attach:!1,fattchpath:"",fattchtype:"",freplyto:"",rows:1},r.getUploadParams=function(e){var t=e.file,n=(e.meta,new FormData);return n.append("filefield",t),n.append("body",JSON.stringify(r.props.user)),{url:A.a+"/upload-message-attachments.php ",body:n}},r.handleChangeStatus=function(e,t){e.meta;var n=e.file,a=e.xhr;"done"==t&&r.setState({fattchpath:a.response,fattchtype:n.type})},r.handleSubmit=function(){var e=Object(n.a)(P().mark(function e(t,r){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.forEach(function(e){return e.remove()});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.showAttach=function(){r.setState({attach:!r.state.attach})},r.validatefile=function(e){e.file,e.meta;return!1},r.sendMessage=function(){var e=r.state,t=e.fmessage,n=e.attach,a=e.fattchpath,o=e.fattchtype;""!=t.trim()&&(r.props.sendMsg({fmessage:t,attach:n,fattchpath:a,fattchtype:o,fgrpid:r.state.groupId,fmsgfrm:r.props.user.fuserid,fdate:T()().format("DD/MM/YYYY hh:mm A")}),r.setState({fmessage:"",attach:!1,fattchpath:"",fattchtype:""}))},r.handleChange=function(e,t){var n=t.name,a=t.value;r.setState(Object(j.a)({},n,a))},r.handleKeys=function(e){if("Enter"==e.key&&e.shiftKey)return r.setState({rows:2}),!0;"Enter"==e.key&&(r.sendMessage(),r.setState({fmessage:"",attach:!1,fattchpath:"",fattchtype:"",rows:1}),e.preventDefault()),e.key},r.getAttach=function(e,t){var r=A.d+e.substring(0,4)+encodeURIComponent(e.substring(4));switch(t){case"image/png":case"image/jpeg":return u.a.createElement("a",{href:r,target:"_blank"},u.a.createElement("img",{src:r,style:Object(j.a)(Object(j.a)({resizeMode:"contain",width:"300px"},"width","400px"),"padding","1em")})," ");default:return u.a.createElement(y.a,{as:"h3",style:{margin:"1em"}},u.a.createElement(I.a,{name:"file"}),u.a.createElement(y.a.Content,null,u.a.createElement("a",{href:r,target:"_blank"},e.substring(24))))}},r.deleteMsg=function(){var e=Object(n.a)(P().mark(function e(t){var n;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).append("data",JSON.stringify(t)),e.next=4,r.props.deleteGroupMsg(n);case 4:return e.next=6,r.props.getMessagesForGroup(r.props.match.params.groupId);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r}return Object(s.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.setState({groupId:this.props.match.params.groupId}),this.props.getMessagesForGroup(this.props.match.params.groupId)}},{key:"componentDidUpdate",value:function(e){this.props.match.params.groupId!==this.state.groupId&&(this.setState({groupId:this.props.match.params.groupId}),this.props.getMessagesForGroup(this.props.match.params.groupId))}},{key:"render",value:function(){var e=this,t=this.state.attach?"35.5vh":"56.5vh";return u.a.createElement("div",null,u.a.createElement(m.a,{className:"hide-scroll",fluid:!0,style:{padding:"1em",height:"".concat(Object(O.i)()+50,"px"),overflowY:"scroll"}},u.a.createElement(m.a.Header,{style:{position:"sticky"}},u.a.createElement(y.a,{as:"h2"},u.a.createElement(_.a,{style:{width:"2em",marginRight:"0.5em"},circular:!0,src:"../../../assets/img/group.png"}),u.a.createElement(h.a,{className:"not-a-anchor",to:{pathname:"/utils/message-board/members/".concat(this.state.groupId),query:{groupId:this.state.groupId}}},this.props.head.ftitle),this.props.head.fcreatedby==this.props.user.fuserid?u.a.createElement("div",{style:{float:"right",marginTop:"0.3em"}},u.a.createElement(h.a,{className:"not-a-anchor",to:{pathname:"/utils/message-board/add-members/".concat(this.state.groupId),query:{groupId:this.state.groupId}}},u.a.createElement(I.a,{link:!0,name:"add"})),u.a.createElement(h.a,{className:"not-a-anchor",to:{pathname:"/utils/message-board/edit/".concat(this.state.groupId),query:{groupId:this.state.groupId}}},u.a.createElement(I.a,{link:!0,name:"setting"}))):null)),u.a.createElement(m.a.Content,null,u.a.createElement("div",{className:"msg-content",style:{display:"flex",flexDirection:"column-reverse",height:t,overflowY:"scroll"}},this.props.msgs.map(function(t){var r=t.fmsgfrm==e.props.user.fuserid?"flex-end":"flex-start",n=t.fmsgfrm==e.props.user.fuserid?"green":"teal",a=e.props.users.filter(function(e){return e.fregno==t.fmsgfrm})[0],o=void 0!=a?a.fname:"";""!=t.fattchpath&&e.getAttach(t.fattchpath,t.fattchtype);return u.a.createElement("div",{key:t.fmsgid,style:{width:"98%",display:"flex",flexDirection:"column-reverse"}},u.a.createElement(N.a,{key:t.fmsgid,color:n,style:Object(j.a)(Object(j.a)(Object(j.a)({alignSelf:r,maxWidth:"75%",display:"table",minWidth:"40%",margin:"0.75em"},"display","flex"),"flexDirection","column"),"whiteSpace","pre-wrap")},u.a.createElement(N.a.Header,{style:{marginBottom:"0.5em"}},o," ",t.fmsgfrm===e.props.user.fuserid&&u.a.createElement(v.a,{icon:"trash",color:"red",size:"mini",style:{position:"absolute",right:0,top:2},onClick:function(){return e.deleteMsg(t)}})),t.fmessage,""!=t.fattchpath?e.getAttach(t.fattchpath,t.fattchtype):null,u.a.createElement("span",{style:{position:"absolute",bottom:"0px",right:"2px",fontSize:"smaller"}},t.fdate)))}))),this.state.attach?u.a.createElement("div",{style:{display:"block"}},u.a.createElement(I.a,{name:"cancel",style:{position:"absolute",right:"3em",cursor:"pointer"},onClick:this.showAttach}),u.a.createElement(G.a,{getUploadParams:this.getUploadParams,onChangeStatus:this.handleChangeStatus,multiple:!1,validate:this.validatefile,maxFiles:1,styles:{dropzone:{height:"50%",width:"85%"}}})):null,this.props.head.fcreatedby!=this.props.user.fuserid&&"T"!=this.props.head.ftwoway?null:u.a.createElement(m.a.Content,{extra:!0,className:"send-message",style:{display:"flex",margin:"0 auto",alignItems:"center"}},u.a.createElement(v.a,{icon:"attach",onClick:this.showAttach,style:{height:"fit-content"}}),u.a.createElement(S.a,null,u.a.createElement(C.a,{rows:this.state.rows,id:"message-area",name:"fmessage",onChange:this.handleChange,value:this.state.fmessage,onKeyPress:this.handleKeys,placeholder:"Type Your Message here...",style:{width:"35em",resize:"none",marginRight:"0.2em"}})),u.a.createElement(v.a,{icon:"send",color:"blue",onClick:this.sendMessage,style:{height:"fit-content"}}))))}}]),t}(l.Component),Y={getMessagesForGroup:x.h,sendMsg:x.k,deleteGroupMsg:x.d},H=Object(L.b)(function(e){return{groups:e.msgBoard.groups,head:e.msgBoard.head,msgs:e.msgBoard.msgs,users:e.msgBoard.users,user:e.user}},Y)(M),D=r(1338),z=r(267);function U(){U=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new N(n||[]);return a(i,"_invoke",{value:k(e,r,c)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",d="executing",m="completed",g={};function y(){}function v(){}function w(){}var b={};l(b,i,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(S([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=w.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var s=h(e[a],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(u).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function k(t,r,n){var a=p;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var s=G(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?m:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function G(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,G(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function S(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return v.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:v,configurable:!0}),v.displayName=l(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,s,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(j.prototype),l(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(L),l(L,s,"Generator"),l(L,i,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var B=function(e){function t(){var e,r;Object(a.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(r=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={new:!1,groupId:""},r}return Object(s.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=Object(n.a)(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0==this.props.match.params.groupId){e.next=5;break}return e.next=3,this.props.getMessagesForGroup(this.props.match.params.groupId);case 3:return e.next=5,this.props.getUsersForGroup(this.props.match.params.groupId);case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.props.emptyUsersforGroup()}},{key:"render",value:function(){var e=Object(O.i)();return u.a.createElement("div",{className:"animated fadeIn"},u.a.createElement(m.a,{fluid:!0},u.a.createElement(m.a.Content,{style:{height:"".concat(1.1*e,"px"),overflowY:"auto",padding:"1.3em"}},u.a.createElement(y.a,{as:"h3"},this.props.head.ftitle),u.a.createElement(D.a,{celled:!0,padded:!0,selectable:!0,size:"small",className:"tbl sticky1",unstackable:!0},u.a.createElement(D.a.Header,null,u.a.createElement(D.a.Row,{textAlign:"center"},u.a.createElement(D.a.HeaderCell,null,"Sl.No."),u.a.createElement(D.a.HeaderCell,null,"User Id"),u.a.createElement(D.a.HeaderCell,null,"Name"),u.a.createElement(D.a.HeaderCell,null,"Action"))),u.a.createElement(D.a.Body,null,this.props.members.map(function(e,t){return u.a.createElement(D.a.Row,{textAlign:"center",key:t},u.a.createElement(D.a.Cell,null,t+1),u.a.createElement(D.a.Cell,null,e.fregno),u.a.createElement(D.a.Cell,{textAlign:"left"},e.fname),u.a.createElement(D.a.Cell,null,"Action"))}))))))}}]),t}(l.Component),q={showError:z.A,getUsersForGroup:x.i,emptyUsersforGroup:x.e,getMessagesForGroup:x.h},R=Object(L.b)(function(e){return{members:e.msgBoard.members,head:e.msgBoard.head}},q)(B),W=r(1153),J=r(275),K=r.n(J);function V(){V=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new N(n||[]);return a(i,"_invoke",{value:k(e,r,c)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",d="executing",m="completed",g={};function y(){}function v(){}function w(){}var b={};l(b,i,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(S([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=w.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var s=h(e[a],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(u).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function k(t,r,n){var a=p;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var s=G(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?m:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function G(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,G(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function S(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return v.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:v,configurable:!0}),v.displayName=l(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,s,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(j.prototype),l(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(L),l(L,s,"Generator"),l(L,i,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var Q=function(e){function t(){var e,r;Object(a.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(r=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={new:!1,groupId:""},r.handleChange=function(e,t){var n=t.name,a="";"text"==t.type&&(a=t.value),"checkbox"==t.type&&(a=t.checked?"T":"F"),r.props.changeGroupHead(n,a)},r.handleSave=function(){var e=r.props.grp.head;if(""!==e.ftitle&&""!==e.fdescpn&&""!==e.fexpdate)r.props.handleSaveGroup();else{r.props.showError({header:"Error",content:"Fill All the values "})}},r}return Object(s.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=Object(n.a)(V().mark(function e(){return V().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0==this.props.match.params.groupId){e.next=6;break}return e.next=3,this.props.getGroupHeadForEdit(this.props.match.params.groupId);case 3:this.props.changeGroupHead("mode","edit"),e.next=8;break;case 6:this.props.cancelGroupHead(),this.props.changeGroupHead("mode","add");case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.props.cancelGroupHead()}},{key:"componentDidUpdate",value:function(e){this.props.match.params.groupId!==this.state.groupId&&(this.setState({groupId:this.props.match.params.groupId}),void 0==this.props.match.params.groupId&&(this.props.cancelGroupHead(),this.props.changeGroupHead("mode","add")))}},{key:"render",value:function(){var e=this,t=this.props.grp.head,r=Object(O.i)();return u.a.createElement("div",{className:"animated fadeIn"},u.a.createElement(m.a,{fluid:!0},u.a.createElement(m.a.Content,{style:{height:"".concat(1.1*r,"px"),overflowY:"auto",padding:"1.3em"}},u.a.createElement(S.a,{onSubmit:this.handleSave},u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:12},u.a.createElement(S.a.Input,{type:"text",placeholder:"Group Title",label:"Group Title",name:"ftitle",value:t.ftitle,onChange:this.handleChange,required:!0}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:12},u.a.createElement(S.a.TextArea,{label:"Description",rows:"3",name:"fdescpn",style:{resize:"none"},placeholder:"Describe about this group...",value:t.fdescpn,required:!0,onChange:function(t,r){return e.handleChange(t,{name:r.name,value:r.value,type:"text"})}}))),u.a.createElement(S.a.Group,null,u.a.createElement("div",{className:"four wide field"},u.a.createElement("div",{className:"field"},u.a.createElement("span",{style:{display:"block",margin:"0 0 .28571429rem 0",color:"rgba(0,0,0,.87)",fontSize:".92857143em",fontWeight:"700",textTransform:"none"}},"Expiry Date ",u.a.createElement("span",{style:{color:"red"}},"*")),u.a.createElement(K.a,{type:"text",formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},mask:"ed/nm/zyyy",name:"fexpdate",value:t.fexpdate,onChange:function(t){return e.handleChange(t,{name:t.target.name,value:t.target.value,type:t.target.type})},placeholder:"dd/mm/yyyy"})))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:12},u.a.createElement(W.a,{name:"ftwoway",checked:"T"==t.ftwoway,slider:!0,label:"Allow members to send messages",onChange:this.handleChange}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:12},u.a.createElement(W.a,{slider:!0,name:"fexit",checked:"T"==t.fexit,label:"Allow Members to exit from the group",onChange:this.handleChange}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:12},u.a.createElement(W.a,{name:"fsuspend",checked:"T"==t.fsuspend,slider:!0,label:"Suspend Group",onChange:this.handleChange}))),u.a.createElement(v.a,{type:"submit",primary:!0,onSubmit:this.handleSave},void 0==this.props.match.params.groupId?"Create":"Save")))))}}]),t}(l.Component),X={getMessageGroups:x.g,getGroupHeadForEdit:x.f,changeGroupHead:x.b,handleSaveGroup:x.j,cancelGroupHead:x.a,showError:z.A},Z=Object(L.b)(function(e){return{grp:e.grpEdit}},X)(Q),$=r(1140);function ee(){ee=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new N(n||[]);return a(i,"_invoke",{value:k(e,r,c)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",d="executing",m="completed",g={};function y(){}function v(){}function w(){}var b={};l(b,i,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(S([])));x&&x!==r&&n.call(x,i)&&(b=x);var L=w.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var s=h(e[a],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(u).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function k(t,r,n){var a=p;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var s=G(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?m:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function G(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,G(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function S(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return v.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:v,configurable:!0}),v.displayName=l(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,s,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(j.prototype),l(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(L),l(L,s,"Generator"),l(L,i,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var te=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return(r=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(s)))).state={new:!1,open:!1,groupId:""},r.deleteGroup=function(){var e=Object(n.a)(ee().mark(function e(t){return ee().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({open:!0,groupId:t.fgrpid});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.handleConfirm=function(){var e=Object(n.a)(ee().mark(function e(t){return ee().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({open:!1}),e.next=3,r.props.delGroup(r.state.groupId);case 3:return e.next=5,r.props.getMessageGroups();case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.handleCancel=function(){r.setState({open:!1,groupId:""})},r}return Object(s.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.props.getMessageGroups()}},{key:"render",value:function(){var e=this,t=this.props.groups,r=Object(O.i)();return u.a.createElement("div",{className:"animated fadeIn"},u.a.createElement(E.BrowserView,null,u.a.createElement(m.a,{fluid:!0},u.a.createElement(m.a.Content,{style:{height:"".concat(1.17*r,"px"),overflowY:"auto",padding:"1.3em"}},this.state.new?null:u.a.createElement("div",{className:"row clearfix"},u.a.createElement("div",{className:"col-md-4",style:{paddingRight:"0px"}},u.a.createElement(g.a,{className:"hide-scroll",size:"small",position:"left",style:{overflowY:"scroll",height:"".concat(1.1*r,"px")}},u.a.createElement(y.a,{as:"h3",dividing:!0,color:"blue",style:{height:"2.2em"}},"Groups",900!=this.props.user.fcurtype?u.a.createElement(h.a,{style:{float:"right"},className:"not-a-anchor",to:{pathname:"/utils/message-board/add-group/"}},u.a.createElement(v.a,{icon:"add",label:"Create",primary:!0})):null),u.a.createElement(w.a.Group,{divided:!0},t.map(function(t,r){return u.a.createElement(w.a,{key:r},u.a.createElement(w.a.Image,{size:"tiny",style:{width:"4em",height:"4em"},src:"../../../assets/img/group.png",rounded:!0,bordered:!0}),u.a.createElement(w.a.Content,{verticalAlign:"middle"},u.a.createElement(w.a.Header,null,u.a.createElement(p.a,{to:{pathname:"/utils/message-board/".concat(t.fgrpid),query:{groupId:t.fgrpid}},className:"group-link"},t.ftitle),u.a.createElement(v.a,{style:{position:"absolute",right:"0",color:"red"},onClick:function(r){return e.deleteGroup(t)}},u.a.createElement("i",{class:"trash icon",color:"red",style:{width:"2px"}})),u.a.createElement(b.a,{open:e.state.open,cancelButton:"No",confirmButton:"Yes",content:"Are you sure",onCancel:e.handleCancel,onConfirm:function(r){return e.handleConfirm(t)},style:{height:"150px",width:"500px"}}))))})))),u.a.createElement("div",{className:"col-md-8"},u.a.createElement(f.a,null,u.a.createElement(d.a,{exact:!0,path:"/utils/message-board/add-group/",component:Z}),u.a.createElement(d.a,{exact:!0,path:"/utils/message-board/add-members/:groupId",component:$.default}),u.a.createElement(d.a,{exact:!0,path:"/utils/message-board/edit/:groupId",component:Z}),u.a.createElement(d.a,{exact:!0,path:"/utils/message-board/members/:groupId",component:R}),u.a.createElement(d.a,{path:"/utils/message-board/:groupId",component:H}),u.a.createElement(d.a,{path:"/utils/message-board"},u.a.createElement("h3",null,"Please select a group.")))))))),u.a.createElement(E.MobileView,null,this.state.new?null:u.a.createElement("div",{className:"row clearfix"},"/utils/message-board"==this.props.location.pathname||"/utils/message-board/"==this.props.location.pathname?u.a.createElement("div",{className:"col-sm-12",style:{paddingRight:"0px"}},u.a.createElement(g.a,{className:"hide-scroll",size:"small",position:"left",style:{overflowY:"scroll",height:"".concat(1.1*r,"px")}},u.a.createElement(y.a,{as:"h3",dividing:!0,color:"blue",style:{height:"2.2em"}},"Groups",900!=this.props.user.fcurtype?u.a.createElement(h.a,{style:{float:"right"},className:"not-a-anchor",to:{pathname:"/utils/message-board/add-group/"}},u.a.createElement(v.a,{icon:"add",label:"Create",primary:!0})):null),u.a.createElement(w.a.Group,{divided:!0},t.map(function(e,t){return u.a.createElement(w.a,{key:t},u.a.createElement(w.a.Image,{size:"tiny",style:{width:"4em",height:"4em"},src:"../../../assets/img/group.png",rounded:!0,bordered:!0}),u.a.createElement(w.a.Content,{verticalAlign:"middle"},u.a.createElement(w.a.Header,null,u.a.createElement(p.a,{to:{pathname:"/utils/message-board/".concat(e.fgrpid),query:{groupId:e.fgrpid}},className:"group-link"},e.ftitle))))})))):null,u.a.createElement("div",{className:"col-md-8"},u.a.createElement(f.a,null,u.a.createElement(d.a,{exact:!0,path:"/utils/message-board/add-group/",component:Z}),u.a.createElement(d.a,{exact:!0,path:"/utils/message-board/add-members/:groupId",component:$.default}),u.a.createElement(d.a,{exact:!0,path:"/utils/message-board/edit/:groupId",component:Z}),u.a.createElement(d.a,{path:"/utils/message-board/:groupId",component:H}),u.a.createElement(d.a,{path:"/utils/message-board/members/:groupId",component:R}),u.a.createElement(d.a,{path:"/utils/message-board"}))))))}}]),t}(l.Component),re={getMessageGroups:x.g,delGroup:x.c};t.default=Object(L.b)(function(e){return{groups:e.msgBoard.groups,user:e.user}},re)(te)}}]);
//# sourceMappingURL=303.fa336802.chunk.js.map