0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.49.19


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/213.085bfd19.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[213,307],{1344:function(e,t,r){"use strict";r.r(t);var n=r(1),o=r(3),a=r(0),c=r(68),i=r(100),u=r(101),s=r(103),l=r(102),h=r(104),f=r(2),p=r.n(f),d=r(1377),m=r(1343),b=r(272),v=r(1335),g=r(1337),y=r(105),w=r(267),E=r(271),j=r(24);r(509);function O(){O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",u=a.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 l(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,c=Object.create(a.prototype),i=new N(n||[]);return o(c,"_invoke",{value:S(e,r,i)}),c}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",m="completed",b={};function v(){}function g(){}function y(){}var w={};s(w,c,function(){return this});var E=Object.getPrototypeOf,j=E&&E(E(D([])));j&&j!==r&&n.call(j,c)&&(w=j);var x=y.prototype=v.prototype=Object.create(w);function C(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){function r(o,a,c,i){var u=h(e[o],e,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(l).then(function(e){s.value=e,c(s)},function(e){return r("throw",e,c,i)})}i(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return a=a?a.then(o,o):o()}})}function S(t,r,n){var o=f;return function(a,c){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw c;return{value:e,done:!0}}for(n.method=a,n.arg=c;;){var i=n.delegate;if(i){var u=k(i,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=h(t,r,n);if("normal"===s.type){if(o=n.done?m:p,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=h(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var c=a.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function _(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(typeof t+" is not iterable")}return g.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(L.prototype),s(L.prototype,i,function(){return this}),t.AsyncIterator=L,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var c=new L(l(e,r,n,o),a);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},C(x),s(x,u,"Generator"),s(x,c,function(){return this}),s(x,"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=D,N.prototype={constructor:N,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(A),!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 o(n,o){return i.type="throw",i.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],i=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(c)},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),b},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),A(r),b}},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 o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}var x=r(273),C=r(941),L=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this.props.degrees.map(function(e,t){return{key:t,value:e.fdegree,text:"".concat(e.fdegree," - ").concat(e.fdescpn)}});return p.a.createElement(v.a.Field,null,p.a.createElement("label",null,"Degree"),p.a.createElement(g.a,{fluid:!0,search:!0,selection:!0,name:"fdegree",value:this.props.frmdegree,onChange:this.props.changeDegree,placeholder:"Select Degree",options:e}))}}]),t}(f.Component),S=r(1338),k=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.props.opt_subjects,r=this.props.combsubs,n=t.map(function(e,t){return{key:t,value:e.fsubcode,text:"".concat(e.fsubcode," - ").concat(e.fsubname)}}),o=[];return r.map(function(t,r){o.push(p.a.createElement(S.a.Row,{key:r},p.a.createElement(S.a.Cell,{textAlign:"center"},r+1),p.a.createElement(S.a.Cell,{textAlign:"center",singleLine:!0},p.a.createElement(g.a,{fluid:!0,search:!0,selection:!0,id:r,name:"fsubcode",value:t.fsubcode,onChange:function(n,o){return e.props.changeSub(o,t,r)},placeholder:"Sub. Code",options:n})),p.a.createElement(S.a.Cell,{textAlign:"center"},p.a.createElement("div",{className:"ui checkbox"},p.a.createElement("input",{type:"checkbox",name:"fdeleted",value:t.fdeleted,onChange:function(n){return e.props.deleteRow(n,t,r)},checked:"true"==t.fdeleted?"checked":null}),p.a.createElement("label",null," ")))))}),p.a.createElement(S.a,{celled:!0},p.a.createElement(S.a.Header,null,p.a.createElement(S.a.Row,null,p.a.createElement(S.a.HeaderCell,{colSpan:"3"},p.a.createElement("div",{style:{display:"flex",width:"100%"}},"Combination Subjects",p.a.createElement("div",{className:"ml-auto"},p.a.createElement(m.a,{basic:!0,color:"blue",content:"Add",icon:"plus",onClick:this.props.addSub,size:"mini"}))))),p.a.createElement(S.a.Row,null,p.a.createElement(S.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),p.a.createElement(S.a.HeaderCell,{textAlign:"center"},"Subject"),p.a.createElement(S.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Del."))),p.a.createElement(S.a.Body,null,o))}}]),t}(f.Component),_=r(274);function A(){A=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",u=a.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 l(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,c=Object.create(a.prototype),i=new N(n||[]);return o(c,"_invoke",{value:L(e,r,i)}),c}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",m="completed",b={};function v(){}function g(){}function y(){}var w={};s(w,c,function(){return this});var E=Object.getPrototypeOf,j=E&&E(E(D([])));j&&j!==r&&n.call(j,c)&&(w=j);var O=y.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function r(o,a,c,i){var u=h(e[o],e,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(l).then(function(e){s.value=e,c(s)},function(e){return r("throw",e,c,i)})}i(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return a=a?a.then(o,o):o()}})}function L(t,r,n){var o=f;return function(a,c){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw c;return{value:e,done:!0}}for(n.method=a,n.arg=c;;){var i=n.delegate;if(i){var u=S(i,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=h(t,r,n);if("normal"===s.type){if(o=n.done?m:p,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=h(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var c=a.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(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){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(typeof t+" is not iterable")}return g.prototype=y,o(O,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,i,function(){return this}),t.AsyncIterator=C,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var c=new C(l(e,r,n,o),a);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},x(O),s(O,u,"Generator"),s(O,c,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=D,N.prototype={constructor:N,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(_),!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 o(n,o){return i.type="throw",i.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],i=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(c)},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),b},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),_(r),b}},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 o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}var N=function(e){function t(){var e,r;Object(i.a)(this,t);for(var u=arguments.length,h=new Array(u),f=0;f<u;f++)h[f]=arguments[f];return(r=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(h)))).state={frmSubmit:!1},r.changeDegree=function(){var e=Object(c.a)(A().mark(function e(t,n){return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.fetchComb(n.value);case 2:r.props.changeComb(Object(a.a)(Object(a.a)(Object(a.a)({},n.name,n.value),"fcombcode",""),"fcombdesc",""));case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.changeComb=function(){var e=Object(c.a)(A().mark(function e(t,n){var o;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(o=r.props.combination.combs.filter(function(e,t){return e.fcombcode==n.value.toUpperCase()})[0])?r.setState({comb:{fcombcode:n.value,fcombdesc:""}}):r.setState({comb:o}),r.props.changeComb(o),e.next=5,r.props.fetchCombSub(n.value);case 5:r.setState({frmSubmit:!0});case 6:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleAddition=function(){var e=Object(c.a)(A().mark(function e(t,n){var c,i;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=n.name,i=n.value,r.props.changeComb({combs:[].concat(Object(o.a)(r.props.combination.combs),[{fcombcode:i,fcombdesc:""}]),fcombcode:i,fcombdesc:""}),r.props.changeComb(Object(a.a)({},c,i));case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChange=function(e,t){r.props.changeComb(Object(a.a)({},t.name,t.value))},r.changeCombsub=function(e,t,o){var c=r.props.combination.combsubs.map(function(t,r){return o===r?Object(n.a)({},t,Object(a.a)({},e.name,e.value)):t});r.props.changeComb({combsubs:c})},r.deletesub=function(e,t,o){var c=r.props.combination.combsubs.map(function(t,r){return o===r?Object(n.a)({},t,Object(a.a)({},e.target.name,e.target.checked)):t});r.props.changeComb({combsubs:c})},r.addsubs=function(){var e=r.props.combination.combsubs;if(""!==e[e.length-1].fsubcode)r.props.addCombSub();else{r.props.showError({header:"Error",content:"Select the subject"})}},r.handleSave=Object(c.a)(A().mark(function e(){return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.saveCombination();case 2:r.handleCancel();case 3:case"end":return e.stop()}},e)})),r.handleCancel=function(){r.props.cancelComb(),r.setState({frmSubmit:!1})},r.deleteComb=Object(c.a)(A().mark(function e(){return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.deleteCombination();case 2:r.handleCancel();case 3:case"end":return e.stop()}},e)})),r.handleReport=function(){var e=r.props.combination.fdegree;if(""!==e)window.open(_.c+"degreeWiseCombinationList&univcode="+r.props.user.fcuruniv+"&fdegree="+e,"_blank");else{r.props.showError({header:"Error",content:"Select Degree."})}},r}return Object(h.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchDegrees(this.props.user.fdeggrp)}},{key:"componentWillUnmount",value:function(){this.handleCancel()}},{key:"render",value:function(){var e=Object(x.i)(),t=this.props.combination,r=t.fdegree,n=t.combs,o=t.fcombcode,a=t.fcombdesc,c=t.combsubs,i=t.optsubs,u=n.map(function(e,t){return{key:t,value:e.fcombcode,text:e.fcombcode}});return p.a.createElement("div",{className:"animated fadeIn"},p.a.createElement(d.a,{fluid:!0},p.a.createElement(d.a.Content,null,p.a.createElement(d.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"Combination"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(m.a,{basic:!0,color:"green",content:"Save",onClick:this.handleSave,icon:"save",disabled:!this.state.frmSubmit}),p.a.createElement(m.a,{basic:!0,color:"red",content:"Delete",icon:"trash",onClick:this.deleteComb,disabled:!this.state.frmSubmit}),p.a.createElement(m.a,{basic:!0,color:"blue",content:"Report",onClick:this.handleReport,icon:"file"}),p.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),p.a.createElement(C.a,{to:"/dashboard"},p.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(b.a,null),p.a.createElement(d.a.Description,{style:{height:"".concat(e,"px"),overflowY:"auto"}},p.a.createElement(v.a,null,p.a.createElement(v.a.Group,{style:{margin:"0em 0em 0.51em"}},p.a.createElement(v.a.Field,{width:"12"},p.a.createElement(L,{frmdegree:r,degrees:this.props.degrees,changeDegree:this.changeDegree}))),p.a.createElement(v.a.Group,{style:{margin:"0em 0em 0.51em"}},p.a.createElement(v.a.Field,{width:4},p.a.createElement("label",null,"Comb. Code"),p.a.createElement(g.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:o,name:"fcombcode",onChange:this.changeComb,allowAdditions:!0,onAddItem:this.handleAddition,placeholder:"Comb. Code",disabled:this.state.frmSubmit,openOnFocus:!1,options:u,selectOnBlur:!1})),p.a.createElement(v.a.Field,{width:8},p.a.createElement(v.a.Input,{placeholder:"Description",value:a,label:"Description",name:"fcombdesc",onChange:this.handleChange})))),this.state.frmSubmit?p.a.createElement("div",null,p.a.createElement(b.a,null),p.a.createElement(k,{opt_subjects:i,combsubs:c,changeSub:this.changeCombsub,deleteRow:this.deletesub,addSub:this.addsubs})):null))))}}]),t}(p.a.Component);t.default=Object(y.b)(function(e){return{combination:e.combination,deggrp:e.deggrp,degrees:e.degrees,user:e.user}},{fetchDegrees:w.k,fetchComb:function(e){return function(){var t=Object(c.a)(O().mark(function t(r,n){var o,a,c,i;return O().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),t.next=3,E.a.get("/app.php",{params:{a:"getCombinations",deg:e,univcode:o.univ.funivcode}});case 3:"object"!==typeof(a=t.sent).data?(c={header:"Error",content:"Something went wrong"},r(Object(w.A)(c))):0===a.data.error_code?r({type:j.d,payload:a.data}):(i={header:"Error",content:a.data.data.msg},r(Object(w.A)(i)));case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},fetchCombSub:function(e){return function(){var t=Object(c.a)(O().mark(function t(r,n){var o,a,c,i;return O().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),r({type:"SET_LOADER"}),t.next=4,E.a.get("/app.php",{params:{a:"getCombinationSubjects",deg:o.combination.fdegree,combcode:e,univcode:o.univ.funivcode}});case 4:a=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof a.data?(c={header:"Error",content:"Something went wrong"},r(Object(w.A)(c))):0===a.data.error_code?r({type:j.e,payload:a.data}):(i={header:"Error",content:a.data.data.msg},r(Object(w.A)(i)));case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},changeComb:function(e){return{type:j.c,payload:e}},addCombSub:function(){return{type:j.a}},showError:w.A,cancelComb:function(){return{type:j.b}},saveCombination:function(){return function(){var e=Object(c.a)(O().mark(function e(t,r){var n,o,a,c,i;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,E.a.post("/app.php?a=saveCombination&univcode="+n.univ.funivcode,{comb:{fdegree:n.combination.fdegree,fcombcode:n.combination.fcombcode,fcombdesc:n.combination.fcombdesc,combsubs:n.combination.combsubs}});case 4:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?(a={header:"Error",content:"Something went wrong"},t(Object(w.A)(a))):-1===o.data.error_code?(c={header:"Error",content:o.data.data.msg},t(Object(w.A)(c))):(i={header:"Success",content:o.data.data.msg},t(Object(w.A)(i)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},deleteCombination:function(){return function(){var e=Object(c.a)(O().mark(function e(t,r){var n,o,a,c,i;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,E.a.post("/app.php?a=deleteCombination&univcode="+n.univ.funivcode,{comb:{fdegree:n.combination.fdegree,fcombcode:n.combination.fcombcode}});case 4:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?(a={header:"Error",content:"Something went wrong"},t(Object(w.A)(a))):-1===o.data.error_code?(c={header:"Error",content:o.data.data.msg},t(Object(w.A)(c))):(i={header:"Success",content:o.data.data.msg},t(Object(w.A)(i)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}})(N)},272:function(e,t,r){"use strict";var n=r(270),o=r.n(n),a=r(268),c=r.n(a),i=r(2),u=r.n(i),s=r(349),l=r(613),h=r(611),f=r(269);function p(e){var t=e.children,r=e.className,n=e.clearing,a=e.content,i=e.fitted,d=e.hidden,m=e.horizontal,b=e.inverted,v=e.section,g=e.vertical,y=c()("ui",Object(s.a)(n,"clearing"),Object(s.a)(i,"fitted"),Object(s.a)(d,"hidden"),Object(s.a)(m,"horizontal"),Object(s.a)(b,"inverted"),Object(s.a)(v,"section"),Object(s.a)(g,"vertical"),"divider",r),w=Object(l.a)(p,e),E=Object(h.a)(p,e);return u.a.createElement(E,o()({},w,{className:y}),f.a.isNil(t)?a:t)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},t.a=p},509:function(e,t){}}]);
//# sourceMappingURL=213.085bfd19.chunk.js.map