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.145.168.68
(window.webpackJsonp=window.webpackJsonp||[]).push([[245,307],{1317:function(e,t,r){"use strict";r.r(t);var a=r(3),n=r(68),o=r(100),l=r(101),i=r(103),c=r(102),s=r(104),u=r(2),d=r.n(u),p=r(941),h=r(105),f=r(1377),m=r(1343),g=r(272),y=r(1335),b=r(1337),v=r(267),x=r(298),E=r(300);function w(){w=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:{},l=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=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 y?t:y,l=Object.create(o.prototype),i=new D(a||[]);return n(l,"_invoke",{value:L(e,r,i)}),l}function d(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",h="suspendedYield",f="executing",m="completed",g={};function y(){}function b(){}function v(){}var x={};s(x,l,function(){return this});var E=Object.getPrototypeOf,S=E&&E(E(N([])));S&&S!==r&&a.call(S,l)&&(x=S);var C=v.prototype=y.prototype=Object.create(x);function O(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(n,o,l,i){var c=d(e[n],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&a.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,l,i)},function(e){r("throw",e,l,i)}):t.resolve(u).then(function(e){s.value=e,l(s)},function(e){return r("throw",e,l,i)})}i(c.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 L(t,r,a){var n=p;return function(o,l){if(n===f)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw l;return{value:e,done:!0}}for(a.method=o,a.arg=l;;){var i=a.delegate;if(i){var c=A(i,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===p)throw n=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var s=d(t,r,a);if("normal"===s.type){if(n=a.done?m:h,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(n=m,a.method="throw",a.arg=s.arg)}}}function A(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,A(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var o=d(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var l=o.arg;return l?l.done?(r[t.resultName]=l.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function k(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[l];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 b.prototype=v,n(C,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:b,configurable:!0}),b.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},O(j.prototype),s(j.prototype,i,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var l=new j(u(e,r,a,n),o);return t.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},O(C),s(C,c,"Generator"),s(C,l,function(){return this}),s(C,"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=N,D.prototype={constructor:D,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(P),!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 i.type="throw",i.arg=t,r.next=a,n&&(r.method="next",r.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],i=l.completion;if("root"===l.tryLoc)return n("end");if(l.tryLoc<=this.prev){var c=a.call(l,"catchLoc"),s=a.call(l,"finallyLoc");if(c&&s){if(this.prev<l.catchLoc)return n(l.catchLoc,!0);if(this.prev<l.finallyLoc)return n(l.finallyLoc)}else if(c){if(this.prev<l.catchLoc)return n(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return n(l.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 l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(l)},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),P(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 a=r.completion;if("throw"===a.type){var n=a.arg;P(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:N(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var S=function(e){function t(){var e,r;Object(o.a)(this,t);for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return(r=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(l)))).state={exam:"",board:"All",progr:"All",data:[],formSubmit:!1,searchQP:"",tabDate:[]},r.componentDidMount=function(){r.props.loadYearAndMode()},r.getBoardDet=function(){var e=Object(n.a)(w().mark(function e(t){return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.props.getBoardDet(t),r.props.getProgram(t,r.state.board),r.setState({formSubmit:!1,board:"All",progr:"All"});case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.submitQPDet=Object(n.a)(w().mark(function e(){return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getQPDeta(r.state.exam,r.state.board,r.state.progr,r.state.statu);case 2:r.setState({tabDate:r.props.qpdata,formSubmit:!0});case 3:case"end":return e.stop()}},e)})),r.noqpval=function(){var e=Object(n.a)(w().mark(function e(t,a,n){var o,l;return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:"set"===n?(o=r.state.tabDate.map(function(e,r){return r===a&&(e.fnoset=t.target.value,e.onchange="T"),e}),r.setState({table:o})):"sec"===n&&(l=r.state.tabDate.map(function(e,r){return r===a&&(e.fsec=t.target.value,e.onchange="T"),e}),r.setState({table:l}));case 1:case"end":return e.stop()}},e)}));return function(t,r,a){return e.apply(this,arguments)}}(),r.savedataQP=Object(n.a)(w().mark(function e(){var t,a,n;return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==r.state.exam){e.next=4;break}return t={header:"Error",content:"Please Select Exam"},r.props.showError(t),e.abrupt("return");case 4:return a=[],r.state.tabDate.map(function(e,t){"T"==e.onchange&&a.push(e)}),(n=new FormData).append("user",r.props.user),n.append("exam",r.state.exam),n.append("board",r.state.board),n.append("progr",r.state.progr),n.append("data",JSON.stringify(a)),e.next=14,r.props.saveQPSetData(n);case 14:case"end":return e.stop()}},e)})),r}return Object(s.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this,t=this.props.year.map(function(e,t){return{key:t,text:e.fdesexam,value:e.fexamyear}}),r=[{key:"All",text:"All",value:"All"}],n=this.props.loadBoard.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboardcode}}),o=[].concat(r,Object(a.a)(n)),l=this.props.progcode.map(function(e,t){return{key:t,value:e.fprogcode,text:e.fprogcode}}),i=[].concat(r,Object(a.a)(l));return d.a.createElement(f.a,{fluid:!0},d.a.createElement(f.a.Content,null,d.a.createElement(f.a.Header,{style:{display:"flex"}},d.a.createElement("h4",null,"QP Set"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(m.a,{basic:!0,color:"green",icon:"save",onClick:this.savedataQP,content:"Save"}),d.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",content:"Clear",onClick:function(){e.setState({exam:""}),e.setState({board:""}),e.setState({data:[]}),e.setState({formSubmit:!1})}}),d.a.createElement(p.a,{to:"/dashboard"},d.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(g.a,null),d.a.createElement(f.a.Description,null,d.a.createElement(y.a,null,d.a.createElement(y.a.Group,null,d.a.createElement(y.a.Field,{width:4},d.a.createElement("label",null,"Exam"),d.a.createElement(b.a,{fluid:!0,search:!0,selection:!0,value:this.state.exam,options:t,allowAdditions:!0,placeholder:"Exam",onChange:function(t,r){e.setState({exam:r.value}),e.getBoardDet(r.value),e.setState({formSubmit:!1})}})),d.a.createElement(y.a.Field,{width:4},d.a.createElement("label",null,"Board"),d.a.createElement(b.a,{fluid:!0,search:!0,selection:!0,value:this.state.board,options:o,allowAdditions:!0,placeholder:"Board",onChange:function(t,r){e.setState({board:r.value}),e.props.getProgram(e.state.exam,r.value),e.setState({formSubmit:!1})}})),d.a.createElement(y.a.Field,{width:4},d.a.createElement("label",null,"Program"),d.a.createElement(b.a,{fluid:!0,search:!0,selection:!0,value:this.state.progr,options:i,allowAdditions:!0,placeholder:"Program",onChange:function(t,r){e.setState({progr:r.value}),e.setState({formSubmit:!1})}})),d.a.createElement(y.a.Field,{width:4},d.a.createElement(m.a,{style:{position:"absolute",bottom:"3px"},basic:!0,content:"Submit",color:"blue",onClick:function(){return e.submitQPDet()}})))),this.state.formSubmit&&d.a.createElement("div",{style:{height:"550px",overflowY:"auto",border:"1px solid grey"}},d.a.createElement("table",{style:{width:"100%",border:"1px solid"}},d.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0,zIndex:2}},d.a.createElement("tr",null,d.a.createElement("td",{colSpan:11},d.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"}}))),d.a.createElement("tr",null,d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"Sl. No."),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"Degree"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"Exam No."),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"10%",textAlign:"center"}},"Sub. Code"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"35%",textAlign:"center"}},"Subject Name"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"Max Marks"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"10%",textAlign:"center"}},"Q.P. Code"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"15%",textAlign:"center"}},"Board Name"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"Available"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"No. Set"),d.a.createElement("th",{style:{borderRight:"1px solid grey",borderCollapse:"collapse",width:"5%",textAlign:"center"}},"No. Section"))),d.a.createElement("tbody",null,this.props.qpdata.length>0?this.state.tabDate.filter(function(t){return t.fqpcode.toLowerCase().includes(e.state.searchQP.toLowerCase())}).map(function(t,r){return d.a.createElement("tr",{key:r},d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},r+1),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse",paddingLeft:"10px"}},t.fdegree),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fexamno),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fsubcode),d.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fsubname),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fvalmax),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fqpcode),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fboard),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},t.totbal),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},d.a.createElement("input",{type:"text",maxLength:1,value:t.fsetno,onChange:function(t){return e.noqpval(t,r,"set")},style:{textAlign:"center",width:"30px",height:"30px",outline:0}})),d.a.createElement("td",{align:"center",style:{border:"1px solid grey",borderCollapse:"collapse"}},d.a.createElement("input",{type:"text",maxLength:1,value:t.fsec,onChange:function(t){return e.noqpval(t,r,"sec")},style:{textAlign:"center",width:"30px",height:"30px"}})))}):d.a.createElement("tr",null,d.a.createElement("td",{colSpan:10,style:{textAlign:"center",height:"30px"}},"No Data Found"))))))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user.fmobileno,year:e.loadYearAndMode,loadBoard:e.boaddet,progcode:e.progDet,qpdata:e.dataQPDet}},{showError:v.A,loadYearAndMode:x.m,getBoardDet:E.k,getProgram:E.q,getQPDeta:E.r,saveQPSetData:E.B})(S)},272:function(e,t,r){"use strict";var a=r(270),n=r.n(a),o=r(268),l=r.n(o),i=r(2),c=r.n(i),s=r(349),u=r(613),d=r(611),p=r(269);function h(e){var t=e.children,r=e.className,a=e.clearing,o=e.content,i=e.fitted,f=e.hidden,m=e.horizontal,g=e.inverted,y=e.section,b=e.vertical,v=l()("ui",Object(s.a)(a,"clearing"),Object(s.a)(i,"fitted"),Object(s.a)(f,"hidden"),Object(s.a)(m,"horizontal"),Object(s.a)(g,"inverted"),Object(s.a)(y,"section"),Object(s.a)(b,"vertical"),"divider",r),x=Object(u.a)(h,e),E=Object(d.a)(h,e);return c.a.createElement(E,n()({},x,{className:v}),p.a.isNil(t)?o:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h}}]);
//# sourceMappingURL=245.ddfe887e.chunk.js.map
|