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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/218.6f393e2d.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[218,302,307],{1277:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(100),o=r(101),i=r(103),c=r(102),l=r(104),s=r(2),u=r.n(s),p=r(1377),d=r(1343),f=r(272),h=r(941),m=r(105),y=r(298),v=r(709),g=r(267);function b(){b=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=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,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new F(n||[]);return a(i,"_invoke",{value:D(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",f="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function w(){}var x={};s(x,i,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(N([])));O&&O!==r&&n.call(O,i)&&(x=O);var L=w.prototype=v.prototype=Object.create(x);function j(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function r(a,o,i,c){var l=p(e[a],e,o);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 o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function D(t,r,n){var a=d;return function(o,i){if(a===h)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,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(a===d)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var s=p(t,r,n);if("normal"===s.type){if(a=n.done?m:f,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=m,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,a=t.iterator[n];if(a===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 o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.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 F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(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 a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],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 g.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:g,configurable:!0}),g.displayName=s(w,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,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},j(k.prototype),s(k.prototype,c,function(){return this}),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},j(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=N,F.prototype={constructor:F,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 a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("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 a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.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 a=n.arg;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var w=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,l=new Array(o),s=0;s<o;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:""},r.componentDidMount=function(){r.props.getModeratorData(r.props.user.fuserid,r.props.user.fcuruniv),setTimeout(Object(n.a)(b().mark(function e(){return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({data:r.props.modData});case 2:case"end":return e.stop()}},e)})),500)},r.viewAllModData=function(){var e=Object(n.a)(b().mark(function e(t,n,a,o,i,c,l,s,u){return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getModUpdData(r.props.user.fcuruniv,t,a,i,n,s,u);case 2:if(!(r.props.modUpdData.length>0)){e.next=5;break}return e.next=5,r.setState({qpcode:t,set:n,teachcode:a,loading:!1,subname:o,modData:r.props.modUpdData,url:c,userid:i,setnos:l});case 5:case"end":return e.stop()}},e)}));return function(t,r,n,a,o,i,c,l,s){return e.apply(this,arguments)}}(),r}return Object(l.a)(t,e),Object(o.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(h.a,{to:"/Dashboard"},u.a.createElement(d.a,{basic:!0,size:"mini",color:"red",content:"Exit",icon:"home"})))),u.a.createElement(f.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:"17%"}},"Mod. Date"),u.a.createElement("th",{style:{border:"1px solid",width:"8%"}},"Mod. Status"),u.a.createElement("th",{style:{border:"1px solid",width:"5%"}},"Syllaus"),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,a="https://qp-scheme.s3.ap-south-1.amazonaws.com/"+t.fqpsyllabus;return n=""==t.fmodqpdate?"red":"green",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",textAlign:"center"}},t.fset),u.a.createElement("td",{style:{border:"1px solid",textAlign:"center"}},t.fmodqpdate),u.a.createElement("td",{style:{border:"1px solid",borderColor:"black",textAlign:"center",color:n}},""!=t.fmodqpdate?"Completed":"Pending"),u.a.createElement("td",{style:{border:"1px solid",paddingLeft:"10px",textAlign:"center"}},u.a.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer"},"View")),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,a,t.setnos,t.fyear,t.fexamtype)}})))}):u.a.createElement("tr",null,u.a.createElement("td",{colSpan:5},"No Data Found!!"))))):u.a.createElement(v.default,{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})))))}}]),t}(s.Component);t.default=Object(m.b)(function(e){return{user:e.user,modData:e.getModeratorData,modUpdData:e.getModUpdData}},{getModeratorData:y.g,getModUpdData:y.f,showError:g.A})(w)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),c=r(2),l=r.n(c),s=r(349),u=r(613),p=r(611),d=r(269);function f(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,c=e.fitted,h=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)(h,"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)(f,e),x=Object(p.a)(f,e);return l.a.createElement(x,a()({},w,{className:b}),d.a.isNil(t)?o:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},709:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(100),o=r(101),i=r(103),c=r(102),l=r(104),s=r(2),u=r.n(s),p=r(105),d=r(298),f=r(267);function h(){h=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=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,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),c=new F(n||[]);return a(i,"_invoke",{value:D(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",f="suspendedYield",m="executing",y="completed",v={};function g(){}function b(){}function w(){}var x={};s(x,i,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(N([])));O&&O!==r&&n.call(O,i)&&(x=O);var L=w.prototype=g.prototype=Object.create(x);function j(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function r(a,o,i,c){var l=p(e[a],e,o);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 o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function D(t,r,n){var a=d;return function(o,i){if(a===m)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var s=p(t,r,n);if("normal"===s.type){if(a=n.done?y:f,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=y,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,a=t.iterator[n];if(a===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")),v;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.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,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}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 F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(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 a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],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=w,a(L,"constructor",{value:w,configurable:!0}),a(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}},j(k.prototype),s(k.prototype,c,function(){return this}),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},j(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=N,F.prototype={constructor:F,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 a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("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 a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):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),v},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),v}},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 a=n.arg;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var m=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,l=new Array(o),s=0;s<o;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.uploadQPMODFIle=function(){var e=Object(n.a)(h().mark(function e(t,n,a,o,i,c,l){var s;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((s=new FormData).append("univcode",r.props.univcode),s.append("qpmodfile",t.target.files[0]),s.append("qpcode",n),s.append("set",a),s.append("fqpcodeno",i),s.append("teachcode",o),s.append("fyear",c),s.append("fexamtype",l),!window.confirm("Do You Want to Upload")){e.next=14;break}return e.next=12,r.props.uploadQPMODFIle(s);case 12:e.next=15;break;case 14:alert("You Pressed Cancelled");case 15:case"end":return e.stop()}},e)}));return function(t,r,n,a,o,i,c){return e.apply(this,arguments)}}(),r.uploadAnsMODFIle=function(){var e=Object(n.a)(h().mark(function e(t,n,a,o,i,c,l){var s;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((s=new FormData).append("univcode",r.props.univcode),s.append("ansmodfile",t.target.files[0]),s.append("qpcode",n),s.append("set",a),s.append("fqpcodeno",i),s.append("teachcode",o),s.append("fyear",c),s.append("fexamtype",l),!window.confirm("Do You Want to Upload")){e.next=14;break}return e.next=12,r.props.uploadAnsMODFIle(s);case 12:e.next=15;break;case 14:alert("You Pressed Cancelled");case 15:case"end":return e.stop()}},e)}));return function(t,r,n,a,o,i,c){return e.apply(this,arguments)}}(),r.uploadMODFormFIle=function(){var e=Object(n.a)(h().mark(function e(t,n,a,o,i,c,l){var s;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((s=new FormData).append("univcode",r.props.univcode),s.append("modfile",t.target.files[0]),s.append("qpcode",n),s.append("set",a),s.append("fqpcodeno",i),s.append("teachcode",o),s.append("fyear",c),s.append("fexamtype",l),!window.confirm("Do You Want to Upload")){e.next=14;break}return e.next=12,r.props.uploadMODFormFIle(s);case 12:e.next=15;break;case 14:alert("You Pressed Cancelled");case 15:case"end":return e.stop()}},e)}));return function(t,r,n,a,o,i,c){return e.apply(this,arguments)}}(),r}return Object(l.a)(t,e),Object(o.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"}},"Sl. No."),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"}},"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.setno),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",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"}},"Sl No. "),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/",a="https://universitysolutions.in/univadmin/"+t.fqpfilepath,o="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"}},u.a.createElement("b",null,e.props.setno)),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 QP FILE")),u.a.createElement("br",null),u.a.createElement("br",null),u.a.createElement("input",{type:"file",onChange:function(r){return e.uploadQPMODFIle(r,e.props.qpcode,t.fset,t.fteachcode,t.fqpcodeno,t.fyear,t.fexamtype)}}),""!==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:o},"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.fyear,t.fexamtype)}}),""!==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.fyear,t.fexamtype)}}),""!==t.fmodform&&u.a.createElement("a",{href:n+t.fmodform,target:"_blank",rel:"noopener noreferrer"},"View")))})))))}}]),t}(s.Component);t.default=Object(p.b)(function(e){return{modUpdData:e.getModUpdData}},{showError:f.A,uploadQPMODFIle:d.x,uploadAnsMODFIle:d.v,uploadMODFormFIle:d.w,getModUpdData:d.f})(m)}}]);
//# sourceMappingURL=218.6f393e2d.chunk.js.map