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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/274.e6565446.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[274,307],{1284:function(e,t,r){"use strict";r.r(t);var n=r(3),o=r(68),a=r(0),i=r(100),c=r(101),l=r(103),s=r(102),p=r(104),d=r(2),u=r.n(d),h=r(1377),f=r(1343),m=r(272),y=r(1335),g=r(941),x=r(300),b=r(105),v=r(267),w=r(274);function E(){E=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.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 p(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),c=new B(n||[]);return o(i,"_invoke",{value:Q(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var u="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function g(){}function x(){}function b(){}var v={};s(v,i,function(){return this});var w=Object.getPrototypeOf,P=w&&w(w(D([])));P&&P!==r&&n.call(P,i)&&(v=P);var O=b.prototype=g.prototype=Object.create(v);function A(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(o,a,i,c){var l=d(e[o],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(p).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,c)})}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return a=a?a.then(o,o):o()}})}function Q(t,r,n){var o=u;return function(a,i){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===u)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=d(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.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,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function D(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 o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(typeof t+" is not iterable")}return x.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:x,configurable:!0}),x.displayName=s(b,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,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},A(j.prototype),s(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new j(p(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},A(O),s(O,l,"Generator"),s(O,i,function(){return this}),s(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,B.prototype={constructor:B,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(k),!t)for(var r in this)"t"===r.charAt(0)&&n.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 o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){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(e,t){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"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):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),y},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),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var P=function(e){function t(){var e,r;Object(i.a)(this,t);for(var c=arguments.length,p=new Array(c),d=0;d<c;d++)p[d]=arguments[d];return(r=Object(l.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(p)))).state=Object(a.a)(Object(a.a)(Object(a.a)({askfile:{},qpfile:{},data:"",accttable:!0,yes:!1,no:!1,accepttable:[],acceptDet:""},"data",[]),"indexQP",""),"indexset",""),r.componentDidMount=Object(o.a)(E().mark(function e(){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.acceptedUploadQP(r.props.userid);case 2:r.setState({accepttable:r.props.qpDet}),r.setState({data:r.props.qpDet});case 4:case"end":return e.stop()}},e)})),r.changeHandler=function(e,t){var n=e.target.files[0].name.split(".")[1];if("docx"==n||"doc"==n)r.setState({file:e.target.files[0],indexset:t});else{r.props.showError({header:"Error",content:"Upload Only Word file"})}},r.changeHandlerQP=function(e,t){var n=e.target.files[0].name.split(".")[1];if("docx"==n||"doc"==n)r.setState({qpfile:e.target.files[0],indexQP:t});else{r.props.showError({header:"Error",content:"Upload Only Word file"})}},r.handleSubmission=function(){var e=Object(o.a)(E().mark(function e(t,n,o,a){var i,c,l;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a!==r.state.indexset||a!==r.state.indexQP){e.next=17;break}return(i=new FormData).append("File",r.state.file),i.append("QPFile",r.state.qpfile),i.append("univcode",r.props.univ),i.append("userid",r.props.userid),i.append("qpcode",t),i.append("set",n),i.append("fexam",o),i.append("collcode",r.props.user.fcollcode),i.append("mobileno",r.props.user.fmobileno),e.next=13,r.props.uploadQPDet(i);case 13:return e.next=15,r.props.acceptedUploadQP(r.props.userid);case 15:e.next=26;break;case 17:if(r.state.indexset===r.state.indexQP){e.next=23;break}return c={header:"Error",content:"Select Both the files and upload"},r.props.showError(c),e.abrupt("return");case 23:return l={header:"Error",content:"Upload the ".concat(r.state.indexQP+1," row")},r.props.showError(l),e.abrupt("return");case 26:case"end":return e.stop()}},e)}));return function(t,r,n,o){return e.apply(this,arguments)}}(),r.handleView=function(){var e=Object(o.a)(E().mark(function e(t,n,o){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.open(w.c+"viewQPDet&univcode="+r.props.univ+"&tech="+r.props.userid+"&qpcode="+t+"&set="+n+"&type="+o,"download");case 1:case"end":return e.stop()}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),r.handleAccept=function(){var e=Object(o.a)(E().mark(function e(t,o,a,i){var c;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=r.state.data.map(function(e,n){return n===a&&(e.fstatus=i,r.props.acceptQPDet(t,o,i,r.props.userid,r.props.user.fcollcode,r.props.user.fmobileno)),e}),r.setState({data:Object(n.a)(c)});case 2:case"end":return e.stop()}},e)}));return function(t,r,n,o){return e.apply(this,arguments)}}(),r.handleSave=Object(o.a)(E().mark(function e(){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.acceptedUploadQP(r.props.userid);case 2:r.setState({accttable:!1});case 3:case"end":return e.stop()}},e)})),r.downloadSyllabus=function(e){if(null!==e.FQPSYLLABUS&&""!==e.FQPSYLLABUS)r.props.downloadSyllabus(e.fqpcode,e.fset,e.fvalmax,r.props.user.fcollcode,r.props.user.fmobileno,r.props.user.fuserid),window.open("https://qp-scheme.s3.ap-south-1.amazonaws.com/"+e.FQPSYLLABUS);else{r.props.showError({header:"Error",content:"No File to Download"})}},r.downloadQPPattern=function(e){if(null!==e.FQPPATREN&&""!==e.FQPPATREN)r.props.downloadQPPattern(e.fqpcode,e.fset,e.fvalmax,r.props.user.fcollcode,r.props.user.fmobileno,r.props.user.fuserid),window.open("https://qp-scheme.s3.ap-south-1.amazonaws.com/"+e.FQPPATREN);else{r.props.showError({header:"Error",content:"No File to Download"})}},r}return Object(p.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this,t=this.props,r=(t.qpDet,t.accUpQP),n=this.state;n.data,n.accttable,n.yes,n.no,n.acceptDet;return u.a.createElement("div",null,u.a.createElement(h.a,{fluid:!0},u.a.createElement(h.a.Content,null,u.a.createElement(h.a.Header,{style:{display:"flex"}},u.a.createElement("h4",null,"Upload Question Paper Details"),u.a.createElement("div",{className:"ml-auto"},u.a.createElement(g.a,{to:"/Dashboard"},u.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),u.a.createElement(m.a,null),u.a.createElement(h.a.Description,null,u.a.createElement(y.a,null,u.a.createElement("div",{style:{width:"100%",height:"550px",overflowY:"auto",marginTop:"4px"}},u.a.createElement("table",{style:{width:"100%",border:"1px solid"}},u.a.createElement("thead",{style:{backgroundColor:"#1e7f91",color:"white",height:"40px",position:"sticky",top:0}},u.a.createElement("tr",null,u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"3%"}},"Sl. No."),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"7%"}},"QP Code."),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"20%"}},"Subject Name"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"3%"}},"Max Marks"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"4%"}},"Sets No."),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"8%"}},"Syllabus with COs"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"6%"}},"QP Pattern"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"16%"}},"Upload Date"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"8%"}},"Status"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%"}},"Upload Ans Key"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%"}},"Upload QP"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Action"))),u.a.createElement("tbody",null,r.map(function(t,r){t.FQPPATREN,t.FQPSYLLABUS;var n,o="https://universitysolutions.in/univadmin/"+t.fanskeypath,a="https://universitysolutions.in/univadmin/"+t.fqpfilepath;return n=""==t.qpupd?"red":"green",u.a.createElement("tr",{key:r},u.a.createElement("td",{style:{border:"1px solid",textAlign:"center",height:"30px"}},r+1),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",height:"30px"}},t.fqpcode),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",height:"30px"}},t.fsubname+" - "+t.FSUBSHORT),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",height:"30px"}},t.fvalmax),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},"Set ",t.fset),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},u.a.createElement("p",{style:{color:"#20a8d8"},onMouseOver:function(e){return e.target.style.textDecoration="underline"},onMouseOut:function(e){return e.target.style.textDecoration=""},onClick:function(){return e.downloadSyllabus(t)}},"Download")),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},u.a.createElement("p",{style:{color:"#20a8d8"},onMouseOver:function(e){return e.target.style.textDecoration="underline"},onMouseOut:function(e){return e.target.style.textDecoration=""},onClick:function(){return e.downloadQPPattern(t)}},"Download")),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},t.qpupd),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",borderColor:"black",color:n}},""!=t.qpupd?"Completed":"Pending"),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},u.a.createElement("input",{type:"file",name:"file",accept:"doc,docx",onChange:function(t){return e.changeHandler(t,r)}}),t.fanskeypath?u.a.createElement("a",{target:"_blank",href:o},"View"):null),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},u.a.createElement("input",{type:"file",name:"file",accept:"doc,docx",onChange:function(t){return e.changeHandlerQP(t,r)}}),t.fqpfilepath?u.a.createElement("a",{target:"_blank",href:a},"View"):null),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},u.a.createElement(f.a,{type:"submit",onClick:function(){return e.handleSubmission(t.fqpcode,t.fset,t.fexam,r)},basic:!0,color:"green",content:"Upload",style:{marginTop:"5px",textAlign:"center"},size:"mini"})))})))))))))}}]),t}(d.Component);t.default=Object(b.b)(function(e){return{user:e.user,userid:e.user.fuserid,univ:e.user.fcuruniv,qpDet:e.qPaperDet,view:e.viewqpd,accUpQP:e.accUploadDet,status:e.accQPDet}},{getQPDetails:x.s,uploadQPDet:x.I,acceptQPDet:x.a,acceptedUploadQP:x.b,showError:v.A,downloadSyllabus:x.g,downloadQPPattern:x.f})(P)},272:function(e,t,r){"use strict";var n=r(270),o=r.n(n),a=r(268),i=r.n(a),c=r(2),l=r.n(c),s=r(349),p=r(613),d=r(611),u=r(269);function h(e){var t=e.children,r=e.className,n=e.clearing,a=e.content,c=e.fitted,f=e.hidden,m=e.horizontal,y=e.inverted,g=e.section,x=e.vertical,b=i()("ui",Object(s.a)(n,"clearing"),Object(s.a)(c,"fitted"),Object(s.a)(f,"hidden"),Object(s.a)(m,"horizontal"),Object(s.a)(y,"inverted"),Object(s.a)(g,"section"),Object(s.a)(x,"vertical"),"divider",r),v=Object(p.a)(h,e),w=Object(d.a)(h,e);return l.a.createElement(w,o()({},v,{className:b}),u.a.isNil(t)?a:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h}}]);
//# sourceMappingURL=274.e6565446.chunk.js.map