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


Current Path : /var/www/qptran/static/js/
Upload File :
Current File : /var/www/qptran/static/js/33.a94d37fe.chunk.js

(window["webpackJsonpQP-Tran"]=window["webpackJsonpQP-Tran"]||[]).push([[33],{372:function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(374);n(373);t.a=function(){return a.a.createElement("div",null,a.a.createElement("div",{style:{position:"absolute",margin:"auto",top:0,right:0,bottom:0,left:0,width:"200px",height:"200px"}},a.a.createElement(o.a,{height:"80",width:"80",radisu:1,color:"rgb(0 123 255)",ariaLabel:"puff-loading",wrapperStyle:{},wrapperClass:"",visible:!0})))}},390:function(e,t,n){"use strict";n.r(t);var r=n(127),a=n(52),o=n(0),i=n.n(o),c=(n(180),n(380)),l=n(422),u=n(421),s=n(375),f=n(36),h=(n(128),n(114)),p=n(80),d=n.n(p),m=(n(376),n(377),n(372));function v(){v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(N){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof f?t:f,o=Object.create(a.prototype),i=new O(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return k()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=E(i,n);if(c){if(c===s)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,i),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=l;var s={};function f(){}function h(){}function p(){}var d={};c(d,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(j([])));y&&y!==t&&n.call(y,a)&&(d=y);var g=p.prototype=f.prototype=Object.create(d);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,c){var l=u(e[a],e,o);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function x(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 O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=p,c(g,"constructor",p),c(p,"constructor",h),h.displayName=c(p,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,i,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,o,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(g),c(g,i,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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,s):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),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;L(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}t.default=function(){var e=Object(o.useState)("01/10/2020"),t=Object(a.a)(e,2),n=t[0],p=t[1],y=Object(o.useState)(""),g=Object(a.a)(y,2),b=g[0],w=g[1],E=Object(o.useState)([]),x=Object(a.a)(E,2),L=x[0],O=x[1],j=Object(o.useState)([]),k=Object(a.a)(j,2),N=k[0],S=k[1],_=Object(o.useState)(!1),C=Object(a.a)(_,2),A=C[0],P=C[1],F=Object(o.useState)(!1),G=Object(a.a)(F,2),T=G[0],I=G[1];Object(o.useEffect)((function(){(function(){var e=Object(r.a)(v().mark((function e(){var t,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(!0),e.prev=1,e.next=4,h.a.get("app.php?a=loadQPExamSession&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(n));case 4:t=e.sent,r=t.data.data.map((function(e,t){return{key:t,value:e.fsession,text:e.fsession+" - "+e.fdescpn}})),O(r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0);case 12:I(!1);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var H=function(){var e=Object(r.a)(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(!0),e.prev=1,e.next=4,h.a.get("app.php?a=viewuplodedqp&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(n,"&session=").concat(b));case 4:if(0!=(t=e.sent).data.error_code){e.next=10;break}S(t.data.data),P(!0),e.next=13;break;case 10:return d.a.fire("Failed!",t.data.data.msg,"error"),I(!1),e.abrupt("return");case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),console.log(e.t0);case 18:I(!1);case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}}();return i.a.createElement("div",{className:"page"},T?i.a.createElement(m.a,null):i.a.createElement("div",{className:"row"},i.a.createElement("div",{className:"col-md-12 grid-margin stretch-card"},i.a.createElement("div",{className:"card"},i.a.createElement("div",{className:"card-body",style:{display:"flex"}},i.a.createElement("h4",null,"View Upload QP"),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(f.b,{to:"/viewqpupload"},i.a.createElement("button",{type:"button",className:"btn btn-info btn-fw"},"View")),i.a.createElement(f.b,{to:"/transaction/uploadqp"},i.a.createElement("button",{type:"button",className:"btn btn-info btn-fw"},"Back")),i.a.createElement("button",{onClick:function(){return w(""),void P(!1)},type:"button",className:"btn btn-info btn-fw"},"Clear"),i.a.createElement(f.b,{to:"/dashboard"},i.a.createElement("button",{type:"button",className:"btn btn-danger btn-fw"},i.a.createElement("span",{class:"mdi mdi-exit-to-app"}),"Exit")))),i.a.createElement(c.a,null),i.a.createElement("div",{className:"col-md-12"},i.a.createElement(l.a,null,i.a.createElement(l.a.Group,null,i.a.createElement(l.a.Field,{width:4},i.a.createElement("label",null,"Exam Date"),i.a.createElement(l.a.Input,{formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},type:"text",value:n,mask:"ed/nm/zyyy",placeholder:"dd/mm/yyyy",name:"date",onChange:function(e,t){p(t.value)}})),i.a.createElement(l.a.Field,{width:4},i.a.createElement("label",null,"Exam Session"),i.a.createElement(u.a,{placeholder:"Exam Session",name:"examsession",value:b,selection:!0,options:L,search:!0,onChange:function(e,t){w(t.value)}}))),i.a.createElement("button",{onClick:function(){return H()},type:"submit",className:"btn btn-info btn-fw"},i.a.createElement("span",{class:"mdi mdi-file-check btn-icon-prepend"}),"Submit")),i.a.createElement("br",null),1==A?i.a.createElement("div",{className:"ui mini form"},i.a.createElement(s.a,{celled:!0},i.a.createElement(s.a.Header,null,i.a.createElement(s.a.Row,null,i.a.createElement(s.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),i.a.createElement(s.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Exam Date"),i.a.createElement(s.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Session"),i.a.createElement(s.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"File"))),i.a.createElement(s.a.Body,null,N.map((function(e,t){return i.a.createElement(s.a.Row,{key:t},i.a.createElement(s.a.Cell,{textAlign:"center"},t+1),i.a.createElement(s.a.Cell,{textAlign:"center"},e.fexamdate),i.a.createElement(s.a.Cell,{textAlign:"center"},e.fsession),i.a.createElement(s.a.Cell,{textAlign:"center"},i.a.createElement("a",{href:"https://qp-tran.s3.ap-south-1.amazonaws.com/"+e.ffilepath,target:"_blank"},"Download")))}))))):null)))))}}}]);
//# sourceMappingURL=33.a94d37fe.chunk.js.map