import{a as F}from"./chunk-FQHZHINT.js";import"./chunk-T5RX4JLB.js";import"./chunk-EFYIWIC7.js";import"./chunk-NTJK7BYQ.js";import"./chunk-DM34UTHR.js";import"./chunk-QUDAER4J.js";import"./chunk-XZELSHJP.js";import"./chunk-UWZSUJ2E.js";import{y as S}from"./chunk-AUG6ZMIQ.js";import{a as _}from"./chunk-IQYEAILM.js";import"./chunk-3NZUMR4F.js";import{c as D}from"./chunk-JQJV7TYV.js";import{c as y,f as g}from"./chunk-YM543BQE.js";import{o as C,p as T}from"./chunk-STBSUBIU.js";import{Ac as v,Hb as n,Jc as k,Kc as b,Tb as d,Ub as l,Vb as p,_ as r,ac as u,kb as a,lb as o,qa as c,qc as h,rc as f,xb as m}from"./chunk-NW2U37DI.js";import"./chunk-TWZW5B45.js";var R=(()=>{class s extends T{constructor(e,i,t){super(t),this.adminService=e,this.translate=i,this.displayedColumns=["id","select","ticketdetails","user","status","assignto","actions"],this.isloader=!0}ngOnInit(){this.closedticket(),this.adminService.RefreshRquestAdmin$.pipe(r(this.unSubscribe$)).subscribe({next:()=>this.closedticket()})}closedticket(){this.loaderService.showLoader(),this.isloader=!0,this.alltickets$=this.adminService.closedticket(1,10,"").pipe(r(this.unSubscribe$)).subscribe({next:e=>{this.permission=e.permissions,this.activeTickets=e.queryList,this.timezone=e?.timezonedata,this.isloader=!1,this.setting=e.setting?.original,this.permission?.includes("Ticket Delete")||(this.displayedColumns=["id","ticketdetails","user","status","assignto","actions"]),this.loaderService.hideLoader()},error:()=>{this.isloader=!0,this.loaderService.hideLoader()}})}loadData(e){this.isloader=!0,this.adminService.closedticket(e.page,e.size,e.filter).subscribe({next:i=>{this.isloader=!1,this.activeTickets=i.queryList},error:i=>this.isloader=!1})}static{this.\u0275fac=function(i){return new(i||s)(o(g),o(y),o(C))}}static{this.\u0275cmp=c({type:s,selectors:[["app-closed-tickets"]],standalone:!0,features:[m,v],decls:10,vars:9,consts:[[3,"title"],[1,"row","row-sm"],[1,"col-lg-12"],[1,"card"],[1,"card-header","border-0"],[1,"card-title"],[1,"card-body"],[3,"loadDataFn","isloader","tableData","permission","timezone","displayedColumns"]],template:function(i,t){i&1&&(p(0,"admin-page-header",0),d(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),h(6),k(7,"translate"),l()(),d(8,"div",6)(9,"app-admin-ticket-table",7),u("loadDataFn",function(z){return t.loadData(z)}),l()()()()()),i&2&&(n("title","Closed Tickets"),a(6),f(b(7,7,"Closed Tickets")),a(3),n("isloader",t.isloader)("tableData",t.activeTickets)("permission",t.permission)("timezone",t.timezone)("displayedColumns",t.displayedColumns))},dependencies:[_,D,S,F]})}}return s})();export{R as ClosedTicketsComponent};
