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 : 18.116.20.205


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/151.45c21079.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{1037:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),o=a(68),c=a(99),i=a(100),l=a(102),u=a(101),s=a(103),d=a(1),p=a.n(d),f=a(1139),m=a(1135),E=a(1106),h=a(272),w=a(317),y=a(1101),v=a(1137),b=a(858),O=a(483),g=a(104),j=a(266),D=a(270),N=a(271),x=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).componentDidMount=Object(o.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.getPostnotificationDetails();case 2:case"end":return e.stop()}},e)})),a.handleDel=function(){var e=Object(o.a)(r.a.mark(function e(t){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.postNotificationDelete(t.fpostno);case 2:return e.next=4,a.props.getPostnotificationDetails();case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),a}return Object(s.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=Object(D.i)(),a=this.props.notifList==[]?[]:this.props.notifList;return p.a.createElement(p.a.Fragment,null,p.a.createElement(f.a,{fluid:!0},p.a.createElement(f.a.Content,null,p.a.createElement(f.a.Header,{style:{display:"flex"}},p.a.createElement(m.a,{as:"h3"},"Host Notification"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(b.a,{to:{pathname:"/editNotification/ ",query:{fpostno:" "}}},p.a.createElement(E.a,{basic:!0,color:"green",icon:"add",onClick:this.handleAdd,content:"Add"})),p.a.createElement(b.a,{to:"/dashboard"},p.a.createElement(E.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(h.a,null),p.a.createElement(f.a.Description,{style:{overflowY:"auto",height:"".concat(t,"px"),width:"100%"}},p.a.createElement(w.a,{divided:"vertically",className:"mt-3 ml-3"},p.a.createElement(w.a.Row,{columns:1},p.a.createElement(w.a.Column,null,p.a.createElement(y.a,{celled:!0,compact:!0,style:{padding:"0%"}},p.a.createElement(y.a.Header,null,p.a.createElement(y.a.Row,{textAlign:"center"},p.a.createElement(y.a.HeaderCell,{width:"1"},"Sl. No."),p.a.createElement(y.a.HeaderCell,{width:"10"},"Label"),p.a.createElement(y.a.HeaderCell,{width:"1"},"File"),p.a.createElement(y.a.HeaderCell,{width:"1"},"From Date"),p.a.createElement(y.a.HeaderCell,{width:"1"},"To Date"),p.a.createElement(y.a.HeaderCell,{width:"1"},"Order"),p.a.createElement(y.a.HeaderCell,{width:"1"},"Action"))),p.a.createElement(y.a.Body,null,a.map(function(t,a){var n="".concat(N.a,"/upload/").concat(t.ffilepath);return p.a.createElement(y.a.Row,{key:a},p.a.createElement(y.a.Cell,{textAlign:"center"},a+1),p.a.createElement(y.a.Cell,null,t.flabel),p.a.createElement(y.a.Cell,null,""==t.ffilepath?null:p.a.createElement("a",{href:n,target:"blank"},"Link")),p.a.createElement(y.a.Cell,{textAlign:"center"},t.ffromdate),p.a.createElement(y.a.Cell,null,t.ftodate),p.a.createElement(y.a.Cell,null,t.forder),p.a.createElement(y.a.Cell,{style:{display:"flex"}},p.a.createElement(b.a,{to:{pathname:"/editNotification/".concat(t.fpostno),query:{fpostno:t.fpostno}}},p.a.createElement(E.a,{content:"edit",basic:!0,size:"small",style:{display:"flex"},color:"blue",icon:"edit"})),p.a.createElement(v.a,{trigger:p.a.createElement(E.a,{content:"Delete",basic:!0,style:{display:"flex"},size:"small",color:"blue",icon:"trash",onClick:function(){return e.handleDel(t)}}),content:"Are you sure to Delete?",inverted:!0})))}))))))))))}}]),t}(d.Component);t.default=Object(g.b)(function(e){return{notifList:e.postNotifList}},{getPostnotificationDetails:O.e,showError:j.w,postNotificationDelete:O.g})(x)},483:function(e,t,a){"use strict";a.d(t,"e",function(){return l}),a.d(t,"d",function(){return u}),a.d(t,"b",function(){return s}),a.d(t,"c",function(){return d}),a.d(t,"h",function(){return p}),a.d(t,"f",function(){return f}),a.d(t,"a",function(){return m}),a.d(t,"g",function(){return E});var n=a(41),r=a.n(n),o=a(68),c=a(269),i=a(266),l=function(){return function(){var e=Object(o.a)(r.a.mark(function e(t,a){var n,o,l,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:"getPostnotificationDetails",univcode:n.univ.funivcode}});case 4:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?(l={header:"Error",content:"Something went wrong"},t(Object(i.w)(l))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},t(Object(i.w)(u))):t({type:"GET_NOTIFICATION_LIST",payload:o.data});case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(a,n){var o,l,u,s;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),a({type:"SET_LOADER"}),t.next=4,c.a.get("/app.php",{params:{a:"getPostnotificationEdit",fpostno:e,univcode:o.univ.funivcode}});case 4:l=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},a(Object(i.w)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},a(Object(i.w)(s))):a({type:"EDIT_NOTIFICATION",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},s=function(e,t){return{type:"EDIT_NOTIF_DET",payload:{name:e,value:t}}},d=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(a,n){var o,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n(),a({type:"SET_LOADER"}),(o=new FormData).set("file",e,e.name),t.next=6,c.a.post("upload_file.php",o,{headers:{"Content-type":"multipart/form-data"}});case 6:i=t.sent,a({type:"UNSET_LOADER"}),a({type:"SET_FILENAME",payload:i.data});case 9:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},p=function(e,t){return function(){var a=Object(o.a)(r.a.mark(function a(n,o){var l,u,s,d,p;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:"SET_LOADER"}),l=o(),a.next=4,c.a.post("app.php?a=savePostNotification&univcode="+l.univ.funivcode+"&type=edit&samefile="+e,{data:l.editNotification,descpn:t});case 4:u=a.sent,n({type:"UNSET_LOADER"}),"object"!==typeof u.data?(s={header:"Error",content:"Something went wrong"},n(Object(i.w)(s))):-1===u.data.error_code?(d={header:"Error",content:u.data.data.msg},n(Object(i.w)(d))):(p={header:"Success",content:u.data.data.msg},n(Object(i.w)(p)));case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},f=function(){return{type:"NEW_NOTIF_DET"}},m=function(e,t){return function(){var a=Object(o.a)(r.a.mark(function a(n,o){var l,u,s,d,p;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:"SET_LOADER"}),l=o(),a.next=4,c.a.post("app.php?a=savePostNotification&univcode="+l.univ.funivcode+"&type=add&samefile="+e,{data:l.editNotification,descpn:t});case 4:u=a.sent,n({type:"UNSET_LOADER"}),"object"!==typeof u.data?(s={header:"Error",content:"Something went wrongr"},n(Object(i.w)(s))):-1===u.data.error_code?(d={header:"Error",content:u.data.data.msg},n(Object(i.w)(d))):(p={header:"Success",content:u.data.data.msg},n(Object(i.w)(p)));case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},E=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(a,n){var o,l,u,s,d;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:"SET_LOADER"}),o=n(),t.next=4,c.a.get("app.php?a=postnotificationDelete&univcode="+o.univ.funivcode+"&postno="+e);case 4:l=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},a(Object(i.w)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},a(Object(i.w)(s))):(d={header:"Success",content:l.data.data.msg},a(Object(i.w)(d)));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=151.45c21079.chunk.js.map