import{a as _}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 g}from"./chunk-AUG6ZMIQ.js";import{a as T}from"./chunk-IQYEAILM.js";import"./chunk-3NZUMR4F.js";import{c as D}from"./chunk-JQJV7TYV.js";import{c as C,f as R}from"./chunk-YM543BQE.js";import{o as S,p as y}from"./chunk-STBSUBIU.js";import{Ac as f,Hb as r,Jc as b,Kc as k,Tb as d,Ub as l,Vb as m,_ as n,ac as u,kb as o,lb as a,qa as p,qc as h,rc as v,xb as c}from"./chunk-NW2U37DI.js";import"./chunk-TWZW5B45.js";var E=(()=>{class s extends y{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.activeticketReopen(),this.adminService.RefreshRquestAdmin$.pipe(n(this.unSubscribe$)).subscribe({next:()=>this.activeticketReopen()})}activeticketReopen(){this.loaderService.showLoader(),this.isloader=!0,this.alltickets$=this.adminService.activeticketReopen(1,10,"").pipe(n(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.activeticketReopen(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)(a(R),a(C),a(S))}}static{this.\u0275cmp=p({type:s,selectors:[["app-reopen"]],standalone:!0,features:[c,f],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&&(m(0,"admin-page-header",0),d(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),h(6),b(7,"translate"),l()(),d(8,"div",6)(9,"app-admin-ticket-table",7),u("loadDataFn",function(F){return t.loadData(F)}),l()()()()()),i&2&&(r("title","Reopen"),o(6),v(k(7,7,"Reopen Tickets")),o(3),r("isloader",t.isloader)("tableData",t.activeTickets)("permission",t.permission)("timezone",t.timezone)("displayedColumns",t.displayedColumns))},dependencies:[T,D,g,_]})}}return s})();export{E as ReopenComponent};
