File: /mnt/data/smarthr-co-in/demo/angular/template/chunk-CEMBP7BM.js
import{a as le}from"./chunk-JKERXUEK.js";import{a as ee,b as te,c as ie}from"./chunk-NXA7GLYB.js";import{a as ne,b as ae}from"./chunk-PWMQ74RC.js";import{a as Z}from"./chunk-PDL2MCPW.js";import{a as $}from"./chunk-VTBOPFJE.js";import{a as Y}from"./chunk-YKW35LPN.js";import"./chunk-JAZSQYD7.js";import{a as J}from"./chunk-RFJHVWQO.js";import{a as K,d as Q,f as X}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"./chunk-WT44ZQWY.js";import"./chunk-GZFJ7A3T.js";import"./chunk-3NNWUWWG.js";import"./chunk-4FNTF56S.js";import{b as I,d as O,h as j,i as L,k as W,m as R,n as B,q as H,r as G,s as U,y as q}from"./chunk-7PPOABPU.js";import{a as V}from"./chunk-ILLDEPHH.js";import{d as N}from"./chunk-K3YFDFGL.js";import"./chunk-WA2UGD5L.js";import"./chunk-BT37DHWM.js";import{Ac as b,Cc as k,Fc as z,Hd as T,Mb as x,Nb as y,Pb as w,Qb as F,Rb as M,Sb as p,Tb as t,Ub as e,Vb as l,ab as D,ac as _,cc as c,ec as E,fb as m,pa as g,qa as S,sb as f,tc as i,uc as u,ud as A,vc as C,yb as P,yc as v,zc as h}from"./chunk-AQ27DSQO.js";import"./chunk-EQDQRRRY.js";var de=()=>({standalone:!0});function me(s,o){if(s&1){let n=_();t(0,"select",64),b("ngModelChange",function(d){g(n);let r=E();return h(r.pageSize,d)||(r.pageSize=d),S(d)}),c("ngModelChange",function(){g(n);let d=E();return S(d.changePageSize(d.pageSize))}),t(1,"option",65),i(2,"10"),e(),t(3,"option",66),i(4,"25"),e(),t(5,"option",67),i(6,"50"),e(),t(7,"option",68),i(8,"100"),e()()}if(s&2){let n=E();v("ngModel",n.pageSize)}}function se(s,o){if(s&1){let n=_();t(0,"tr")(1,"td")(2,"div",69)(3,"input",70),b("ngModelChange",function(d){let r=g(n).$implicit;return h(r.isSelected,d)||(r.isSelected=d),S(d)}),e()()(),t(4,"td")(5,"div",71)(6,"a",72),l(7,"img",73),e(),t(8,"div",74)(9,"h6",75)(10,"a",76),i(11),e()(),t(12,"span",77),i(13),e()()()(),t(14,"td"),i(15),e(),t(16,"td"),i(17),e(),t(18,"td"),i(19),e(),t(20,"td")(21,"div",5)(22,"a",6)(23,"span",78),l(24,"i",79),e(),i(25),e(),t(26,"ul",8)(27,"li")(28,"a",80)(29,"span",81),l(30,"i",82),e(),i(31,"Approved"),e()(),t(32,"li")(33,"a",80)(34,"span",83),l(35,"i",84),e(),i(36,"Pending "),e()()()()(),t(37,"td")(38,"div",85)(39,"a",86),l(40,"i",87),e(),t(41,"a",88),l(42,"i",89),e()()()()}if(s&2){let n=o.$implicit;m(3),v("ngModel",n.isSelected),m(4),p("src",k("assets/img/users/",n==null?null:n.Image),D),m(4),u(n.Employee_Name),m(2),u(n.Roll),m(2),u(n.Provident_Fund_Type),m(2),C(" ",n.Employee_Share," "),m(2),u(n.Organization_Share),m(4),p("ngClass",n.Status==="Approved"?"badge-transparent-success":"badge-transparent-info"),m(),p("ngClass",n.Status==="Approved"?"text-success":"text-info"),m(),C(" ",n.Status," ")}}function pe(s,o){s&1&&(t(0,"tr")(1,"td",90)(2,"h5",91),i(3,"No matching records found"),e()()())}var re=class s{constructor(o,n,a){this.data=o;this.router=n;this.pagination=a;this.breadCrumbItems=[{label:"HR"},{label:"ProvidentFund List",active:!0}],this.data.getProvidentFund().subscribe(d=>{this.actualData=d.data,this.pagination.tablePageSize.subscribe(r=>{this.router.url==this.routes.providentfund&&(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(o){this.password[o]=!this.password[o]}openSuccessModal(){this.isOpen=!this.isOpen}ngOnDestroy(){this.isOpen=!1}getTableData(o){this.data.getProvidentFund().subscribe(n=>{this.tableData=[],this.tableDataCopy=[],this.serialNumberArray=[],this.totalData=n.totalData,n.data.map((a,d)=>{let r=d+1;d>=o.skip&&r<=o.limit&&(a.sNo=r,this.tableData.push(a),this.tableDataCopy.push(a),this.serialNumberArray.push(r))}),this.dataSource=new ne(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,d)=>{let r=a[o.active],oe=d[o.active];return(r<oe?-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})}static \u0275fac=function(n){return new(n||s)(f(J),f(N),f(ae))};static \u0275cmp=P({type:s,selectors:[["app-provident-fund"]],decls:230,vars:7,consts:[[1,"content"],[1,"d-md-flex","d-block","align-items-center","justify-content-between","page-breadcrumb","mb-3"],["title","Provident Fund",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,"mb-2"],["href","javascript:void(0);","data-bs-toggle","modal","data-bs-target","#add_provident-fund",1,"btn","btn-primary","d-flex","align-items-center"],[1,"ti","ti-circle-plus","me-2"],[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"],[3,"htmlFor"],[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","Employee_Name"],["mat-sort-header","Provident_Fund_Type"],["mat-sort-header","Employee_Share"],["mat-sort-header","Organization_Share"],["mat-sort-header","Status"],["id","add_provident-fund",1,"modal","fade"],[1,"modal-dialog","modal-dialog-centered","modal-md"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close","custom-btn-close"],[1,"ti","ti-x"],[1,"modal-body","pb-0"],[1,"col-md-6"],[1,"mb-3"],[1,"form-label",3,"htmlFor"],["placeholder","Select",1,"select","custom-mat-select"],["value","1"],["type","text",1,"form-control"],[1,"col-md-12"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-white","border","me-2"],["type","submit","data-bs-dismiss","modal",1,"btn","btn-primary"],["id","edit_provident-fund",1,"modal","fade"],["placeholder","Anthony Lewis",1,"select","custom-mat-select"],["placeholder","Employee Provident Fund",1,"select","custom-mat-select"],["type","text","value","2%",1,"form-control"],["type","text","value","2000",1,"form-control"],[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,"d-block","mt-1"],[1,"rounded-circle","d-flex","justify-content-center","align-items-center","me-2",3,"ngClass"],[1,"ti","ti-point-filled",3,"ngClass"],["href","javascript:void(0);",1,"dropdown-item","rounded-1","d-flex","justify-content-start","align-items-center"],[1,"rounded-circle","bg-transparent-success","d-flex","justify-content-center","align-items-center","me-2"],[1,"ti","ti-point-filled","text-success"],[1,"rounded-circle","bg-transparent-skyblue","d-flex","justify-content-center","align-items-center","me-2"],[1,"ti","ti-point-filled","text-skyblue"],[1,"action-icon","d-inline-flex"],["href","javascript:void(0);","data-bs-toggle","modal","data-bs-target","#edit_provident-fund",1,"me-2"],[1,"ti","ti-edit"],["href","javascript:void(0);","data-bs-toggle","modal","data-bs-target","#delete_modal"],[1,"ti","ti-trash"],["colspan","7"],[1,"no-record"]],template:function(n,a){n&1&&(t(0,"div",0)(1,"div",1),l(2,"app-breadcrumbs",2),t(3,"div",3)(4,"div",4)(5,"div",5)(6,"a",6),l(7,"i",7),i(8,"Export "),e(),t(9,"ul",8)(10,"li")(11,"a",9),l(12,"i",10),i(13,"Export as PDF"),e()(),t(14,"li")(15,"a",9),l(16,"i",11),i(17,"Export as Excel "),e()()()()(),t(18,"div",12)(19,"a",13),l(20,"i",14),i(21,"Add Provident Fund"),e()(),l(22,"app-collapse-header"),e()(),t(23,"div",15)(24,"div",16)(25,"h5"),i(26,"Expenses List"),e(),t(27,"div",17)(28,"div",18),l(29,"app-date-range-picker"),e(),t(30,"div",19)(31,"a",6),i(32," Select status "),e(),t(33,"ul",8)(34,"li")(35,"a",9),i(36,"Approved"),e()(),t(37,"li")(38,"a",9),i(39,"Pending"),e()()()(),t(40,"div",5)(41,"a",6),i(42," Sort By : Last 7 Days "),e(),t(43,"ul",8)(44,"li")(45,"a",9),i(46,"Recently Added"),e()(),t(47,"li")(48,"a",9),i(49,"Ascending"),e()(),t(50,"li")(51,"a",9),i(52,"Desending"),e()(),t(53,"li")(54,"a",9),i(55,"Last Month"),e()(),t(56,"li")(57,"a",9),i(58,"Last 7 Days"),e()()()()()(),t(59,"div",20)(60,"div",21)(61,"div",22)(62,"div",23)(63,"div",24)(64,"div",25)(65,"label",26),i(66," Row Per Page "),x(67,me,9,1,"select",27),i(68," Entries "),e()()(),t(69,"div",24)(70,"div",28)(71,"label",26)(72,"input",29),b("ngModelChange",function(r){return h(a.searchDataValue,r)||(a.searchDataValue=r),r}),c("ngModelChange",function(){return a.searchData(a.searchDataValue)}),e()()()()(),t(73,"div",30)(74,"table",31),c("matSortChange",function(r){return a.sortData(r)}),t(75,"thead",32)(76,"tr")(77,"th",33)(78,"div",34),c("click",function(){return a.selectAll(a.initChecked)})("keydown.enter",function(){return a.selectAll(a.initChecked)}),t(79,"input",35),b("ngModelChange",function(r){return h(a.initChecked,r)||(a.initChecked=r),r}),e()()(),t(80,"th",36),i(81,"Employee Name"),e(),t(82,"th",37),i(83,"Provident Fund Type"),e(),t(84,"th",38),i(85,"Employee Share"),e(),t(86,"th",39),i(87,"Organization Share"),e(),t(88,"th",40),i(89,"Status"),e(),l(90,"th"),e()(),t(91,"tbody"),F(92,se,43,11,"tr",null,w),x(94,pe,4,0,"tr"),e()()(),l(95,"app-custom-pagination"),e()()()()(),t(96,"div",41)(97,"div",42)(98,"div",43)(99,"div",44)(100,"h4",45),i(101,"Add Provident Fund"),e(),t(102,"button",46),l(103,"i",47),e()(),t(104,"form")(105,"div",48)(106,"div",23)(107,"div",49)(108,"div",50)(109,"label",51),i(110,"Employee Name"),e(),t(111,"mat-select",52)(112,"mat-option",53),i(113,"Select"),e(),t(114,"mat-option",53),i(115,"Anthony Lewis"),e(),t(116,"mat-option",53),i(117,"Brian Villalobos"),e(),t(118,"mat-option",53),i(119,"Harvey Smith"),e()()()(),t(120,"div",49)(121,"div",50)(122,"label",51),i(123,"Provident Fund Type"),e(),t(124,"mat-select",52)(125,"mat-option",53),i(126,"Select"),e(),t(127,"mat-option",53),i(128,"Employee Provident Fund"),e(),t(129,"mat-option",53),i(130,"Voluntary Provident Fund"),e(),t(131,"mat-option",53),i(132,"Employee Provident Fund"),e()()()(),t(133,"div",49)(134,"div",50)(135,"label",51),i(136,"Employee Share(%)"),e(),l(137,"input",54),e()(),t(138,"div",49)(139,"div",50)(140,"label",51),i(141,"Organization Share(%)"),e(),l(142,"input",54),e()(),t(143,"div",49)(144,"div",50)(145,"label",51),i(146,"Employee Share(Amount)"),e(),l(147,"input",54),e()(),t(148,"div",49)(149,"div",50)(150,"label",51),i(151,"Organization Share(Amount)"),e(),l(152,"input",54),e()(),t(153,"div",55)(154,"div",50)(155,"label",51),i(156,"Description"),e(),l(157,"input",54),e()()()(),t(158,"div",56)(159,"button",57),i(160,"Cancel"),e(),t(161,"button",58),i(162,"Add Provident Fund"),e()()()()()(),t(163,"div",59)(164,"div",42)(165,"div",43)(166,"div",44)(167,"h4",45),i(168,"Edit Provident Fund"),e(),t(169,"button",46),l(170,"i",47),e()(),t(171,"form")(172,"div",48)(173,"div",23)(174,"div",49)(175,"div",50)(176,"label",51),i(177,"Employee Name"),e(),t(178,"mat-select",60)(179,"mat-option",53),i(180,"Select"),e(),t(181,"mat-option",53),i(182,"Anthony Lewis"),e(),t(183,"mat-option",53),i(184,"Brian Villalobos"),e(),t(185,"mat-option",53),i(186,"Harvey Smith"),e()()()(),t(187,"div",49)(188,"div",50)(189,"label",51),i(190,"Provident Fund Type"),e(),t(191,"mat-select",61)(192,"mat-option",53),i(193,"Select"),e(),t(194,"mat-option",53),i(195,"Employee Provident Fund"),e(),t(196,"mat-option",53),i(197,"Voluntary Provident Fund"),e(),t(198,"mat-option",53),i(199,"Employee Provident Fund"),e()()()(),t(200,"div",49)(201,"div",50)(202,"label",51),i(203,"Employee Share(%)"),e(),l(204,"input",62),e()(),t(205,"div",49)(206,"div",50)(207,"label",51),i(208,"Organization Share(%)"),e(),l(209,"input",62),e()(),t(210,"div",49)(211,"div",50)(212,"label",51),i(213,"Employee Share(Amount)"),e(),l(214,"input",63),e()(),t(215,"div",49)(216,"div",50)(217,"label",51),i(218,"Organization Share(Amount)"),e(),l(219,"input",63),e()(),t(220,"div",55)(221,"div",50)(222,"label",51),i(223,"Description"),e(),l(224,"input",54),e()()()(),t(225,"div",56)(226,"button",57),i(227,"Cancel"),e(),t(228,"button",58),i(229,"Save Changes"),e()()()()()()),n&2&&(m(2),p("breadcrumbItems",a.breadCrumbItems),m(65),y(a.tableData.length>0?67:-1),m(5),v("ngModel",a.searchDataValue),p("ngModelOptions",z(6,de)),m(7),v("ngModel",a.initChecked),m(13),M(a.tableData),m(2),y(a.tableData.length===0?94:-1))},dependencies:[T,A,Z,Y,q,B,G,U,O,I,H,j,L,R,W,ie,ee,te,le,$,X,Q,K],encapsulation:2})};export{re as ProvidentFundComponent};