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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/118.53cf88c7.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{1104:function(e,t,a){"use strict";a.r(t);var n=a(99),r=a(100),l=a(102),c=a(101),o=a(103),s=a(1),u=a.n(s),i=a(858),d=a(1175),p=a(1139),f=a(1106),m=a(272),h=a(104),g=a(266),E=a(321),v=a(270),b=a(41),w=a.n(b),y=a(3),O=a(68),S=a(1098),x=a(1100),j=a(1002),C=a(271),T=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={fdeggrp:"",fstudtype:"",fmodule:""},a.handleChange=function(){var e=Object(O.a)(w.a.mark(function e(t,n){return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState(Object(y.a)({},n.name,n.value)),e.next=3,a.props.changesms(n.name,n.value);case 3:"fsendto"===n.name&&a.props.getEvents("SMS",a.props.smsstate.fsendto),"fevent"===n.name&&""!==n.value&&a.props.fliterMsg(n.name,n.value);case 5:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.studentChange=function(){var e=Object(O.a)(w.a.mark(function e(t,n){return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({fstudtype:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.moduleChange=function(){var e=Object(O.a)(w.a.mark(function e(t,n){return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({fmodule:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.changeDeggrp=function(e,t){var n=a.props.deggrp.filter(function(e,a){return e.fdeggrp===t.value})[0];a.setState({fdeggrp:n.fdeggrp})},a.pushSms=Object(O.a)(w.a.mark(function e(){var t,n,r;return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=a.state.fdeggrp){e.next=4;break}return t={header:"Error",content:"Select Degree Group"},a.props.showError(t),e.abrupt("return");case 4:if(""!=a.props.smsstate.fsendto){e.next=8;break}return n={header:"Error",content:"Select user type"},a.props.showError(n),e.abrupt("return");case 8:if(""!=a.props.smsstate.fmsg){e.next=12;break}return r={header:"Error",content:"Message cannot be empty"},a.props.showError(r),e.abrupt("return");case 12:return e.next=14,a.props.pushSms(a.state);case 14:return e.next=16,a.props.getMessages();case 16:a.props.changeTabIndex({},{activeIndex:2});case 17:case"end":return e.stop()}},e)})),a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=Object(O.a)(w.a.mark(function e(){return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.fetchDegGrp();case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state,t=e.fstudtype,a=e.fmodule,n=e.fdeggrp,r=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}}),l=(Object(v.i)(),this.props.smsstate);return console.log(l.ffeepaid),u.a.createElement("div",null,u.a.createElement(S.a,null,u.a.createElement("div",{className:"row clearfix",style:{marginRight:"0px",marginLeft:"-5px"}},u.a.createElement("div",{className:"col-md-8"},u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:16},u.a.createElement("label",null,"Degree Group"),u.a.createElement(x.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:n,onChange:this.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:r,selectOnBlur:!1}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:16},u.a.createElement("label",null,"User type"),u.a.createElement(x.a,{placeholder:"User type",search:!0,selection:!0,name:"fsendto",value:l.fsendto,options:[{code:"CL",label:"College"},{code:"CT",label:"Centre"},{code:"ST",label:"Student"},{code:"TH",label:"Teacher"}].map(function(e,t){return{key:t,value:e.code,text:e.label}}),onChange:this.handleChange}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:16},u.a.createElement("label",null,"Message Template"),u.a.createElement(x.a,{placeholder:"Message Template",search:!0,selection:!0,name:"fevent",value:l.fevent,options:l.fevents.map(function(e,t){return{key:t,value:e.fevent,text:e.ftitle}}),onChange:this.handleChange}))),"ST"==l.fsendto?u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:16},u.a.createElement("label",null,"Active Students?"),u.a.createElement(x.a,{placeholder:"Active Students",selection:!0,name:"ffeepaid",value:l.ffeepaid,options:[{code:"ALL",label:"All"},{code:"PEND",label:"Inactive (Fee not paid)"},{code:"PAID",label:"Active (Fee paid)"}].map(function(e,t){return{key:t,value:e.code,text:e.label}}),onChange:this.handleChange}))):null,u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"From",name:"fcollfrom",value:l.fcollfrom,onChange:this.handleChange,maxLength:"4",label:"College Range"})),u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"To",name:"fcollto",value:l.fcollto,onChange:this.handleChange,maxLength:"4",style:{marginTop:"1.6em"}}))),"ST"==l.fsendto?u.a.createElement("div",null,u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"From",name:"fdegfrom",value:l.fdegfrom,onChange:this.handleChange,maxLength:"10",label:"Degree Range"})),u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"To",name:"fdegto",value:l.fdegto,onChange:this.handleChange,maxLength:"10",style:{marginTop:"1.6em"}}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"From",name:"fregfrom",value:l.fregfrom,onChange:this.handleChange,maxLength:"10",label:"Register No. Range"})),u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"To",name:"fregto",value:l.fregto,onChange:this.handleChange,maxLength:"10",style:{marginTop:"1.6em"}}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:8},u.a.createElement("label",null,"Student Type"),u.a.createElement(x.a,{size:"mini",fluid:!0,search:!0,selection:!0,name:"fstudtype",value:t,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.studentChange,label:"Student Type"})),u.a.createElement(S.a.Field,{width:8},u.a.createElement("label",null,"Module"),u.a.createElement(x.a,{size:"mini",fluid:!0,search:!0,selection:!0,name:"fmodule",value:a,placeholder:"Select Module",openOnFocus:!1,options:[{value:"examapp",text:"Exam Application"},{value:"student",text:"Student"},{value:"result",text:"Result (RV/ PC PHOTOCOPY)"},{value:"Marks Card Dispatch",text:"Marks Card Dispatch"},{value:"student_register_no",text:"Student Reg. No."}],selectOnBlur:!1,searchInput:{autoFocus:!0},onChange:this.moduleChange,label:"Module"})))):null,"TH"==l.fsendto?u.a.createElement("div",null,u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"From",name:"fboardfrom",value:l.fboardfrom,onChange:this.handleChange,maxLength:"10",label:"Board Range"})),u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"To",name:"fboardto",value:l.fboardto,onChange:this.handleChange,maxLength:"10",style:{marginTop:"1.6em"}}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"From",name:"fteachfrom",value:l.fteachfrom,onChange:this.handleChange,maxLength:"10",label:"Teacher Code Range"})),u.a.createElement(S.a.Field,{width:8},u.a.createElement(S.a.Input,{placeholder:"To",name:"fteachto",value:l.fteachto,onChange:this.handleChange,maxLength:"10",style:{marginTop:"1.6em"}})))):null,u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:16},u.a.createElement(S.a.Input,{name:"fmsg",control:j.a,value:l.ftemplate,onChange:this.handleChange,label:"Template",placeholder:"Template",rows:"6",disabled:!0}))),u.a.createElement(S.a.Group,null,u.a.createElement(S.a.Field,{width:16},u.a.createElement(S.a.Input,{name:"fmsg",control:j.a,value:l.fmsg,onChange:this.handleChange,label:"Message",placeholder:"Message",rows:"6"}),l.fmsg.length,"/160 Characters ",u.a.createElement("br",null),"0",l.fmsg.length>0?l.fmsg.length>160?Math.ceil(l.fmsg.length/153):1:0," ","Message")),u.a.createElement(f.a,{color:"blue",content:"Submit",onClick:this.pushSms})))))}}]),t}(s.Component),N=Object(h.b)(function(e){return{smsstate:e.smsNotif,deggrp:e.deggrp,univ:e.univ}},{showError:g.w,changesms:E.a,getEvents:E.g,fliterMsg:E.c,pushSms:E.k,getMessages:E.h,fetchDegGrp:g.j})(T),D=a(1101),k=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={degSemList:[],open:!1,size:"mini"},a.componentDidMount=Object(O.a)(w.a.mark(function e(){return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.getMessages();case 2:case"end":return e.stop()}},e)})),a.sendsms=function(e,t,n){var r=C.a+"/sendsmsroot.php?funivcode="+e+"&fevent="+t+"&usertype="+n+"&fsentuser="+a.props.user.fuserid;window.open(r,"_blank").focus()},a.deletesms=function(){var e=Object(O.a)(w.a.mark(function e(t,n,r){return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.deleteSms(t,n,r);case 2:a.props.getMessages();case 3:case"end":return e.stop()}},e)}));return function(t,a,n){return e.apply(this,arguments)}}(),a.show=function(e){return function(){return a.setState({size:e,open:!0})}},a.close=function(){return a.setState({open:!1})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this,t=this.props.viewsms;return u.a.createElement(u.a.Fragment,null,u.a.createElement(D.a,{celled:!0,compact:!0,style:{padding:"0%"},unstackable:!0},u.a.createElement(D.a.Header,null,u.a.createElement(D.a.Row,{textAlign:"center"},u.a.createElement(D.a.HeaderCell,{width:"1"},"Sl. No."),u.a.createElement(D.a.HeaderCell,{width:"1"},"Date"),u.a.createElement(D.a.HeaderCell,{width:"1"},"Event Type"),u.a.createElement(D.a.HeaderCell,{width:"5"},"Message"),u.a.createElement(D.a.HeaderCell,{width:"1"},"Total"),u.a.createElement(D.a.HeaderCell,{width:"1"},"Sent"),u.a.createElement(D.a.HeaderCell,{width:"1"},"Pending"),u.a.createElement(D.a.HeaderCell,{width:"1"},"Action"))),u.a.createElement(D.a.Body,null,t.map(function(t,a){return u.a.createElement(D.a.Row,{key:a},u.a.createElement(D.a.Cell,{textAlign:"center"},a+1),u.a.createElement(D.a.Cell,{textAlign:"center"},t.pushdate),u.a.createElement(D.a.Cell,{textAlign:"center"},t.fenttype),u.a.createElement(D.a.Cell,null,t.fmessage),u.a.createElement(D.a.Cell,{textAlign:"center"},t.ftotal),u.a.createElement(D.a.Cell,{textAlign:"center"},t.fsent),u.a.createElement(D.a.Cell,{textAlign:"center"},t.ffpend),u.a.createElement(D.a.Cell,null,parseInt(t.ffpend)>0&&"T"==t.curdate?u.a.createElement("div",null,u.a.createElement(f.a,{content:"Send",basic:!0,size:"small",style:{display:"flex"},color:"blue",icon:"send",onClick:function(){return e.sendsms(t.funivcode,t.fenttype,t.fusertype)}}),u.a.createElement(f.a,{content:"Delete",basic:!0,size:"small",style:{display:"flex",marginTop:"10px"},color:"red",icon:"trash",onClick:function(){return e.deletesms(t.funivcode,t.fenttype,t.fusertype)}})):null))}))))}}]),t}(s.Component),A=Object(h.b)(function(e){return{user:e.user,univcode:e.univ.funivcode,viewsms:e.viewSMS}},{getMessages:E.h,deleteSms:E.b})(k),_=a(337),R=a(1135),L=a(645),F=a(424),I=a(269),M=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={file:null,size:null,filenm:null,fileinfo:!1},a.fileInputRef=u.a.createRef(),a.handleCancel=function(){a.setState({file:null,size:null,filenm:null,fileinfo:!1}),a.fileInputRef.current.value=""},a.fileChange=function(e){if(void 0!==e.target.files[0]){var t=e.target.files[0].size,n=e.target.files[0].name.split(".").pop();if("xlsx"===(n=n.toLowerCase()))if(t>=2e6){a.props.showError({header:"Error",content:"Upload files with size less then 2MB!"})}else a.props.uploadSmsFile(e.target.files[0]),a.setState({file:e.target.files[0],size:Object(v.a)(e.target.files[0].size),filenm:e.target.files[0].name});else{a.props.showError({header:"Error",content:"XLSX files are allowed!"})}}},a.handleChange=function(e,t){a.setState(Object(y.a)({},t.name,t.value))},a.upload=Object(O.a)(w.a.mark(function e(){var t;return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==a.state.file){e.next=4;break}return t={header:"Error",content:"Add File to upload"},a.props.showError(t),e.abrupt("return");case 4:return e.next=6,a.props.uploadSmsData();case 6:a.handleCancel();case 7:case"end":return e.stop()}},e)})),a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this,t=Object(v.i)();return u.a.createElement("div",null,u.a.createElement("div",{className:"row",style:{flexDirection:"column",alignContent:"flex-end",margin:"0.5em",marginRight:"0em"}},u.a.createElement("div",{className:"pull-right"},null!=this.state.file?u.a.createElement(f.a,{primary:!0,onClick:this.upload},"Upload"):null)),u.a.createElement("div",{className:"row"},u.a.createElement("div",{className:"col-md-12"},u.a.createElement(_.a,{placeholder:!0,style:{height:"".concat(.8*t,"px"),overflowY:"auto"}},u.a.createElement(R.a,{icon:!0},u.a.createElement(L.a,{name:"file excel outline"}),"Upload the Excel file here. With Columns - | Mobile No. | Message |",u.a.createElement("br",null),"Note: File should be in xlsx format and less than 2 MB"),u.a.createElement(S.a,{onSubmit:this.onFormSubmit},u.a.createElement("input",{ref:this.fileInputRef,type:"file",hidden:!0,onChange:this.fileChange}),null==this.state.file?u.a.createElement(f.a,{primary:!0,onClick:function(){return e.fileInputRef.current.click()}},"Add Document"):null),u.a.createElement(F.a,{label:this.state.filenm,value:this.state.size})))))}}]),t}(s.Component),G=Object(h.b)(function(e){return{feeheads:e.feeheads}},{showError:g.w,uploadSmsFile:function(e){return function(){var t=Object(O.a)(w.a.mark(function t(a,n){var r,l;return w.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n(),a({type:"SET_LOADER"}),(r=new FormData).set("file",e,e.name),t.next=6,I.a.post("upload_file.php",r,{headers:{"Content-type":"multipart/form-data"}});case 6:l=t.sent,a({type:"UNSET_LOADER"}),a({type:"SET_QPNAME",payload:l.data});case 9:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},uploadSmsData:function(){return function(){var e=Object(O.a)(w.a.mark(function e(t,a){var n,r,l,c,o;return w.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),t({type:"SET_LOADER"}),e.next=4,I.a.get("/app.php",{params:{a:"uploadSMSData",gfilename:n.upload.fqpfilenm,univcode:n.univ.funivcode}});case 4:r=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof r.data?(l={header:"Error",content:"Something went wrong"},t(Object(g.w)(l))):0===r.data.error_code?(c={header:"Success",content:r.data.data.msg},t(Object(g.w)(c))):(o={header:"Error",content:r.data.data.msg},t(Object(g.w)(o)));case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()}})(M),z=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={activeIndex:0},a.changeTabIndex=function(e,t){var n=t.activeIndex;a.setState({activeIndex:n})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this,t=Object(v.i)(),a=[{menuItem:"Push Data SMS",render:function(){return u.a.createElement(d.a.Pane,null,u.a.createElement(N,{changeTabIndex:e.changeTabIndex}))}},{menuItem:"Upload Excel",render:function(){return u.a.createElement(d.a.Pane,null,u.a.createElement(G,null))}},{menuItem:"View / Send SMS",render:function(){return u.a.createElement(d.a.Pane,null,u.a.createElement(A,null))}}];return u.a.createElement("div",null,u.a.createElement(p.a,{fluid:!0},u.a.createElement(p.a.Content,null,u.a.createElement(p.a.Header,{style:{display:"flex"}},u.a.createElement("h4",null,"Send SMS"),u.a.createElement("div",{className:"ml-auto"},u.a.createElement(f.a,{basic:!0,onClick:this.handleCancel,color:"black",icon:"times circle",content:"Cancel"}),u.a.createElement(i.a,{to:"/dashboard"},u.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),u.a.createElement(m.a,null),u.a.createElement(p.a.Description,{style:{overflowY:"auto",height:"".concat(t,"px")}},u.a.createElement(d.a,{menu:{attached:!0,tabular:!0,color:"blue",className:"wrapped"},activeIndex:this.state.activeIndex,panes:a,onTabChange:this.changeTabIndex})))))}}]),t}(s.Component);t.default=Object(h.b)(function(e){return{smsstate:e.smsNotif,deggrp:e.deggrp,univ:e.univ}},{showError:g.w,changesms:E.a,getEvents:E.g,fliterMsg:E.c,pushSms:E.k})(z)},321:function(e,t,a){"use strict";a.d(t,"g",function(){return s}),a.d(t,"h",function(){return u}),a.d(t,"i",function(){return i}),a.d(t,"j",function(){return d}),a.d(t,"k",function(){return p}),a.d(t,"b",function(){return f}),a.d(t,"d",function(){return m}),a.d(t,"f",function(){return h}),a.d(t,"e",function(){return g}),a.d(t,"a",function(){return E}),a.d(t,"c",function(){return v});var n=a(41),r=a.n(n),l=a(68),c=a(269),o=a(266),s=function(e,t){return function(){var a=Object(l.a)(r.a.mark(function a(n,l){var s,u,i,d;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s=l(),n({type:"SET_LOADER"}),a.next=4,c.a.get("/app.php",{params:{a:"getEvents_new",univcode:s.univ.funivcode,fsendto:t,fevttype:e}});case 4:u=a.sent,n({type:"UNSET_LOADER"}),console.log(u),"object"!==typeof u.data?(i={header:"Error",content:"Something went wrong"},n(Object(o.w)(i))):-1===u.data.error_code?(d={header:"Error",content:u.data.data.msg},n(Object(o.w)(d))):n({type:"GET_EVENTS",payload:u.data});case 8:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},u=function(){return function(){var e=Object(l.a)(r.a.mark(function e(t,a){var n,l,s,u;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),t({type:"SET_LOADER"}),e.next=4,c.a.get("/app.php",{params:{a:"getSMSDet",univcode:n.univ.funivcode}});case 4:l=e.sent,t({type:"UNSET_LOADER"}),console.log(l),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},t(Object(o.w)(s))):-1===l.data.error_code?(u={header:"Error",content:l.data.data.msg},t(Object(o.w)(u))):t({type:"GET_MESSAGES",payload:l.data});case 8:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},i=function(){return function(){var e=Object(l.a)(r.a.mark(function e(t,a){var n,l,s,u;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),t({type:"SET_LOADER"}),e.next=4,c.a.get("/app.php",{params:{a:"getNotificationDet",univcode:n.univ.funivcode}});case 4:l=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},t(Object(o.w)(s))):-1===l.data.error_code?(u={header:"Error",content:l.data.data.msg},t(Object(o.w)(u))):t({type:"GET_NOTIFICATIONS",payload:l.data});case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},d=function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var l,s,u,i,d;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),a({type:"SET_LOADER"}),t.next=4,c.a.post("app.php?a=pushNotificationData&univcode="+l.univ.funivcode,{data:e});case 4:s=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},a(Object(o.w)(u))):-1===s.data.error_code?(i={header:"Error",content:s.data.data.msg},a(Object(o.w)(i))):(d={header:"Success",content:s.data.data.msg},a(E("fresevent",s.data.data.event)),a(Object(o.w)(d)));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var l,s,u,i,d;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),a({type:"SET_LOADER"}),t.next=4,c.a.post("app.php?a=pushSmsnew&univcode="+l.univ.funivcode,{data:l.smsNotif,fdeggrp:e.fdeggrp,fstudtype:e.fstudtype,fmodule:e.fmodule});case 4:s=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},a(Object(o.w)(u))):-1===s.data.error_code?(i={header:"Error",content:s.data.data.msg},a(Object(o.w)(i))):(d={header:"Success",content:s.data.data.msg},a(E("fresevent",s.data.data.event)),a(Object(o.w)(d)));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},f=function(e,t,a){return function(){var e=Object(l.a)(r.a.mark(function e(n,l){var s,u,i,d,p;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=l(),n({type:"SET_LOADER"}),e.next=4,c.a.post("app.php?a=deleteSms&univcode="+s.univ.funivcode+"&fdeggrp="+s.user.fdeggrp,{fenttype:t,fusertype:a});case 4:u=e.sent,n({type:"UNSET_LOADER"}),"object"!==typeof u.data?(i={header:"Error",content:"Something went wrong"},n(Object(o.w)(i))):-1===u.data.error_code?(d={header:"Error",content:u.data.data.msg},n(Object(o.w)(d))):(p={header:"Success",content:u.data.data.msg},n(Object(o.w)(p)));case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},m=function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var l,s,u,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),a({type:"SET_LOADER"}),t.next=4,c.a.post("/app.php?a=getColleges&univcode="+l.univ.funivcode,{data:e});case 4:s=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},a(Object(o.w)(u))):-1===s.data.error_code?(i={header:"Error",content:s.data.data.msg},a(Object(o.w)(i))):a({type:"GET_COLLEGES",payload:s.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},h=function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var l,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),a({type:"SET_LOADER"}),t.next=4,c.a.post("/app.php?a=getDegreesdetails&univcode="+l.univ.funivcode,{data:e});case 4:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data||-1===o.data.error_code||a({type:"GET_DEGREES",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},g=function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var l,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),a({type:"SET_LOADER"}),t.next=4,c.a.post("/app.php?a=getDegfromDeggrp&univcode="+l.univ.funivcode,{data:e});case 4:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data||-1===o.data.error_code||a({type:"GET_DEGREE_FROM_DEGGRP",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},E=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}}}},424:function(e,t,a){"use strict";var n=a(268),r=a.n(n),l=(a(275),a(265)),c=a.n(l),o=a(1),s=a.n(o),u=a(333),i=a(551),d=a(549),p=a(267),f=a(554),m=a(283),h=a.n(m);function g(e){var t=e.children,a=e.className,n=e.color,l=e.content,o=e.horizontal,f=e.inverted,m=e.items,E=e.size,v=e.widths,b=c()("ui",n,E,Object(u.a)(o,"horizontal"),Object(u.a)(f,"inverted"),Object(u.g)(v),"statistics",a),w=Object(i.a)(g,e),y=Object(d.a)(g,e);return p.a.isNil(t)?p.a.isNil(l)?s.a.createElement(y,r()({},w,{className:b}),h()(m,function(e){return S.create(e)})):s.a.createElement(y,r()({},w,{className:b}),l):s.a.createElement(y,r()({},w,{className:b}),t)}g.handledProps=["as","children","className","color","content","horizontal","inverted","items","size","widths"],g.propTypes={};var E=g;function v(e){var t=e.children,a=e.className,n=e.content,l=c()("label",a),o=Object(i.a)(v,e),u=Object(d.a)(v,e);return s.a.createElement(u,r()({},o,{className:l}),p.a.isNil(t)?n:t)}v.handledProps=["as","children","className","content"],v.propTypes={},v.create=Object(f.e)(v,function(e){return{content:e}});var b=v;function w(e){var t=e.children,a=e.className,n=e.content,l=e.text,o=c()(Object(u.a)(l,"text"),"value",a),f=Object(i.a)(w,e),m=Object(d.a)(w,e);return s.a.createElement(m,r()({},f,{className:o}),p.a.isNil(t)?n:t)}w.handledProps=["as","children","className","content","text"],w.propTypes={},w.create=Object(f.e)(w,function(e){return{content:e}});var y=w;function O(e){var t=e.children,a=e.className,n=e.color,l=e.content,o=e.floated,f=e.horizontal,m=e.inverted,h=e.label,g=e.size,E=e.text,v=e.value,w=c()("ui",n,g,Object(u.e)(o,"floated"),Object(u.a)(f,"horizontal"),Object(u.a)(m,"inverted"),"statistic",a),S=Object(i.a)(O,e),x=Object(d.a)(O,e);return p.a.isNil(t)?p.a.isNil(l)?s.a.createElement(x,r()({},S,{className:w}),y.create(v,{defaultProps:{text:E},autoGenerateKey:!1}),b.create(h,{autoGenerateKey:!1})):s.a.createElement(x,r()({},S,{className:w}),l):s.a.createElement(x,r()({},S,{className:w}),t)}O.handledProps=["as","children","className","color","content","floated","horizontal","inverted","label","size","text","value"],O.propTypes={},O.Group=E,O.Label=b,O.Value=y,O.create=Object(f.e)(O,function(e){return{content:e}});var S=t.a=O}}]);
//# sourceMappingURL=118.53cf88c7.chunk.js.map