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


Current Path : /var/www/qptran/static/js/
Upload File :
Current File : /var/www/qptran/static/js/28.9801c858.chunk.js

(window["webpackJsonpQP-Tran"]=window["webpackJsonpQP-Tran"]||[]).push([[28],{372:function(e,t,r){"use strict";var n=r(0),a=r.n(n),o=r(374);r(373);t.a=function(){return a.a.createElement("div",{className:"page"},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})))}},419:function(e,t,r){"use strict";r.r(t);var n=r(127),a=r(52),o=r(0),i=r.n(o),c=(r(180),r(380)),l=r(422),u=r(421),s=r(375),f=r(36),h=(r(128),r(114)),d=r(80),p=r.n(d),m=(r(376),r(377),r(372));function v(){v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(S){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof f?t:f,o=Object.create(a.prototype),i=new O(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return k()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=b(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,i),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=l;var s={};function f(){}function h(){}function d(){}var p={};c(p,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(j([])));y&&y!==t&&r.call(y,a)&&(p=y);var g=d.prototype=f.prototype=Object.create(p);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var n;this._invoke=function(a,o){function i(){return new t((function(n,i){!function n(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&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}(a,o,n,i)}))}return n=n?n.then(i,i):i()}}function b(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(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 n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var a=n.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 n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],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=d,c(g,"constructor",d),c(d,"constructor",h),h.displayName=c(d,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,d):(e.__proto__=d,c(e,i,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new E(l(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(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 r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},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)&&r.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 n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),s}},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;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}t.default=function(){var e=Object(o.useState)("25/03/2021"),t=Object(a.a)(e,2),r=t[0],d=t[1],y=Object(o.useState)(""),g=Object(a.a)(y,2),w=g[0],E=g[1],b=Object(o.useState)([]),x=Object(a.a)(b,2),L=x[0],O=x[1],j=Object(o.useState)([]),k=Object(a.a)(j,2),S=k[0],N=k[1],C=Object(o.useState)(!1),_=Object(a.a)(C,2),A=_[0],G=_[1],P=Object(o.useState)(!1),F=Object(a.a)(P,2),T=F[0],H=F[1];Object(o.useEffect)((function(){(function(){var e=Object(n.a)(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.prev=1,e.next=4,h.a.get("app.php?a=loadQPviewfootnotesession&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(r));case 4:t=e.sent,n=t.data.data.map((function(e,t){return{key:t,value:e.fsession,text:e.fsession+" - "+e.fdescpn}})),O(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0);case 12:H(!1);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var I=function(){var e=Object(n.a)(v().mark((function e(t){var r,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.prev=1,e.next=4,h.a.get("app.php?a=loadQPviewfootnotesession&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(t));case 4:0==(r=e.sent).data.error_code?(n=r.data.data.map((function(e,t){return{key:t,value:e.fsession,text:e.fsession+" - "+e.fdescpn}})),O(n)):O([]),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log(e.t0);case 11:H(!1);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),D=function(){var e=Object(n.a)(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.prev=1,e.next=4,h.a.get("app.php?a=viewfootnotedet&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(r,"&session=").concat(w));case 4:if(0!=(t=e.sent).data.error_code){e.next=10;break}N(t.data.data),G(!0),e.next=13;break;case 10:return p.a.fire("Failed!",t.data.data.msg,"error"),H(!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:H(!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 Footnote"),i.a.createElement("div",{className:"ml-auto"},i.a.createElement("button",{onClick:function(){return E(""),void G(!1)},type:"button",className:"btn btn-info btn-fw"},"Clear"),i.a.createElement(f.b,{to:"/dashboardcollege"},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:r,mask:"ed/nm/zyyy",placeholder:"dd/mm/yyyy",name:"date",onChange:function(e,t){d(t.value),I(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:w,selection:!0,options:L,search:!0,onChange:function(e,t){E(t.value)}}))),i.a.createElement("button",{onClick:function(){return D()},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"},"Degree Group"),i.a.createElement(s.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Title"),i.a.createElement(s.a.HeaderCell,{style:{width:"40%"},textAlign:"center"},"Description"))),i.a.createElement(s.a.Body,null,S.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.fdate),i.a.createElement(s.a.Cell,{textAlign:"center"},e.fsession),i.a.createElement(s.a.Cell,{textAlign:"center"},e.fdeggrp),i.a.createElement(s.a.Cell,{textAlign:"center"},e.ftitle),i.a.createElement(s.a.Cell,{textAlign:"center"},e.fdescription))}))))):null)))))}}}]);
//# sourceMappingURL=28.9801c858.chunk.js.map