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.147.48.226


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/71.99b85c9f.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{1110:function(e,t,a){"use strict";a.r(t);var r=a(41),n=a.n(r),c=a(68),o=a(99),s=a(100),l=a(102),i=a(101),u=a(103),d=a(1),p=a.n(d),f=a(858),h=a(104),b=a(1139),g=a(1106),m=a(272),E=a(1098),v=a(316),y=a(1100),O=a(266),j=a(305),w=function(e){function t(){return Object(o.a)(this,t),Object(l.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidUpdate",value:function(e){console.log(this.props),"PRBOARD"===this.props.modType?this.props.fboard!==e.fboard&&this.props.fetchPrDegrees(this.props.deggrp,this.props.fboard,this.props.modType):this.props.deggrp!==e.deggrp&&this.props.fetchDegrees(this.props.deggrp)}},{key:"render",value:function(){var e=this.props.degrees.map(function(e,t){return{key:t,value:e.fdegree,text:"".concat(e.fdegree," - ").concat(e.fdescpn)}});return p.a.createElement(E.a.Field,null,p.a.createElement("label",null,"Degree"),p.a.createElement(y.a,{fluid:!0,search:!0,selection:!0,value:this.props.frmdegree,onChange:this.props.onDegreeChange,placeholder:"Select Degree",options:e}))}}]),t}(d.Component),C=Object(h.b)(function(e){return{degrees:e.degrees}},{fetchDegrees:O.k,fetchPrDegrees:j.b})(w),S=function(e){function t(){return Object(o.a)(this,t),Object(l.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidUpdate",value:function(e){this.props.fdegree!==e.fdegree&&this.props.fetchPrSubs(this.props.fdegree,this.props.fboard)}},{key:"render",value:function(){var e=this.props.prsubs;console.log(e);var t=e.map(function(e,t){return{key:t,value:e.fcsubcode,text:"".concat(e.fcsubcode," - ").concat(e.fsubname)}});return p.a.createElement(E.a.Field,null,p.a.createElement("label",null,"Subjects"),p.a.createElement(y.a,{fluid:!0,search:!0,selection:!0,value:this.props.fcsubcode,onChange:this.props.onSubChange,placeholder:"Select Subject",options:t}))}}]),t}(d.Component),x=Object(h.b)(function(e){return{prsubs:e.prsubs}},{fetchPrSubs:j.c})(S),R=a(1e3),k=a(1101),D=function(e){function t(){var e,a;Object(o.a)(this,t);for(var r=arguments.length,n=new Array(r),c=0;c<r;c++)n[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(n)))).state={prbatch:[],searchVal:""},a.searchTable=function(e,t){var r=t.value,n=a.props.prbatch.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(r.toLowerCase())})});a.setState({prbatch:n,searchVal:t.value})},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.setState({prbatch:this.props.prbatch,searchVal:""})}},{key:"componentDidUpdate",value:function(e){this.props.prbatch!==e.prbatch&&this.setState({prbatch:this.props.prbatch,searchVal:""})}},{key:"render",value:function(){var e=this.state.prbatch;return p.a.createElement("div",null,p.a.createElement(m.a,null),p.a.createElement("div",{style:{margin:"1em 0em",backgroundColor:"white"},className:"stick"},p.a.createElement(R.a,{icon:"search",fluid:!0,placeholder:"Search...",value:this.state.searchVal,onChange:this.searchTable})),p.a.createElement(k.a,{celled:!0,compact:!0},p.a.createElement(k.a.Header,null,p.a.createElement(k.a.Row,null,p.a.createElement(k.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),p.a.createElement(k.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Exam Date"),p.a.createElement(k.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"College Code"),p.a.createElement(k.a.HeaderCell,{textAlign:"center"},"College Name"),p.a.createElement(k.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Batch Count"),p.a.createElement(k.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Student Count"),p.a.createElement(k.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Marks Entry Pending"))),p.a.createElement(k.a.Body,null,e.map(function(e,t){return p.a.createElement(k.a.Row,{key:t},p.a.createElement(k.a.Cell,{textAlign:"center"},t+1),p.a.createElement(k.a.Cell,{textAlign:"center"},e.fexamdate),p.a.createElement(k.a.Cell,{textAlign:"center"},e.focollcode),p.a.createElement(k.a.Cell,null,e.fcollname),p.a.createElement(k.a.Cell,{textAlign:"center"},e.fbatchcount),p.a.createElement(k.a.Cell,{textAlign:"center"},e.fstudcount),p.a.createElement(k.a.Cell,{textAlign:"center"},e.fpendstudcount))}))))}}]),t}(d.Component),B=Object(h.b)(function(e){return{prbatch:e.prbatch}},{showError:O.w})(D),P=a(270),A=function(e){function t(){var e,a;Object(o.a)(this,t);for(var r=arguments.length,s=new Array(r),u=0;u<r;u++)s[u]=arguments[u];return(a=Object(l.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(s)))).state={fdegree:"",fboard:"",frmSubmit:!1,fcsubcode:""},a.onBoardChange=function(e,t){a.setState({fboard:t.value,fdegree:"",fcsubcode:""})},a.changeDegree=function(e,t){a.setState({fdegree:t.value})},a.subChange=function(e,t){a.setState({fcsubcode:t.value})},a.handleCancel=function(){a.setState({fdegree:"",fboard:"",frmSubmit:!1,fcsubcode:""})},a.getPrBatchdet=Object(c.a)(n.a.mark(function e(){var t,r,c,o,s,l,i,u;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.state,r=t.fdegree,c=t.fboard,o=t.fcsubcode,""!=a.props.user.fdeggrp){e.next=5;break}return s={header:"Error",content:"Degree Group required."},a.props.showError(s),e.abrupt("return");case 5:if(""!=c){e.next=9;break}return l={header:"Error",content:"Board required."},a.props.showError(l),e.abrupt("return");case 9:if(""!=r){e.next=13;break}return i={header:"Error",content:"Degree required."},a.props.showError(i),e.abrupt("return");case 13:if(""!=o){e.next=17;break}return u={header:"Error",content:"Subject required."},a.props.showError(u),e.abrupt("return");case 17:return e.next=19,a.props.fetchPrBatchDet(a.props.user.fdeggrp,c,r,o);case 19:a.setState({frmSubmit:!0});case 20:case"end":return e.stop()}},e)})),a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchSubPrBoard(this.props.user.fdeggrp)}},{key:"componentDidUpdate",value:function(e){this.props.user.fdeggrp!==e.user.fdeggrp&&this.props.fetchSubPrBoard(this.props.user.fdeggrp)}},{key:"render",value:function(){var e=Object(P.i)();return p.a.createElement("div",{className:"animated fadeIn"},p.a.createElement(b.a,{fluid:!0},p.a.createElement(b.a.Content,null,p.a.createElement(b.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"Batch Details"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(g.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),p.a.createElement(f.a,{to:"/dashboard"},p.a.createElement(g.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(m.a,null),p.a.createElement(b.a.Description,{style:{overflowY:"auto",height:"".concat(e,"px")}},p.a.createElement("div",{className:"col-md-7"},p.a.createElement(E.a,null,p.a.createElement(E.a.Group,null,p.a.createElement(E.a.Field,{width:8},p.a.createElement(v.a,{fdeggrp:this.state.fdeggrp,fboard:this.state.fboard,onBoardChange:this.onBoardChange,board:this.props.board})),p.a.createElement(E.a.Field,{width:8},p.a.createElement(C,{deggrp:this.state.fdeggrp,fboard:this.state.fboard,frmdegree:this.state.fdegree,onDegreeChange:this.changeDegree,modType:"PRBOARD"}))),p.a.createElement(x,{fdegree:this.state.fdegree,fcsubcode:this.state.fcsubcode,onSubChange:this.subChange,fboard:this.state.fboard}),p.a.createElement(g.a,{color:"blue",onClick:this.getPrBatchdet},"Submit"))),p.a.createElement("div",{className:"ui mini form",style:{fontSize:"1.1536em"}},this.state.frmSubmit?p.a.createElement(B,null):null)))))}}]),t}(d.Component);t.default=Object(h.b)(function(e){return{prsubs:e.prsubs,user:e.user,board:e.board}},{showError:O.w,fetchPrBatchDet:j.a,fetchSubPrBoard:j.d})(A)},272:function(e,t,a){"use strict";var r=a(268),n=a.n(r),c=a(265),o=a.n(c),s=a(1),l=a.n(s),i=a(333),u=a(551),d=a(549),p=a(267);function f(e){var t=e.children,a=e.className,r=e.clearing,c=e.content,s=e.fitted,h=e.hidden,b=e.horizontal,g=e.inverted,m=e.section,E=e.vertical,v=o()("ui",Object(i.a)(r,"clearing"),Object(i.a)(s,"fitted"),Object(i.a)(h,"hidden"),Object(i.a)(b,"horizontal"),Object(i.a)(g,"inverted"),Object(i.a)(m,"section"),Object(i.a)(E,"vertical"),"divider",a),y=Object(u.a)(f,e),O=Object(d.a)(f,e);return l.a.createElement(O,n()({},y,{className:v}),p.a.isNil(t)?c:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},305:function(e,t,a){"use strict";a.d(t,"b",function(){return l}),a.d(t,"c",function(){return i}),a.d(t,"d",function(){return u}),a.d(t,"a",function(){return d});var r=a(41),n=a.n(r),c=a(68),o=a(269),s=a(23),l=function(e,t,a){return function(){var e=Object(c.a)(n.a.mark(function e(r,c){var l,i;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=c(),e.next=3,o.a.get("/app.php",{params:{a:"getDegrees",modtype:a,fboard:t,deggrp:l.user.fdeggrp,univcode:l.univ.funivcode}});case 3:"object"!==typeof(i=e.sent).data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Degrees"},status:"failure"}}):-1===i.data.error_code?r({type:"SET_ERROR",payload:i.data}):r({type:s.g,payload:i.data});case 5:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},i=function(e,t){return function(){var a=Object(c.a)(n.a.mark(function a(r,c){var s,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=c(),a.next=3,o.a.get("/app.php",{params:{a:"getPracticalSubjects",fdegree:e,fboard:t,univcode:s.univ.funivcode}});case 3:"object"!==typeof(l=a.sent).data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Subjects"},status:"failure"}}):-1===l.data.error_code?r({type:"SET_ERROR",payload:l.data}):r({type:"FETCH_PRSUB",payload:l.data});case 5:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(c.a)(n.a.mark(function t(a,r){var c,s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=r(),t.next=3,o.a.get("/app.php",{params:{a:"getPracticalBoards",fdeggrp:e,univcode:c.user.fcuruniv}});case 3:"object"!==typeof(s=t.sent).data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Boards"},status:"failure"}}):-1===s.data.error_code?a({type:"SET_ERROR",payload:s.data}):a({type:"FETCH_BOARDS",payload:s.data});case 5:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},d=function(e,t,a,r){return function(){var s=Object(c.a)(n.a.mark(function c(s,l){var i,u;return n.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=l(),s({type:"SET_LOADER"}),n.next=4,o.a.get("/app.php",{params:{a:"getPracticalBatchDet",fdeggrp:e,fdegree:a,fboard:t,fsubcode:r,univcode:i.univ.funivcode}});case 4:u=n.sent,s({type:"UNSET_LOADER"}),"object"!==typeof u.data?s({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Batch Details"},status:"failure"}}):-1===u.data.error_code?s({type:"SET_ERROR",payload:u.data}):s({type:"FETCH_PRBATCHDET",payload:u.data});case 7:case"end":return n.stop()}},c)}));return function(e,t){return s.apply(this,arguments)}}()}},316:function(e,t,a){"use strict";var r=a(99),n=a(100),c=a(102),o=a(101),s=a(103),l=a(1),i=a.n(l),u=a(104),d=a(1098),p=a(1100),f=a(305),h=function(e){function t(){return Object(r.a)(this,t),Object(c.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.board.map(function(e,t){return{key:t,value:e.fboardcode,text:"".concat(e.fboardcode," - ").concat(e.fboardname)}});return i.a.createElement(d.a.Field,null,i.a.createElement("label",null,"Board"),i.a.createElement(p.a,{fluid:!0,search:!0,selection:!0,value:this.props.fboard,onChange:this.props.onBoardChange,placeholder:"Select Board",options:e}))}}]),t}(l.Component);t.a=Object(u.b)(function(e){return{board:e.boards,user:e.user}},{fetchSubPrBoard:f.d})(h)}}]);
//# sourceMappingURL=71.99b85c9f.chunk.js.map