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.77.119
(window.webpackJsonp=window.webpackJsonp||[]).push([[277,307],{1273:function(t,e,r){"use strict";r.r(e);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),u=r(2),d=r.n(u),h=r(1377),f=r(1343),m=r(272),y=r(1335),g=r(941),v=r(300),b=r(105),x=r(274);function w(){w=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",c=a.asyncIterator||"@@asyncIterator",l=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 p(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new B(n||[]);return o(i,"_invoke",{value:P(t,r,c)}),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function g(){}function v(){}function b(){}var x={};s(x,i,function(){return this});var E=Object.getPrototypeOf,j=E&&E(E(S([])));j&&j!==r&&n.call(j,i)&&(x=j);var O=b.prototype=g.prototype=Object.create(x);function A(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function L(t,e){function r(o,a,i,c){var l=u(t[o],t,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(p).then(function(t){s.value=t,i(s)},function(t){return r("throw",t,i,c)})}c(l.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 P(e,r,n){var o=d;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 c=n.delegate;if(c){var l=D(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===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var s=u(e,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 D(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,D(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=u(o,e.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[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function R(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function S(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 v.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},A(L.prototype),s(L.prototype,c,function(){return this}),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(p(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},A(O),s(O,l,"Generator"),s(O,i,function(){return this}),s(O,"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=S,B.prototype={constructor:B,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(k),!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 c.type="throw",c.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],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(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,y):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),y},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),k(r),y}},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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var E=function(t){function e(){var t,r;Object(i.a)(this,e);for(var c=arguments.length,p=new Array(c),u=0;u<c;u++)p[u]=arguments[u];return(r=Object(l.a)(this,(t=Object(s.a)(e)).call.apply(t,[this].concat(p)))).state=Object(a.a)({file:{},data:"",accttable:!0,yes:!1,no:!1,accepttable:[],acceptDet:""},"data",[]),r.componentDidMount=Object(o.a)(w().mark(function t(){return w().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.props.getQPDetails(r.props.userid);case 2:r.setState({accepttable:r.props.qpDet}),r.setState({data:r.props.qpDet});case 4:case"end":return t.stop()}},t)})),r.changeHandler=function(t){r.setState({file:t.target.files[0]})},r.handleSubmission=function(){var t=Object(o.a)(w().mark(function t(e,n,o,a){var i;return w().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(i=new FormData).append("File",r.state.file),i.append("univcode",r.props.univ),i.append("userid",r.props.userid),i.append("qpcode",e),i.append("set",n),i.append("fexam",o),i.append("type",a),t.next=10,r.props.uploadQPDet(i);case 10:case"end":return t.stop()}},t)}));return function(e,r,n,o){return t.apply(this,arguments)}}(),r.handleView=function(){var t=Object(o.a)(w().mark(function t(e,n,o){return w().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:window.open(x.c+"viewQPDet&univcode="+r.props.univ+"&tech="+r.props.userid+"&qpcode="+e+"&set="+n+"&type="+o,"download");case 1:case"end":return t.stop()}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),r.handleAccept=function(){var t=Object(o.a)(w().mark(function t(e,o,a,i){var c;return w().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:c=r.state.data.map(function(t,n){return n===a&&(t.fstatus=i,r.props.acceptQPDet(e,o,i,r.props.userid)),t}),r.setState({data:Object(n.a)(c)});case 2:case"end":return t.stop()}},t)}));return function(e,r,n,o){return t.apply(this,arguments)}}(),r}return Object(p.a)(e,t),Object(c.a)(e,[{key:"render",value:function(){var t=this,e=this.props,r=(e.qpDet,e.accUpQP,this.state),n=(r.data,r.accttable,r.yes),o=r.no;r.acceptDet;return d.a.createElement("div",null,d.a.createElement(h.a,{fluid:!0},d.a.createElement(h.a.Content,null,d.a.createElement(h.a.Header,{style:{display:"flex"}},d.a.createElement("h4",null,"Accept Question Paper Request"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(g.a,{to:"/Dashboard"},d.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(m.a,null),d.a.createElement(h.a.Description,null,d.a.createElement(y.a,null,d.a.createElement("div",{style:{width:"100%",height:"550px",overflowY:"auto",marginTop:"4px"}},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}},d.a.createElement("tr",null,d.a.createElement("th",{style:{textAlign:"center",borderBottom:"1px solid",borderRight:"1px solid",width:"4%"}},"Sl. No."),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"9%"}},"QP Code."),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"30%"}},"Subject Name"),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"7%"}},"Year - Mode"),"600"!==this.props.usertyp?d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"3%"}},"Max Marks"):"",d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"3%"}},"Sets No."),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"8%"}},"Syllabus with COs"),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"8%"}},"Question Paper Pattern"),"030"==this.props.univ&&d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"8%"}},"Scheme Pattern"),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%"}},"Accept / Reject"),d.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"9%"}},"Status"))),d.a.createElement("tbody",null,this.state.data.map(function(e,r){var a="https://qp-scheme.s3.ap-south-1.amazonaws.com/"+e.FQPPATREN,i="https://qp-scheme.s3.ap-south-1.amazonaws.com/"+e.FQPSYLLABUS,c="https://qp-scheme.s3.ap-south-1.amazonaws.com/"+e.fschpattern;return d.a.createElement("tr",{key:r},d.a.createElement("td",{style:{border:"1px solid",textAlign:"center",height:"30px"}},r+1),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",height:"30px"}},e.fqpcode),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",height:"30px"}},e.fsubname),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",height:"30px",textAlign:"center"}},e.fexam),"600"!==t.props.usertyp?d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",height:"30px"}},e.fvalmax):"",d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},e.fset),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},d.a.createElement("a",{href:i,target:"_blank"},"Download")),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},d.a.createElement("a",{href:a,target:"_blank"},"Download")),"030"==t.props.univ&&d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},d.a.createElement("a",{href:c,target:"_blank"},"Download")),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},d.a.createElement(f.a,{basic:!0,color:"green",content:"Yes",onClick:function(){return t.handleAccept(e.fqpcode,e.fset,r,"ACCEPTED")},size:"mini",disabled:n}),d.a.createElement(f.a,{basic:!0,color:"red",content:"No",onClick:function(){return t.handleAccept(e.fqpcode,e.fset,r,"REJECTED")},size:"mini",disabled:o})),d.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",fontSize:"12px"}},d.a.createElement("input",{type:"text",value:e.fstatus,disabled:!0})))})))))))))}}]),e}(u.Component);e.default=Object(b.b)(function(t){return{userid:t.user.fuserid,univ:t.user.fcuruniv,qpDet:t.qPaperDet,view:t.viewqpd,accUpQP:t.accUploadDet,status:t.accQPDet,usertyp:t.user.fcurtype}},{getQPDetails:v.s,uploadQPDet:v.I,acceptQPDet:v.a,acceptedUploadQP:v.b})(E)},272:function(t,e,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),u=r(611),d=r(269);function h(t){var e=t.children,r=t.className,n=t.clearing,a=t.content,c=t.fitted,f=t.hidden,m=t.horizontal,y=t.inverted,g=t.section,v=t.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)(v,"vertical"),"divider",r),x=Object(p.a)(h,t),w=Object(u.a)(h,t);return l.a.createElement(w,o()({},x,{className:b}),d.a.isNil(e)?a:e)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},e.a=h}}]);
//# sourceMappingURL=277.6a01d64a.chunk.js.map
|