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-BDZ5TAOG.js
import{a as oe}from"./chunk-JKERXUEK.js";import{a as ie,b as ae,c as ne}from"./chunk-NXA7GLYB.js";import{a as re,b as le}from"./chunk-PWMQ74RC.js";import{a as K,b as Z}from"./chunk-U5MFMN2C.js";import{a as X,b as q}from"./chunk-OPRQFVPE.js";import{a as te}from"./chunk-PDL2MCPW.js";import{a as ee}from"./chunk-YKW35LPN.js";import"./chunk-JAZSQYD7.js";import{a as H}from"./chunk-RFJHVWQO.js";import{f as G}from"./chunk-QTTEMGWW.js";import"./chunk-VZSYGL77.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-2OYBQGHU.js";import"./chunk-33OPMCTI.js";import"./chunk-OH3XPIE7.js";import"./chunk-D5XKRYC7.js";import"./chunk-PYXABXFS.js";import"./chunk-RAVHNKJU.js";import{f as U,g as Y,h as J}from"./chunk-WT44ZQWY.js";import"./chunk-GZFJ7A3T.js";import"./chunk-3NNWUWWG.js";import"./chunk-4FNTF56S.js";import{b as N,d as j,h as L,m as W,q as B,r as O,s as $,y as Q}from"./chunk-7PPOABPU.js";import{a as I}from"./chunk-ILLDEPHH.js";import{d as F}from"./chunk-K3YFDFGL.js";import"./chunk-WA2UGD5L.js";import"./chunk-BT37DHWM.js";import{Ac as g,Cc as V,Fc as w,Hd as z,Mb as x,Nb as C,Pb as P,Qb as k,Rb as M,Sb as c,Tb as t,Ub as e,Vb as m,ab as D,ac as _,cc as b,ec as S,fb as d,ic as R,jc as A,kc as T,pa as f,qa as y,sb as v,tc as i,uc as p,yb as E,yc as h,zc as u}from"./chunk-AQ27DSQO.js";import"./chunk-EQDQRRRY.js";var se=["chart"],pe=()=>({adaptivePosition:!0}),ce=()=>({standalone:!0});function he(s,o){if(s&1){let n=_();t(0,"select",87),g("ngModelChange",function(l){f(n);let r=S();return u(r.pageSize,l)||(r.pageSize=l),y(l)}),b("ngModelChange",function(){f(n);let l=S();return y(l.changePageSize(l.pageSize))}),t(1,"option",88),i(2,"10"),e(),t(3,"option",89),i(4,"25"),e(),t(5,"option",90),i(6,"50"),e(),t(7,"option",91),i(8,"100"),e()()}if(s&2){let n=S();h("ngModel",n.pageSize)}}function ue(s,o){if(s&1){let n=_();t(0,"tr")(1,"td")(2,"div",92)(3,"input",93),g("ngModelChange",function(l){let r=f(n).$implicit;return u(r.isSelected,l)||(r.isSelected=l),y(l)}),e()()(),t(4,"td"),i(5),e(),t(6,"td")(7,"div",94)(8,"a",95),m(9,"img",96),e(),t(10,"div",97)(11,"h6",98)(12,"a",99),i(13),e()(),t(14,"span",100),i(15),e()()()(),t(16,"td"),i(17),e(),t(18,"td"),i(19),e(),t(20,"td"),i(21),e(),t(22,"td"),i(23),e()()}if(s&2){let n=o.$implicit;d(3),h("ngModel",n.isSelected),d(2),p(n.InvoiceID),d(4),c("src",V("assets/img/users/",n==null?null:n.Image),D),d(4),p(n.ClientName),d(2),p(n.Role),d(2),p(n.CompanyName),d(2),p(n.PaymentType),d(2),p(n.PaidDate),d(2),p(n.PaidAmount)}}function ge(s,o){s&1&&(t(0,"tr")(1,"td",101)(2,"h5",102),i(3,"No matching records found"),e()()())}K.register(...Z);var me=class s{constructor(o,n,a){this.data=o;this.router=n;this.pagination=a;this.breadCrumbItems=[{label:"HR"},{label:"Payment Report",active:!0}],this.data.getpaymentReport().subscribe(l=>{this.actualData=l.data,this.pagination.tablePageSize.subscribe(r=>{this.router.url==this.routes.paymentsreport&&(this.getTableData({skip:r.skip,limit:r.limit}),this.pageSize=r.pageSize)})}),this.maxDate.setDate(this.maxDate.getDate()+7),this.bsRangeValue=[this.bsValue,this.maxDate]}routes=I;initChecked=!1;pageSize=10;tableData=[];tableDataCopy=[];actualData=[];currentPage=1;skip=0;limit=this.pageSize;serialNumberArray=[];totalData=0;showFilter=!1;pageSelection=[];dataSource;searchDataValue="";breadCrumbItems=[];bsValue=new Date;bsRangeValue;maxDate=new Date;payment_chart;chart;getTableData(o){this.data.getpaymentReport().subscribe(n=>{this.tableData=[],this.tableDataCopy=[],this.serialNumberArray=[],this.totalData=n.totalData,n.data.map((a,l)=>{let r=l+1;l>=o.skip&&r<=o.limit&&(a.sNo=r,this.tableData.push(a),this.tableDataCopy.push(a),this.serialNumberArray.push(r))}),this.dataSource=new re(this.actualData),this.pagination.calculatePageSize.next({totalData:this.totalData,pageSize:this.pageSize,tableData:this.tableData,tableDataCopy:this.tableDataCopy,serialNumberArray:this.serialNumberArray})})}row=!0;searchData(o){this.searchDataValue=o.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((n,a)=>a+1)}):this.pagination.calculatePageSize.next({totalData:this.totalData,pageSize:this.pageSize,tableData:this.tableData,serialNumberArray:this.serialNumberArray})}sortData(o){let n=this.tableData.slice();!o.active||o.direction===""?this.tableData=n:this.tableData=n.sort((a,l)=>{let r=a[o.active],de=l[o.active];return(r<de?-1:1)*(o.direction==="asc"?1:-1)})}changePageSize(o){this.pageSelection=[],this.limit=o,this.skip=0,this.currentPage=1,this.pagination.tablePageSize.next({skip:this.skip,limit:this.limit,pageSize:this.pageSize})}selectAll(o){o?this.tableData.forEach(n=>{n.isSelected=!1}):this.tableData.forEach(n=>{n.isSelected=!0})}ngOnInit(){this.payment_chart={series:[44,55,41,17],chart:{type:"donut"},colors:["#0DCAF0","#FD3995","#AB47BC","#FFC107"],labels:["Paypal","Debit Card","Bank Transfer","Credit Card"],plotOptions:{pie:{startAngle:-90,endAngle:270,stroke:{show:!0,width:10,colors:["#FFFFFF"]},donut:{size:"80%"}}},dataLabels:{enabled:!1},legend:{show:!1},annotations:{position:"front",style:{fontSize:"24px",fontWeight:"bold",color:"#000000"},text:{text:"+14%",background:{enabled:!0,foreColor:"#FFFFFF",border:"#000000",borderWidth:1,borderRadius:2,opacity:.7}},x:"50%",y:"50%"},responsive:[{breakpoint:480,options:{chart:{width:200},legend:{show:!1}}}]}}static \u0275fac=function(n){return new(n||s)(v(H),v(F),v(le))};static \u0275cmp=E({type:s,selectors:[["app-payment-report"]],viewQuery:function(n,a){if(n&1&&R(se,5),n&2){let l;A(l=T())&&(a.chart=l.first)}},decls:252,vars:20,consts:[[1,"content"],[1,"d-md-flex","d-block","align-items-center","justify-content-between","mb-3"],["title","Payment Report",3,"breadcrumbItems"],[1,"d-flex","my-xl-auto","right-content","align-items-center","flex-wrap"],[1,"me-2","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,"row"],[1,"col-xl-6","d-flex"],[1,"row","flex-fill"],[1,"col-lg-6","col-md-6","d-flex"],[1,"card","flex-fill"],[1,"card-body"],[1,"d-flex","flex-wrap","align-items-center","justify-content-between","border-bottom","pb-2"],[1,"d-flex","align-items-center","flex-column","overflow-hidden"],[1,"fs-14","fw-normal","text-truncate","mb-1"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap"],["href","javascript:void(0);",1,"avatar","avatar-md","br-5","payment-report-icon","bg-transparent-primary","border","border-primary"],[1,"text-primary"],[1,"ti","ti-currency-dollar"],[1,"d-flex","justify-content-center","mt-2"],[1,"fs-12","fw-normal","d-flex","align-items-center","text-truncate"],[1,"text-success","fs-12","d-flex","align-items-center","me-1"],[1,"ti","ti-arrow-wave-right-up","me-1"],["href","javascript:void(0);",1,"avatar","avatar-md","br-5","payment-report-icon","bg-transparent-skyblue","border","border-skyblue"],[1,"text-skyblue"],["href","javascript:void(0);",1,"avatar","avatar-md","br-5","payment-report-icon","bg-transparent-danger","border","border-danger"],[1,"text-danger"],[1,"text-danger","fs-12","d-flex","align-items-center","me-1"],["href","javascript:void(0);",1,"avatar","avatar-md","br-5","payment-report-icon","bg-pink-transparent","border","border-pink"],[1,"text-pink"],[1,"card-header","border-0"],[1,"d-flex","flex-wrap","row-gap-2","justify-content-between","align-items-center"],[1,"d-flex","align-items-center"],[1,"me-2"],[1,"ti","ti-chart-donut","text-danger"],["href","javascript:void(0);","data-bs-toggle","dropdown",1,"dropdown-toggle","btn","btn-sm","fs-12","btn-white","d-inline-flex","align-items-center"],[1,"dropdown-menu","dropdown-menu-end","p-2"],[1,"card-body","d-flex","align-items-center","justify-content-between","pt-0"],[1,"row","align-items-center"],[1,"col-md-6"],[1,"position-relative","payment-total"],["id","payment-report"],[3,"series","labels","chart","colors","dataLabels","plotOptions","grid","legend","tooltip","responsive"],[1,"payment-total-content"],[1,"display-3","fs-24","fw-bold","text-skyblue"],[1,"fs-16","fw-normal"],[1,"row","gy-4"],[1,"fs-16","text-gray-5","fw-normal","side-badge","mb-1"],[1,"fs-20","fw-bold"],[1,"fs-16","text-gray-5","fw-normal","side-badge-pink","mb-1"],[1,"fs-16","text-gray-5","fw-normal","side-badge-purple","mb-1"],[1,"fs-16","text-gray-5","fw-normal","side-badge-warning","mb-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,"input-icon","position-relative"],[1,"input-icon-addon"],[1,"ti","ti-calendar","text-gray-9"],["type","text","bsDaterangepicker","","placeholder","dd/mm/yyyy - dd/mm/yyyy",1,"form-control","date-range","bookingrange",3,"ngModelChange","ngModel","bsConfig"],[1,"dropdown","me-3"],[1,"card-body","p-0"],[1,"custom-datatable-filter"],[1,"dataTables_wrapper","dt-bootstrap5","no-footer"],[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"],[1,"no-sort"],["tabindex","0",1,"form-check","form-check-md",3,"click","keydown.enter"],["type","checkbox","id","select-all",1,"form-check-input",3,"ngModelChange","ngModel"],["mat-sort-header","InvoiceID"],["mat-sort-header","ClientName"],["mat-sort-header","CompanyName"],["mat-sort-header","PaymentType"],["mat-sort-header","PaidDate"],["mat-sort-header","PaidAmount"],[1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","10"],["value","25"],["value","50"],["value","100"],[1,"form-check","form-check-md"],["type","checkbox",1,"form-check-input",3,"ngModelChange","ngModel"],[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,"fs-12","fw-normal"],["colspan","8"],[1,"no-record"]],template:function(n,a){n&1&&(t(0,"div",0)(1,"div",1),m(2,"app-breadcrumbs",2),t(3,"div",3)(4,"div",4)(5,"div",5)(6,"a",6),m(7,"i",7),i(8,"Export "),e(),t(9,"ul",8)(10,"li")(11,"a",9),m(12,"i",10),i(13,"Export as PDF"),e()(),t(14,"li")(15,"a",9),m(16,"i",11),i(17,"Export as Excel "),e()()()()(),m(18,"app-collapse-header"),e()(),t(19,"div",12)(20,"div",13)(21,"div",14)(22,"div",15)(23,"div",16)(24,"div",17)(25,"div",18)(26,"div",19)(27,"div")(28,"div")(29,"span",20),i(30,"Total Payments"),e(),t(31,"h5"),i(32,"$45,221,45"),e()()()(),t(33,"div",21)(34,"a",22)(35,"span",23),m(36,"i",24),e()()()(),t(37,"div",25)(38,"p",26)(39,"span",27),m(40,"i",28),i(41,"+20.01%"),e(),i(42,"from last week"),e()()()()(),t(43,"div",15)(44,"div",16)(45,"div",17)(46,"div",18)(47,"div",19)(48,"div")(49,"div")(50,"span",20),i(51,"Pending Payments"),e(),t(52,"h5"),i(53,"$45,221,45"),e()()()(),t(54,"div",21)(55,"a",29)(56,"span",30),m(57,"i",24),e()()()(),t(58,"div",25)(59,"p",26)(60,"span",27),m(61,"i",28),i(62,"+20.01%"),e(),i(63," from last week"),e()()()()(),t(64,"div",15)(65,"div",16)(66,"div",17)(67,"div",18)(68,"div",19)(69,"div")(70,"div")(71,"span",20),i(72,"Failed Payments"),e(),t(73,"h5"),i(74,"$10,470"),e()()()(),t(75,"div",21)(76,"a",31)(77,"span",32),m(78,"i",24),e()()()(),t(79,"div",25)(80,"p",26)(81,"span",33),m(82,"i",28),i(83,"+20.01%"),e(),i(84," from last week"),e()()()()(),t(85,"div",15)(86,"div",16)(87,"div",17)(88,"div",18)(89,"div",19)(90,"div")(91,"div")(92,"span",20),i(93,"Payment Success Rate"),e(),t(94,"h5"),i(95,"90%"),e()()()(),t(96,"div",21)(97,"a",34)(98,"span",35),m(99,"i",24),e()()()(),t(100,"div",25)(101,"p",26)(102,"span",27),m(103,"i",28),i(104,"+20.01%"),e(),i(105," from last week"),e()()()()()()(),t(106,"div",13)(107,"div",16)(108,"div",36)(109,"div",37)(110,"div",38)(111,"span",39),m(112,"i",40),e(),t(113,"h5"),i(114,"Payments By Payment Methods "),e()(),t(115,"div",5)(116,"a",41),i(117," This Year "),e(),t(118,"ul",42)(119,"li")(120,"a",9),i(121,"2024"),e()(),t(122,"li")(123,"a",9),i(124,"2023"),e()(),t(125,"li")(126,"a",9),i(127,"2022"),e()()()()()(),t(128,"div",43)(129,"div",44)(130,"div",45)(131,"div",46),m(132,"div",47)(133,"apx-chart",48),t(134,"div",49)(135,"span",50),i(136,"+14%"),e(),t(137,"p",51),i(138,"vs last year"),e()()()(),t(139,"div",45)(140,"div",52)(141,"div",45)(142,"h6",53),i(143,"Paypal"),e(),t(144,"h5",54),i(145,"$54,071 "),e()(),t(146,"div",45)(147,"h6",55),i(148," Debit Card"),e(),t(149,"h5",54),i(150,"$54,071 "),e()(),t(151,"div",45)(152,"h6",56),i(153," Bank Transfer"),e(),t(154,"h5",54),i(155,"$32,210 "),e()(),t(156,"div",45)(157,"h6",57),i(158," Credit Card"),e(),t(159,"h5",54),i(160,"$32,210 "),e()()()()()()()()(),t(161,"div",58)(162,"div",59)(163,"h5"),i(164,"Payment List"),e(),t(165,"div",60)(166,"div",61)(167,"div",62)(168,"span",63),m(169,"i",64),e(),t(170,"input",65),g("ngModelChange",function(r){return u(a.bsRangeValue,r)||(a.bsRangeValue=r),r}),e()()(),t(171,"div",66)(172,"a",6),i(173," $0.00 - $00 "),e(),t(174,"ul",8)(175,"li")(176,"a",9),i(177,"$10 - $20"),e()(),t(178,"li")(179,"a",9),i(180,"$20 - $30"),e()(),t(181,"li")(182,"a",9),i(183,"$30 - $40"),e()()()(),t(184,"div",66)(185,"a",6),i(186," Payment Type "),e(),t(187,"ul",8)(188,"li")(189,"a",9),i(190,"Paypal"),e()(),t(191,"li")(192,"a",9),i(193,"Cash"),e()()()(),t(194,"div",5)(195,"a",6),i(196," Sort By : Last 7 Days "),e(),t(197,"ul",8)(198,"li")(199,"a",9),i(200,"Recently Added"),e()(),t(201,"li")(202,"a",9),i(203,"Ascending"),e()(),t(204,"li")(205,"a",9),i(206,"Desending"),e()(),t(207,"li")(208,"a",9),i(209,"Last Month"),e()(),t(210,"li")(211,"a",9),i(212,"Last 7 Days"),e()()()()()(),t(213,"div",67)(214,"div",68)(215,"div",69)(216,"div",12)(217,"div",70)(218,"div",71)(219,"label"),i(220," Row Per Page "),x(221,he,9,1,"select",72),i(222," Entries "),e()()(),t(223,"div",70)(224,"div",73)(225,"label")(226,"input",74),g("ngModelChange",function(r){return u(a.searchDataValue,r)||(a.searchDataValue=r),r}),b("ngModelChange",function(){return a.searchData(a.searchDataValue)}),e()()()()(),t(227,"div",75)(228,"table",76),b("matSortChange",function(r){return a.sortData(r)}),t(229,"thead",77)(230,"tr")(231,"th",78)(232,"div",79),b("click",function(){return a.selectAll(a.initChecked)})("keydown.enter",function(){return a.selectAll(a.initChecked)}),t(233,"input",80),g("ngModelChange",function(r){return u(a.initChecked,r)||(a.initChecked=r),r}),e()()(),t(234,"th",81),i(235,"Invoice ID"),e(),t(236,"th",82),i(237,"Client Name"),e(),t(238,"th",83),i(239,"Company Name"),e(),t(240,"th",84),i(241,"Payment Type"),e(),t(242,"th",85),i(243,"Paid Date"),e(),t(244,"th",86),i(245,"Paid Amount"),e(),m(246,"th"),e()(),t(247,"tbody"),k(248,ue,24,10,"tr",null,P),x(250,ge,4,0,"tr"),e()()(),m(251,"app-custom-pagination"),e()()()()()),n&2&&(d(2),c("breadcrumbItems",a.breadCrumbItems),d(131),c("series",a.payment_chart.series)("labels",a.payment_chart.labels)("chart",a.payment_chart.chart)("colors",a.payment_chart.colors)("dataLabels",a.payment_chart.dataLabels)("plotOptions",a.payment_chart.plotOptions)("grid",a.payment_chart.grid)("legend",a.payment_chart.legend)("tooltip",a.payment_chart.tooltip)("responsive",a.payment_chart.responsive),d(37),h("ngModel",a.bsRangeValue),c("bsConfig",w(18,pe)),d(51),C(a.tableData.length>0?221:-1),d(5),h("ngModel",a.searchDataValue),c("ngModelOptions",w(19,ce)),d(7),h("ngModel",a.initChecked),d(15),M(a.tableData),d(2),C(a.tableData.length===0?250:-1))},dependencies:[z,Q,O,$,j,N,B,L,W,ne,ie,ae,ee,te,oe,G,q,X,J,U,Y],encapsulation:2})};export{me as PaymentReportComponent};