1"use strict";(self.webpackChunkmyApp=self.webpackChunkmyApp||[]).push([[980],{1980:(N,f,m)=>{m.r(f),m.d(f,{PaymentsOverModule:()=>C});var p=m(4755),y=m(4209),i=m(5030),e=m(9523),b=m(5120);let M=(()=>{class n{transform(t){return null==t?"":("string"==typeof t?parseFloat(t):t).toLocaleString("en-IN")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"indianCurrency",type:n,pure:!0}),n})();function O(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){const s=e.CHM(t).$implicit,d=e.oxw();return e.KtG(d.setActiveYear(s.year))}),e._uU(1),e.qZA()}if(2&n){const t=r.$implicit,a=e.oxw();e.ekj("active",t.year===a.activeYear),e.xp6(1),e.hij(" ",t.year," ")}}function _(n,r){if(1&n&&(e.TgZ(0,"option",17),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function P(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.ALo(9,"indianCurrency"),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.qZA()()),2&n){const t=r.$implicit,a=r.index;e.xp6(2),e.Oqu(a+1),e.xp6(2),e.Oqu(t.newdate),e.xp6(2),e.Oqu(t.partyName),e.xp6(2),e.Oqu(e.lcZ(9,5,t.amount)),e.xp6(3),e.Oqu(t.particulars)}}function Z(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td",18),e._uU(2),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.AsE(" No payments found for ",t.activeMonth," ",t.activeYear," ")}}const A=[{path:"",component:(()=>{class n{constructor(t){this.dataservice=t,this.basePaymentData=[],this.paymentRes=[],this.dropDownFilter=new i.cw({Selected_Month:new i.NI("")})}ngOnInit(){this.dataservice.GetMcapayment().subscribe(t=>{let a;a=t.paymentList,this.years=t.Years;var o=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];a.forEach(l=>{const w=l.paymentDate,[T,Y,F]=w.split("-");l.formattedDate=`${F}-${Y}-${T}`;let h=new Date(l.formattedDate),u=h.getDate(),v=h.getMonth(),D=o[v],S=s[v],g=h.getFullYear();u<10&&(u="0"+u),l.newdate=u+"-"+S+"-"+g,l.Year_new=g,l.Month_new=D,this.basePaymentData=a,this.setActiveYear("2026")})})}setActiveYear(t){this.activeYear=t;let a=this.basePaymentData.filter(c=>c.Year_new==t);this.availableMonths=[],a.forEach(c=>{this.availableMonths.push(c.Month_new)}),this.availableMonths=[...new Set(this.availableMonths)];let o=["January","February","March","April","May","June","July","August","September","October","November","December"];this.availableMonths=this.availableMonths.sort(this.years[0].year==t?(c,l)=>o.indexOf(l)-o.indexOf(c):(c,l)=>o.indexOf(c)-o.indexOf(l)),this.activeMonth=this.availableMonths[0],this.dropDownFilter.get("Selected_Month")?.setValue(this.availableMonths[0]),this.filteredPayments()}setActiveMonth(){this.filteredPayments()}filteredPayments(){let o,t=this.basePaymentData,a=this.activeYear;o=this.dropDownFilter.get("Selected_Month")?.value,this.activeMonth=o,null!=a&&""!=a&&(t=t.filter(s=>s.Year_new==a)),null!=o&&""!=o&&(t=t.filter(s=>s.Month_new==o)),this.paymentRes=t}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(b.i))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-payments-over"]],decls:32,vars:5,consts:[["id","payments-made",1,"static-content"],[1,"indPage-Header"],[1,"header-wrapper"],[1,"wrapper"],[1,"innerpages"],[1,"staticTabWrap"],[1,"tab-header"],["class","tab-button",3,"active","click",4,"ngFor","ngForOf"],[1,"month-dropdown",3,"formGroup"],["for","monthSelect"],["id","monthSelect","formControlName","Selected_Month",1,"month-select",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"tableWrap"],[1,"table-responsive","division-table"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"tab-button",3,"click"],[3,"value"],["colspan","5",2,"text-align","center","color","gray"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),e._uU(4,"Payments made above Rs 5 lakhs"),e.qZA()()(),e.TgZ(5,"div",3)(6,"section",4)(7,"div",5)(8,"div",6),e.YNc(9,O,2,3,"button",7),e.qZA(),e.TgZ(10,"div",8)(11,"label",9),e._uU(12,"Select Month:"),e.qZA(),e.TgZ(13,"select",10),e.NdJ("change",function(){return a.setActiveMonth()}),e.YNc(14,_,2,2,"option",11),e.qZA()(),e.TgZ(15,"div",12)(16,"table",13)(17,"thead")(18,"tr")(19,"th"),e._uU(20,"S.no"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Payment Date"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Name of the party/Supplier"),e.qZA(),e.TgZ(25,"th"),e._uU(26,"Amount in Rs"),e.qZA(),e.TgZ(27,"th"),e._uU(28,"Particulars/Details"),e.qZA()()(),e.TgZ(29,"tbody"),e.YNc(30,P,12,7,"tr",14),e.YNc(31,Z,3,2,"tr",15),e.qZA()()()()()()()),2&t&&(e.xp6(9),e.Q6J("ngForOf",a.years),e.xp6(1),e.Q6J("formGroup",a.dropDownFilter),e.xp6(4),e.Q6J("ngForOf",a.availableMonths),e.xp6(16),e.Q6J("ngForOf",a.paymentRes),e.xp6(1),e.Q6J("ngIf",0==a.paymentRes.length))},dependencies:[p.sg,p.O5,i.YN,i.Kr,i.EJ,i.JJ,i.JL,i.sg,i.u,M],styles:[".month-dropdown[_ngcontent-%COMP%]{margin-block-end:1rem;font-size:13px}.month-select[_ngcontent-%COMP%]{padding:.4rem 1rem .4rem .4rem;border-radius:4px;border:1px solid #ccc;margin-left:8px;font-weight:700}.tab-header[_ngcontent-%COMP%]{margin-bottom:12px;display:flex;justify-content:center;margin-block-end:2rem}.tab-button[_ngcontent-%COMP%]{padding:8px 16px;margin-right:8px;
1cursor:pointer;border:1px solid #ccc;background:#f4f4f4;border-radius:4px;font-family:meutasmedium;font-size:13px}.tab-button.active[_ngcontent-%COMP%]{color:var(--highlight-color);background-color:#1a297f;font-family:meutassemi_bold;font-size:13px;border-color:#007bff}"]}),n})()}];let x=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[y.Bz.forChild(A),y.Bz]}),n})(),C=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[p.ez,x,i.UX,i.u5]}),n})()}}]);
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.