PageSourceSearch

https://ngodarpan.gov.in/chunk-OIFY34HU.js

js ngodarpan.gov.in collected 2026-10-02 05:59:06 UTC 284,434 bytes, 7 lines download raw bytes

1import{a as gn,b as Cn,c as bn,d as yn,e as xn,f as vn,g as Sn}from"./chunk-C4AUD5NJ.js";import{A as Zt,B as hn,c as on,n as rn,o as ln,r as Te,s as Gt,v as _n,w as A,x as Kt,y as un,z as An}from"./chunk-22GBQJNW.js";import{$b as lt,$d as qt,A as Ct,Ac as Se,Ad as Bt,B as N,Ba as kt,Bd as dt,C as ue,Ca as X,Da as L,Ea as U,Ec as Lt,Ed as de,Fa as Mt,Fb as Ji,Fc as Le,Fd as ct,G as h,Ga as d,Gb as Vt,Gc as we,Gd as pt,H as f,Ha as y,Hb as Zi,Hc as H,Hd as ce,Ia as v,Ib as q,Ic as se,Jb as Xi,Jd as cn,Kd as pn,La as G,Lc as S,Ld as mn,M as pe,Ma as z,Na as j,Nb as yt,Nc as ne,O as Gi,Oa as it,Pa as I,Pd as zt,Qa as F,Qb as xt,Qc as an,Qd as jt,R as tt,Ra as Ee,Rb as Ve,Rc as ki,Rd as De,S as zi,Sa as Me,Ta as nt,Tb as Wt,Tc as Mi,Ud as Yt,Va as Hi,Vc as Ri,Vd as Ht,W as l,Wa as k,Wb as W,Wc as Pi,Wd as ze,X as w,Xa as M,Xb as rt,Xc as Fi,Xd as $t,Ya as re,Yb as en,Yd as je,Z as ji,Zb as Y,_a as Rt,_b as We,_d as En,ab as Pt,ae as Qt,ba as It,bd as Ei,ca as m,cb as Re,da as B,db as $i,de as mt,ea as p,ec as tn,ed as Ue,ee as Ye,fa as Yi,fc as nn,fd as Be,fe as He,ga as he,gb as ot,ge as $e,hc as ee,he as oe,ia as Ze,ic as te,jb as $,ka as g,kb as Ft,la as Ii,lb as K,lc as Ce,ma as Ti,mb as at,mc as le,md as Ne,na as Di,nb as Et,nd as Ie,ne as On,oa as a,ob as Ki,oc as ie,pa as r,pb as Ot,pc as E,pd as Oi,pe as Jt,qa as _,qb as At,ra as fe,rb as Oe,rc as Q,sa as ge,sb as qi,sc as be,sd as st,ta as bt,tb as Qi,ua as x,ud as Ut,ue as fn,va as C,vb as R,vc as ye,vd as Ge,ve as Xt,wa as s,wc as xe,wd as J,we as ei,x as _e,xa as Tt,xc as ve,xd as Z,ya as Dt,yb as Ae,yd as sn,za as ae,zd as dn}from"./chunk-DK6J74YB.js";import"./chunk-FCJI5PDA.js";import"./chunk-FK6H3RFT.js";import{f as Ni,h as Fe}from"./chunk-XYUF6GX4.js";var _t=class i{items;email="";name="";ngOnInit(){this.items=[{label:"Profile"},{label:"Logout"}],this.email=localStorage.getItem("email")?localStorage.getItem("email"):"",this.name=localStorage.getItem("name")?localStorage.getItem("name"):""}onFontResize(t){let e=document.querySelector("html");t===1?e.style.fontSize="15px":t===2?e.style.fontSize="17px":e.style.fontSize="14px"}getInitials(t){if(!t)return"";let e=t.trim().split(/\s+/);return e.length===1?e[0][0].toUpperCase():(e[0][0]+e[e.length-1][0]).toUpperCase()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-header"]],standalone:!0,features:[I],decls:18,vars:7,consts:[[1,"sticky"],[1,"flex"],[1,"logo","flex","justify-content-center","align-items-center","px-3"],["src","assets/images/icons/header-logo.svg","alt","header-logo","tabindex","0","routerLink","/",1,"cursor-pointer"],[1,"header-wrap"],[1,"flex","flex-column"],[1,"grid","mx-0","p-3","py-3","justify-content-between","align-items-center","custom-header-wrap"],[1,"flex","align-items-center","justify-content-between","w-auto","custom-header"],["src","assets/images/logos/ngologo.gif","alt","ngo","tabindex","0",1,"ngo-logo"],["src","assets/images/logos/darpan.svg","alt","darpan","tabindex","0",1,"mx-2"],["styleClass","mr-2","size","large","shape","circle",3,"label"],[1,"my-0","mx-2","text-left","font-semibold"],[1,"block","font-normal"]],template:function(e,n){e&1&&(a(0,"header",0)(1,"div",1)(2,"div",2),_(3,"img",3),r(),a(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),_(8,"img",8)(9,"img",9),r(),a(10,"div",1),_(11,"p-avatar",10),a(12,"p",11),d(13),k(14,"titlecase"),a(15,"span",12),d(16),k(17,"lowercase"),r()()()()()()()()),e&2&&(l(11),p("label",n.getInitials(n.name)),l(2),v(" ",M(14,3,n.name)," "),l(3),y(M(17,5,n.email)))},dependencies:[bn,Xi,Cn,gn,te,Ot,R,Ki],styles:["[_nghost-%COMP%]     header{background-color:#fff;top:0;z-index:10}[_nghost-%COMP%]     header .logo{width:260px;height:90px;background-color:#f9f9f9}[_nghost-%COMP%]     header .logo img{height:80%}@media only screen and (max-width: 767px){[_nghost-%COMP%]     header .logo{width:100px}}[_nghost-%COMP%]     header .p-menu{top:90px!important}[_nghost-%COMP%]     header .p-button{background-color:transparent;border:0;color:#3f3350;box-shadow:none}[_nghost-%COMP%]     header .header-wrap{width:calc(100% - 260px)}@media only screen and (max-width: 767px){[_nghost-%COMP%]     header .header-wrap{width:calc(100% - 80px)}}[_nghost-%COMP%]     header .top-header{border-bottom:1px solid #cccccc}[_nghost-%COMP%]     header .top-header a{cursor:pointer}[_nghost-%COMP%]     header .top-header ul li{font-size:.8em;border-right:1px solid #3F3350}[_nghost-%COMP%]     header .top-header ul li a{color:#3f3350;text-decoration:none;font-weight:500}[_nghost-%COMP%]     header .top-header ul li:last-child{border-right:0}[_nghost-%COMP%]     header .top-header ul li button{background-color:transparent;border:0;cursor:default!important;font-size:1em}@media only screen and (max-width: 767px){[_nghost-%COMP%]     header .custom-header img{max-width:80px}}@media only screen and (max-width: 767px){[_nghost-%COMP%]     header .custom-header-wrap button p{display:none}}
1[_nghost-%COMP%]     .p-button{cursor:auto!important}"]})};var ut=class i{constructor(t,e,n,o,c){this.router=t;this.route=e;this.cdr=n;this._service=o;this._enc=c;let u=localStorage.getItem("roles");if(u){let T=this._enc.decryptData(u);this.roles=JSON.parse(T)}}items=[];roles=[];ngOnInit(){this.items=[{label:"NPO Analytics",icon:"icon-Component-128",routerLink:"/admin/dashboard",routerLinkActiveOptions:{exact:!0},tooltip:"Navigate to the NPO Analytics"},{label:"Search NPO",icon:"pi pi-search",routerLink:"/admin/search-ngo",routerLinkActiveOptions:{exact:!0},tooltip:"Search for Registered NPOs"},{label:"Reports & Analytics",icon:"pi pi-chart-line",tooltip:"View Reports and Analytics",expanded:!1,items:[{label:"NPO Enrollment",icon:"pi pi-users",tooltip:"View details of enrolled NPOs",routerLink:"/admin/ngo-enrollment"},{label:"Grant Allocation to NPO",icon:"pi pi-money-bill",tooltip:"Check grant allocation details for each NPO",routerLink:"/admin/grant-allocation-npo"},{label:"Annual Grant",icon:"pi pi-calendar",tooltip:"View grant details by year",routerLink:"/admin/yearly-grant"},{label:"Ministry Wise Grant Release",icon:"pi pi-building",tooltip:"Check grants released by ministries",routerLink:"/admin/grant-by-ministries"},{label:"Scheme Wise Grant Release",icon:"pi pi-list",tooltip:"View grants allocated for different schemes",routerLink:"/admin/grant-by-schemes"},{label:"State Wise Grant Release",icon:"pi pi-globe",tooltip:"Check grant distribution across states",routerLink:"/admin/grant-by-states"},{label:"NPO Wise Grant Release",icon:"pi pi-id-card",tooltip:"Detailed view of grant releases per NPO",routerLink:"/admin/npo-wise-grant"},{label:"Unblacklisted NPOs",icon:"pi pi-check-square",tooltip:"Information of Unblacklist NPOs",routerLink:"/admin/unblacklisted-npo"},{label:"Members With Multiple NPOs",icon:"pi pi-clone",tooltip:"View members associated with more than one NPO",routerLink:"/admin/duplicate-members"},{label:"State/Sector Wise NPOs Count",icon:"pi pi-chart-pie",tooltip:"View NPO distribution by sectors with the states",routerLink:"/admin/sector-wise-npos"},{label:"Sector Wise NPO List",icon:"pi pi-sitemap",tooltip:"Explore different sectors associated with NPOs",routerLink:"/admin/npo-wise-sector"}]},{visible:this.roles.includes("BLACKLIST_VEW"),label:"Manage Blacklisted NPOs",icon:"pi pi-user-minus",routerLink:"/admin/blacklisted-npo",routerLinkActiveOptions:{exact:!0},tooltip:"View or blacklist NPOs from the registry"},{label:"Nodal Officers",icon:"pi pi-users",tooltip:"Nodal Officers",items:[{label:"Central Ministries / Departments",icon:"pi pi-briefcase",tooltip:"Central Ministries / Departments",routerLink:"/admin/central-officers"},{label:"States / UTs",icon:"pi pi-map-marker",tooltip:"States / UTs",routerLink:"/admin/state-officers"}]},{label:"Settings",icon:"pi pi-cog",tooltip:"Settings",items:[{label:"Reset Password",icon:"pi pi-sync",tooltip:"Reset Password",routerLink:"/admin/reset/password"},{label:"Reset mPIN",icon:"pi pi-key",tooltip:"Reset mPIN",routerLink:"/admin/reset/mpin"}]},{label:"Log Out",icon:"pi pi-sign-out",routerLinkActiveOptions:{exact:!0},tooltip:"Log out of the Admin Panel",command:()=>this.logout()}],this.expandActiveMenuItem(),this.router.events.subscribe(t=>{t instanceof Ji&&this.expandActiveMenuItem()})}expandActiveMenuItem(){let t=this.router.url;this.items.forEach(e=>{e.expanded=!1,e.styleClass="",e.items?e.items.some(o=>t.startsWith(o.routerLink))?(e.expanded=!0,e.styleClass="p-menuitem-link-active",e.items.forEach(o=>{o.styleClass=t===o.routerLink?"p-menuitem-link-active":""})):e.items.forEach(o=>{o.styleClass=""}):e.styleClass=t===e.routerLink?"p-menuitem-link-active":""})}logout(){this._service.logout(S.APIUrl).subscribe(),localStorage.removeItem("name"),localStorage.removeItem("email"),localStorage.removeItem("authKey"),localStorage.removeItem("ulzzz"),localStorage.removeItem("uidzzz"),localStorage.removeItem("utypezzz"),localStorage.removeItem("roles"),localStorage.setItem("forceLogout",Date.now().toString()),this.router.navigate(["/login"])}static \u0275fac=function(e){return new(e||i)(w(q),w(Vt),w(Pt),w(oe),w(ne))};static \u0275cmp=N({type:i,selectors:[["app-nav"]],standalone:!0,features:[I],decls:2,vars:1,consts:[[3,"model"]],template:function(e,n){e&1&&(a(0,"nav"),_(1,"p-panelMenu",0),r()),e&2&&(l(),p("model",n.items))},dependencies:[R,fn,yt,cn,H,te,xn,yn],styles:["[_nghost-%COMP%]     nav{width:260px;overflow-y:auto;position:sticky;top:90px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     nav{width:0}}[_nghost-%COMP%]     nav .p-accordion{overflow-y:auto}[_nghost-%COMP%]     nav .p-button{border-radius:0;width:100%;text-align:left;box-shadow:none;background-color:transparent;border:0;color:#606060}[_nghost-%COMP%]     nav .p-button span{font-weight:500;font-size:.9em}[_nghost-%COMP%]     nav .p-button span.p-button-icon{margin-right:10px;font-size:1em}[_nghost-%COMP%]     nav .p-button span.p-button-icon:before{color:#606060}[_nghost-%COMP%]     nav .p-button.btnactive button{background-color:#ff7043;color:#fff}[_nghost-%COMP%]     nav .p-button.btnactive button.p-button-icon:before{color:#fff}[_nghost-%COMP%]     nav ul{padding:20px 0 0 20px}[_nghost-%COMP%]     nav ul li a{border-left:3px solid #E8E8E8;padding:10px 20px;color:#606060;text-decoration:none;font-weight:600;font-size:.9em}[_nghost-%COMP%]     nav ul li a.active{border-color:#ff7043;color:#3f3350}[_nghost-%COMP%]     .p-accordion-content{padding:0;background-color:transparent}[_nghost-%COMP%]     .p-accordion-header-link{border-radius:0}[_nghost-%COMP%]     .p-accordion-header-link span{font-size:.95em;font-weight:500}[_nghost-%COMP%]     .p-accordion-header-link span:before{font-size:1.2em}[_nghost-%COMP%]     .p-accordion-header.p-highlight .p-accordion-header-link{background-color:#ff7043;color:#fff}[_nghost-%COMP%]     .p-accordion-header.p-highlight .p-accordion-header-link span:before{color:#fff}[_nghost-%COMP%]     .p-accordion-header.p-highlight .p-accordion-toggle-icon{transform:rotate(-180deg)}[_nghost-%COMP%]     .p-accordion-header-link{background:transparent;border:0;flex-direction:row-reverse;justify-content:space-between}[_nghost-%COMP%]     .p-accordion-toggle-icon{transform:rotate(90deg);margin-right:0}[_nghost-%COMP%]     .p-accordion-content{border:0}[_nghost-%COMP%]     .p-panelmenu-header .p-icon-wrapper{position:absolute;right:10px;rotate:90deg;bottom:15px}[_nghost-%COMP%]     .p-panelmenu-header.p-highlight .p-icon-wrapper{rotate:180deg;bottom:auto}[_nghost-%COMP%]     nav ul{padding-top:0}[_nghost-%COMP%]     nav ul li a{padding:10px 15px}[_nghost-%COMP%]     nav ul li a.p-menuitem-link-active{background-color:#fff;border-left:3px solid #FF7043}[_nghost-%COMP%]     nav ul li a.p-menuitem-link-active span{color:#ff7043}[_nghost-%COMP%]     nav ul li a.p-menuitem-link-active span:before{color:#ff7043}[_nghost-%COMP%]     nav .p-panelmenu-content{border:0}[_nghost-%COMP%]     nav .p-panelmenu-header-content{border:0;border-radius:0;background-color:#fff}[_nghost-%COMP%]     nav .p-panelmenu-header.p-menuitem-link-active a{background-color:#ff7043;color:#fff}[_nghost-%COMP%]     nav .p-panelmenu-header.p-menuitem-link-active a span:before{color:#fff}[_nghost-%COMP%]     nav a{font-size:.9em}[_nghost-%COMP%]     nav a span{font-weight:500}[_nghost-%COMP%]     nav a span:before{color:#606060}[_nghost-%COMP%]     nav a.p-menuitem-link span{line-height:1.4em}[_nghost-%COMP%]     nav a.p-menuitem-link-active{background-color:#ff7043;color:#fff}[_nghost-%COMP%]     nav a.p-menuitem-link-active span:before{color:#fff}.text-success[_ngcontent-%COMP%]{color:var(--green-600)!important}"]})};var qe=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=ue({type:i});static \u0275inj=_e({imports:[R,_t,ut]})};var Ln=(i,t)=>({"show-nav":i,"hide-nav":t}),Un=(i,t)=>({collapsed:i,expanded:t}),Bn=i=>({"rotate-icon":i}),ti=class i{constructor(t){this.route=t}title="NPO-darpan";severity="success-msg";infoMsg=!1;displayMsg="";isVisible=!0;ngoInfo;ngOnInit(){this.route.fragment.subscribe(t=>{t&&this.scrollToSection(t)})}toggleDiv(){this.isVisible=!this.isVisible}ngAfterViewChecked(){}scrollToSection(t){let e=document.getElementById(t);
1if(e){let n=document.querySelector(".custom-header-wrap"),o=n?n.offsetHeight:0;setTimeout(()=>{let c=e.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:c-o,behavior:"smooth"})},100)}else console.error(`Element with id "${t}" not found.`),setTimeout(()=>{let n=document.getElementById(t);if(n){let o=document.querySelector(".custom-header-wrap"),c=o?o.offsetHeight:0;setTimeout(()=>{let u=n.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:u-c,behavior:"smooth"})},100)}},500)}static \u0275fac=function(e){return new(e||i)(w(Vt))};static \u0275cmp=N({type:i,selectors:[["app-admin"]],standalone:!0,features:[I],decls:8,vars:11,consts:[[1,"flex","main-content-wrap"],[1,"z-2","relative",3,"ngClass"],["styleClass","nav-btn z-2 fixed",3,"click","ngClass"],[1,"pi","pi-chevron-left","block","text-center","w-full",3,"ngClass"],[1,"main-content","p-3","ml-3"]],template:function(e,n){e&1&&(_(0,"app-header"),a(1,"div",0)(2,"div",1),_(3,"app-nav"),a(4,"p-button",2),C("click",function(){return n.toggleDiv()}),_(5,"i",3),r()(),a(6,"div",4),_(7,"router-outlet"),r()()),e&2&&(l(2),p("ngClass",Me(3,Ln,!n.isVisible,n.isVisible)),l(2),p("ngClass",Me(6,Un,n.isVisible,!n.isVisible)),l(),p("ngClass",Ee(9,Bn,n.isVisible)))},dependencies:[Zi,R,$,qe,_t,ut,te,ee],styles:["[_nghost-%COMP%]     .p-card{border-radius:15px;box-shadow:0 0 10px #00000017}[_nghost-%COMP%]     .p-card-content{padding:0}[_nghost-%COMP%]     .p-message{margin:0;border:1px solid;border-radius:8px}[_nghost-%COMP%]     .p-message-wrapper{align-items:flex-start}[_nghost-%COMP%]     .p-message-wrapper h2{color:#574d66;font-size:1.25em;font-weight:600}[_nghost-%COMP%]     .p-message-wrapper h2:after{display:none}[_nghost-%COMP%]     .p-message-wrapper p{color:#606060}[_nghost-%COMP%]     .show-nav{border-bottom-right-radius:25px;background-color:#fff;box-shadow:0 0 16px -15px #0000004d;margin-bottom:15px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     .show-nav{width:0}}[_nghost-%COMP%]     .show-nav nav{width:260px;background-color:#fff;max-height:82vh}[_nghost-%COMP%]     .hide-nav{width:75px;border-bottom-right-radius:25px;background-color:#fff;box-shadow:0 0 16px -15px #0000004d;margin-bottom:15px}[_nghost-%COMP%]     .hide-nav nav{width:100%;max-height:82vh}[_nghost-%COMP%]     .hide-nav nav a{justify-content:center}[_nghost-%COMP%]     .hide-nav .p-button-label{display:none}[_nghost-%COMP%]     .hide-nav .p-accordion-header-link span.custom-header-txt{display:none}[_nghost-%COMP%]     .hide-nav ul{padding-left:0}[_nghost-%COMP%]     .hide-nav a span.p-menuitem-text{display:none}[_nghost-%COMP%]     .expanded button{right:-30px;left:230px}[_nghost-%COMP%]     .collapsed button{right:-20px;left:30px}[_nghost-%COMP%]     .main-content{width:100%;position:relative;min-height:calc(100vh - 128px);overflow-y:hidden}[_nghost-%COMP%]     .main-content-wrap{background-color:#f9f9f9;min-height:calc(100vh - 90px)}[_nghost-%COMP%]     .heading{color:#574d66;font-size:1.5em;font-weight:600}[_nghost-%COMP%]     .nav-btn{width:50px;height:50px;padding:0;border-radius:50%;position:absolute;bottom:10%;cursor:pointer}[_nghost-%COMP%]     .nav-btn i{font-size:1.2em}.rotate-icon[_ngcontent-%COMP%]{transform:rotate(180deg);transition:transform .3s ease}"]})};var Io=Ni(En()),Tp=Ni(On());var Gn=["*"],zn=(i,t,e,n,o,c)=>({"p-sidebar":!0,"p-sidebar-active":i,"p-sidebar-left":t,"p-sidebar-right":e,"p-sidebar-top":n,"p-sidebar-bottom":o,"p-sidebar-full":c}),jn=(i,t)=>({transform:i,transition:t}),Yn=i=>({value:"visible",params:i});function Hn(i,t){i&1&&bt(0)}function $n(i,t){if(i&1&&(fe(0),m(1,Hn,1,0,"ng-container",5),ge()),i&2){let e=s(2);l(),p("ngTemplateOutlet",e.headlessTemplate)}}function Kn(i,t){i&1&&bt(0)}function qn(i,t){i&1&&_(0,"TimesIcon",13),i&2&&(p("styleClass","p-sidebar-close-icon"),B("data-pc-section","closeicon"))}function Qn(i,t){}function Jn(i,t){i&1&&m(0,Qn,0,0,"ng-template")}
1function Zn(i,t){if(i&1&&(a(0,"span",14),m(1,Jn,1,0,null,5),r()),i&2){let e=s(4);B("data-pc-section","closeicon"),l(),p("ngTemplateOutlet",e.closeIconTemplate)}}function Xn(i,t){if(i&1){let e=x();a(0,"button",10),C("click",function(o){h(e);let c=s(3);return f(c.close(o))})("keydown.enter",function(o){h(e);let c=s(3);return f(c.close(o))}),m(1,qn,1,2,"TimesIcon",11)(2,Zn,2,2,"span",12),r()}if(i&2){let e=s(3);B("aria-label",e.ariaCloseLabel)("data-pc-section","closebutton")("data-pc-group-section","iconcontainer"),l(),p("ngIf",!e.closeIconTemplate),l(),p("ngIf",e.closeIconTemplate)}}function eo(i,t){i&1&&bt(0)}function to(i,t){i&1&&bt(0)}function io(i,t){if(i&1&&(fe(0),a(1,"div",15),m(2,to,1,0,"ng-container",5),r(),ge()),i&2){let e=s(3);l(),B("data-pc-section","footer"),l(),p("ngTemplateOutlet",e.footerTemplate)}}function no(i,t){if(i&1&&(a(0,"div",6),m(1,Kn,1,0,"ng-container",5)(2,Xn,3,5,"button",7),r(),a(3,"div",8),Dt(4),m(5,eo,1,0,"ng-container",5),r(),m(6,io,3,2,"ng-container",9)),i&2){let e=s(2);B("data-pc-section","header"),l(),p("ngTemplateOutlet",e.headerTemplate),l(),p("ngIf",e.showCloseIcon),l(),B("data-pc-section","content"),l(2),p("ngTemplateOutlet",e.contentTemplate),l(),p("ngIf",e.footerTemplate)}}function oo(i,t){if(i&1){let e=x();a(0,"div",3,0),C("@panelState.start",function(o){h(e);let c=s();return f(c.onAnimationStart(o))})("@panelState.done",function(o){h(e);let c=s();return f(c.onAnimationEnd(o))})("keydown",function(o){h(e);let c=s();return f(c.onKeyDown(o))}),m(2,$n,2,1,"ng-container",4)(3,no,7,6,"ng-template",null,1,Rt),r()}if(i&2){let e=Mt(4),n=s();Ze(n.styleClass),p("ngClass",Hi(9,zn,n.visible,n.position==="left"&&!n.fullScreen,n.position==="right"&&!n.fullScreen,n.position==="top"&&!n.fullScreen,n.position==="bottom"&&!n.fullScreen,n.fullScreen))("@panelState",Ee(19,Yn,Me(16,jn,n.transformOptions,n.transitionOptions)))("ngStyle",n.style),B("data-pc-name","sidebar")("data-pc-section","root"),l(2),p("ngIf",n.headlessTemplate)("ngIfElse",e)}}var ao=Pi([Mi({transform:"{{transform}}",opacity:0}),ki("{{transition}}")]),ro=Pi([ki("{{transition}}",Mi({transform:"{{transform}}",opacity:0}))]),wn=(()=>{class i{document;el;renderer;cd;config;appendTo;blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){switch(this._position=e,e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}templates;onShow=new pe;onHide=new pe;visibleChange=new pe;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;contentTemplate;headerTemplate;footerTemplate;closeIconTemplate;headlessTemplate;constructor(e,n,o,c,u){this.document=e,this.el=n,this.renderer=o,this.cd=c,this.config=u}ngAfterViewInit(){this.initialized=!0}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"headless":this.headlessTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.autoZIndex&&xt.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(!1),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll(".p-sidebar-active"),o=e.length==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[0].style.zIndex)-1);this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",o),lt.addMultipleClasses(this.mask,"p-component-overlay p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",c=>{this.dismissible&&this.close(c)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&lt.blockBodyScroll())}disableModality(){this.mask&&(lt.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&lt.unblockBodyScroll(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener();break}}onAnimationEnd(e){switch(e.toState){case"void":this.hide(!0),xt.clear(this.container),this.unbindGlobalListeners();break}}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):lt.appendChild(this.container,this.appendTo))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.which==27&&parseInt(this.container.style.zIndex)===xt.get(this.container)&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&xt.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=function(n){return new(n||i)(w(ot),w(Gi),w(ji),w(Pt),w(Wt))};static \u0275cmp=N({type:i,selectors:[["p-sidebar"]],contentQueries:function(n,o,c){if(n&1&&kt(c,W,4),n&2){let u;L(u=U())&&(o.templates=u)}},hostAttrs:[1,"p-element"],inputs:{appendTo:"appendTo",blockScroll:[2,"blockScroll","blockScroll",Re],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",Re],baseZIndex:[2,"baseZIndex","baseZIndex",$i],modal:[2,"modal","modal",Re],dismissible:[2,"dismissible","dismissible",Re],showCloseIcon:[2,"showCloseIcon","showCloseIcon",Re],closeOnEscape:[2,"closeOnEscape","closeOnEscape",Re],transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[It],ngContentSelectors:Gn,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["role","complementary",3,"ngClass","ngStyle","class","keydown",4,"ngIf"],["role","complementary",3,"keydown","ngClass","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[1,"p-sidebar-header"],["type","button","class","p-sidebar-close p-sidebar-icon p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[1,"p-sidebar-content"],[4,"ngIf"],["type","button","pRipple","",1,"p-sidebar-close","p-sidebar-icon","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],["class","p-sidebar-close-icon",4,"ngIf"],[3,"styleClass"],[1,"p-sidebar-close-icon"],[1,"p-sidebar-footer"]],template:function(n,o){n&1&&(Tt(),m(0,oo,5,21,"div",2)),n&2&&p("ngIf",o.visible)},dependencies:()=>[$,K,Et,at,tn,Ei],styles:[`@layer primeng{.p-sidebar{position:fixed;transition:transform .3s;display:flex;flex-direction:column}.p-sidebar-content{position:relative;overflow-y:auto;flex-grow:1}.p-sidebar-header{display:flex;align-items:center}.p-sidebar-footer{margin-top:auto}.p-sidebar-icon{display:flex;align-items:center;justify-content:center;margin-left:auto}.p-sidebar-left{top:0;left:0;width:20rem;height:100%}.p-sidebar-right{top:0;right:0;width:20rem;height:100%}.p-sidebar-top{top:0;left:0;width:100%;height:10rem}.p-sidebar-bottom{bottom:0;left:0;width:100%;height:10rem}.p-sidebar-full{width:100%;height:100%;top:0;left:0;-webkit-transition:none;transition:none}.p-sidebar-left.p-sidebar-sm,.p-sidebar-right.p-sidebar-sm{width:20rem}.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-md{width:40rem}.p-sidebar-left.p-sidebar-lg,.p-sidebar-right.p-sidebar-lg{width:60rem}.p-sidebar-top.p-sidebar-sm,.p-sidebar-bottom.p-sidebar-sm{height:10rem}.p-sidebar-top.p-sidebar-md,.p-sidebar-bottom.p-sidebar-md{height:20rem}.p-sidebar-top.p-sidebar-lg,.p-sidebar-bottom.p-sidebar-lg{height:30rem}@media screen and (max-width: 64em){.p-sidebar-left.p-sidebar-lg,.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-lg,.p-sidebar-right.p-sidebar-md{width:20rem}}}
2`],encapsulation:2,data:{animation:[an("panelState",[Ri("void => visible",[Fi(ao)]),Ri("visible => void",[Fi(ro)])])]},changeDetection:0})}return i})(),Nn=(()=>
2{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=ue({type:i});static \u0275inj=_e({imports:[R,nn,rt,Ei,rt]})}return i})();var so=["*"];function co(i,t){if(i&1){let e=x();a(0,"img",6),C("error",function(o){h(e);let c=s(2);return f(c.imageError(o))}),r()}if(i&2){let e=s(2);p("src",e.image,zi)("alt",e.alt)}}function po(i,t){if(i&1&&_(0,"span",8),i&2){let e=s(3);Ze(e.icon),p("ngClass","p-chip-icon"),B("data-pc-section","icon")}}function mo(i,t){if(i&1&&m(0,po,1,4,"span",7),i&2){let e=s(2);p("ngIf",e.icon)}}function _o(i,t){if(i&1&&(a(0,"div",9),d(1),r()),i&2){let e=s(2);B("data-pc-section","label"),l(),y(e.label)}}function uo(i,t){if(i&1){let e=x();a(0,"span",13),C("click",function(o){h(e);let c=s(4);return f(c.close(o))})("keydown",function(o){h(e);let c=s(4);return f(c.onKeydown(o))}),r()}if(i&2){let e=s(4);Ze(e.removeIcon),p("ngClass","pi-chip-remove-icon"),B("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function ho(i,t){if(i&1){let e=x();a(0,"TimesCircleIcon",14),C("click",function(o){h(e);let c=s(4);return f(c.close(o))})("keydown",function(o){h(e);let c=s(4);return f(c.onKeydown(o))}),r()}if(i&2){let e=s(4);Ze("pi-chip-remove-icon"),B("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function fo(i,t){if(i&1&&(fe(0),m(1,uo,1,5,"span",11)(2,ho,1,4,"TimesCircleIcon",12),ge()),i&2){let e=s(3);l(),p("ngIf",e.removeIcon),l(),p("ngIf",!e.removeIcon)}}function go(i,t){}function Co(i,t){i&1&&m(0,go,0,0,"ng-template")}function bo(i,t){if(i&1){let e=x();a(0,"span",15),C("click",function(o){h(e);let c=s(3);return f(c.close(o))})("keydown",function(o){h(e);let c=s(3);return f(c.onKeydown(o))}),m(1,Co,1,0,null,16),r()}if(i&2){let e=s(3);B("data-pc-section","removeicon")("aria-label",e.removeAriaLabel),l(),p("ngTemplateOutlet",e.removeIconTemplate)}}function yo(i,t){if(i&1&&(fe(0),m(1,fo,3,2,"ng-container",5)(2,bo,2,3,"span",10),ge()),i&2){let e=s(2);l(),p("ngIf",!e.removeIconTemplate),l(),p("ngIf",e.removeIconTemplate)}}function xo(i,t){if(i&1&&(a(0,"div",2),Dt(1),m(2,co,1,2,"img",3)(3,mo,1,1,"ng-template",null,0,Rt)(5,_o,2,2,"div",4)(6,yo,3,2,"ng-container",5),r()),i&2){let e=Mt(4),n=s();Ze(n.styleClass),p("ngClass",n.containerClass())("ngStyle",n.style),B("data-pc-name","chip")("aria-label",n.label)("data-pc-section","root"),l(2),p("ngIf",n.image)("ngIfElse",e),l(3),p("ngIf",n.label),l(),p("ngIf",n.removable)}}var In=(()=>{class i{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new pe;onImageError=new pe;config=Ct(Wt);visible=!0;removeIconTemplate;get removeAriaLabel(){return this.config.getTranslation(en.ARIA).removeLabel}templates;
2ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"removeicon":this.removeIconTemplate=e.template;break;default:this.removeIconTemplate=e.template;break}})}containerClass(){return{"p-chip p-component":!0,"p-chip-image":this.image!=null}}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=N({type:i,selectors:[["p-chip"]],contentQueries:function(n,o,c){if(n&1&&kt(c,W,4),n&2){let u;L(u=U())&&(o.templates=u)}},hostAttrs:[1,"p-element"],inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",Re],removeIcon:"removeIcon"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[It],ngContentSelectors:so,decls:1,vars:1,consts:[["iconTemplate",""],[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-text",4,"ngIf"],[4,"ngIf"],[3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-text"],["tabindex","0","class","pi-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"pi-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(n,o){n&1&&(Tt(),m(0,xo,7,11,"div",1)),n&2&&p("ngIf",o.visible)},dependencies:()=>[$,K,Et,at,Oi],styles:[`@layer primeng{.p-chip{display:inline-flex;align-items:center}.p-chip-text,.p-chip-icon.pi,.pi-chip-remove-icon.pi{line-height:1.5}.pi-chip-remove-icon{cursor:pointer}.p-chip img{border-radius:50%}}
3`],encapsulation:2,changeDetection:0})}return i})(),Tn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=ue({type:i});static \u0275inj=_e({imports:[R,Oi,rt,rt]})}return i})();var To=["ministryDropdown"],ii=()=>({color:"#000"});function Do(i,t){if(i&1){let e=x();a(0,"p-chip",27),C("onRemove",function(){let o=h(e).$implicit,c=s();return f(c.removeChip(o.value))}),r()}if(i&2){let e=t.$implicit,n=s();Yi("text-overflow","ellipsis"),p("label",n.isMinistryUser&&e.value==="selectedMinistryName"||n.isStateUser&&e.value==="selectedState"?e.name:n.truncate(e.name))("removable",!(n.isMinistryUser&&e.value==="selectedMinistryName"||n.isStateUser&&e.value==="selectedState"))("pTooltip",e.label)}}function ko(i,t){i&1&&(a(0,"div",28),_(1,"p-skeleton",30)(2,"p-skeleton",31),a(3,"div",32)(4,"div",33),_(5,"p-skeleton",31)(6,"p-skeleton",31),r(),a(7,"div",33),_(8,"p-skeleton",31)(9,"p-skeleton",31),r()()())}function Mo(i,t){i&1&&_(0,"app-no-data-found")}function Ro(i,t){if(i&1){let e=x();a(0,"div",34)(1,"div",35)(2,"p",36),k(3,"inrFormat"),C("click",function(){h(e);let o=s(3);return f(o.sendToN("admin/ngo-enrollment",{name:"Active",value:1},o.topCounts==null?null:o.topCounts.enrolledCount))}),d(4),a(5,"span",37),d(6,"Enrolled"),r()(),a(7,"div",38)(8,"p-button",39),C("click",function(){h(e);let o=s(3);return f(o.sendToN("admin/ngo-enrollment",{name:"Active",value:1},o.topCounts==null?null:o.topCounts.enrolledCount))}),r()()(),a(9,"div",35)(10,"p",40),k(11,"inrFormat"),C("click",function(){h(e);let o=s(3);return f(o.sendToN("admin/ngo-enrollment",{name:"Blacklisted",value:2},o.topCounts==null?null:o.topCounts.blacklistedCount))}),d(12),a(13,"span",37),d(14,"Blacklisted"),r()(),a(15,"div",38)(16,"p-button",39),C("click",function(){h(e);let o=s(3);return f(o.sendToN("admin/ngo-enrollment",{name:"Blacklisted",value:2},o.topCounts==null?null:o.topCounts.blacklistedCount))}),r()()()(),a(17,"div",41),_(18,"img",42),r()}if(i&2){let e=s(3);l(2),p("pTooltip",M(3,4,e.topCounts==null?null:e.topCounts.enrolledCount)),l(2),v(" ",e.topCounts!=null&&e.topCounts.enrolledCount?e.formatValue(e.topCounts==null?null:e.topCounts.enrolledCount):0," "),l(6),p("pTooltip",M(11,6,e.topCounts==null?null:e.topCounts.blacklistedCount)),l(2),v(" ",e.topCounts!=null&&e.topCounts.blacklistedCount?e.formatValue(e.topCounts==null?null:e.topCounts.blacklistedCount):0," ")}}function Po(i,t){if(i&1&&(a(0,"p-card",29),m(1,Mo,1,0,"app-no-data-found")(2,Ro,19,8),r()),i&2){let e=s(2);l(),g(e.ngosWdgtNR?1:2)}}function Fo(i,t){if(i&1&&(a(0,"div",12),m(1,ko,10,0,"div",28)(2,Po,3,1,"p-card",29),r()),i&2){let e=s();p("ngClass",e.isMinistryUser?"xl:col-4":"xl:col-3"),l(),g(e.ngosWdgtSclt?1:2)}}function Eo(i,t){i&1&&(a(0,"div",28),_(1,"p-skeleton",30)(2,"p-skeleton",31),a(3,"div",32)(4,"div",33),_(5,"p-skeleton",31)(6,"p-skeleton",31),r(),a(7,"div",33),_(8,"p-skeleton",31)(9,"p-skeleton",31),r()()())}function Oo(i,t){i&1&&_(0,"app-no-data-found")}function Ao(i,t){if(i&1){let e=x();a(0,"span",44),d(1," (1 April, 2017 Onwards) "),r(),a(2,"div",45)(3,"p",46),k(4,"inrFormat"),d(5),a(6,"span",37),d(7,"Grant Value"),r()(),a(8,"p",47),k(9,"inrFormat"),d(10),a(11,"span",37),d(12,"NPOs "),r()()(),a(13,"div",41),_(14,"img",48),r(),a(15,"div",49)(16,"p-button",39),C("click",function(){h(e);let o=s(3);return f(o.sendTo("admin/yearly-grant",o.topCounts==null?null:o.topCounts.totalGrantValue))}),r()()}if(i&2){let e=s(3);l(3),p("pTooltip",M(4,4,"\u20B9"+(e.topCounts==null?null:e.topCounts.totalGrantValue))),l(2),v(" \u20B9",e.topCounts!=null&&e.topCounts.totalGrantValue?e.formatValue(e.topCounts==null?null:e.topCounts.totalGrantValue):0," "),l(3),p("pTooltip",M(9,6,(e.topCounts==null?null:e.topCounts.enrolledGrantCount)+(e.topCounts==null?null:e.topCounts.blacklistedGrantCount))),l(2),v(" ",e.topCounts!=null&&e.topCounts.enrolledGrantCount?e.formatValue((e.topCounts==null?null:e.topCounts.enrolledGrantCount)+(e.topCounts==null?null:e.topCounts.blacklistedGrantCount)):0," ")}}function Vo(i,t){if(i&1&&(a(0,"p-card",43),m(1,Oo,1,0,"app-no-data-found")(2,Ao,17,8),r()),i&2){let e=s(2);l(),g(e.grantValueWdgtNR?1:2)}}function Wo(i,t){if(i&1&&(a(0,"div",12),m(1,Eo,10,0,"div",28)(2,Vo,3,1,"p-card",43),r()),i&2){let e=s();p("ngClass",e.isMinistryUser?"xl:col-4":"xl:col-3"),l(),g(e.grantValueWdgtSclt?1:2)}}function Lo(i,t){i&1&&(a(0,"div",28),_(1,"p-skeleton",30)(2,"p-skeleton",31),a(3,"div",32)(4,"div",33),_(5,"p-skeleton",31)(6,"p-skeleton",31),r(),a(7,"div",33),_(8,"p-skeleton",31)(9,"p-skeleton",31),r()()())}function Uo(i,t){i&1&&_(0,"app-no-data-found")}function Bo(i,t){if(i&1){let e=x();a(0,"div",45)(1,"p"),d(2),a(3,"span",37),d(4,"Releasing Grants"),r()()(),a(5,"div",41),_(6,"img",51),r(),a(7,"div",49)(8,"p-button",52),C("click",function(){h(e);let o=s(3);return f(o.sendTo("admin/grant-by-ministries"))}),r()()}if(i&2){let e=s(3);l(2),v(" ",(e.topCounts==null?null:e.topCounts.ministryReleasingGrants)||0," ")}}function Go(i,t){if(i&1&&(a(0,"p-card",50),m(1,Uo,1,0,"app-no-data-found")(2,Bo,9,1),r()),i&2){let e=s(2);l(),g(e.ministriesWdgtNR?1:2)}}function zo(i,t){if(i&1&&(a(0,"div",13),m(1,Lo,10,0,"div",28)(2,Go,3,1,"p-card",50),r()),i&2){let e=s();l(),g(e.ministriesWdgtSclt?1:2)}}function jo(i,t){i&1&&(a(0,"div",28),_(1,"p-skeleton",30)(2,"p-skeleton",31),a(3,"div",32)(4,"div",33),_(5,"p-skeleton",31)(6,"p-skeleton",31),r(),a(7,"div",33),_(8,"p-skeleton",31)(9,"p-skeleton",31),r()()())}function Yo(i,t){i&1&&_(0,"app-no-data-found")}function Ho(i,t){if(i&1){let e=x();a(0,"div",45)(1,"p"),d(2),a(3,"span",37),d(4,"In which Grant Released"),r()()(),a(5,"div",41),_(6,"img",54),r(),a(7,"div",49)(8,"p-button",39),C("click",function(){h(e);let o=s(3);return f(o.sendTo("admin/grant-by-schemes"))}),r()()}if(i&2){let e=s(3);l(2),v(" ",(e.topCounts==null?null:e.topCounts.schemeReleasingGrants)||0," ")}}function $o(i,t){if(i&1&&(a(0,"p-card",53),m(1,Yo,1,0,"app-no-data-found")(2,Ho,9,1),r()),i&2){let e=s(2);l(),g(e.schemesWdgtNR?1:2)}}function Ko(i,t){if(i&1&&(a(0,"div",12),m(1,jo,10,0,"div",28)(2,$o,3,1,"p-card",53),r()),i&2){let e=s();p("ngClass",e.isMinistryUser?"xl:col-4":"xl:col-3"),l(),g(e.schemesWdgtSclt?1:2)}}function qo(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function Qo(i,t){if(i&1){let e=x();a(0,"div",59)(1,"p-button",60),C("click",function(){h(e);let o=s(3);return f(o.showYwNgoTable=!o.showYwNgoTable)}),r()()}if(i&2){let e=s(3);l(),ae("icon",e.showYwNgoTable?"pi pi-chart-line":"pi pi-table"),p("pTooltip",e.showYwNgoTable?"Switch to Chart View":"Switch to Table View")}}function Jo(i,t){i&1&&_(0,"app-no-data-found")}function Zo(i,t){if(i&1&&_(0,"highcharts-chart",63),i&2){let e=s(4);
3p("Highcharts",e.Highcharts)("constructorType",e.chartConstructor)("options",e.splineOptions)}}function Xo(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"Year"),r(),a(3,"th"),d(4,"Enrolled NPOs"),r()())}function ea(i,t){if(i&1&&(a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r()()),i&2){let e=t.$implicit;l(2),y((e==null?null:e.year)||"--"),l(2),y((e==null?null:e.value)||"--")}}function ta(i,t){if(i&1&&(a(0,"div",64)(1,"p-table",65),m(2,Xo,5,0,"ng-template",17)(3,ea,5,2,"ng-template",66),r()()),i&2){let e=s(4);l(),p("value",e.tab1)("paginator",!1)("scrollable",!0)}}function ia(i,t){if(i&1&&m(0,Zo,1,3,"highcharts-chart",61)(1,ta,4,3,"div",62),i&2){let e=s(3);p("ngIf",!e.showYwNgoTable),l(),p("ngIf",e.showYwNgoTable)}}function na(i,t){if(i&1&&(a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3,"Year wise NPOs Enrolled"),r(),m(4,Qo,2,2,"div",58),r(),m(5,Jo,1,0,"app-no-data-found")(6,ia,2,2),r()),i&2){let e=s(2);l(4),p("ngIf",!e.yw_Ngo_Enr_WdgtNR),l(),g(e.yw_Ngo_Enr_WdgtNR?5:6)}}function oa(i,t){if(i&1&&(a(0,"div",15),m(1,qo,2,0,"div",55)(2,na,7,2,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.yw_Ngo_Enr_WdgtSclt?1:2)}}function aa(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function ra(i,t){if(i&1){let e=x();a(0,"div",59)(1,"p-button",60),C("click",function(){h(e);let o=s(3);return f(o.showTwSumTable=!o.showTwSumTable)}),r()()}if(i&2){let e=s(3);l(),ae("icon",e.showTwSumTable?"pi pi-chart-line":"pi pi-table"),p("pTooltip",e.showTwSumTable?"Switch to Chart View":"Switch to Table View")}}function la(i,t){i&1&&_(0,"app-no-data-found")}function sa(i,t){if(i&1&&_(0,"highcharts-chart",63),i&2){let e=s(4);p("Highcharts",e.Highcharts)("constructorType",e.chartConstructor)("options",e.pieOptions)}}function da(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"NPO Type"),r(),a(3,"th"),d(4,"Count"),r()())}function ca(i,t){if(i&1&&(a(0,"tr")(1,"td"),d(2),r(),a(3,"td",67),d(4),k(5,"inrFormat"),r()()),i&2){let e=t.$implicit;l(2),y((e==null?null:e.type)||"--"),l(2),v(" ",M(5,2,e==null?null:e.count)||"--"," ")}}function pa(i,t){if(i&1&&(a(0,"div",64)(1,"p-table",65),m(2,da,5,0,"ng-template",17)(3,ca,6,4,"ng-template",66),r()()),i&2){let e=s(4);l(),p("value",e.tab2)("paginator",!1)("scrollable",!0)}}function ma(i,t){if(i&1&&m(0,sa,1,3,"highcharts-chart",61)(1,pa,4,3,"div",62),i&2){let e=s(3);p("ngIf",!e.showTwSumTable),l(),p("ngIf",e.showTwSumTable)}}function _a(i,t){if(i&1&&(a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3,"NPOs Type Wise Summary"),r(),m(4,ra,2,2,"div",58),r(),m(5,la,1,0,"app-no-data-found")(6,ma,2,2),r()),i&2){let e=s(2);l(4),p("ngIf",!e.ngo_typewise_WdgtNR),l(),g(e.ngo_typewise_WdgtNR?5:6)}}function ua(i,t){if(i&1&&(a(0,"div",15),m(1,aa,2,0,"div",55)(2,_a,7,2,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.ngo_typewise_WdgtSclt?1:2)}}function ha(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function fa(i,t){if(i&1){let e=x();a(0,"div",59)(1,"p-button",60),C("click",function(){h(e);let o=s(3);return f(o.showStNgoTable=!o.showStNgoTable)}),r()()}if(i&2){let e=s(3);l(),ae("icon",e.showStNgoTable?"pi pi-chart-line":"pi pi-table"),p("pTooltip",e.showStNgoTable?"Switch to Chart View":"Switch to Table View")}}function ga(i,t){i&1&&_(0,"app-no-data-found")}function Ca(i,t){if(i&1&&_(0,"highcharts-chart",63),i&2){let e=s(4);p("Highcharts",e.Highcharts)("constructorType",e.chartConstructor)("options",e.barOptions)}}function ba(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"Sr. No."),r(),a(3,"th"),d(4,"State Name"),r(),a(5,"th"),d(6,"Count"),r()())}function ya(i,t){if(i&1&&(a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td",67),d(6),k(7,"inrFormat"),r()()),i&2){let e=t.$implicit,n=t.rowIndex;l(2),y(n+1),l(2),v(" ",(e==null?null:e.stateName)==="ALL"?"NA":(e==null?null:e.stateName)||"--"," "),l(2),v(" ",M(7,3,e==null?null:e.count)||"--"," ")}}function xa(i,t){if(i&1&&(a(0,"div",64)(1,"p-table",65),m(2,ba,7,0,"ng-template",17)(3,ya,8,5,"ng-template",66),r()()),i&2){let e=s(4);l(),p("value",e.tab3)("paginator",!1)("scrollable",!0)}}function va(i,t){if(i&1&&m(0,Ca,1,3,"highcharts-chart",61)(1,xa,4,3,"div",62),i&2){let e=s(3);p("ngIf",!e.showStNgoTable),l(),p("ngIf",e.showStNgoTable)}}function Sa(i,t){if(i&1&&(a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3,"Top 10 State in NPO Registration"),r(),m(4,fa,2,2,"div",58),r(),m(5,ga,1,0,"app-no-data-found")(6,va,2,2),r()),i&2){let e=s(2);l(4),p("ngIf",!e.tp_st_ngo_reg_WdgtNR),l(),g(e.tp_st_ngo_reg_WdgtNR?5:6)}}function wa(i,t){if(i&1&&(a(0,"div",15),m(1,ha,2,0,"div",55)(2,Sa,7,2,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.tp_st_ngo_reg_WdgtSclt?1:2)}}function Na(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function Ia(i,t){i&1&&_(0,"app-no-data-found")}function Ta(i,t){if(i&1&&_(0,"highcharts-chart",63),i&2){let e=s(3);
3p("Highcharts",e.Highcharts)("constructorType",e.chartConstructor)("options",e.columnOptions)}}function Da(i,t){if(i&1){let e=x();a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3,"Year wise Grant Released"),r(),a(4,"p-button",68),C("click",function(){h(e);let o=s(2);return f(o.sendTo("admin/yearly-grant"))}),r()(),m(5,Ia,1,0,"app-no-data-found")(6,Ta,1,3,"highcharts-chart",63),r()}if(i&2){let e=s(2);l(5),g(e.yw_grt_rel_WdgtNR?5:6)}}function ka(i,t){if(i&1&&(a(0,"div",15),m(1,Na,2,0,"div",55)(2,Da,7,1,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.yw_grt_rel_WdgtSclt?1:2)}}function Ma(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function Ra(i,t){i&1&&_(0,"app-no-data-found")}function Pa(i,t){if(i&1&&_(0,"highcharts-chart",72),i&2){let e=s(4);p("Highcharts",e.Highcharts)("options",e.polarOptions)}}function Fa(i,t){if(i&1&&_(0,"highcharts-chart",72),i&2){let e=s(4);p("Highcharts",e.Highcharts)("options",e.polarOptionsNpo)}}function Ea(i,t){if(i&1&&m(0,Pa,1,2,"highcharts-chart",71)(1,Fa,1,2,"highcharts-chart",71),i&2){let e=s(3);p("ngIf",e.showState),l(),p("ngIf",!e.showState)}}function Oa(i,t){if(i&1){let e=x();a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3),r(),a(4,"div",59)(5,"div",69)(6,"button",70),C("click",function(){h(e);let o=s(2);return f(o.showState=!0)}),d(7," States "),r(),a(8,"button",70),C("click",function(){h(e);let o=s(2);return f(o.showState=!1)}),d(9," NPOs "),r()(),a(10,"p-button",68),C("click",function(){h(e);let o=s(2);return f(o.sendTo(o.showState?"admin/grant-by-states":"admin/npo-wise-grant"))}),r()()(),m(11,Ra,1,0,"app-no-data-found")(12,Ea,2,2),r()}if(i&2){let e=s(2);l(3),v("Top 10 ",e.showState?"State":"NPOs"," Receiving Grants"),l(3),he("active",e.showState),l(2),he("active",!e.showState),l(3),g(e.tp_st_rec_grt_WdgtNR?11:12)}}function Aa(i,t){if(i&1&&(a(0,"div",15),m(1,Ma,2,0,"div",55)(2,Oa,13,6,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.tp_st_rec_grt_WdgtSclt?1:2)}}function Va(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function Wa(i,t){i&1&&_(0,"app-no-data-found")}function La(i,t){if(i&1){let e=x();a(0,"div",82)(1,"p",46),d(2),r(),a(3,"span",83),C("click",function(){let o=h(e).$implicit,c=s(5);return f(c.schCl(o==null?null:o.schemeName))}),d(4),r()()}if(i&2){let e=t.$implicit,n=s(5);l(),ae("pTooltip",e==null?null:e.schemeName),l(),y(e==null?null:e.schemeName),l(2),v("\u20B9",e!=null&&e.grantReleased?n.formatValue(e==null?null:e.grantReleased):0,"")}}function Ua(i,t){if(i&1){let e=x();a(0,"div",73)(1,"div",74)(2,"div",75),_(3,"round-progress",76),a(4,"div",77),d(5),a(6,"span",37),d(7),r()()()(),a(8,"div",74)(9,"div",75),_(10,"round-progress",76),a(11,"div",77),d(12),a(13,"span",37),d(14,"Others"),r()()()()(),a(15,"div",78)(16,"div",79)(17,"h4",80),d(18),r(),a(19,"p-button",81),C("click",function(){h(e);let o=s(4);return f(o.sendTo("admin/grant-by-schemes"))}),r()(),Ti(20,La,5,3,"div",82,Ii),r()}if(i&2){let e=s(4);l(3),p("current",e.schemePer==null?null:e.schemePer.total)("max",e.schemePer==null?null:e.schemePer.totalGrant)("color","#575E99")("background","#efefef")("stroke",25)("rounded",!0)("clockwise",!1)("responsive",!0)("duration",800)("animation","easeInOutQuart")("animationDelay",100),l(),p("ngStyle",F(28,ii)),l(),v(" ",e.getPercentage(e.schemePer==null?null:e.schemePer.total,e.schemePer==null?null:e.schemePer.totalGrant),"% "),l(2),v("Top ",e.schemePer==null||e.schemePer.topMinistries==null?null:e.schemePer.topMinistries.length,""),l(3),p("current",(e.schemePer==null?null:e.schemePer.totalGrant)-(e.schemePer==null?null:e.schemePer.total))("max",e.schemePer==null?null:e.schemePer.totalGrant)("color","#FE7644")("background","#efefef")("stroke",25)("rounded",!0)("clockwise",!1)("responsive",!0)("duration",800)("animation","easeInOutQuart")("animationDelay",100),l(),p("ngStyle",F(29,ii)),l(),v(" ",e.getPercentage((e.schemePer==null?null:e.schemePer.totalGrant)-(e.schemePer==null?null:e.schemePer.total),e.schemePer==null?null:e.schemePer.totalGrant),"% "),l(6),v(" Top ",e.schemePer==null||e.schemePer.topMinistries==null?null:e.schemePer.topMinistries.length," Scheme Grants Released "),l(2),Di(e.sc
3hemePer==null?null:e.schemePer.topMinistries)}}function Ba(i,t){if(i&1){let e=x();a(0,"div",82)(1,"p",46),d(2),r(),a(3,"span",83),C("click",function(){let o=h(e).$implicit,c=s(5);return f(c.minCl(o==null?null:o.ministryName))}),d(4),r()()}if(i&2){let e=t.$implicit,n=s(5);l(),ae("pTooltip",e==null?null:e.ministryName),l(),y(e==null?null:e.ministryName),l(2),v("\u20B9",e!=null&&e.amount?n.formatValue(e==null?null:e.amount):0,"")}}function Ga(i,t){if(i&1){let e=x();a(0,"div",73)(1,"div",74)(2,"div",75),_(3,"round-progress",76),a(4,"div",77),d(5),a(6,"span",37),d(7),r()()()(),a(8,"div",74)(9,"div",75),_(10,"round-progress",76),a(11,"div",77),d(12),a(13,"span",37),d(14,"Others"),r()()()()(),a(15,"div",78)(16,"div",79)(17,"h4",80),d(18),r(),a(19,"p-button",81),C("click",function(){h(e);let o=s(4);return f(o.sendTo("admin/grant-by-ministries"))}),r()(),Ti(20,Ba,5,3,"div",82,Ii),r()}if(i&2){let e=s(4);l(3),p("current",e.ministryPer==null?null:e.ministryPer.total)("max",e.ministryPer==null?null:e.ministryPer.totalGrant)("color","#575E99")("background","#efefef")("stroke",25)("rounded",!0)("clockwise",!1)("responsive",!0)("duration",800)("animation","easeInOutQuart")("animationDelay",100),l(),p("ngStyle",F(28,ii)),l(),v(" ",e.getPercentage(e.ministryPer==null?null:e.ministryPer.total,e.ministryPer==null?null:e.ministryPer.totalGrant),"% "),l(2),v("Top ",(e.ministryPer==null?null:e.ministryPer.topMinistries.length)>3?3:e.ministryPer==null?null:e.ministryPer.topMinistries.length,""),l(3),p("current",(e.ministryPer==null?null:e.ministryPer.totalGrant)-(e.ministryPer==null?null:e.ministryPer.total))("max",e.ministryPer==null?null:e.ministryPer.totalGrant)("color","#FE7644")("background","#efefef")("stroke",25)("rounded",!0)("clockwise",!1)("responsive",!0)("duration",800)("animation","easeInOutQuart")("animationDelay",100),l(),p("ngStyle",F(29,ii)),l(),v(" ",e.getPercentage((e.ministryPer==null?null:e.ministryPer.totalGrant)-(e.ministryPer==null?null:e.ministryPer.total),e.ministryPer==null?null:e.ministryPer.totalGrant),"% "),l(6),v(" Top ",(e.ministryPer==null?null:e.ministryPer.topMinistries.length)>3?3:e.ministryPer==null?null:e.ministryPer.topMinistries.length," Ministry Grants Released "),l(2),Di(e.ministryPer==null?null:e.ministryPer.topMinistries)}}function za(i,t){if(i&1&&m(0,Ua,22,30)(1,Ga,22,30),i&2){let e=s(3);g(e.isMinistryFilter?0:1)}}function ja(i,t){if(i&1&&(a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3),r()(),m(4,Wa,1,0,"app-no-data-found")(5,za,2,1),r()),i&2){let e=s(2);l(3),v(" ",e.isMinistryFilter?"Scheme":"Ministry"," Percentage in Grant Released "),l(),g(e.min_per_WdgtNR?4:5)}}function Ya(i,t){if(i&1&&(a(0,"div",15),m(1,Va,2,0,"div",55)(2,ja,6,2,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.min_per_WdgtSclt?1:2)}}function Ha(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function $a(i,t){if(i&1){let e=x();a(0,"div",59)(1,"p-button",60),C("click",function(){h(e);let o=s(3);return f(o.showSectorTable=!o.showSectorTable)}),r()()}if(i&2){let e=s(3);l(),ae("icon",e.showSectorTable?"pi pi-chart-line":"pi pi-table"),p("pTooltip",e.showSectorTable?"Switch to Chart View":"Switch to Table View")}}function Ka(i,t){i&1&&_(0,"app-no-data-found")}function qa(i,t){if(i&1&&_(0,"highcharts-chart",63),i&2){let e=s(4);p("Highcharts",e.Highcharts)("constructorType",e.chartConstructor)("options",e.topSectorsOptions)}}function Qa(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"Sector"),r(),a(3,"th"),d(4,"NPOs"),r(),a(5,"th",67),d(6,"% Contribution"),r()())}function Ja(i,t){if(i&1){let e=x();a(0,"tr")(1,"td")(2,"a",84),C("click",function(){let o=h(e).$implicit,c=s(5);return f(c.scNameCl(o==null?null:o.sectorName))}),d(3),r()(),a(4,"td",67),d(5),r(),a(6,"td",67),d(7),k(8,"number"),r()()}if(i&2){let e=t.$implicit,n=s(5);l(3),y((e==null?null:e.sectorName)||"--"),l(2),y((e==null?null:e.ngoCount)||"--"),l(2),v(" ",re(8,3,n.formatPercentage(e==null?null:e.ngoCount,n.totalNgos),"1.2-2")," ")}}function Za(i,t){if(i&1&&(a(0,"div",64)(1,"p-table",65),m(2,Qa,7,0,"ng-template",17)(3,Ja,9,6,"ng-template",66),r()()),i&2){let e=s(4);l(),p("value",e.tab_s1)("paginator",!1)("scrollable",!0)}}function Xa(i,t){if(i&1&&m(0,qa,1,3,"highcharts-chart",61)(1,Za,4,3,"div",62),i&2){let e=s(3);p("ngIf",!e.showSectorTable),l(),p("ngIf",e.showSectorTable)}}function er(i,t){if(i&1&&(a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3,"Top 10 Sectors by NPO Count"),r(),m(4,$a,2,2,"div",58),r(),m(5,Ka,1,0,"app-no-data-found")(6,Xa,2,2),r()),i&2){let e=s(2);l(4),p("ngIf",!e.sector_Wdgt1NR),l(),g(e.sector_Wdgt1NR?5:6)}}function tr(i,t){if(i&1&&(a(0,"div",15),m(1,Ha,2,0,"div",55)(2,er,7,2,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.sector_Wdgt1Sclt?1:2)}}function ir(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function nr(i,t){if(i&1){let e=x();a(0,"p-button",60),C("click",function(){h(e);let o=s(4);return f(o.showSectorTable2=!o.showSectorTable2)}),r()}if(i&2){let e=s(4);ae("icon",e.showSectorTable2?"pi pi-arrow-left":"pi pi-table"),p("pTooltip",e.showSectorTable2?"Back to Chart View":"Switch to Table View")}}function or(i,t){if(i&1&&(a(0,"div",59),m(1,nr,1,2,"p-button",85),r()),i&2){let e=s(3);l(),p("ngIf",e.showSectorTable2)}}function ar(i,t){i&1&&_(0,"app-no-data-found")}function rr(i,t){if(i&1&&_(0,"highcharts-chart",63),i&2){let e=s(4);
3p("Highcharts",e.Highcharts)("constructorType",e.chartConstructor)("options",e.chartOptions)}}function lr(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"Sector"),r(),a(3,"th"),d(4,"NPOs"),r()())}function sr(i,t){if(i&1){let e=x();a(0,"tr")(1,"td")(2,"a",84),C("click",function(){let o=h(e).$implicit,c=s(5);return f(c.scNameCl(o==null?null:o.sectorName))}),d(3),r()(),a(4,"td",67),d(5),r()()}if(i&2){let e=t.$implicit;l(3),y((e==null?null:e.sectorName)||"--"),l(2),y((e==null?null:e.ngoCount)||"--")}}function dr(i,t){i&1&&(a(0,"tr")(1,"td",90),_(2,"img",91),a(3,"h2",92),d(4,"No Sector in this range"),r()()())}function cr(i,t){if(i&1&&(a(0,"div")(1,"h4",87),d(2),r(),a(3,"p-table",88),m(4,lr,5,0,"ng-template",17)(5,sr,6,2,"ng-template",66)(6,dr,5,0,"ng-template",89),r()()),i&2){let e=s(4);l(2),y(e.lable),l(),p("value",e.tab_s2)("paginator",!1)("scrollable",!0)}}function pr(i,t){if(i&1&&m(0,rr,1,3,"highcharts-chart",61)(1,cr,7,4,"div",86),i&2){let e=s(3);p("ngIf",!e.showSectorTable2),l(),p("ngIf",e.showSectorTable2)}}function mr(i,t){if(i&1&&(a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3,"Sector Distribution by NPO Count Range"),r(),m(4,or,2,1,"div",58),r(),m(5,ar,1,0,"app-no-data-found")(6,pr,2,2),r()),i&2){let e=s(2);l(4),p("ngIf",!e.sector_Wdgt2NR),l(),g(e.sector_Wdgt2NR?5:6)}}function _r(i,t){if(i&1&&(a(0,"div",15),m(1,ir,2,0,"div",55)(2,mr,7,2,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.sector_Wdgt2Sclt?1:2)}}function ur(i,t){i&1&&(a(0,"div",55),_(1,"p-skeleton",31),r())}function hr(i,t){i&1&&_(0,"app-no-data-found")}function fr(i,t){if(i&1&&_(0,"highcharts-chart",96),i&2){let e=s(3);p("Highcharts",e.Highcharts)("constructorType",e.chartConstructor)("options",e.chartOptions1)("oneToOne",!0)}}function gr(i,t){if(i&1){let e=x();a(0,"p-card",56)(1,"div",57)(2,"h3"),d(3,"State Wise Top 5 Sectors"),r(),a(4,"div",93)(5,"p-floatLabel")(6,"p-multiSelect",94),j("ngModelChange",function(o){h(e);let c=s(2);return z(c.statedd,o)||(c.statedd=o),f(o)}),C("onChange",function(){h(e);let o=s(2);return f(o.stateDropdownchng())}),r(),a(7,"label",95),d(8,"States"),r()()()(),m(9,hr,1,0,"app-no-data-found")(10,fr,1,4,"highcharts-chart",96),r()}if(i&2){let e=s(2);l(6),p("options",e.state)("resetFilterOnHide",!0),G("ngModel",e.statedd),p("selectionLimit",5)("maxSelectedLabels",1)("resetFilterOnHide",!0),l(3),g(e.sector_Wdgt3NR?9:10)}}function Cr(i,t){if(i&1&&(a(0,"div",15),m(1,ur,2,0,"div",55)(2,gr,11,7,"p-card",56),r()),i&2){let e=s();p("ngClass",e.isAll?"xl:col-4":"xl:col-6"),l(),g(e.sector_Wdgt3Sclt?1:2)}}function br(i,t){i&1&&(a(0,"div",97)(1,"h4",98),d(2,"Filters"),r()())}function yr(i,t){if(i&1){let e=x();a(0,"div",20)(1,"p-floatLabel")(2,"p-dropdown",99,1),C("onChange",function(o){h(e);let c=s();return f(c.onMinstryChange(o.value))})("onClear",function(){h(e);let o=s();return f(o.minstryClear())}),r(),a(4,"label",22),d(5,"Ministry/Department Name"),r()()()}if(i&2){let e=s();l(2),p("options",e.ministries)("showClear",!0)}}function xr(i,t){if(i&1){let e=x();a(0,"div",20)(1,"p-floatLabel")(2,"p-dropdown",100),C("onChange",function(o){h(e);let c=s();return f(c.onStateChange(o.value))})("onClear",function(){h(e);let o=s();return f(o.stateClear())}),r(),a(3,"label",22),d(4,"State"),r()()()}if(i&2){let e=s();l(2),p("options",e.state)("showClear",!0)}}var ni=class i{constructor(t,e,n,o,c){this._service=t;this._router=e;this.fb=n;this.dataService=o;this._enc=c;this.userType=c.decryptData(this.userType),this.ngosWdgt=!0,this.grantValueWdgt=!0,this.ministriesWdgt=!0,this.schemesWdgt=!0,this.yw_Ngo_Enr_Wdgt=!0,this.ngo_typewise_Wdgt=!0,this.tp_st_ngo_reg_Wdgt=!0,this.yw_grt_rel_Wdgt=!0,this.tp_st_rec_grt_Wdgt=!0,this.min_per_Wdgt=!0,this.sector_Wdgt1=!0,this.sector_Wdgt2=!0,this.sector_Wdgt3=!0,this.searchForm=this.fb.group({selectedFinancialYr:[null],selectedMinistryName:[null],selectedSchemeName:[{value:null,disabled:!0}],selectedState:[null],selectedDistrict:[{value:null,disabled:!0}],selectedStatus:[null],selectedNgoType:[null],selectedSector:[null],total:[""]})}disableBodyScroll(){document.body.style.overflow="hidden"}enableBodyScroll(){document.body.style.overflow=""}statedd;isStateUser=!1;
3isMinistryUser=!1;showYwNgoTable=!1;showTwSumTable=!1;showStNgoTable=!1;showSectorTable=!1;showSectorTable2=!1;showStateDistrictView=!1;showState=!0;isAll=!0;isMinistryFilter=!1;sidebarVisible=!1;ngosWdgt=!1;grantValueWdgt=!1;ministriesWdgt=!1;schemesWdgt=!1;yw_Ngo_Enr_Wdgt=!1;ngo_typewise_Wdgt=!1;tp_st_ngo_reg_Wdgt=!1;yw_grt_rel_Wdgt=!1;tp_st_rec_grt_Wdgt=!1;min_per_Wdgt=!1;sector_Wdgt1=!1;sector_Wdgt2=!1;sector_Wdgt3=!1;ngosWdgtSclt=!0;grantValueWdgtSclt=!0;ministriesWdgtSclt=!0;schemesWdgtSclt=!0;yw_Ngo_Enr_WdgtSclt=!0;ngo_typewise_WdgtSclt=!0;tp_st_ngo_reg_WdgtSclt=!0;yw_grt_rel_WdgtSclt=!0;tp_st_rec_grt_WdgtSclt=!0;min_per_WdgtSclt=!0;sector_Wdgt1Sclt=!0;sector_Wdgt2Sclt=!0;sector_Wdgt3Sclt=!0;ngosWdgtNR=!0;grantValueWdgtNR=!0;ministriesWdgtNR=!0;schemesWdgtNR=!0;yw_Ngo_Enr_WdgtNR=!0;ngo_typewise_WdgtNR=!0;tp_st_ngo_reg_WdgtNR=!0;yw_grt_rel_WdgtNR=!0;tp_st_rec_grt_WdgtNR=!0;tp_np_rec_grt_WdgtNR=!0;min_per_WdgtNR=!0;sector_Wdgt1NR=!0;sector_Wdgt2NR=!0;sector_Wdgt3NR=!0;ngoTypes=[];totalNgos=0;searchQuary="";date;Highcharts=Io;chartConstructor="chart";splineOptions={chart:{type:"areaspline"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},xAxis:{categories:[]},yAxis:{title:{text:""},labels:{formatter:function(){return Pe(Number(this.value))}}},plotOptions:{areaspline:{marker:{radius:4,lineColor:"#666666",lineWidth:1},color:"#FF7043",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#f5d1c6"],[1,"#f8f4f2"]]}},series:{point:{events:{click:t=>this.ywNpEnCl(t)}}}},series:[{type:"areaspline",name:"",data:[]}]};pieOptions={chart:{type:"pie"},title:{text:""},credits:{enabled:!1},legend:{enabled:!0},tooltip:{headerFormat:"",pointFormat:"<b>{point.name | inrFormat}<br />{point.y}</b>"},plotOptions:{pie:{showInLegend:!0,allowPointSelect:!0,borderWidth:2,borderRadius:8,cursor:"pointer",dataLabels:[{enabled:!0,format:"{point.percentage:.0f}%",distance:-35,style:{fontWeight:"bold",color:"white",fontSize:"12"}}],colors:["#FF7043","#575E99","#288D85","#db8064","#6774d3","#06e5d2","#bf4520","#303451","#1d7c75"],innerSize:"60%"},series:{point:{events:{click:t=>this.ngoTypeWsCl(t)}}}},series:[{type:"pie",animation:{duration:2e3},data:[]}]};barOptions={chart:{type:"bar"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}<br />{point.y}</b>"},xAxis:{type:"category"},yAxis:{title:{text:""}},plotOptions:{bar:{allowPointSelect:!0,borderWidth:2,cursor:"pointer",borderRadius:6,dataLabels:{enabled:!1},color:"#575E99"},series:{point:{events:{click:t=>this.onTpStCl(t)}}}},series:[{type:"bar",animation:{duration:2e3},data:[]}]};columnOptions={chart:{type:"column"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}<br />{point.y}</b>"},yAxis:{title:{text:""}},xAxis:{type:"category"},plotOptions:{column:{allowPointSelect:!0,borderWidth:2,cursor:"pointer",borderRadius:6,dataLabels:{enabled:!1},color:"#575E99"}},series:[{type:"column",animation:{duration:2e3},data:[]}]};polarOptions={colors:["#FF7043"],chart:{type:"column",polar:!0,inverted:!0},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{outside:!0},pane:{size:"85%",innerSize:"20%",endAngle:270},xAxis:{tickInterval:1,labels:{align:"right",useHTML:!0,allowOverlap:!0,step:1,y:3,style:{fontSize:"13px"}},lineWidth:0,gridLineWidth:0,categories:[]},yAxis:{lineWidth:0,tickInterval:25,reversedStacks:!1,endOnTick:!0,showLastLabel:!0,gridLineWidth:0},plotOptions:{column:{stacking:"normal",borderWidth:0,pointPadding:0,groupPadding:.15,borderRadius:"50%"}},series:[{type:"column",name:"Grants Recieved",data:[]}]};polarOptionsNpo={colors:["#FF7043"],chart:{type:"column",polar:!0,inverted:!0},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{outside:!0},pane:{size:"85%",innerSize:"20%",endAngle:270},xAxis:{tickInterval:1,labels:{align:"right",useHTML:!0,allowOverlap:!0,step:1,y:3,style:{fontSize:"13px"}},lineWidth:0,gridLineWidth:0,categories:[]},yAxis:{lineWidth:0,tickInterval:25,reversedStacks:!1,endOnTick:!0,showLastLabel:!0,gridLineWidth:0},plotOptions:{column:{stacking:"normal",borderWidth:0,pointPadding:0,groupPadding:.15,borderRadius:"50%"}},series:[{type:"column",name:"Grants Recieved",data:[]}]};topCounts;ministryPer;schemePer;searchForm;finYrs=[];ministries=[];schemes=[];district=[];state=[];selectedFilters=[];tab1=[];tab2=[];tab3=[];tab_s1=[];tab_s=[];tab_s2=[];lable="";currentIndex=0;pageSize=5;ministryDropdown;userId=localStorage.getItem("uidzzz");userType=localStorage.getItem("utypezzz");topSectorsData=[];topSectorsOptions={chart:{type:"bar"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}<br />{point.y}</b>"},xAxis:{type:"category"},yAxis:{title:{text:""},labels:{formatter:function(){return Pe(Number(this.value))}}},plotOptions:{bar:{allowPointSelect:!0,borderWidth:2,cursor:"pointer",borderRadius:6,dataLabels:{enabled:!1},color:"#FF7043"},series:{point:{events:{click:t=>this.scChCl(t)}}}},series:[{type:"bar",animation:{duration:2e3},data:this.topSectorsData}]};chartOptions={chart:{plotBorderWidth:0,plotShadow:!1},title:{text:""},credits:{enabled:!1},legend:{enabled:!0,align:"center",layout:"horizontal",verticalAlign:"bottom"},tooltip:{outside:!0,formatter:function(){let t=this,n=(t.custom?.sectors??[]).map(o=>o.sectorName).join(", ");return`<span style="color:${t.color}">\u25CF</span> Range: ${t.name}<br/>Sectors: <b>${n||"--"}</b>`}},plotOptions:{pie:{allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!0,formatter:function(){return`${(this.custom?.sectors??[]).length} sectors`},style:{fontWeight:"normal"}},colors:["#FF7043","#575E99","#288D85","#db8064","#6774d3","#06e5d2","#bf4520","#303451","#1d7c75"],startAngle:-90,endAngle:90,center:["50%","75%"],size:"75%"},series:{point:{events:{click:t=>{let e=t.point;this.showSectorTable2=!0,this.tab_s2=e.custom?.sectors||[]}}}}},exporting:{enabled:!0,showTable:!0},series:[{type:"pie",innerSize:"50%",showInLegend:!0,data:[]}]};sectors=[];widget8Data=null;chartOptions1={chart:{type:"packedbubble"},title:{text:""},subtitle:{text:""},credits:{enabled:!1},legend:{enabled:!0},tooltip:{pointFormat:"<b>{point.name}:</b> {point.value} NPOs"},plotOptions:{packedbubble:{minSize:"20%",layoutAlgorithm:{gravitationalConstant:.05,splitSeries:!0,seriesInteraction:!1,dragBetweenSeries:!0,parentNodeLimit:!0},dataLabels:{enabled:!0,format:"{point.shortName}",filter:{property:"y",operator:">",value:1},style:{color:"black",textOutline:"none",fontWeight:"normal",fontSize:"10"}},marker:{fillOpacity:1}},series:{point:{events:{click:t=>this.stScCl(t)}}}},series:[]};
3ngOnInit(){this.getSectors(),this.userType==="MINISTRYADMIN"?this.userId?(this.isMinistryUser=!0,this.ministriesWdgt=!1,this.getMinistries(!0)):this._router.navigate(["login"]):this.userType==="STATEADMIN"?this.userId?(this.isStateUser=!0,this.isAll=!1,this.getStates(!0)):this._router.navigate(["login"]):this.dataService.hasData?this.setData():(this.getFinancialYr(),this.getMinistries(),this.getStates(),this.getNgoTypes(),this.getData())}getSectors(){this._service.getGenKeys(S.APIUrl,"SECTOR_WA").subscribe(t=>{t.statusCode.includes("001")&&(this.sectors=t?.genealKeyLst)})}updateSelectedFilters(t){this.selectedFilters=[],t.selectedFinancialYr&&this.selectedFilters.push({label:`Financial Year: ${t.selectedFinancialYr.value}`,name:`${t.selectedFinancialYr.value}`,value:"selectedFinancialYr"}),t.selectedMinistryName&&this.selectedFilters.push({label:`Ministry: ${t.selectedMinistryName.dsplyName}`,name:`${t.selectedMinistryName.dsplyName}`,value:"selectedMinistryName"}),t.selectedSchemeName&&this.selectedFilters.push({label:`Scheme: ${t.selectedSchemeName.dsplyName}`,name:`${t.selectedSchemeName.dsplyName}`,value:"selectedSchemeName"}),t.selectedState&&this.selectedFilters.push({label:`State: ${t.selectedState.stateName}`,name:`${t.selectedState.stateName}`,value:"selectedState"}),t.selectedDistrict&&this.selectedFilters.push({label:`District: ${t.selectedDistrict.districtName}`,name:`${t.selectedDistrict.districtName}`,value:"selectedDistrict"})}getNgoTypes(){this._service.getGenKeys(S.APIUrl,"NGOTYPE").subscribe(t=>{t.statusCode.includes("001")&&(this.ngoTypes=t?.genealKeyLst,this.dataService.ngoTypes=t?.genealKeyLst)})}getMinistries(t){this._service.getMinistries(S.APIUrl).subscribe(e=>{if(e.statusCode.includes("001")&&(this.ministries=e?.report,this.dataService.ministries=e?.report,t)){let n=e?.report.find(o=>o.id==this.userId);this.searchForm.patchValue({selectedMinistryName:n}),this.onMinstryChange(n),this.dataService.hasData?this.setData():(this.getFinancialYr(),this.getStates(),this.getNgoTypes(),this.search())}})}getSchemes(t){this._service.getSchemes(S.APIUrl,t).subscribe(e=>{e.statusCode.includes("001")&&(this.schemes=e?.report)})}getFinancialYr(){this._service.getGenKeys(S.APIUrl,"FIN_YEAR").subscribe(t=>{t.statusCode.includes("001")&&(this.finYrs=t?.genealKeyLst,this.dataService.finYrs=t?.genealKeyLst)})}getStates(t){this._service.getStates(S.APIUrl).subscribe(e=>{if(e.statusCode.includes("001")&&(this.state=e?.mstrStates,this.dataService.state=e?.mstrStates,t)){let n=e?.mstrStates.find(o=>o.stateId==this.userId);this.searchForm.patchValue({selectedState:n}),this.onStateChange(n),this.dataService.hasData?this.setData():(this.getFinancialYr(),this.getMinistries(),this.getNgoTypes(),this.search())}})}getDistricts(t){this._service.getDistricts(S.APIUrl,t).subscribe(e=>{e.statusCode.includes("001")&&(this.district=e?.mstrDistricts)})}onMinstryChange(t){this.searchForm.patchValue({selectedSchemeName:null}),t&&(this.searchForm.get("selectedSchemeName")?.enable(),this.getSchemes(t.id))}minstryClear(){this.searchForm.patchValue({selectedSchemeName:null}),this.searchForm.get("selectedSchemeName")?.disable()}onStateChange(t){this.searchForm.patchValue({selectedDistrict:null}),t&&(t.stateId!==99?(this.searchForm.get("selectedDistrict")?.enable(),this.getDistricts(t.stateId)):this.searchForm.get("selectedDistrict")?.disable())}stateClear(){this.searchForm.patchValue({selectedDistrict:null}),this.searchForm.get("selectedDistrict")?.disable()}search(){this.searchQuary="";let t=this.searchForm.value,e={};this.isMinistryFilter=!1,t.selectedState?(e.stateId=t.selectedState.stateId,this.tp_st_ngo_reg_Wdgt=!1,this.sector_Wdgt3=!1,this.tp_st_rec_grt_Wdgt=!1,this.isAll=!1):(this.tp_st_ngo_reg_Wdgt=!0,this.tp_st_rec_grt_Wdgt=!0,this.isAll=!0,this.sector_Wdgt3=!0),t.selectedDistrict&&(e.dstrctId=t.selectedDistrict.districtId),t.selectedFinancialYr?(e.financialYear=t.selectedFinancialYr?.value,this.sector_Wdgt1=!1,this.sector_Wdgt2=!1,this.sector_Wdgt3=!1):t.selectedState?(this.sector_Wdgt1=!0,this.sector_Wdgt2=!0,this.sector_Wdgt3=!1):(this.sector_Wdgt1=!0,this.sector_Wdgt2=!0,this.sector_Wdgt3=!0),t.selectedMinistryName&&(e.ministryId=t.selectedMinistryName?.id,this.isMinistryFilter=!0),t.selectedSchemeName&&(e.schemeId=t.selectedSchemeName?.id),this.searchQuary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this.searchQuary!==""&&(this.searchQuary="?"+this.searchQuary),this.getData(),this.dataService.formValues=t,this.updateSelectedFilters(t)}searchDebounceTimer;removeChip(t){this.searchForm.get(t)?.patchValue(null),t==="selectedMinistryName"?this.minstryClear():t==="selectedState"&&this.stateClear(),clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=setTimeout(()=>{this.search()},300)}isanyActive(){return this.ngosWdgtSclt||this.grantValueWdgtSclt||this.ministriesWdgtSclt||this.schemesWdgtSclt||this.yw_Ngo_Enr_WdgtSclt||this.ngo_typewise_WdgtSclt||this.yw_grt_rel_WdgtSclt||this.tp_st_rec_grt_WdgtSclt||this.min_per_WdgtSclt||this.tp_st_ngo_reg_WdgtSclt}truncate(t,e=10){return t.length>e?t.substring(0,e)+"...":t}getData(){this.dataService.hasData=!0,this.sidebarVisible=!1,this.ngosWdgtSclt=!0,this.grantValueWdgtSclt=!0,this.ministriesWdgtSclt=!0,this.schemesWdgtSclt=!0,this.yw_Ngo_Enr_WdgtSclt=!0,this.ngo_typewise_WdgtSclt=!0,this.yw_grt_rel_WdgtSclt=!0,this.tp_st_rec_grt_WdgtSclt=!0,this.min_per_WdgtSclt=!0,this.tp_st_ngo_reg_WdgtSclt=!0,this.sector_Wdgt1Sclt=!0,this.sector_Wdgt2Sclt=!0,this.sector_Wdgt3Sclt=!0,this.getCountWidgtDetails(),this.getYwNgoEnrolledDetail
3s(),this.getNgoTySummaryDetails(),this.getYearWiseGrantRelDetails(),this.isMinistryFilter?this.getSchemeWiseReport():this.getMinGrantPersDetails(),this.isAll&&this.getTopStatesDetails(),this.isAll&&this.getTpStateGrantRelDetails(),this.getTpNgoGrantRelDetails(),this.getSectorNGOs(),this.isAll&&this.getStateSector()}setData(){if(this.dataService.formValues!==null){let t=this.dataService.formValues;t?.selectedState&&t?.selectedState!==null?(this.onStateChange(t?.selectedState),this.tp_st_ngo_reg_Wdgt=!1,this.tp_st_rec_grt_Wdgt=!1,this.sector_Wdgt3=!1,this.isAll=!1):(this.tp_st_ngo_reg_Wdgt=!0,this.tp_st_rec_grt_Wdgt=!0,this.sector_Wdgt3=!0,this.isAll=!0),t?.selectedFinancialYr?(this.sector_Wdgt1=!1,this.sector_Wdgt2=!1,this.sector_Wdgt3=!1):t?.selectedState?(this.sector_Wdgt1=!0,this.sector_Wdgt2=!0,this.sector_Wdgt3=!1):(this.sector_Wdgt1=!0,this.sector_Wdgt2=!0,this.sector_Wdgt3=!0),t?.selectedMinistryName&&t?.selectedMinistryName!==null&&this.onMinstryChange(t?.selectedMinistryName),setTimeout(()=>{this.searchForm.patchValue({selectedFinancialYr:t?.selectedFinancialYr&&t?.selectedFinancialYr!==null?t?.selectedFinancialYr:null,selectedMinistryName:t?.selectedMinistryName&&t?.selectedMinistryName!==null?t?.selectedMinistryName:null,selectedState:t?.selectedState&&t?.selectedState!==null?t?.selectedState:null}),(t?.selectedSchemeName&&t?.selectedSchemeName!==null||t?.selectedDistrict&&t?.selectedDistrict!==null)&&(t?.selectedSchemeName&&t?.selectedSchemeName!==null&&this.searchForm.patchValue({selectedSchemeName:t?.selectedSchemeName}),t?.selectedDistrict&&t?.selectedDistrict!==null&&this.searchForm.patchValue({selectedDistrict:t?.selectedDistrict}));let e=this.searchForm.value;this.updateSelectedFilters(e)},250)}if(this.ngosWdgtNR=!1,this.grantValueWdgtNR=!1,this.ministriesWdgtNR=!1,this.schemesWdgtNR=!1,this.yw_Ngo_Enr_WdgtNR=!1,this.ngo_typewise_WdgtNR=!1,this.tp_st_ngo_reg_WdgtNR=!1,this.yw_grt_rel_WdgtNR=!1,this.tp_st_rec_grt_WdgtNR=!1,this.tp_np_rec_grt_WdgtNR=!1,this.min_per_WdgtNR=!1,this.sector_Wdgt1NR=!1,this.dataService.finYrs.length>0?this.finYrs=this.dataService.finYrs:this.getFinancialYr(),this.dataService.ministries.length>0?this.ministries=this.dataService.ministries:this.getMinistries(),this.dataService.state.length>0?this.state=this.dataService.state:this.getStates(),this.dataService.ngoTypes.length>0?this.ngoTypes=this.dataService.ngoTypes:this.getNgoTypes(),this.dataService.topCounts!==null?this.setCountWidgtDetails(this.dataService.topCounts):this.getCountWidgtDetails(),this.dataService.chWdgt1.length>0?this.setYwNgoEnrolledDetails(this.dataService.chWdgt1):this.getYwNgoEnrolledDetails(),this.dataService.chWdgt2.length>0?this.setNgoTySummaryDetails(this.dataService.chWdgt2):this.getNgoTySummaryDetails(),this.dataService.chWdgt3.length>0?this.setTopStatesDetails(this.dataService.chWdgt3):this.getTopStatesDetails(),this.dataService.chWdgt4.length>0?this.setYearWiseGrantRelDetails(this.dataService.chWdgt4):(this.yw_grt_rel_WdgtNR=!0,this.yw_grt_rel_WdgtSclt=!1),this.dataService.chWdgt5.length>0?this.setTpStateGrantRelDetails(this.dataService.chWdgt5):(this.tp_st_rec_grt_WdgtNR=!0,this.tp_st_rec_grt_WdgtSclt=!1),this.dataService.chWdgt5_1.length>0?this.setTpNpoGrantRelDetails(this.dataService.chWdgt5_1):(this.tp_np_rec_grt_WdgtNR=!0,this.tp_st_rec_grt_WdgtSclt=!1),this.dataService.chWdgt7.length>0?this.setSectorNGOs(this.dataService.chWdgt7):this.getSectorNGOs(),this.dataService.chWdgt8!==null?this.setStateSector(!0):this.getStateSector(),this.dataService.chWdgt6!==null)this.setMinGrantPersDetails(this.dataService.chWdgt6),this.isMinistryFilter=!1;else if(this.dataService.schemePer!==null)this.setSchemeWiseReport(this.dataService.schemePer),this.isMinistryFilter=!0;else if(this.dataService.formValues){let t=this.dataService.formValues;t?.selectedMinistryName&&t?.selectedMinistryName!==null?this.isMinistryFilter=!0:this.isMinistryFilter=!1,this.min_per_WdgtNR=!0,this.min_per_WdgtSclt=!1}else this.getMinGrantPersDetails(),this.isMinistryFilter=!1}getCountWidgtDetails(){this.ngosWdgtNR=!1,this.grantValueWdgtNR=!1,this.ministriesWdgtNR=!1,this.schemesWdgtNR=!1,this._service.getCountWidgtDetails(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.setCountWidgtDetails(t?.widget),this.dataService.topCounts=t?.widget):(this.ngosWdgtSclt=!1,this.grantValueWdgtSclt=!1,this.ministriesWdgtSclt=!1,this.schemesWdgtSclt=!1,this.ngosWdgtNR=!0,this.grantValueWdgtNR=!0,this.ministriesWdgtNR=!0,this.schemesWdgtNR=!0)})}
3getYwNgoEnrolledDetails(){let t=new URLSearchParams(this.searchQuary);t.get("stateId")=="99"&&t.delete("stateId");let e="?"+t.toString();this.yw_Ngo_Enr_WdgtNR=!1,this._service.getYwNgoEnrolledDetails(S.APIUrl,e).subscribe(n=>{n.statusCode.includes("001")?(this.setYwNgoEnrolledDetails(n?.widget),this.dataService.chWdgt1=n?.widget):(this.dataService.chWdgt1=[],this.yw_Ngo_Enr_WdgtSclt=!1,this.yw_Ngo_Enr_WdgtNR=!0)})}getNgoTySummaryDetails(){let t=new URLSearchParams(this.searchQuary);t.get("stateId")=="99"&&t.delete("stateId");let e="?"+t.toString();this.ngo_typewise_WdgtNR=!1,this._service.getNgoTySummaryDetails(S.APIUrl,e).subscribe(n=>{n.statusCode.includes("001")?(this.setNgoTySummaryDetails(n?.widget),this.dataService.chWdgt2=n?.widget):(this.dataService.chWdgt2=[],this.ngo_typewise_WdgtSclt=!1,this.ngo_typewise_WdgtNR=!0)})}getTopStatesDetails(){this.tp_st_ngo_reg_WdgtNR=!1,this._service.getTopStatesDetails(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.setTopStatesDetails(t?.widget),this.dataService.chWdgt3=t?.widget):(this.dataService.chWdgt3=[],this.tp_st_ngo_reg_WdgtSclt=!1,this.tp_st_ngo_reg_WdgtNR=!0)})}getYearWiseGrantRelDetails(){this.yw_grt_rel_WdgtNR=!1,this._service.getYearWiseGrantRelDetails(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.setYearWiseGrantRelDetails(t?.widget),this.dataService.chWdgt4=t?.widget):(this.dataService.chWdgt4=[],this.yw_grt_rel_WdgtSclt=!1,this.yw_grt_rel_WdgtNR=!0)})}getTpStateGrantRelDetails(){this.tp_st_rec_grt_WdgtNR=!1,this._service.getTpStateGrantRelDetails(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.setTpStateGrantRelDetails(t?.widget),this.dataService.chWdgt5=t?.widget):(this.dataService.chWdgt5=[],this.tp_st_rec_grt_WdgtSclt=!1,this.tp_st_rec_grt_WdgtNR=!0)})}getTpNgoGrantRelDetails(){this.tp_np_rec_grt_WdgtNR=!1,this._service.getTpNgoGrantRelDetails(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.setTpNpoGrantRelDetails(t?.widget),this.dataService.chWdgt5_1=t?.widget):(this.dataService.chWdgt5=[],this.tp_st_rec_grt_WdgtSclt=!1,this.tp_np_rec_grt_WdgtNR=!0)})}getSectorNGOs(){this.sector_Wdgt1NR=!1,this._service.getSectorNgo(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.setSectorNGOs(t?.widget),this.dataService.chWdgt7=t?.widget):(this.dataService.chWdgt7=[],this.sector_Wdgt1Sclt=!1,this.sector_Wdgt1NR=!0,this.sector_Wdgt2Sclt=!1,this.sector_Wdgt2NR=!0)})}getStateSector(){this.sector_Wdgt3NR=!1,this._service.getStateSector(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.dataService.chWdgt8=t?.widget,this.widget8Data=t?.widget,this.setStateSector(!1)):(this.dataService.chWdgt8=[],this.sector_Wdgt3Sclt=!1,this.sector_Wdgt3NR=!0)})}getMinGrantPersDetails(){this.min_per_WdgtNR=!1,this._service.getMinGrantPersDetails(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.setMinGrantPersDetails(t?.widget),this.dataService.chWdgt6=t?.widget,this.dataService.schemePer=null):(this.dataService.chWdgt6=null,this.dataService.schemePer=null,this.min_per_WdgtSclt=!1,this.min_per_WdgtNR=!0)})}getSchemeWiseReport(){this._service.getSchemeWiseReports(S.APIUrl,this.searchQuary).subscribe(t=>{t.statusCode.includes("001")?(this.min_per_WdgtNR=!1,this.setSchemeWiseReport(t?.report),this.dataService.schemePer=t?.report,this.dataService.chWdgt6=null):(this.dataService.chWdgt6=null,this.dataService.schemePer=null,this.min_per_WdgtSclt=!1,this.min_per_WdgtNR=!0)})}setCountWidgtDetails(t){this.topCounts=t,this.ngosWdgtSclt=!1,this.grantValueWdgtSclt=!1,this.ministriesWdgtSclt=!1,this.schemesWdgtSclt=!1}setYwNgoEnrolledDetails(t){this.tab1=[...t].reverse();let e=t.filter(c=>c.year>="2017-18"),n=e.map(c=>c.year+" "),o=e.map(c=>c.value);this.splineOptions={chart:{type:"areaspline"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},xAxis:{categories:n,labels:{padding:10,style:{whiteSpace:"nowrap"}}},yAxis:{title:{text:""},labels:{formatter:function(){return Pe(Number(this.value))}}},tooltip:{useHTML:!0,formatter:function(){return`
4            <b>${this.series.chart.xAxis[0].categories[this.index]}</b><br/>
5            <b>${this.y!==void 0?Pe(this.y):"-"}</b>
6          `}},plotOptions:{areaspline:{marker:{radius:4,lineColor:"#666666",lineWidth:1},color:"#FF7043",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#f5d1c6"],[1,"#f8f4f2"]]}},series:{point:{events:{click:c=>this.ywNpEnCl(c)}}}},series:[{type:"areaspline",name:"",data:o}]},this.yw_Ngo_Enr_WdgtSclt=!1,this.yw_Ngo_Enr_WdgtNR=!1}setNgoTySummaryDetails(t){this.tab2=t;let e=t.map(o=>({name:o.type,y:o.count})),n=gt;this.pieOptions={chart:{type:"pie"},title:{text:""},credits:{enabled:!1},legend:{enabled:!0},tooltip:{headerFormat:"",useHTML:!0,formatter:function(){return`<b>${this.name}<br/>${n(this.y??0)}</b>`}},plotOptions:{pie:{showInLegend:!0,allowPointSelect:!0,borderWidth:2,borderRadius:8,cursor:"pointer",dataLabels:[{enabled:!0,format:"{point.percentage:.0f}%",distance:-35,style:{fontWeight:"bold",color:"white",fontSize:"12"}}],colors:["#FF7043","#575E99","#288D85","#db8064","#6774d3","#06e5d2","#bf4520","#303451","#1d7c75"],innerSize:"60%"},series:{point:{events:{click:o=>this.ngoTypeWsCl(o)}}}},series:[{type:"pie",animation:{duration:2e3},data:e}]},this.ngo_typewise_WdgtSclt=!1,this.ngo_typewise_WdgtNR=!1}setTopStatesDetails(t){this.tab3=t;let e=t.map(o=>
6({name:o.stateName==="ALL"?"Central":o.stateName,y:o.count})).slice(0,10),n=gt;this.barOptions={chart:{type:"bar"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{headerFormat:"",useHTML:!0,formatter:function(){return`<b>${this.name}<br/>${n(this.y??0)}</b>`}},xAxis:{type:"category"},yAxis:{title:{text:""},labels:{formatter:function(){return Pe(Number(this.value))}}},plotOptions:{bar:{maxPointWidth:30,allowPointSelect:!0,borderWidth:2,cursor:"pointer",borderRadius:6,dataLabels:{enabled:!1},color:"#575E99"},series:{point:{events:{click:o=>this.onTpStCl(o)}}}},series:[{type:"bar",animation:{duration:2e3},data:e}]},this.tp_st_ngo_reg_WdgtSclt=!1,this.tp_st_ngo_reg_WdgtNR=!1}setYearWiseGrantRelDetails(t){let e=t.map(o=>({name:o.year,y:o.value})),n=gt;this.columnOptions={chart:{type:"column"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{headerFormat:"",useHTML:!0,formatter:function(){return`<b>${this.name}<br/>\u20B9${n(this.y??0)}</b>`}},yAxis:{title:{text:""},labels:{formatter:function(){return Pe(Number(this.value))}}},xAxis:{type:"category",labels:{padding:10,style:{whiteSpace:"nowrap"}}},plotOptions:{column:{maxPointWidth:30,allowPointSelect:!0,borderWidth:2,cursor:"pointer",borderRadius:6,dataLabels:{enabled:!1},color:"#575E99"},series:{point:{events:{click:o=>this.yrwsGT(o)}}}},series:[{type:"column",animation:{duration:2e3},data:e}]},this.yw_grt_rel_WdgtSclt=!1,this.yw_grt_rel_WdgtNR=!1}setTpStateGrantRelDetails(t){t.sort((b,me)=>(me.count??0)-(b.count??0));let e=gt,n=t.map(b=>b.stateName==="ALL"?"Central":b.stateName),o=t.map(b=>b.count),u=Math.max(...o)/6,D=(b=>b<=50?50:b<=100?100:b<=250?250:b<=500?500:b<=1e3?1e3:b<=2e3?2e3:b<=5e3?5e3:b<=1e4?1e4:b<=25e3?25e3:b<=5e4?5e4:b<=1e5?1e5:b<=25e4?25e4:b<=5e5?5e5:b<=1e6?1e6:b<=25e5?25e5:b<=5e6?5e6:b<=1e7?1e7:b<=25e6?25e6:b<=5e7?5e7:b<=1e8?1e8:b<=25e7?25e7:b<=5e8?5e8:b<=1e9?1e9:b<=25e8?25e8:b<=5e9?5e9:b<=1e10?1e10:b<=25e9?25e9:b<=5e10?5e10:b<=1e11?1e11:b<=25e10?25e10:b<=5e11?5e11:b<=1e12?1e12:Math.ceil(b/1e12)*1e12)(u);setTimeout(()=>{this.polarOptions={colors:["#FF7043"],chart:{type:"column",polar:!0,inverted:!0},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{outside:!0,headerFormat:"",useHTML:!0,formatter:function(){return`<b>${this.category}<br/>\u20B9${e(this.y??0)}</b>`}},pane:{size:"70%",innerSize:"10%",endAngle:270},xAxis:{tickInterval:1,labels:{align:"right",useHTML:!0,allowOverlap:!0,step:1,y:3,style:{fontSize:"13px"}},lineWidth:0,gridLineWidth:0,categories:n},yAxis:{lineWidth:0,tickInterval:D,reversedStacks:!1,endOnTick:!0,showLastLabel:!0,gridLineWidth:0,labels:{formatter:function(){return Pe(Number(this.value))}}},plotOptions:{column:{stacking:"normal",borderWidth:0,pointPadding:0,groupPadding:.15,borderRadius:"50%",maxPointWidth:30},series:{point:{events:{click:b=>this.stRsGtCl(b)}}}},series:[{type:"column",name:"Grants Recieved",data:o}]},this.tp_st_rec_grt_WdgtSclt=!1,this.tp_st_rec_grt_WdgtNR=!1},100)}setTpNpoGrantRelDetails(t){t.sort((b,me)=>(me.count??0)-(b.count??0));let e=gt,n=t.map(b=>b.ngoName),o=t.map(b=>b.totalGrants),u=Math.max(...o)/6,D=(b=>b<=50?50:b<=100?100:b<=250?250:b<=500?500:b<=1e3?1e3:b<=2e3?2e3:b<=5e3?5e3:b<=1e4?1e4:b<=25e3?25e3:b<=5e4?5e4:b<=1e5?1e5:b<=25e4?25e4:b<=5e5?5e5:b<=1e6?1e6:b<=25e5?25e5:b<=5e6?5e6:b<=1e7?1e7:b<=25e6?25e6:b<=5e7?5e7:b<=1e8?1e8:b<=25e7?25e7:b<=5e8?5e8:b<=1e9?1e9:b<=25e8?25e8:b<=5e9?5e9:b<=1e10?1e10:b<=25e9?25e9:b<=5e10?5e10:b<=1e11?1e11:b<=25e10?25e10:b<=5e11?5e11:b<=1e12?1e12:Math.ceil(b/1e12)*1e12)(u);setTimeout(()=>{this.polarOptionsNpo={colors:["#FF7043"],chart:{type:"column",polar:!0,inverted:!0},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{outside:!0,headerFormat:"",useHTML:!0,formatter:function(){return`<b>${this.category}<br/>\u20B9${e(this.y??0)}</b>`}},pane:{size:"80%",innerSize:"10%",endAngle:270},xAxis:{tickInterval:1,labels:{align:"right",useHTML:!0,allowOverlap:!0,step:1,y:3,style:{fontSize:"13px"}},lineWidth:0,gridLineWidth:0,categories:n},yAxis:{lineWidth:0,tickInterval:D,reversedStacks:!1,endOnTick:!0,showLastLabel:!0,gridLineWidth:0,labels:{formatter:function(){return Pe(Number(this.value))}}},plotOptions:{column:{stacking:"normal",borderWidth:0,pointPadding:0,groupPadding:.15,borderRadius:"50%",maxPointWidth:30},series:{point:{events:{click:b=>this.sendTo("admin/npo-wise-grant")}}}},series:[{type:"column",name:"Grants Recieved",data:o}]},this.tp_st_rec_grt_WdgtSclt=!1,this.tp_st_rec_grt_WdgtNR=!1},100)}setSectorNGOs(t){this.tab_s1=t,this.totalNgos=t.reduce((e,n)=>e+(n.ngoCount||0),0),this.setSectorCh1(t),this.setSectorCh2(t)}setSectorCh1(t){let e=t.map(o=>({name:o.sectorName,y:o.ngoCount})).slice(0,10),n=gt;this.topSectorsOptions={chart:{type:"bar"},title:{text:""},credits:{enabled:!1},legend:{enabled:!1},tooltip:{headerFormat:"",useHTML:!0,formatter:function(){return`<b>${this.name}<br/>${n(this.y??0)}</b>`}},xAxis:{type:"category"},yAxis:{title:{text:""},labels:{formatter:function(){return Pe(Number(this.value))}}},plotOptions:{bar:{allowPointSelect:!0,borderWidth:2,cursor:"pointer",borderRadius:6,dataLabels:{enabled:!1},color:"#FF7043"},series:{point:{events:{click:o=>this.scChCl(o)}}}},series:[{type:"bar",animation:{duration:2e3},data:e}]},this.sector_Wdgt1Sclt=!1,this.sector_Wdgt1NR=!1}setSectorCh2(t){if(!t?.length)return;let e=t.length>5?t[5].ngoCount:t[t.length-1].ngoCount,n=vr(e),o=Math.ceil(e/n)*n,c=o/5,u=[];for(let D=0;D<5;D++)u.push({min:D*c,max:(D+1)*c,sectors:[]});u.push({min:o,max:1/0,sectors:[]}),t.forEach(D=>{let{sectorName:b,ngoCount:me}=D,wt=u.find(Nt=>me>Nt.min&&me<=Nt.max);wt&&wt.sectors.push({sectorName:b,ngoCount:me})});let T=u.map((D,b)=>({name:b===5?`${Ai(D.min)}+ NPOs`:`${Ai(D.min)} - ${Ai(D.max)} NPOs`,y:D.sectors.length,custom:{sectors:D.sectors}}));this.chartOptions={chart:{plotBorderWidth:0,plotShadow:!1},title:{text:""},credits:{enabled:!1},legend:{enabled:!0,align:"center",layout:"horizontal",verticalAlign:"bottom"},tooltip:{outside:!0,formatter:function(){let D=this,b=D.custom?.sectors??[],me=b.map(Nt=>Nt.sectorName).slice(0,5).join(", "),wt=b.length>5?" ...":"";return`<span style="color:${D.color}">\u25CF</span> Range: ${D.name}<br/>Sectors: <b>${me||"--"}${wt}</b>`}},plotOptions:{pie:{allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!0,formatter:function(){return`${(this.custom?.sectors??[]).length} sectors`},style:{fontWeight:"normal"}},colors:["#FF7043","#1976D2","#2E7D32","#546E7A","#A1887F","#0097A7"],startAngle:-90,endAngle:90,center:["50%","75%"],size:"75%"},series:{point:{events:{click:D=>{let b=D.point;this.showSectorTable2=!0,this.lable=b.name,this.tab_s2=b.custom?.sectors||[]}}}}},exporting:{enabled:!0,showTable:!0},series:[{type:"pie",innerSize:"50%",showInLegend:!0,data:T}]},this.sector_Wdgt2Sclt=!1,this.sector_Wdgt2NR=!1}setStateSector(t){t&&(this.widget8Data=this.dataService.chWdgt8);let e=Object.keys(this.widget8Data.statesToDsply).map(n=>+n);this.statedd=this.state.filter(n=>e.includes(n.stateId)).map(n=>n.stateId),this.stateDropdownchng()}stateDropdownchng(){if(this.statedd.length>0){let t=["#C62828","#1976D2","#2E7D32","#8E24AA","#0097A7"],e=this.widget8Data.stateSectors.filter(n=>this.statedd.includes(n.stateId)).map((n,o)=>({name:n.stateName,type:"packedbubble",color:t[o%t.length],data:n.sectors.slice(0,5).map(c=>({name:c.sectorName,shortName:c.sectorName?c.sectorName.charAt(0).toUpperCase():"",value:c.ngoCount}))}));this.chartOptions1={chart:{type:"packedbubble"},title:{text:""},subtitle:{text:""},credits:{enabled:!1},legend:{enabled:!0},tooltip:{pointFormat:"<b>{point.name}:</b> {point.value} NPOs"},plotOptions:{packedbubble:{minSize:"20%",layoutAlgorithm:{gravitationalConstant:.05,splitSeries:!0,seriesInteraction:!1,dragBetweenSeries:!0,parentNodeLimit:!0},dataLabels:{enabled:!0,format:"{point.shortName}",filter:{property:"y",operator:">",value:1},style:{color:"black",textOutline:"none",fontWeight:"normal",fontSize:"10"}}},series:{point:{events:{click:n=>this.stScCl(n)}}}},series:e},this.sector_Wdgt3Sclt=!1,this.sector_Wdgt3NR=!1}else this.sector_Wdgt3Sclt=!1,this.sector_Wdgt3NR=!0}nextStates(){this.currentIndex+1<this.widget8Data.stateSectors.length&&(this.currentIndex+=this.pageSize,this.setStateSector(!1))}prevStates(){this.currentIndex-this.pageSize>=0&&(this.currentIndex-=this.pageSize,this.setStateSector(!1))}setMinGrantPersDetails(t){this.ministryPer=t,this.ministryPer?.topMinistries&&this.ministryPer?.topMinistries.length>0?(this.ministryPer.total=this.ministryPer.topMinistries.reduce((e,n)=>e+n.amount,0),this.min_per_WdgtNR=!1):this.min_per_WdgtNR=!0,this.min_per_WdgtSclt=!1}setSchemeWiseReport(t){if(this.schemePer={topMinistries:[],totalGrant:0,total:0},t&&t.length>0){t.sort((o,c)=>(c.grantReleased??0)-(o.grantReleased??0));let e=t.reduce((o,c)=>o+(c.grantReleased??0),0),n=t.slice(0,3).reduce((o,c)=>o+(c.grantReleased??0),0);this.schemePer.topMinistries=t.slice(0,3),this.schemePer.totalGrant=e,this.schemePer.total=n}
6else this.min_per_WdgtNR=!0;this.min_per_WdgtSclt=!1}onTpStCl(t){if(t?.point?.name){let e=this.state.filter(n=>n.stateName==t.point.name);this.searchForm.patchValue({selectedState:e[0],selectedStatus:{name:"ALL",value:3}}),this.sendTo("admin/ngo-enrollment")}}yrwsGT(t){if(t?.point?.name){let e=this.finYrs.filter(n=>n.value==t.point.name.trim());this.searchForm.patchValue({selectedFinancialYr:e[0]}),this.sendTo("admin/yearly-grant")}}ywNpEnCl(t){if(t?.point?.category){let e=this.finYrs.filter(n=>n.value==t.point.category.trim());this.searchForm.patchValue({selectedFinancialYr:e[0],selectedStatus:{name:"ALL",value:3}}),this.sendTo("admin/ngo-enrollment")}}stRsGtCl(t){if(t?.point?.category){let e=this.state.filter(n=>n.stateName==t.point.category);this.searchForm.patchValue({selectedState:e[0]}),this.sendTo("admin/grant-by-states")}}npRsGtCl(t){}ngoTypeWsCl(t){if(t?.point?.name){let e=this.ngoTypes.filter(n=>n.value==t.point.name);this.searchForm.patchValue({selectedNgoType:e[0]}),this.sendTo("admin/ngo-enrollment")}}minCl(t){if(t){let e=this.ministries.filter(n=>n.dsplyName==t);this.searchForm.patchValue({selectedMinistryName:e[0]}),this.sendTo("admin/grant-by-ministries")}}schCl(t){if(t){let e=this.schemes.filter(n=>n.dsplyName==t);this.searchForm.patchValue({selectedSchemeName:e[0]}),this.sendTo("admin/grant-by-schemes")}}scChCl(t){let e=t?.point?.name;if(e){let n=this.sectors.find(o=>o.value===e);this.searchForm.patchValue({selectedSector:n}),this.sendTo("admin/sector-wise-npos")}else return}scNameCl(t){if(t){let e=this.sectors.find(n=>n.value===t);this.searchForm.patchValue({selectedSector:e}),this.sendTo("admin/sector-wise-npos")}else return}stScCl(t){let e=t.point,n=e.name,o=e.series?.name;if(o&&n){let c=this.sectors.find(T=>T.value===n),u=this.state.find(T=>T.stateName===o);this.searchForm.patchValue({selectedSector:c,selectedState:u}),this.sendTo("admin/npo-wise-sector")}else return}getNiceNumber(t){let e=[1,2,5,10],n=Math.pow(10,Math.floor(Math.log10(t)));for(let o of e){let c=o*n;if(t<=c)return c}return 10*n}getPercentage(t,e){return!t||!e?"0":(t*100/e).toFixed(1)}sendTo(t,e){this.searchForm.patchValue({total:e||""}),setTimeout(()=>{let n=this.searchForm.value;this._router.navigate([t],{state:{comingFromDashboard:!0,fromDashboard:!0,filters:n?JSON.stringify(n):"",parent:"/admin/dashboard"}})},100)}sendToN(t,e,n){this.searchForm.patchValue({selectedStatus:e,total:n});let o=this.searchForm.value;this._router.navigate([t],{state:{comingFromDashboard:!0,fromDashboard:!0,filters:o?JSON.stringify(o):"",parent:"/admin/dashboard"}})}formatValue(t){let e=n=>{let o=n.toFixed(1);return o.endsWith(".0")?o.slice(0,-2):o};return t>=1e7?`${e(t/1e7)} Cr`:t>=1e5?`${e(t/1e5)} L`:t>=1e3?`${e(t/1e3)} K`:`${t}`}formatPercentage(t,e){if(!e)return .01;let n=t*100/e;return n===0?.01:n}static \u0275fac=function(e){return new(e||i)(w(oe),w(q),w(we),w(Gt),w(ne))};static \u0275cmp=N({type:i,selectors:[["app-dashboard"]],viewQuery:function(e,n){if(e&1&&X(To,5),e&2){let o;L(o=U())&&(n.ministryDropdown=o.first)}},standalone:!0,features:[I],decls:49,vars:25,consts:[["myForm",""],["ministryDropdown",""],[1,"flex","justify-content-between","align-items-center","flex-wrap","mb-3"],[1,"lft-wrap"],[1,"heading"],[1,"relative","flex","align-items-center","flex-wrap"],[1,"flex","flex-wrap","gap-2","mr-4"],["class","applied-filter-chip",3,"label","removable","textOverflow","pTooltip","onRemove",4,"ngFor","ngForOf"],[1,"filter-badge","absolute"],["label","Filters","styleClass","primary-btn filled-btn","icon","pi pi-sliders-h","iconPos","right",3,"onClick"],["styleClass","dashboard-wrap"],[1,"grid"],[1,"col-12","lg:col-6","relative",3,"ngClass"],[1,"col-12","xl:col-3","lg:col-6","relative"],[1,"grid","mt-1"],[1,"col-12","relative",3,"ngClass"],["position","right","styleClass","filters-wrap",3,"visibleChange","onShow","onHide","visible"],["pTemplate","header"],[1,"py-2"],[3,"formGroup"],[1,"mb-4"],["formControlName","selectedFinancialYr","optionLabel","value","styleClass","w-full","inputId","float-label","appendTo","body",3,"options","showClear"],["for","float-label"],["formControlName","selectedSchemeName","optionLabel","dsplyName","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"options","showClear"],["formControlName","selectedDistrict","optionLabel","districtName","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"options","showClear","disabled"],[1,"flex","justify-content-end"],["styleClass","primary-btn","label","Submit",3,"click"],[1,"applied-filter-chip",3,"onRemove","label","removable","pTooltip"],[1,"custom-skeleton"],["header","NPOs","styleClass","ngo"],["styleClass","card-icn"],["styleClass","card-title"],[1,"flex","custom-stats-skeleton"],[1,"w-full"],[1,"flex","card-content","align-items-end"],[1,"flex","align-items-end"],[1,"curs
6or-pointer",3,"click","pTooltip"],[1,"block"],[1,"btn-npo-knowmore","mx-2"],["label","","styleClass","know-more","icon","pi pi-chevron-right","iconPos","right","pTooltip","Know More",3,"click"],[1,"ml-4","cursor-pointer",3,"click","pTooltip"],[1,"card-icn"],["src","assets/images/icons/ngo.svg","alt","ngo"],["header","Grant Released","styleClass","grant-value"],[1,"grant-data","font-bold"],[1,"flex","card-content"],[3,"pTooltip"],[1,"ml-4",3,"pTooltip"],["src","assets/images/icons/grant-value.svg","alt","ngo"],[1,"btn-knowmore"],["header","Ministries","styleClass","ministries"],["src","assets/images/icons/ministry.svg","alt","ministry"],["label","","styleClass","know-more","icon","pi pi-chevron-right","pTooltip","Know More","iconPos","right",3,"click"],["header","Schemes","styleClass","schemes"],["src","assets/images/icons/schemes.svg","alt","schemes"],[1,"custom-graph-skeleton"],["styleClass","gray-card"],[1,"flex","justify-content-between","align-items-center"],["class","flex gap-2",4,"ngIf"],[1,"flex","gap-2"],["iconPos","left",3,"click","icon","pTooltip"],["style","width: 100%; height: 400px; display: block",3,"Highcharts","constructorType","options",4,"ngIf"],["class","mt-3",4,"ngIf"],[2,"width","100%","height","400px","display","block",3,"Highcharts","constructorType","options"],[1,"mt-3"],["responsiveLayout","scroll","styleClass","custom-data-table","scrollHeight","380px",3,"value","paginator","scrollable"],["pTemplate","body"],[2,"white-space","nowrap"],["label","View Detail",3,"click"],[1,"btn-container","flex"],[3,"click"],["style","width: 100%; height: 400px; display: block",3,"Highcharts","options",4,"ngIf"],[2,"width","100%","height","400px","display","block",3,"Highcharts","options"],[1,"grid","my-4"],[1,"col-6"],[1,"progress-wrap"],[3,"current","max","color","background","stroke","rounded","clockwise","responsive","duration","animation","animationDelay"],[1,"progress-value",3,"ngStyle"],[1,"grid","top-ministry"],[1,"flex","align-items-center","justify-content-between","w-full"],[1,"font-medium"],["label","View More",3,"click"],[1,"col-4","ministry-wrap"],[1,"count","cursor-pointer",3,"click"],["href","javascript:void(0)",3,"click"],["iconPos","left",3,"icon","pTooltip","click",4,"ngIf"],[4,"ngIf"],[2,"margin-top","0px","margin-bottom","5px"],["responsiveLayout","scroll","styleClass","custom-data-table","scrollHeight","360px",3,"value","paginator","scrollable"],["pTemplate","emptymessage"],["colspan","2",1,"text-center","py-8","custom-table-error"],["src","assets/images/no_found.png","alt","no_data",1,"mx-auto"],[1,"mt-4"],[1,"custom-btns","flex"],["styleClass","w-full custom-sectors-wrap","placeholder","state","inputId","states","optionLabel","stateName","optionValue","stateId","selectedItemsLabel","{0} selected","appendTo","body","panelStyleClass","custom-sectors-dropdown",3,"ngModelChange","onChange","options","resetFilterOnHide","ngModel","selectionLimit","maxSelectedLabels"],["for","states"],[2,"width","100%","height","400px","display","block",3,"Highcharts","constructorType","options","oneToOne"],[1,"flex","align-items-center","gap-2"],[1,"my-0"],["formControlName","selectedMinistryName","optionLabel","dsplyName","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"onChange","onClear","options","showClear"],["optionLabel","stateName","formControlName","selectedState","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"onChange","onClear","options","showClear"]],template:function(e,n){if(e&1){let o=x();a(0,"div",2)(1,"div",3)(2,"h2",4),d(3,"NPO Analytics"),r()(),a(4,"div",5)(5,"div",6),m(6,Do,1,5,"p-chip",7),r(),_(7,"span",8),a(8,"p-button",9),C("onClick",function(){return h(o),f(n.sidebarVisible=!0)}),r()()(),a(9,"p-card",10)(10,"div",11),m(11,Fo,3,2,"div",12)(12,Wo,3,2,"div",12)(13,zo,3,1,"div",13)(14,Ko,3,2,"div",12),r(),a(15,"div",14),m(16,oa,3,2,"div",15)(17,ua,3,2,"div",15)(18,wa,3,2,"div",15)(19,ka,3,2,"div",15)(20,Aa,3,2,"div",15)(21,Ya,3,2,"div",15)(22,tr,3,2,"div",15)(23,_r,3,2,"div",15)(24,Cr,3,2,"div",15),r(),a(25,"p-sidebar",16),j("visibleChange",function(u){return h(o),z(n.sidebarVisible,u)||(n.sidebarVisible=u),f(u)}
6),C("onShow",function(){return h(o),f(n.disableBodyScroll())})("onHide",function(){return h(o),f(n.enableBodyScroll())}),m(26,br,3,0,"ng-template",17),a(27,"div",18)(28,"form",19,0)(30,"div",20)(31,"p-floatLabel"),_(32,"p-dropdown",21),a(33,"label",22),d(34,"Financial Year"),r()()(),m(35,yr,6,2,"div",20),a(36,"div",20)(37,"p-floatLabel"),_(38,"p-dropdown",23),a(39,"label",22),d(40,"Scheme Name"),r()()(),m(41,xr,5,2,"div",20),a(42,"div",20)(43,"p-floatLabel"),_(44,"p-dropdown",24),a(45,"label",22),d(46,"District"),r()()(),a(47,"div",25)(48,"p-button",26),C("click",function(){return h(o),f(n.search())}),r()()()()()()}if(e&2){let o;l(6),p("ngForOf",n.selectedFilters),l(5),g(n.ngosWdgt?11:-1),l(),g(n.grantValueWdgt?12:-1),l(),g(n.ministriesWdgt?13:-1),l(),g(n.schemesWdgt?14:-1),l(2),g(n.yw_Ngo_Enr_Wdgt?16:-1),l(),g(n.ngo_typewise_Wdgt?17:-1),l(),g(n.tp_st_ngo_reg_Wdgt?18:-1),l(),g(n.yw_grt_rel_Wdgt?19:-1),l(),g(n.tp_st_rec_grt_Wdgt?20:-1),l(),g(n.min_per_Wdgt?21:-1),l(),g(n.sector_Wdgt1?22:-1),l(),g(n.sector_Wdgt2?23:-1),l(),g(n.sector_Wdgt3?24:-1),l(),G("visible",n.sidebarVisible),l(3),p("formGroup",n.searchForm),l(4),p("options",n.finYrs)("showClear",!0),l(3),g(n.isMinistryUser?-1:35),l(3),p("options",n.schemes)("showClear",!0),l(3),g(n.isStateUser?-1:41),l(3),p("options",n.district)("showClear",!0)("disabled",!((o=n.searchForm.get("selectedState"))!=null&&o.valid))}},dependencies:[We,Y,W,te,ee,Nn,wn,dt,R,$,Ft,K,at,qi,H,xe,Q,be,ye,Z,J,Ge,Ut,dn,sn,ln,rn,vn,se,ve,Se,un,le,Ce,mt,Tn,In,ce,de,De,je,$t],styles:["[_nghost-%COMP%]     .custom-table-error img{height:100px}[_nghost-%COMP%]     .custom-table-error h2{font-size:1.3em}[_nghost-%COMP%]     .custom-table-error h2:after{display:none}[_nghost-%COMP%]     .custom-data-table tr td a{color:#ff7043;text-decoration:none}[_nghost-%COMP%]     .highcharts-legend-item{pointer-events:none}[_nghost-%COMP%]     .custom-data-table{max-height:380px;overflow:auto}[_nghost-%COMP%]     .p-chip-text{font-weight:600}[_nghost-%COMP%]     .dashboard-wrap .p-card{box-shadow:none;height:100%;position:relative;min-height:145px}[_nghost-%COMP%]     .dashboard-wrap .p-card:hover .overlay{display:block}[_nghost-%COMP%]     .dashboard-wrap .p-card .p-card-title{font-size:1em;font-weight:600}[_nghost-%COMP%]     .dashboard-wrap .p-card .card-icn{width:50px;height:50px;position:absolute;right:15px;top:15px;background-color:#fff;border-radius:50%}[_nghost-%COMP%]     .dashboard-wrap .p-card .card-icn img{max-width:40px;position:absolute;inset:0;margin:auto}[_nghost-%COMP%]     .dashboard-wrap .p-card .card-content p{font-weight:700;font-size:1.5em;margin-bottom:0;white-space:nowrap}[_nghost-%COMP%]     .dashboard-wrap .p-card .card-content p span{font-weight:500;font-size:.6em}@media only screen and (max-width: 1399px){[_nghost-%COMP%]     .dashboard-wrap .p-card .card-content p{font-size:1.3em}}@media only screen and (max-width: 1399px){[_nghost-%COMP%]     .dashboard-wrap .p-card .card-content{margin-top:20px;margin-bottom:40px}}[_nghost-%COMP%]     .dashboard-wrap .p-card.ngo{background-color:#e1f9e7}[_nghost-%COMP%]     .dashboard-wrap .p-card.grant-value{background-color:#fef9ea}[_nghost-%COMP%]     .dashboard-wrap .p-card.ministries{background-color:#e8effe}[_nghost-%COMP%]     .dashboard-wrap .p-card.schemes{background-color:#f9edea}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card{background-color:#f8f8f8;min-height:450px}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card h3{font-size:1em;font-weight:600}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card button{background-color:#fff;border:0;border-radius:30px;font-size:.8em;padding:5px 15px}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card button span{color:#3f3350;font-weight:500;white-space:nowrap}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card button.toggle-btn{background-color:#ff7043}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card button.toggle-btn span{color:#fff}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card button.toggle-btn:hover, [_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card button.toggle-btn:focus{background-color:#f73b02}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card .btn-container button{border-radius:30px;border:0;padding:5px 20px;font-size:.8em;font-weight:500;border:1px solid #cccccc;background-color:#fff}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card .btn-container button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card .btn-container button:nth-child(2){border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card .btn-container button:hover, [_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card .btn-container button:focus, [_nghost-%COMP%]     .dashboard-wrap .p-card.gray-card .btn-container button.active{background-color:#e8e8e8}[_nghost-%COMP%]     .dashboard-wrap .p-card .custom-error{inset:40px 0;position:absolute;margin:auto;text-align:center;height:70px}[_nghost-%COMP%]     .dashboard-wrap .p-card .custom-error img{max-width:60px}[_nghost-%COMP%]     .dashboard-wrap .p-card .custom-error h2{margin-top:5px!important;font-size:1em}@media only screen and (max-width: 1199px){[_nghost-%COMP%]     .dashboard-wrap .p-card .custom-error{position:relative;top:auto;bottom:auto;height:auto}}[_nghost-%COMP%]     .filters-wrap{width:100%;max-width:435px}[_nghost-%COMP%]     .filters-wrap .p-sidebar-header h4{font-weight:600;font-size:1.2em}[_nghost-%COMP%]     .filters-wrap .p-sidebar-close{border:1px solid #FF7043;color:#ff7043}[_nghost-%COMP%]     .highcharts-background{fill:transparent}[_nghost-%COMP%]     .top-ministry p{text-align:center;font-size:.8em;font-weight:500;display:-webkit-box;height:60px;
6-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}[_nghost-%COMP%]     .top-ministry .ministry-wrap{border-right:1px dotted #3F3350}[_nghost-%COMP%]     .top-ministry .ministry-wrap span.count{background-color:#fff;color:#ff7043;font-size:.85em;font-weight:700;padding:3px 8px;border:1px solid #E8E8E8;display:table;border-radius:30px;margin:10px auto;white-space:nowrap}[_nghost-%COMP%]     .top-ministry .ministry-wrap:last-child{border-right:0}[_nghost-%COMP%]     .highcharts-axis-labels span{left:117px;width:100px}[_nghost-%COMP%]     .overlay{position:absolute;inset:0;background:#0006;border-radius:15px;display:none}[_nghost-%COMP%]     .overlay button{position:absolute;inset:0;max-width:120px;height:40px;margin:auto}[_nghost-%COMP%]     .filter-badge{background-color:#f73b02;min-width:20px;text-align:center;font-size:.8em;color:#fff;border-radius:50%;top:-8px;right:-8px;z-index:9;display:inline-block}[_nghost-%COMP%]     .custom-skeleton{z-index:1;inset:5px 7px;padding:1.2rem;background-color:#f9f9f9;border-radius:16px}[_nghost-%COMP%]     .custom-skeleton .card-title{max-width:100px!important;margin-bottom:.5rem;height:25px!important}[_nghost-%COMP%]     .custom-skeleton .custom-stats-skeleton{position:relative;margin-top:2.25rem;width:180px}[_nghost-%COMP%]     .custom-skeleton .custom-stats-skeleton .card-title{max-width:80px!important}@media only screen and (max-width: 767px){[_nghost-%COMP%]     .custom-skeleton .custom-stats-skeleton{margin-top:.55rem}}[_nghost-%COMP%]     .custom-skeleton .card-icn{width:60px!important;height:60px!important;position:absolute;right:15px;top:17px;border-radius:50%}[_nghost-%COMP%]     .custom-graph-skeleton{z-index:1;inset:20px 20px 30px;height:100%;min-height:436px}[_nghost-%COMP%]     .custom-graph-skeleton .card-title{max-width:100%!important;height:100%!important;margin-bottom:.5rem}[_nghost-%COMP%]     .progress-wrap{position:relative;width:150px;display:flex;align-items:center;margin:auto}@media only screen and (max-width: 767px){[_nghost-%COMP%]     .progress-wrap{display:none}}[_nghost-%COMP%]     .progress-value{position:absolute;inset:0;margin:auto;height:44px;text-align:center;font-size:1em;font-weight:600}[_nghost-%COMP%]     .progress-value span{font-size:.8em!important}[_nghost-%COMP%]     .know-more{background-color:#fff;width:30px;height:30px;border-radius:50%;padding:4px;box-shadow:none;border:0;animation:_ngcontent-%COMP%_blinker 1s linear infinite}[_nghost-%COMP%]     .know-more span{color:#ff7043;font-weight:400;font-size:.7em}[_nghost-%COMP%]     .know-more:hover, [_nghost-%COMP%]     .know-more:focus{box-shadow:none;background-color:transparent}.btn-knowmore[_ngcontent-%COMP%]{position:absolute;right:20px;bottom:15px}@media only screen and (max-width: 1399px){.btn-npo-knowmore[_ngcontent-%COMP%]{position:relative;bottom:-50px;left:-50%}}@media only screen and (max-width: 991px){.btn-npo-knowmore[_ngcontent-%COMP%]{bottom:auto;left:auto}}@keyframes _ngcontent-%COMP%_blinker{50%{opacity:.5}}.grant-data[_ngcontent-%COMP%]{font-size:.8em;margin-top:-8px;display:block;width:80%;color:#4f455e}"]})};function Pe(i){let t=e=>e.toFixed(2).replace(/\.?0+$/,"").replace(/(\.\d)0$/,"$1");return i>=1e7?`${t(i/1e7)} Cr`:i>=1e5?`${t(i/1e5)} L`:i>=1e3?`${t(i/1e3)} K`:`${i}`}function gt(i){let t=e=>e.toFixed(2).replace(/\.?0+$/,"").replace(/(\.\d)0$/,"$1");return i>=1e7?`${t(i/1e7)} Cr`:i>=1e5?`${t(i/1e5)} L`:i>=1e3?`${t(i/1e3)} K`:`${i}`}function Ai(i){return i>=1e5?`${(i/1e5).toFixed(2).replace(/\.00$/,"")}L`:i>=1e3?`${(i/1e3).toFixed(2).replace(/\.00$/,"")}K`:`${i}`}function vr(i){return i<10?5:i<100?10:i<1e3?100:i<1e4?1e3:i<1e5?5e3:i<1e6?1e4:5e4}var ai=class i{constructor(t){this.translate=t;this.translate.use("en")}backbtn(){}static \u0275fac=function(e){return new(e||i)(w(on))};static \u0275cmp=N({type:i,selectors:[["app-admin-search-npo"]],standalone:!0,features:[I],decls:6,vars:1,consts:[[1,"flex","justify-content-between","align-items-center","flex-wrap","mb-3"],[1,"lft-wrap"],[1,"heading"],[3,"fromAdmin"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"h2",2),d(3,"Search NPO"),r()()(),a(4,"p-card"),_(5,"app-search-ngo",3),r()),e&2&&(l(5),p("fromAdmin",!0))},dependencies:[hn,We,Y,te],styles:["[_nghost-%COMP%]     #commonScrollTo{padding:0!important;margin:0!important}[_nghost-%COMP%]     #commonScrollTo table tr td:last-child span{color:#ff7043}[_nghost-%COMP%]     .preview-wrap{box-shadow:none}[_nghost-%COMP%]     .preview-wrap .p-card-body{padding:0}[_nghost-%COMP%]     .p-card h2:after{display:none}[_nghost-%COMP%]     .custom-table tr th{background-color:transparent;font-size:1em;font-weight:700}[_nghost-%COMP%]     .custom-table tr td{background-color:#f5f5f5;padding:15px 10px;font-size:.9em}
6[_nghost-%COMP%]     .custom-table tr td span{display:inline-block;line-height:1.8em;vertical-align:middle}"]})};var kn=Ni(An());var Sr=["dt2"],wr=["dt5"],Ui=()=>({"min-width":"50rem","min-height":"300px"}),Mn=()=>["ngoName","darpanId"],Nr=(i,t)=>({"justify-content-between":i,"justify-content-end":t});function Ir(i,t){if(i&1){let e=x();a(0,"p-button",12),C("click",function(){h(e);let o=s(2);return f(o.backToParent())}),r()}}function Tr(i,t){if(i&1&&(a(0,"div",3)(1,"div",9)(2,"h2",10),d(3),r()(),m(4,Ir,1,0,"p-button",11),r()),i&2){let e=s();l(3),y(e.heading),l(),g(e.comingFromDashboard||e.fromDashboard&&(e.parent!==""||e.grparent!=="")?4:-1)}}function Dr(i,t){if(i&1){let e=x();a(0,"div",3)(1,"div",9)(2,"h2",10),d(3,"Associated NPOs"),r()(),a(4,"p-button",12),C("click",function(){h(e);let o=s();return f(o.back3())}),r()()}}function kr(i,t){i&1&&_(0,"app-loader")}function Mr(i,t){if(i&1){let e=x();a(0,"div",15)(1,"div",18)(2,"div",19)(3,"p",20),d(4,"Range of NPOs per Member:"),r(),a(5,"p-button",21),C("onClick",function(){h(e);let o=s(3);return f(o.setActiveRange(6))}),r(),a(6,"p-button",22),C("onClick",function(){h(e);let o=s(3);return f(o.setActiveRange(1))}),r(),a(7,"p-button",23),C("onClick",function(){h(e);let o=s(3);return f(o.setActiveRange(2))}),r(),a(8,"p-button",24),C("onClick",function(){h(e);let o=s(3);return f(o.setActiveRange(3))}),r(),a(9,"p-button",25),C("onClick",function(){h(e);let o=s(3);return f(o.setActiveRange(4))}),r(),a(10,"p-button",26),C("onClick",function(){h(e);let o=s(3);return f(o.setActiveRange(5))}),r()()()()}if(i&2){let e=s(3);l(5),he("active",e.activeRange===6),l(),he("active",e.activeRange===1),l(),he("active",e.activeRange===2),l(),he("active",e.activeRange===3),l(),he("active",e.activeRange===4),l(),he("active",e.activeRange===5)}}function Rr(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-dropdown",33),a(3,"label",34),d(4,"Financial Year"),r()()()),i&2){let e=s(4);l(2),p("options",e.finYrs)}}function Pr(i,t){if(i&1){let e=x();a(0,"div",30)(1,"p-floatLabel")(2,"p-dropdown",35),C("onChange",function(o){h(e);let c=s(4);return f(c.onMinstryChange(o.value))})("onClear",function(){h(e);let o=s(4);return f(o.minstryClear())}),r(),a(3,"label",34),d(4,"Ministry/Department Name"),r()()()}if(i&2){let e=s(4);l(2),p("options",e.ministries)}}function Fr(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-dropdown",36),a(3,"label",34),d(4,"Scheme Name"),r()()()),i&2){let e=s(4);l(2),p("options",e.schemes)}}function Er(i,t){if(i&1){let e=x();a(0,"div",30)(1,"p-floatLabel")(2,"p-dropdown",37),C("onChange",function(o){h(e);let c=s(4);return f(c.onStateChange(o.value))})("onClear",function(){h(e);let o=s(4);return f(o.stateClear())}),r(),a(3,"label",34),d(4),r()()()}if(i&2){let e=s(4);l(2),p("options",e.state),l(2),y(e.ReportConfig.From===e.Reports.NgoEnrolledComponent?"NPO Registered State":e.ReportConfig.From===e.Reports.NgoWiseSectorComponent?"Working State":"State")}}function Or(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-dropdown",38),a(3,"label",34),d(4),r()()()),i&2){let e,n=s(4);l(2),p("options",n.district)("disabled",!((e=n.searchForm.get("selectedState"))!=null&&e.valid)),l(2),y(n.ReportConfig.From===n.Reports.NgoEnrolledComponent?"NPO Registered District":n.ReportConfig.From===n.Reports.NgoWiseSectorComponent?"Working District":"District")}}function Ar(i,t){i&1&&(a(0,"span",41),d(1,"*"),r())}function Vr(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-dropdown",39),a(3,"label",34),d(4,"Sector "),m(5,Ar,2,0,"span",40),r()()()),i&2){let e=s(4);l(2),p("options",e.sectors)("showClear",e.ReportConfig.From!==e.Reports.NgoWiseSectorComponent),l(3),p("ngIf",e.ReportConfig.From===e.Reports.NgoWiseSectorComponent)}}function Wr(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-multiSelect",42),a(3,"label",43),d(4,"Sectors"),r()()()),i&2){let e=s(4);l(2),p("options",e.sectors)("resetFilterOnHide",!0)}}function Lr(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-multiSelect",44),a(3,"label",45),d(4,"NPO Type"),r()()()),i&2){let e=s(4);l(2),p("options",e.ngoTypes)("resetFilterOnHide",!0)}}function Ur(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-dropdown",46),a(3,"label",34),d(4,"NPO Type"),r()()()),i&2){let e=s(4);
6l(2),p("options",e.ngoTypes)}}function Br(i,t){if(i&1&&(a(0,"div",30)(1,"p-floatLabel"),_(2,"p-dropdown",47),a(3,"label",34),d(4,"NPO Status"),r()()()),i&2){let e=s(4);l(2),p("options",e.status)}}function Gr(i,t){i&1&&(a(0,"small"),d(1," Enter a valid NPO Name "),r())}function zr(i,t){if(i&1&&(a(0,"div",51),m(1,Gr,2,0,"small",52),r()),i&2){let e,n=s(5);l(),p("ngIf",(e=n.searchForm.get("npoName"))==null?null:e.hasError("pattern"))}}function jr(i,t){if(i&1){let e=x();a(0,"div",30)(1,"p-floatLabel")(2,"input",48),C("keydown.enter",function(){h(e);let o=s(4);return f(o.handleEnterKey())}),r(),a(3,"label",49),d(4,"NPO Name"),r()(),m(5,zr,2,1,"div",50),r()}if(i&2){let e,n=s(4);l(5),p("ngIf",((e=n.searchForm.get("npoName"))==null?null:e.invalid)&&(((e=n.searchForm.get("npoName"))==null?null:e.dirty)||((e=n.searchForm.get("npoName"))==null?null:e.touched)))}}function Yr(i,t){i&1&&(a(0,"small"),d(1," Enter a valid DARPAN ID "),r())}function Hr(i,t){if(i&1&&(a(0,"div",51),m(1,Yr,2,0,"small",52),r()),i&2){let e,n=s(5);l(),p("ngIf",(e=n.searchForm.get("uniqueId"))==null?null:e.hasError("pattern"))}}function $r(i,t){if(i&1){let e=x();a(0,"div",31)(1,"p-floatLabel")(2,"input",53),C("keydown.enter",function(){h(e);let o=s(4);return f(o.handleEnterKey())}),r(),a(3,"label",54),d(4,"DARPAN ID"),r()(),m(5,Hr,2,1,"div",50),r()}if(i&2){let e,n=s(4);l(5),p("ngIf",((e=n.searchForm.get("uniqueId"))==null?null:e.invalid)&&(((e=n.searchForm.get("uniqueId"))==null?null:e.dirty)||((e=n.searchForm.get("uniqueId"))==null?null:e.touched)))}}function Kr(i,t){i&1&&(a(0,"small"),d(1," Enter a valid Member Name "),r())}function qr(i,t){if(i&1&&(a(0,"div",51),m(1,Kr,2,0,"small",52),r()),i&2){let e,n=s(5);l(),p("ngIf",(e=n.searchForm.get("memberName"))==null?null:e.hasError("pattern"))}}function Qr(i,t){if(i&1){let e=x();a(0,"div",31)(1,"p-floatLabel")(2,"input",55),C("keydown.enter",function(){h(e);let o=s(4);return f(o.handleEnterKey())}),r(),a(3,"label",49),d(4,"Member Name"),r()(),m(5,qr,2,1,"div",50),r()}if(i&2){let e,n=s(4);l(5),p("ngIf",((e=n.searchForm.get("memberName"))==null?null:e.invalid)&&(((e=n.searchForm.get("memberName"))==null?null:e.dirty)||((e=n.searchForm.get("memberName"))==null?null:e.touched)))}}function Jr(i,t){i&1&&(a(0,"small"),d(1," Enter a valid 10-digit mobile number "),r())}function Zr(i,t){if(i&1&&(a(0,"div",51),m(1,Jr,2,0,"small",52),r()),i&2){let e,n=s(5);l(),p("ngIf",(e=n.searchForm.get("memberMobile"))==null?null:e.hasError("pattern"))}}function Xr(i,t){if(i&1){let e=x();a(0,"div",31)(1,"p-floatLabel")(2,"input",56),C("keydown.enter",function(){h(e);let o=s(4);return f(o.handleEnterKey())}),r(),a(3,"label",57),d(4,"Member Mobile"),r()(),m(5,Zr,2,1,"div",50),r()}if(i&2){let e,n=s(4);l(5),p("ngIf",((e=n.searchForm.get("memberMobile"))==null?null:e.touched)&&((e=n.searchForm.get("memberMobile"))==null?null:e.invalid))}}function el(i,t){i&1&&(a(0,"small"),d(1,"Enter a valid PAN number"),r())}function tl(i,t){if(i&1&&(a(0,"div",51),m(1,el,2,0,"small",52),r()),i&2){let e,n=s(5);l(),p("ngIf",(e=n.searchForm.get("memberPanNumber"))==null?null:e.hasError("pattern"))}}function il(i,t){if(i&1){let e=x();a(0,"div",31)(1,"p-floatLabel")(2,"input",58),C("keydown.enter",function(){h(e);let o=s(4);return f(o.handleEnterKey())}),r(),a(3,"label",59),d(4,"Member PAN Number"),r()(),m(5,tl,2,1,"div",50),r()}if(i&2){let e,n=s(4);l(5),p("ngIf",((e=n.searchForm.get("memberPanNumber"))==null?null:e.touched)&&((e=n.searchForm.get("memberPanNumber"))==null?null:e.invalid))}}function nl(i,t){if(i&1){let e=x();a(0,"div",32)(1,"p-button",60),C("click",function(){h(e);let o=s(4);return o.search(),f(o.clearData())}),r()()}if(i&2){let e=s(4);l(),p("disabled",e.searchForm.invalid||e.loading)}}function ol(i,t){if(i&1){let e=x();a(0,"div",30)(1,"div",61)(2,"p-button",62),C("click",function(){h(e);let o=s(4);return o.search(),f(o.clearData())}),r()()()}if(i&2){let e=s(4);l(2),p("disabled",e.searchForm.invalid||e.loading)}}function al(i,t){if(i&1&&(a(0,"div",27)(1,"form",28)(2,"div",29),m(3,Rr,5,1,"div",30)(4,Pr,5,1,"div",30)(5,Fr,5,1,"div",30)(6,Er,5,2,"div",30)(7,Or,5,3,"div",30)(8,Vr,6,3,"div",30)(9,Wr,5,2,"div",30)(10,Lr,5,2,"div",30)(11,Ur,5,1,"div",30)(12,Br,5,1,"div",30)(13,jr,6,1,"div",30)(14,$r,6,1,"div",31)(15,Qr,6,1,"div",31)(16,Xr,6,1,"div",31)(17,il,6,1,"div",31)(18,nl,2,1,"div",32)(19,ol,3,1,"div",30),r()()()),i&2){let e=s(3);l(),p("formGroup",e.searchForm),l(2),g(e.ReportConfig.Filters.includes("selectedFinancialYr")?3:-1),l(),g(e.ReportConfig.Filters.includes("selectedMinistryName")&&!e.isMinistryUser?4:-1),l(),g(e.ReportConfig.Filters.includes("selectedSchemeName")?5:-1),l(),g(e.ReportConfig.Filters.includes("selectedState")&&!e.isStateUser?6:-1),l(),g(e.ReportConfig.Filters.includes("selectedDistrict")?7:-1),l(),g(e.ReportConfig.Filters.includes("selectedSector")?8:-1),l(),g(e.ReportConfig.Filters.includes("selectedSectors")?9:-1),l(),g(e.ReportConfig.Filters.includes("selectedNgoTypes")?10:-1),l(),g(e.ReportConfig.Filters.includes("selectedNgoType")?11:-1),l(),g(e.ReportConfig.Filters.includes("selectedStatus")?12:-1),l(),g(e.ReportConfig.Filters.includes("npoName")?13:-1),l(),g(e.ReportConfig.Filters.includes("uniqueId")?14:-1),l(),g(e.ReportConfig.Filters.includes("memberName")?15:-1),l(),g(e.ReportConfig.Filters.includes("memberMobile")?16:-1),l(),g(e.ReportConfig.Filters.includes("memberPanNumber")?17:-1),l(),g(e.ReportConfig.From===e.Reports.DuplicateMembersComponent||e.ReportConfig.From===e.Reports.NgosComponent||e.ReportConfig.From===e.Reports.NgoEnrolledComponent?18:19)}}function rl(i,t){if(i&1){let e=x();a(0,"div",69)(1,"div",70)(2,"p-card")(3,"h3",71),d(4," Total NPOs: "),a(5,"span",72),d(6),k(
67,"inrFormat"),r()()()(),a(8,"div",73)(9,"p-floatLabel",74)(10,"input",75),j("ngModelChange",function(o){h(e);let c=s(5);return z(c.searchValue1,o)||(c.searchValue1=o),f(o)}),C("input",function(o){h(e);let c=s(5);return f(c.onGlobalFilter(o))}),r(),a(11,"label",54),d(12,"NPO Name/ Darpan ID"),r(),_(13,"i",76),r(),a(14,"p-button",77),C("click",function(){h(e);let o=s(5);return f(o.exportData())}),r()()()}if(i&2){let e=s(5);l(6),y(M(7,3,e.totalRecords)),l(4),G("ngModel",e.searchValue1),l(4),p("loading",e.isDownloading)}}function ll(i,t){if(i&1&&(a(0,"th",80),d(1),_(2,"p-sortIcon",81),r()),i&2){let e=s().$implicit;p("pSortableColumn",e.sortable?e.field:null),l(),v(" ",e.label," "),l(),p("field",e.field)}}function sl(i,t){if(i&1&&(a(0,"th"),d(1),r()),i&2){let e=s().$implicit;l(),v(" ",e.label," ")}}function dl(i,t){if(i&1&&(fe(0),m(1,ll,3,3,"th",79)(2,sl,2,1,"th",52),ge()),i&2){let e=t.$implicit;l(),p("ngIf",e.sortable),l(),p("ngIf",!e.sortable)}}function cl(i,t){if(i&1&&(a(0,"tr"),m(1,dl,3,2,"ng-container",78),r()),i&2){let e=s(5);l(),p("ngForOf",e.ReportConfig==null?null:e.ReportConfig.Headers)}}function pl(i,t){if(i&1){let e=x();a(0,"a",87),C("click",function(){h(e);let o=s().$implicit,c=s(5);return f(c.viewFile(o.blacklistedFile))}),_(1,"img",88),r()}}function ml(i,t){if(i&1){let e=x();a(0,"a",87),C("click",function(){h(e);let o=s().$implicit,c=s(5);return f(c.viewFile(o.unBlacklistedFile))}),_(1,"img",88),r()}}function _l(i,t){if(i&1&&(_(0,"br"),d(1)),i&2){let e=s().$implicit;l(),v(" By: ",e==null?null:e.unBlacklistedByMinistry," ")}}function ul(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td",82),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td",82),d(10),k(11,"date"),r(),a(12,"td",83),d(13),m(14,pl,2,0,"a",84),r(),a(15,"td",82),d(16),k(17,"date"),r(),a(18,"td",83),d(19),m(20,ml,2,0,"a",84)(21,_l,2,1),r(),a(22,"td")(23,"span",85),C("click",function(){let o=h(e).$implicit,c=s(5);return f(c.viewNgo(o==null?null:o.ngoId))}),_(24,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(5);l(2),y(n+1),l(2),y((e==null?null:e.darpanId)||"--"),l(2),v(" ",e.ngoName||"--"," "),l(2),y((e==null?null:e.blacklistedByMinistry)||"--"),l(2),v(" ",e!=null&&e.blacklistedDate?re(11,11,e==null?null:e.blacklistedDate,"dd-MM-yyyy"):"--"," "),l(3),v(" ",(e==null?null:e.blacklistedReason)||"--"," "),l(),g(o.hasKey(e,"blacklistedFile")&&(e==null?null:e.blacklistedFile)!==""?14:-1),l(2),v(" ",e!=null&&e.unBlacklistedDate?re(17,14,e==null?null:e.unBlacklistedDate,"dd-MM-yyyy"):"--"," "),l(3),v(" ",(e==null?null:e.unBlacklistedReason)||"--",""),l(),g(o.hasKey(e,"unBlacklistedFile")&&(e==null?null:e.unBlacklistedFile)!==""?20:-1),l(),g(o.hasKey(e,"unBlacklistedByMinistry")&&(e==null?null:e.unBlacklistedByMinistry)!==""?21:-1)}}function hl(i,t){if(i&1&&(a(0,"tr")(1,"td",89),_(2,"img",90),a(3,"h2",91),d(4," No Data Found "),r()()()),i&2){let e=s(5);l(),B("colspan",e.blacklisted?8:e.ReportConfig==null?null:e.ReportConfig.Headers.length)}}function fl(i,t){if(i&1&&(a(0,"p-table",63,0),m(2,rl,15,5,"ng-template",65)(3,cl,2,1,"ng-template",66)(4,ul,25,17,"ng-template",67)(5,hl,5,1,"ng-template",68),r()),i&2){let e=s(4);p("value",e.data)("rows",10)("tableStyle",F(12,Ui))("paginator",e.data.length>0)("lazy",!1)("globalFilterFields",F(13,Mn))("totalRecords",e.totalRecords)("loading",e.loading)("first",e.first)("sortMode","multiple")("multiSortMeta",e.multiSortMeta)("totalRecords",e.totalRecords)}}function gl(i,t){if(i&1&&(a(0,"p-card")(1,"h3",71),d(2," Total Members: "),a(3,"span",96),d(4),k(5,"inrFormat"),r()()()),i&2){let e=s(8);l(4),y(M(5,1,e.totalRecords))}}function Cl(i,t){if(i&1&&(a(0,"p-card")(1,"h3",71),d(2," Total Ministries: "),a(3,"span",96),d(4),k(5,"inrFormat"),r()()()),i&2){let e=s(8);l(4),y(M(5,1,e.totalWdgts.ministryCount))}}function bl(i,t){if(i&1&&(a(0,"p-card")(1,"h3",71),d(2," Total Schemes: "),a(3,"span",97),d(4),k(5,"inrFormat"),r()()()),i&2){let e=s(8);l(4),y(M(5,1,e.totalWdgts.schemeCount))}}function yl(i,t){if(i&1&&(a(0,"p-card")(1,"h3",71),d(2," Total NPOs: "),a(3,"span",72),d(4),k(5,"inrFormat"),r()()()),i&2){let e=s(8);l(4),y(M(5,1,e.totalWdgts.ngoCount))}}function xl(i,t){if(i&1&&(a(0,"p-card")(1,"h3",71),d(2," Total Grant Released: "),a(3,"span",98),k(4,"inrFormat"),d(5),r()()()),i&2){let e=s(8);l(3),p("pTooltip",M(4,2,"\u20B9"+e.totalWdgts.grant)),l(2),v("\u20B9",e.formatValue(e.totalWdgts.grant)," ")}}function vl(i,t){if(i&1&&(a(0,"div",70),m(1,gl,6,3,"p-card",52)(2,Cl,6,3,"p-card",52)(3,bl,6,3,"p-card",52)(4,yl,6,3,"p-card",52)(5,xl,6,4,"p-card",52),r()),i&2){let e=s(7);l(),p("ngIf",e.showMembers),l(),p("ngIf",e.showMinistries&&!e.isMinistryUser),l(),p("ngIf",e.showSchemes),l(),p("ngIf",e.showNPOs),l(),p("ngIf",e.showGrants)}}function Sl(i,t){if(i&1){let e=x();a(0,"div",99)(1,"p-button",100),C("click",function(){h(e);let o=s(7);return f(o.exportData())}),r()()}if(i&2){let e=s(7);p("pTooltip",e.getExportTooltip()),l(),p("loading",e.isDownloading)("disabled",e.isDownloadDisabled())}}function wl(i,t){if(i&1&&(a(0,"div",93),m(1,vl,6,5,"div",94)(2,Sl,2,3,"div",95),r()),i&2){let e=s(6);p("ngClass",Me(3,Nr,e.hasCards,!e.hasCards)),l(),p("ngIf",e.hasCards),l(),p("ngIf",e.ReportConfig.From!==e.Reports.DuplicateMembersComponent)}}function Nl(i,t){if(i&1&&m(0,wl,3,6,"div",93),i&2){let e=s(5);g(e.data.length>0?0:-1)}}function Il(i,t){i&1&&(a(0,"th"),d(1,"Sr. No."),r(),a(2,"th"),d(3,"DARPAN ID"),r(),a(4,"th"),d(5,"NPO Name"),r(),a(6,"th"),d(7,"NPO Type"),r(),a(8,"th"),d(9,"Registered District (State)"),r(),a(10,"th"),d(11,"Blacklisted By"),r(),a(12,"th"),d(13,"WEF"),r(),a(14,"th"),d(15,"View NPO Details"),r())}function Tl(i,t){if(i&1&&(a(0,"th",80),d(1),_(2,"p-sortIcon",81),r()),i&2){let e=s().$implicit;p("pSortableColumn",e.sortable?e.field:null),l(),v(" ",e.label," "),l(),p("field",e.field)}}function Dl(i,t){if(i&1&&(a(0,"th"),d(1),r()),i&2){let e=s().$implicit;l(),v(" ",e.label," ")}}function kl(i,t){if(i&1&&(fe(0),m(1,Tl,3,3,"th",79)(2,Dl,2,1,"th",52),ge()),i&2){let e=t.$implicit;l(),p("ngIf",e.sortable),l(),p("ngIf",!e.sortable)}}function Ml(i,t){if(i&1&&m(0,kl,3,2,"ng-container",78),i&2){let e=s(6);p("ngForOf",e.ReportConfig==null?null:e.ReportConfig.Headers)}}function Rl(i,t){if(i&1&&(a(0,"th"),d(1),r()),i&2){let e=t.$implicit;l(),v(" ",e," ")}}function Pl(i,t){if(i&1&&m(0,Rl,2,1,"th",78),i&2){let e=s(6);p("ngForOf",e.ReportConfig==null?null:e.ReportConfig.Headers)}}function Fl(i,t){if(i&1&&(a(0,"tr"),m(1,Il,16,0)(2,Ml,1,1,"ng-container")(3,Pl,1,1,"th"),r()),i&2){let e=s(5);l(),g(e.ReportConfig.From===e.Reports.NgoEnrolledComponent&&e.blacklisted?1:e.ReportConfig.From===e.Reports.NgosComponent||e.ReportConfig.From===e.Reports.YwGrantsComponent||e.ReportConfig.From===e.Reports.MinistriesComponent||e.ReportConfig.From===e.Reports.SchemeWiseDetails||e.ReportConfig.From===e.Reports.TopStatesComponent||e.ReportConfig.From===e.Reports.DuplicateMembersComponent||e.ReportConfig.From===e.Reports.NgoWiseGrantComponent||e.ReportConfig.From===e.Reports.SectorWiseNposComponent||e.ReportConfig.From===e.Reports.NgoWiseSectorComponent?2:3)}}function El(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" ",e.districtName," ")}}function Ol(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" (",e.stateName,") ")}}
6function Al(i,t){if(i&1&&m(0,El,1,1)(1,Ol,1,1),i&2){let e=s().$implicit;g(e!=null&&e.districtName?0:-1),l(),g(e!=null&&e.stateName?1:-1)}}function Vl(i,t){i&1&&d(0," -- ")}function Wl(i,t){if(i&1&&(a(0,"td"),d(1),r(),a(2,"td",82),d(3),k(4,"date"),r()),i&2){let e=s().$implicit;l(),y((e==null?null:e.blacklistedByMinistry)||"--"),l(2),v(" ",e!=null&&e.blacklistedWEF?re(4,2,e==null?null:e.blacklistedWEF,"dd-MM-yyyy"):"--"," ")}}function Ll(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td",82),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),m(10,Al,2,2)(11,Vl,1,0),r(),m(12,Wl,5,5),a(13,"td")(14,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.viewNgo(o==null?null:o.ngoId))}),_(15,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);l(2),y(n+1),l(2),y((e==null?null:e.darpanId)||"--"),l(2),v(" ",e.ngoName||"--"," "),l(2),y(e.ngoType||"--"),l(2),g(e!=null&&e.districtName||e.stateName?10:11),l(2),g(o.blacklisted?12:-1)}}function Ul(i,t){i&1&&m(0,Ll,16,6,"ng-template",67)}function Bl(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),d(10),r(),a(11,"td",82)(12,"span",99),d(13),k(14,"inrFormat"),r()(),a(15,"td")(16,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.viewNgo(o==null?null:o.ngoId))}),_(17,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);l(2),y(n+1),l(2),v(" ",e.ngoName||"--"," "),l(2),y(e.ngoType||"--"),l(2),y((e==null?null:e.ministryName)||"--"),l(2),y((e==null?null:e.financialYear)||"--"),l(2),p("pTooltip","\u20B9"+o.formatValue(e==null?null:e.grantReleased)),l(),v(" ",M(14,7,e==null?null:e.grantReleased)||"--"," ")}}function Gl(i,t){i&1&&m(0,Bl,18,9,"ng-template",67)}function zl(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),d(10),r(),a(11,"td",82)(12,"span",99),d(13),k(14,"inrFormat"),r()(),a(15,"td")(16,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.setdata(o==null?null:o.financialYear,o==null?null:o.grantReleased))}),_(17,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);l(2),y(n+1),l(2),y((e==null?null:e.financialYear)||"--"),l(2),v(" ",(e==null?null:e.ministryCount)||"--"," "),l(2),y((e==null?null:e.schemeCount)||"--"),l(2),y((e==null?null:e.npoCount)||"--"),l(2),p("pTooltip","\u20B9"+o.formatValue(e==null?null:e.grantReleased)),l(),v(" ",M(14,7,e==null?null:e.grantReleased)||"--"," ")}}function jl(i,t){i&1&&m(0,zl,18,9,"ng-template",67)}function Yl(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td",82)(10,"span",99),d(11),k(12,"inrFormat"),r()(),a(13,"td")(14,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.setdata1(o==null?null:o.ministryName,o==null?null:o.grantReleased))}),_(15,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);l(2),y(n+1),l(2),y((e==null?null:e.ministryName)||"--"),l(2),y((e==null?null:e.schemeCount)||"--"),l(2),y((e==null?null:e.ngoCount)||"--"),l(2),p("pTooltip","\u20B9"+o.formatValue(e==null?null:e.grantReleased)),l(),v(" ",M(12,6,e==null?null:e.grantReleased)||"--"," ")}}function Hl(i,t){i&1&&m(0,Yl,16,8,"ng-template",67)}function $l(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td",82)(10,"span",99),d(11),k(12,"inrFormat"),r()(),a(13,"td")(14,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.setdata2(o==null?null:o.ministryName,o==null?null:o.schemeName))}),_(15,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);l(2),y(n+1),l(2),y((e==null?null:e.schemeName)||"--"),l(2),y((e==null?null:e.ministryName)||"--"),l(2),y((e==null?null:e.ngoCount)||"--"),l(2),p("pTooltip","\u20B9"+o.formatValue(e==null?null:e.grantReleased)),l(),v(" ",M(12,6,e==null?null:e.grantReleased)||"--"," ")}}function Kl(i,t){i&1&&m(0,$l,16,8,"ng-template",67)}function ql(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),d(10),r(),a(11,"td",82)(12,"span",99),d(13),k(14,"inrFormat"),r()(),a(15,"td")(16,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.setdata3(o==null?null:o.stateName))}),_(17,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);
6l(2),y(n+1),l(2),v(" ",e.stateName==="ALL"?"Central":e.stateName||"--"," "),l(2),v(" ",(e==null?null:e.ministryCount)||"--"," "),l(2),y((e==null?null:e.schemeCount)||"--"),l(2),y((e==null?null:e.ngoCount)||"--"),l(2),p("pTooltip","\u20B9"+o.formatValue(e==null?null:e.grantReleased)),l(),v(" ",M(14,7,e==null?null:e.grantReleased)||"--"," ")}}function Ql(i,t){i&1&&m(0,ql,18,9,"ng-template",67)}function Jl(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),d(10),r(),a(11,"td",82)(12,"span",99),d(13),k(14,"inrFormat"),r()(),a(15,"td")(16,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.viewNgo(o==null?null:o.ngoId))}),_(17,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);l(2),y(n+1),l(2),y((e==null?null:e.darpanId)||"--"),l(2),y((e==null?null:e.ngoName)||"--"),l(2),y((e==null?null:e.ministryCount)||"--"),l(2),y((e==null?null:e.schemeCount)||"--"),l(2),p("pTooltip","\u20B9"+o.formatValue(e==null?null:e.grantReleased)),l(),v(" ",M(14,7,e==null?null:e.grantReleased)||"--"," ")}}
6function Zl(i,t){i&1&&m(0,Jl,18,9,"ng-template",67)}function Xl(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),d(10),r(),a(11,"td")(12,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.viewDuplicates(o==null?null:o.panNo))}),_(13,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(6);l(2),y(n+1),l(2),v(" ",(e==null?null:e.name)||""," "),l(2),v(" ",e!=null&&e.email?o._enc.decryptData(e==null?null:e.email):""," "),l(2),v(" ",e!=null&&e.mobile?o._enc.decryptData(e==null?null:e.mobile):""," "),l(2),y((e==null?null:e.memCount)||"0")}}function es(i,t){i&1&&m(0,Xl,14,5,"ng-template",67)}function ts(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td")(10,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.setdata4(o))}),_(11,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex;l(2),y(n+1),l(2),v(" ",(e==null?null:e.stateName)||""," "),l(2),y((e==null?null:e.sectorName)||""),l(2),y((e==null?null:e.npoCount)||"")}}function is(i,t){i&1&&m(0,ts,12,4,"ng-template",67)}function ns(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" ",e.regDistrct," ")}}function os(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" (",e.regState,") ")}}function as(i,t){if(i&1&&m(0,ns,1,1)(1,os,1,1),i&2){let e=s().$implicit;g(e!=null&&e.regDistrct?0:-1),l(),g(e!=null&&e.regState?1:-1)}}function rs(i,t){i&1&&d(0," -- ")}function ls(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td",82),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),m(10,as,2,2)(11,rs,1,0),r(),a(12,"td")(13,"span",85),C("click",function(){let o=h(e).$implicit,c=s(6);return f(c.viewNgo(o==null?null:o.ngoId))}),_(14,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex;l(2),y(n+1),l(2),y((e==null?null:e.darpanId)||"--"),l(2),v(" ",e.ngoName||"--"," "),l(2),y(e.ngoType||"--"),l(2),g(e!=null&&e.regDistrct||e.regState?10:11)}}function ss(i,t){i&1&&m(0,ls,15,5,"ng-template",67)}function ds(i,t){i&1&&(a(0,"span",101),d(1,"Please Enter Search Criteria from Above Form"),r())}function cs(i,t){if(i&1&&(a(0,"tr")(1,"td",89),_(2,"img",90),a(3,"h2",91),d(4," No Data Found "),m(5,ds,2,0,"span",101),r()()()),i&2){let e=s(5);l(),B("colspan",e.blacklisted?8:e.ReportConfig==null?null:e.ReportConfig.Headers.length),l(4),g(e.ReportConfig.From!==e.Reports.DuplicateMembersComponent?5:-1)}}function ps(i,t){if(i&1){let e=x();a(0,"p-table",92,1),C("onLazyLoad",function(o){h(e);let c=s(4);return f(c.loadLazy(o))}),m(2,Nl,1,1,"ng-template",65)(3,Fl,4,1,"ng-template",66)(4,Ul,1,0,null,67)(5,Gl,1,0,null,67)(6,jl,1,0,null,67)(7,Hl,1,0,null,67)(8,Kl,1,0,null,67)(9,Ql,1,0,null,67)(10,Zl,1,0,null,67)(11,es,1,0,null,67)(12,is,1,0,null,67)(13,ss,1,0,null,67)(14,cs,6,2,"ng-template",68),r()}if(i&2){let e=s(4);p("value",e.data)("rows",10)("tableStyle",F(11,Ui))("paginator",e.data.length>0)("lazy",!0)("sortMode","multiple")("multiSortMeta",e.multiSortMeta)("totalRecords",e.totalRecords)("loading",e.loading)("first",e.first),l(4),g(e.ReportConfig.From===e.Reports.NgoEnrolledComponent?4:e.ReportConfig.From===e.Reports.NgosComponent?5:e.ReportConfig.From===e.Reports.YwGrantsComponent?6:e.ReportConfig.From===e.Reports.MinistriesComponent?7:e.ReportConfig.From===e.Reports.SchemeWiseDetails?8:e.ReportConfig.From===e.Reports.TopStatesComponent?9:e.ReportConfig.From===e.Reports.NgoWiseGrantComponent?10:e.ReportConfig.From===e.Reports.DuplicateMembersComponent?11:e.ReportConfig.From===e.Reports.SectorWiseNposComponent?12:e.ReportConfig.From===e.Reports.NgoWiseSectorComponent?13:-1)}}function ms(i,t){if(i&1&&(a(0,"div",18),m(1,fl,6,14,"p-table",63)(2,ps,15,12,"p-table",64),r()),i&2){let e=s(3);l(),g(e.ReportConfig.From===e.Reports.UnblacklistedNPOsComponent?1:2)}}function _s(i,t){if(i&1&&(a(0,"p-card",13)(1,"div",14),m(2,Mr,11,12,"div",15)(3,al,20,17,"div",16)(4,ms,3,1,"div",17),r()()),i&2){let e=s(2);l(2),g(e.ReportConfig.Filters.includes("range")?2:-1),l(),p("ngIf",e.ReportConfig.From!==e.Reports.UnblacklistedNPOsComponent),l(),p("ngIf",e.showTable)}}function us(i,t){if(i&1){let e=x();a(0,"div",69)(1,"div",70)(2,"p-card")(3,"h3",71),d(4," Total NPOs: "),a(5,"span",72),d(6),k(
67,"inrFormat"),r()()()(),_(8,"div",73),a(9,"div",73)(10,"p-floatLabel",74)(11,"input",75),j("ngModelChange",function(o){h(e);let c=s(5);return z(c.searchValue,o)||(c.searchValue=o),f(o)}),C("input",function(o){h(e);let c=s(5);return f(c.onGlobalFilter1(o))}),r(),a(12,"label",54),d(13,"NPO Name/ Darpan ID"),r(),_(14,"i",76),r(),a(15,"p-button",77),C("click",function(){h(e);let o=s(5);return f(o.exportData())}),r()()()}if(i&2){let e=s(5);l(6),y(M(7,3,e.viewDetails.length)),l(5),G("ngModel",e.searchValue),l(4),p("loading",e.isDownloading)}}function hs(i,t){if(i&1&&(a(0,"th",80),d(1),_(2,"p-sortIcon",81),r()),i&2){let e=s().$implicit;p("pSortableColumn",e.sortable?e.field:null),l(),v(" ",e.label," "),l(),p("field",e.field)}}function fs(i,t){if(i&1&&(a(0,"th"),d(1),r()),i&2){let e=s().$implicit;l(),v(" ",e.label," ")}}function gs(i,t){if(i&1&&(fe(0),m(1,hs,3,3,"th",79)(2,fs,2,1,"th",52),ge()),i&2){let e=t.$implicit;l(),p("ngIf",e.sortable),l(),p("ngIf",!e.sortable)}}function Cs(i,t){if(i&1&&(a(0,"tr"),m(1,gs,3,2,"ng-container",78),r()),i&2){let e=s(5);l(),p("ngForOf",e.ReportConfig==null?null:e.ReportConfig.Headers_Internals)}}function bs(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td",82),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td",82),d(10),_(11,"br"),d(12),_(13,"br"),d(14),_(15,"br"),d(16),r(),a(17,"td")(18,"span",85),C("click",function(){let o=h(e).$implicit,c=s(5);return f(c.viewDuplicateNgo(o==null?null:o.ngoId))}),_(19,"i",86),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(5);l(2),y(n+1),l(2),y((e==null?null:e.darpanId)||""),l(2),y((e==null?null:e.ngoName)||""),l(2),y((e==null?null:e.district)+" ("+(e==null?null:e.state)+")"||""),l(2),v(" ",(e==null?null:e.name)||"",""),l(2),v(" ",(e==null?null:e.designation)||"",""),l(2),v(" ",e!=null&&e.email?o._enc.decryptData(e==null?null:e.email):""," "),l(2),v(" ",e!=null&&e.mobile?o._enc.decryptData(e==null?null:e.mobile):""," ")}}function ys(i,t){i&1&&(a(0,"tr")(1,"td",104),_(2,"img",90),a(3,"h2",91),d(4,"No Data Found"),r()()())}function xs(i,t){if(i&1&&(a(0,"p-card",13)(1,"p-table",103,2),m(3,us,16,5,"ng-template",65)(4,Cs,2,1,"ng-template",66)(5,bs,20,8,"ng-template",67)(6,ys,5,0,"ng-template",68),r()()),i&2){let e=s(4);l(),p("value",e.viewDetails)("tableStyle",F(8,Ui))("lazy",!1)("loading",e.loading1)("rows",10)("paginator",e.viewDetails.length>10)("totalRecords",e.viewDetails.length)("globalFilterFields",F(9,Mn))}}function vs(i,t){if(i&1){let e=x();a(0,"app-view-ngo-details",105),C("back",function(o){h(e);let c=s(4);return f(c.backbtn2(o))}),r()}if(i&2){let e=s(4);p("ngoId",e.darpanId)("enableGrant",!0)("fromAdmin",!0)}}function Ss(i,t){if(i&1&&m(0,xs,7,10,"p-card",13)(1,vs,1,3,"app-view-ngo-details",102),i&2){let e=s(3);g(e.showDuplicateNgo?0:1)}}function ws(i,t){if(i&1){let e=x();a(0,"app-view-ngo-details",105),C("back",function(o){h(e);let c=s(3);return f(c.backbtn(o))}),r()}if(i&2){let e=s(3);p("ngoId",e.darpanId)("enableGrant",!0)("fromAdmin",!0)}}function Ns(i,t){if(i&1&&m(0,Ss,2,1)(1,ws,1,3,"app-view-ngo-details",102),i&2){let e=s(2);g(e.ReportConfig.From===e.Reports.DuplicateMembersComponent?0:1)}}function Is(i,t){if(i&1&&m(0,_s,5,3,"p-card",13)(1,Ns,2,1),i&2){let e=s();g(e.isViewNgo?1:0)}}var O=class i{constructor(t,e,n,o,c,u,T,D){this.http=t;this._service=e;this.fb=n;this._enc=o;this._router=c;this.dataService=u;this.appComponent=T;this.document=D;this.searchForm=this.fb.group({selectedFinancialYr:[null],selectedMinistryName:[null],selectedSchemeName:[{value:null,disabled:!0}],selectedState:[null],selectedDistrict:[{value:null,disabled:!0}],selectedNgoType:[null],selectedStatus:[null],uniqueId:["",E.pattern(/^([A-Za-z]{2})\/\d{4}\/\d{7}$/)],selectedSectors:[[]],selectedSector:[null],selectedNgoTypes:[[]],total:[""],npoName:["",E.pattern(/^(?!\s)(?!.*\s{2})(?!.*\s$)(?=.*[a-zA-Z0-9'])^[a-zA-Z0-9'\(\)\"][a-zA-Z0-9_\s\.\,\&\-\+\'\(\)\/\#@\"\[\]\:\`]*$/)],memberName:["",E.pattern(/^(?!\s)(?!.*\s{2})(?!.*\s$)[a-zA-Z\s]*$/)],memberMobile:["",[E.pattern("^[6-9][0-9]{9}$")]],memberEmail:["",[E.minLength(3),E.maxLength(50),E.pattern(/^[a-zA-Z0-9._%+-]+@(?!(?:.*\.\.)).*[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/)]],memberPanNumber:["",[E.pattern("[A-Za-z]{5}[0-9]{4}[A-Za-z]{1}")]],range:[5]}),this.userType=o.decryptData(this.userType),this.getFinancialYr()}activeRange=5;heading="Reports";ReportConfig;filters;fromDashboard=!1;grparent="";parent="";chield="";comingFromDashboard=!1;isMinistryUser=!1;isStateUser=!1;needToLoad=!0;showMembers=!1;showMinistries=!1;showSchemes=!1;showNPOs=!1;showGrants=!1;blacklisted=!1;filePreview=!1;previewUrl="";fileName="";isDownloading=!1;showTotal=!1;pageLodder=!0;fromGrants=!1;showTable=!1;loading=!1;loading1=!1;showDuplicateNgo=!1;finYrs=[];ministries=[];schemes=[{id:0,dsplyName:"ALL"}];status=[{name:"ALL",value:3},{name:"Active",value:1},{name:"Blacklisted",value:2}];district=[{districtId:0,districtName:"ALL"}];state=[];sectors=[];ngoTypes=[];data=[];dataAll=[];searchForm;first=0;currentPageNo=0;totalRecords=0;maxPageSize=1e6;filteredData=!1;quary="";shortQuary="";isViewNgo=!1;darpanId="";Reports=_n;userId=localStorage.getItem("uidzzz");userType=localStorage.getItem("utypezzz");viewDetails=[];totalWdgts={ministryCount:0,schemeCount:0,grant:0,ngoCount:0};severity="success-msg";displayMsg="";searchValue;searchValue1;dt2;dt5;multiSortMeta=[];
6ngOnInit(){return Fe(this,null,function*(){if(yield this.getSectors(),this.userType==="MINISTRYADMIN")this.getStates(),this.userId?this.ReportConfig.From==="UnblacklistedNPOsComponent"?(this.showTable=!0,this.pageLodder=!1,this.getUnBlacklistedNPOReport()):this.ReportConfig.From==="DuplicateMembersComponent"?(this.loading=!0,this.pageLodder=!1,this.showTable=!0,this.loadData()):(this.isMinistryUser=!0,this.getMinistries(!0)):this._router.navigate(["login"]);else if(this.userType==="STATEADMIN")this.userId?this.ReportConfig.From==="UnblacklistedNPOsComponent"?(this.showTable=!0,this.pageLodder=!1,this.getUnBlacklistedNPOReport()):this.ReportConfig.From==="DuplicateMembersComponent"?(this.pageLodder=!1,this.showTable=!0,this.loading=!0,this.loadData()):(this.isStateUser=!0,this.getStates(!0)):this._router.navigate(["login"]);else{switch(this.getStates(),this.ReportConfig.From){case"NgoEnrolledComponent":this.getNgoTypes();break;case"NgosComponent":this.getMinistries(),this.getNgoTypes();break;case"YwGrantsComponent":this.getMinistries();break;case"MinistriesComponent":this.getMinistries();break;case"SchemeWiseDetails":this.getMinistries();break;case"TopStatesComponent":this.getMinistries();break;case"NgoWiseGrantComponent":this.getMinistries();break;case"UnblacklistedNPOsComponent":this.pageLodder=!1,this.showTable=!0,this.getUnBlacklistedNPOReport();break;case"NgoWiseSectorComponent":this.getNgoTypes();break;case"SectorWiseNposComponent":break;case"DuplicateMembersComponent":this.pageLodder=!1,this.showTable=!0,this.loading=!0;break;default:break}this.ReportConfig.From!=="UnblacklistedNPOsComponent"&&this.loadData()}let t=this.ReportConfig.Headers.filter(e=>e.defaultSort).map(e=>({field:e.field,order:e.defaultSort==="asc"?1:-1}));t.length&&(this.multiSortMeta=t)})}loadData(){this.fromDashboard?(this.filters?.selectedState&&this.filters?.selectedState!==null&&this.onStateChange(this.filters?.selectedState),this.filters?.selectedMinistryName&&this.filters?.selectedMinistryName!==null&&this.onMinstryChange(this.filters?.selectedMinistryName),setTimeout(()=>{this.searchForm.patchValue({selectedFinancialYr:this.filters?.selectedFinancialYr&&this.filters?.selectedFinancialYr!==null?this.filters?.selectedFinancialYr:this.finYrs[0],selectedMinistryName:this.filters?.selectedMinistryName&&this.filters?.selectedMinistryName!==null?this.filters?.selectedMinistryName:this.ministries[0],selectedState:this.filters?.selectedState&&this.filters?.selectedState!==null?this.filters?.selectedState:this.state[0],selectedNgoType:this.filters?.selectedNgoType&&this.filters?.selectedNgoType!==null?this.filters?.selectedNgoType:this.ngoTypes[0],selectedSector:this.filters?.selectedSector&&this.filters?.selectedSector!==null?this.filters?.selectedSector:"",selectedStatus:this.filters?.selectedStatus&&this.filters?.selectedStatus!==null?this.filters?.selectedStatus:this.status[0],uniqueId:this.filters?.uniqueId&&this.filters?.uniqueId!==""?this.filters?.uniqueId:"",selectedSectors:this.filters?.selectedSectors&&this.filters?.selectedSectors?.length>0?this.filters?.selectedSectors:[],selectedNgoTypes:this.filters?.selectedNgoTypes&&this.filters?.selectedNgoTypes?.length>0?this.filters?.selectedNgoTypes:[],total:this.filters?.total&&this.filters?.total!==""?this.filters?.total:""}),this.searchForm.patchValue({selectedSchemeName:this.filters?.selectedMinistryName&&this.filters?.selectedMinistryName!==null?this.filters?.selectedSchemeName&&this.filters?.selectedSchemeName!==null?this.filters?.selectedSchemeName:this.schemes[0]:this.schemes[0],selectedDistrict:this.filters?.selectedState&&this.filters?.selectedState!==null?this.filters?.selectedDistrict&&this.filters?.selectedDistrict!==null?this.filters?.selectedDistrict:this.district[0]:this.district[0]}),setTimeout(()=>{this.pageLodder=!1,this.search()},100)},1e3)):(this.schemes=[{id:0,dsplyName:"ALL"}],this.district=[{districtId:0,districtName:"ALL"}],setTimeout(()=>{if(this.searchForm.patchValue({selectedStatus:this.status[0],selectedSchemeName:this.schemes[0],selectedDistrict:this.district[0]}),this.ReportConfig.From!=="NgoWiseSectorComponent")this.pageLodder=!1,this.search();else{let t=setInterval(()=>{this.sectors&&this.sectors.length>0&&(clearInterval(t),this.searchForm.patchValue({selectedSector:this.sectors[0]}),this.pageLodder=!1,this.search())},300)}},500))}isFilterEmpty(){let t=this.filters,e=t?.selectedState||t?.selectedDistrict||t?.selectedSectors&&t?.selectedSectors?.length>0||t?.selectedNgoTypes&&t?.selectedNgoTypes?.length>0||t?.selectedFinancialYr||t?.selectedMinistryName||t?.selectedSchemeName||t?.selectedNgoType||t?.selectedStatus||t?.uniqueId||t?.total||t.selectedSector;return e||(this.data=[],this.showTable=!1),!e}getMinistries(t){this._service.getMinistries(S.APIUrl).subscribe(e=>{if(e.statusCode.includes("001"))if(this.ministries=e?.report,t){let n=e?.report.find(o=>o.id==this.userId);switch(this.searchForm.patchValue({selectedMinistryName:n}),this.onMinstryChange(n),this.ReportConfig.From){case"NgoEnrolledComponent":this.getNgoTypes();break;case"NgosComponent":this.getNgoTypes();break;case"YwGrantsComponent":break;case"MinistriesComponent":break;case"SchemeWiseDetails":break;case"TopStatesComponent":break;case"NgoWiseSectorComponent":this.getNgoTypes();break;case"SectorWiseNposComponent":break;case"NgoWiseGrantComponent":break;default:break}this.loadData()}else{let n={id:0,dsplyName:"ALL"};this.ministries.unshift(n),this.fromDashboard||this.searchForm.patchValue({selectedMinistryName:this.ministries[0]})}})}getSchemes(t){this._service.getSchemes(S.APIUrl,t).subscribe(e=>{if(e.statusCode.includes("001")){this.schemes=e?.report;let n={id:0,dsplyName:"ALL"};this.schemes.unshift(n)}})}getFinancialYr(){this._service.getGenKeys(S.APIUrl,"FIN_YEAR").subscribe(t=>
6{if(t.statusCode.includes("001")){this.finYrs=t?.genealKeyLst;let e={generalKvId:0,value:"ALL"};this.finYrs.unshift(e),this.fromDashboard||this.searchForm.patchValue({selectedFinancialYr:this.finYrs[0]})}})}getStates(t){this._service.getStates(S.APIUrl).subscribe(e=>{if(e.statusCode.includes("001"))if(this.state=e?.mstrStates,t){let n=e?.mstrStates.find(o=>o.stateId==this.userId);switch(this.searchForm.patchValue({selectedState:n}),this.onStateChange(n),this.ReportConfig.From){case"NgoEnrolledComponent":this.getNgoTypes();break;case"NgosComponent":this.getMinistries(),this.getNgoTypes();break;case"YwGrantsComponent":this.getMinistries();break;case"MinistriesComponent":this.getMinistries();break;case"SchemeWiseDetails":this.getMinistries();break;case"TopStatesComponent":this.getMinistries();break;case"NgoWiseSectorComponent":this.getNgoTypes();break;case"SectorWiseNposComponent":break;case"NgoWiseGrantComponent":this.getMinistries();break;default:break}this.loadData()}else{let n={stateId:0,stateName:"ALL",stateCode:"ALL",category:"ALL"};this.state.unshift(n),this.fromDashboard||this.searchForm.patchValue({selectedState:this.state[0]})}})}getDistricts(t){this._service.getDistricts(S.APIUrl,t).subscribe(e=>{if(e.statusCode.includes("001")){let n={districtId:0,districtName:"ALL"};this.district=e?.mstrDistricts,this.district.unshift(n)}})}getNgoTypes(){this._service.getGenKeys(S.APIUrl,"NGOTYPE").subscribe(t=>{if(t.statusCode.includes("001")){this.ngoTypes=t?.genealKeyLst;let e={generalKvId:0,value:"ALL"};this.ngoTypes.unshift(e),this.fromDashboard||this.searchForm.patchValue({selectedNgoType:this.ngoTypes[0]})}})}getSectors(){this._service.getGenKeys(S.APIUrl,"SECTOR_WA").subscribe(t=>{t.statusCode.includes("001")&&(this.sectors=t?.genealKeyLst)})}onMinstryChange(t){this.searchForm.patchValue({selectedSchemeName:null}),t&&this.ReportConfig.Filters.includes("selectedSchemeName")&&(this.schemes=[],t.id!==0?(this.searchForm.get("selectedSchemeName")?.enable(),this.getSchemes(t.id)):(this.schemes=[{id:0,dsplyName:"ALL"}],this.searchForm.get("selectedSchemeName")?.disable(),this.searchForm.patchValue({selectedSchemeName:this.schemes[0]})))}minstryClear(){this.searchForm.patchValue({selectedSchemeName:null}),this.searchForm.get("selectedSchemeName")?.disable()}onStateChange(t){this.searchForm.patchValue({selectedDistrict:null}),t&&this.ReportConfig.Filters.includes("selectedDistrict")&&(t.stateId!==99&&t.stateId!==0?(this.district=[],this.searchForm.get("selectedDistrict")?.enable(),this.getDistricts(t.stateId)):(this.searchForm.get("selectedDistrict")?.disable(),this.district=[{districtId:0,districtName:"ALL"}],this.searchForm.patchValue({selectedDistrict:this.district[0]})))}stateClear(){this.searchForm.patchValue({selectedDistrict:null}),this.searchForm.get("selectedDistrict")?.disable()}handleEnterKey(){this.searchForm.valid&&!this.loading&&(this.search(),this.clearData())}search(){this.showMembers=!1,this.showMinistries=!1,this.showSchemes=!1,this.showNPOs=!1,this.showGrants=!1,this.currentPageNo=0,this.first=0,this.data=[];let t=this.searchForm.value,e={};if(t.selectedState&&t.selectedState.stateId!==0&&(this.ReportConfig.From==="NgoWiseSectorComponent"?e.workStateId=t.selectedState.stateId:e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(this.ReportConfig.From==="NgoWiseSectorComponent"?e.workDstrctId=t.selectedDistrict.districtId:(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId)),t.selectedSectors&&t.selectedSectors.length>0&&(e.sectorIds=t.selectedSectors.join(",")),t.selectedSector&&t.selectedSector.generalKvId!==0&&(e.sectorId=t.selectedSector.generalKvId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedStatus&&this.ReportConfig.From==="NgoEnrolledComponent"?(t.selectedStatus.value==1?e.allStatus=!1:t.selectedStatus.value==2?e.blacklisted=!0:e.allStatus=!0,t.selectedStatus.value==2?this.blackl
6isted=!0:this.blacklisted=!1):this.blacklisted=!1,t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),this.ReportConfig.From==="DuplicateMembersComponent"&&(t.memberName&&(e.memName=t.memberName),t.memberMobile&&(e.memMobile=this._enc.encryptData(t.memberMobile)),t.memberPanNumber&&(e.memPan=this._enc.encryptData(t.memberPanNumber)),t.range))switch(t.range){case 6:e.countMin=2,e.countMax=200;break;case 1:e.countMin=2,e.countMax=10;break;case 2:e.countMin=11,e.countMax=20;break;case 3:e.countMin=21,e.countMax=30;break;case 4:e.countMin=31,e.countMax=40;break;case 5:e.countMin=41,e.countMax=200;break}this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this.showTable?this.getData():this.showTable=!0,this.getCountWidgtDetails()}reset(){this.currentPageNo=0,this.first=0,this.searchForm.reset()}isFormEmpty(){let t=this.searchForm.value,e=t.selectedState||t.selectedDistrict||t.selectedSectors&&t.selectedSectors.length>0||t.selectedNgoTypes&&t.selectedNgoTypes.length>0||t.selectedFinancialYr||t.selectedMinistryName||t.selectedSchemeName||t.selectedNgoType||t.selectedStatus||t.selectedSector||t.uniqueId;return e||(this.data=[],this.showTable=!1),!e}loadLazy(t){let e=t.first?t.first/10:0;this.currentPageNo=e,this.first=t.first?t.first:0,t.multiSortMeta&&t.multiSortMeta.length?this.shortQuary=t.multiSortMeta.map(n=>`&sort=${n.field},${n.order===1?"asc":"desc"}`).join(""):t.sortField?this.shortQuary=`&sort=${t.sortField},${t.sortOrder===1?"asc":"desc"}`:this.shortQuary="",this.ReportConfig.From==="DuplicateMembersComponent"?(this.needToLoad&&e!==this.currentPageNo||this.shortQuary!="")&&this.getData():(this.loading=!0,this.getData())}viewNgo(t){this.darpanId=t,this.isViewNgo=!0}viewDuplicateNgo(t){this.darpanId=t,this.showDuplicateNgo=!1}viewDuplicates(t){this.searchValue="",this.viewDetails=[],this.loading1=!0,this.needToLoad=!1,this.showDuplicateNgo=!0,this.isViewNgo=!0,this._service.getDuplicateMemberDetails(S.APIUrl,this.encodeUrlValue(t)).subscribe(e=>{e.statusCode.includes("001")?(this.viewDetails=e?.report,this.loading1=!1):(this.viewDetails=[],this.loading1=!1,this.severity="error-msg",this.displayMsg=e?.displayMsg,this.showInfoMsg())})}back3(){this.showDuplicateNgo=!1,this.isViewNgo=!1,setTimeout(()=>{this.needToLoad=!0},100)}backbtn(t){this.darpanId="",this.isViewNgo=!1,this.searchValue=""}backbtn2(t){this.darpanId="",this.showDuplicateNgo=!0,this.searchValue=""}formatAddress(t){if(!t)return"--";let e=[];t.address&&e.push(t.address),t.subDstName&&e.push(t.subDstName),t.districtName&&e.push(t.districtName);let n=[];t.stateName&&n.push(`(${t.stateName})`),t.pinCode&&n.push(`- ${t.pinCode}`);let o=e.join(", ");return n.length&&(o+=` ${n.join(" ")}`),o||"--"}hasValue(t,e){return e.some(n=>{let o=n.split("."),c=t;for(let u of o)c=c?c[u]:null;return c&&c!=="--"})}getData(){switch(this.ReportConfig.From){case"NgoEnrolledComponent":this.getNPOEnrolledDetails();break;case"NgosComponent":this.getNPOWiseReport();break;case"YwGrantsComponent":this.getFYWiseReport();break;case"MinistriesComponent":this.getMinistryWiseReport();break;case"SchemeWiseDetails":this.getSchemeWiseReport();break;case"TopStatesComponent":this.getStateWiseReport();break;case"NgoWiseGrantComponent":this.getTopNgoWiseReport();break;case"DuplicateMembersComponent":this.getDuplicateMemberNPOReport();break;case"SectorWiseNposComponent":this.getSectorWiseNPOReport();break;case"NgoWiseSectorComponent":this.getNPOWiseSectorReport();break;default:break}}exportData(){switch(this.isDownloading=!0,this.ReportConfig.From){case"NgoEnrolledComponent":this.getNPOEnrolledDetail
6sA();break;case"NgosComponent":this.getNPOWiseReportA();break;case"YwGrantsComponent":this.getFYWiseReportA();break;case"MinistriesComponent":this.getMinistryWiseReportA();break;case"SchemeWiseDetails":this.getSchemeWiseReportA();break;case"TopStatesComponent":this.getStateWiseReportA();break;case"NgoWiseGrantComponent":this.getTopNgoWiseReportA();break;case"UnblacklistedNPOsComponent":this.getUnBlacklistedNPOReportA();break;case"DuplicateMembersComponent":this.getDuplicateMemberNPOReportA();break;case"SectorWiseNposComponent":this.getSectorWiseNPOReportA();break;case"NgoWiseSectorComponent":this.getNPOWiseSectorReportA();break;default:this.isDownloading=!1;break}}getNPOEnrolledDetails(){this.loading=!0,this._service.getNPOEnrolledDetails(S.APIReg,this.quary,this.currentPageNo).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.ngos,this.totalRecords=t?.pageInfo?.totalNumberOfElement,this.totalWdgts.ngoCount=this.totalRecords):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getNPOWiseReport(){this.loading=!0,this._service.getNPOWiseReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary?this.shortQuary:"&sort=ngoName,asc&sort=financialYear,asc").subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getFYWiseReport(){this.loading=!0,this._service.getFYWiseReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getMinistryWiseReport(){this.loading=!0,this._service.getMinistryWiseReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getSchemeWiseReport(){this.loading=!0,this._service.getSchemeWiseReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getStateWiseReport(){this.loading=!0,this._service.getStateWiseReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getTopNgoWiseReport(){this.loading=!0,this._service.getTopNgoWiseReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getSectorWiseNPOReport(){this.loading=!0,this._service.getSectorWiseNPOReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement,this.totalWdgts.ngoCount=t?.totalCount):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getNPOWiseSectorReport(){this.loading=!0,this._service.getNPOWiseSectorReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement,this.totalWdgts.ngoCount=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}getUnBlacklistedNPOReport(){this.loading=!0,this._service.getUnBlacklistedNPOReport(S.APIUrl,this.quary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement,this.totalWdgts.ngoCount=t?.pageInfo?.totalNumberOfElement,this.loading=!1):this.loading=!1})}getDuplicateMemberNPOReport(){this.needToLoad=!0,this.loading=!0,this._service.getDuplicateMemberNPOReport(S.APIUrl,this.quary,this.currentPageNo,this.shortQuary).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.report,this.totalRecords=t?.pageInfo?.totalNumberOfElement,this.maxPageSize=this.totalRecords,this.showMembers=!0):this.currentPageNo===0&&(this.data=[]),this.loading=!1})}
6getNPOEnrolledDetailsA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedSectors&&t.selectedSectors.length>0&&(e.sectorIds=t.selectedSectors.join(",")),t.selectedSector&&t.selectedSector.generalKvId!==0&&(e.sectorId=t.selectedSector.generalKvId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedStatus&&this.ReportConfig.From==="NgoEnrolledComponent"?(t.selectedStatus.value==1?e.allStatus=!1:t.selectedStatus.value==2?e.blacklisted=!0:e.allStatus=!0,t.selectedStatus.value==2?this.blacklisted=!0:this.blacklisted=!1):this.blacklisted=!1,t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getNPOEnrolledDetailsA(S.APIReg,this.quary,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001"))if(this.dataAll=n?.ngos,this.blackl
6isted){let o=["Sr. No.","DARPAN ID","NPO Name","NPO Type","Registered District","Registered State","Blacklisted By","WEF"],c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.darpanId||"--",[o[2]]:u.ngoName||"--",[o[3]]:u.ngoType||"--",[o[4]]:u.districtName||"--",[o[5]]:u.stateName||"--",[o[6]]:u.blacklistedByMinistry||"--",[o[7]]:Kt(u.blacklistedWEF)||"--"}));this.genrateCsv(o,c)}else{let o=["Sr. No.","DARPAN ID","NPO Name","NPO Type","Registered District","Registered State"],c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.darpanId||"--",[o[2]]:u.ngoName||"--",[o[3]]:u.ngoType||"--",[o[4]]:u.districtName||"--",[o[5]]:u.stateName||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg()})}getNPOWiseReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getNPOWiseReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=(this.ReportConfig?.Headers||[]).map(u=>u.label).slice(0,-1).map(u=>u.replace(/₹/g,"INR")),c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.ngoName||"--",[o[2]]:u.ngoType||"--",[o[3]]:u.ministryName||"--",[o[4]]:u.financialYear||"--",[o[5]]:u.grantReleased||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg()})}getFYWiseReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getFYWiseReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=(this.ReportConfig?.Headers||[]).map(u=>u.label).slice(0,-1).map(u=>u.replace(/₹/g,"INR")),c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.financialYear||"--",[o[2]]:u.ministryCount||"--",[o[3]]:u.schemeCount||"--",[o[4]]:u.npoCount||"--",[o[5]]:u.grantReleased||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg(
6)})}getMinistryWiseReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getMinistryWiseReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=(this.ReportConfig?.Headers||[]).map(u=>u.label).slice(0,-1).map(u=>u.replace(/₹/g,"INR")),c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.ministryName||"--",[o[2]]:u.schemeCount||"--",[o[3]]:u.ngoCount||"--",[o[4]]:u.grantReleased||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg()})}getSchemeWiseReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getSchemeWiseReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=(this.ReportConfig?.Headers||[]).map(u=>u.label).slice(0,-1).map(u=>u.replace(/₹/g,"INR")),c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.schemeName||"--",[o[2]]:u.ministryName||"--",[o[3]]:u.ngoCount||"--",[o[4]]:u.grantReleased||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg()})}getStateWiseReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getStateWiseReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=(this.ReportConfig?.Headers||[]).map(u=>u.label).slice(0,-1).map(u=>u.replace(/₹/g,"INR")),c=this.dataAll.map((u,T)=>
6({[o[0]]:T+1,[o[1]]:u.stateName==="ALL"?"Central":u.stateName||"--",[o[2]]:u.ministryCount||"--",[o[3]]:u.schemeCount||"--",[o[4]]:u.ngoCount||"--",[o[5]]:u.grantReleased||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg()})}getSectorWiseNPOReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedSector&&t.selectedSector.generalKvId!==0&&(e.sectorId=t.selectedSector.generalKvId),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getSectorWiseNPOReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=(this.ReportConfig?.Headers||[]).map(u=>u.label).slice(0,-1).map(u=>u.replace(/₹/g,"INR")),c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.stateName||"--",[o[2]]:u.sectorName||"--",[o[3]]:u.npoCount||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg()})}getNPOWiseSectorReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.workStateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.workDstrctId=t.selectedDistrict.districtId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.selectedSector&&t.selectedSector.generalKvId!==0&&(e.sectorId=t.selectedSector.generalKvId),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),this._service.getNPOWiseSectorReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=["Sr. No.","DARPAN ID","NPO Name","NPO Type","Registered District","Registered State"],c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.darpanId,[o[2]]:u.ngoName||"--",[o[3]]:u.ngoType||"--",[o[4]]:u.regDistrct||"--",[o[5]]:u.regState||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg()})}getTopNgoWiseReportA(){let t=this.searchForm.value,e={};t.selectedState&&t.selectedState.stateId!==0&&(e.stateId=t.selectedState.stateId),t.selectedDistrict&&t.selectedDistrict.districtId!==0&&(e.districtId=t.selectedDistrict.districtId,e.dstrctId=t.selectedDistrict.districtId),t.selectedNgoTypes&&t.selectedNgoTypes.length>0&&(e.ngoTypeIds=t.selectedNgoTypes.join(",")),t.selectedNgoType&&t.selectedNgoType?.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.ngoTypeIds=t.selectedNgoType?.generalKvId:e.ngoTypeId=t.selectedNgoType?.generalKvId),t.selectedFinancialYr&&t.selectedFinancialYr.generalKvId!==0&&(this.ReportConfig.From==="NgoEnrolledComponent"?e.financeYear=t.selectedFinancialYr?.value:e.financialYear=t.selectedFinancialYr?.value),t.selectedMinistryName&&t.selectedMinistryName?.id!==0&&(e.ministryId=t.selectedMinistryName?.id),t.selectedSchemeName&&t.selectedSchemeName?.id!==0&&(e.schemeId=t.selectedSchemeName?.id),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this._service.getTopNgoWiseReportA(S.APIUrl,this.quary,this.currentPageNo,this.maxPageSize).subscribe(n=>{if(n.statusCode.includes("001")){this.dataAll=n?.report;let o=(this.ReportConfig?.Headers||[]).map(u=>u.label).slice(0,-1).map(u=>u.replace(/₹/g,"INR")),c=this.dataAll.map((u,T)=>({[o[0]]:T+1,[o[1]]:u.darpanId,[o[2]]:u.ngoName||"--",[o[3]]:u.ministryCount||"--",[o[4]]:u.schemeCount||"--",[o[5]]:u.grantReleased||"--"}));this.genrateCsv(o,c)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg(
6)})}getUnBlacklistedNPOReportA(){this.dataAll=this.data;let t=(this.ReportConfig?.Headers||[]).map(n=>n.label).slice(0,-1).map(n=>n.replace(/₹/g,"INR")),e=this.dataAll.map((n,o)=>({[t[0]]:o+1,[t[1]]:n.darpanId,[t[2]]:n.ngoName||"--",[t[3]]:n.blacklistedByMinistry||"--",[t[4]]:n.blacklistedDate?Kt(n.blacklistedDate):"--",[t[5]]:n.blacklistedReason||"--",[t[6]]:n.unBlacklistedDate?Kt(n.unBlacklistedDate):"--",[t[7]]:n.unBlacklistedReason||"--"}));this.genrateCsv(t,e)}getDuplicateMemberNPOReportA(){if(this.showDuplicateNgo){this.dataAll=this.viewDetails;let t=["Sr. No.","DARPAN ID","NPO Name","Registered District","Registered State","Member Name","Member Designation.","Member E-Mail ID","Member Mobile No."],e=this.dataAll.map((n,o)=>({[t[0]]:o+1,[t[1]]:n.darpanId,[t[2]]:n.ngoName||"--",[t[3]]:n?.district||"--",[t[4]]:n?.state||"--",[t[5]]:n?.name||"--",[t[6]]:n?.designation||"--",[t[7]]:n?.email?this._enc.decryptData(n?.email):"",[t[8]]:n?.mobile?this._enc.decryptData(n?.mobile):""}));this.genrateCsv(t,e)}else this._service.getDuplicateMemberNPOReportA(S.APIUrl,this.totalRecords).subscribe(t=>{if(t.statusCode.includes("001")){this.dataAll=t?.report;let e=(this.ReportConfig?.Headers||[]).slice(0,-1).map(o=>o.replace(/₹/g,"INR")),n=this.dataAll.map((o,c)=>({[e[0]]:c+1,[e[1]]:o?.name,[e[2]]:o?.email?this._enc.decryptData(o?.email):"",[e[3]]:o?.mobile?this._enc.decryptData(o?.mobile):"",[e[4]]:o?.memCount||"--"}));this.genrateCsv(e,n)}else this.isDownloading=!1,this.severity="error-msg",this.displayMsg=t?.displayMsg,this.showInfoMsg()})}getCountWidgtDetails(){if(this.showMembers=!1,this.showMinistries=!1,this.showSchemes=!1,this.showNPOs=!1,this.showGrants=!1,this.ReportConfig.From==="UnblacklistedNPOsComponent"||this.ReportConfig.From==="DuplicateMembersComponent"||this.ReportConfig.From==="NgoWiseSectorComponent"||this.ReportConfig.From==="SectorWiseNposComponent")switch(this.ReportConfig.From){case"UnblacklistedNPOsComponent":this.showNPOs=!0;break;case"DuplicateMembersComponent":this.showMembers=!0;break;case"NgoWiseSectorComponent":this.showNPOs=!0;break;case"SectorWiseNposComponent":this.showNPOs=!0;break}else this._service.getCountWidgtDetail(S.APIUrl,this.quary).subscribe(t=>{if(t.statusCode.includes("001"))switch(this.ReportConfig.From){case"NgoEnrolledComponent":this.showNPOs=!0;break;case"NgosComponent":this.totalWdgts.grant=t?.widget?.totalGrantValue,this.showGrants=!0;break;case"YwGrantsComponent":this.totalWdgts.ministryCount=t?.widget?.ministryReleasingGrants,this.totalWdgts.schemeCount=t?.widget?.schemeReleasingGrants,this.totalWdgts.ngoCount=t?.widget?.enrolledGrantCount+t?.widget?.blacklistedGrantCount,this.totalWdgts.grant=t?.widget?.totalGrantValue,this.showMinistries=!0,this.showSchemes=!0,this.showNPOs=!0,this.showGrants=!0;break;case"MinistriesComponent":this.totalWdgts.ministryCount=t?.widget?.ministryReleasingGrants,this.totalWdgts.schemeCount=t?.widget?.schemeReleasingGrants,this.totalWdgts.ngoCount=t?.widget?.enrolledGrantCount+t?.widget?.blacklistedGrantCount,this.totalWdgts.grant=t?.widget?.totalGrantValue,this.showMinistries=!0,this.showSchemes=!0,this.showNPOs=!0,this.showGrants=!0;break;case"SchemeWiseDetails":this.totalWdgts.ministryCount=t?.widget?.ministryReleasingGrants,this.totalWdgts.schemeCount=t?.widget?.schemeReleasingGrants,this.totalWdgts.ngoCount=t?.widget?.enrolledGrantCount+t?.widget?.blacklistedGrantCount,this.totalWdgts.grant=t?.widget?.totalGrantValue,this.showMinistries=!0,this.showSchemes=!0,this.showNPOs=!0,this.showGrants=!0;break;case"TopStatesComponent":this.totalWdgts.ministryCount=t?.widget?.ministryReleasingGrants,this.totalWdgts.schemeCount=t?.widget?.schemeReleasingGrants,this.totalWdgts.ngoCount=t?.widget?.enrolledGrantCount+t?.widget?.blacklistedGrantCount,this.totalWdgts.grant=t?.widget?.totalGrantValue,this.showMinistries=!0,this.showSchemes=!0,this.showNPOs=!0,this.showGrants=!0;break;case"NgoWiseGrantComponent":this.totalWdgts.ministryCount=t?.widget?.ministryReleasingGrants,this.totalWdgts.schemeCount=t?.widget?.schemeReleasingGrants,this.totalWdgts.ngoCount=t?.widget?.enrolledGrantCount+t?.widget?.blacklistedGrantCount,this.totalWdgts.grant=t?.widget?.totalGrantValue,this.showMinistries=!0,this.showSchemes=!0,this.showNPOs=!0,this.showGrants=!0;break;default:break}})}genrateCsv(t,e){let n=D=>D==null?"":`"${String(D).replace(/"/g,'""')}"`,o=[t.map(n),...e.map(D=>t.map(b=>n(D[b])))].map(D=>D.join(",")).join(`
7`),c=new Blob([o],{type:"text/csv;charset=utf-8;"}),T=(D=>D.toLowerCase().replace(/[^a-z0-9]/gi,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"")+".csv")(this.heading||"export");kn.saveAs(c,T),this.isDownloading=!1}backToParent(){this.searchForm.patchValue({total:""});let t=this.searchForm.value,e=this.parent!==""?this.parent:"/admin";setTimeout(()=>{this._router.navigate([e],{state:{fromDashboard:!0,filters:t?JSON.stringify(t):"",parent:this.grparent,comingFromDashboard:this.comingFromDashboard}})},0)}sendTo(t){let e=this.searchForm.value;setTimeout(()=>{this._router.navigate([t],{state:{fromDashboard:!0,filters:e?JSON.stringify(e):"",parent:this.chield,grparent:this.parent,comingFromDashboard:this.comingFromDashboard}})},0)}setdata(t,e){let n=this.finYrs.find(c=>c.value===t),o=this.searchForm.value;o.selectedFinancialYr=n,o.total=e,setTimeout(()=>{this._router.navigate(["admin/grant-by-ministries"],{state:{fromDashboard:!0,filters:o?JSON.stringify(o):"",parent:this.chield,grparent:this.parent,comingFromDashboard:this.comingFromDashboard}})},0)}setdata1(t,e){let n=this.ministries.find(c=>c.dsplyName===t),o=this.searchForm.value;o.selectedMinistryName=n,o.total=e,setTimeout(()=>
7{this._router.navigate(["admin/grant-allocation-npo"],{state:{fromDashboard:!0,filters:o?JSON.stringify(o):"",parent:this.chield,grparent:this.parent,comingFromDashboard:this.comingFromDashboard}})},0)}setdata2(t,e){let n=this.ministries.find(o=>o.dsplyName===t);this._service.getSchemes(S.APIUrl,n.id).subscribe(o=>{if(o.statusCode.includes("001")){let u=(o?.report).find(D=>D.dsplyName===e),T=this.searchForm.value;T.selectedMinistryName=n,T.selectedSchemeName=u,setTimeout(()=>{this._router.navigate(["admin/grant-allocation-npo"],{state:{fromDashboard:!0,filters:T?JSON.stringify(T):"",parent:this.chield,grparent:this.parent,comingFromDashboard:this.comingFromDashboard}})},0)}})}setdata3(t){let e=this.state.find(o=>o.stateName===t),n=this.searchForm.value;n.selectedState=e,setTimeout(()=>{this._router.navigate(["admin/grant-allocation-npo"],{state:{fromDashboard:!0,filters:n?JSON.stringify(n):"",parent:this.chield,grparent:this.parent,comingFromDashboard:this.comingFromDashboard}})},0)}setdata4(t){let e=this.sectors.find(c=>c.generalKvId==t.sectorId),n=this.state.find(c=>c.stateId==t.stateId),o=this.searchForm.value;o.selectedState=n,o.selectedSector=e,setTimeout(()=>{this._router.navigate(["admin/npo-wise-sector"],{state:{fromDashboard:!0,filters:o?JSON.stringify(o):"",parent:this.chield,grparent:this.parent,comingFromDashboard:this.comingFromDashboard}})},0)}clearData(){this.dataService.clearCache(),this.showTotal=!1}exportFullCSV(t){let e=t.value;t.value=this.dataAll,t.exportCSV({selectionOnly:!1}),t.value=e}get hasCards(){return this.showMinistries||this.showSchemes||this.showNPOs||this.showGrants||this.showMembers}formatValue(t){let e=n=>{let o=n.toFixed(1);return o.endsWith(".0")?o.slice(0,-2):o};return t>=1e7?`${e(t/1e7)} Cr`:t>=1e5?`${e(t/1e5)} L`:t>=1e3?`${e(t/1e3)} K`:`${t}`}onGlobalFilter(t){let e=t.target;this.dt2.filterGlobal(e.value,"contains")}onGlobalFilter1(t){let e=t.target;this.dt5.filterGlobal(e.value,"contains")}viewFile(t){let e=this.document.location.origin;typeof t=="string"&&t.startsWith("http")?this.previewUrl=t:this.previewUrl=`${e}${t}`,this.filePreview=!0}
7showInfoMsg(){this.appComponent.showGlobalToast(this.displayMsg,this.severity,3e3)}hasKey(t,e){return t&&e in t}encodeUrlValue(t){return encodeURIComponent(t)}setActiveRange(t){if(t!==this.activeRange)this.activeRange=t,this.searchForm.patchValue({range:t}),this.search();else return}downloadFile(){this.http.get(this.previewUrl,{responseType:"blob"}).subscribe(t=>{let e=window.URL.createObjectURL(t),n=document.createElement("a");n.href=e;let o=this.previewUrl.split("/"),c=o[o.length-1];n.download=c,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e)})}isDownloadDisabled(){let t=this.searchForm.get("selectedState")?.value,e=this.searchForm.get("selectedFinancialYr")?.value;return this.ReportConfig.From==="NgoEnrolledComponent"?!t||t.stateId===0||!e:!1}getExportTooltip(){return this.ReportConfig.From==="NgoEnrolledComponent"?this.isStateUser?"Select the Financial Year to proceed with data export.":"Select both Financial Year and a State to proceed with data export.":""}static \u0275fac=function(e){return new(e||i)(w(Ae),w(oe),w(we),w(ne),w(q),w(Gt),w(st),w(ot))};static \u0275cmp=N({type:i,selectors:[["app-reports"]],viewQuery:function(e,n){if(e&1&&(X(Sr,5),X(wr,5)),e&2){let o;L(o=U())&&(n.dt2=o.first),L(o=U())&&(n.dt5=o.first)}},inputs:{heading:"heading",ReportConfig:"ReportConfig",filters:"filters",fromDashboard:"fromDashboard",grparent:"grparent",parent:"parent",chield:"chield",comingFromDashboard:"comingFromDashboard"},standalone:!0,features:[it([Qi]),I],decls:9,vars:8,consts:[["dt2",""],["dt",""],["dt5",""],[1,"flex","justify-content-between","align-items-center","flex-wrap","mb-3"],["styleClass","details-pdf","header","Document Preview","focusOnShow","false",3,"visibleChange","draggable","dismissableMask","modal","visible"],[1,"p-3"],[1,"flex","justify-content-end"],["styleClass","mx-1  primary-btn","icon","pi pi-download","label","Download File","pTooltip","Download file","tooltipPosition","left",3,"click"],["viewer","pdf",2,"width","800px","height","500px","margin","20px 0",3,"url"],[1,"lft-wrap"],[1,"heading"],["label","Back","icon","pi pi-chevron-left","severity","secondary","styleClass","back-btn"],["label","Back","icon","pi pi-chevron-left","severity","secondary","styleClass","back-btn",3,"click"],["styleClass","dashboard-wrap"],["id","commonScrollTo",1,"grid","mx-0"],[1,"grid","m-1","filter-range","w-full"],["class","col-12 px-0",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12"],[1,"flex","gap-3","align-items-center","justify-content-center","flex-wrap"],[1,"font-medium"],["styleClass","primary-btn px-4","label","All",3,"onClick"],["styleClass","primary-btn px-4","label","2-10",3,"onClick"],["styleClass","primary-btn px-4","label","11-20",3,"onClick"],["styleClass","primary-btn px-4","label","21-30",3,"onClick"],["styleClass","primary-btn px-4","label","31-40",3,"onClick"],["styleClass","primary-btn px-4","label","40+",3,"onClick"],[1,"col-12","px-0"],[3,"formGroup"],[1,"grid"],[1,"col-12","lg:col-3","p-3"],[1,"col-12","lg:col-2","p-3"],[1,"col-12","lg:col-1","p-3"],["formControlName","selectedFinancialYr","optionLabel","value","styleClass","w-full","inputId","float-label","appendTo","body",3,"options"],["for","float-label"],["formControlName","selectedMinistryName","optionLabel","dsplyName","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"onChange","onClear","options"],["formControlName","selectedSchemeName","optionLabel","dsplyName","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"options"],["optionLabel","stateName","formControlName","selectedState","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"onChange","onClear","options"],["formControlName","selectedDistrict","optionLabel","districtName","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"options","disabled"],["formControlName","selectedSector","optionLabel","value","inputId","ngoTypes","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"options","showClear"],["class","text-red-500",4,"ngIf"],[1,"text-red-500"],["formControlName","selectedSectors","styleClass","w-full","placeholder","Sector","
7inputId","sectors","optionLabel","value","optionValue","generalKvId","appendTo","body","panelStyleClass","custom-dropdown",3,"options","resetFilterOnHide"],["for","sectors"],["formControlName","selectedNgoTypes","styleClass","w-full","placeholder","NPO Type","optionLabel","value","inputId","ngoTypes","optionValue","generalKvId","appendTo","body","panelStyleClass","custom-dropdown",3,"options","resetFilterOnHide"],["for","ngoTypes"],["formControlName","selectedNgoType","optionLabel","value","inputId","ngoTypes","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"options"],["formControlName","selectedStatus","optionLabel","name","styleClass","w-full","inputId","float-label","appendTo","body","panelStyleClass","custom-dropdown",3,"options"],["pInputText","","id","username","formControlName","npoName","maxlength","100",3,"keydown.enter"],["for","username"],["class","text-red-500 absolute",4,"ngIf"],[1,"text-red-500","absolute"],[4,"ngIf"],["pInputText","","id","uniqueId","formControlName","uniqueId","maxlength","15","minlength","15",3,"keydown.enter"],["for","uniqueId"],["pInputText","","id","username","formControlName","memberName","maxlength","100",3,"keydown.enter"],["pInputText","","id","memberMobile","formControlName","memberMobile","maxlength","10","appOnlyDigits","",3,"keydown.enter"],["for","memberMobile"],["pInputText","","id","memberPanNumber","formControlName","memberPanNumber","maxlength","10","appAlphaNumeric","",3,"keydown.enter"],["for","memberPanNumber"],["icon","pi pi-search","styleClass","primary-btn filled-btn",3,"click","disabled"],[1,"flex"],["label","Search","styleClass","primary-btn filled-btn px-5 md:px-6",3,"click","disabled"],["styleClass","p-datatable-gridlines","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries",3,"value","rows","tableStyle","paginator","lazy","globalFilterFields","totalRecords","loading","first","sortMode","multiSortMeta"],["styleClass","p-datatable-gridlines","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries",3,"value","rows","tableStyle","paginator","lazy","sortMode","multiSortMeta","totalRecords","loading","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"flex","align-items-center","flex-wrap","text-right","justify-content-between"],[1,"flex","flex-wrap","gap-5","mb-3","xl:mb-0"],[1,"my-0"],[1,"font-bold","npo"],[1,"flex","align-items-center","gap-3"],[1,"search-npo"],["pInputText","","id","uniqueId",3,"ngModelChange","input","ngModel"],[1,"pi","pi-search"],["icon","pi pi-external-link","label","Export to CSV","styleClass","primary-btn","loadingIcon","pi pi-spinner-dotted",3,"click","loading"],[4,"ngFor","ngForOf"],[3,"pSortableColumn",4,"ngIf"],[3,"pSortableColumn"],[3,"field"],[2,"white-space","nowrap"],[1,"link-icn"],["pTooltip","View Document",1,"cursor-pointer"],[1,"text-center","cursor-pointer",3,"click"],[1,"pi","pi-eye"],["pTooltip","View Document",1,"cursor-pointer",3,"click"],["src","assets\\images\\mat-icons\\attachment.svg","alt",""],[1,"text-center","py-8","custom-error"],["src","assets/images/no_found.png","alt","no_data",1,"mx-auto"],[1,"mt-4"],["styleClass","p-datatable-gridlines","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries",3,"onLazyLoad","value","rows","tableStyle","paginator","lazy","sortMode","multiSortMeta","totalRecords","loading","first"],[1,"flex","align-items-center","flex-wrap","text-right",3,"ngClass"],["class","flex flex-wrap gap-5 mb-3 xl:mb-0",4,"ngIf"],[3,"pTooltip",4,"ngIf"],[1,"font-bold","ministries"],[1,"font-bold","schemes"],[1,"font-bold","grant",3,"pTooltip"],[3,"pTooltip"],["icon","pi pi-external-link","label","Export to CSV","styleClass","primary-btn","loadingIcon","pi pi-spinner-dotted",3,"click","loading","disabled"],[1,"block","font-normal"],[3,"ngoId","enableGrant","fromAdmin"],["styleClass","p-datatable-gridlines",3,"value","tableStyle","lazy","loading","rows","paginator","totalRecords","globalFilterFields"],["colspan","7",1,"text-center","py-8","custom-error"],[3,"back","ngoId","enableGrant","fromAdmin"]],template:function(e,n){e&1&&(m(0,Tr,5,2,"div",3)(1,Dr,5,0,"div",3)(2,kr,1,0,"app-loader")(3,Is,2,1),a(4,"p-dialog",4),j("visibleChange",function(c){return z(n.filePreview,c)||(n.filePreview=c),c}),a(5,"div",5)(6,"div",6)(7,"p-button",7),C("click",function(){return n.downloadFile()}),r()(),_(8,"ngx-doc-viewer",8),r()()),e&2&&(g(n.isViewNgo?-1:0),l(),g(n.isViewNgo&&n.showDuplicateNgo?1:-1),l(),g(n.pageLodder?2:3),l(2),p("draggable",!1)("dismissableMask",!0)("modal",!0),G("visible",n.filePreview),l(4),p("url",n.previewUrl+"#toolbar=0&navpanes=0&scrollbar=0"))},dependencies:[Te,ee,W,Y,ce,de,ct,pt,H,xe,ie,Q,be,Lt,Le,ye,Ge,Ut,Z,J,je,$t,Ie,Ne,R,$,Ft,K,Oe,le,Ce,se,ve,Se,ze,mt,Zt,Be,Ue,Ye,pn,mn,De,$e,He],styles:["[_nghost-%COMP%]     .search-npo{position:relative;width:330px}[_nghost-%COMP%]     .search-npo i{height:10px;position:absolute;top:0;bottom:0;margin:auto;right:15px}[_nghost-%COMP%]     .p-datatable-header{background-color:#fff;border:0;padding:0 0 20px}[_nghost-%COMP%]     .p-datatable-header .p-card{border-radius:5px}[_nghost-%COMP%]     .p-datatable-header .p-card h3{font-size:.9em;font-weight:500;text-align:left}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span{font-size:1.2em}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.npo{color:#59a970}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.ministries{color:#6b8ed8}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.schemes{color:#af877d}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.grant{color:#9ea766}[_nghost-%COMP%]     tr th{background-color:#fcf8e5;font-size:.85em;font-weight:600}[_nghost-%COMP%]     tr td{font-size:.85em;font-weight:500}[_nghost-%COMP%]     tr td span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[_nghost-%COMP%]     tr td:last-child span{color:#ff7043}[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:48px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:auto}}[_nghost-%COMP%]     .custom-error h2{font-size:1.2em;line-height:1.8em}[_nghost-%COMP%]     .custom-error h2 span{font-size:.9em}[_nghost-%COMP%]     .p-multiselect-token{border-radius:5px;background-color:#fff;border:1px solid #FF7043}[_nghost-%COMP%]     .p-multiselect-token span, [_nghost-%COMP%]     .p-multiselect-token svg{color:#ff7043}[_nghost-%COMP%]     .p-multiselect-token span{font-size:.9em}[_nghost-%COMP%]     .back-btn span{font-size:.85em}[_nghost-%COMP%]     .custom-table tr th{background-color:transparent;font-size:1em;font-weight:700}[_nghost-%COMP%]     .custom-table tr td{background-color:#f5f5f5;padding:15px 10px;font-size:.9em}
7[_nghost-%COMP%]     .custom-table tr td span{display:inline-block;line-height:1.8em;vertical-align:middle}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper{color:#fff}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper svg{width:30px;height:30px}[_nghost-%COMP%]     .filter-range .active .primary-btn{background-color:#ff7043}[_nghost-%COMP%]     .filter-range .active .primary-btn span{color:#fff}[_nghost-%COMP%]     .filter-range .primary-btn{min-width:100px;border-radius:30px;padding:10px 0;min-height:auto!important}"]})};var li=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-ngos"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","Grant Allocation to NPO")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.NgosComponent)("parent",n.parent)("chield","/admin/grant-allocation-n
7po")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var si=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-ministries"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","Ministry Wise Grant Release")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.MinistriesComponent)("parent",n.parent)("chield","/admin/grant-by-ministries")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var di=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-schemes"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","Scheme Wise Grant Release")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.SchemeWiseDetails)("parent",n.parent)("chield","/admin/grant-by-schemes")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var ci=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-top-states"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","State-Wise Grant Release")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.TopStatesComponent)("parent",n.parent)("chield","/admin/grant-by-states")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var pi=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-yw-grants"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","Annual Grant")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.YwGrantsComponent)("parent",n.parent)("chield","/admin/yearly-grant")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var mi=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-ngo-enrolled"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","NPO Enrollment")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.NgoEnrolledComponent)("parent",n.parent)("chield","/admin/ngo-enrollment")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var _i=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-ngo-wise-grant"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","NPO Wise Grant Release")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.NgoWiseGrantComponent)("parent",n.parent)("chield","/admin/npo-wise-grant")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};
7var Fs=["fileUploadRef"],Rn=(i,t,e)=>({"text-success":i,"text-danger":t,"text-warning":e}),Es=i=>[i],Os=()=>[];function As(i,t){i&1&&_(0,"app-loader")}function Vs(i,t){i&1&&d(0," (Blacklisted)")}function Ws(i,t){if(i&1&&d(0),i&2){let e=s(3);v(" (",e.ngoInfo==null||e.ngoInfo.district==null||e.ngoInfo.district.mstrState==null?null:e.ngoInfo.district.mstrState.stateName,") ")}}function Ls(i,t){if(i&1&&(d(0),m(1,Ws,1,1)),i&2){let e=s(2);v(" ",e.ngoInfo==null||e.ngoInfo.district==null?null:e.ngoInfo.district.districtName," "),l(),g(!(e.ngoInfo==null||e.ngoInfo.district==null||e.ngoInfo.district.mstrState==null)&&e.ngoInfo.district.mstrState.stateName?1:-1)}}function Us(i,t){i&1&&d(0," -- ")}function Bs(i,t){if(i&1&&(a(0,"small",26),d(1),r()),i&2){let e,n=s(2);l(),v(" ",(e=n.blacklistForm.get("remark"))!=null&&e.hasError("required")?"Reason of Unblacklist is required.":(e=n.blacklistForm.get("remark"))!=null&&e.hasError("minlength")?"Reason of Unblacklist must be at least 3 characters long":(e=n.blacklistForm.get("remark"))!=null&&e.hasError("maxlength")?"Reason of Unblacklist cannot exceed 150 characters":(e=n.blacklistForm.get("remark"))!=null&&e.hasError("pattern")?"Enter a valid Reason of Unblacklist":""," ")}}function Gs(i,t){if(i&1){let e=x();a(0,"a",42),C("click",function(){h(e);let o=s(3);return f(o.previewThis(o.previewUrl1,o.fileName))}),a(1,"span"),d(2),r()()}if(i&2){let e=s(3);l(2),y(e.fileName)}}function zs(i,t){i&1&&_(0,"p-progressSpinner")}function js(i,t){if(i&1&&(a(0,"div",40),m(1,Gs,3,1,"a",41),r(),m(2,zs,1,0,"p-progressSpinner",36)),i&2){let e=s(2);l(),g(e.previewUrl1!=""?1:-1),l(),p("ngIf",e.isSpinner1)}}function Ys(i,t){i&1&&(a(0,"small"),d(1," Date of Unblacklist is required "),r())}function Hs(i,t){i&1&&(a(0,"small"),_(1,"i",43),d(2,"\xA0The actions of blacklisting and unblacklisting cannot be performed on the same day. "),r())}function $s(i,t){if(i&1){let e=x();a(0,"div",6)(1,"div",7)(2,"div",8)(3,"h2",9)(4,"span",10),d(5),k(6,"uppercase"),a(7,"span",11),m(8,Vs,1,0),r()()(),a(9,"div",12)(10,"p-button",13),C("click",function(){h(e);let o=s();return f(o.backbtn())}),r()()()()(),a(11,"p-card",14)(12,"div",15)(13,"div",16)(14,"div",17)(15,"p"),d(16," DARPAN ID "),a(17,"span",18),d(18),r()()(),a(19,"div",17)(20,"p"),d(21," DARPAN ID Status "),a(22,"span",18),d(23),r()()(),a(24,"div",17)(25,"p"),d(26," Registered District (State) "),a(27,"span",19),m(28,Ls,2,2)(29,Us,1,0),r()()(),a(30,"div",17)(31,"p"),d(32," Registration Date "),a(33,"span",19),d(34),k(35,"date"),r()()()(),_(36,"hr",20),a(37,"div",21)(38,"form",22)(39,"div",16)(40,"div",23)(41,"p-floatLabel"),_(42,"textarea",24),a(43,"label",25),d(44,"Reason of Unblacklist "),a(45,"span",26),d(46,"*"),r()()(),m(47,Bs,2,1,"small",27),r()(),a(48,"div",28)(49,"div",29)(50,"p-fileUpload",30,0),C("onUpload",function(o){h(e);let c=s();return f(c.uploadFile(o))})("onSelect",function(o){h(e);let c=s();return f(c.uploadFile(o))})("onRemove",function(o){h(e);let c=s();return f(c.onFileRemove(o))}),m(52,js,3,2,"ng-template",31),r(),a(53,"small",32)(54,"strong"),d(55,"Note:"),r(),d(56," Only PDF file with a maximum size of 2MB is allowed "),r()(),a(57,"div",33)(58,"p-floatLabel")(59,"p-calendar",34),C("onSelect",function(o){h(e);let c=s();return f(c.onDateSelect(o))})("onInput",function(o){h(e);let c=s();return f(c.onDateInput(o))}),r(),a(60,"label",35),d(61,"Unblacklist Date"),a(62,"span",26),d(63,"*"),r()()(),a(64,"div",26),m(65,Ys,2,0,"small",36)(66,Hs,3,0,"small"),r()(),a(67,"div",37)(68,"p-button",38),C("click",function(){h(e);let o=s();return f(o.backbtn())}),r(),a(69,"p-button",39),C("click",function(o){h(e);let c=s();return f(c.confirm(o))}),r()()()()()()()}if(i&2){let e,n,o=s();l(5),v("",M(6,27,o.ngoInfo==null?null:o.ngoInfo.ngoName)," "),l(3),g((o.ngoInfo==null?null:o.ngoInfo.status)===10?8:-1),l(9),p("ngClass",nt(32,Rn,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===4,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===10,!(o.ngoInfo!=null&&o.ngoInfo.darpanUid))),l(),y((o.ngoInfo==null?null:o.ngoInfo.darpanUid)||"Not Available"),l(4),p("ngClass",nt(36,Rn,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===4,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===10,!(o.ngoInfo!=null&&o.ngoInfo.darpanUid))),l(),y(o.ngoInfo!=null&&o.ngoInfo.darpanUid?(o.ngoInfo==null?null:o.ngoInfo.status)===4?"Active":(o.ngoInfo==null?null:o.ngoInfo.status)===10?"Blacklist":"Pending":"Pending"),l(5),g(!(o.ngoInfo==null||o.ngoInfo.district==null)&&o.ngoInfo.district.districtName||!(o.ngoInfo==null||o.ngoInfo.district==null||o.ngoInfo.district.mstrState==null)&&o.ngoInfo.district.mstrState.stateName?28:29),l(6),y(o.ngoInfo!=null&&o.ngoInfo.submitDate?re(35,29,o.ngoInfo==null?null:o.ngoInfo.submitDate,"dd-MM-yyyy"):"Not Available"),l(4),p("formGroup",o.blackl
7istForm),l(4),p("maxlength",500),l(5),p("ngIf",((e=o.blacklistForm.get("remark"))==null?null:e.errors)&&((e=o.blacklistForm.get("remark"))==null?null:e.touched)),l(3),ae("pTooltip",o.file1==null?null:o.file1.name),p("multiple",!1)("showUploadButton",!1)("chooseLabel","Upload Evidence Document")("showCancelButton",!1)("maxFileSize",2*1024*1024)("files",o.file1?Ee(40,Es,o.file1):F(42,Os))("disabled",o.isSpinner1||o.fileId1!=""),l(9),p("iconDisplay","input")("showIcon",!0)("minDate",o.submitDate)("maxDate",o.todayDate1),l(6),p("ngIf",((n=o.blacklistForm.get("blacklistDate"))==null?null:n.hasError("required"))&&((n=o.blacklistForm.get("blacklistDate"))==null?null:n.touched)),l(),g(o.isdisable?66:-1),l(3),p("loading",o.saving)("disabled",o.blacklistForm.invalid||o.saving||o.isSaving||o.isdisable)}}var ui=class i{constructor(t,e,n,o,c,u,T,D){this.http=t;this._service=e;this._admin=n;this._router=o;this._enc=c;this.appComponent=u;this.fb=T;this.confirmationService=D;this.blacklistForm=this.fb.group({blacklistDate:["",E.required],remark:["",[E.required,E.minLength(3),E.maxLength(500),E.pattern(/^(?!\s)(?!.*\s{2})[a-zA-Z0-9\s\-\.,\/#']+$/)]],file1:[null,E.required]}),this.todayDate=new Date,this.todayDate.setHours(0,0,0,0),this.todayDate1=new Date,this.todayDate1.setHours(23,59,59,59)}date;ngoId;back=new pe;isSaving=!1;ngoInfo;isLoading=!0;saving=!1;isSpinner1=!1;filePreview=!1;previewUrl1="";fileName="";severity="success-msg";displayMsg="";errorMsg="";fileId1="";file1=null;previewUrl="";blacklistForm;submitDate;todayDate;todayDate1;isdisable=!1;fileUploadRef;ngOnInit(){this.getNgoDetails()}getNgoDetails(){this._service.getNgoInfo(S.APIReg,this._enc.encodeUrlValue(this.ngoId)).subscribe(t=>{t.statusCode.includes("001")?(this.ngoInfo=t?.ngoInfo,this.submitDate=new Date(t?.ngoInfo?.blacklistWithEffectFrom),this.submitDate.setDate(this.submitDate.getDate()+1),this.submitDate.setHours(0,0,0,0),this.submitDate>this.todayDate?(this.blacklistForm.get("blacklistDate")?.disable(),this.isdisable=!0):this.onDateSelect(this.todayDate)):(this.severity="error-msg",this.displayMsg=t?.displayMsg,this.showInfoMsg()),this.isLoading=!1})}
7showInfoMsg(){this.appComponent.showGlobalToast(this.displayMsg,this.severity,3e3)}backbtn(){this.back.emit()}uploadFile(t){return Fe(this,null,function*(){let e=t.files[0];e&&(this.validateFile(e)?(this.isSpinner1=!0,this.fileId1!==""&&this.onFileRemove(t),setTimeout(()=>Fe(this,null,function*(){let n=new FileReader;n.onload=o=>{if(o?.target?.readyState===FileReader.DONE){let c=o.target.result,u=new Uint8Array(c),D=Array.from(u),b={moduleType:"NGOBLACKLIST",sectionType:"COMMON",contentType:"FILE",filename:e.name,file:D};this.uploadFileAPI(b,e,t)}},n.readAsArrayBuffer(e)}),1e3)):this.onFileRemove(t))})}validateFile(t){return t.type!="application/pdf"?!1:!(t.size>2*1024*1024)}onFileRemove(t){let e=t.file;this.fileId1!=""&&this._service.deleteFile(S.APIUrl,this.fileId1).subscribe(n=>{n.statusCode.includes("001")?(this.fileId1="",this.file1=null,this.previewUrl1="",this.severity="success-msg",this.displayMsg="File Removed Successfully",this.showInfoMsg(),this.blacklistForm.patchValue({file1:null})):(this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg())})}uploadFileAPI(t,e,n){this._service.uploadFile(S.APIUrl,t).subscribe(o=>{o.statusCode.includes("001")?(this.fileId1=o?.recordId,this.blackl
7istForm.patchValue({file1:this.fileId1}),this.severity="success-msg",this.displayMsg="File Uploaded Successfully",this.showInfoMsg(),this.isSpinner1=!1,this.generatePreviewUrl(e)):(this.fileUploadRef.clear(),this.file1=null,this.previewUrl1="",this.fileId1="",this.blacklistForm.patchValue({file1:null}),n?.originalEvent?.target&&(n.originalEvent.target.value=""),this.severity="error-msg",this.displayMsg=o?.displayMsg,this.showInfoMsg(),this.isSpinner1=!1)})}generatePreviewUrl(t){let e=new FileReader;e.onload=()=>{this.previewUrl1=e.result,this.fileName=t.name},e.readAsDataURL(t)}previewThis(t,e){this.previewUrl=t,this.filePreview=!0,this.fileName=e}confirm(t){this.isSaving||this.isdisable||this.confirmationService.confirm({target:t.target,message:`Are you sure you want to Unblacklist the NPO <br/><span class="font-medium uppercase text-danger">"${this.ngoInfo.ngoName}"</span> (DARPAN ID: <span class="font-medium uppercase text-danger">${this.ngoInfo?.darpanUid}</span>)?`,header:"Confirmation",icon:"pi pi-exclamation-triangle",acceptIcon:"pi pi-check mr-2",rejectIcon:"pi pi-times mr-2",rejectButtonStyleClass:"primary-btn mr-3",acceptButtonStyleClass:"primary-btn filled-btn",accept:()=>{let e=this.blacklistForm.value,n={remark:e.remark,effectiveDate:e.blacklistDate,fileUploadList:[{fileUpldId:e.file1,moduleType:"NGOBLACKLIST",sectionType:"COMMON"}]};this._admin.unblacklistNpo(S.APIReg,this.ngoId,n).subscribe(o=>{o.statusCode.includes("001")?(this.severity="success-msg",this.displayMsg=o?.displayMsg,this.isSaving=!1,this.showInfoMsg(),this.back.emit()):(this.severity="error-msg",this.displayMsg=o?.displayMsg,this.showInfoMsg(),this.isSaving=!1)})},reject:()=>{}})}onDateSelect(t){let e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));this.blacklistForm.patchValue({blacklistDate:e})}onDateInput(t){let e=t.target.value,n=this.parseDate(e);if(n&&n>=this.submitDate&&this.todayDate1>=n){let o=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds()));this.blacklistForm.patchValue({blacklistDate:o})}}backToParent(){this._router.navigate(["admin/blacklisted-npo"])}downloadFile(){this.http.get(this.previewUrl,{responseType:"blob"}).subscribe(t=>{let e=window.URL.createObjectURL(t),n=document.createElement("a");n.href=e;let o=this.previewUrl.split("/"),c=o[o.length-1];n.download=c,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e)})}parseDate(t){let[e,n,o]=t.split("-").map(Number);if(!e||!n||!o||o<1e3)return null;let c=new Date(o,n-1,e);return isNaN(c.getTime())?null:c}static \u0275fac=function(e){return new(e||i)(w(Ae),w(Jt),w(oe),w(q),w(ne),w(st),w(we),w(Ve))};static \u0275cmp=N({type:i,selectors:[["app-unblacklist-form"]],viewQuery:function(e,n){if(e&1&&X(Fs,5),e&2){let o;L(o=U())&&(n.fileUploadRef=o.first)}},inputs:{ngoId:"ngoId"},outputs:{back:"back"},standalone:!0,features:[it([Ve]),I],decls:8,vars:6,consts:[["fileUploadRef",""],["styleClass","details-pdf","header","Document Preview","focusOnShow","false",3,"visibleChange","draggable","dismissableMask","modal","visible"],[1,"p-3"],[1,"flex","justify-content-end"],["styleClass","mx-1  primary-btn","icon","pi pi-download","label","Download File","pTooltip","Download file","tooltipPosition","left",3,"click"],["viewer","pdf",2,"width","800px","height","500px","margin","20px 0",3,"url"],[1,"flex","justify-content-between","align-items-center","flex-wrap"],[1,"lft-wrap","w-full","flex","align-items-center"],[1,"flex","justify-content-between","flex-wrap","w-full","mb-3","align-items-center"],[1,"m-0","main-heading"],[1,"title"],[1,"npo-status"],["id","exclude",1,"flex"],["label","Back","styleClass","ml-3 back-btn","icon","pi pi-chevron-left","severity","secondary",3,"click"],["styleClass","mt-2"],[1,"card","lg:mb-0","mb-2"],[1,"grid"],[1,"col-12","lg:col-3"],[1,"block","font-bold",3,"ngClass"],[1,"block","font-bold"],[1,"mt-2"],[1,"blacklist-form","my-4"],[3,"formGroup"],[1,"col-12"],["id","blacklist","rows","3","cols","50","pInputTextarea","","formControlName","remark",1,"textarea",3,"maxlength"],["for","blacklist"],[1,"text-red-500","absolute"],["class","text-red-500 absolute",4,"ngIf"],[1,"grid","my-2"],[1,"col-12","xl:col-6"],["name","demo[]","url","https://www.primefaces.org/cdn/api/upload.php","accept",".pdf","invali
7dFileSizeMessageDetail","",3,"onUpload","onSelect","onRemove","multiple","showUploadButton","chooseLabel","showCancelButton","maxFileSize","files","disabled","pTooltip"],["pTemplate","content"],[1,"file-upload-note"],[1,"col-12","lg:col-6"],["dateFormat","dd-mm-yy","formControlName","blacklistDate","styleClass","w-full","inputId","dob","appendTo","body",3,"onSelect","onInput","iconDisplay","showIcon","minDate","maxDate"],["for","date"],[4,"ngIf"],[1,"flex","justify-content-end","w-full","my-3"],["label","Cancel","styleClass","primary-btn cancel-btn",3,"click"],["label","Unblacklist","styleClass","ml-3 primary-btn filled-btn","loadingIcon","pi pi-spinner-dotted",3,"click","loading","disabled"],[1,"filename"],["target","_blank",1,"cursor-pointer"],["target","_blank",1,"cursor-pointer",3,"click"],[1,"pi","pi-info-circle"]],template:function(e,n){e&1&&(m(0,As,1,0,"app-loader")(1,$s,70,43),a(2,"p-dialog",1),j("visibleChange",function(c){return z(n.filePreview,c)||(n.filePreview=c),c}),a(3,"div",2)(4,"div",3)(5,"p-button",4),C("click",function(){return n.downloadFile()}),r()(),_(6,"ngx-doc-viewer",5),r()(),_(7,"p-confirmDialog")),e&2&&(g(n.isLoading?0:1),l(2),p("draggable",!1)("dismissableMask",!0)("modal",!0),G("visible",n.filePreview),l(4),p("url",n.previewUrl+"#toolbar=0&navpanes=0&scrollbar=0"))},dependencies:[qe,We,Y,W,te,ee,Z,J,Qt,qt,ei,Xt,dt,Bt,R,$,K,At,Oe,le,Ce,Ht,Yt,Be,Ue,Ye,se,xe,ie,Q,be,Le,ve,Se,H,jt,zt,ze,De,$e,He],styles:['[_nghost-%COMP%]     .card{padding:0 20px}[_nghost-%COMP%]     .text-success{color:var(--green-600)}[_nghost-%COMP%]     .text-warning{color:var(--yellow-500)}[_nghost-%COMP%]     .text-danger{color:var(--red-600)}[_nghost-%COMP%]     .cancel-btn{background:#e8e8e8;border-color:#e8e8e8;box-shadow:none}[_nghost-%COMP%]     .cancel-btn span{color:#574d66;font-size:.85em}[_nghost-%COMP%]     .p-fileupload-filename{width:100%;padding:0 4px}[_nghost-%COMP%]     .p-fileupload-filename:after{content:"\\e966";font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;margin-left:10px;color:#ff7043}[_nghost-%COMP%]     .details-pdf .zoom{width:800px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     .details-pdf .zoom{width:350px}}@media only screen and (min-width: 768px) and (max-width: 992px){[_nghost-%COMP%]     .details-pdf .zoom{width:600px}}[_nghost-%COMP%]     .p-dialog-content{overflow-y:hidden}[_nghost-%COMP%]     .ng2-pdf-viewer-container{height:95%;overflow-x:hidden!important}[_nghost-%COMP%]     .notPreview .filename a{position:absolute;opacity:0;inset:0}[_nghost-%COMP%]     .p-fileupload-content{position:relative}[_nghost-%COMP%]     .p-fileupload-content .filename a{position:absolute;opacity:0;inset:0;width:60%}[_nghost-%COMP%]     .p-fileupload-content .p-progress-spinner{position:absolute;inset:0;margin:auto;background:#00000080;width:100%;height:100%}[_nghost-%COMP%]     .p-fileupload-content .p-progress-spinner svg{width:30px;height:30px}']})};var Ks=["dt2"],qs=()=>({"min-width":"50rem","min-height":"300px"}),Qs=()=>["ngoName","darpanId"],Js=(i,t)=>({"justify-content-between":i,"justify-content-end":t});function Zs(i,t){i&1&&(a(0,"div",1)(1,"div",8)(2,"h2",9),d(3,"Blacklisted NPOs"),r()()())}function Xs(i,t){if(i&1&&(a(0,"p-card")(1,"h3",27),d(2," Total Blacklisted NPOs: "),a(3,"span",28),d(4),k(5,"inrFormat"),r()()()),i&2){let e=s(4);l(4),y(M(5,1,e.totalRecords))}}function ed(i,t){if(i&1&&(a(0,"div",25),m(1,Xs,6,3,"p-card",26),r()),i&2){let e=s(3);l(),p("ngIf",e.showNPOs)}}function td(i,t){if(i&1){let e=x();a(0,"p-button",29),C("click",function(){h(e);let o=s(3);return f(o.blacklist())}),r()}if(i&2){let e=s(3);p("loading",e.isDownloading)}}function id(i,t){if(i&1){let e=x();a(0,"div",17),m(1,ed,2,1,"div",18),a(2,"div",19)(3,"p-floatLabel",20)(4,"input",21),j("ngModelChange",function(o){h(e);let c=s(2);return z(c.searchValue,o)||(c.searchValue=o),f(o)}),C("input",function(o){h(e);let c=s(2);return f(c.onGlobalFilter(o))}),r(),a(5,"label",22),d(6,"Search by NPO Name / Darpan ID"),r(),_(7,"i",23),r(),m(8,td,1,1,"p-button",24),r()()}if(i&2){let e=s(2);p("ngClass",Me(4,Js,e.showNPOs,!e.showNPOs)),l(),p("ngIf",e.showNPOs),l(3),G("ngModel",e.searchValue),l(4),g(e.roles.includes("BLACKLIST")?8:-1)}}
7function nd(i,t){i&1&&(a(0,"th"),d(1,"Action"),r())}function od(i,t){if(i&1&&(a(0,"tr")(1,"th"),d(2,"Sr. No."),r(),a(3,"th"),d(4,"DARPAN ID"),r(),a(5,"th"),d(6,"NPO Name"),r(),a(7,"th"),d(8,"Registered District (State)"),r(),a(9,"th"),d(10,"Reason for Blacklist"),r(),a(11,"th"),d(12,"Blacklisted By"),r(),a(13,"th"),d(14,"WEF"),r(),a(15,"th"),d(16,"View NPO Details"),r(),m(17,nd,2,0,"th"),r()),i&2){let e=s(2);l(17),g(e.userType==="SUPERADMIN"&&e.roles.includes("UNBLACKLIST")?17:-1)}}function ad(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" ",e.districtName," ")}}function rd(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" (",e.stateName,") ")}}function ld(i,t){if(i&1&&m(0,ad,1,1)(1,rd,1,1),i&2){let e=s().$implicit;g(e!=null&&e.districtName?0:-1),l(),g(e!=null&&e.stateName?1:-1)}}function sd(i,t){i&1&&d(0," -- ")}function dd(i,t){if(i&1){let e=x();a(0,"a",35),C("click",function(){h(e);let o=s().$implicit,c=s(2);return f(c.viewFile(o.file))}),_(1,"img",36),r()}}function cd(i,t){if(i&1){let e=x();a(0,"td")(1,"span",37),C("click",function(){h(e);let o=s().$implicit,c=s(2);return f(c.unblackNgo(o==null?null:o.ngoId))}),_(2,"i",38),r()()}}function pd(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td",30),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),m(8,ld,2,2)(9,sd,1,0),r(),a(10,"td",31),d(11),m(12,dd,2,0,"a",32),r(),a(13,"td"),d(14),r(),a(15,"td",30),d(16),k(17,"date"),r(),a(18,"td")(19,"span",33),C("click",function(){let o=h(e).$implicit,c=s(2);return f(c.viewNgo(o==null?null:o.ngoId))}),_(20,"i",34),r()(),m(21,cd,3,0,"td"),r()}if(i&2){let e=t.$implicit,n=t.rowIndex,o=s(2);l(2),y(n+1),l(2),y((e==null?null:e.darpanId)||"--"),l(2),v(" ",e.ngoName||"--"," "),l(2),g(e!=null&&e.districtName||e.stateName?8:9),l(3),v(" ",(e==null?null:e.remark)||"--"," "),l(),g(o.hasKey(e,"file")&&(e==null?null:e.file)!==""?12:-1),l(2),y((e==null?null:e.blacklistedByMinistry)||"--"),l(2),v(" ",e!=null&&e.blacklistedWEF?re(17,9,e==null?null:e.blacklistedWEF,"dd-MM-yyyy"):"--"," "),l(5),g(o.userType==="SUPERADMIN"&&o.roles.includes("UNBLACKLIST")?21:-1)}}function md(i,t){i&1&&(a(0,"tr")(1,"td",39),_(2,"img",40),a(3,"h2",41),d(4," No Data Found "),a(5,"span",42),d(6,"Please Enter Search Criteria from Above Form"),r()()()())}function _d(i,t){if(i&1&&(a(0,"p-card",2)(1,"div",10)(2,"div",11)(3,"p-table",12,0),m(5,id,9,7,"ng-template",13)(6,od,18,1,"ng-template",14)(7,pd,22,12,"ng-template",15)(8,md,7,0,"ng-template",16),r()()()()),i&2){let e=s();l(3),p("value",e.data)("rows",10)("tableStyle",F(9,qs))("paginator",e.data.length>0)("lazy",!1)("totalRecords",e.totalRecords)("globalFilterFields",F(10,Qs))("loading",e.loading)("first",e.first)}}function ud(i,t){if(i&1){let e=x();a(0,"app-unblacklist-form",45),C("back",function(o){h(e);let c=s(2);return f(c.backbtn2(o))}),r()}if(i&2){let e=s(2);p("ngoId",e.darpanId)}}function hd(i,t){if(i&1){let e=x();a(0,"app-view-ngo-details",46),C("back",function(o){h(e);let c=s(2);return f(c.backbtn(o))}),r()}if(i&2){let e=s(2);p("ngoId",e.darpanId)("enableGrant",!0)("fromAdmin",!0)}}function fd(i,t){if(i&1&&m(0,ud,1,1,"app-unblacklist-form",43)(1,hd,1,3,"app-view-ngo-details",44),i&2){let e=s();g(e.isUnblacklist?0:1)}}var hi=class i{constructor(t,e,n,o,c){this.http=t;this._service=e;this._router=n;this._enc=o;this.document=c;this.userType=o.decryptData(this.userType);let u=localStorage.getItem("roles");if(u){let T=this._enc.decryptData(u);this.roles=JSON.parse(T)}}roles=[];showNPOs=!1;filePreview=!1;previewUrl="";fileName="";isDownloading=!1;showTotal=!1;showTable=!1;loading=!1;searchValue;data=[];first=0;currentPageNo=0;totalRecords=0;isViewNgo=!1;isUnblacklist=!1;darpanId="";userId=localStorage.getItem("uidzzz");userType=localStorage.getItem("utypezzz");dt2;ngOnInit(){this.getNPOEnrolledDetails()}getNPOEnrolledDetails(){this.loading=!0,this._service.getBlockNGOAll(S.APIReg).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.ngos?.sort((e,n)=>new Date(n.blacklistedWEF).getTime()-new Date(e.blacklistedWEF).getTime()),this.totalRecords=t?.pageInfo?.totalNumberOfElement,this.showNPOs=!0):this.data=[],this.loading=!1})}blacklist(){this._router.navigate(["admin/blacklisted-npo/find"],{state:{comingFromDashboard:!0}})}viewNgo(t){this.darpanId=t,this.isViewNgo=!0,this.isUnblacklist=!1}unblackNgo(t){this.darpanId=t,this.isViewNgo=!0,this.isUnblacklist=!0}backbtn2(t){this.darpanId="",this.searchValue="",this.isViewNgo=!1,this.isUnblacklist=!1,this.getNPOEnrolledDetail
7s()}backbtn(t){this.darpanId="",this.searchValue="",this.isViewNgo=!1,this.isUnblacklist=!1}onGlobalFilter(t){let e=t.target;this.dt2.filterGlobal(e.value,"contains")}viewFile(t){let e=this.document.location.origin;typeof t=="string"&&t.startsWith("http")?this.previewUrl=t:this.previewUrl=`${e}${t}`,this.filePreview=!0}hasKey(t,e){return t&&e in t}downloadFile(){this.http.get(this.previewUrl,{responseType:"blob"}).subscribe(t=>{let e=window.URL.createObjectURL(t),n=document.createElement("a");n.href=e;let o=this.previewUrl.split("/"),c=o[o.length-1];n.download=c,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e)})}static \u0275fac=function(e){return new(e||i)(w(Ae),w(oe),w(q),w(ne),w(ot))};static \u0275cmp=N({type:i,selectors:[["app-blacklisted-npos"]],viewQuery:function(e,n){if(e&1&&X(Ks,5),e&2){let o;L(o=U())&&(n.dt2=o.first)}},standalone:!0,features:[I],decls:8,vars:7,consts:[["dt2",""],[1,"flex","justify-content-between","align-items-center","flex-wrap","mb-3"],["styleClass","dashboard-wrap"],["styleClass","details-pdf","header","Document Preview","focusOnShow","false",3,"visibleChange","draggable","dismissableMask","modal","visible"],[1,"p-3"],[1,"flex","justify-content-end"],["styleClass","mx-1  primary-btn","icon","pi pi-download","label","Download File","pTooltip","Download file","tooltipPosition","left",3,"click"],["viewer","pdf",2,"width","800px","height","500px","margin","20px 0",3,"url"],[1,"lft-wrap"],[1,"heading"],["id","commonScrollTo",1,"grid","mx-0"],[1,"col-12"],["dataKey","ngoId","styleClass","p-datatable-gridlines","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries",3,"value","rows","tableStyle","paginator","lazy","totalRecords","globalFilterFields","loading","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"flex","align-items-center","flex-wrap","text-right",3,"ngClass"],["class","flex flex-wrap gap-5 mb-3 xl:mb-0",4,"ngIf"],[1,"flex","align-items-center","gap-3"],[1,"search-npo"],["pInputText","","id","uniqueId",3,"ngModelChange","input","ngModel"],["for","uniqueId"],[1,"pi","pi-search"],["icon","pi pi-ban","label","Blacklist A NPO","styleClass","primary-btn filled-btn","loadingIcon","pi pi-spinner-dotted",3,"loading"],[1,"flex","flex-wrap","gap-5","mb-3","xl:mb-0"],[4,"ngIf"],[1,"my-0"],[1,"font-bold","npo"],["icon","pi pi-ban","label","Blacklist A NPO","styleClass","primary-btn filled-btn","loadingIcon","pi pi-spinner-dotted",3,"click","loading"],[2,"white-space","nowrap"],[1,"link-icn"],["pTooltip","View Document",1,"cursor-pointer"],[1,"text-center","cursor-pointer",3,"click"],[1,"pi","pi-eye"],["pTooltip","View Document",1,"cursor-pointer",3,"click"],["src","assets\\images\\mat-icons\\attachment.svg","alt",""],["pTooltip","Unblacklist this NPO","tooltipPosition","left",1,"text-center","cursor-pointer",3,"click"],[1,"pi","pi-check-square"],["colspan","8",1,"text-center","py-8","custom-error"],["src","assets/images/no_found.png","alt","no_data",1,"mx-auto"],[1,"mt-4"],[1,"block","font-normal"],[3,"ngoId"],[3,"ngoId","enableGrant","fromAdmin"],[3,"back","ngoId"],[3,"back","ngoId","enableGrant","fromAdmin"]],template:function(e,n){e&1&&(m(0,Zs,4,0,"div",1)(1,_d,9,11,"p-card",2)(2,fd,2,1),a(3,"p-dialog",3),j("visibleChange",function(c){return z(n.filePreview,c)||(n.filePreview=c),c}),a(4,"div",4)(5,"div",5)(6,"p-button",6),C("click",function(){return n.downloadFile()}),r()(),_(7,"ngx-doc-viewer",7),r()()),e&2&&(g(n.isViewNgo?-1:0),l(),g(n.isViewNgo?2:1),l(2),p("draggable",!1)("dismissableMask",!0)("modal",!0),G("visible",n.filePreview),l(4),p("url",n.previewUrl+"#toolbar=0&navpanes=0&scrollbar=0"))},dependencies:[Te,ee,W,Y,ce,de,H,ie,Q,ye,Ge,Z,J,je,Ie,Ne,R,$,K,Oe,le,Ce,se,mt,Zt,Be,Ue,Ye,ui,$e,He],styles:["[_nghost-%COMP%]     .search-npo{position:relative;width:330px}[_nghost-%COMP%]     .search-npo i{height:10px;position:absolute;top:0;bottom:0;margin:auto;right:15px}[_nghost-%COMP%]     .p-datatable-header{background-color:#fff;border:0;padding:0 0 20px}[_nghost-%COMP%]     .p-datatable-header .p-card{border-radius:5px}[_nghost-%COMP%]     .p-datatable-header .p-card h3{font-size:.9em;font-weight:500;text-align:left}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span{font-size:1.2em}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.npo{color:red}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.ministries{color:#6b8ed8}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.schemes{color:#af877d}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.grant{color:#9ea766}[_nghost-%COMP%]     tr th{background-color:#fcf8e5;font-size:.85em;font-weight:600}[_nghost-%COMP%]     tr td{font-size:.85em;font-weight:500}[_nghost-%COMP%]     tr td span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[_nghost-%COMP%]     tr td:last-child span{color:#ff7043}[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:48px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:auto}}[_nghost-%COMP%]     .custom-error h2{font-size:1.2em;line-height:1.8em}[_nghost-%COMP%]     .custom-error h2 span{font-size:.9em}[_nghost-%COMP%]     .p-multiselect-token{border-radius:5px;background-color:#fff;border:1px solid #FF7043}[_nghost-%COMP%]     .p-multiselect-token span, [_nghost-%COMP%]     .p-multiselect-token svg{color:#ff7043}[_nghost-%COMP%]     .p-multiselect-token span{font-size:.9em}[_nghost-%COMP%]     .back-btn span{font-size:.85em}[_nghost-%COMP%]     .custom-table tr th{background-color:transparent;font-size:1em;font-weight:700}[_nghost-%COMP%]     .custom-table tr td{background-color:#f5f5f5;padding:15px 10px;font-size:.9em}
7[_nghost-%COMP%]     .custom-table tr td span{display:inline-block;line-height:1.8em;vertical-align:middle}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper{color:#fff}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper svg{width:30px;height:30px}"]})};var gd=["fileUploadRef"],Pn=(i,t,e)=>({"text-success":i,"text-danger":t,"text-warning":e}),Cd=i=>[i],bd=()=>[];function yd(i,t){i&1&&_(0,"app-loader")}function xd(i,t){i&1&&d(0," (Blacklisted)")}function vd(i,t){if(i&1&&d(0),i&2){let e=s(3);v(" (",e.ngoInfo==null||e.ngoInfo.district==null||e.ngoInfo.district.mstrState==null?null:e.ngoInfo.district.mstrState.stateName,") ")}}function Sd(i,t){if(i&1&&(d(0),m(1,vd,1,1)),i&2){let e=s(2);v(" ",e.ngoInfo==null||e.ngoInfo.district==null?null:e.ngoInfo.district.districtName," "),l(),g(!(e.ngoInfo==null||e.ngoInfo.district==null||e.ngoInfo.district.mstrState==null)&&e.ngoInfo.district.mstrState.stateName?1:-1)}}function wd(i,t){i&1&&d(0," -- ")}function Nd(i,t){if(i&1&&(a(0,"small",26),d(1),r()),i&2){let e,n=s(2);l(),v(" ",(e=n.blacklistForm.get("remark"))!=null&&e.hasError("required")?"Reason of Blacklisting is required.":(e=n.blacklistForm.get("remark"))!=null&&e.hasError("minlength")?"Reason of Blacklisting must be at least 3 characters long":(e=n.blacklistForm.get("remark"))!=null&&e.hasError("maxlength")?"Reason of Blacklisting cannot exceed 150 characters":(e=n.blacklistForm.get("remark"))!=null&&e.hasError("pattern")?"Enter a valid Reason of Blacklisting":""," ")}}function Id(i,t){if(i&1){let e=x();a(0,"a",42),C("click",function(){h(e);let o=s(3);return f(o.previewThis(o.previewUrl1,o.fileName))}),a(1,"span"),d(2),r()()}if(i&2){let e=s(3);l(2),y(e.fileName)}}function Td(i,t){i&1&&_(0,"p-progressSpinner")}function Dd(i,t){if(i&1&&(a(0,"div",40),m(1,Id,3,1,"a",41),r(),m(2,Td,1,0,"p-progressSpinner",36)),i&2){let e=s(2);l(),g(e.previewUrl1!=""?1:-1),l(),p("ngIf",e.isSpinner1)}}function kd(i,t){i&1&&(a(0,"small"),d(1," Date of Blacklisted is required "),r())}function Md(i,t){if(i&1){let e=x();a(0,"div",6)(1,"div",7)(2,"div",8)(3,"h2",9)(4,"span",10),d(5),k(6,"uppercase"),a(7,"span",11),m(8,xd,1,0),r()()(),a(9,"div",12)(10,"p-button",13),C("click",function(){h(e);let o=s();return f(o.backbtn())}),r()()()()(),a(11,"p-card",14)(12,"div",15)(13,"div",16)(14,"div",17)(15,"p"),d(16," DARPAN ID "),a(17,"span",18),d(18),r()()(),a(19,"div",17)(20,"p"),d(21," DARPAN ID Status "),a(22,"span",18),d(23),r()()(),a(24,"div",17)(25,"p"),d(26," Registered District (State) "),a(27,"span",19),m(28,Sd,2,2)(29,wd,1,0),r()()(),a(30,"div",17)(31,"p"),d(32," Registration Date "),a(33,"span",19),d(34),k(35,"date"),r()()()(),_(36,"hr",20),a(37,"div",21)(38,"form",22)(39,"div",16)(40,"div",23)(41,"p-floatLabel"),_(42,"textarea",24),a(43,"label",25),d(44,"Reason of Blacklisting "),a(45,"span",26),d(46,"*"),r()()(),m(47,Nd,2,1,"small",27),r()(),a(48,"div",28)(49,"div",29)(50,"p-fileUpload",30,0),C("onUpload",function(o){h(e);let c=s();return f(c.uploadFile(o))})("onSelect",function(o){h(e);let c=s();return f(c.uploadFile(o))})("onRemove",function(o){h(e);let c=s();return f(c.onFileRemove(o))}),m(52,Dd,3,2,"ng-template",31),r(),a(53,"small",32)(54,"strong"),d(55,"Note:"),r(),d(56," Only PDF file with a maximum size of 2MB is allowed "),r()(),a(57,"div",33)(58,"p-floatLabel")(59,"p-calendar",34),C("onSelect",function(o){h(e);let c=s();return f(c.onDateSelect(o))})("onInput",function(o){h(e);let c=s();return f(c.onDateInput(o))}),r(),a(60,"label",35),d(61,"Blacklisted Date"),a(62,"span",26),d(63,"*"),r()()(),a(64,"div",26),m(65,kd,2,0,"small",36),r()(),a(66,"div",37)(67,"p-button",38),C("click",function(){h(e);let o=s();return f(o.backbtn())}),r(),a(68,"p-button",39),C("click",function(o){h(e);let c=s();return f(c.confirm(o))}),r()()()()()()()}if(i&2){let e,n,o=s();l(5),v("",M(6,26,o.ngoInfo==null?null:o.ngoInfo.ngoName)," "),l(3),g((o.ngoInfo==null?null:o.ngoInfo.status)===10?8:-1),l(9),p("ngClass",nt(31,Pn,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===4,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===10,!(o.ngoInfo!=null&&o.ngoInfo.darpanUid))),l(),y((o.ngoInfo==null?null:o.ngoInfo.darpanUid)||"Not Available"),l(4),p("ngClass",nt(35,Pn,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===4,(o.ngoInfo==null?null:o.ngoInfo.darpanUid)&&(o.ngoInfo==null?null:o.ngoInfo.status)===10,!(o.ngoInfo!=null&&o.ngoInfo.darpanUid))),l(),y(o.ngoInfo!=null&&o.ngoInfo.darpanUid?(o.ngoInfo==null?null:o.ngoInfo.status)===4?"Active":(o.ngoInfo==null?null:o.ngoInfo.status)===10?"Blacklisted":"Pending":"Pending"),l(5),g(!(o.ngoInfo==null||o.ngoInfo.district==null)&&o.ngoInfo.district.districtName||!(o.ngoInfo==null||o.ngoInfo.district==null||o.ngoInfo.district.mstrState==null)&&o.ngoInfo.district.mstrState.stateName?28:29),l(6),y(o.ngoInfo!=null&&o.ngoInfo.submitDate?re(35,28,o.ngoInfo==null?null:o.ngoInfo.submitDate,"dd-MM-yyyy"):"Not Available"),l(4),p("formGroup",o.blackl
7istForm),l(4),p("maxlength",500),l(5),p("ngIf",((e=o.blacklistForm.get("remark"))==null?null:e.errors)&&((e=o.blacklistForm.get("remark"))==null?null:e.touched)),l(3),ae("pTooltip",o.file1==null?null:o.file1.name),p("multiple",!1)("showUploadButton",!1)("chooseLabel","Upload Evidence Document")("showCancelButton",!1)("maxFileSize",2*1024*1024)("files",o.file1?Ee(39,Cd,o.file1):F(41,bd))("disabled",o.isSpinner1||o.fileId1!=""),l(9),p("iconDisplay","input")("showIcon",!0)("minDate",o.submitDate)("maxDate",o.todayDate1),l(6),p("ngIf",((n=o.blacklistForm.get("blacklistDate"))==null?null:n.hasError("required"))&&((n=o.blacklistForm.get("blacklistDate"))==null?null:n.touched)),l(3),p("loading",o.saving)("disabled",o.blacklistForm.invalid||o.saving||o.isSaving)}}var fi=class i{constructor(t,e,n,o,c,u,T,D){this.http=t;this._service=e;this._admin=n;this._router=o;this._enc=c;this.appComponent=u;this.fb=T;this.confirmationService=D;this.blacklistForm=this.fb.group({blacklistDate:["",E.required],remark:["",[E.required,E.minLength(3),E.maxLength(500),E.pattern(/^(?!\s)(?!.*\s{2})[a-zA-Z0-9\s\-\.,\/#']+$/)]],file1:[null,E.required]}),this.todayDate=new Date,this.todayDate.setHours(0,0,0,0),this.todayDate1=new Date,this.todayDate1.setHours(23,59,59,59),this.sixMonth=new Date,this.sixMonth.setMonth(this.sixMonth.getMonth()-6),this.sixMonth.setHours(0,0,0,0)}date;ngoId;back=new pe;isSaving=!1;ngoInfo;isLoading=!0;saving=!1;isSpinner1=!1;filePreview=!1;previewUrl1="";fileName="";severity="success-msg";displayMsg="";errorMsg="";fileId1="";file1=null;previewUrl="";blacklistForm;submitDate;todayDate;todayDate1;sixMonth;fileUploadRef;ngOnInit(){this.getNgoDetails()}getNgoDetails(){this._service.getNgoInfo(S.APIReg,this._enc.encodeUrlValue(this.ngoId)).subscribe(t=>{t.statusCode.includes("001")?(this.ngoInfo=t?.ngoInfo,t?.ngoInfo?.submitDate?(this.submitDate=new Date(t?.ngoInfo?.submitDate),this.submitDate<this.sixMonth&&(this.submitDate=this.sixMonth)):this.submitDate=this.sixMonth,this.submitDate.setHours(0,0,0,0),this.onDateSelect(this.todayDate)):(this.severity="error-msg",this.displayMsg=t?.displayMsg,this.showInfoMsg()),this.isLoading=!1})}
7showInfoMsg(){this.appComponent.showGlobalToast(this.displayMsg,this.severity,3e3)}backbtn(){this.back.emit()}uploadFile(t){return Fe(this,null,function*(){let e=t.files[0];e&&(this.validateFile(e)?(this.isSpinner1=!0,this.fileId1!==""&&this.onFileRemove(t),setTimeout(()=>Fe(this,null,function*(){let n=new FileReader;n.onload=o=>{if(o?.target?.readyState===FileReader.DONE){let c=o.target.result,u=new Uint8Array(c),D=Array.from(u),b={moduleType:"NGOBLACKLIST",sectionType:"COMMON",contentType:"FILE",filename:e.name,file:D};this.uploadFileAPI(b,e,t)}},n.readAsArrayBuffer(e)}),1e3)):this.onFileRemove(t))})}validateFile(t){return t.type!="application/pdf"?!1:!(t.size>2*1024*1024)}onFileRemove(t){let e=t.file;this.fileId1!=""&&this._service.deleteFile(S.APIUrl,this.fileId1).subscribe(n=>{n.statusCode.includes("001")?(this.fileId1="",this.file1=null,this.previewUrl1="",this.severity="success-msg",this.displayMsg="File Removed Successfully",this.showInfoMsg(),this.blacklistForm.patchValue({file1:null})):(this.severity="error-msg",this.displayMsg=n?.displayMsg,this.showInfoMsg())})}uploadFileAPI(t,e,n){this._service.uploadFile(S.APIUrl,t).subscribe(o=>{o.statusCode.includes("001")?(this.fileId1=o?.recordId,this.blackl
7istForm.patchValue({file1:this.fileId1}),this.severity="success-msg",this.displayMsg="File Uploaded Successfully",this.showInfoMsg(),this.isSpinner1=!1,this.generatePreviewUrl(e)):(this.fileUploadRef.clear(),this.file1=null,this.previewUrl1="",this.fileId1="",this.blacklistForm.patchValue({file1:null}),n?.originalEvent?.target&&(n.originalEvent.target.value=""),this.severity="error-msg",this.displayMsg=o?.displayMsg,this.showInfoMsg(),this.isSpinner1=!1)})}generatePreviewUrl(t){let e=new FileReader;e.onload=()=>{this.previewUrl1=e.result,this.fileName=t.name},e.readAsDataURL(t)}previewThis(t,e){this.previewUrl=t,this.filePreview=!0,this.fileName=e}confirm(t){this.isSaving||this.confirmationService.confirm({target:t.target,message:`Are you sure you want to blacklist the NPO <br/><span class="font-medium uppercase text-danger">"${this.ngoInfo.ngoName}"</span> (DARPAN ID: <span class="font-medium uppercase text-danger">${this.ngoInfo?.darpanUid}</span>)?`,header:"Confirmation",icon:"pi pi-exclamation-triangle",acceptIcon:"pi pi-check mr-2",rejectIcon:"pi pi-times mr-2",rejectButtonStyleClass:"primary-btn mr-3",acceptButtonStyleClass:"primary-btn filled-btn",accept:()=>{let e=this.blacklistForm.value,n={remark:e.remark,effectiveDate:e.blacklistDate,fileUploadList:[{fileUpldId:e.file1,moduleType:"NGOBLACKLIST",sectionType:"COMMON"}]};this._admin.blacklistNpo(S.APIReg,this.ngoId,n).subscribe(o=>{o.statusCode.includes("001")?(this.severity="success-msg",this.displayMsg=o?.displayMsg,this.isSaving=!1,this.showInfoMsg(),this.backToParent()):(this.severity="error-msg",this.displayMsg=o?.displayMsg,this.showInfoMsg(),this.isSaving=!1)})},reject:()=>{}})}onDateSelect(t){let e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));this.blacklistForm.patchValue({blacklistDate:e})}onDateInput(t){let e=t.target.value,n=this.parseDate(e);if(n&&n>=this.submitDate&&this.todayDate1>=n){let o=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds()));this.blacklistForm.patchValue({blacklistDate:o})}}backToParent(){this._router.navigate(["admin/blacklisted-npo"])}downloadFile(){this.http.get(this.previewUrl,{responseType:"blob"}).subscribe(t=>{let e=window.URL.createObjectURL(t),n=document.createElement("a");n.href=e;let o=this.previewUrl.split("/"),c=o[o.length-1];n.download=c,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e)})}parseDate(t){let[e,n,o]=t.split("-").map(Number);if(!e||!n||!o||o<1e3)return null;let c=new Date(o,n-1,e);return isNaN(c.getTime())?null:c}static \u0275fac=function(e){return new(e||i)(w(Ae),w(Jt),w(oe),w(q),w(ne),w(st),w(we),w(Ve))};static \u0275cmp=N({type:i,selectors:[["app-blacklist-form"]],viewQuery:function(e,n){if(e&1&&X(gd,5),e&2){let o;L(o=U())&&(n.fileUploadRef=o.first)}},inputs:{ngoId:"ngoId"},outputs:{back:"back"},standalone:!0,features:[it([Ve]),I],decls:8,vars:6,consts:[["fileUploadRef",""],["styleClass","details-pdf","header","Document Preview","focusOnShow","false",3,"visibleChange","draggable","dismissableMask","modal","visible"],[1,"p-3"],[1,"flex","justify-content-end"],["styleClass","mx-1  primary-btn","icon","pi pi-download","label","Download File","pTooltip","Download file","tooltipPosition","left",3,"click"],["viewer","pdf",2,"width","800px","height","500px","margin","20px 0",3,"url"],[1,"flex","justify-content-between","align-items-center","flex-wrap"],[1,"lft-wrap","w-full","flex","align-items-center"],[1,"flex","justify-content-between","flex-wrap","w-full","mb-3","align-items-center"],[1,"m-0","main-heading"],[1,"title"],[1,"npo-status"],["id","exclude",1,"flex"],["label","Back","styleClass","ml-3 back-btn","icon","pi pi-chevron-left","severity","secondary",3,"click"],["styleClass","mt-2"],[1,"card","lg:mb-0","mb-2"],[1,"grid"],[1,"col-12","lg:col-3"],[1,"block","font-bold",3,"ngClass"],[1,"block","font-bold"],[1,"mt-2"],[1,"blacklist-form","my-4"],[3,"formGroup"],[1,"col-12"],["id","blacklist","rows","3","cols","50","pInputTextarea","","formControlName","remark",1,"textarea",3,"maxlength"],["for","blacklist"],[1,"text-red-500","absolute"],["class","text-red-500 absolute",4,"ngIf"],[1,"grid","my-2"],[1,"col-12","xl:col-6"],["name","demo[]","url","https://www.primefaces.org/cdn/api/upload.php","accept",".pdf","invali
7dFileSizeMessageDetail","",3,"onUpload","onSelect","onRemove","multiple","showUploadButton","chooseLabel","showCancelButton","maxFileSize","files","disabled","pTooltip"],["pTemplate","content"],[1,"file-upload-note"],[1,"col-12","lg:col-6"],["dateFormat","dd-mm-yy","formControlName","blacklistDate","styleClass","w-full","inputId","dob","appendTo","body",3,"onSelect","onInput","iconDisplay","showIcon","minDate","maxDate"],["for","date"],[4,"ngIf"],[1,"flex","justify-content-end","w-full","my-3"],["label","Cancel","styleClass","primary-btn cancel-btn",3,"click"],["label","Blacklist","styleClass","ml-3 primary-btn filled-btn","loadingIcon","pi pi-spinner-dotted",3,"click","loading","disabled"],[1,"filename"],["target","_blank",1,"cursor-pointer"],["target","_blank",1,"cursor-pointer",3,"click"]],template:function(e,n){e&1&&(m(0,yd,1,0,"app-loader")(1,Md,69,42),a(2,"p-dialog",1),j("visibleChange",function(c){return z(n.filePreview,c)||(n.filePreview=c),c}),a(3,"div",2)(4,"div",3)(5,"p-button",4),C("click",function(){return n.downloadFile()}),r()(),_(6,"ngx-doc-viewer",5),r()(),_(7,"p-confirmDialog")),e&2&&(g(n.isLoading?0:1),l(2),p("draggable",!1)("dismissableMask",!0)("modal",!0),G("visible",n.filePreview),l(4),p("url",n.previewUrl+"#toolbar=0&navpanes=0&scrollbar=0"))},dependencies:[qe,We,Y,W,te,ee,Z,J,Qt,qt,ei,Xt,dt,Bt,R,$,K,At,Oe,le,Ce,Ht,Yt,Be,Ue,Ye,se,xe,ie,Q,be,Le,ve,Se,H,jt,zt,ze,De,$e,He],styles:['[_nghost-%COMP%]     .card{padding:0 20px}[_nghost-%COMP%]     .text-success{color:var(--green-600)}[_nghost-%COMP%]     .text-warning{color:var(--yellow-500)}[_nghost-%COMP%]     .text-danger{color:var(--red-600)}[_nghost-%COMP%]     .cancel-btn{background:#e8e8e8;border-color:#e8e8e8;box-shadow:none}[_nghost-%COMP%]     .cancel-btn span{color:#574d66;font-size:.85em}[_nghost-%COMP%]     .p-fileupload-filename{width:100%;padding:0 4px}[_nghost-%COMP%]     .p-fileupload-filename:after{content:"\\e966";font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;margin-left:10px;color:#ff7043}[_nghost-%COMP%]     .details-pdf .zoom{width:800px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     .details-pdf .zoom{width:350px}}@media only screen and (min-width: 768px) and (max-width: 992px){[_nghost-%COMP%]     .details-pdf .zoom{width:600px}}[_nghost-%COMP%]     .p-dialog-content{overflow-y:hidden}[_nghost-%COMP%]     .ng2-pdf-viewer-container{height:95%;overflow-x:hidden!important}[_nghost-%COMP%]     .notPreview .filename a{position:absolute;opacity:0;inset:0}[_nghost-%COMP%]     .p-fileupload-content{position:relative}[_nghost-%COMP%]     .p-fileupload-content .filename a{position:absolute;opacity:0;inset:0;width:60%}[_nghost-%COMP%]     .p-fileupload-content .p-progress-spinner{position:absolute;inset:0;margin:auto;background:#00000080;width:100%;height:100%}[_nghost-%COMP%]     .p-fileupload-content .p-progress-spinner svg{width:30px;height:30px}']})};var Rd=()=>({"min-width":"50rem","min-height":"300px"});function Pd(i,t){if(i&1){let e=x();a(0,"p-button",5),C("click",function(){h(e);let o=s(2);return f(o.backToParent())}),r()}}function Fd(i,t){if(i&1&&(a(0,"div",1)(1,"div",2)(2,"h2",3),d(3,"Search a NPO to Blacklist"),r()(),m(4,Pd,1,0,"p-button",4),r()),i&2){let e=s();l(4),g(e.comingFromDashboard?4:-1)}}function Ed(i,t){i&1&&_(0,"app-loader")}function Od(i,t){if(i&1){let e=x();a(0,"p-button",22),C("click",function(){h(e);let o=s(3);return f(o.clear("npoName"))}),r()}}function Ad(i,t){i&1&&(a(0,"small"),d(1," Enter a valid NPO Name "),r())}function Vd(i,t){if(i&1&&(a(0,"div",23),m(1,Ad,2,0,"small",24),r()),i&2){let e,n=s(3);l(),p("ngIf",(e=n.searchForm.get("npoName"))==null?null:e.hasError("pattern"))}}function Wd(i,t){if(i&1){let e=x();a(0,"p-button",22),C("click",function(){h(e);let o=s(3);return f(o.clear("uniqueId"))}),r()}}function Ld(i,t){i&1&&(a(0,"small"),d(1," Enter a valid DARPAN ID "),r())}function Ud(i,t){if(i&1&&(a(0,"div",23),m(1,Ld,2,0,"small",24),r()),i&2){let e,n=s(3);l(),p("ngIf",(e=n.searchForm.get("uniqueId"))==null?null:e.hasError("pattern"))}}function Bd(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"Sr. No."),r(),a(3,"th"),d(4,"DARPAN ID"),r(),a(5,"th"),d(6,"NPO Name"),r(),a(7,"th"),d(8,"NPO Type"),r(),a(9,"th"),d(10,"Registered District (State)"),r(),a(11,"th"),d(12,"Blacklist"),r()())}function Gd(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" ",e.districtName," ")}}function zd(i,t){if(i&1&&d(0),i&2){let e=s(2).$implicit;v(" (",e.stateName,") ")}}
7function jd(i,t){if(i&1&&m(0,Gd,1,1)(1,zd,1,1),i&2){let e=s().$implicit;g(e!=null&&e.districtName?0:-1),l(),g(e!=null&&e.stateName?1:-1)}}function Yd(i,t){i&1&&d(0," -- ")}function Hd(i,t){if(i&1){let e=x();a(0,"tr")(1,"td"),d(2),r(),a(3,"td",30),d(4),r(),a(5,"td"),d(6),r(),a(7,"td"),d(8),r(),a(9,"td"),m(10,jd,2,2)(11,Yd,1,0),r(),a(12,"td")(13,"span",31),C("click",function(){let o=h(e).$implicit,c=s(4);return f(c.viewNgo(o==null?null:o.ngoId))}),_(14,"i",32),r()()()}if(i&2){let e=t.$implicit,n=t.rowIndex;l(2),y(n+1),l(2),y((e==null?null:e.darpanId)||"--"),l(2),v(" ",e.ngoName||"--"," "),l(2),y(e.ngoType||"--"),l(2),g(e!=null&&e.districtName||e.stateName?10:11)}}function $d(i,t){i&1&&(a(0,"tr")(1,"td",33),_(2,"img",34),a(3,"h2",35),d(4," No Data Found "),a(5,"span",36),d(6,"Please Enter Search Criteria from Above Form"),r()()()())}function Kd(i,t){if(i&1){let e=x();a(0,"div",25)(1,"p-table",26,0),C("onLazyLoad",function(o){h(e);let c=s(3);return f(c.loadLazy(o))}),m(3,Bd,13,0,"ng-template",27)(4,Hd,15,5,"ng-template",28)(5,$d,7,0,"ng-template",29),r()()}if(i&2){let e=s(3);l(),p("value",e.data)("rows",10)("tableStyle",F(8,Rd))("paginator",e.data.length>0)("lazy",!0)("totalRecords",e.totalRecords)("loading",e.loading)("first",e.first)}}function qd(i,t){if(i&1){let e=x();a(0,"p-card",6)(1,"div",8)(2,"div",9)(3,"form",10)(4,"div",11)(5,"div",12)(6,"p-floatLabel")(7,"input",13),C("keydown.enter",function(){h(e);let o=s(2);return f(o.handleEnterKey())}),r(),m(8,Od,1,0,"p-button",14),a(9,"label",15),d(10,"Search by NPO Name"),r()(),m(11,Vd,2,1,"div",16),r(),a(12,"div",12)(13,"p-floatLabel")(14,"input",17),C("keydown.enter",function(){h(e);let o=s(2);return f(o.handleEnterKey())}),r(),m(15,Wd,1,0,"p-button",14),a(16,"label",18),d(17,"Search by DARPAN ID"),r()(),m(18,Ud,2,1,"div",16),r(),a(19,"div",12)(20,"div",19)(21,"p-button",20),C("click",function(){h(e);let o=s(2);return f(o.search())}),r()()()()()(),m(22,Kd,6,9,"div",21),r()()}if(i&2){let e,n,o,c,u=s(2);l(3),p("formGroup",u.searchForm),l(5),g((e=u.searchForm.get("npoName"))!=null&&e.dirty&&((e
7=u.searchForm.get("npoName"))==null?null:e.value.trim().length)>0?8:-1),l(3),p("ngIf",((n=u.searchForm.get("npoName"))==null?null:n.invalid)&&(((n=u.searchForm.get("npoName"))==null?null:n.dirty)||((n=u.searchForm.get("npoName"))==null?null:n.touched))),l(4),g((o=u.searchForm.get("uniqueId"))!=null&&o.dirty&&((o=u.searchForm.get("uniqueId"))==null?null:o.value.trim().length)>0?15:-1),l(3),p("ngIf",((c=u.searchForm.get("uniqueId"))==null?null:c.invalid)&&(((c=u.searchForm.get("uniqueId"))==null?null:c.dirty)||((c=u.searchForm.get("uniqueId"))==null?null:c.touched))),l(3),p("disabled",u.searchForm.invalid||u.loading||u.isFormEmpty()),l(),p("ngIf",u.showTable)}}function Qd(i,t){if(i&1){let e=x();a(0,"app-blacklist-form",37),C("back",function(o){h(e);let c=s(2);return f(c.backbtn(o))}),r()}if(i&2){let e=s(2);p("ngoId",e.darpanId)}}function Jd(i,t){if(i&1&&m(0,qd,23,7,"p-card",6)(1,Qd,1,1,"app-blacklist-form",7),i&2){let e=s();g(e.isViewNgo?1:0)}}var gi=class i{constructor(t,e,n){this._service=t;this.fb=e;this._router=n;this.searchForm=this.fb.group({npoName:["",E.pattern(/^(?!\s)(?!.*\s{2})(?!.*\s$)(?=.*[a-zA-Z0-9'])^[a-zA-Z0-9'\(\)\"][a-zA-Z0-9_\s\.\,\&\-\+\'\(\)\/\#@\"\[\]\:\`]*$/)],uniqueId:["",E.pattern(/^([A-Za-z]{2})\/\d{4}\/\d{7}$/)]})}fromDashboard=!1;comingFromDashboard=!1;isMinistryUser=!1;showNPOs=!1;pageLodder=!1;showTable=!1;loading=!1;data=[];searchForm;first=0;currentPageNo=0;totalRecords=0;quary="";isViewNgo=!1;darpanId="";userId=localStorage.getItem("uidzzz");userType=localStorage.getItem("utypezzz");ngOnInit(){let t=history.state;t&&t.comingFromDashboard&&(this.comingFromDashboard=!0)}backToParent(){this._router.navigate(["admin/blacklisted-npo"])}handleEnterKey(){if(this.searchForm.valid&&!this.loading&&!this.isFormEmpty())this.search();else return}search(){this.showNPOs=!1,this.currentPageNo=0,this.first=0,this.data=[];let t=this.searchForm.value,e={};t.uniqueId&&(e.darpanId=encodeURIComponent(t.uniqueId)),t.npoName&&(e.ngoName=encodeURIComponent(t.npoName)),this.quary=Object.keys(e).map(n=>`${n}=${e[n]}`).join("&"),this.showTable?this.getNPOEnrolledDetails():this.showTable=!0}loadLazy(t){this.loading=!0;let e=t.first?t.first/10:0;this.currentPageNo=e,this.first=t.first?t.first:0,this.getNPOEnrolledDetails()}getNPOEnrolledDetails(){this.loading=!0,this._service.getNPOEnrolledDetails(S.APIReg,this.quary,this.currentPageNo).subscribe(t=>{t.statusCode.includes("001")?(this.data=t?.ngos,this.totalRecords=t?.pageInfo?.totalNumberOfElement):this.currentPageNo===0&&(this.data=[],this.searchForm.patchValue({total:""})),this.loading=!1})}viewNgo(t){this.darpanId=t,this.isViewNgo=!0}backbtn(t){this.darpanId="",this.isViewNgo=!1}isFormEmpty(){let t=this.searchForm.value,e=t.npoName||t.uniqueId;return e||(this.data=[],this.showTable=!1),!e}clear(t){this.searchForm.get(t)?.reset()}static \u0275fac=function(e){return new(e||i)(w(oe),w(we),w(q))};static \u0275cmp=N({type:i,selectors:[["app-blacklist-anpo"]],standalone:!0,features:[I],decls:3,vars:2,consts:[["dt",""],[1,"flex","justify-content-between","align-items-center","flex-wrap","mb-3"],[1,"lft-wrap"],[1,"heading"],["label","Back","icon","pi pi-chevron-left","severity","secondary","styleClass","back-btn"],["label","Back","icon","pi pi-chevron-left","severity","secondary","styleClass","back-btn",3,"click"],["styleClass","dashboard-wrap"],[3,"ngoId"],["id","commonScrollTo",1,"grid","mx-0"],[1,"col-12","px-0"],[3,"formGroup"],[1,"grid"],[1,"col-12","lg:col-3","p-3"],["pInputText","","id","username","formControlName","npoName","maxlength","100",3,"keydown.enter"],["icon","pi pi-times","styleClass","closable"],["for","username"],["class","text-red-500 absolute",4,"ngIf"],["pInputText","","id","uniqueId","formControlName","uniqueId","maxlength","15","minlength","15",3,"keydown.enter"],["for","uniqueId"],[1,"flex"],["label","Search","styleClass","primary-btn filled-btn px-5 md:px-6",3,"click","disabled"],["class","col-12",4,"ngIf"],["icon","pi pi-times","styleClass","closable",3,"click"],[1,"text-red-500","absolute"],[4,"ngIf"],[1,"col-12"],["styleClass","p-datatable-gridlines","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries",3,"onLazyLoad","value","rows","tableStyle","paginator","lazy","totalRecords","loading","first"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[2,"white-space","nowrap"],[1,"text-center","cursor-pointer",3,"click"],[1,"pi","pi-ban"],["colspan","6",1,"text-center","py-8","custom-error"],["src","assets/images/no_found.png","alt","no_data",1,"mx-auto"],[1,"mt-4"],[1,"block","font-normal"],[3,"back","ngoId"]],template:function(e,n){e&1&&m(0,Fd,5,1,"div",1)(1,Ed,1,0,"app-loader")(2,Jd,2,1),e&2&&(g(n.isViewNgo?-1:0),l(),g(n.pageLodder?1:2))},dependencies:[Te,ee,W,Y,ce,de,H,xe,ie,Q,be,Lt,Le,Ge,Z,J,je,Ie,Ne,R,K,le,se,ve,Se,ze,fi,De],styles:["[_nghost-%COMP%]     .p-datatable-header{background-color:#fff;border:0;padding:0 0 20px}[_nghost-%COMP%]     .p-datatable-header .p-card{border-radius:5px}[_nghost-%COMP%]     .p-datatable-header .p-card h3{font-size:.9em;font-weight:500;text-align:left}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span{font-size:1.2em}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.npo{color:#59a970}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.ministries{color:#6b8ed8}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.schemes{color:#af877d}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.grant{color:#9ea766}[_nghost-%COMP%]     .p-datatable-wrapper tr th{background-color:#fcf8e5;font-size:.85em;font-weight:600}[_nghost-%COMP%]     .p-datatable-wrapper tr td{font-size:.85em;font-weight:500}[_nghost-%COMP%]     .p-datatable-wrapper tr td span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[_nghost-%COMP%]     .p-datatable-wrapper tr td:last-child span{color:#ff7043}[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:48px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:auto}}[_nghost-%COMP%]     .custom-error h2{font-size:1.2em;line-height:1.8em}[_nghost-%COMP%]     .custom-error h2 span{font-size:.9em}[_nghost-%COMP%]     .p-multiselect-token{border-radius:5px;background-color:#fff;border:1px solid #FF7043}[_nghost-%COMP%]     .p-multiselect-token span, [_nghost-%COMP%]     .p-multiselect-token svg{color:#ff7043}[_nghost-%COMP%]     .p-multiselect-token span{font-size:.9em}[_nghost-%COMP%]     .back-btn span{font-size:.85em}[_nghost-%COMP%]     .custom-table tr th{background-color:transparent;font-size:1em;font-weight:700}[_nghost-%COMP%]     .custom-table tr td{background-color:#f5f5f5;padding:15px 10px;font-size:.9em}
7[_nghost-%COMP%]     .custom-table tr td span{display:inline-block;line-height:1.8em;vertical-align:middle}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper{color:#fff}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper svg{width:30px;height:30px}"]})};var Ci=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-unblacklisted-npos"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","Unblacklisted NPOs")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.UnblacklistedNPOsComponent)("parent",n.parent)("chield","/admin/unblacklisted-npo")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var bi=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-duplicate-members"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","Members With Multiple NPOs")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.DuplicateMembersComponent)("parent",n.parent)("chield","/admin/duplicate-members")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var Bi=(i,t)=>{let e=i.data.role,n=localStorage.getItem("roles"),o=Ct(ne),c=Ct(q);return(n?JSON.parse(o.decryptData(n)):[]).includes(e)?!0:(c.navigate(["/admin"]),!1)};var yi=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-sector-wise-npos"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","State/Sector Wise NPOs Count")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.SectorWiseNposComponent)("parent",n.parent)("chield","/admin/sector-wise-npos")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var xi=class i{ReportConfig=A;fromDashboard=!1;comingFromDashboard=!1;filters;parent="";grparent="";ngOnInit(){let t=history.state;t&&t.fromDashboard&&(this.fromDashboard=!0,t.filters!==""&&(this.filters=JSON.parse(t.filters)),t.parent&&(this.parent=t.parent),t.grparent&&(this.grparent=t.grparent),t.comingFromDashboard&&(this.comingFromDashboard=!0))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-ngo-wise-sector"]],standalone:!0,features:[I],decls:1,vars:8,consts:[[3,"heading","fromDashboard","filters","ReportConfig","parent","chield","grparent","comingFromDashboard"]],template:function(e,n){e&1&&_(0,"app-reports",0),e&2&&p("heading","Sector Wise NPO List")("fromDashboard",n.fromDashboard)("filters",n.filters)("ReportConfig",n.ReportConfig.NgoWiseSectorComponent)("parent",n.parent)("chield","/admin/npo-wise-sector")("grparent",n.grparent)("comingFromDashboard",n.comingFromDashboard)},dependencies:[O]})};var Zd=["dt2"],Xd=()=>({"min-width":"50rem","min-height":"300px"}),ec=()=>
7["ministry","nodal_officer","email","phone"];function tc(i,t){if(i&1){let e=x();a(0,"div",12)(1,"div",13)(2,"p-floatLabel",14)(3,"input",15),j("ngModelChange",function(o){h(e);let c=s();return z(c.searchValue,o)||(c.searchValue=o),f(o)}),C("input",function(o){h(e);let c=s();return f(c.onGlobalFilter(o))}),r(),a(4,"label",16),d(5,"Type here to search"),r(),_(6,"i",17),r()()()}if(i&2){let e=s();l(3),G("ngModel",e.searchValue)}}function ic(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"Sr. No."),r(),a(3,"th",18),d(4," Ministry/Department "),_(5,"p-sortIcon",19),r(),a(6,"th",20),d(7," Nodal Officer Name "),_(8,"p-sortIcon",21),r(),a(9,"th"),d(10,"Email ID"),r(),a(11,"th"),d(12,"Phone Number"),r()())}function nc(i,t){if(i&1&&_(0,"td",22),i&2){let e=s().$implicit;p("innerHTML",e.nodal_officer,tt)}}function oc(i,t){i&1&&(a(0,"td"),d(1,"--"),r())}function ac(i,t){if(i&1&&_(0,"td",24),i&2){let e=s().$implicit;p("innerHTML",e==null?null:e.phone,tt)}}function rc(i,t){i&1&&(a(0,"td"),d(1,"--"),r())}function lc(i,t){if(i&1&&(a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),r(),m(5,nc,1,1,"td",22)(6,oc,2,0,"td"),a(7,"td",23),d(8),r(),m(9,ac,1,1,"td",24)(10,rc,2,0,"td"),r()),i&2){let e=t.$implicit,n=t.rowIndex;l(2),y(n+1),l(2),y((e==null?null:e.ministry)||"--"),l(),g(e.nodal_officer?5:6),l(3),y((e==null?null:e.email)||"--"),l(),g(e.phone?9:10)}}function sc(i,t){i&1&&(a(0,"tr")(1,"td",25),_(2,"img",26),a(3,"h2",27),d(4,"No Data Found"),r()()())}var vi=class i{loading=!0;searchValue;dt2;data=[{ministry:"Department of Agriculture, Cooperation and Farmers Welfare (Krishi, Sakarita Evam Kisan Kalyan Vibhag)",nodal_officer:"Shri Vijay Kumar Dy. Secretary (lT), DA&FW",email:null,phone:null},{ministry:"Department of Agricultural Research and Education (Krishi Anusandhan aur Shiksha Vibhag)",nodal_officer:"Dr. Anil Kumar, Assistant Director General (Coordination)",email:"[email protected]",phone:"9871967713<br/>8076610129"},{ministry:"Department of Animal Husbandry, Dairying and Fisheries (Pashupalan, Dairy aur Matsyapalan Vibhag)",nodal_officer:"Smt. Anamika Nigam, Under Secretary (NLM)",email:"[email protected]",phone:"7428194668<br/>011-23311033"},{ministry:"Ministry of Ayurveda, Yoga and Naturopathy, Unani, Siddha and Homoeopathy (AYUSH) (Ayurveda, Yoga aur Prakratik Chikitsa, Unani, Siddha aur Homoeopathy (AYUSH) Mantralaya)",nodal_officer:"Shri Naman Goyal OSD",email:"[email protected] [email protected]",phone:8755854118},{ministry:"DEAPARTMENT OF CHEMICALS AND PETRO-CHEMICALS (RASAYAN AUR PETRO-RASAYAN VIBHAG)",nodal_officer:"Anurag Chandra, Deputy Secretary (Chemicals)",email:"[email protected]",phone:9408793004},{ministry:"DEPARTMENT OF FERTILIZERS (Urvarak Vibhag)",nodal_officer:"MS. PRATIBHA A",email:null,phone:23381395},{ministry:"DEPARTMENT OF PHARMACECUTICALS (AUSHADH VIBHAG)",nodal_officer:"Uma Magesh, Under Secretary(Pharma-I)",email:"[email protected]",phone:"9811798516,"},{ministry:"MINISTRY OF CIVIL AVIATION (NAGAR VIMANAN MANTRALAYA)",nodal_officer:"Sh. Suresh Babu (Under Secretary)",email:"[email protected]",phone:"9312513318<br/>011-24640218"},{ministry:"MINISTRY OF COAL (KOYALA MANTRALAYA)",nodal_officer:"Dr. Manik Chandra Pandit, Director",email:null,phone:null},{ministry:"MINISTRY OF COMMERCE",nodal_officer:"Ms. Mamta, Director",email:"[email protected]",phone:9356052902},{ministry:"DEPARTMENT OF INDUSTRIAL POLICY AND PROMOTION",nodal_officer:"Ms. Mamta, Director",email:"[email protected]",phone:9356052902},{ministry:"DEPARTMENT OF TELECOMMUNICATION DOORSANCHAR VIBHAG",nodal_officer:"Smt. Jaspreet Kaur",email:"[email protected]",phone:7696087242},{ministry:"DEPARTMENT OF POSTS DAK VIBHAG",nodal_officer:"Shri. Ashutosh Narayan Rao",email:"[email protected]",phone:9471688909},{ministry:"Department of Consumer Affairs (UPBHOKTA MAMLE VIBHAG)",nodal_officer:"Shri Aman Jain Director",email:"[email protected]",phone:23389327},{ministry:"DEPARTMENT OF FOOD AND PUBLIC DISTRIBUTIION (KHADYA AUR SARVAJANIK VITARAN VIBHAG",nodal_officer:"Ms. Anita Karn Joint Secretary (Storage, NAC & ICT)",email:"[email protected]",phone:"011-23382956"},{ministry:"MINISTRY OF CORPORATE AFFAIRS (CORPORATE KARYA MANTRALAYA)",nodal_officer:"Shri Inder Deep Singh Dhariwal",email:null,phone:null},{ministry:"MINISTRY OF CULTURE (SANSKRITI MANTRALYA)",nodal_officer:"Ms. Amita Prasad Sarbhai",email:"[email protected]",phone:"011-24642164"},{ministry:"DEPARTMENT OF EX-SERVICEMEN WELFARE (POORVA SENANI KALYAN VIKAS MANTRALYA)",nodal_officer:"Shri Vinay Pratap Singh",email:"[email protected]",phone:"9718387396<br/>23014419"}
7,{ministry:"MINISTRY OF DEVELOPMENT OF NORTH EASTRN REGION UTTAR POORVI KSHETRA VIKAS MANTRALYA",nodal_officer:"Shri Vijay Kumar Goel Director",email:"[email protected]",phone:7860165622},{ministry:"MINISTRY OF DRINKING WATER AND SANITATION (PEYA JAL AUR SWACHCHHTA )",nodal_officer:"Shri Shambhu Singh DS",email:null,phone:9811590877},{ministry:"MINISTRY OF EARTH SCIENCES (PRITHVI VIGYAN MANTRALAYA",nodal_officer:"Dr. Aditi Singh - Sc-E",email:"[email protected]",phone:9213865385},{ministry:"MINISTRY OF ELECTRONICS AND INFORMATION TECHNOLOGY",nodal_officer:"Shri Sanket S Bhondve",email:"[email protected]",phone:"011-24301915<br/>01124364751"},{ministry:"MINISTRY OF ENVIRONMENT FOREST AND CLIMATE CHANGE",nodal_officer:"Shri Shankar Lal Bairwa, Deputy Secy </br>Shri Rajendra Kumar, Scientist (E)",email:"[email protected]",phone:"011-20819289(0)"},{ministry:"Ministry of External Affairs",nodal_officer:"Shri Rishi Pal, Under Secretary (Coordination)",email:null,phone:null},{ministry:"DEPARTMENT OF ECONOMIC AFFAIRS",nodal_officer:"Dr. Anuradha Guru EA",email:null,phone:null},{ministry:"DEPARTMENT OF REVENUE",nodal_officer:"Shri Avinash Kumar Deputy Director",email:"[email protected]",phone:8511079296},{ministry:"DEPARTMENT OF FOOD PROCESSING INDUSTRIES",nodal_officer:"Shri Sushil Kumar Tripathi",email:"[email protected]",phone:"011- 26406556"},{ministry:"Department of Health & Family Welfare",nodal_officer:"Ms. Anu Nagar, Joint Secy",email:null,phone:null},{ministry:"Department of Health Research",nodal_officer:"Sh Sanjeev Singh, Under Secretary",email:null,phone:"011-24366247"},{ministry:"Department of Public Enterprises (Lok Udyam Vibhag)",nodal_officer:"Dr. Sumantra Pal",email:null,phone:null},{ministry:"Department of Official Language (Raj Bhasha Vibhag)",nodal_officer:"Shri Anil Kumar",email:"[email protected]",phone:"011-23438129<br/>8505994057"},{ministry:"Department of Home (Grih Vibhag)",nodal_officer:"Shri Saurabh Bansal",email:"[email protected]",phone:8802270602},{ministry:"Department of School Education and Literacy (School Shiksha aur Saksharta Vibhag)",nodal_officer:"Sh. Ram Singh, Dy. Director, DoSEL </br>Sh. Akram Reza, Consultant </br>Sh.Prabhat Mishra, Joint Director, NIC </br>Sh. Viswajit Singh, Project Associate",email:null,phone:null},{ministry:"Department of Higher Education (Uchchatar Shiksha Vibhag)",nodal_officer:"Amit Kumar Gogoi (DDG)",email:null,phone:"011-20862081"},{ministry:"Ministry of Information and Broadcasting (Soochana aur Prasaran Mantralaya)",nodal_officer:"Rajesh Kumar Sharma (Director; IT-II)",email:"[email protected]",phone:"011-23386547<br/>8076133602"},{ministry:"Ministry of Labour and Employment (Shram aur Rozgar Mantralaya)",nodal_officer:"Mahendra Kumar (JS)",email:"[email protected]",phone:23710446},{ministry:"Department of Legal Affairs (Vidhi Karya Vibhag)",nodal_officer:"Ajay Kumar Arora (JS)",email:null,phone:"011-23385383"},{ministry:"Department of Justice (Nyaya Vibhag)",nodal_officer:"Ms. Radha Katyal Narang",email:"[email protected]",phone:"011-23070673<br/>9969298474"},{ministry:"Ministry of Micro, Small and Medium Enterprises",nodal_officer:"Ms. Simmi Chaudhary, EA & JS, M/o MSME",email:"[email protected]",phone:"011-23063433"},{ministry:"Ministry of Minority Affairs (Alpasankhyak Karya Mantralaya)",nodal_officer:"Shri Jagdish Kumar, Joint Director",email:"[email protected]",phone:9871663118},{ministry:"Ministry of New and Renewable Energy (Naveen aur Navikarniya Oorja Mantralaya)",nodal_officer:"Lalit Borah (JS)",email:null,phone:"011-20849044"},{ministry:"Ministry of Panchayati Raj (Panchayati Raj Mantralaya)",nodal_officer:"Shri Santosh Kumar Sinha, Deputy Director",email:"[email protected]",phone:8383810329},{ministry:"Ministry of Parliamentary Affairs (Sansadiya Karya Mantralaya)",nodal_officer:"Dr. Satya Prakash (AS)",email:null,phone:"011-23083861<br/>9818594812"},{ministry:"Department of Personnel and Training (Karmik aur Prashikshan Vibhag)",nodal_officer:"D.S Nagalaxmi, Deputy Secretary",email:null,phone:9971999104},{ministry:"Department of Administrative Reforms and Public Grievances (Prashasanik Sudhar aur Lok Shikayat Vibhag)",nodal_officer:"Shri Rajesh Kumar Sharma, AD",email:null,phone:8510804853},{ministry:"Department of Pensions and Pensioners Welfare (Pension aur Pension Bhogi Kalyan Vibhag)",nodal_officer:"Shri Ravi kiran Ubale Director",email:"[email protected]",phone:"24650580<br/>
79810698336"},{ministry:"Ministry of Power (Vidyut Mantralaya)",nodal_officer:"Pankaj Kumar Jha, Under Secretary (Finance)",email:"[email protected]",phone:9555875980},{ministry:"Ministry of Railways (Rail Mantralaya)",nodal_officer:"Priya Ranjan Parhi (ED - INFRA I)",email:"[email protected]",phone:"011-23782539"},{ministry:"Ministry of Road Transport and Highways (Sadak Parivahan aur Raj Marg Mantralaya)",nodal_officer:"Ram Raj Meena (DS, Road Safety Cell)",email:"[email protected]",phone:"011-23718560"},{ministry:"Department of Science and Technology (Vigyan aur Praudyogiki Vibhag)",nodal_officer:"Dr. Rashmi Sharma, Scientist F </br>Dr. Umesh Kumar Sharma, Scientist F </br>Sh. Avtar Singh Sandhu, CCA, DST Phone: 011-26962962 Email: [email protected] </br>Dr. Bindhu Sreekesh, Scientist F, TD, NIC Phone: 011-26567373, 9868240989 Email: [email protected]",email:"[email protected] [email protected]",phone:"011-26590541<br/>9971538681<br/>011-26590680<br/>9968652519"},{ministry:"Department of Scientific and Industrial Research (Vigyan aur Audyogik Anusandhan Vibhag)",nodal_officer:"Surendra Pal Singh, JS, Ph: 9870511962 </br>Dr. Vipin Chandra Shukla Scientist 'G'",email:"[email protected]",phone:"26859460<br/>9971015790"},{ministry:"Department of Bio-Technology (Biotechnology Vibhag)",nodal_officer:"Shri Shankar Nath Sahu, Statistical Advisor",email:null,phone:null},{ministry:"Ministry of Skill Development and Entrepreneurship (Kaushal Vikas aur Udyamshilta Mantralaya)",nodal_officer:"Shri Harshvardhan Sharma, DD, Ph: 9990546951, Garima Kumari Deputy General Manager- IT & Digital",email:"[email protected]",phone:8506956784},{ministry:"Department of Social Justice and Empowerment (Samajik Nyaya aur Adhikarita Vibhag)",nodal_officer:"Subrata Haldar, Deputy Secretary",email:"[email protected]",phone:9013442960},{ministry:"Department of Empowerment of Persons with Disabilities (Divyangjan) (Divyangjan Sashaktikaran Vibhag)",nodal_officer:"Shri Sandeep Kumar, Under Secretary",email:null,phone:"9953765102<br/>9810648655"},{ministry:"Ministry of Statistics and Programme Implementation (Sankhyiki aur Karyakram Karyanvayan Mantralaya)",nodal_officer:"Shri S S Jadawat, Director",email:null,phone:"9873100179<br/>011-23385508<br/>8750750603"},{ministry:"Ministry of Steel (Ispat Mantralaya)",nodal_officer:"Sanjay Roy",email:"[email protected]",phone:23063872},{ministry:"Ministry of Textiles (Vastra Mantralaya)",nodal_officer:"1. Kishan Singh Ghughtyal, HoD & Joint Director (Market Promotion & Scheme Impl.)",email:"[email protected] [email protected]",phone:"919810929830<br/>011-23352652"},{ministry:"Ministry of Tourism (Paryatan Mantralaya)",nodal_officer:"Ajit Pal Singh, Asstt. D.G",email:null,phone:9660707542},{ministry:"Ministry of Tribal Affairs (Janjatiya Karya Mantralaya)",nodal_officer:"Ms Anshu Singh",email:"[email protected] [email protected] [email protected]",phone:"9891577989<br/>9412784496<br/>9891577989<br/>9971915026"},{ministry:"Ministry of Urban Development (Shahari Vikas Mantralaya) & Ministry of Housing and Urban Poverty Alleviation (Awasan aur Shahari Garibi Upshaman Mantralaya)",nodal_officer:"Ms. Rajni Taneja, Director",email:"[email protected]",phone:9873668025},{ministry:"Ministry of Water Resources, River Development and Ganga Rejuvenation (Jal Sansadhan, Nadi Vikas aur Ganga Sanrakshan Mantralaya)",nodal_officer:"Ms. Sunita Yadav",email:"[email protected]",phone:"011-24368941"},{ministry:"Ministry of Women and Child Development (Mahila aur Bal Vikas Mantralaya)",nodal_officer:"Shri Navendra Singh, Director",email:null,phone:null},{ministry:"Department of Sports (Khel Vibhag)",nodal_officer:"Mr. Karmakar, DS",email:null,phone:null},{ministry:"Department of Atomic Energy (Parmanu Oorja Vibhag)",nodal_officer:"Meera",email:null,phone:null},{ministry:"Department of Space (Antariksh Vibhag)",nodal_officer:"Shri Bapidatiya Dass",email:"[email protected]",phone:null}];ngOnInit(){this.data=this.data.sort((t,e)=>t?.ministry?.localeCompare(e?.ministry)),this.loading=!1}onGlobalFilter(t){let e=t.target;this.dt2.filterGlobal(e.value,"contains")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-central-officers"]],viewQuery:function(e,n){if(e&1&&X(Zd,5),e&2){let o;L(o=U())&&(n.dt2=o.first)}},standalone:!0,features:[I],decls:13,vars:11,consts:[["dt2",""],[1,"flex","justify-content-between","align-items-center","flex-wrap","mb
7-3"],[1,"lft-wrap"],[1,"heading"],["styleClass","dashboard-wrap"],["id","commonScrollTo",1,"grid","mx-0"],[1,"col-12"],["dataKey","ngoId","styleClass","p-datatable-gridlines","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries",3,"value","rows","tableStyle","paginator","lazy","totalRecords","globalFilterFields","loading","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"flex","align-items-center","flex-wrap","text-right","justify-content-end"],[1,"flex","align-items-center","gap-3"],[1,"search-npo"],["pInputText","","id","uniqueId",3,"ngModelChange","input","ngModel"],["for","uniqueId"],[1,"pi","pi-search"],["pSortableColumn","ministry"],["field","ministry"],["pSortableColumn","nodal_officer"],["field","nodal_officer"],[3,"innerHTML"],[2,"white-space","pre-line"],[2,"white-space","nowrap",3,"innerHTML"],["colspan","5",1,"text-center","py-8","custom-error"],["src","assets/images/no_found.png","alt","no_data",1,"mx-auto"],[1,"mt-4"]],template:function(e,n){e&1&&(a(0,"div",1)(1,"div",2)(2,"h2",3),d(3,"Central Ministries / Departments Nodal Officers"),r()()(),a(4,"p-card",4)(5,"div",5)(6,"div",6)(7,"p-table",7,0),m(9,tc,7,1,"ng-template",8)(10,ic,13,0,"ng-template",9)(11,lc,11,5,"ng-template",10)(12,sc,5,0,"ng-template",11),r()()()()),e&2&&(l(7),p("value",n.data)("rows",10)("tableStyle",F(9,Xd))("paginator",n.data.length>0)("lazy",!1)("totalRecords",n.data.length)("globalFilterFields",F(10,ec))("loading",n.loading)("first",0))},dependencies:[Te,W,Y,ce,de,ct,pt,R,Z,J,H,ie,Q,ye,Ie,Ne],styles:["[_nghost-%COMP%]     .search-npo{position:relative;width:330px}[_nghost-%COMP%]     .search-npo i{height:10px;position:absolute;top:0;bottom:0;margin:auto;right:15px}[_nghost-%COMP%]     .p-datatable-header{background-color:#fff;border:0;padding:0 0 20px}[_nghost-%COMP%]     .p-datatable-header .p-card{border-radius:5px}[_nghost-%COMP%]     .p-datatable-header .p-card h3{font-size:.9em;font-weight:500;text-align:left}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span{font-size:1.2em}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.npo{color:red}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.ministries{color:#6b8ed8}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.schemes{color:#af877d}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.grant{color:#9ea766}[_nghost-%COMP%]     tr th{background-color:#fcf8e5;font-size:.85em;font-weight:600}[_nghost-%COMP%]     tr td{font-size:.85em;font-weight:500}[_nghost-%COMP%]     tr td span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[_nghost-%COMP%]     tr td:last-child span{color:#ff7043}[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:48px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:auto}}[_nghost-%COMP%]     .custom-error h2{font-size:1.2em;line-height:1.8em}[_nghost-%COMP%]     .custom-error h2 span{font-size:.9em}[_nghost-%COMP%]     .p-multiselect-token{border-radius:5px;background-color:#fff;border:1px solid #FF7043}[_nghost-%COMP%]     .p-multiselect-token span, [_nghost-%COMP%]     .p-multiselect-token svg{color:#ff7043}[_nghost-%COMP%]     .p-multiselect-token span{font-size:.9em}[_nghost-%COMP%]     .back-btn span{font-size:.85em}[_nghost-%COMP%]     .custom-table tr th{background-color:transparent;font-size:1em;font-weight:700}[_nghost-%COMP%]     .custom-table tr td{background-color:#f5f5f5;padding:15px 10px;font-size:.9em}[_nghost-%COMP%]     .custom-table tr td span{display:inline-block;line-height:1.8em;vertical-align:middle}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper{color:#fff}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper svg{width:30px;height:30px}"]})};var dc=["dt2"],cc=()=>({"min-width":"50rem","min-height":"300px"}),pc=()=>["ministry","nodal_officer","email","phone"];function mc(i,t){if(i&1){let e=x();a(0,"div",12)(1,"div",13)(2,"p-floatLabel",14)(3,"input",15),j("ngModelChange",function(o){h(e);let c=s();return z(c.searchValue,o)||(c.searchValue=o),f(o)}),C("input",function(o){h(e);let c=s();
7return f(c.onGlobalFilter(o))}),r(),a(4,"label",16),d(5,"Type here to search"),r(),_(6,"i",17),r()()()}if(i&2){let e=s();l(3),G("ngModel",e.searchValue)}}function _c(i,t){i&1&&(a(0,"tr")(1,"th"),d(2,"Sr. No."),r(),a(3,"th",18),d(4," State / UT Name "),_(5,"p-sortIcon",19),r(),a(6,"th",20),d(7," Nodal Officer Name "),_(8,"p-sortIcon",21),r(),a(9,"th"),d(10,"Email ID"),r(),a(11,"th"),d(12,"Phone Number"),r()())}function uc(i,t){if(i&1&&_(0,"td",22),i&2){let e=s().$implicit;p("innerHTML",e.nodal_officer,tt)}}function hc(i,t){i&1&&(a(0,"td"),d(1,"--"),r())}function fc(i,t){if(i&1&&_(0,"td",24),i&2){let e=s().$implicit;p("innerHTML",e==null?null:e.phone,tt)}}function gc(i,t){i&1&&(a(0,"td"),d(1,"--"),r())}function Cc(i,t){if(i&1&&(a(0,"tr")(1,"td"),d(2),r(),a(3,"td"),d(4),k(5,"titlecase"),r(),m(6,uc,1,1,"td",22)(7,hc,2,0,"td"),a(8,"td",23),d(9),r(),m(10,fc,1,1,"td",24)(11,gc,2,0,"td"),r()),i&2){let e=t.$implicit,n=t.rowIndex;l(2),y(n+1),l(2),y(M(5,5,e==null?null:e.ministry)||"--"),l(2),g(e.nodal_officer?6:7),l(3),y((e==null?null:e.email)||"--"),l(),g(e.phone?10:11)}}function bc(i,t){i&1&&(a(0,"tr")(1,"td",25),_(2,"img",26),a(3,"h2",27),d(4,"No Data Found"),r()()())}var Si=class i{loading=!0;searchValue;dt2;data=[{ministry:"Assam",nodal_officer:"Ms. Juri Gogoi ACS Secretary to the Government of Assam Transformation& Development Department, Janata Bhawan, Dispur, Assam",email:"[email protected]",phone:9864046349},{ministry:"Bihar",nodal_officer:null,email:"[email protected]",phone:null},{ministry:"Chhattisgarh",nodal_officer:"Sh. N. Buliwal, Joint Director, Directorate of Economic and Statistical Planning Economic & Statistical Department",email:null,phone:9425504079},{ministry:"Goa",nodal_officer:"Shri. Sagar Verlekar, Directorate of Women and Child Development",email:"[email protected]",phone:7774847350},{ministry:"Haryana",nodal_officer:"Naresh Kumar, Deputy Director",email:"[email protected]",phone:9991555999},{ministry:"Himachal Pradesh",nodal_officer:"Sh. Kuldeep Kumar Research Officer",email:null,phone:"8219375645<br/>0177-2880798"}
7,{ministry:"Kerala",nodal_officer:"Md. Shafiq Director PIEMD",email:null,phone:9871486436},{ministry:"Maharashtra",nodal_officer:"Vijayender Tiwari",email:null,phone:null},{ministry:"Manipur",nodal_officer:"Dr. R.K. Radhesana Devi Director, Planning Dept., Government of Manipur Address Babupara, Near State Guest House, Imphal-West, Manipur 795001",email:"[email protected]",phone:9862585887},{ministry:"Meghalaya",nodal_officer:"Shri.Gameliel Lambert Chyne Mylliem, MCS Assistant Commissioner, Office of the SDO(C) Amlarem Sub-Division.",email:"[email protected]",phone:8527843078},{ministry:"Mizoram",nodal_officer:"Sh. Isak Lalmuanpuia Chuaungo Deputy Adviser cum Deputy Secretary",email:"[email protected]",phone:9862153660},{ministry:"Odisha",nodal_officer:"Dr. Yedulla Vijay Additional secretary / Shri Bikas Ranjan Bharthi",email:null,phone:"9032567645<br/>7008187340"},{ministry:"Punjab",nodal_officer:"Smt. Anupam Director",email:"[email protected]",phone:9417869747},{ministry:"Rajasthan",nodal_officer:"Brajesh ji",email:null,phone:8094561590},{ministry:"Tamil Nadu",nodal_officer:"Sherya P Singh IAS",email:null,phone:9444094205},{ministry:"Telangana",nodal_officer:"Smt. A. Aurnav",email:null,phone:955938488},{ministry:"Tripura",nodal_officer:"Sri Ashok debbarma Shri Naithok Jamatia",email:null,phone:8787701433},{ministry:"Uttarakhand",nodal_officer:"Dr. Naresh Chandra Programmer",email:"[email protected]",phone:8630068269},{ministry:"Uttar Pradesh",nodal_officer:"Chandan Singh Director",email:"[email protected]",phone:9559694060},{ministry:"West Bengal",nodal_officer:"Abhijit Das Gupta Asst. Dir.",email:null,phone:9674237751},{ministry:"Chandigarh",nodal_officer:"Sh. Ranjit Verma, Assistant Research Officer",email:null,phone:7986424704},{ministry:"Jammu & Kashmir",nodal_officer:"Mr. Mohd. Naseeb, JKAS Deputy Secretary, Social Welfare Department </br></br>Rehana Bijli Add. Secretary",email:null,phone:"9622871763<br/>9419165230"}];ngOnInit(){this.data=this.data.sort((t,e)=>t?.ministry?.localeCompare(e?.ministry)),this.loading=!1}onGlobalFilter(t){let e=t.target;this.dt2.filterGlobal(e.value,"contains")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=N({type:i,selectors:[["app-state-officers"]],viewQuery:function(e,n){if(e&1&&X(dc,5),e&2){let o;L(o=U())&&(n.dt2=o.first)}},standalone:!0,features:[I],decls:13,vars:11,consts:[["dt2",""],[1,"flex","justify-content-between","align-items-center","flex-wrap","mb-3"],[1,"lft-wrap"],[1,"heading"],["styleClass","dashboard-wrap"],["id","commonScrollTo",1,"grid","mx-0"],[1,"col-12"],["dataKey","ngoId","styleClass","p-datatable-gridlines","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries",3,"value","rows","tableStyle","paginator","lazy","totalRecords","globalFilterFields","loading","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"flex","align-items-center","flex-wrap","text-right","justify-content-end"],[1,"flex","align-items-center","gap-3"],[1,"search-npo"],["pInputText","","id","uniqueId",3,"ngModelChange","input","ngModel"],["for","uniqueId"],[1,"pi","pi-search"],["pSortableColumn","ministry",2,"white-space","nowrap"],["field","ministry"],["pSortableColumn","nodal_officer"],["field","nodal_officer"],[3,"innerHTML"],[2,"white-space","pre-line"],[2,"white-space","nowrap",3,"innerHTML"],["colspan","5",1,"text-center","py-8","custom-error"],["src","assets/images/no_found.png","alt","no_data",1,"mx-auto"],[1,"mt-4"]],template:function(e,n){e&1&&(a(0,"div",1)(1,"div",2)(2,"h2",3),d(3,"States / UTs Nodal Officers"),r()()(),a(4,"p-card",4)(5,"div",5)(6,"div",6)(7,"p-table",7,0),m(9,mc,7,1,"ng-template",8)(10,_c,13,0,"ng-template",9)(11,Cc,12,7,"ng-template",10)(12,bc,5,0,"ng-template",11),r()()()()),e&2&&(l(7),p("value",n.data)("rows",10)("tableStyle",F(9,cc))("paginator",n.data.length>0)("lazy",!1)("totalRecords",n.data.length)("globalFilterFields",F(10,pc))("loading",n.loading)("first",0))},dependencies:[Te,W,Y,ce,de,ct,pt,R,Ot,Z,J,H,ie,Q,ye,Ie,Ne],styles:["[_nghost-%COMP%]     .search-npo{position:relative;width:330px}[_nghost-%COMP%]     .search-npo i{height:10px;position:absolute;top:0;bottom:0;margin:auto;right:15px}[_nghost-%COMP%]     .p-datatable-header{background-color:#fff;border:0;padding:0 0 20px}[_nghost-%COMP%]     .p-datatable-header .p-card{border-radius:5px}[_nghost-%COMP%]     .p-datatable-header .p-card h3{font-size:.9em;font-weight:500;text-align:left}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span{font-size:1.2em}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.npo{color:red}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.ministries{color:#6b8ed8}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.schemes{color:#af877d}[_nghost-%COMP%]     .p-datatable-header .p-card h3 span.grant{color:#9ea766}[_nghost-%COMP%]     tr th{background-color:#fcf8e5;font-size:.85em;font-weight:600}[_nghost-%COMP%]     tr td{font-size:.85em;font-weight:500}[_nghost-%COMP%]     tr td span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[_nghost-%COMP%]     tr td:last-child span{color:#ff7043}[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:48px}@media only screen and (max-width: 767px){[_nghost-%COMP%]     #commonScrollTo .primary-btn{min-height:auto}}[_nghost-%COMP%]     .custom-error h2{font-size:1.2em;line-height:1.8em}[_nghost-%COMP%]     .custom-error h2 span{font-size:.9em}[_nghost-%COMP%]     .p-multiselect-token{border-radius:5px;background-color:#fff;border:1px solid #FF7043}[_nghost-%COMP%]     .p-multiselect-token span, [_nghost-%COMP%]     .p-multiselect-token svg{color:#ff7043}[_nghost-%COMP%]     .p-multiselect-token span{font-size:.9em}[_nghost-%COMP%]     .back-btn span{font-size:.85em}[_nghost-%COMP%]     .custom-table tr th{background-color:transparent;font-size:1em;font-weight:700}[_nghost-%COMP%]     .custom-table tr td{background-color:#f5f5f5;padding:15px 10px;font-size:.9em}
7[_nghost-%COMP%]     .custom-table tr td span{display:inline-block;line-height:1.8em;vertical-align:middle}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper{color:#fff}[_nghost-%COMP%]     .p-datatable-loading-overlay .p-icon-wrapper svg{width:30px;height:30px}"]})};var yc=[{path:"",component:ti,children:[{path:"",pathMatch:"full",redirectTo:"dashboard"},{path:"dashboard",component:ni},{path:"search-ngo",component:ai},{path:"ngo-enrollment",component:mi},{path:"grant-allocation-npo",component:li},{path:"yearly-grant",component:pi},{path:"grant-by-ministries",component:si},{path:"grant-by-schemes",component:di},{path:"grant-by-states",component:ci},{path:"npo-wise-grant",component:_i},{path:"unblacklisted-npo",component:Ci},{path:"duplicate-members",component:bi},{path:"blacklisted-npo",component:hi,canActivate:[Bi],data:{role:"BLACKLIST_VEW"}},{path:"blacklisted-npo/find",component:gi,canActivate:[Bi],data:{role:"BLACKLIST"}},{path:"reset/:type",component:Sn},{path:"sector-wise-npos",component:yi},{path:"npo-wise-sector",component:xi},{path:"central-officers",component:vi},{path:"state-officers",component:Si}]}],wi=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=ue({type:i});static \u0275inj=_e({imports:[yt.forChild(yc),yt]})};var Fn=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=ue({type:i});static \u0275inj=_e({imports:[R,wi]})};export{Fn as AdminModule};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.