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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/133.0d599679.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[133,307],{1356:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(100),o=r(101),c=r(103),i=r(102),u=r(104),l=r(2),s=r.n(l),f=r(941),h=r(1377),d=r(1343),p=r(272),m=r(1335),y=r(1337),v=r(105),g=r(267),b=r(0),w=r(1),E=r(1338),x=(r(304),r(171),r(273)),j=r(271);function O(){O=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:{},c=o.iterator||"@@iterator",i=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 v?t:v,c=Object.create(o.prototype),i=new A(n||[]);return a(c,"_invoke",{value:_(e,r,i)}),c}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",m="completed",y={};function v(){}function g(){}function b(){}var w={};l(w,c,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(C([])));x&&x!==r&&n.call(x,c)&&(w=x);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){function r(a,o,c,i){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,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(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 _(t,r,n){var a=h;return function(o,c){if(a===p)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=k(i,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===h)throw a=m,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?m:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function k(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,k(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=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var c=o.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,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function C(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 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 g.prototype=b,a(j,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,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,b):(e.__proto__=b,l(e,u,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(L.prototype),l(L.prototype,i,function(){return this}),t.AsyncIterator=L,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new L(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},S(j),l(j,u,"Generator"),l(j,c,function(){return this}),l(j,"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=C,A.prototype={constructor:A,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),!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 i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.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 c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):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),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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var S=function(e,t){return function(){var r=Object(n.a)(O().mark(function r(n,a){var o,c,i,u;return O().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=a(),r.next=3,j.a.get("app.php?a=SubmapTabledata&univcode="+o.univ.funivcode+"&fcollcode="+o.user.fcollcode+"&deg="+e+"&examno="+t);case 3:"object"!==typeof(c=r.sent).data?(i={header:"Error",content:"Something went wrong"},n(Object(g.A)(i))):-1===c.data.error_code?(u={header:"Error",content:c.data.data.msg},n(Object(g.A)(u))):n({type:"SUB_MAP",payload:c.data});case 5:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e){function t(){var e,r;Object(a.a)(this,t);for(var n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return(r=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(o)))).state={tabledata:[{oldsub:"",oldsubname:"",newsubname:"",fdeleted:!1,fdisabled:!1}],fnewsub:"",degree:[],examno:""},r.changeNewSub=function(e,t,n){var a;a=Object(w.a)({},t,Object(b.a)({},e.name,e.value)),r.props.changeNewSubject(a,n)},r}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.props.getsubmapdata(this.props.deg,this.props.examno)}},{key:"render",value:function(){var e=this,t=this.state,r=(t.tabledata,t.tabledt,t.error,t.errorMessage,Object(x.i)(),this.props.submap.map(function(e,t){return{key:t,value:e.fsubcode,text:"".concat(e.fsubcode," - ").concat(e.fsubname)}}));return s.a.createElement("div",{className:"animated fadeIn"},s.a.createElement("div",{className:"ui mini form"},s.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive",style:{marginTop:"25px"}},s.a.createElement(E.a.Header,{style:{fontSize:"1.2em"}},s.a.createElement(E.a.Row,null,s.a.createElement(E.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},s.a.createElement("label",null,"Sl. No.")),s.a.createElement(E.a.HeaderCell,{style:{width:"30%"},textAlign:"center"},s.a.createElement("label",null,"Old Subject")),s.a.createElement(E.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},s.a.createElement("label",null,"New Degree")),s.a.createElement(E.a.HeaderCell,{style:{width:"30%"},textAlign:"center"},s.a.createElement("label",null,"New Subject")))),s.a.createElement(E.a.Body,null,this.props.tabledt.map(function(t,n){var a="".concat(t.fsubcode," - ").concat(t.fsubname);return s.a.createElement(E.a.Row,{key:n},s.a.createElement(E.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},n+1),s.a.createElement(E.a.Cell,{textAlign:"left",style:{fontSize:"1.2em"}},a),s.a.createElement(E.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.fdegree),s.a.createElement(E.a.Cell,{style:{padding:"0"}},s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{style:{marginBottom:"-0.1em"},width:16},s.a.createElement(y.a,{placeholder:"Select New Subject",name:"fnewsub",selection:!0,search:!0,id:n,value:t.fnewsub,options:r,style:{fontSize:"1.2em",marginBottom:"-0.5em",marginTop:"0.3em"},onChange:function(r,a){return e.changeNewSub(a,t,n)}})))))})))))}}]),t}(l.Component),_=Object(v.b)(function(e){return{tabledt:e.submapTabledata.oldsub,submap:e.submapTabledata.newsub}},{getsubmapdata:S,changeNewSubject:function(e,t){return{type:"SUB_MAP_CHANGE",payload:{el:e,i:t}}}})(L);r(274);function k(){k=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:{},c=o.iterator||"@@iterator",i=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 v?t:v,c=Object.create(o.prototype),i=new A(n||[]);return a(c,"_invoke",{value:L(e,r,i)}),c}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",m="completed",y={};function v(){}function g(){}function b(){}var w={};l(w,c,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(C([])));x&&x!==r&&n.call(x,c)&&(w=x);var j=b.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function r(a,o,c,i){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,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(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 L(t,r,n){var a=h;return function(o,c){if(a===p)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=_(i,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===h)throw a=m,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?m:d,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=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var c=o.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,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function C(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 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 g.prototype=b,a(j,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,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,b):(e.__proto__=b,l(e,u,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},O(S.prototype),l(S.prototype,i,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new S(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},O(j),l(j,u,"Generator"),l(j,c,function(){return this}),l(j,"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=C,A.prototype={constructor:A,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),!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 i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.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 c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):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),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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var N=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(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(u)))).state={fstudydeg:"",displayTbl:!1,studyExamno:"",studySubject:"",tabledt:""},r.getDegrees=function(e,t){r.setState({frmDeggrp:t.value})},r.handleChangedeg=function(){var e=Object(n.a)(k().mark(function e(t,n){return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.fetchexamno(n.value);case 2:r.setState({fstudydeg:n.value,studyExamno:"",displayTbl:!1,studySubject:""});case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeexm=function(){var e=Object(n.a)(k().mark(function e(t,n){return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({studyExamno:n.value,displayTbl:!1,studySubject:""});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangesub=function(){var e=Object(n.a)(k().mark(function e(t,n){return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({studySubject:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleSubmit=Object(n.a)(k().mark(function e(){var t,n,a,o,c;return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.props.user.fdeggrp,n=r.state,n.displayTbl,a=n.studyExamno,o=n.fstudydeg,n.studySubject,""!==t){e.next=6;break}return c={header:"Error",content:"Select Degree Group"},r.props.showError(c),e.abrupt("return");case 6:return e.next=8,r.props.getsubmapdata(o,a);case 8:r.setState({tabledt:""}),r.setState({displayTbl:!0});case 10:case"end":return e.stop()}},e)})),r.handleCancel=function(){r.setState({fstudydeg:"",displayTbl:!1,studyExamno:""})},r.handlesave=Object(n.a)(k().mark(function e(){var t,n,a,o;return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=r.state.fstudydeg){e.next=6;break}return t={header:"Error",content:"Select degree"},r.props.showError(t),e.abrupt("return");case 6:if(""!=r.state.studyExamno){e.next=10;break}return n={header:"Error",content:"Select examno"},r.props.showError(n),e.abrupt("return");case 10:return a=r.props.tabledt.oldsub,e.next=13,r.props.insertupdatesubmaping(a,r.state.fstudydeg,r.state.studyExamno);case 13:o={header:"Success",content:"Updated Successfully"},r.props.showError(o),r.handleCancel();case 16:case"end":return e.stop()}},e)})),r.renderHeader=function(){return s.a.createElement(h.a.Header,{style:{display:"flex"}},s.a.createElement("h3",null,"Subject Mapping"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(d.a,{basic:!0,color:"blue",icon:"save",onClick:r.handlesave,content:"Save"}),s.a.createElement(d.a,{basic:!0,color:"black",icon:"ban",onClick:r.handleCancel,content:"Cancel"}),s.a.createElement(f.a,{to:"/dashboard"},s.a.createElement(d.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r.renderForm=function(){var e=r.state,t=e.displayTbl,n=e.studyExamno,a=e.fstudydeg,o=(e.studySubject,r.props.degreeList.map(function(e){return{value:e.fdegree,text:"".concat(e.fdegree,"- ").concat(e.fdescpn)}})),c=r.props.examno.map(function(e){return{value:e.fexamno,text:"".concat(e.fexamno," - ").concat(e.fexamname)}}),i=(r.props.Subject.map(function(e){return{value:e.fsubcode,text:" ".concat(e.fsubname)}}),Object(x.i)());return s.a.createElement("div",{className:"animated fadeIn"},s.a.createElement(h.a,{fluid:!0},s.a.createElement(h.a.Content,null,r.renderHeader(),s.a.createElement(p.a,null),s.a.createElement(h.a.Description,{style:{overflowY:"auto",overflowX:"hidden",height:"".concat(i,"px")}},s.a.createElement("div",{className:"col-md-6"},s.a.createElement(m.a,null,s.a.createElement("div",null,s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{width:16},s.a.createElement("label",null,"Degree"),s.a.createElement(y.a,{placeholder:"Select Degree",name:"deg",value:a,selection:!0,search:!0,options:o,onChange:r.handleChangedeg})))),s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{width:16},s.a.createElement("label",null,"Exam No."),s.a.createElement(y.a,{placeholder:"Select Exam No.",name:"exmno",value:n,selection:!0,search:!0,options:c,onChange:r.handleChangeexm}))),s.a.createElement(d.a,{color:"blue",onClick:r.handleSubmit},"View"),s.a.createElement("br",null))),t?s.a.createElement(_,{examno:r.state.studyExamno,deg:r.state.fstudydeg}):null))))},r}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.props.getDegreeList()}},{key:"render",value:function(){return this.renderForm()}}]),t}(l.Component);t.default=Object(v.b)(function(e){return{deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user,degreeList:e.studyDegree,examno:e.studyExamno,Subject:e.studySubject,tabledt:e.submapTabledata}},{getDegreeList:function(){return function(){var e=Object(n.a)(O().mark(function e(t,r){var n,a,o,c;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),e.next=3,j.a.get("app.php?a=SubmapDegreeList&univcode="+n.univ.funivcode+"&fcollcode="+n.user.fcollcode+"&fdeggrp="+n.user.fdeggrp);case 3:"object"!==typeof(a=e.sent).data?(o={header:"Error",content:"Something went wrong"},t(Object(g.A)(o))):-1===a.data.error_code?(c={header:"Error",content:a.data.data.msg},t(Object(g.A)(c))):t({type:"ALL_DEGREE_LIST",payload:a.data});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},fetchexamno:function(e){return function(){var t=Object(n.a)(O().mark(function t(r,n){var a,o,c,i;return O().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),t.next=3,j.a.get("app.php?a=getexamno&univcode="+a.univ.funivcode+"&deg="+e);case 3:"object"!==typeof(o=t.sent).data?(c={header:"Error",content:"Something went wrong"},r(Object(g.A)(c))):-1===o.data.error_code?(i={header:"Error",content:o.data.data.msg},r(Object(g.A)(i))):r({type:"STUDY_EXAMNO",payload:o.data});case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},fetchsub:function(e,t){return function(){var r=Object(n.a)(O().mark(function r(n,a){var o,c,i,u;return O().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=a(),r.next=3,j.a.get("app.php?a=getstudysub&univcode="+o.univ.funivcode+"&deg="+t+"&exmno="+e);case 3:"object"!==typeof(c=r.sent).data?(i={header:"Error",content:"Something went wrong"},n(Object(g.A)(i))):-1===c.data.error_code?(u={header:"Error",content:c.data.data.msg},n(Object(g.A)(u))):n({type:"STUDY_SUBJECT",payload:c.data});case 5:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},getsubmapdata:S,fetchDegGrp:g.j,showError:g.A,insertupdatesubmaping:function(e,t,r){return function(){var a=Object(n.a)(O().mark(function n(a,o){var c,i;return O().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=o(),a({type:"SET_LOADER"}),n.next=4,j.a.post("/app.php?a=insertUpdateSubmaping&univcode="+c.univ.funivcode,{data:{fdeggrp:c.user.fdeggrp,univcode:c.univ.funivcode,newOS:e,user:c.user,deg:t,examno:r}});case 4:i=n.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):a({type:"SET_ERROR",payload:i.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return a.apply(this,arguments)}}()}})(N)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),c=r.n(o),i=r(2),u=r.n(i),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,i=e.fitted,p=e.hidden,m=e.horizontal,y=e.inverted,v=e.section,g=e.vertical,b=c()("ui",Object(l.a)(n,"clearing"),Object(l.a)(i,"fitted"),Object(l.a)(p,"hidden"),Object(l.a)(m,"horizontal"),Object(l.a)(y,"inverted"),Object(l.a)(v,"section"),Object(l.a)(g,"vertical"),"divider",r),w=Object(s.a)(d,e),E=Object(f.a)(d,e);return u.a.createElement(E,a()({},w,{className:b}),h.a.isNil(t)?o:t)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},t.a=d},304:function(e,t,r){}}]);
//# sourceMappingURL=133.0d599679.chunk.js.map