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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/169.ca337bee.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[169,307],{1179:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(100),o=r(101),i=r(103),c=r(102),u=r(104),l=r(2),s=r.n(l),f=r(1377),h=r(1343),d=r(272),p=r(1333),g=r(1335),m=r(1155),y=r(1338),v=r(941),E=r(105),w=r(267),b=r(319),x=r(273);function L(){L=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new T(n||[]);return a(i,"_invoke",{value:D(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",g="completed",m={};function y(){}function v(){}function E(){}var w={};l(w,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==r&&n.call(x,i)&&(w=x);var O=E.prototype=y.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function D(t,r,n){var a=h;return function(o,i){if(a===p)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=p;var l=f(t,r,n);if("normal"===l.type){if(a=n.done?g:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function _(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],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=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:v,configurable:!0}),v.displayName=l(E,u,"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,E):(e.__proto__=E,l(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},S(j.prototype),l(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(O),l(O,u,"Generator"),l(O,i,function(){return this}),l(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,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(k),!t)for(var r in this)"t"===r.charAt(0)&&n.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 a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.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,m):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),m},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),k(r),m}},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;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}var O=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];return(r=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(u)))).state={degSemList:[],open:!1,degdel:{}},r.searchTable=function(e,t){var n=t.value,a=r.props.degSemList.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(n.toLowerCase())})});r.setState({degSemList:a,searchVal:t.value})},r.componentDidMount=Object(n.a)(L().mark(function e(){var t,n;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getDegSemList(r.props.user.fdeggrp);case 2:t=new URLSearchParams(r.props.location.search),null!==(n=t.get("q"))&&r.searchTable(null,{value:n});case 5:case"end":return e.stop()}},e)})),r.componentDidUpdate=function(e){r.props.degSemList!==e.degSemList&&r.setState({degSemList:r.props.degSemList})},r.close=function(){return r.setState({open:!1,degdel:{}})},r.openModal=function(e){return r.setState({open:!0,degdel:e})},r.handleDel=function(){r.props.deleteDegSem(r.state.degdel),r.close()},r}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t=this.state.degSemList,r=Object(x.i)();return s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,{fluid:!0},s.a.createElement(f.a.Content,null,s.a.createElement(f.a.Header,{style:{display:"flex"}},s.a.createElement("h3",null,"Degree "),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(v.a,{to:{pathname:"/editDegreeDetails/degree/examno",query:{fdegree:"degree",fexamno:"examno"}}},s.a.createElement(h.a,{basic:!0,color:"blue",content:"ADD",icon:"plus"})),s.a.createElement(v.a,{to:"/dashboard"},s.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),s.a.createElement(d.a,null),s.a.createElement(f.a.Description,{style:{overflowY:"auto",height:"".concat(r,"px")}},s.a.createElement(p.a,{dimmer:"blurring",style:{maxHeight:"25vh",width:"26vw"},size:"mini",open:this.state.open,onClose:this.close},s.a.createElement(p.a.Header,{style:{color:"#fff",backgroundColor:"#ca4747",padding:"0.5em 1em"}},"Confirm"),s.a.createElement(p.a.Content,{style:{maxHeight:"10em"}},s.a.createElement("p",null,s.a.createElement("b",null,"Are you sure to delete the degree ? "))),s.a.createElement(p.a.Actions,null,s.a.createElement(h.a,{style:{padding:"0.5em 1em"},color:"blue",size:"mini",basic:!0,onClick:this.close,content:"No"}),s.a.createElement(h.a,{style:{padding:"0.5em 1em"},color:"blue",size:"mini",basic:!0,onClick:this.handleDel,content:"Yes"}))),s.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},s.a.createElement(g.a,null,s.a.createElement(m.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:this.searchTable,value:this.state.searchVal,style:{fontSize:"1.1em"}}))),s.a.createElement(y.a,{celled:!0,compact:!0,style:{padding:"0%"},unstackable:!0,className:"sticky"},s.a.createElement(y.a.Header,null,s.a.createElement(y.a.Row,{textAlign:"center"},s.a.createElement(y.a.HeaderCell,{width:"1"},"Sl. No."),s.a.createElement(y.a.HeaderCell,{width:"1"},"Degree"),s.a.createElement(y.a.HeaderCell,{width:"5"},"Description"),s.a.createElement(y.a.HeaderCell,{width:"1"},"Semester"),s.a.createElement(y.a.HeaderCell,{width:"1"},"Degree Group"),s.a.createElement(y.a.HeaderCell,{width:"1"},"Action"))),s.a.createElement(y.a.Body,null,t.map(function(t,r){return s.a.createElement(y.a.Row,{key:r},s.a.createElement(y.a.Cell,{textAlign:"center"},r+1),s.a.createElement(y.a.Cell,{textAlign:"center"},t.fdegree),s.a.createElement(y.a.Cell,null,t.fdescpn),s.a.createElement(y.a.Cell,{textAlign:"center"},t.fexamname),s.a.createElement(y.a.Cell,{textAlign:"center"},t.fdeggrp),s.a.createElement(y.a.Cell,{style:{display:"flex"}},s.a.createElement(v.a,{to:{pathname:"/editDegreeDetails/".concat(t.fdegree,"/").concat(t.fexamno),query:{fdegree:t.fdegree,fexamno:t.fexamno}}},s.a.createElement(h.a,{content:"Edit",basic:!0,size:"small",style:{display:"flex"},color:"blue",icon:"edit"})),s.a.createElement(h.a,{content:"Delete",basic:!0,style:{display:"flex"},size:"small",color:"red",icon:"trash",onClick:function(){return e.openModal(t)}})))})))))))}}]),t}(l.Component);t.default=Object(E.b)(function(e){return{fdeggrp:e.deggrp,user:e.user,degSemList:e.getDegSemList,degrees:e.degrees,ffaculty:e.getFaculty,DegreeDet:e.getDegreeDet,univcode:e.univ.funivcode}},{getDegSemList:b.g,deleteDegSem:b.d,showError:w.A,fetchFaculty:w.l})(O)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),c=r(2),u=r.n(c),l=r(349),s=r(613),f=r(611),h=r(269);function d(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,c=e.fitted,p=e.hidden,g=e.horizontal,m=e.inverted,y=e.section,v=e.vertical,E=i()("ui",Object(l.a)(n,"clearing"),Object(l.a)(c,"fitted"),Object(l.a)(p,"hidden"),Object(l.a)(g,"horizontal"),Object(l.a)(m,"inverted"),Object(l.a)(y,"section"),Object(l.a)(v,"vertical"),"divider",r),w=Object(s.a)(d,e),b=Object(f.a)(d,e);return u.a.createElement(b,a()({},w,{className:E}),h.a.isNil(t)?o:t)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},t.a=d},319:function(e,t,r){"use strict";r.d(t,"g",function(){return u}),r.d(t,"f",function(){return l}),r.d(t,"d",function(){return s}),r.d(t,"h",function(){return f}),r.d(t,"e",function(){return h}),r.d(t,"c",function(){return d}),r.d(t,"b",function(){return p}),r.d(t,"a",function(){return g}),r.d(t,"i",function(){return m});var n=r(68),a=r(271),o=r(267),i=r(286);function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=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 f(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new T(n||[]);return a(i,"_invoke",{value:D(e,r,c)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var d="suspendedStart",p="suspendedYield",g="executing",m="completed",y={};function v(){}function E(){}function w(){}var b={};s(b,i,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==r&&n.call(L,i)&&(b=L);var O=w.prototype=v.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var u=h(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function D(t,r,n){var a=d;return function(o,i){if(a===g)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?m:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function _(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],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 E.prototype=w,a(O,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},S(j.prototype),s(j.prototype,u,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(f(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(O),s(O,l,"Generator"),s(O,i,function(){return this}),s(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,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(k),!t)for(var r in this)"t"===r.charAt(0)&&n.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 a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.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,y):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),y},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),k(r),y}},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;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var u=function(){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,i,u,l;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"getDegSemList",univcode:n.univ.funivcode,fdeggrp:n.user.fdeggrp}});case 4:i=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof i.data?(u={header:"Error",content:"Something went wrong"},t(Object(o.A)(u))):-1===i.data.error_code?(l={header:"Error",content:i.data.data.msg},t(Object(o.A)(l))):t({type:"GET_DEG_SEM_LIST",payload:i.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=function(e,t){return function(){var r=Object(n.a)(c().mark(function r(n,i){var u,l,s,f;return c().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=i(),n({type:"SET_LOADER"}),r.next=4,a.a.get("/app.php",{params:{a:"getDegSemDetForEdit",univcode:u.univ.funivcode,fdeggrp:u.user.fdeggrp,degree:e,examno:t}});case 4:l=r.sent,n({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},n(Object(o.A)(s))):-1===l.data.error_code?(f={header:"Error",content:l.data.data.msg},n(Object(o.A)(f))):n({type:"GET_DEG_SEM_EDIT",payload:l.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,l,s,f,h,d,p;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n(),l=i.getDegSemList.findIndex(function(t){return t.fdegree==e.fdegree&&t.fexamno==e.fexamno}),!((s=i.getDegSemList[l+1]).fdegree==e.fdegree&&s.fexamno.charCodeAt(0)>e.fexamno.charCodeAt(0))){t.next=7;break}return f={header:"Error",content:"Cannot delete the degree as heigher semesters are not deleted."},r(Object(o.A)(f)),t.abrupt("return");case 7:return r({type:"SET_LOADER"}),t.next=10,a.a.post("/app.php?a=deleteDegSem&univcode="+i.univ.funivcode,{data:{fdeggrp:i.user.fdeggrp,degree:e.fdegree,examno:e.fexamno}});case 10:h=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof h.data?(d={header:"Error",content:"Something went wrong"},r(Object(o.A)(d))):-1===h.data.error_code?(p={header:"Error",content:h.data.data.msg},r(Object(o.A)(p))):r(u());case 13:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},f=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var a,o,i,u;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=n(),o=a.getDegSemList.findIndex(function(e){return e.fdegree==a.degsem.FDEGREE&&e.fexamno==a.degsem.FEXAMNO}),"NEXT"==e?o>=0&&o<a.getDegSemList.length&&(i=a.getDegSemList[o+1],r(l(i.fdegree,i.fexamno))):"PREV"==e&&o>0&&o<a.getDegSemList.length&&(u=a.getDegSemList[o-1],r(l(u.fdegree,u.fexamno)));case 3:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},h=function(){return{type:"EPTY_DEG_SEM_DATA"}},d=function(e,t){return{type:"CHANGE_DEG_SEM_DATA",payload:{name:e,value:t}}},p=function(e,t){return{type:"CHANGE_DEG_CLASS_DATA",payload:{el:e,i:t}}},g=function(){return{type:"ADD_DEG_CLASS_DATA"}},m=function(){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,u,l,s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.post("/app.php?a=saveDegSemDet&univcode="+n.univ.funivcode,{data:{user:n.user,degsem:n.degsem,degclass:n.degcalss}});case 4:u=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},t(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},t(Object(o.A)(s))):i.l.push("/masters/degreeActionsScreen?q="+n.degsem.FDEGREE);case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=169.ca337bee.chunk.js.map