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.190.154.24
(window["webpackJsonpQP-Tran"]=window["webpackJsonpQP-Tran"]||[]).push([[14],{372:function(e,t,a){"use strict";var r=a(0),n=a.n(r),c=a(374);a(373);t.a=function(){return n.a.createElement("div",{className:"page"},n.a.createElement("div",{style:{position:"absolute",margin:"auto",top:0,right:0,bottom:0,left:0,width:"200px",height:"200px"}},n.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 r=a(1),n=a(79),c=a(4),o=a(0),l=a.n(o),i=a(37),s=a(149),u=a(157),d=a(5);function p(e){var t=e.children,a=e.className,n=Object(c.a)(a),o=Object(s.a)(p,e),i=Object(u.a)(p,e);return l.a.createElement(i,Object(r.a)({},o,{className:n}),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,n=e.className,o=e.collapsing,p=e.content,f=e.disabled,h=e.error,v=e.icon,g=e.negative,y=e.positive,j=e.selectable,O=e.singleLine,w=e.textAlign,E=e.verticalAlign,x=e.warning,N=e.width,k=Object(c.a)(Object(i.a)(t,"active"),Object(i.a)(o,"collapsing"),Object(i.a)(f,"disabled"),Object(i.a)(h,"error"),Object(i.a)(g,"negative"),Object(i.a)(y,"positive"),Object(i.a)(j,"selectable"),Object(i.a)(O,"single line"),Object(i.a)(x,"warning"),Object(i.c)(w),Object(i.e)(E),Object(i.f)(N,"wide"),n),L=Object(s.a)(b,e),S=Object(u.a)(b,e);return d.a.isNil(a)?l.a.createElement(S,Object(r.a)({},L,{className:k}),m.a.create(v),p):l.a.createElement(S,Object(r.a)({},L,{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,n=e.content,o=e.fullWidth,p=Object(c.a)(Object(i.a)(o,"full-width"),a),f=Object(s.a)(g,e),h=Object(u.a)(g,e);return l.a.createElement(h,Object(r.a)({},f,{className:p}),d.a.isNil(t)?n:t)}g.handledProps=["as","children","className","content","fullWidth"],g.defaultProps={as:"thead"},g.propTypes={};var y=g;function j(e){var t=e.as,a=Object(s.a)(j,e);return l.a.createElement(y,Object(r.a)({},a,{as:t}))}j.handledProps=["as"],j.propTypes={},j.defaultProps={as:"tfoot"};var O=j;function w(e){var t=e.as,a=e.className,n=e.sorted,o=Object(c.a)(Object(i.d)(n,"sorted"),a),u=Object(s.a)(w,e);return l.a.createElement(v,Object(r.a)({},u,{as:t,className:o}))}w.handledProps=["as","className","sorted"],w.propTypes={},w.defaultProps={as:"th"};var E=w;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,j=e.verticalAlign,O=e.warning,w=Object(c.a)(Object(i.a)(t,"active"),Object(i.a)(h,"disabled"),Object(i.a)(m,"error"),Object(i.a)(b,"negative"),Object(i.a)(g,"positive"),Object(i.a)(O,"warning"),Object(i.c)(y),Object(i.e)(j),f),E=Object(s.a)(x,e),N=Object(u.a)(x,e);return d.a.isNil(p)?l.a.createElement(N,Object(r.a)({},E,{className:w}),Object(n.a)(o,(function(e){return v.create(e,{defaultProps:{as:a}})}))):l.a.createElement(N,Object(r.a)({},E,{className:w}),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,j=e.definition,w=e.fixed,E=e.footerRow,x=e.headerRow,L=e.headerRows,S=e.inverted,A=e.padded,P=e.renderBodyRow,C=e.selectable,_=e.singleLine,G=e.size,T=e.sortable,D=e.stackable,R=e.striped,F=e.structured,H=e.tableData,Q=e.textAlign,I=e.unstackable,B=e.verticalAlign,M=Object(c.a)("ui",b,G,Object(i.a)(o,"celled"),Object(i.a)(m,"collapsing"),Object(i.a)(j,"definition"),Object(i.a)(w,"fixed"),Object(i.a)(S,"inverted"),Object(i.a)(C,"selectable"),Object(i.a)(_,"single line"),Object(i.a)(T,"sortable"),Object(i.a)(D,"stackable"),Object(i.a)(R,"striped"),Object(i.a)(F,"structured"),Object(i.a)(I,"unstackable"),Object(i.b)(t,"attached"),Object(i.b)(a,"basic"),Object(i.b)(g,"compact"),Object(i.b)(A,"padded"),Object(i.c)(Q),Object(i.e)(B),Object(i.f)(v,"column"),"table",h),z=Object(s.a)(k,e),J=Object(u.a)(k,e);if(!d.a.isNil(p))return l.a.createElement(J,Object(r.a)({},z,{className:M}),p);var W={defaultProps:{cellAs:"th"}},Y=(x||L)&&l.a.createElement(y,null,N.create(x,W),Object(n.a)(L,(function(e){return N.create(e,W)})));return l.a.createElement(J,Object(r.a)({},z,{className:M}),Y,l.a.createElement(f,null,P&&Object(n.a)(H,(function(e,t){return N.create(P(e,t))}))),E&&l.a.createElement(O,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=O,k.Header=y,k.HeaderCell=E,k.Row=N;t.a=k},409:function(e,t,a){"use strict";a.r(t);var r=a(127),n=a(52),c=a(0),o=a.n(c),l=(a(180),a(380)),i=a(422),s=a(421),u=a(375),d=a(36),p=(a(128),a(114)),f=a(80),h=a.n(f),m=a(372);function b(){b=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(L){l=function(e,t,a){return e[t]=a}}function i(e,t,a,r){var n=t&&t.prototype instanceof d?t:d,c=Object.create(n.prototype),o=new x(r||[]);return c._invoke=function(e,t,a){var r="suspendedStart";return function(n,c){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw c;return k()}for(a.method=n,a.arg=c;;){var o=a.delegate;if(o){var l=O(o,a);if(l){if(l===u)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var i=s(e,t,a);if("normal"===i.type){if(r=a.done?"completed":"suspendedYield",i.arg===u)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(r="completed",a.method="throw",a.arg=i.arg)}}}(e,a,o),c}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(L){return{type:"throw",arg:L}}}e.wrap=i;var u={};function d(){}function p(){}function f(){}var h={};l(h,n,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(N([])));v&&v!==t&&a.call(v,n)&&(h=v);var g=f.prototype=d.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){var r;this._invoke=function(n,c){function o(){return new t((function(r,o){!function r(n,c,o,l){var i=s(e[n],e,c);if("throw"!==i.type){var u=i.arg,d=u.value;return d&&"object"==typeof d&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(i.arg)}(n,c,r,o)}))}return r=r?r.then(o,o):o()}}function O(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,O(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 r=s(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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(w,this),this.reset(!0)}function N(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,c=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],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,l(g,"constructor",f),l(f,"constructor",p),p.displayName=l(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,l(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,a,r,n,c){void 0===c&&(c=Promise);var o=new j(i(t,a,r,n),c);return e.isGeneratorFunction(a)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(g),l(g,o,"Generator"),l(g,n,(function(){return this})),l(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 r=t.pop();if(r in e)return a.value=r,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 r(a,r){return o.type="throw",o.arg=e,t.next=a,r&&(t.method="next",t.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var c=this.tryEntries[n],o=c.completion;if("root"===c.tryLoc)return r("end");if(c.tryLoc<=this.prev){var l=a.call(c,"catchLoc"),i=a.call(c,"finallyLoc");if(l&&i){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.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 c=n;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 r=a.completion;if("throw"===r.type){var n=r.arg;E(a)}return n}}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(c.useState)(""),t=Object(n.a)(e,2),a=t[0],f=t[1],v=Object(c.useState)([]),g=Object(n.a)(v,2),y=g[0],j=g[1],O=Object(c.useState)([]),w=Object(n.a)(O,2),E=w[0],x=w[1],N=Object(c.useState)([]),k=Object(n.a)(N,2),L=k[0],S=k[1],A=Object(c.useState)([]),P=Object(n.a)(A,2),C=P[0],_=P[1],G=Object(c.useState)([]),T=Object(n.a)(G,2),D=T[0],R=T[1],F=Object(c.useState)([]),H=Object(n.a)(F,2),Q=H[0],I=H[1],B=Object(c.useState)(!1),M=Object(n.a)(B,2),z=M[0],J=M[1],W=Object(c.useState)(!1),Y=Object(n.a)(W,2),q=Y[0],K=Y[1];Object(c.useEffect)((function(){(function(){var e=Object(r.a)(b().mark((function e(){var t,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(!0),e.prev=1,e.next=4,p.a.get("app.php?a=loadQPDeggrpQPMaster&univcode=".concat(localStorage.getItem("univcode")));case 4:t=e.sent,a=t.data.data.map((function(e,t){return{key:t,value:e.fdeggrp,text:e.fdeggrp+" - "+e.fdescpn}})),S(a),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0);case 12:K(!1);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var U=function(){var e=Object(r.a)(b().mark((function e(t){var a,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(!0),e.prev=1,e.next=4,p.a.get("app.php?a=loadQPdegree&univcode=".concat(localStorage.getItem("univcode"),"°grp=").concat(t));case 4:a=e.sent,console.log(a.data.data),r=a.data.data.map((function(e,t){return{key:t,value:e.fdegree,text:e.fdegree+" - "+e.fdescpn}})),_(r),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0);case 13:K(!1);case 14:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=Object(r.a)(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(!0),e.prev=1,e.next=4,p.a.get("app.php?a=loadQPDeggrpSem&univcode=".concat(localStorage.getItem("univcode"),"°grp=").concat(a,"°ree=").concat(t));case 4:r=e.sent,console.log(r.data.data),n=r.data.data.map((function(e,t){return{key:t,value:e.fexamno,text:e.fexamno+" - "+e.fexamname}})),R(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0);case 13:K(!1);case 14:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),X=function(){var e=Object(r.a)(b().mark((function e(){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=a){e.next=3;break}return h.a.fire("Select Degree Group"),e.abrupt("return");case 3:if(""!=E){e.next=6;break}return h.a.fire("Select Degree"),e.abrupt("return");case 6:if(""!=y){e.next=9;break}return h.a.fire("Select Semester"),e.abrupt("return");case 9:return console.log(E,"ssssss"),K(!0),e.prev=11,e.next=14,p.a.get("app.php?a=loadQPMastertab&univcode=".concat(localStorage.getItem("univcode"),"°grp=").concat(a,"&sem=").concat(y,"°ree=").concat(E));case 14:if(0!=(t=e.sent).data.error_code){e.next=20;break}I(t.data.data),J(!0),e.next=23;break;case 20:return h.a.fire("Failed",t.data.data.msg,"error"),K(!1),e.abrupt("return");case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(11),console.log(e.t0);case 28:K(!1);case 29:case"end":return e.stop()}}),e,null,[[11,25]])})));return function(){return e.apply(this,arguments)}}();return o.a.createElement("div",{className:"page"},q?o.a.createElement(m.a,null):o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-md-12 grid-margin stretch-card"},o.a.createElement("div",{className:"card"},o.a.createElement("div",{className:"card-body",style:{display:"flex"}},o.a.createElement("h4",null,"QP Master"),o.a.createElement("div",{className:"ml-auto"},o.a.createElement("button",{onClick:function(){return J(!1),f(""),j(""),void x("")},type:"button",className:"btn btn-info btn-fw"},"Clear"),o.a.createElement(d.b,{to:"/dashboard"},o.a.createElement("button",{type:"button",className:"btn btn-danger btn-fw"},o.a.createElement("span",{class:"mdi mdi-exit-to-app"}),"Exit")))),o.a.createElement(l.a,null),o.a.createElement("div",{className:"col-md-12"},o.a.createElement(i.a,null,o.a.createElement(i.a.Group,null,o.a.createElement(i.a.Field,{width:8},o.a.createElement("label",null,"Degree Group"),o.a.createElement(s.a,{placeholder:"Degree Group",name:"deggrp",value:a,selection:!0,options:L,search:!0,onChange:function(e,t){f(t.value),U(t.value)}}))),o.a.createElement(i.a.Group,null,o.a.createElement(i.a.Field,{width:8},o.a.createElement("label",null,"Degree"),o.a.createElement(s.a,{multiple:!0,placeholder:"Degree",name:"degree",value:E,selection:!0,options:C,search:!0,onChange:function(e,t){x(t.value),V(t.value)}}))),o.a.createElement(i.a.Group,null,o.a.createElement(i.a.Field,{width:8},o.a.createElement("label",null,"Semester"),o.a.createElement(s.a,{multiple:!0,placeholder:"Semester",name:"sem",value:y,selection:!0,options:D,search:!0,onChange:function(e,t){j(t.value)}}))),o.a.createElement("button",{onClick:function(){return X()},type:"button",className:"btn btn-info btn-fw"},o.a.createElement("span",{class:"mdi mdi-file-check btn-icon-prepend"}),"Submit")),o.a.createElement("br",null),1==z?o.a.createElement("div",{className:"ui mini form"},o.a.createElement(u.a,{celled:!0},o.a.createElement(u.a.Header,null,o.a.createElement(u.a.Row,null,o.a.createElement(u.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),o.a.createElement(u.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"QP Code"),o.a.createElement(u.a.HeaderCell,{style:{width:"35%"},textAlign:"center"},"Subject"),o.a.createElement(u.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Semester"),o.a.createElement(u.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Degree Range"),o.a.createElement(u.a.HeaderCell,{style:{width:"20%"},textAlign:"center"},"Date of Exam"),o.a.createElement(u.a.HeaderCell,{style:{width:"20%"},textAlign:"center"},"Session"))),o.a.createElement(u.a.Body,null,Q.map((function(e,t){return o.a.createElement(u.a.Row,{key:t},o.a.createElement(u.a.Cell,{textAlign:"center"},t+1),o.a.createElement(u.a.Cell,{textAlign:"center"},e.fqpcode),o.a.createElement(u.a.Cell,null,e.fsubname),o.a.createElement(u.a.Cell,{textAlign:"center"},e.fexamno),o.a.createElement(u.a.Cell,{textAlign:"center"},e.fdegree),o.a.createElement(u.a.Cell,{textAlign:"center"},e.fdoe),o.a.createElement(u.a.Cell,{textAlign:"center"},e.fsession))}))))):null)))))}}}]);
//# sourceMappingURL=14.1356d0de.chunk.js.map
|