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-XQPGYTTE.js
import{a as de}from"./chunk-JKERXUEK.js";import{a as ne,b as re,c as le}from"./chunk-NXA7GLYB.js";import{a as oe,b as se}from"./chunk-PWMQ74RC.js";import{a as ee,b as te}from"./chunk-U5MFMN2C.js";import{a as G,b as Y}from"./chunk-OPRQFVPE.js";import{a as ae}from"./chunk-PDL2MCPW.js";import{a as ie}from"./chunk-YKW35LPN.js";import"./chunk-JAZSQYD7.js";import{a as H}from"./chunk-RFJHVWQO.js";import{f as J}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 K,g as Z,h as $}from"./chunk-WT44ZQWY.js";import"./chunk-GZFJ7A3T.js";import"./chunk-3NNWUWWG.js";import"./chunk-4FNTF56S.js";import{b as j,d as W,h as F,m as B,q as O,r as Q,s as X,y as q}from"./chunk-7PPOABPU.js";import{a as L}from"./chunk-ILLDEPHH.js";import{d as N}from"./chunk-K3YFDFGL.js";import"./chunk-WA2UGD5L.js";import"./chunk-BT37DHWM.js";import{Ac as g,Cc as P,Fc as E,Hd as I,Mb as y,Nb as C,Pb as k,Qb as R,Rb as A,Sb as p,Tb as t,Ub as e,Vb as o,ab as w,ac as _,cc as h,ec as x,fb as d,ic as z,jc as T,kc as V,pa as b,qa as f,sb as S,tc as i,uc as v,ud as U,vc as D,yb as M,yc as c,zc as u}from"./chunk-AQ27DSQO.js";import"./chunk-EQDQRRRY.js";var ce=["chart"],ue=()=>({adaptivePosition:!0}),ge=()=>({standalone:!0});function he(m,s){if(m&1){let n=_();t(0,"select",76),g("ngModelChange",function(l){b(n);let r=x();return u(r.pageSize,l)||(r.pageSize=l),f(l)}),h("ngModelChange",function(){b(n);let l=x();return f(l.changePageSize(l.pageSize))}),t(1,"option",77),i(2,"10"),e(),t(3,"option",78),i(4,"25"),e(),t(5,"option",79),i(6,"50"),e(),t(7,"option",80),i(8,"100"),e()()}if(m&2){let n=x();c("ngModel",n.pageSize)}}function be(m,s){if(m&1){let n=_();t(0,"tr")(1,"td")(2,"div",81)(3,"input",82),g("ngModelChange",function(l){let r=b(n).$implicit;return u(r.isSelected,l)||(r.isSelected=l),f(l)}),e()()(),t(4,"td")(5,"div",83)(6,"a",84),o(7,"img",85),e(),t(8,"div",86)(9,"h6",87)(10,"a",22),i(11),e()()()()(),t(12,"td"),i(13),e(),t(14,"td"),i(15),e(),t(16,"td")(17,"span",88),o(18,"i",89),i(19),e()(),t(20,"td")(21,"span",88),o(22,"i",89),i(23),e()()()}if(m&2){let n=s.$implicit;d(3),c("ngModel",n.isSelected),d(4),p("src",P("assets/img/users/",n.Image),w),d(4),v(n.Name),d(2),v(n.Email),d(2),v(n.CreatedDate),d(2),p("ngClass",n.Role==="Employee"?"badge-pink-transparent":"badge-soft-purple"),d(2),D("",n.Role," "),d(2),p("ngClass",n.Status==="Active"?"badge-success":"badge-danger"),d(2),D("",n.Status," ")}}function fe(m,s){m&1&&(t(0,"tr")(1,"td",90)(2,"h5",91),i(3,"No matching records found"),e()()())}ee.register(...te);var me=class m{constructor(s,n,a){this.data=s;this.router=n;this.pagination=a;this.breadCrumbItems=[{label:"HR"},{label:"User Report",active:!0}],this.data.getuserReport().subscribe(l=>{this.actualData=l.data,this.pagination.tablePageSize.subscribe(r=>{this.router.url==this.routes.userreport&&(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]}user_chart;performance_chart2;chart;routes=L;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;getTableData(s){this.data.getuserReport().subscribe(n=>{this.tableData=[],this.tableDataCopy=[],this.serialNumberArray=[],this.totalData=n.totalData,n.data.map((a,l)=>{let r=l+1;l>=s.skip&&r<=s.limit&&(a.sNo=r,this.tableData.push(a),this.tableDataCopy.push(a),this.serialNumberArray.push(r))}),this.dataSource=new oe(this.actualData),this.pagination.calculatePageSize.next({totalData:this.totalData,pageSize:this.pageSize,tableData:this.tableData,tableDataCopy:this.tableDataCopy,serialNumberArray:this.serialNumberArray})})}row=!0;searchData(s){this.searchDataValue=s.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(s){let n=this.tableData.slice();!s.active||s.direction===""?this.tableData=n:this.tableData=n.sort((a,l)=>{let r=a[s.active],pe=l[s.active];return(r<pe?-1:1)*(s.direction==="asc"?1:-1)})}changePageSize(s){this.pageSelection=[],this.limit=s,this.skip=0,this.currentPage=1,this.pagination.tablePageSize.next({skip:this.skip,limit:this.limit,pageSize:this.pageSize})}selectAll(s){s?this.tableData.forEach(n=>{n.isSelected=!1}):this.tableData.forEach(n=>{n.isSelected=!0})}ngOnInit(){this.user_chart={chart:{height:185,type:"bar",stacked:!0,toolbar:{show:!1}},colors:["#00E396","#F8F9FA"],responsive:[{breakpoint:480,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],plotOptions:{bar:{columnWidth:"55%",horizontal:!1,endingShape:"rounded"}},series:[{name:"Data",data:[34,44,54,21,12,43,33,23,66,66,58,29]}],xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],labels:{style:{colors:"#6B7280",fontSize:"13px"}}},yaxis:{labels:{offsetX:-15,style:{colors:"#6B7280",fontSize:"13px"}}},legend:{show:!1},dataLabels:{enabled:!1},fill:{opacity:1}}}static \u0275fac=function(n){return new(n||m)(S(H),S(N),S(se))};static \u0275cmp=M({type:m,selectors:[["app-user-report"]],viewQuery:function(n,a){if(n&1&&z(ce,5),n&2){let l;T(l=V())&&(a.chart=l.first)}},decls:216,vars:22,consts:[[1,"content"],[1,"d-md-flex","d-block","align-items-center","justify-content-between","mb-3"],["title","User 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","align-items-center","justify-content-between","mb-2"],[1,"d-flex","align-items-center"],[1,"fs-12","fw-medium","mb-1","text-truncate"],[1,"leave-report-icon"],["href","javascript:void(0);"],[1,"p-2","border","border-primary","bg-transparent-primary","rounded-3","d-flex","align-items-center","justify-content-center"],[1,"ti","ti-user","text-primary"],[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"],[1,"p-2","border","border-success","bg-transparent-success","rounded-3","d-flex","align-items-center","justify-content-center"],[1,"ti","ti-user-check","text-success"],[1,"p-2","border","border-skyblue","bg-transparent-skyblue","rounded-3","d-flex","align-items-center","justify-content-center"],[1,"ti","ti-user-up","text-skyblue"],[1,"p-2","border","border-danger","bg-transparent-danger","rounded-3","d-flex","align-items-center","justify-content-center"],[1,"ti","ti-user-pause","text-danger"],[1,"text-danger","fs-12","d-flex","align-items-center","me-1"],[1,"card-header","border-0","pb-0"],[1,"d-flex","flex-wrap","justify-content-between","align-items-center"],[1,"me-2"],[1,"ti","ti-chart-bar","text-danger"],[1,"d-inline-flex","align-items-center","me-2","mb-0"],[1,"ti","ti-square-filled","fs-12","text-success","me-2"],[1,"d-inline-flex","align-items-center","mb-0","me-2"],[1,"ti","ti-square-filled","fs-12","text-light","me-2"],["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","py-0"],["id","user-chart"],[3,"series","chart","colors","fill","xaxis","yaxis","responsive","tooltip","dataLabels","plotOptions","grid","legend"],[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","Name"],["mat-sort-header","Email"],["mat-sort-header","CreatedDate"],["mat-sort-header","Priority"],["mat-sort-header","Status"],[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","border","avatar-rounded"],["alt","img",1,"img-fluid",3,"src"],[1,"ms-2"],[1,"fw-medium"],[1,"badge","d-inline-flex","align-items-center","badge-xs",3,"ngClass"],[1,"ti","ti-point-filled","me-1"],["colspan","8"],[1,"no-record"]],template:function(n,a){n&1&&(t(0,"div",0)(1,"div",1),o(2,"app-breadcrumbs",2),t(3,"div",3)(4,"div",4)(5,"div",5)(6,"a",6),o(7,"i",7),i(8,"Export "),e(),t(9,"ul",8)(10,"li")(11,"a",9),o(12,"i",10),i(13,"Export as PDF"),e()(),t(14,"li")(15,"a",9),o(16,"i",11),i(17,"Export as Excel "),e()()()()(),o(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,"p",20),i(29,"Total Users"),e(),t(30,"h4"),i(31,"800"),e()()(),t(32,"div",21)(33,"a",22)(34,"span",23),o(35,"i",24),e()()()(),t(36,"p",25)(37,"span",26),o(38,"i",27),i(39,"+20.01% "),e(),i(40," from last week "),e()()()(),t(41,"div",15)(42,"div",16)(43,"div",17)(44,"div",18)(45,"div",19)(46,"div")(47,"p",20),i(48,"Active Users"),e(),t(49,"h4"),i(50,"750"),e()()(),t(51,"div",21)(52,"a",22)(53,"span",28),o(54,"i",29),e()()()(),t(55,"p",25)(56,"span",26),o(57,"i",27),i(58,"+17.02% "),e(),i(59," from last week "),e()()()(),t(60,"div",15)(61,"div",16)(62,"div",17)(63,"div",18)(64,"div",19)(65,"div")(66,"p",20),i(67,"New Users"),e(),t(68,"h4"),i(69,"100"),e()()(),t(70,"div",21)(71,"a",22)(72,"span",30),o(73,"i",31),e()()()(),t(74,"p",25)(75,"span",26),o(76,"i",27),i(77,"+10.01% "),e(),i(78," from last week "),e()()()(),t(79,"div",15)(80,"div",16)(81,"div",17)(82,"div",18)(83,"div",19)(84,"div")(85,"p",20),i(86,"Inactive Users"),e(),t(87,"h4"),i(88,"50"),e()()(),t(89,"div",21)(90,"a",22)(91,"span",32),o(92,"i",33),e()()()(),t(93,"p",25)(94,"span",34),o(95,"i",27),i(96,"-10.01% "),e(),i(97," from last week "),e()()()()()(),t(98,"div",13)(99,"div",16)(100,"div",35)(101,"div",36)(102,"div",19)(103,"span",37),o(104,"i",38),e(),t(105,"h5"),i(106,"Users"),e()(),t(107,"div",19)(108,"p",39),o(109,"i",40),i(110," Active Users "),e(),t(111,"p",41),o(112,"i",42),i(113," Inactive Users "),e()(),t(114,"div",5)(115,"a",43),i(116," This Year "),e(),t(117,"ul",44)(118,"li")(119,"a",9),i(120,"2024"),e()(),t(121,"li")(122,"a",9),i(123,"2023"),e()(),t(124,"li")(125,"a",9),i(126,"2022"),e()()()()()(),t(127,"div",45),o(128,"div",46)(129,"apx-chart",47),e()()()(),t(130,"div",48)(131,"div",49)(132,"h5"),i(133,"Users List"),e(),t(134,"div",50)(135,"div",51)(136,"div",52)(137,"span",53),o(138,"i",54),e(),t(139,"input",55),g("ngModelChange",function(r){return u(a.bsRangeValue,r)||(a.bsRangeValue=r),r}),e()()(),t(140,"div",56)(141,"a",6),i(142," Role "),e(),t(143,"ul",8)(144,"li")(145,"a",9),i(146,"Employee"),e()(),t(147,"li")(148,"a",9),i(149,"Client"),e()()()(),t(150,"div",56)(151,"a",6),i(152," Status "),e(),t(153,"ul",8)(154,"li")(155,"a",9),i(156,"Active"),e()(),t(157,"li")(158,"a",9),i(159,"Inactive"),e()()()(),t(160,"div",5)(161,"a",6),i(162," Sort By : Last 7 Days "),e(),t(163,"ul",8)(164,"li")(165,"a",9),i(166,"Recently Added"),e()(),t(167,"li")(168,"a",9),i(169,"Ascending"),e()(),t(170,"li")(171,"a",9),i(172,"Desending"),e()(),t(173,"li")(174,"a",9),i(175,"Last Month"),e()(),t(176,"li")(177,"a",9),i(178,"Last 7 Days"),e()()()()()(),t(179,"div",57)(180,"div",58)(181,"div",59)(182,"div",12)(183,"div",60)(184,"div",61)(185,"label"),i(186," Row Per Page "),y(187,he,9,1,"select",62),i(188," Entries "),e()()(),t(189,"div",60)(190,"div",63)(191,"label")(192,"input",64),g("ngModelChange",function(r){return u(a.searchDataValue,r)||(a.searchDataValue=r),r}),h("ngModelChange",function(){return a.searchData(a.searchDataValue)}),e()()()()(),t(193,"div",65)(194,"table",66),h("matSortChange",function(r){return a.sortData(r)}),t(195,"thead",67)(196,"tr")(197,"th",68)(198,"div",69),h("click",function(){return a.selectAll(a.initChecked)})("keydown.enter",function(){return a.selectAll(a.initChecked)}),t(199,"input",70),g("ngModelChange",function(r){return u(a.initChecked,r)||(a.initChecked=r),r}),e()()(),t(200,"th",71),i(201,"Name"),e(),t(202,"th",72),i(203,"Email"),e(),t(204,"th",73),i(205,"Created Date"),e(),t(206,"th",74),i(207,"Role"),e(),t(208,"th",75),i(209,"Status"),e(),o(210,"th"),e()(),t(211,"tbody"),R(212,be,24,10,"tr",null,k),y(214,fe,4,0,"tr"),e()()(),o(215,"app-custom-pagination"),e()()()()()),n&2&&(d(2),p("breadcrumbItems",a.breadCrumbItems),d(127),p("series",a.user_chart.series)("chart",a.user_chart.chart)("colors",a.user_chart.colors)("fill",a.user_chart.fill)("xaxis",a.user_chart.xaxis)("yaxis",a.user_chart.yaxis)("responsive",a.user_chart.responsive)("tooltip",a.user_chart.tooltip)("dataLabels",a.user_chart.dataLabels)("plotOptions",a.user_chart.plotOptions)("grid",a.user_chart.grid)("legend",a.user_chart.legend),d(10),c("ngModel",a.bsRangeValue),p("bsConfig",E(20,ue)),d(48),C(a.tableData.length>0?187:-1),d(5),c("ngModel",a.searchDataValue),p("ngModelOptions",E(21,ge)),d(7),c("ngModel",a.initChecked),d(13),A(a.tableData),d(2),C(a.tableData.length===0?214:-1))},dependencies:[I,U,q,Q,X,W,j,O,F,B,le,ne,re,ie,ae,de,J,Y,G,$,K,Z],encapsulation:2})};export{me as UserReportComponent};