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 : 13.58.180.210


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/175.e2f19ba2.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[175],{1043:function(e,t,a){"use strict";a.r(t);var n=a(3),r=a(0),c=a(99),l=a(100),o=a(102),s=a(101),p=a(103),g=a(1),u=a.n(g),i=a(104),d=a(266),f=a(290),m=a(1139),h=a(1098),x=a(1100),b=a(1106),v=(a(270),function(e){function t(){var e,a;Object(c.a)(this,t);for(var l=arguments.length,p=new Array(l),g=0;g<l;g++)p[g]=arguments[g];return(a=Object(o.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(p)))).state={deggrp:{fdeggrp:"",fdescpn:"",fyear:"",fexamtype:"",fexamdate:"",fdeleted:!1},fexamrange:""},a.changeDeggrp=function(e,t){var n=a.props.deggrp.filter(function(e,a){return e.fdeggrp==t.value})[0];a.setState({deggrp:n}),a.props.setDegreeGroup(Object(r.a)({},n,{fexamrange:a.state.fexamrange}))},a.setValues=function(){a.props.setDegreeGroup(Object(r.a)({},a.state.deggrp,{fexamrange:a.state.fexamrange}))},a.changeExam=function(e,t){a.setState({fexamrange:t.value})},a.handleChange=function(e,t){a.setState({deggrp:Object(r.a)({},a.state.deggrp,Object(n.a)({},t.name,t.value))})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchDegGrp();var e=localStorage.getItem("control");if(null!==e){var t=JSON.parse(e);this.setState({deggrp:Object(r.a)({},this.state.deggrp,t),fexamrange:t.fexamrange})}}},{key:"componentDidUpdate",value:function(e){this.props.user!==e.user&&this.props.fetchDegGrp()}},{key:"render",value:function(){var e=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}}),t=this.state.deggrp,a=t.fdeggrp,n=t.fyear,r=t.fexamtype,c=t.fexamdate,l=[{key:1,value:"".concat(n).concat(r),text:c}],o="".concat(n).concat(r);window.innerHeight;return u.a.createElement("div",null,u.a.createElement(m.a,{fluid:!0},u.a.createElement(m.a.Content,null,u.a.createElement(m.a.Description,{style:{overflowY:"auto",height:"".concat(this.wheight,"px")}},u.a.createElement(h.a,null,u.a.createElement(h.a.Field,null,u.a.createElement("label",null,"Degree Group"),u.a.createElement(x.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:a,onChange:this.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:e,selectOnBlur:!1,searchInput:{autoFocus:!0}})),u.a.createElement(h.a.Field,null,u.a.createElement(x.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:o,placeholder:"Select Exam Date",openOnFocus:!1,options:l,selectOnBlur:!1})),u.a.createElement(h.a.Field,null,u.a.createElement(h.a.Input,{placeholder:"Exam Range",onChange:this.changeExam,value:this.state.fexamrange,width:4,label:"Exam Range"}))),u.a.createElement("br",null),u.a.createElement(b.a,{style:{padding:"0.5em 1em"},color:"blue",onClick:this.setValues,content:"Set"})))))}}]),t}(g.Component));t.default=Object(i.b)(function(e){return{user:e.user,deggrp:e.deggrp}},{closeError:d.e,fetchDegGrp:d.j,setDegreeGroup:f.s})(v)}}]);
//# sourceMappingURL=175.e2f19ba2.chunk.js.map