HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/smarthr-co-in/demo/angular/template/chunk-BIPJTVQ6.js
import{a as X}from"./chunk-JKERXUEK.js";import{a as q,b as G,c as J}from"./chunk-NXA7GLYB.js";import{a as K,b as Q}from"./chunk-PWMQ74RC.js";import{a as $}from"./chunk-PDL2MCPW.js";import{a as U}from"./chunk-VTBOPFJE.js";import{a as H}from"./chunk-YKW35LPN.js";import"./chunk-JAZSQYD7.js";import{a as B}from"./chunk-RFJHVWQO.js";import"./chunk-KT3425N4.js";import"./chunk-L5US5TIY.js";import"./chunk-KLR3GVJ4.js";import"./chunk-ROUB2DV5.js";import"./chunk-ZRYDU45O.js";import"./chunk-D2NXOKOR.js";import"./chunk-3OLHRZ2P.js";import"./chunk-33OPMCTI.js";import"./chunk-OH3XPIE7.js";import"./chunk-D5XKRYC7.js";import"./chunk-PYXABXFS.js";import"./chunk-RAVHNKJU.js";import"./chunk-WT44ZQWY.js";import"./chunk-GZFJ7A3T.js";import"./chunk-3NNWUWWG.js";import"./chunk-4FNTF56S.js";import{d as A,h as L,m as R,q as O,r as j,s as F,y as W}from"./chunk-7PPOABPU.js";import{a as V}from"./chunk-ILLDEPHH.js";import{d as T,e as k}from"./chunk-K3YFDFGL.js";import"./chunk-WA2UGD5L.js";import"./chunk-BT37DHWM.js";import{Ac as x,Cc as M,Fc as z,Hd as N,Mb as f,Nb as v,Pb as P,Qb as E,Rb as w,Sb as c,Tb as e,Ub as t,Vb as d,ab as C,ac as I,cc as b,ec as u,fb as m,pa as g,qa as S,sb as h,tc as a,uc as p,yb as _,yc as D,zc as y}from"./chunk-AQ27DSQO.js";import"./chunk-EQDQRRRY.js";var ee=()=>({standalone:!0});function te(s,n){if(s&1){let i=I();e(0,"select",35),x("ngModelChange",function(o){g(i);let r=u();return y(r.pageSize,o)||(r.pageSize=o),S(o)}),b("ngModelChange",function(){g(i);let o=u();return S(o.changePageSize(o.pageSize))}),e(1,"option",36),a(2,"10"),t(),e(3,"option",37),a(4,"25"),t(),e(5,"option",38),a(6,"50"),t(),e(7,"option",39),a(8,"100"),t()()}if(s&2){let i=u();D("ngModel",i.pageSize)}}function ae(s,n){if(s&1&&(e(0,"tr")(1,"td")(2,"a",40),a(3),t()(),e(4,"td")(5,"div",41)(6,"a",42),d(7,"img",43),t(),e(8,"div",44)(9,"h6",45)(10,"a",46),a(11),t()(),e(12,"span",47),a(13),t()()()(),e(14,"td"),a(15),t(),e(16,"td"),a(17),t(),e(18,"td"),a(19),t(),e(20,"td"),a(21),t()()),s&2){let i=n.$implicit,l=u();m(2),c("routerLink",l.routes.invoiceDetails),m(),p(i.Invoice_ID),m(4),c("src",M("assets/img/users/",i==null?null:i.Image),C),m(4),p(i.Client_Name),m(2),p(i.Roll),m(2),p(i.Company_Name),m(2),p(i.Payment_Type),m(2),p(i.Paid_Date),m(2),p(i.Paid_Amount)}}function ie(s,n){s&1&&(e(0,"tr")(1,"td",48)(2,"h5",49),a(3,"No matching records found"),t()()())}var Y=class s{constructor(n,i,l){this.data=n;this.router=i;this.pagination=l;this.breadCrumbItems=[{label:"HR"},{label:"InvoicePaymentDetails List",active:!0}],this.data.getPayment().subscribe(o=>{this.actualData=o.data,this.pagination.tablePageSize.subscribe(r=>{this.router.url==this.routes.payments&&(this.getTableData({skip:r.skip,limit:r.limit}),this.pageSize=r.pageSize)})})}routes=V;initChecked=!1;pageSize=10;tableData=[];tableDataCopy=[];actualData=[];currentPage=1;skip=0;limit=this.pageSize;serialNumberArray=[];totalData=0;showFilter=!1;pageSelection=[];dataSource;searchDataValue="";breadCrumbItems=[];password=[!1,!1,!1,!1];isOpen=!1;togglePassword(n){this.password[n]=!this.password[n]}openSuccessModal(){this.isOpen=!this.isOpen}ngOnDestroy(){this.isOpen=!1}getTableData(n){this.data.getPayment().subscribe(i=>{this.tableData=[],this.tableDataCopy=[],this.serialNumberArray=[],this.totalData=i.totalData,i.data.map((l,o)=>{let r=o+1;o>=n.skip&&r<=n.limit&&(l.sNo=r,this.tableData.push(l),this.tableDataCopy.push(l),this.serialNumberArray.push(r))}),this.dataSource=new K(this.actualData),this.pagination.calculatePageSize.next({totalData:this.totalData,pageSize:this.pageSize,tableData:this.tableData,tableDataCopy:this.tableDataCopy,serialNumberArray:this.serialNumberArray})})}row=!0;searchData(n){this.searchDataValue=n.trim().toLowerCase(),this.dataSource.filter=this.searchDataValue,this.tableData=this.dataSource.filteredData,this.row=this.tableData.length>0,this.searchDataValue!==""?this.pagination.calculatePageSize.next({totalData:this.tableData.length,pageSize:this.pageSize,tableData:this.tableData,serialNumberArray:this.tableData.map((i,l)=>l+1)}):this.pagination.calculatePageSize.next({totalData:this.totalData,pageSize:this.pageSize,tableData:this.tableData,serialNumberArray:this.serialNumberArray})}sortData(n){let i=this.tableData.slice();!n.active||n.direction===""?this.tableData=i:this.tableData=i.sort((l,o)=>{let r=l[n.active],Z=o[n.active];return(r<Z?-1:1)*(n.direction==="asc"?1:-1)})}changePageSize(n){this.pageSelection=[],this.limit=n,this.skip=0,this.currentPage=1,this.pagination.tablePageSize.next({skip:this.skip,limit:this.limit,pageSize:this.pageSize})}selectAll(n){n?this.tableData.forEach(i=>{i.isSelected=!1}):this.tableData.forEach(i=>{i.isSelected=!0})}static \u0275fac=function(i){return new(i||s)(h(B),h(T),h(Q))};static \u0275cmp=_({type:s,selectors:[["app-payments"]],decls:93,vars:6,consts:[[1,"content"],[1,"d-md-flex","d-block","align-items-center","justify-content-between","page-breadcrumb","mb-3"],["title","Payments",3,"breadcrumbItems"],[1,"d-flex","my-xl-auto","right-content","align-items-center","flex-wrap"],[1,"mb-2"],[1,"dropdown"],["href","javascript:void(0);","data-bs-toggle","dropdown",1,"dropdown-toggle","btn","btn-white","d-inline-flex","align-items-center"],[1,"ti","ti-file-export","me-1"],[1,"dropdown-menu","dropdown-menu-end","p-3"],["href","javascript:void(0);",1,"dropdown-item","rounded-1"],[1,"ti","ti-file-type-pdf","me-1"],[1,"ti","ti-file-type-xls","me-1"],[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between","flex-wrap","row-gap-3"],[1,"d-flex","my-xl-auto","right-content","align-items-center","flex-wrap","row-gap-3"],[1,"me-3"],[1,"dropdown","me-3"],[1,"card-body","p-0"],[1,"custom-datatable-filter"],[1,"dataTables_wrapper","dt-bootstrap5","no-footer"],[1,"row"],[1,"col-sm-12","col-md-6"],[1,"dataTables_length"],[1,"form-select","form-select-sm",3,"ngModel"],["id","DataTables_Table_0_filter",1,"dataTables_filter"],["type","search","placeholder","Search...",1,"form-control","form-control-sm",3,"ngModelChange","ngModel","ngModelOptions"],[1,"table-responsive"],["matSort","",1,"mat-sort","table","datanew","table-center","datatable","dataTable","mb-0",3,"matSortChange"],[1,"thead-light"],["mat-sort-header","Invoice_ID"],["mat-sort-header","Client_Name"],["mat-sort-header","Company_Name"],["mat-sort-header","Payment_Type"],["mat-sort-header","Paid_Date"],["mat-sort-header","Paid_Amount"],[1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","10"],["value","25"],["value","50"],["value","100"],[1,"link-info",3,"routerLink"],[1,"d-flex","align-items-center","file-name-icon"],["href","javascript:void(0);",1,"avatar","avatar-md","avatar-rounded"],["alt","img",1,"img-fluid",3,"src"],[1,"ms-2"],[1,"fw-medium"],["href","javascript:void(0);"],[1,"d-block","mt-1"],["colspan","7"],[1,"no-record"]],template:function(i,l){i&1&&(e(0,"div",0)(1,"div",1),d(2,"app-breadcrumbs",2),e(3,"div",3)(4,"div",4)(5,"div",5)(6,"a",6),d(7,"i",7),a(8,"Export "),t(),e(9,"ul",8)(10,"li")(11,"a",9),d(12,"i",10),a(13,"Export as PDF"),t()(),e(14,"li")(15,"a",9),d(16,"i",11),a(17,"Export as Excel "),t()()()()(),d(18,"app-collapse-header"),t()(),e(19,"div",12)(20,"div",13)(21,"h5"),a(22,"Payment List"),t(),e(23,"div",14)(24,"div",15),d(25,"app-date-range-picker"),t(),e(26,"div",16)(27,"a",6),a(28," $0.00 - $00 "),t(),e(29,"ul",8)(30,"li")(31,"a",9),a(32,"$0.00 - $00"),t()(),e(33,"li")(34,"a",9),a(35,"$3000"),t()(),e(36,"li")(37,"a",9),a(38,"$2500"),t()()()(),e(39,"div",5)(40,"a",6),a(41," Sort By : Last 7 Days "),t(),e(42,"ul",8)(43,"li")(44,"a",9),a(45,"Recently Added"),t()(),e(46,"li")(47,"a",9),a(48,"Ascending"),t()(),e(49,"li")(50,"a",9),a(51,"Desending"),t()(),e(52,"li")(53,"a",9),a(54,"Last Month"),t()(),e(55,"li")(56,"a",9),a(57,"Last 7 Days"),t()()()()()(),e(58,"div",17)(59,"div",18)(60,"div",19)(61,"div",20)(62,"div",21)(63,"div",22)(64,"label"),a(65," Row Per Page "),f(66,te,9,1,"select",23),a(67," Entries "),t()()(),e(68,"div",21)(69,"div",24)(70,"label")(71,"input",25),x("ngModelChange",function(r){return y(l.searchDataValue,r)||(l.searchDataValue=r),r}),b("ngModelChange",function(){return l.searchData(l.searchDataValue)}),t()()()()(),e(72,"div",26)(73,"table",27),b("matSortChange",function(r){return l.sortData(r)}),e(74,"thead",28)(75,"tr")(76,"th",29),a(77,"Invoice ID"),t(),e(78,"th",30),a(79,"Client Name"),t(),e(80,"th",31),a(81,"Company Name"),t(),e(82,"th",32),a(83,"Payment Type"),t(),e(84,"th",33),a(85,"Paid Date"),t(),e(86,"th",34),a(87,"Paid Amount"),t()()(),e(88,"tbody"),E(89,ae,22,10,"tr",null,P),f(91,ie,4,0,"tr"),t()()(),d(92,"app-custom-pagination"),t()()()()()),i&2&&(m(2),c("breadcrumbItems",l.breadCrumbItems),m(64),v(l.tableData.length>0?66:-1),m(5),D("ngModel",l.searchDataValue),c("ngModelOptions",z(5,ee)),m(18),w(l.tableData),m(2),v(l.tableData.length===0?91:-1))},dependencies:[N,$,H,W,j,F,A,O,L,R,J,q,G,X,U,k],encapsulation:2})};export{Y as PaymentsComponent};