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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/273.80c2ec2b.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[273,307],{1426:function(e,t,r){"use strict";r.r(t);var n=r(68),o=r(100),a=r(101),i=r(103),c=r(102),l=r(104),s=r(2),u=r.n(s),p=r(1377),d=r(1343),h=r(272),f=r(941),m=r(105),y=r(298),v=r(267);function g(){g=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 u(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:k(e,r,c)}),i}function p(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",h="suspendedYield",f="executing",m="completed",y={};function v(){}function b(){}function w(){}var x={};s(x,i,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(F([])));O&&O!==r&&n.call(O,i)&&(x=O);var L=w.prototype=v.prototype=Object.create(x);function D(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=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&n.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 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 k(t,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:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=S(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=p(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 S(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,S(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=p(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 _(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function F(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 b.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,l,"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,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},D(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(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},D(L),s(L,l,"Generator"),s(L,i,function(){return this}),s(L,"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=F,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(A),!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),A(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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var b=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={data:r.props.data,fset:r.props.setno,fqpcodeno:r.props.section},r.upldQPMODFile=function(){var e=Object(n.a)(g().mark(function e(t,n,o,a,i){var c;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((c=new FormData).append("univcode",r.props.univcode),c.append("qpmodfile",t.target.files[0]),c.append("qpcode",n),c.append("set",o),c.append("teachcode",a),c.append("fqpcodeno",i),!window.confirm("Do You Want to Upload")){e.next=16;break}return e.next=10,r.props.upldQPMODFile(c);case 10:return e.next=12,r.props.getModQPData(r.props.univcode,r.props.qpcode,r.props.teachcode,r.props.userid,r.props.set,r.props.section);case 12:return e.next=14,r.setState({data:r.props.modUpdData,fset:r.props.setno});case 14:e.next=17;break;case 16:alert("You Pressed Cancelled");case 17:case"end":return e.stop()}},e)}));return function(t,r,n,o,a){return e.apply(this,arguments)}}(),r.uploadAnsMODFIle=function(){var e=Object(n.a)(g().mark(function e(t,n,o,a,i){var c;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((c=new FormData).append("univcode",r.props.univcode),c.append("ansmodfile",t.target.files[0]),c.append("qpcode",n),c.append("set",o),c.append("teachcode",a),c.append("fqpcodeno",i),!window.confirm("Do You Want to Upload")){e.next=15;break}return e.next=10,r.props.upldAnsMODFile(c);case 10:return e.next=12,r.props.getModQPData(r.props.univcode,r.props.qpcode,r.props.teachcode,r.props.userid,r.props.set,r.props.section);case 12:r.setState({data:r.props.modUpdData,fset:r.props.setno,fqpcodeno:r.props.section}),e.next=16;break;case 15:alert("You Pressed Cancelled");case 16:case"end":return e.stop()}},e)}));return function(t,r,n,o,a){return e.apply(this,arguments)}}(),r.uploadMODFormFIle=function(){var e=Object(n.a)(g().mark(function e(t,n,o,a,i){var c;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((c=new FormData).append("univcode",r.props.univcode),c.append("modfile",t.target.files[0]),c.append("qpcode",n),c.append("set",o),c.append("teachcode",a),c.append("fqpcodeno",i),!window.confirm("Do You Want to Upload")){e.next=16;break}return e.next=10,r.props.upldMODFormFile(c);case 10:return e.next=12,r.props.getModQPData(r.props.univcode,r.props.qpcode,r.props.teachcode,r.props.userid,r.props.set,r.props.section);case 12:return e.next=14,r.setState({data:r.props.modUpdData,fset:r.props.setno,fqpcodeno:r.props.section});case 14:e.next=17;break;case 16:alert("You Pressed Cancelled");case 17:case"end":return e.stop()}},e)}));return function(t,r,n,o,a){return e.apply(this,arguments)}}(),r}return Object(l.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e=this;return u.a.createElement("div",null,u.a.createElement("table",{style:{width:"100%",border:"1px Solid"}},u.a.createElement("thead",{style:{background:"tan",height:"40px",textAlign:"center"}},u.a.createElement("tr",null,u.a.createElement("th",{style:{border:"1px Solid"}},"QP Code "),u.a.createElement("th",{style:{border:"1px Solid"}},"Course Name"),u.a.createElement("th",{style:{border:"1px Solid"}},"Set No."),u.a.createElement("th",{style:{border:"1px Solid"}},"Section"),u.a.createElement("th",{style:{border:"1px Solid"}},"Syllabus"))),u.a.createElement("tbody",null,u.a.createElement("tr",{style:{height:"30px"}},u.a.createElement("td",{style:{border:"1px Solid",textAlign:"center"}},this.props.qpcode),u.a.createElement("td",{style:{border:"1px Solid",paddingLeft:"10px"}},this.props.subname),u.a.createElement("td",{style:{border:"1px Solid",paddingLeft:"10px",textAlign:"center"}},this.props.set),u.a.createElement("td",{style:{border:"1px Solid",paddingLeft:"10px",textAlign:"center"}},this.props.section),u.a.createElement("td",{style:{border:"1px Solid",textAlign:"center"}},u.a.createElement("a",{href:this.props.url,target:"_blank",rel:"noopener noreferrer"},"View"))))),u.a.createElement("div",{style:{paddingTop:"20px"}},u.a.createElement("table",{style:{width:"100%",border:"1px Solid"}},u.a.createElement("thead",{style:{background:"tan",height:"40px",textAlign:"center"}},u.a.createElement("tr",null,u.a.createElement("th",{style:{border:"1px Solid"}},"QP FILE"),u.a.createElement("th",{style:{border:"1px Solid"}},"ANS KEY FILE"),u.a.createElement("th",{style:{border:"1px Solid"}},"QPMOD FORM"))),u.a.createElement("tbody",null,this.state.data.map(function(t,r){var n="https://moderator-upd.s3.ap-south-1.amazonaws.com/",o="https://universitysolutions.in/univadmin/"+t.fqpfilepath,a="https://universitysolutions.in/univadmin/"+t.fanskeypath;return u.a.createElement("tr",{style:{height:"30px"},key:r},u.a.createElement("td",{style:{border:"1px Solid",textAlign:"center",padding:"10px"}},u.a.createElement("b",null,u.a.createElement("a",{target:"_blank",href:o},"DOWNLOAD QP FILE")),u.a.createElement("br",null),u.a.createElement("br",null),u.a.createElement("input",{type:"file",onChange:function(r){return e.upldQPMODFile(r,e.props.qpcode,t.fset,t.fteachcode,t.fqpcodeno)}}),""!==t.fmodqpupd&&u.a.createElement("a",{href:n+t.fmodqpupd,target:"_blank",rel:"noopener noreferrer"},"View")),u.a.createElement("td",{style:{border:"1px Solid",textAlign:"center",padding:"10px"}},u.a.createElement("b",null,u.a.createElement("a",{target:"_blank",href:a},"DOWNLOAD ANS KEY")),u.a.createElement("br",null),u.a.createElement("br",null),u.a.createElement("input",{type:"file",onChange:function(r){return e.uploadAnsMODFIle(r,e.props.qpcode,t.fset,t.fteachcode,t.fqpcodeno)}}),""!==t.fmodanskey&&u.a.createElement("a",{href:n+t.fmodanskey,target:"_blank",rel:"noopener noreferrer"},"View")),u.a.createElement("td",{style:{border:"1px Solid",textAlign:"center"}},u.a.createElement("b",null,u.a.createElement("a",{target:"_blank",href:"https://universitysolutions.in/univadmin/QP_Details/051/Q.P.moderation_format_14.03.2023.docx"},"DOWNLOAD MODERATOR FORM")),u.a.createElement("br",null),u.a.createElement("br",null),u.a.createElement("input",{type:"file",onChange:function(r){return e.uploadMODFormFIle(r,e.props.qpcode,t.fset,t.fteachcode,t.fqpcodeno)}}),""!==t.fmodform&&u.a.createElement("a",{href:n+t.fmodform,target:"_blank",rel:"noopener noreferrer"},"View")))})))))}}]),t}(s.Component),w=Object(m.b)(function(e){return{modUpdData:e.getModQPData}},{showError:v.A,upldQPMODFile:y.u,upldAnsMODFile:y.s,upldMODFormFile:y.t,getModQPData:y.e})(b);function x(){x=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 u(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:k(e,r,c)}),i}function p(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",h="suspendedYield",f="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};s(w,i,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(F([])));O&&O!==r&&n.call(O,i)&&(w=O);var L=b.prototype=v.prototype=Object.create(w);function D(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=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&n.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 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 k(t,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:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=S(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=p(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 S(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,S(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=p(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 _(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function F(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 g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"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(L),e},t.awrap=function(e){return{__await:e}},D(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(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},D(L),s(L,l,"Generator"),s(L,i,function(){return this}),s(L,"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=F,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(A),!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),A(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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var E=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={data:[],qpcode:"dsjhsdj",set:"",teachcode:"",subname:"",loading:!0,modData:[],url:"",userid:"",setnos:"",section:""},r.componentDidMount=function(){r.props.getModeratorDet(r.props.user.fuserid,r.props.user.fcuruniv),setTimeout(Object(n.a)(x().mark(function e(){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({data:r.props.modeDate});case 2:case"end":return e.stop()}},e)})),500)},r.viewAllModData=function(){var e=Object(n.a)(x().mark(function e(t,n,o,a,i,c,l,s){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getModQPData(r.props.user.fcuruniv,t,o,i,n,s);case 2:r.props.modUpdData.length>0&&r.setState({qpcode:t,set:n,teachcode:o,loading:!1,subname:a,modData:r.props.modUpdData,url:c,userid:i,setnos:l,section:s});case 3:case"end":return e.stop()}},e)}));return function(t,r,n,o,a,i,c,l){return e.apply(this,arguments)}}(),r}return Object(l.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e=this;return u.a.createElement("div",null,u.a.createElement(p.a,{fluid:!0},u.a.createElement(p.a.Content,null,u.a.createElement(p.a.Header,{style:{display:"flex"}},u.a.createElement("h4",null,"Moderator QP Details"),u.a.createElement("div",{className:"ml-auto"},!this.state.loading&&u.a.createElement(d.a,{basic:!0,size:"mini",color:"yellow",content:"Back",icon:"arrow left",onClick:function(){return e.setState({loading:!0})}}),u.a.createElement(f.a,{to:"/Dashboard"},u.a.createElement(d.a,{basic:!0,size:"mini",color:"red",content:"Exit",icon:"home"})))),u.a.createElement(h.a,null),u.a.createElement(p.a.Description,null,this.state.loading?u.a.createElement("div",{style:{width:"100%",height:"630px",overflowY:"auto"}},u.a.createElement("table",{style:{border:"1px solid",width:"100%"}},u.a.createElement("thead",{style:{position:"sticky",top:0,height:"40px",background:"tan",textAlign:"center"}},u.a.createElement("tr",null,u.a.createElement("th",{style:{border:"1px solid",width:"5%"}},"Sl. No."),u.a.createElement("th",{style:{border:"1px solid",width:"10%"}},"QP. Code"),u.a.createElement("th",{style:{border:"1px solid",width:"35%"}},"Course Name"),u.a.createElement("th",{style:{border:"1px solid",width:"5%"}},"Set No"),u.a.createElement("th",{style:{border:"1px solid",width:"5%"}},"Section"),u.a.createElement("th",{style:{border:"1px solid",width:"10%"}},"Syllaus"),u.a.createElement("th",{style:{border:"1px solid",width:"10%"}},"Status"),u.a.createElement("th",{style:{border:"1px solid",width:"10%"}},"Action"))),u.a.createElement("tbody",null,this.state.data.length>0?this.state.data.map(function(t,r){var n="https://qp-scheme.s3.ap-south-1.amazonaws.com/"+t.fsqpsyllabus,o="Uploaded"==t.fmod?"green":"red";return u.a.createElement("tr",{key:r,style:{height:"30px"}},u.a.createElement("td",{style:{border:"1px solid",textAlign:"center"}},t.setnos=r+1),u.a.createElement("td",{style:{border:"1px solid",textAlign:"center"}},t.fqpcode),u.a.createElement("td",{style:{border:"1px solid",paddingLeft:"10px"}},t.fsubname),u.a.createElement("td",{style:{border:"1px solid",paddingLeft:"10px",textAlign:"center"}},t.fset),u.a.createElement("td",{style:{border:"1px solid",paddingLeft:"10px",textAlign:"center"}},t.section),u.a.createElement("td",{style:{border:"1px solid",paddingLeft:"10px",textAlign:"center"}},u.a.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer"},"View")),u.a.createElement("td",{style:{paddingLeft:"10px",textAlign:"center",color:o}},t.fmod),u.a.createElement("td",{style:{border:"1px solid",textAlign:"center"}},u.a.createElement(d.a,{style:{width:"100%"},content:"View",color:"green",icon:"eye",basic:!0,size:"mini",onClick:function(){return e.viewAllModData(t.fqpcode,t.fset,t.fteachcode,t.fsubname,e.props.user.fuserid,n,t.setnos,t.section)}})))}):u.a.createElement("tr",null,u.a.createElement("td",{colSpan:5},"No Data Found!!"))))):u.a.createElement(w,{qpcode:this.state.qpcode,set:this.state.set,teachcode:this.state.teachcode,subname:this.state.subname,data:this.state.modData,univcode:this.props.user.fcuruniv,url:this.state.url,userid:this.state.userid,setno:this.state.setnos,section:this.state.section})))))}}]),t}(s.Component);t.default=Object(m.b)(function(e){return{user:e.user,modUpdData:e.getModQPData,modeDate:e.modeData}},{getModQPData:y.e,showError:v.A,getModeratorDet:y.h})(E)},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),u=r(613),p=r(611),d=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,v=e.section,g=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)(v,"section"),Object(s.a)(g,"vertical"),"divider",r),w=Object(u.a)(h,e),x=Object(p.a)(h,e);return l.a.createElement(x,o()({},w,{className:b}),d.a.isNil(t)?a:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h}}]);
//# sourceMappingURL=273.80c2ec2b.chunk.js.map