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.220.94.189
(window.webpackJsonp=window.webpackJsonp||[]).push([[167,307],{1347:function(t,e,r){"use strict";r.r(e);var n=r(100),a=r(101),o=r(103),i=r(102),c=r(104),u=r(0),l=r(1),s=r(68),f=r(2),h=r.n(f),p=r(1337),d=r(1377),y=r(1343),v=r(272),g=r(1335),m=r(1338),b=r(105),w=r(271),E=r(267);function x(){x=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new A(n||[]);return a(i,"_invoke",{value:C(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function g(){}function m(){}function b(){}var w={};l(w,i,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(T([])));O&&O!==r&&n.call(O,i)&&(w=O);var L=b.prototype=g.prototype=Object.create(w);function j(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(a,o,i,c){var u=f(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function C(e,r,n){var a=h;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=f(e,r,n);if("normal"===l.type){if(a=n.done?y:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},j(_.prototype),l(_.prototype,c,function(){return this}),e.AsyncIterator=_,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new _(s(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},j(L),l(L,u,"Generator"),l(L,i,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var O=function(t){return function(){var e=Object(s.a)(x().mark(function e(r,n){var a,o,i,c;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n(),r({type:"SET_LOADER"}),e.next=4,w.a.get("app.php?a=getSubjectCombination&univcode="+a.univ.funivcode+"&fcollcode="+t+"&fdeggrp="+a.user.fdeggrp);case 4:o=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof o.data?(i={header:"Error",content:"Something went wrong"},r(Object(E.A)(i))):-1===o.data.error_code?(c={header:"Error",content:o.data.data.msg},r(Object(E.A)(c))):r({type:"STUDENT_DEGREE_COMBINATION",payload:o.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},L=function(){return{type:"STUDENT_DEGREE_COMBINATION_CHANGE"}},j=function(t,e){return{type:"CHANGE_ADMISSION_DATA",payload:{el:t,i:e}}},_=function(t){return function(){var e=Object(s.a)(x().mark(function e(r,n){var a;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n(),a={header:"Error",content:t},r(Object(E.A)(a));case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},C=r(368),k=r(941),D=r(273),S=r(1155),A=function(t){function e(){return Object(n.a)(this,e),Object(o.a)(this,Object(i.a)(e).apply(this,arguments))}return Object(c.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){return h.a.createElement(h.a.Fragment,null,h.a.createElement(p.a,{name:"fcombcode",fluid:!0,search:!0,selection:!0,disabled:!this.props.editFlage,placeholder:"Select Combination",options:this.props.options,value:this.props.value,onChange:this.props.onChange}))}}]),e}(f.Component);function T(){T=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new S(n||[]);return a(i,"_invoke",{value:_(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function g(){}function m(){}function b(){}var w={};l(w,i,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(A([])));x&&x!==r&&n.call(x,i)&&(w=x);var O=b.prototype=g.prototype=Object.create(w);function L(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function r(a,o,i,c){var u=f(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function _(e,r,n){var a=h;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=C(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=f(e,r,n);if("normal"===l.type){if(a=n.done?y:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.arg)}}}function C(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(j.prototype),l(j.prototype,c,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new j(s(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},L(O),l(O,u,"Generator"),l(O,i,function(){return this}),l(O,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var N=function(t){function e(){var t,r;Object(n.a)(this,e);for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return(r=Object(o.a)(this,(t=Object(i.a)(e)).call.apply(t,[this].concat(c)))).state={addrowdata:!0,addrowData:!0},r.dd=[r.props.CurentDegree.particular_college_data.length],r.chnagedata=function(){var t=Object(s.a)(T().mark(function t(e,n,a){var o;return T().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=Object(l.a)({},n,Object(u.a)({},e.name,e.value)),t.next=3,r.props.changeAdmissionData(o,a);case 3:case"end":return t.stop()}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),r.onadd=Object(s.a)(T().mark(function t(){return T().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.props.particularData.map(function(){var t=Object(s.a)(T().mark(function t(e,n){return T().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n!=r.props.particularData.length-1||""!=e.fcombcode||""!=e.fdegree||""!=e.fintake||""!=e.fexamno){t.next=4;break}return alert("w"),t.next=4,r.setState({addrowData:!1});case 4:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}());case 2:if(r.state.addrowData){t.next=7;break}return t.next=5,r.props.showErrorType("Enter all row data");case 5:t.next=10;break;case 7:return r.props.StudentDegreeCombinationADDrow(),t.next=10,r.setState({addrowData:!0});case 10:case"end":return t.stop()}},t)})),r.changeCell=function(t,e,n){var a=Object(l.a)({},e,Object(u.a)({},t.name,t.value));r.props.changeAdmissionData(a,n)},r.deleteRow=function(t,e,n){var a=Object(l.a)({},e,Object(u.a)({},t.target.name,t.target.checked?"T":"F"));r.props.changeAdmissionData(a,n)},r}return Object(c.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this,e=this.props.degrees.map(function(t,e){return{key:e,value:t.fdegree,text:"".concat(t.fdegree," ").concat(t.fdescpn)}}),r=this.props.combs.filter(function(e,r){return e.fdegree==t.props.el.fdegree}).map(function(t,e){return{key:e,value:t.fcombcode,text:"".concat(t.fcombcode," ").concat(t.fcombdesc)}});return h.a.createElement(h.a.Fragment,null,h.a.createElement(m.a.Cell,{textAlign:"center"},this.props.i+1),h.a.createElement(m.a.Cell,{textAlign:"center",singleLine:!0},h.a.createElement(p.a,{size:"mini",fluid:!0,id:this.props.i,openOnFocus:!1,selectOnBlur:!1,placeholder:"Select Degree",name:"fdegree",disabled:!this.props.el.editFlage,value:this.props.el.fdegree,selection:!0,search:!0,options:e,onChange:function(e,r){return t.changeCell(r,t.props.el,t.props.i)}})),h.a.createElement(m.a.Cell,{textAlign:"center",singleLine:!0},h.a.createElement(S.a,{maxLength:"1",minLength:"1",className:"field",type:"text",name:"fexamno",readOnly:!this.props.el.editFlage,id:this.props.i,value:this.props.el.fexamno,style:{width:"5em"},onChange:function(e,r){if(""==r.value);else if(!/^[a-j]+$/i.test(r.value))return!1;r={name:"fexamno",value:r.value.toUpperCase()},t.changeCell(r,t.props.el,t.props.i)}})),h.a.createElement(m.a.Cell,null,h.a.createElement(A,{editFlage:this.props.el.editFlage,options:r,value:this.props.el.fcombcode,onChange:function(e,r){return t.changeCell(r,t.props.el,t.props.i)}})),h.a.createElement(m.a.Cell,null,h.a.createElement(S.a,{className:"field",pattern:"[0-9]*",onChange:function(e,r){isNaN(Number(e.target.value)||"Tab"===e.key)||t.changeCell(r,t.props.el,t.props.i)},type:"text",style:{textAlign:"center",width:"5em"},value:this.props.el.fintake,name:"fintake",maxLength:"3",minLength:"3",id:this.props.i})),h.a.createElement(m.a.Cell,{textAlign:"center"},h.a.createElement("div",{className:"ui checkbox"},h.a.createElement("input",{type:"checkbox",name:"fdeleted",onKeyDown:function(e){9==e.keyCode&&t.props.i==t.props.particularData.length-1&&t.onadd()},value:this.props.el.fdeleted,onChange:function(e){return t.deleteRow(e,t.props.el,t.props.i)},checked:"T"==this.props.el.fdeleted?"checked":null}),h.a.createElement("label",null," "))))}}]),e}(f.Component),G=Object(b.b)(function(t){return{CurentDegree:t.studentDegreeCombintaion,filterFcombdataList:t.filterFcombdata,degrees:t.studentDegreeCombintaion.degrees,combs:t.studentDegreeCombintaion.data,particularData:t.studentDegreeCombintaion.particular_college_data}},{StudentDegreeCombinationADDrow:L,studentDegreeCombintaion:O,changeAdmissionData:j,filterFcombdata:function(t){return{type:"FILTER_FCOMBCODE_DATA",payload:t}},showErrorType:_})(N);function F(){F=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new S(n||[]);return a(i,"_invoke",{value:_(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function g(){}function m(){}function b(){}var w={};l(w,i,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(A([])));x&&x!==r&&n.call(x,i)&&(w=x);var O=b.prototype=g.prototype=Object.create(w);function L(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function r(a,o,i,c){var u=f(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function _(e,r,n){var a=h;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=C(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=f(e,r,n);if("normal"===l.type){if(a=n.done?y:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.arg)}}}function C(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(j.prototype),l(j.prototype,c,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new j(s(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},L(O),l(O,u,"Generator"),l(O,i,function(){return this}),l(O,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var R=[],P=function(t){function e(){var t,r;Object(n.a)(this,e);for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return(r=Object(o.a)(this,(t=Object(i.a)(e)).call.apply(t,[this].concat(c)))).state={emptyData:!0,saveButton:!0,duplicateData:!1,addrowState:!0,addrowdata:!0,addrowData:!0,dropDisable:!1,checkbox:"",fcollcode:"",showoption:!1,showfeild:!1,getallclg:!0,fcolcode:"",deggroup:[{fdeggrp:"",fdescpn:"",fyear:"",ftype:"",fexamdate:"",fdeleted:!1}]},r.onadd=Object(s.a)(F().mark(function t(){return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.props.collcomb.map(function(){var t=Object(s.a)(F().mark(function t(e,n){return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n!=r.props.collcomb.length-1||""!=e.fcombcode||""!=e.fdegree||""!=e.fintake||""!=e.fexamno){t.next=4;break}return alert("w"),t.next=4,r.setState({addrowData:!1});case 4:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}());case 2:if(r.state.addrowData){t.next=7;break}return t.next=5,r.props.showErrorType("Enter all row data");case 5:t.next=10;break;case 7:return r.props.StudentDegreeCombinationADDrow(),t.next=10,r.setState({addrowData:!0});case 10:case"end":return t.stop()}},t)})),r.changeCell=function(){var t=Object(s.a)(F().mark(function t(e,n,a){var o;return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.setState({frmsubmit:!0});case 2:return t.next=4,r.setState({duplicateData:!1});case 4:return o=Object(l.a)({},n,Object(u.a)({},e.target.name,e.target.value)),t.next=7,r.props.changeAdmissionData(o,a);case 7:case"end":return t.stop()}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),r.handleSave=Object(s.a)(F().mark(function t(){var e;return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.setState({duplicateData:!1});case 2:if(e=[],R=[],r.props.collcomb.map(function(){var t=Object(s.a)(F().mark(function t(n,a){return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a!=r.props.collcomb.length-1&&""!=n.fcombcode&&""!=n.fdegree&&""!=n.fintake&&""!=n.fexamno&&r.setState({emptyData:!1}),""!=n.fcombcode&&""!=n.fdegree&&""!=n.fintake&&""!=n.fexamno&&R.push({fdegree:n.fdegree,fexamno:n.fexamno,fcombcode:n.fcombcode,fintake:n.fintake,fdeleted:n.fdeleted}),-1===e.indexOf("".concat(n.fcombcode,"+").concat(n.fdegree))){t.next=5;break}return t.next=5,r.setState({duplicateData:!0});case 5:e.push("".concat(n.fcombcode,"+").concat(n.fdegree));case 6:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()),0!=r.state.emptyData){t.next=12;break}return t.next=8,r.props.saveDegreeCombintaion(r.props.collcomb,r.state.fcollcode,r.state.duplicateData,r.state.emptyData,R);case 8:return t.next=10,r.props.studentDegreeCombintaion(r.state.fcollcode);case 10:t.next=13;break;case 12:r.props.showErrorType("Enter all data");case 13:case"end":return t.stop()}},t)})),r.getCollComb=Object(s.a)(F().mark(function t(){return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r.setState({saveButton:!1}),r.setState({dropDisable:!0}),t.next=4,r.props.studentDegreeCombintaion(r.state.fcollcode);case 4:r.setState({showTable:!0});case 5:case"end":return t.stop()}},t)})),r.handleClgChange=function(t,e){r.setState({fcollcode:e.value})},r.renderHeader=function(){return h.a.createElement(d.a.Header,{style:{display:"flex"}},h.a.createElement("h4",null,"College Wise Intake"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(y.a,{disabled:r.state.saveButton,basic:!0,color:"green",content:"Save",onClick:r.handleSave,icon:"save"}),h.a.createElement(y.a,{basic:!0,onClick:Object(s.a)(F().mark(function t(){return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r.props.cancelCollegeComb(),t.next=3,r.setState({dropDisable:!1,saveButton:!0});case 3:return t.next=5,r.setState({showTable:!1});case 5:return t.next=7,r.setState({fcollcode:""});case 7:case"end":return t.stop()}},t)})),color:"black",icon:"ban",content:"Cancel"}),h.a.createElement(k.a,{to:"/dashboard"},h.a.createElement(y.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r}return Object(c.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){this.props.getCollegeList()}},{key:"render",value:function(){var t=this.props.collegeList.map(function(t){return{value:t.fcollcode,text:"".concat(t.fcollcode," ").concat(t.fcollname)}}),e=this.props.collcomb,r=Object(D.i)();return h.a.createElement("div",{className:"animated fadeIn"},h.a.createElement(d.a,{fluid:!0},h.a.createElement(d.a.Content,null,this.renderHeader(),h.a.createElement(v.a,null),h.a.createElement(d.a.Description,{style:{height:"".concat(r,"px"),overflowY:"auto"}},h.a.createElement("div",{className:"col-md-12"},h.a.createElement(g.a,null,h.a.createElement(g.a.Group,null,h.a.createElement(g.a.Field,{width:16},h.a.createElement("label",null,"College List"),h.a.createElement(p.a,{size:"mini",fluid:!0,disabled:!!this.state.dropDisable,openOnFocus:!1,selectOnBlur:!1,searchInput:{autoFocus:!0},placeholder:"Select College",name:"fcollcode",selection:!0,search:!0,value:this.state.fcollcode,options:t,onChange:this.handleClgChange}))),h.a.createElement(v.a,null),h.a.createElement(y.a,{disabled:""==this.state.fcollcode,onClick:this.getCollComb,color:"blue",content:"Submit"})),this.state.showTable&&h.a.createElement(h.a.Fragment,null,h.a.createElement(m.a,{celled:!0},h.a.createElement(m.a.Header,null,h.a.createElement(m.a.Row,null,h.a.createElement(m.a.HeaderCell,{colSpan:"9"},"Combination Wise Intake",h.a.createElement("b",{style:{float:"right"}},h.a.createElement(y.a,{basic:!0,color:"blue",content:"Add Row",icon:"plus",onClick:this.onadd}))))),h.a.createElement(m.a.Header,null,h.a.createElement(m.a.Row,null,h.a.createElement(m.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),h.a.createElement(m.a.HeaderCell,{style:{width:"30%"},textAlign:"center"},"Degree"),h.a.createElement(m.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Semester"),h.a.createElement(m.a.HeaderCell,{style:{width:"30%"},textAlign:"center"},"Combination"),h.a.createElement(m.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Intake"),h.a.createElement(m.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Del"))),h.a.createElement(m.a.Body,null,e.map(function(t,e){return h.a.createElement(m.a.Row,{key:e},h.a.createElement(G,{el:t,i:e}))}))))),h.a.createElement(v.a,null)))))}}]),e}(f.Component);e.default=Object(b.b)(function(t){return{collegeList:t.collegeList,collcomb:t.studentDegreeCombintaion.particular_college_data}},{StudentDegreeCombinationADDrow:L,studentDegreeCombintaion:O,showErrorType:_,changeAdmissionData:j,getCollegeList:C.e,saveDegreeCombintaion:function(t,e,r,n,a){return function(){var t=Object(s.a)(x().mark(function t(o,i){var c,u,l,s,f,h,p;return x().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(c=i(),!n){t.next=6;break}u={header:"Error",content:"You have empty data"},o(Object(E.A)(u)),t.next=17;break;case 6:if(!r){t.next=11;break}l={header:"Error",content:"You have dupilcate data"},o(Object(E.A)(l)),t.next=17;break;case 11:return o({type:"SET_LOADER"}),t.next=14,w.a.post("app.php?a=submitSubjectCombination&univcode="+c.univ.funivcode+"&fcollcode="+e,{submit:a});case 14:s=t.sent,o({type:"UNSET_LOADER"}),"object"!==typeof s.data?(f={header:"Error",content:"Something went wrong"},o(Object(E.A)(f))):-1===s.data.error_code?(h={header:"Error",content:s.data.msg},o(Object(E.A)(h))):(p={header:"Success",content:s.data.msg},o(Object(E.A)(p)));case 17:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},cancelCollegeComb:function(){return{type:"CANCEL_COLLEGECOMB"}}})(P)},272:function(t,e,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 p(t){var e=t.children,r=t.className,n=t.clearing,o=t.content,c=t.fitted,d=t.hidden,y=t.horizontal,v=t.inverted,g=t.section,m=t.vertical,b=i()("ui",Object(l.a)(n,"clearing"),Object(l.a)(c,"fitted"),Object(l.a)(d,"hidden"),Object(l.a)(y,"horizontal"),Object(l.a)(v,"inverted"),Object(l.a)(g,"section"),Object(l.a)(m,"vertical"),"divider",r),w=Object(s.a)(p,t),E=Object(f.a)(p,t);return u.a.createElement(E,a()({},w,{className:b}),h.a.isNil(e)?o:e)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},e.a=p},368:function(t,e,r){"use strict";r.d(e,"b",function(){return c}),r.d(e,"a",function(){return u}),r.d(e,"e",function(){return l}),r.d(e,"c",function(){return s}),r.d(e,"d",function(){return f}),r.d(e,"f",function(){return h}),r.d(e,"g",function(){return p}),r.d(e,"h",function(){return d});var n=r(68),a=r(271),o=r(267);function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),c=new A(n||[]);return a(i,"_invoke",{value:C(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var E={};s(E,c,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(T([])));O&&O!==r&&n.call(O,c)&&(E=O);var L=w.prototype=m.prototype=Object.create(E);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(a,o,i,c){var u=h(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function C(e,r,n){var a=p;return function(o,i){if(a===y)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var l=h(e,r,n);if("normal"===l.type){if(a=n.done?v:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=v,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},j(_.prototype),s(_.prototype,u,function(){return this}),e.AsyncIterator=_,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new _(f(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},j(L),s(L,l,"Generator"),s(L,c,function(){return this}),s(L,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var c=function(t,e){return{type:"COLLEGE_FORM",payload:{name:t,value:e}}},u=function(){return{type:"CANCEL_FORM",payload:1}},l=function(){return function(){var t=Object(n.a)(i().mark(function t(e,r){var n,c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r(),e({type:"SET_LOADER"}),c="","500"!=n.user.fcurtype&&"501"!=n.user.fcurtype||""!=n.user.fcollcode&&(c=n.user.fcollcode),t.next=6,a.a.get("app.php?a=GetAllCollegeList&univcode="+n.univ.funivcode+"&college="+c);case 6:u=t.sent,e({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},e(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},e(Object(o.A)(s))):e({type:"ALL_COLLEGE_LIST",payload:u.data});case 9:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},s=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),e.next=4,a.a.get("app.php?a=GetSpecificCollege&collcode="+t+"&univcode="+c.univ.funivcode);case 4:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"GET_SPECIFIC_COLLEGE",payload:u.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},f=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s,f;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"SET_LOADER"}),c=n(),e.next=4,a.a.post("/app.php?a=InsertOrUpdateCollegeDetails&univcode="+c.univ.funivcode,{data:t});case 4:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):(f={header:"Success",content:u.data.msg},r(Object(o.A)(f)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},h=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"SET_LOADER"}),c=n(),e.next=4,a.a.get("/app.php?a=getDeggrpOnCol&univcode="+c.univ.funivcode+"&collcode="+t);case 4:if(u=e.sent,r({type:"UNSET_LOADER"}),"object"===typeof u.data){e.next=11;break}l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l)),e.next=20;break;case 11:if(-1!==u.data.error_code){e.next=18;break}return s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s)),r({type:"CLEAR_GET_COLLEGE_DEGGRP",payload:u.data}),e.abrupt("return");case 18:({header:"Success",content:u.data.msg}),r({type:"GET_COLLEGE_DEGGRP",payload:u.data});case 20:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},p=function(t,e){return function(){var r=Object(n.a)(i().mark(function r(n,c){var u,l,s,f;return i().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n({type:"SET_LOADER"}),u=c(),r.next=4,a.a.get("/app.php?a=getDegreeOnCol&univcode="+u.univ.funivcode+"&collcode="+t+"°grp="+e);case 4:if(l=r.sent,n({type:"UNSET_LOADER"}),"object"===typeof l.data){r.next=11;break}s={header:"Error",content:"Something went wrong"},n(Object(o.A)(s)),r.next=19;break;case 11:if(-1!==l.data.error_code){r.next=18;break}return f={header:"Error",content:l.data.data.msg},n(Object(o.A)(f)),n({type:"CLEAR_GET_COLLEGE_DEGREE",payload:l.data}),r.abrupt("return");case 18:n({type:"GET_COLLEGE_DEGREE",payload:l.data});case 19:case"end":return r.stop()}},r)}));return function(t,e){return r.apply(this,arguments)}}()},d=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"SET_LOADER"}),c=n(),e.next=4,a.a.get("/app.php?a=getIaShortUpdData&univcode="+c.univ.funivcode+"&collcode="+t.college+"°grp="+t.deggrp+"°ree="+t.degree+"&sem="+t.sem+"&type="+t.type);case 4:if(u=e.sent,r({type:"UNSET_LOADER"}),"object"===typeof u.data){e.next=11;break}l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l)),e.next=19;break;case 11:if(-1!==u.data.error_code){e.next=18;break}return s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s)),r({type:"CLEAR_GET_ATTENDANCE_IA_SHORTAGE",payload:u.data}),e.abrupt("return");case 18:r({type:"GET_ATTENDANCE_IA_SHORTAGE",payload:u.data});case 19:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=167.75ef343f.chunk.js.map
|