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 : 18.188.162.87
(window["webpackJsonpQP-Tran"]=window["webpackJsonpQP-Tran"]||[]).push([[11],{372:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(374);a(373);t.a=function(){return r.a.createElement("div",{className:"page"},r.a.createElement("div",{style:{position:"absolute",margin:"auto",top:0,right:0,bottom:0,left:0,width:"200px",height:"200px"}},r.a.createElement(c.a,{height:"80",width:"80",radisu:1,color:"rgb(0 123 255)",ariaLabel:"puff-loading",wrapperStyle:{},wrapperClass:"",visible:!0})))}},375:function(e,t,a){"use strict";var n=a(1),r=a(79),c=a(4),o=a(0),i=a.n(o),l=a(37),s=a(149),u=a(157),d=a(5);function p(e){var t=e.children,a=e.className,r=Object(c.a)(a),o=Object(s.a)(p,e),l=Object(u.a)(p,e);return i.a.createElement(l,Object(n.a)({},o,{className:r}),t)}p.handledProps=["as","children","className"],p.defaultProps={as:"tbody"},p.propTypes={};var f=p,h=a(165),m=a(73);function b(e){var t=e.active,a=e.children,r=e.className,o=e.collapsing,p=e.content,f=e.disabled,h=e.error,v=e.icon,g=e.negative,y=e.positive,w=e.selectable,j=e.singleLine,O=e.textAlign,E=e.verticalAlign,x=e.warning,N=e.width,k=Object(c.a)(Object(l.a)(t,"active"),Object(l.a)(o,"collapsing"),Object(l.a)(f,"disabled"),Object(l.a)(h,"error"),Object(l.a)(g,"negative"),Object(l.a)(y,"positive"),Object(l.a)(w,"selectable"),Object(l.a)(j,"single line"),Object(l.a)(x,"warning"),Object(l.c)(O),Object(l.e)(E),Object(l.f)(N,"wide"),r),A=Object(s.a)(b,e),L=Object(u.a)(b,e);return d.a.isNil(a)?i.a.createElement(L,Object(n.a)({},A,{className:k}),m.a.create(v),p):i.a.createElement(L,Object(n.a)({},A,{className:k}),a)}b.handledProps=["active","as","children","className","collapsing","content","disabled","error","icon","negative","positive","selectable","singleLine","textAlign","verticalAlign","warning","width"],b.defaultProps={as:"td"},b.propTypes={},b.create=Object(h.d)(b,(function(e){return{content:e}}));var v=b;function g(e){var t=e.children,a=e.className,r=e.content,o=e.fullWidth,p=Object(c.a)(Object(l.a)(o,"full-width"),a),f=Object(s.a)(g,e),h=Object(u.a)(g,e);return i.a.createElement(h,Object(n.a)({},f,{className:p}),d.a.isNil(t)?r:t)}g.handledProps=["as","children","className","content","fullWidth"],g.defaultProps={as:"thead"},g.propTypes={};var y=g;function w(e){var t=e.as,a=Object(s.a)(w,e);return i.a.createElement(y,Object(n.a)({},a,{as:t}))}w.handledProps=["as"],w.propTypes={},w.defaultProps={as:"tfoot"};var j=w;function O(e){var t=e.as,a=e.className,r=e.sorted,o=Object(c.a)(Object(l.d)(r,"sorted"),a),u=Object(s.a)(O,e);return i.a.createElement(v,Object(n.a)({},u,{as:t,className:o}))}O.handledProps=["as","className","sorted"],O.propTypes={},O.defaultProps={as:"th"};var E=O;function x(e){var t=e.active,a=e.cellAs,o=e.cells,p=e.children,f=e.className,h=e.disabled,m=e.error,b=e.negative,g=e.positive,y=e.textAlign,w=e.verticalAlign,j=e.warning,O=Object(c.a)(Object(l.a)(t,"active"),Object(l.a)(h,"disabled"),Object(l.a)(m,"error"),Object(l.a)(b,"negative"),Object(l.a)(g,"positive"),Object(l.a)(j,"warning"),Object(l.c)(y),Object(l.e)(w),f),E=Object(s.a)(x,e),N=Object(u.a)(x,e);return d.a.isNil(p)?i.a.createElement(N,Object(n.a)({},E,{className:O}),Object(r.a)(o,(function(e){return v.create(e,{defaultProps:{as:a}})}))):i.a.createElement(N,Object(n.a)({},E,{className:O}),p)}x.handledProps=["active","as","cellAs","cells","children","className","disabled","error","negative","positive","textAlign","verticalAlign","warning"],x.defaultProps={as:"tr",cellAs:"td"},x.propTypes={},x.create=Object(h.d)(x,(function(e){return{cells:e}}));var N=x;function k(e){var t=e.attached,a=e.basic,o=e.celled,p=e.children,h=e.className,m=e.collapsing,b=e.color,v=e.columns,g=e.compact,w=e.definition,O=e.fixed,E=e.footerRow,x=e.headerRow,A=e.headerRows,L=e.inverted,S=e.padded,P=e.renderBodyRow,C=e.selectable,_=e.singleLine,T=e.size,F=e.sortable,R=e.stackable,I=e.striped,G=e.structured,H=e.tableData,z=e.textAlign,D=e.unstackable,B=e.verticalAlign,Q=Object(c.a)("ui",b,T,Object(l.a)(o,"celled"),Object(l.a)(m,"collapsing"),Object(l.a)(w,"definition"),Object(l.a)(O,"fixed"),Object(l.a)(L,"inverted"),Object(l.a)(C,"selectable"),Object(l.a)(_,"single line"),Object(l.a)(F,"sortable"),Object(l.a)(R,"stackable"),Object(l.a)(I,"striped"),Object(l.a)(G,"structured"),Object(l.a)(D,"unstackable"),Object(l.b)(t,"attached"),Object(l.b)(a,"basic"),Object(l.b)(g,"compact"),Object(l.b)(S,"padded"),Object(l.c)(z),Object(l.e)(B),Object(l.f)(v,"column"),"table",h),J=Object(s.a)(k,e),W=Object(u.a)(k,e);if(!d.a.isNil(p))return i.a.createElement(W,Object(n.a)({},J,{className:Q}),p);var Y={defaultProps:{cellAs:"th"}},q=(x||A)&&i.a.createElement(y,null,N.create(x,Y),Object(r.a)(A,(function(e){return N.create(e,Y)})));return i.a.createElement(W,Object(n.a)({},J,{className:Q}),q,i.a.createElement(f,null,P&&Object(r.a)(H,(function(e,t){return N.create(P(e,t))}))),E&&i.a.createElement(j,null,N.create(E)))}k.handledProps=["as","attached","basic","celled","children","className","collapsing","color","columns","compact","definition","fixed","footerRow","headerRow","headerRows","inverted","padded","renderBodyRow","selectable","singleLine","size","sortable","stackable","striped","structured","tableData","textAlign","unstackable","verticalAlign"],k.defaultProps={as:"table"},k.propTypes={},k.Body=f,k.Cell=v,k.Footer=j,k.Header=y,k.HeaderCell=E,k.Row=N;t.a=k},379:function(e,t,a){"use strict";var n=a(115);var r=a(130);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}a.d(t,"a",(function(){return c}))},415:function(e,t,a){"use strict";a.r(t);var n=a(379),r=a(127),c=a(52),o=a(0),i=a.n(o),l=(a(180),a(380)),s=a(422),u=a(421),d=a(375),p=a(36),f=(a(128),a(114)),h=a(80),m=a.n(h),b=a(372);function v(){v=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(A){i=function(e,t,a){return e[t]=a}}function l(e,t,a,n){var r=t&&t.prototype instanceof d?t:d,c=Object.create(r.prototype),o=new x(n||[]);return c._invoke=function(e,t,a){var n="suspendedStart";return function(r,c){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw c;return k()}for(a.method=r,a.arg=c;;){var o=a.delegate;if(o){var i=j(o,a);if(i){if(i===u)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===n)throw n="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n="executing";var l=s(e,t,a);if("normal"===l.type){if(n=a.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(n="completed",a.method="throw",a.arg=l.arg)}}}(e,a,o),c}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(A){return{type:"throw",arg:A}}}e.wrap=l;var u={};function d(){}function p(){}function f(){}var h={};i(h,r,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(N([])));b&&b!==t&&a.call(b,r)&&(h=b);var g=f.prototype=d.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var n;this._invoke=function(r,c){function o(){return new t((function(n,o){!function n(r,c,o,i){var l=s(e[r],e,c);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,i)}),(function(e){n("throw",e,o,i)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,i)}))}i(l.arg)}(r,c,n,o)}))}return n=n?n.then(o,o):o()}}function j(e,t){var a=e.iterator[t.method];if(void 0===a){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=s(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var r=n.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function N(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,c=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return c.next=c}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=f,i(g,"constructor",f),i(f,"constructor",p),p.displayName=i(f,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,i(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(w.prototype),i(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,a,n,r,c){void 0===c&&(c=Promise);var o=new w(l(t,a,n,r),c);return e.isGeneratorFunction(a)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(g),i(g,o,"Generator"),i(g,r,(function(){return this})),i(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var n=t.pop();if(n in e)return a.value=n,a.done=!1,a}return a.done=!0,a}},e.values=N,x.prototype={constructor:x,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(E),!e)for(var t in this)"t"===t.charAt(0)&&a.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(a,n){return o.type="throw",o.arg=e,t.next=a,n&&(t.method="next",t.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var c=this.tryEntries[r],o=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var i=a.call(c,"catchLoc"),l=a.call(c,"finallyLoc");if(i&&l){if(this.prev<c.catchLoc)return n(c.catchLoc,!0);if(this.prev<c.finallyLoc)return n(c.finallyLoc)}else if(i){if(this.prev<c.catchLoc)return n(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return n(c.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var c=r;break}}c&&("break"===e||"continue"===e)&&c.tryLoc<=t&&t<=c.finallyLoc&&(c=null);var o=c?c.completion:{};return o.type=e,o.arg=t,c?(this.method="next",this.next=c.finallyLoc,u):this.complete(o)},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),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),E(a),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var r=n.arg;E(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:N(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),u}},e}t.default=function(){var e=Object(o.useState)("01/10/2020"),t=Object(c.a)(e,2),a=t[0],h=t[1],g=Object(o.useState)(""),y=Object(c.a)(g,2),w=y[0],j=y[1],O=Object(o.useState)([]),E=Object(c.a)(O,2),x=E[0],N=E[1],k=Object(o.useState)([]),A=Object(c.a)(k,2),L=A[0],S=A[1],P=Object(o.useState)(!1),C=Object(c.a)(P,2),_=C[0],T=C[1],F=Object(o.useState)(!1),R=Object(c.a)(F,2),I=R[0],G=R[1];Object(o.useEffect)((function(){(function(){var e=Object(r.a)(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(!0),e.prev=1,e.next=4,f.a.get("app.php?a=loadQPExamSession&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(a));case 4:t=e.sent,n=t.data.data.map((function(e,t){return{key:t,value:e.fsession,text:e.fsession+" - "+e.fdescpn}})),N(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0);case 12:G(!1);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}})()()}),[]),Object(o.useEffect)((function(){(function(){var e=Object(r.a)(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(!0),e.prev=1,e.next=4,f.a.get("app.php?a=loadQPExamSession&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(a));case 4:t=e.sent,n=t.data.data.map((function(e,t){return{key:t,value:e.fsession,text:e.fsession+" - "+e.fdescpn}})),N(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0);case 12:G(!1);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}})()()}),[a]);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 G(!0),e.prev=1,e.next=4,f.a.get("app.php?a=viewuploadpassword&univcode=".concat(localStorage.getItem("univcode"),"&examdate=").concat(a,"&session=").concat(w));case 4:if(0!=(t=e.sent).data.error_code){e.next=10;break}S(t.data.data),T(!0),e.next=13;break;case 10:return m.a.fire("Failed!",t.data.data.msg,"error"),G(!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:G(!1);case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=Object(r.a)(v().mark((function e(t,a,r){var c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=L.map((function(e,n){return n===a?(e[t]=r,e):e})),S(Object(n.a)(c));case 3:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),D=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 e.prev=0,e.next=3,f.a.post("app.php?a=updateuplpwd&univcode=".concat(localStorage.getItem("univcode")),{data:{viewpwd:L}});case 3:if(0!=(t=e.sent).data.error_code){e.next=10;break}m.a.fire("Success",t.data.data.msg,"success"),j(""),T(!1),e.next=12;break;case 10:return m.a.fire("Failed",t.data.data.msg,"failed"),e.abrupt("return");case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.log(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}();return i.a.createElement("div",{className:"page"},I?i.a.createElement(b.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,"Upload Password"),i.a.createElement("div",{className:"ml-auto"},i.a.createElement("button",{onClick:function(){return D()},type:"button",className:"btn btn-info btn-fw"},"Save"),i.a.createElement("button",{onClick:function(){return j(""),void T(!1)},type:"button",className:"btn btn-info btn-fw"},"Clear"),i.a.createElement(p.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(l.a,null),i.a.createElement("div",{className:"col-md-12"},i.a.createElement(s.a,null,i.a.createElement(s.a.Group,null,i.a.createElement(s.a.Field,{width:4},i.a.createElement("label",null,"Exam Date"),i.a.createElement(s.a.Input,{formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},type:"text",value:a,mask:"ed/nm/zyyy",placeholder:"dd/mm/yyyy",name:"date",onChange:function(e,t){h(t.value)}})),i.a.createElement(s.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:x,search:!0,onChange:function(e,t){j(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==_?i.a.createElement("div",{className:"ui mini form"},i.a.createElement(d.a,{celled:!0},i.a.createElement(d.a.Header,null,i.a.createElement(d.a.Row,null,i.a.createElement(d.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),i.a.createElement(d.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Exam Date"),i.a.createElement(d.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Session"),i.a.createElement(d.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"File"),i.a.createElement(d.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Password 1"),i.a.createElement(d.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Password 1"))),i.a.createElement(d.a.Body,null,L.map((function(e,t){return i.a.createElement(d.a.Row,{key:t},i.a.createElement(d.a.Cell,{textAlign:"center"},t+1),i.a.createElement(d.a.Cell,{textAlign:"center"},e.fexamdate),i.a.createElement(d.a.Cell,{textAlign:"center"},e.fsession),i.a.createElement(d.a.Cell,{textAlign:"center"},i.a.createElement("a",{href:"https://qp-tran.s3.ap-south-1.amazonaws.com/"+e.ffilepath,target:"_blank"},"Download")),i.a.createElement(d.a.Cell,{textAlign:"center"},i.a.createElement("input",{className:"field",type:"text",style:{textAlign:"center"},name:"fpwd1",value:e.fpwd1,id:t,onChange:function(e,a){z("fpwd1",t,e.target.value)}})),i.a.createElement(d.a.Cell,{textAlign:"center"},i.a.createElement("input",{className:"field",type:"text",style:{textAlign:"center"},name:"fpwd2",value:e.fpwd2,id:t,onChange:function(e,a){z("fpwd2",t,e.target.value)}})))}))))):null)))))}}}]);
//# sourceMappingURL=11.ab0dc695.chunk.js.map
|