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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/242.b0848a4c.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[242,307],{1268:function(e,t,r){"use strict";r.r(t);var a=r(3),n=r(68),o=r(100),i=r(101),c=r(103),l=r(102),s=r(104),u=r(2),h=r.n(u),d=r(1377),p=r(1343),f=r(272),m=r(1335),b=r(1337),v=r(941),x=r(300),y=r(105);function g(){g=function(){return t};var e,t={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,a){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new P(a||[]);return n(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 d="suspendedStart",p="suspendedYield",f="executing",m="completed",b={};function v(){}function x(){}function y(){}var w={};s(w,i,function(){return this});var E=Object.getPrototypeOf,j=E&&E(E(A([])));j&&j!==r&&a.call(j,i)&&(w=j);var S=y.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){function r(n,o,i,c){var l=h(e[n],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&a.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){s.value=e,i(s)},function(e){return r("throw",e,i,c)})}c(l.arg)}var o;n(this,"_invoke",{value:function(e,a){function n(){return new t(function(t,n){r(e,a,t,n)})}return o=o?o.then(n,n):n()}})}function k(t,r,a){var n=d;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var c=a.delegate;if(c){var l=C(c,a);if(l){if(l===b)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===d)throw n=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var s=h(t,r,a);if("normal"===s.type){if(n=a.done?m:p,s.arg===b)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(n=m,a.method="throw",a.arg=s.arg)}}}function C(t,r){var a=r.method,n=t.iterator[a];if(n===e)return r.delegate=null,"throw"===a&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),b;var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;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,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function B(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function A(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 n=-1,o=function r(){for(;++n<t.length;)if(a.call(t,n))return r.value=t[n],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 x.prototype=y,n(S,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:x,configurable:!0}),x.displayName=s(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},L(O.prototype),s(O.prototype,c,function(){return this}),t.AsyncIterator=O,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new O(u(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},L(S),s(S,l,"Generator"),s(S,i,function(){return this}),s(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,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),!t)for(var r in this)"t"===r.charAt(0)&&a.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 n(a,n){return c.type="throw",c.arg=t,r.next=a,n&&(r.method="next",r.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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,b):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),b},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),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;T(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:A(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),b}},t}var w=function(e){function t(){var e,r;Object(o.a)(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(r=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).state={exam:"",board:"",subj:"",teachSub:!1,status:"",table:[],searchQP:""},r.componentDidMount=Object(n.a)(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.examDate();case 2:case"end":return e.stop()}},e)})),r.examDates=function(){var e=Object(n.a)(g().mark(function e(t,a){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({exam:a.value}),e.next=3,r.props.getBoardDet(a.value);case 3:return r.setState({board:"All"}),e.next=6,r.props.getBoardSubj(r.state.exam,r.state.board);case 6:r.setState({teachSub:!1}),r.setState({subj:""});case 8:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.boardSubj=function(){var e=Object(n.a)(g().mark(function e(t,a){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({board:a.value}),e.next=3,r.props.getBoardSubj(r.state.exam,a.value);case 3:r.setState({teachSub:!1}),r.setState({subj:""});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.subjVal=function(){var e=Object(n.a)(g().mark(function e(t,a){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({subj:a.value}),r.setState({teachSub:!1});case 2:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.submitDet=Object(n.a)(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=r.state.exam.length){e.next=3;break}return alert("Select Exam"),e.abrupt("return");case 3:if(0!=r.state.board.length){e.next=6;break}return alert("Select Board"),e.abrupt("return");case 6:if(0!=r.state.subj.length){e.next=9;break}return alert("Select Subject"),e.abrupt("return");case 9:return e.next=11,r.props.getTeachDet(r.state.exam,r.state.board,r.state.subj);case 11:r.setState({teachSub:!0}),r.setState({table:r.props.teachdet});case 13:case"end":return e.stop()}},e)})),r.handleCancel=Object(n.a)(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({exam:""}),r.setState({board:""}),r.setState({subj:""}),r.setState({teachSub:!1});case 4:case"end":return e.stop()}},e)})),r.handleCheckBox=function(e,t,a){var n=r.state.table.map(function(t,r){return a===t.fteachcode?("T"==e.status?t.status="F":t.status="T",t):t});r.setState({table:n})},r.handleSave=Object(n.a)(g().mark(function e(){return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.saveQPSeter(r.state.exam,r.state.board,r.state.subj,r.state.table);case 2:case"end":return e.stop()}},e)})),r}return Object(s.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.state,r=t.board,n=t.subj,o=t.teachSub,i=t.exam,c=this.props,l=c.boarddet,s=c.boardsubj,u=c.examdate.map(function(e,t){return{key:t,value:e.fexamyear,text:e.fdesexam}}),x=l.map(function(e,t){return{key:t,value:e.fboardcode,text:e.fboardcode+" - "+e.fboardname}}),y=[].concat([{key:"All",value:"All",text:"All"}],Object(a.a)(x)),g=s.map(function(e,t){return{key:t,value:e.fqpcode,text:e.fqpcode+"-"+e.fsubname}});return h.a.createElement("div",null,h.a.createElement(d.a,{fluid:!0},h.a.createElement(d.a.Content,null,h.a.createElement(d.a.Header,{style:{display:"flex"}},h.a.createElement("h4",null,"Eligible QP Setters (BOS)"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(p.a,{basic:!0,color:"green",icon:"save",onClick:this.handleSave,content:"Save"}),h.a.createElement(p.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),h.a.createElement(v.a,{to:"/Dashboard"},h.a.createElement(p.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),h.a.createElement(f.a,null),h.a.createElement(d.a.Description,null,h.a.createElement(m.a.Group,null,h.a.createElement(m.a.Field,null,h.a.createElement("div",null,h.a.createElement("label",null,"Exam"),h.a.createElement("label",{style:{marginLeft:"54px"}},":"),h.a.createElement(b.a,{search:!0,selection:!0,style:{width:"400px"},options:u,value:i,onChange:this.examDates,placeholder:"Exam"})),h.a.createElement("div",null,h.a.createElement("label",null,"Board"),h.a.createElement("label",{style:{marginLeft:"50px"}},":"),h.a.createElement(b.a,{search:!0,selection:!0,style:{marginTop:"5px",width:"400px"},options:y,value:r,onChange:this.boardSubj,placeholder:"Board"})),h.a.createElement("div",null,h.a.createElement("label",null,"Subject"),h.a.createElement("label",{style:{marginLeft:"40px"}},":"),h.a.createElement(b.a,{search:!0,selection:!0,style:{marginTop:"5px",width:"400px"},options:g,value:n,onChange:this.subjVal,placeholder:"Subject"})),h.a.createElement("div",null,h.a.createElement(p.a,{style:{marginTop:"5px",marginLeft:"85px"},content:"Submit",color:"blue",onClick:this.submitDet})))),o?h.a.createElement("div",{style:{width:"100%",height:"550px",overflowY:"auto",marginTop:"4px"}},h.a.createElement("table",{style:{width:"100%",border:"1px solid"}},h.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0}},h.a.createElement("tr",null,h.a.createElement("td",{colSpan:6},h.a.createElement("input",{placeholder:"Search...",onChange:function(t){e.setState({searchQP:t.target.value})},value:this.state.searchQP,style:{width:"100%",padding:"5px",margin:"10px 0",borderRadius:"15px"}}))),h.a.createElement("tr",null,h.a.createElement("th",{style:{border:"1px solid",textAlign:"center",width:"5%",borderTop:"1px solid"}},"Sl. No."),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Teach. Code."),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"25%"}},"Teacher Name"),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"35%"}},"Teacher Email ID"),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%"}},"Mobile No."),h.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Select"))),h.a.createElement("tbody",null,this.state.table.filter(function(t){return t.fteachname.toLowerCase().includes(e.state.searchQP.toLowerCase())||t.fteachcode.toLowerCase().includes(e.state.searchQP.toLowerCase())||t.fmobile.toLowerCase().includes(e.state.searchQP.toLowerCase())||t.femail.toLowerCase().includes(e.state.searchQP.toLowerCase())}).map(function(t,r){return h.a.createElement("tr",{key:r},h.a.createElement("td",{style:{border:"1px solid",textAlign:"center",width:"5%",height:"30px"}},r+1),h.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%",height:"30px"}},t.fteachcode),h.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",width:"25%",height:"30px",paddingLeft:"10px"}},t.fteachname),h.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px",width:"35%",height:"30px"}},t.femail),h.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%",height:"30px"}},t.fmobile),h.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%",height:"30px"}},h.a.createElement("input",{type:"checkbox",name:"status",value:t.status,onChange:function(a){return e.handleCheckBox(t,r,t.fteachcode)},checked:"T"==t.status})))})))):null))))}}]),t}(u.Component);t.default=Object(y.b)(function(e){return{examdate:e.examdate,boarddet:e.boaddet,boardsubj:e.boardsubj,teachdet:e.teachdet}},{getBoardDet:x.k,getBoardSubj:x.l,getTeachDet:x.v,saveQPSeter:x.C,examDate:x.h})(w)},272:function(e,t,r){"use strict";var a=r(270),n=r.n(a),o=r(268),i=r.n(o),c=r(2),l=r.n(c),s=r(349),u=r(613),h=r(611),d=r(269);function p(e){var t=e.children,r=e.className,a=e.clearing,o=e.content,c=e.fitted,f=e.hidden,m=e.horizontal,b=e.inverted,v=e.section,x=e.vertical,y=i()("ui",Object(s.a)(a,"clearing"),Object(s.a)(c,"fitted"),Object(s.a)(f,"hidden"),Object(s.a)(m,"horizontal"),Object(s.a)(b,"inverted"),Object(s.a)(v,"section"),Object(s.a)(x,"vertical"),"divider",r),g=Object(u.a)(p,e),w=Object(h.a)(p,e);return l.a.createElement(w,n()({},g,{className:y}),d.a.isNil(t)?o:t)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},t.a=p}}]);
//# sourceMappingURL=242.b0848a4c.chunk.js.map