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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/62.561a0ba9.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{1370:function(e,t,r){"use strict";r.r(t);var n=r(69),a=r(2),o=r.n(a),c=r(941),i=r(1433),u=r(1377),l=r(1343),s=r(272),f=r(273),h=r(3),p=r(68),d=r(100),g=r(101),m=r(103),v=r(102),y=r(104),E=(r(271),r(1335)),w=r(1337),b=r(1157),x=r(324),O=r(267),S=r(328),L=r(105);function j(){j=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 N(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",p="suspendedYield",d="executing",g="completed",m={};function v(){}function y(){}function E(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(D([])));x&&x!==r&&n.call(x,c)&&(w=x);var O=E.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===d)throw new Error("Generator is already running");if(a===g){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=T(i,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=f(t,r,n);if("normal"===l.type){if(a=n.done?g:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function T(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(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var 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,m):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}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 A(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 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 y.prototype=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:y,configurable:!0}),y.displayName=l(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},S(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(O),l(O,u,"Generator"),l(O,c,function(){return this}),l(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=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 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,m):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),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}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),m}},t}var _=function(e){function t(){var e,r;Object(d.a)(this,t);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return(r=Object(m.a)(this,(e=Object(v.a)(t)).call.apply(e,[this].concat(a)))).state={deggrp:[],fmsgtype:"SMS",fsendto:"ST",fevent:"GEN",fcollfrom:[],fdegfrom:[],fregfrom:"00000",fregto:"ZZZZZ",fteachfrom:"0000",fteachto:"ZZZZ",fboardfrom:"0000",fboardto:"ZZZZ",ftitle:"",fmsg:"",fevents:[],fstudtype:"",fmodule:"",fyear:"",fmode:""},r.componentDidMount=Object(p.a)(j().mark(function e(){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getEvents("NOTIF","ST");case 2:return e.next=4,r.props.generateDegreeDetails();case 4:case"end":return e.stop()}},e)})),r.degreeChange=function(){var e=Object(p.a)(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({deggrp:n.value}),e.next=3,r.props.getColleges(n.value);case 3:return e.next=5,r.props.getDegfromDeggrp(n.value);case 5:r.setState({fcollfrom:["All"],fdegfrom:["All"]});case 6:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.msgtypechange=function(e,t){r.setState({fmsgtype:t.value})},r.sendtochange=function(){var e=Object(p.a)(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({fsendto:n.value}),e.next=3,r.props.getEvents("NOTIF",n.value);case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.eventchange=function(){var e=Object(p.a)(j().mark(function e(t,n){var a,o;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:"fevent"===n.name&&""!==n.value&&(a=n.value,o=r.props.events.filter(function(e,t){if(e.fevent==a)return e})[0],r.setState({fevent:n.value,fmsg:o.fmessage,ftitle:o.ftitle}));case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.collfromchange=function(){var e=Object(p.a)(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.setState({fcollfrom:n.value});case 2:return e.next=4,r.props.getDegrees(r.state.fcollfrom);case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.colltochange=function(e,t){r.setState({fcollto:t.value})},r.degreefromchange=function(e,t){r.setState({fdegfrom:t.value})},r.degreetochange=function(e,t){r.setState({fdegto:t.value})},r.regfromchange=function(e,t){r.setState({fregfrom:t.value})},r.regtochange=function(e,t){r.setState({fregto:t.value})},r.teachfromchange=function(e,t){r.setState({fteachfrom:t.value})},r.teachtochange=function(e,t){r.setState({fteachto:t.value})},r.boardfromchange=function(e,t){r.setState({fboardfrom:t.value})},r.boardtochange=function(e,t){r.setState({fboardto:t.value})},r.titlechange=function(e,t){r.setState({ftitle:t.value})},r.msgchange=function(e,t){r.setState({fmsg:t.value})},r.eventchangefevents=function(e,t){r.setState({fevents:t.value})},r.studtypechange=function(e,t){r.setState({fstudtype:t.value})},r.modulechange=function(e,t){r.setState({fmodule:t.value})},r.yearchange=function(e,t){(""===t.value||/^[0-9\b]+$/.test(t.value))&&r.setState({fyear:t.value})},r.modechange=function(e,t){(""===t.value||/^[0-9\b]+$/.test(t.value))&&r.setState({fmode:t.value})},r.pushNotification=Object(p.a)(j().mark(function e(){var t,n,a,o,c,i,u,l,s,f,h,p,d,g,m;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=r.state.deggrp.length){e.next=6;break}return t={header:"Error",content:"Select Degree Group"},r.props.showError(t),e.abrupt("return");case 6:if(""!=r.state.fsendto){e.next=12;break}return n={header:"Error",content:"Select User Type"},r.props.showError(n),e.abrupt("return");case 12:if(""!=r.state.fevent){e.next=18;break}return a={header:"Error",content:"Select Message Template"},r.props.showError(a),e.abrupt("return");case 18:if(0!=r.state.fcollfrom.length){e.next=24;break}return o={header:"Error",content:"Select College Range"},r.props.showError(o),e.abrupt("return");case 24:if(""!=r.state.fregfrom){e.next=30;break}return c={header:"Error",content:"Select Reg No. Range From"},r.props.showError(c),e.abrupt("return");case 30:if(""!=r.state.fregto){e.next=36;break}return i={header:"Error",content:"Select Reg No. Range To"},r.props.showError(i),e.abrupt("return");case 36:if(""!=r.state.fteachfrom){e.next=42;break}return u={header:"Error",content:"Select Teach code range from"},r.props.showError(u),e.abrupt("return");case 42:if(""!=r.state.fteachto){e.next=48;break}return l={header:"Error",content:"Select Teach code range to"},r.props.showError(l),e.abrupt("return");case 48:if(""!=r.state.fboardfrom){e.next=54;break}return s={header:"Error",content:"Select Board from"},r.props.showError(s),e.abrupt("return");case 54:if(""!=r.state.fboardto){e.next=60;break}return f={header:"Error",content:"Select Board To"},r.props.showError(f),e.abrupt("return");case 60:if(""!=r.state.ftitle){e.next=66;break}return h={header:"Error",content:" Notification Title should not be blank"},r.props.showError(h),e.abrupt("return");case 66:if(""!=r.state.fmsg){e.next=72;break}return p={header:"Error",content:"Message Should not be blank"},r.props.showError(p),e.abrupt("return");case 72:if(""!=r.state.fstudtype){e.next=78;break}return d={header:"Error",content:"Select student type"},r.props.showError(d),e.abrupt("return");case 78:if(""!=r.state.fmodule){e.next=82;break}return g={header:"Error",content:"Select Module"},r.props.showError(g),e.abrupt("return");case 82:return m=r.state,m.deggrp,m.fmsgtype,m.fsendto,m.fevent,m.fcollfrom,m.fdegfrom,m.fregfrom,m.fregto,m.fteachfrom,m.fteachto,m.fboardfrom,m.fboardto,m.ftitle,m.fmsg,m.fevents,m.fstudtype,m.fmodule,m.fyear,m.fmode,e.next=85,r.props.pushNotification(r.state);case 85:return e.next=87,r.props.getNotifications();case 87:r.props.changeTabIndex(1);case 88:case"end":return e.stop()}},e)})),r.handleCancel=function(){r.setState({deggrp:"",fmsgtype:"",fsendto:"",fevent:"",fcollfrom:"",fdegfrom:"",fregfrom:"",fregto:"",fteachfrom:"",fteachto:"",fboardfrom:"",fboardto:"",ftitle:"",fmsg:"",fevents:"",fstudtype:"",fmodule:"",fyear:"",fmode:""})},r}return Object(y.a)(t,e),Object(g.a)(t,[{key:"render",value:function(){var e=[{key:"all",value:"All",text:"All"}],t=[{code:"ST",label:"Student"},{code:"PR",label:"Principal"},{code:"TH",label:"Teacher"}].map(function(e,t){return{key:t,value:e.code,text:e.label}}),r=this.props.DegreeDetails.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}}),n=this.props.getcoll.map(function(e,t){return{key:t,value:e.fcollcode,text:"".concat(e.fcollcode," - ").concat(e.fcollname)}}),a=[].concat(e,Object(h.a)(n)),c=this.props.degree.map(function(e,t){return{key:t,value:e.fdegree,text:"".concat(e.fdegree," - ").concat(e.fdescpn)}}),i=[].concat(e,Object(h.a)(c));return o.a.createElement("div",null,o.a.createElement(E.a,null,o.a.createElement("div",{className:"row clearfix",style:{marginRight:"0px",marginLeft:"-5px"}},o.a.createElement("div",{className:"col-md-8"},o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:"16"},o.a.createElement("label",null,"Degree Group"),o.a.createElement(w.a,{size:"mini",multiple:!0,fluid:!0,search:!0,selection:!0,name:"deggrp",value:this.state.deggrp,placeholder:"Select Degree Group",openOnFocus:!1,options:r,selectOnBlur:!1,searchInput:{autoFocus:!0},onChange:this.degreeChange}))),o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:16},o.a.createElement("label",null,"User type"),o.a.createElement(w.a,{placeholder:"User type",search:!0,selection:!0,name:"fsendto",value:this.state.fsendto,options:t,onChange:this.sendtochange}))),o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:16},o.a.createElement("label",null,"Message Template"),o.a.createElement(w.a,{placeholder:"Select Message Template",search:!0,selection:!0,name:"fevent",value:this.state.fevent,options:this.props.events.map(function(e,t){return{key:t,value:e.fevent,text:e.ftitle}}),onChange:this.eventchange}))),o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:16},o.a.createElement("label",null,"College Range "),o.a.createElement(w.a,{size:"mini",multiple:!0,fluid:!0,search:!0,selection:!0,name:"fcollfrom",value:this.state.fcollfrom,placeholder:"Select College Range",openOnFocus:!1,options:a,selectOnBlur:!1,searchInput:{autoFocus:!0},onChange:this.collfromchange}))),"ST"==this.state.fsendto?o.a.createElement("div",null,o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:16},o.a.createElement("label",null,"Degree Range"),o.a.createElement(w.a,{size:"mini",multiple:!0,fluid:!0,search:!0,selection:!0,name:"fdegfrom",value:this.state.fdegfrom,placeholder:"Select Degree Range",openOnFocus:!1,options:i,selectOnBlur:!1,searchInput:{autoFocus:!0},onChange:this.degreefromchange}))),o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:8},o.a.createElement(E.a.Input,{placeholder:"From",name:"fregfrom",value:this.state.fregfrom,onChange:this.regfromchange,maxLength:"10",label:"Register No. Range"})),o.a.createElement(E.a.Field,{width:8},o.a.createElement(E.a.Input,{placeholder:"To",name:"fregto",value:this.state.fregto,onChange:this.regtochange,maxLength:"10",style:{marginTop:"1.6em"}})))):null,o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:8},o.a.createElement("label",null,"Student Type"),o.a.createElement(w.a,{size:"mini",fluid:!0,search:!0,selection:!0,name:"fstudtype",value:this.state.fstudtype,placeholder:"Select Student Type",openOnFocus:!1,options:[{value:"All",text:"All Students"},{value:"feepaid",text:"Fee Paid"},{value:"feepending",text:"Fee Pending"}],selectOnBlur:!1,searchInput:{autoFocus:!0},onChange:this.studtypechange,label:"Student Type"})),o.a.createElement(E.a.Field,{width:8},o.a.createElement("label",null,"Module"),o.a.createElement(w.a,{size:"mini",fluid:!0,search:!0,selection:!0,name:"fmodule",value:this.state.fmodule,placeholder:"Select Module",openOnFocus:!1,options:[{value:"examapp",text:"Exam Application"},{value:"student",text:"Student"},{value:"result",text:"Result (RV/ PC PHOTOCOPY)"}],selectOnBlur:!1,searchInput:{autoFocus:!0},onChange:this.modulechange,label:"Module"}))),o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:8},o.a.createElement("label",null,"Year"),o.a.createElement(E.a.Input,{placeholder:"Year",name:"Year",value:this.state.fyear,onChange:this.yearchange,maxLength:"10"})),o.a.createElement(E.a.Field,{width:8},o.a.createElement("label",null,"Mode"),o.a.createElement(E.a.Input,{placeholder:"Mode",name:"Mode",value:this.state.fmode,onChange:this.modechange,maxLength:"10"}))),"TH"==this.state.fsendto?o.a.createElement("div",null,o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:8},o.a.createElement(E.a.Input,{placeholder:"From",name:"fboardfrom",value:this.state.fboardfrom,onChange:this.boardfromchange,maxLength:"10",label:"Board Range"})),o.a.createElement(E.a.Field,{width:8},o.a.createElement(E.a.Input,{placeholder:"To",name:"fboardto",value:this.state.fboardto,onChange:this.boardtochange,maxLength:"10",style:{marginTop:"1.6em"}}))),o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:8},o.a.createElement(E.a.Input,{placeholder:"From",name:"fteachfrom",value:this.state.fteachfrom,onChange:this.teachfromchange,maxLength:"10",label:"Teacher Code Range"})),o.a.createElement(E.a.Field,{width:8},o.a.createElement(E.a.Input,{placeholder:"To",name:"fteachto",value:this.state.fteachto,onChange:this.teachtochange,maxLength:"10",style:{marginTop:"1.6em"}})))):null,o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:16},o.a.createElement(E.a.Input,{placeholder:"Title",name:"ftitle",value:this.state.ftitle,onChange:this.titlechange,maxLength:"50",label:"Notification Title"}))),o.a.createElement(E.a.Group,null,o.a.createElement(E.a.Field,{width:16},o.a.createElement(E.a.Input,{name:"fmsg",control:b.a,value:this.state.fmsg,onChange:this.msgchange,label:"Message",placeholder:"Message",rows:"6"}))),o.a.createElement(l.a,{color:"blue",content:"Submit",onClick:this.pushNotification})))))}}]),t}(a.Component),T=Object(L.b)(function(e){return{DegreeDetails:e.generateDegreeDetails,user:e.user,events:e.smsNotif.fevents,getcoll:e.getColl,getdeg:e.getdeg,degree:e.getdegfromdeg}},{showError:O.A,generateDegreeDetails:S.a,getEvents:x.g,getColleges:x.d,getDegrees:x.f,pushNotification:x.j,getNotifications:x.i,getDegfromDeggrp:x.e})(_),k=r(1338),A=r(274),N=Object(L.b)(function(e){return{user:e.user,univcode:e.univ.funivcode,notif:e.viewNotif}},{getNotifications:x.i})(function(e){Object(a.useEffect)(function(){e.getNotifications()},[]);var t=e.notif;return o.a.createElement(o.a.Fragment,null,o.a.createElement(k.a,{celled:!0,compact:!0,style:{padding:"0%"},unstackable:!0},o.a.createElement(k.a.Header,null,o.a.createElement(k.a.Row,{textAlign:"center"},o.a.createElement(k.a.HeaderCell,{width:"1"},"Sl. No."),o.a.createElement(k.a.HeaderCell,{width:"1"},"Date"),o.a.createElement(k.a.HeaderCell,{width:"1"},"Event Type"),o.a.createElement(k.a.HeaderCell,{width:"5"},"Title"),o.a.createElement(k.a.HeaderCell,{width:"5"},"Message"),o.a.createElement(k.a.HeaderCell,{width:"1"},"Total"),o.a.createElement(k.a.HeaderCell,{width:"1"},"Sent"),o.a.createElement(k.a.HeaderCell,{width:"1"},"Pending"),o.a.createElement(k.a.HeaderCell,{width:"1"},"Action"))),o.a.createElement(k.a.Body,null,t.map(function(t,r){return o.a.createElement(k.a.Row,{key:r},o.a.createElement(k.a.Cell,{textAlign:"center"},r+1),o.a.createElement(k.a.Cell,{textAlign:"center"},t.pushdate),o.a.createElement(k.a.Cell,{textAlign:"center"},t.fenttype),o.a.createElement(k.a.Cell,{textAlign:"center"},t.ftitle),o.a.createElement(k.a.Cell,null,t.fbody),o.a.createElement(k.a.Cell,{textAlign:"center"},t.ftotal),o.a.createElement(k.a.Cell,{textAlign:"center"},t.fsent),o.a.createElement(k.a.Cell,{textAlign:"center"},t.ffpend),o.a.createElement(k.a.Cell,null,t.ffpend>0&&"T"==t.curdate?o.a.createElement(l.a,{content:"Send",basic:!0,size:"small",style:{display:"flex"},color:"blue",icon:"send",onClick:function(){return function(t,r,n){var a=A.a+"/cronjob_sendnotif.php?funivcode="+t+"&fevent="+r+"&usertype="+n+"&fsentuser="+e.user.fuserid;window.open(a,"_blank").focus()}(t.funivcode,t.fenttype,t.fusertype)}}):null))}))))});function D(){var e=Object(a.useState)(0),t=Object(n.a)(e,2),r=t[0],h=t[1],p=Object(f.i)(),d=[{menuItem:"Push Notification Data",render:function(){return o.a.createElement(i.a.Pane,null,o.a.createElement(T,{changeTabIndex:h}))}},{menuItem:"View / Send Notification",render:function(){return o.a.createElement(i.a.Pane,null,o.a.createElement(N,null))}}];return o.a.createElement("div",null,o.a.createElement(u.a,{fluid:!0},o.a.createElement(u.a.Content,null,o.a.createElement(u.a.Header,{style:{display:"flex"}},o.a.createElement("h4",null,"Send Notification"),o.a.createElement("div",{className:"ml-auto"},o.a.createElement(l.a,{basic:!0,color:"black",icon:"times circle",content:"Cancel"}),o.a.createElement(c.a,{to:"/dashboard"},o.a.createElement(l.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),o.a.createElement(s.a,null),o.a.createElement(u.a.Description,{style:{overflowY:"auto",height:"".concat(p,"px")}},o.a.createElement(i.a,{menu:{attached:!0,tabular:!0,color:"blue",className:"wrapped"},activeIndex:r,panes:d,onTabChange:function(e,t){var r=t.activeIndex;return h(r)}})))))}r.d(t,"default",function(){return D})},302:function(e,t,r){},324:function(e,t,r){"use strict";r.d(t,"g",function(){return i}),r.d(t,"h",function(){return u}),r.d(t,"i",function(){return l}),r.d(t,"j",function(){return s}),r.d(t,"k",function(){return f}),r.d(t,"b",function(){return h}),r.d(t,"d",function(){return p}),r.d(t,"f",function(){return d}),r.d(t,"e",function(){return g}),r.d(t,"a",function(){return m}),r.d(t,"c",function(){return v});var n=r(68),a=r(271),o=r(267);function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new N(n||[]);return a(c,"_invoke",{value:_(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=f;var p="suspendedStart",d="suspendedYield",g="executing",m="completed",v={};function y(){}function E(){}function w(){}var b={};s(b,i,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(D([])));O&&O!==r&&n.call(O,i)&&(b=O);var S=w.prototype=y.prototype=Object.create(b);function L(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,c,i){var u=h(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,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=p;return function(o,c){if(a===g)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=T(i,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===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?m:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function T(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(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;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,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}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 A(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[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return E.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},L(j.prototype),s(j.prototype,u,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new j(f(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},L(S),s(S,l,"Generator"),s(S,i,function(){return this}),s(S,"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 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,v):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),v},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),v}},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;A(r)}return a}}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),v}},t}var i=function(e,t){return function(){var r=Object(n.a)(c().mark(function r(n,i){var u,l,s,f;return c().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=i(),n({type:"SET_LOADER"}),r.next=4,a.a.get("/app.php",{params:{a:"getEvents_new",univcode:u.univ.funivcode,fsendto:t,fevttype:e}});case 4:l=r.sent,n({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},n(Object(o.A)(s))):-1===l.data.error_code?(f={header:"Error",content:l.data.data.msg},n(Object(o.A)(f))):n({type:"GET_EVENTS",payload:l.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},u=function(){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,i,u,l;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"getSMSDet",univcode:n.univ.funivcode}});case 4:i=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof i.data?(u={header:"Error",content:"Something went wrong"},t(Object(o.A)(u))):-1===i.data.error_code?(l={header:"Error",content:i.data.data.msg},t(Object(o.A)(l))):t({type:"GET_MESSAGES",payload:i.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=function(){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,i,u,l;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"getNotificationDet",univcode:n.univ.funivcode}});case 4:i=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof i.data?(u={header:"Error",content:"Something went wrong"},t(Object(o.A)(u))):-1===i.data.error_code?(l={header:"Error",content:i.data.data.msg},t(Object(o.A)(l))):t({type:"GET_NOTIFICATIONS",payload:i.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,s,f;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("app.php?a=pushNotificationData&univcode="+i.univ.funivcode,{data:e});case 4:u=t.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.data.msg},r(m("fresevent",u.data.data.event)),r(Object(o.A)(f)));case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},f=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,s,f;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("app.php?a=pushSmsnew&univcode="+i.univ.funivcode,{data:i.smsNotif,fdeggrp:e.fdeggrp,fstudtype:e.fstudtype,fmodule:e.fmodule});case 4:u=t.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.data.msg},r(m("fresevent",u.data.data.event)),r(Object(o.A)(f)));case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},h=function(e,t,r){return function(){var e=Object(n.a)(c().mark(function e(n,i){var u,l,s,f,h;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=i(),n({type:"SET_LOADER"}),e.next=4,a.a.post("app.php?a=deleteSms&univcode="+u.univ.funivcode+"&fdeggrp="+u.user.fdeggrp,{fenttype:t,fusertype:r});case 4:l=e.sent,n({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},n(Object(o.A)(s))):-1===l.data.error_code?(f={header:"Error",content:l.data.data.msg},n(Object(o.A)(f))):(h={header:"Success",content:l.data.data.msg},n(Object(o.A)(h)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,s;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=getColleges&univcode="+i.univ.funivcode,{data:e});case 4:u=t.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_COLLEGES_Det",payload:u.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},d=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var o,i;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=getDegreesdetails&univcode="+o.univ.funivcode,{data:e});case 4:i=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof i.data||-1===i.data.error_code||r({type:"GET_DEGREES",payload:i.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},g=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var o,i;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=getDegfromDeggrp&univcode="+o.univ.funivcode,{data:e});case 4:i=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof i.data||-1===i.data.error_code||r({type:"GET_DEGREE_FROM_DEGGRP",payload:i.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},m=function(e,t){return{type:"CHANGE_SMS",payload:{name:e,value:t}}},v=function(e,t){return{type:"FILTER_MSG",payload:{name:e,value:t}}}},328:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(68),a=r(271),o=r(267);r(302);function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new N(n||[]);return a(c,"_invoke",{value:_(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=f;var p="suspendedStart",d="suspendedYield",g="executing",m="completed",v={};function y(){}function E(){}function w(){}var b={};s(b,i,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(D([])));O&&O!==r&&n.call(O,i)&&(b=O);var S=w.prototype=y.prototype=Object.create(b);function L(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,c,i){var u=h(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,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=p;return function(o,c){if(a===g)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=T(i,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===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?m:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function T(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(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;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,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}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 A(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[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return E.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},L(j.prototype),s(j.prototype,u,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new j(f(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},L(S),s(S,l,"Generator"),s(S,i,function(){return this}),s(S,"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 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,v):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),v},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),v}},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;A(r)}return a}}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),v}},t}var i=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,s,f;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),r({type:"SET_LOADER"}),u="","500"!=i.user.fcurtype&&"501"!=i.user.fcurtype||""!=i.user.fcollcode&&(u=i.user.fcollcode),t.next=6,a.a.get("/app.php",{params:{a:"generateDegreeDetails",univcode:i.user.fcuruniv,deggrp:e,college:u}});case 6:l=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},r(Object(o.A)(s))):-1===l.data.error_code?(f={header:"Error",content:l.data.data.msg},r(Object(o.A)(f))):r({type:"GENERATE_DEGREE_DETAILS",payload:l.data});case 9:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=62.561a0ba9.chunk.js.map