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.139.87.151
(window.webpackJsonp=window.webpackJsonp||[]).push([[246,307],{1287:function(e,t,r){"use strict";r.r(t);var a=r(3),n=r(68),o=r(100),l=r(101),i=r(103),c=r(102),s=r(104),d=r(2),u=r.n(d),p=r(941),h=r(105),f=r(1377),m=r(1343),b=r(272),y=r(1335),v=r(1337),x=r(267),g=r(298),E=r(300);function w(){w=function(){return t};var e,t={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=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 d(e,t,r,a){var o=t&&t.prototype instanceof y?t:y,l=Object.create(o.prototype),i=new P(a||[]);return n(l,"_invoke",{value:j(e,r,i)}),l}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",b={};function y(){}function v(){}function x(){}var g={};s(g,l,function(){return this});var E=Object.getPrototypeOf,S=E&&E(E(q([])));S&&S!==r&&a.call(S,l)&&(g=S);var F=x.prototype=y.prototype=Object.create(g);function k(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){function r(n,o,l,i){var c=u(e[n],e,o);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,l,i)},function(e){r("throw",e,l,i)}):t.resolve(d).then(function(e){s.value=e,l(s)},function(e){return r("throw",e,l,i)})}i(c.arg)}var o;n(this,"_invoke",{value:function(e,a){function n(){return new t(function(t,n){r(e,a,t,n)})}return o=o?o.then(n,n):n()}})}function j(t,r,a){var n=p;return function(o,l){if(n===f)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw l;return{value:e,done:!0}}for(a.method=o,a.arg=l;;){var i=a.delegate;if(i){var c=O(i,a);if(c){if(c===b)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===p)throw n=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var s=u(t,r,a);if("normal"===s.type){if(n=a.done?m:h,s.arg===b)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(n=m,a.method="throw",a.arg=s.arg)}}}function O(t,r){var a=r.method,n=t.iterator[a];if(n===e)return r.delegate=null,"throw"===a&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),b;var o=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var l=o.arg;return l?l.done?(r[t.resultName]=l.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function B(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function q(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(a.call(t,n))return r.value=t[n],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 v.prototype=x,n(F,"constructor",{value:x,configurable:!0}),n(x,"constructor",{value:v,configurable:!0}),v.displayName=s(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,s(e,c,"GeneratorFunction")),e.prototype=Object.create(F),e},t.awrap=function(e){return{__await:e}},k(A.prototype),s(A.prototype,i,function(){return this}),t.AsyncIterator=A,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var l=new A(d(e,r,a,n),o);return t.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},k(F),s(F,c,"Generator"),s(F,l,function(){return this}),s(F,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=q,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(L),!t)for(var r in this)"t"===r.charAt(0)&&a.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 n(a,n){return i.type="throw",i.arg=t,r.next=a,n&&(r.method="next",r.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],i=l.completion;if("root"===l.tryLoc)return n("end");if(l.tryLoc<=this.prev){var c=a.call(l,"catchLoc"),s=a.call(l,"finallyLoc");if(c&&s){if(this.prev<l.catchLoc)return n(l.catchLoc,!0);if(this.prev<l.finallyLoc)return n(l.finallyLoc)}else if(c){if(this.prev<l.catchLoc)return n(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return n(l.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(l)},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),b},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),L(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;L(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:q(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),b}},t}var S=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={exam:"",sem:"All",board:"All",qpcode:"All",data:[],formSubmit:!1,qpFile:null,syllabusFile:null,schemeFile:null,indexQp:"",indexSyllabus:"",indexScheme:"",status:"pending"},r.componentDidMount=function(){r.props.examDate()},r.submitViewPatternHandler=Object(n.a)(w().mark(function e(){var t;return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==r.state.exam){e.next=4;break}return t={header:"Error",content:"Select Exam"},r.props.showError(t),e.abrupt("return");case 4:return e.next=6,r.props.viewQPPatternHandler(r.state.exam,r.state.board,r.state.qpcode,r.state.status,r.state.sem);case 6:r.setState({formSubmit:!0});case 7:case"end":return e.stop()}},e)})),r.handleSyllabusFileChange=function(e,t,a,n){var o=e.target.files[0].name.split(".").pop();if("pdf"===o||"doc"===o||"docx"===o)r.setState({syllabusFile:e.target.files[0]}),r.setState({indexSyllabus:n});else{r.props.showError({header:"Error",content:"pdf and word file are allowed"})}},r.handleQpFileChange=function(e,t,a,n){var o=e.target.files[0].name.split(".").pop();if("pdf"===o||"doc"===o||"docx"===o)r.setState({qpFile:e.target.files[0]}),r.setState({indexQp:n});else{r.props.showError({header:"Error",content:"pdf and word file are allowed"})}},r.handleSchemeFileChange=function(e,t,a,n){var o=e.target.files[0].name.split(".").pop();if("pdf"===o||"doc"===o||"docx"===o)r.setState({schemeFile:e.target.files[0]}),r.setState({indexScheme:n});else{r.props.showError({header:"Error",content:"pdf and word file are allowed"})}},r.handleFileUpload=function(){var e=Object(n.a)(w().mark(function e(t,a,n,o){var l,i,c;return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=r.state.qpFile||null!=r.state.syllabusFile||null!=r.state.schemeFile){e.next=4;break}return l={header:"Error",content:"Please upload scheme file or qp pattern or syllabus file"},r.props.showError(l),e.abrupt("return");case 4:if(o!==r.state.indexQp&&o!==r.state.indexSyllabus&&o!==r.state.indexScheme){e.next=20;break}return(i=new FormData).append("univcode",r.props.univcode),i.append("board",n),i.append("qpcode",a),i.append("year",r.state.exam),i.append("collcode",r.props.user.fcollcode),i.append("mobile",r.props.user.fmobileno),i.append("fuserid",r.props.user.fuserid),i.append("qpFile",r.state.qpFile),i.append("syllabusFile",r.state.syllabusFile),i.append("schemeFile",r.state.schemeFile),e.next=18,r.props.uploadQpSyllabusFile(i);case 18:e.next=23;break;case 20:return c={header:"Error",content:"Please upload QP Pattern or Syllabus file"},r.props.showError(c),e.abrupt("return");case 23:case"end":return e.stop()}},e)}));return function(t,r,a,n){return e.apply(this,arguments)}}(),r}return Object(s.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this,t=[{key:"All",text:"All",value:"All"}],r=this.props.year.map(function(e,t){return{key:t,text:e.fdesexam,value:e.fexamyear}}),n=this.props.loadBoard.map(function(e,t){return{key:t,text:e.fboardname,value:e.fboardcode}}),o=[].concat(t,Object(a.a)(n)),l=this.props.loadQp.map(function(e,t){return{key:t,text:"".concat(e.fqpcode," - ").concat(e.fsubname),value:e.fqpcode}}),i=[].concat(t,Object(a.a)(l)),c=[].concat(t,[{key:"A",text:"I sem",value:"A"},{key:"B",text:"II sem",value:"B"},{key:"C",text:"III sem",value:"C"},{key:"D",text:"IV sem",value:"D"},{key:"E",text:"V sem",value:"E"},{key:"F",text:"VI sem",value:"F"},{key:"G",text:"VII sem",value:"G"},{key:"H",text:"VIII sem",value:"H"},{key:"I",text:"IX sem",value:"I"},{key:"J",text:"X sem",value:"J"}]);return u.a.createElement(f.a,{fluid:!0},u.a.createElement(f.a.Content,null,u.a.createElement(f.a.Header,{style:{display:"flex"}},u.a.createElement("h4",null,"Upload QP Pattern"),u.a.createElement("div",{className:"ml-auto"},u.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",content:"Clear",onClick:function(){e.setState({exam:"",board:"All",qpcode:"All",data:[],formSubmit:!1,qpFile:null,syllabusFile:null,indexQp:"",indexSyllabus:""})}}),u.a.createElement(p.a,{to:"/dashboard"},u.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),u.a.createElement(b.a,null),u.a.createElement(f.a.Description,null,u.a.createElement(y.a,null,u.a.createElement(y.a.Group,null,u.a.createElement(y.a.Field,{width:6},u.a.createElement("label",null,"Exam"),u.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.exam,options:r,allowAdditions:!0,placeholder:"Exam",onChange:function(t,r){e.setState({exam:r.value}),e.setState({formSubmit:!1}),e.props.getBoardDet(r.value)}})),u.a.createElement(y.a.Field,{width:6},u.a.createElement("label",null,"Board"),u.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.board,options:o,allowAdditions:!0,placeholder:"Board",onChange:function(t,r){e.setState({board:r.value}),e.setState({formSubmit:!1}),e.props.getBoardSubj(e.state.exam,r.value)}})),u.a.createElement(y.a.Field,{width:6},u.a.createElement("label",null,"Qp Code"),u.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.qpcode,options:i,allowAdditions:!0,placeholder:"qpcode",onChange:function(t,r){e.setState({qpcode:r.value}),e.setState({formSubmit:!1})}}))),u.a.createElement(y.a.Group,null,u.a.createElement(y.a.Field,{width:6},u.a.createElement("label",null,"Semester"),u.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.sem,options:c,allowAdditions:!0,placeholder:"Semester",onChange:function(t,r){e.setState({sem:r.value}),e.setState({formSubmit:!1})}})),u.a.createElement(y.a.Field,{width:6},u.a.createElement("label",null,"Status"),u.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,value:this.state.status,options:[{key:"pending",text:"Pending",value:"pending"},{key:"uploaded",text:"Uploaded",value:"uploaded"},{key:"all",text:"All",value:"all"}],allowAdditions:!0,placeholder:"Status",onChange:function(t,r){e.setState({status:r.value}),e.setState({formSubmit:!1})}})),u.a.createElement(y.a.Field,{width:6},u.a.createElement(m.a,{style:{position:"absolute",bottom:"3px"},basic:!0,content:"Submit",color:"blue",onClick:function(){return e.submitViewPatternHandler()}})))),this.state.formSubmit&&u.a.createElement("div",{style:{width:"100%",height:"470px",overflowY:"auto"}},u.a.createElement("table",{style:{width:"100%",border:"1px solid"}},u.a.createElement("thead",{style:{background:"tan",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:"5%"}},"Sl. No."),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"15%"}},"QP Code"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"25%"}},"Subject Name"),"051"==this.props.univcode&&u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Sub. Short"),"051"==this.props.univcode&&u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Board"),("030"==this.props.univcode||"098"==this.props.univcode)&&u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"10%"}},"Upload Scheme Pattern"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"20%"}},"Upload QP Pattern"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"20%"}},"Upload Qp Syllabus"),u.a.createElement("th",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",width:"5%"}},"Action"))),u.a.createElement("tbody",null,this.props.qpdet.length>0?this.props.qpdet.map(function(t,r){var a="https://qp-scheme.s3.ap-south-1.amazonaws.com/";return u.a.createElement("tr",{key:r},u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},r+1),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},t.fqpcode),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",paddingLeft:"10px"}},t.fsubname),"051"==e.props.univcode&&u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},t.FSUBSHORT),"051"==e.props.univcode&&u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},t.fboard),("030"==e.props.univcode||"098"==e.props.univcode)&&u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center"}},u.a.createElement("div",{style:{display:"flex"}},u.a.createElement("input",{type:"file",onChange:function(a){return e.handleSchemeFileChange(a,t.fqpcode,t.fboard,r)}}),"pending"!==e.state.status&&u.a.createElement("a",{target:"_blank",href:a+t.FSCHPATTERN},"View"))),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",padding:"0 10px"}},u.a.createElement("div",{style:{display:"flex"}},u.a.createElement("input",{type:"file",onChange:function(a){return e.handleQpFileChange(a,t.fqpcode,t.fboard,r)}}),"pending"!==e.state.status&&u.a.createElement("a",{target:"_blank",href:a+t.FQPPATREN},"View"))),u.a.createElement("td",{style:{borderBottom:"1px solid",borderRight:"1px solid",padding:"0 10px"}},u.a.createElement("div",{style:{display:"flex"}},u.a.createElement("input",{type:"file",onChange:function(a){return e.handleSyllabusFileChange(a,t.fqpcode,t.fboard,r)}}),"pending"!==e.state.status&&u.a.createElement("a",{target:"_blank",href:a+t.FQPSYLLABUS},"View"))),u.a.createElement("td",{style:{borderBottom:"1px solid",padding:"4px"}},u.a.createElement(m.a,{basic:!0,size:"tiny",content:"Upload",color:"blue",onClick:function(a){return e.handleFileUpload(a,t.fqpcode,t.fboard,r)}})))}):u.a.createElement("tr",null,u.a.createElement("td",{colSpan:8,style:{borderBottom:"1px solid",borderRight:"1px solid",textAlign:"center",height:"30px"}},"No Data Found"))))))))}}]),t}(d.Component);t.default=Object(h.b)(function(e){return{user:e.user,univcode:e.univ.funivcode,year:e.examdate,loadBoard:e.boaddet,loadQp:e.boardsubj,qpdet:e.viewQPPattern}},{showError:x.A,loadYearAndMode:g.m,getBoardDet:E.k,getBoardSubj:E.l,viewQPPatternHandler:g.A,uploadQpSyllabusFile:g.y,examDate:E.h})(S)},272:function(e,t,r){"use strict";var a=r(270),n=r.n(a),o=r(268),l=r.n(o),i=r(2),c=r.n(i),s=r(349),d=r(613),u=r(611),p=r(269);function h(e){var t=e.children,r=e.className,a=e.clearing,o=e.content,i=e.fitted,f=e.hidden,m=e.horizontal,b=e.inverted,y=e.section,v=e.vertical,x=l()("ui",Object(s.a)(a,"clearing"),Object(s.a)(i,"fitted"),Object(s.a)(f,"hidden"),Object(s.a)(m,"horizontal"),Object(s.a)(b,"inverted"),Object(s.a)(y,"section"),Object(s.a)(v,"vertical"),"divider",r),g=Object(d.a)(h,e),E=Object(u.a)(h,e);return c.a.createElement(E,n()({},g,{className:x}),p.a.isNil(t)?o:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h}}]);
//# sourceMappingURL=246.3803a678.chunk.js.map
|