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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/75.75a9b8e5.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[75],{1124:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),c=a(68),l=a(99),s=a(100),o=a(102),i=a(101),u=a(103),d=a(1),p=a.n(d),m=a(1139),f=a(1135),h=a(424),b=a(1101),v=a(309),g=a(858),E=a(104),O=a(269),j=a(266),N=a(270),y=(a(970),a(271)),w=function(e){function t(){return Object(l.a)(this,t),Object(o.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.getDashBoardDet();case 2:this.props.getNotifications();case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(e){console.log(this.props.user.funivcode,e.user.funivcode),this.props.user.fcuruniv!==e.user.fcuruniv&&(this.props.getDashBoardDet(),this.props.getNotifications())}},{key:"render",value:function(){return this.renderDashboard()}},{key:"renderPgetDashboard",value:function(){var e=this.props.dashboard.pget[0],t=e.fregcnt,a=(e.fappcnt,e.finalsubcnt),n=e.fpaidcnt,r=this.props.dashboard.subpget,c=0;return p.a.createElement("div",null,p.a.createElement(m.a,{fluid:!0},p.a.createElement(f.a,{as:"h2",textAlign:"center",style:{marginTop:"1em"}},"Student Counts"),p.a.createElement(h.a.Group,{widths:3},p.a.createElement(h.a,null,p.a.createElement(h.a.Value,null,t),p.a.createElement(h.a.Label,null,"Registered Student")),p.a.createElement(h.a,null,p.a.createElement(h.a.Value,null,a),p.a.createElement(h.a.Label,null,"Applied Sudent Count")),p.a.createElement(h.a,null,p.a.createElement(h.a.Value,null,n),p.a.createElement(h.a.Label,null,"Paid Student Count"))),p.a.createElement(b.a,{celled:!0,padded:!0,selectable:!0},p.a.createElement(b.a.Header,null,p.a.createElement(b.a.Row,null,p.a.createElement(b.a.HeaderCell,{colSpan:"6"},"Degree Wise Student Count")),p.a.createElement(b.a.Row,null,p.a.createElement(b.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),p.a.createElement(b.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Degree"),p.a.createElement(b.a.HeaderCell,{textAlign:"center"},"Description"),p.a.createElement(b.a.HeaderCell,{style:{width:"10%"},textAlign:"center"},"Student Count"))),p.a.createElement(b.a.Body,null,r.map(function(e,t){return c+=parseInt(e.studcount),p.a.createElement(b.a.Row,{key:t},p.a.createElement(b.a.Cell,{textAlign:"center"},t+1),p.a.createElement(b.a.Cell,{textAlign:"center"},e.fdegree1),p.a.createElement(b.a.Cell,null,e.fdescpn),p.a.createElement(b.a.Cell,{textAlign:"center"},e.studcount))}),p.a.createElement(b.a.Row,{key:100},p.a.createElement(b.a.Cell,{colSpan:"3",textAlign:"center"},p.a.createElement("b",null,"Total")),p.a.createElement(b.a.Cell,{textAlign:"center"},c))))))}},{key:"renderDashboard",value:function(){this.props.dashboard.studinfo;var e=this.props.dashboard.msgs;console.log(e);var t=this.props.notifList,a=this.props.user.fname,n=Object(N.i)();console.log("LIST",t);y.a;var r=e.filter(function(e){return 0==e.college_code})[0],c=e.filter(function(e){return 1==e.college_code})[0],l=void 0==c?"<div></div>":c.message,s=void 0==r?"<div></div>":r.message;return p.a.createElement("div",null,p.a.createElement("div",{className:"ui grid"},p.a.createElement("div",{className:"eleven wide column",style:{paddingRight:"0px"}},p.a.createElement(m.a,{fluid:!0},p.a.createElement(m.a.Content,null,p.a.createElement(m.a.Header,null,"Welcome ",a,", to Uniclare"),p.a.createElement("br",null),p.a.createElement(m.a.Description,{style:{height:"".concat(n+18,"px"),overflowY:"auto"}},p.a.createElement(v.a,{floating:!0,info:!0},p.a.createElement(v.a.Header,null," Group Messaging"),p.a.createElement("p",null,"Checkout our new functionality Group Messaging click"," ",p.a.createElement(g.a,{to:"/utils/message-board"},"Here"))),p.a.createElement("div",{dangerouslySetInnerHTML:{__html:l}}))))),p.a.createElement("div",{className:"five wide column"},p.a.createElement(m.a,{fluid:!0},p.a.createElement(m.a.Content,null,p.a.createElement(m.a.Header,null,"Message Board"),p.a.createElement("br",null),p.a.createElement(m.a.Description,{style:{height:"".concat(n+18,"px"),overflowY:"auto"}},p.a.createElement("div",{dangerouslySetInnerHTML:{__html:s}})))))))}}]),t}(d.Component);t.default=Object(E.b)(function(e){return{user:e.user,dashboard:e.dashboard,notifList:e.dashboardNotifList,allNotifications:e.dashboard.notification}},{getDashBoardDet:function(){return function(){var e=Object(c.a)(r.a.mark(function e(t,a){var n,c;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),t({type:"SET_LOADER"}),e.next=4,O.a.get("/app.php",{params:{a:"getDashboardInfo",univcode:n.univ.funivcode,user:n.user}});case 4:c=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof c.data||(-1===c.data.error_code?c.data.data.msg:t({type:"GET_DASHBOARD",payload:c.data}));case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},getNotifications:function(e){return function(){var e=Object(c.a)(r.a.mark(function e(t,a){var n,c,l;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),console.log(n),e.next=4,O.a.get("/app.php",{params:{a:"getNotificationList",univcode:n.univ.funivcode,fcurType:n.user.fcurtype,fdeggrp:n.user.fdeggrp}});case 4:c=e.sent,console.log("response list",c),"object"!==typeof c.data||(-1===c.data.error_code?c.data.data.msg:0===c.data.error_code?(l={header:"Success",content:c.data.data.msg},t(Object(j.w)(l))):t({type:"NOTIF_LIST",payload:c.data}));case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()}})(w)},309:function(e,t,a){"use strict";var n=a(268),r=a.n(n),c=a(277),l=a.n(c),s=a(279),o=a.n(s),i=a(280),u=a.n(i),d=a(278),p=a.n(d),m=a(281),f=a.n(m),h=a(282),b=a.n(h),v=a(276),g=a.n(v),E=a(289),O=a.n(E),j=(a(275),a(265)),N=a.n(j),y=a(1),w=a.n(y),D=a(333),x=a(551),C=a(549),A=a(267),L=a(554),T=a(645);function k(e){var t=e.children,a=e.className,n=e.content,c=N()("content",a),l=Object(x.a)(k,e),s=Object(C.a)(k,e);return w.a.createElement(s,r()({},l,{className:c}),A.a.isNil(t)?n:t)}k.handledProps=["as","children","className","content"],k.propTypes={};var S=k;function _(e){var t=e.children,a=e.className,n=e.content,c=N()("header",a),l=Object(x.a)(_,e),s=Object(C.a)(_,e);return w.a.createElement(s,r()({},l,{className:c}),A.a.isNil(t)?n:t)}_.handledProps=["as","children","className","content"],_.propTypes={},_.create=Object(L.e)(_,function(e){return{content:e}});var H=_,P=a(283),z=a.n(P);function G(e){var t=e.children,a=e.className,n=e.content,c=N()("content",a),l=Object(x.a)(G,e),s=Object(C.a)(G,e);return w.a.createElement(s,r()({},l,{className:c}),A.a.isNil(t)?n:t)}G.handledProps=["as","children","className","content"],G.propTypes={},G.defaultProps={as:"li"},G.create=Object(L.e)(G,function(e){return{content:e}});var I=G;function R(e){var t=e.children,a=e.className,n=e.items,c=N()("list",a),l=Object(x.a)(R,e),s=Object(C.a)(R,e);return w.a.createElement(s,r()({},l,{className:c}),A.a.isNil(t)?z()(n,I.create):t)}R.handledProps=["as","children","className","items"],R.propTypes={},R.defaultProps={as:"ul"},R.create=Object(L.e)(R,function(e){return{items:e}});var M=R;a.d(t,"a",function(){return B});var B=function(e){function t(){var e,a;l()(this,t);for(var n=arguments.length,r=new Array(n),c=0;c<n;c++)r[c]=arguments[c];return a=u()(this,(e=p()(t)).call.apply(e,[this].concat(r))),g()(b()(b()(a)),"handleDismiss",function(e){var t=a.props.onDismiss;t&&t(e,a.props)}),a}return f()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,a=e.attached,n=e.children,c=e.className,l=e.color,s=e.compact,o=e.content,i=e.error,u=e.floating,d=e.header,p=e.hidden,m=e.icon,f=e.info,h=e.list,b=e.negative,v=e.onDismiss,g=e.positive,E=e.size,j=e.success,y=e.visible,k=e.warning,_=N()("ui",l,E,Object(D.a)(s,"compact"),Object(D.a)(i,"error"),Object(D.a)(u,"floating"),Object(D.a)(p,"hidden"),Object(D.a)(m,"icon"),Object(D.a)(f,"info"),Object(D.a)(b,"negative"),Object(D.a)(g,"positive"),Object(D.a)(j,"success"),Object(D.a)(y,"visible"),Object(D.a)(k,"warning"),Object(D.b)(a,"attached"),"message",c),P=v&&w.a.createElement(T.a,{name:"close",onClick:this.handleDismiss}),z=Object(x.a)(t,this.props),G=Object(C.a)(t,this.props);return A.a.isNil(n)?w.a.createElement(G,r()({},z,{className:_}),P,T.a.create(m,{autoGenerateKey:!1}),(!O()(d)||!O()(o)||!O()(h))&&w.a.createElement(S,null,H.create(d,{autoGenerateKey:!1}),M.create(h,{autoGenerateKey:!1}),Object(L.c)(o,{autoGenerateKey:!1}))):w.a.createElement(G,r()({},z,{className:_}),P,n)}}]),t}(y.Component);g()(B,"Content",S),g()(B,"Header",H),g()(B,"List",M),g()(B,"Item",I),g()(B,"handledProps",["as","attached","children","className","color","compact","content","error","floating","header","hidden","icon","info","list","negative","onDismiss","positive","size","success","visible","warning"]),B.propTypes={}},424:function(e,t,a){"use strict";var n=a(268),r=a.n(n),c=(a(275),a(265)),l=a.n(c),s=a(1),o=a.n(s),i=a(333),u=a(551),d=a(549),p=a(267),m=a(554),f=a(283),h=a.n(f);function b(e){var t=e.children,a=e.className,n=e.color,c=e.content,s=e.horizontal,m=e.inverted,f=e.items,v=e.size,g=e.widths,E=l()("ui",n,v,Object(i.a)(s,"horizontal"),Object(i.a)(m,"inverted"),Object(i.g)(g),"statistics",a),O=Object(u.a)(b,e),j=Object(d.a)(b,e);return p.a.isNil(t)?p.a.isNil(c)?o.a.createElement(j,r()({},O,{className:E}),h()(f,function(e){return y.create(e)})):o.a.createElement(j,r()({},O,{className:E}),c):o.a.createElement(j,r()({},O,{className:E}),t)}b.handledProps=["as","children","className","color","content","horizontal","inverted","items","size","widths"],b.propTypes={};var v=b;function g(e){var t=e.children,a=e.className,n=e.content,c=l()("label",a),s=Object(u.a)(g,e),i=Object(d.a)(g,e);return o.a.createElement(i,r()({},s,{className:c}),p.a.isNil(t)?n:t)}g.handledProps=["as","children","className","content"],g.propTypes={},g.create=Object(m.e)(g,function(e){return{content:e}});var E=g;function O(e){var t=e.children,a=e.className,n=e.content,c=e.text,s=l()(Object(i.a)(c,"text"),"value",a),m=Object(u.a)(O,e),f=Object(d.a)(O,e);return o.a.createElement(f,r()({},m,{className:s}),p.a.isNil(t)?n:t)}O.handledProps=["as","children","className","content","text"],O.propTypes={},O.create=Object(m.e)(O,function(e){return{content:e}});var j=O;function N(e){var t=e.children,a=e.className,n=e.color,c=e.content,s=e.floated,m=e.horizontal,f=e.inverted,h=e.label,b=e.size,v=e.text,g=e.value,O=l()("ui",n,b,Object(i.e)(s,"floated"),Object(i.a)(m,"horizontal"),Object(i.a)(f,"inverted"),"statistic",a),y=Object(u.a)(N,e),w=Object(d.a)(N,e);return p.a.isNil(t)?p.a.isNil(c)?o.a.createElement(w,r()({},y,{className:O}),j.create(g,{defaultProps:{text:v},autoGenerateKey:!1}),E.create(h,{autoGenerateKey:!1})):o.a.createElement(w,r()({},y,{className:O}),c):o.a.createElement(w,r()({},y,{className:O}),t)}N.handledProps=["as","children","className","color","content","floated","horizontal","inverted","label","size","text","value"],N.propTypes={},N.Group=v,N.Label=E,N.Value=j,N.create=Object(m.e)(N,function(e){return{content:e}});var y=t.a=N},970:function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!==typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!==typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}}}]);
//# sourceMappingURL=75.75a9b8e5.chunk.js.map