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 : 18.191.186.194
(window.webpackJsonp=window.webpackJsonp||[]).push([[243,307],{1289:function(t,e,r){"use strict";r.r(e);var n=r(3),o=r(68),a=r(100),i=r(101),l=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),v=r(272),y=r(1335),b=r(1337),g=r(267),w=r(298),x=r(300);function E(){E=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),l=new N(n||[]);return o(i,"_invoke",{value:L(t,r,l)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",v={};function y(){}function b(){}function g(){}var w={};s(w,i,function(){return this});var x=Object.getPrototypeOf,S=x&&x(x(q([])));S&&S!==r&&n.call(S,i)&&(w=S);var j=g.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function A(t,e){function r(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then(function(t){r("next",t,i,l)},function(t){r("throw",t,i,l)}):e.resolve(u).then(function(t){s.value=t,i(s)},function(t){return r("throw",t,i,l)})}l(c.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return a=a?a.then(o,o):o()}})}function L(e,r,n){var o=p;return function(a,i){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var c=k(l,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var s=d(e,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=d(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function F(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function q(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=g,o(j,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:b,configurable:!0}),b.displayName=s(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},O(A.prototype),s(A.prototype,l,function(){return this}),e.AsyncIterator=A,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new A(u(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(j),s(j,c,"Generator"),s(j,i,function(){return this}),s(j,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=q,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;B(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:q(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var S=function(t){function e(){var t,r;Object(a.a)(this,e);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(r=Object(l.a)(this,(t=Object(c.a)(e)).call.apply(t,[this].concat(i)))).state={exam:"",board:"All",qpcode:"All",data:[],formSubmit:!1},r.componentDidMount=function(){r.props.loadYearAndMode()},r.viewFinalQp=Object(o.a)(E().mark(function t(){var e;return E().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==r.state.exam){t.next=4;break}return e={header:"Error",content:"Select Exam"},r.props.showError(e),t.abrupt("return");case 4:return t.next=6,r.setState({formSubmit:!0});case 6:return t.next=8,r.props.viewFinalQp(r.state.exam,r.state.board,r.state.qpcode);case 8:return t.next=10,r.setState({data:r.props.qpdet});case 10:case"end":return t.stop()}},t)})),r.downloadQPFinal=function(t,e){if(""!==e){var n=new FormData;n.append("univcode",r.props.user.fcuruniv),n.append("fcollcode",r.props.user.fcollcode),n.append("fmobileno",r.props.user.fmobileno),n.append("fuserid",r.props.user.fuserid),n.append("qpcode",t),r.props.downloadQPFinal(n),window.open("https://universitysolutions.in/univadmin/"+e)}else{r.props.showError({header:"Error",content:"No file found to download"})}},r}return Object(s.a)(e,t),Object(i.a)(e,[{key:"render",value:function(){var t=this,e=[{key:"All",text:"All",value:"All"}],r=this.props.year.map(function(t,e){return{key:e,text:t.fdesexam,value:t.fexamyear}}),o=this.props.loadBoard.map(function(t,e){return{key:e,text:t.fboardname,value:t.fboardcode}}),a=[].concat(e,Object(n.a)(o)),i=this.props.loadQp.map(function(t,e){return{key:e,text:"".concat(t.fqpcode," - ").concat(t.fsubname),value:t.fqpcode}}),l=[].concat(e,Object(n.a)(i));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,"Question Paper Report"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",content:"Clear",onClick:function(){t.setState({exam:""}),t.setState({board:"All"}),t.setState({qpcode:"All"}),t.setState({data:[]}),t.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(v.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:6},d.a.createElement("label",null,"Exam"),d.a.createElement(b.a,{fluid:!0,search:!0,selection:!0,value:this.state.exam,options:r,allowAdditions:!0,placeholder:"Exam",onChange:function(e,r){t.setState({exam:r.value}),t.setState({formSubmit:!1}),t.setState({board:"All"}),t.setState({qpcode:"All"}),t.props.getBoardDet(r.value)}})),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:a,allowAdditions:!0,placeholder:"Board",onChange:function(e,r){t.setState({board:r.value}),t.setState({formSubmit:!1}),t.setState({qpcodoe:"All"}),t.props.getBoardSubj(t.state.exam,r.value)}})),d.a.createElement(y.a.Field,{width:4},d.a.createElement("label",null,"Qp Code"),d.a.createElement(b.a,{fluid:!0,search:!0,selection:!0,value:this.state.qpcode,options:l,allowAdditions:!0,placeholder:"qpcode",onChange:function(e,r){t.setState({qpcode:r.value}),t.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 t.viewFinalQp()}})))),this.state.formSubmit&&d.a.createElement("div",{style:{width:"100%",height:"470px",overflowY:"auto"}},d.a.createElement("table",{style:{width:"100%",border:"1px solid"}},d.a.createElement("thead",{style:{background:"tan",height:"40px",position:"sticky",top:0}},d.a.createElement("tr",null,d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Sl. No."),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"QP Code"),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"25%"}},"Subject Name"),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Action"))),d.a.createElement("tbody",null,this.state.data.length>0?this.state.data.map(function(e,r){return d.a.createElement("tr",{style:{height:"30px"},key:r},d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},r+1),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},e.fqpcode),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px"}},e.fsubname),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},d.a.createElement("p",{style:{color:"#20a8d8"},onMouseOver:function(t){return t.target.style.underline="underline"},onMouseOut:function(t){return t.target.style.underline=""},onClick:function(){return t.downloadQPFinal(e.fqpcode,e.modqppath)}},"Download")))}):d.a.createElement("tr",{style:{height:"30px"}},d.a.createElement("td",{colSpan:4,style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},"No Data Found"))))))))}}]),e}(u.Component);e.default=Object(h.b)(function(t){return{user:t.user,univcode:t.univ.funivcode,year:t.loadYearAndMode,loadBoard:t.boaddet,loadQp:t.boardsubj,qpdet:t.viewFinalQp}},{showError:g.A,loadYearAndMode:w.m,getBoardDet:x.k,getBoardSubj:x.l,viewFinalQp:w.z,downloadQPFinal:w.d})(S)},272:function(t,e,r){"use strict";var n=r(270),o=r.n(n),a=r(268),i=r.n(a),l=r(2),c=r.n(l),s=r(349),u=r(613),d=r(611),p=r(269);function h(t){var e=t.children,r=t.className,n=t.clearing,a=t.content,l=t.fitted,f=t.hidden,m=t.horizontal,v=t.inverted,y=t.section,b=t.vertical,g=i()("ui",Object(s.a)(n,"clearing"),Object(s.a)(l,"fitted"),Object(s.a)(f,"hidden"),Object(s.a)(m,"horizontal"),Object(s.a)(v,"inverted"),Object(s.a)(y,"section"),Object(s.a)(b,"vertical"),"divider",r),w=Object(u.a)(h,t),x=Object(d.a)(h,t);return c.a.createElement(x,o()({},w,{className:g}),p.a.isNil(e)?a:e)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},e.a=h}}]);
//# sourceMappingURL=243.d06b66c8.chunk.js.map
|