1"use strict";(self.webpackChunkabem=self.webpackChunkabem||[]).push([[2490],{42490(_e,F,m){var f=m(29293).default,t=this&&this.__createBinding||(Object.create?function(_,T,d,g){void 0===g&&(g=d);var p=Object.getOwnPropertyDescriptor(T,d);(!p||("get"in p?!T.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return T[d]}}),Object.defineProperty(_,g,p)}:function(_,T,d,g){void 0===g&&(g=d),_[g]=T[d]}),h=this&&this.__setModuleDefault||(Object.create?function(_,T){Object.defineProperty(_,"default",{enumerable:!0,value:T})}:function(_,T){_.default=T}),R=this&&this.__importStar||function(){var _=function(T){return(_=Object.getOwnPropertyNames||function(d){var g=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(g[g.length]=p);return g})(T)};return function(T){if(T&&T.__esModule)return T;var d={};if(null!=T)for(var g=_(T),p=0;p<g.length;p++)"default"!==g[p]&&t(d,T,g[p]);return h(d,T),d}}();Object.defineProperty(F,"__esModule",{value:!0}),F.AlunosComponent=void 0;const C=m(45312),z=m(89377),O=m(60177),u=m(84341),S=m(84635),G=m(62011),W=m(37723),n=R(m(49849)),M=R(m(37554)),Y=R(m(39078)),$=R(m(60177)),A=R(m(84341)),X=R(m(84635)),ne=R(m(5779)),K=R(m(62011)),j=R(m(37723));function Q(_,T){1&_&&(n.\u0275\u0275elementStart(0,"tr")(1,"th"),n.\u0275\u0275text(2,"Nome"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"th"),n.\u0275\u0275text(4," E-mail "),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(5,"th")(6,"th"),n.\u0275\u0275elementEnd())}function J(_,T){if(1&_&&n.\u0275\u0275element(0,"p-treeTableToggler",14),2&_){const d=n.\u0275\u0275nextContext(2).$implicit;n.\u0275\u0275property("rowNode",d)}}function Z(_,T){if(1&_){const d=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"tr",10)(1,"td"),n.\u0275\u0275template(2,J,1,1,"p-treeTableToggler",11),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"td")(5,"input",12),n.\u0275\u0275twoWayListener("ngModelChange",function(p){n.\u0275\u0275restoreView(d);const w=n.\u0275\u0275nextContext().rowData;return n.\u0275\u0275twoWayBindingSet(w.email,p)||(w.email=p),n.\u0275\u0275resetView(p)}),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(6,"td")(7,"button",13),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(d);const p=n.\u0275\u0275nextContext().rowData,w=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(w.save_email(p.id,p.email))}),n.\u0275\u0275text(8," Salvar e-mail"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(9,"td")(10,"button",13),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(d);const p=n.\u0275\u0275nextContext().rowData,w=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(w.generate_password(p.id))}),n.\u0275\u0275text(11," Gerar nova senha"),n.\u0275\u0275elementEnd()()()}if(2&_){const d=n.\u0275\u0275nextContext(),p=d.rowData;n.\u0275\u0275property("ttRow",d.$implicit),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",void 0===p.provas),n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate1(" ",p.nome," "),n.\u0275\u0275advance(2),n.\u0275\u0275twoWayProperty("ngModel",p.email)}}function q(_,T){1&_&&(n.\u0275\u0275elementStart(0,"tr")(1,"th"),n.\u0275\u0275text(2,"Prova"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"th"),n.\u0275\u0275text(4,"Inscri\xe7\xe3o"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"th"),n.\u0275\u0275text(6,"Confirmado"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"th"),n.\u0275\u0275text(8,"Compareceu"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"th"),n.\u0275\u0275text(10,"Acessou resultados"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(11,"th"),n.\u0275\u0275text(12,"Certificado liberado"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(13,"th"),n.\u0275\u0275text(14,"Fez o download"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(15,"th"),n.\u0275\u0275elementEnd())}function ee(_,T){if(1&_){const d=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"tr")(1,"td"),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"td"),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"td"),n.\u0275\u0275element(6,"span",17),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"td"),n.\u0275\u0275element(8,"span",17),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"td"),n.\u0275\u0275element(10,"span",17),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(11,"td"),n.\u0275\u0275element(12,"span",17),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(13,"td"),n.\u0275\u0275element(14,"span",17),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(15,"td")(16,"div",18)(17,"button",19),n.\u0275\u0275listener("click",function(){const p=n.\u0275\u0275restoreView(d).$implicit,w=n.\u0275\u0275nextContext(3).rowData,E=n.\u0275\u0275nextContext();
1return n.\u0275\u0275resetView(E.generate_certificate(p,w.aluno))}),n.\u0275\u0275text(18," Gerar novo certificado "),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(19,"button",19),n.\u0275\u0275listener("click",function(){const p=n.\u0275\u0275restoreView(d).$implicit,w=n.\u0275\u0275nextContext(3).rowData,E=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(E.generate_boletim(w.aluno,p.id))}),n.\u0275\u0275text(20," Gerar boletim "),n.\u0275\u0275elementEnd()()()()}if(2&_){const d=T.$implicit,g=n.\u0275\u0275nextContext(4);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate2(" ",d.titulo," - ",d.ano," "),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",d.id," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",g.icon(d.confirmado)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",g.icon(d.compareceu)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",g.icon(d.acessou)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",g.icon(d.certificado_liberado)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",g.icon(d.certificado)),n.\u0275\u0275advance(3),n.\u0275\u0275property("disabled",!d.compareceu),n.\u0275\u0275advance(2),n.\u0275\u0275property("disabled",!d.compareceu)}}function re(_,T){if(1&_&&(n.\u0275\u0275elementStart(0,"tr")(1,"td",15)(2,"p-table",16),n.\u0275\u0275template(3,q,16,0,"ng-template",6)(4,ee,21,10,"ng-template",7),n.\u0275\u0275elementEnd()()()),2&_){const d=n.\u0275\u0275nextContext(2).rowData;n.\u0275\u0275advance(2),n.\u0275\u0275property("value",d.provas)}}function te(_,T){if(1&_&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"tr",10)(2,"td",15),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(4,re,5,1,"tr",9),n.\u0275\u0275elementContainerEnd()),2&_){const d=n.\u0275\u0275nextContext(),g=d.$implicit,p=d.rowData;n.\u0275\u0275advance(),n.\u0275\u0275property("ttRow",g),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",p.nome," "),n.\u0275\u0275advance(),n.\u0275\u0275property("ngIf",void 0!==p.provas)}}function H(_,T){if(1&_&&n.\u0275\u0275template(0,Z,12,4,"tr",8)(1,te,5,3,"ng-container",9),2&_){const d=T.rowData;n.\u0275\u0275property("ngIf",d.email),n.\u0275\u0275advance(),n.\u0275\u0275property("ngIf",!d.email)}}F.AlunosComponent=(()=>{class _{api;modal;params;alunos;total;rows=10;loads;constructor(d,g){this.api=d,this.modal=g}ngOnInit(){this.loads=0,this.params={name:"",cpf:"",limit:this.rows,offset:0}}find(d){this.loads++,1!=this.loads&&(this.params.offset=d.first,this.api.recover("progresso/alunos/provas",this.params).subscribe(g=>{let p=[];for(let w of g.results){let E=[],U=JSON.parse(w.escolas);Array.isArray(U)||(U=[U]);for(let le of U)E.push({data:{nome:le.nome,provas:le.provas,aluno:w}});p.push({data:{nome:w.nome,email:w.email,zip_code:w.zip_code,id:w.id},children:E})}this.alunos=p,this.total=g.total},g=>{}))}icon(d){return d?"fa-check success":"fa-times danger"}generate_certificate(d,g){var p=this;return f(function*(){try{yield p.api.update("progresso/alunos/certificados/:prova/:aluno",{prova:d.prova,aluno:g.id,school_id:d.school_id}).toPromise(),p.api.external_download(C.environment.cdn+"certificados/progresso/:ano/:prova/:id.pdf",{ano:d.ano,prova:d.prova,id:g.id},"certificado-"+g.nome+".pdf")}catch(w){p.modal.open(z.AlertModalComponent).componentInstance.error(w.error.message)}})()}generate_boletim(d,g){var p=this;return f(function*(){try{const w=yield p.api.recover("progresso/alunos/boletim/:inscricao/:aluno",{inscricao:g,aluno:d.id}).toPromise();p.api.external_download(w.download_file,{v:Math.random().toFixed(3)},"boletim-"+d.nome+".pdf")}catch(w){p.modal.open(z.AlertModalComponent).componentInstance.error(w.error.message)}})()}save_email(d,g){this.api.update("user/:user_id/email",{user_id:d,email:g}).subscribe(p=>{this.modal.open(z.AlertModalComponent).componentInstance.success(p.message)},p=>{this.modal.open(z.AlertModalComponent).componentInstance.error(p.error.message)})}generate_password(d){this.api.update("user/:user_id/password",{user_id:d}).subscribe(g=>{this.modal.open(z.AlertModalComponent).componentInstance.success("Nova senha gerada: "+g.password)},g=>{this.modal.open(z.AlertModalComponent).componentInstance.error(g.error.message)})}static \u0275fac=function(g){return new(g||_)(n.\u0275\u0275directiveInject(M.ApiService),n.\u0275\u0275directiveInject(Y.NgbModal))};static \u0275cmp=n.\u0275\u0275defineComponent({type:_,selectors:[["app-alunos"]],decls:9,vars:8,consts:[[1,"search"],[1,"input-group"],["placeholder","Nome","name","name",1,"form-control","input-group-addon",3,"ngModelChange","ngModel"],["placeholder","CPF","
1name","cpf","mask","999.999.999-99",3,"ngModelChange","ngModel","unmask"],[1,"btn","btn-primary","input-group-addon",3,"click"],["styleClass","p-datatable-gridlines",3,"onLazyLoad","lazy","value","paginator","totalRecords","rows"],["pTemplate","header"],["pTemplate","body"],[3,"ttRow",4,"ngIf"],[4,"ngIf"],[3,"ttRow"],[3,"rowNode",4,"ngIf"],[1,"form-control",3,"ngModelChange","ngModel"],[1,"btn","btn-primary",3,"click"],[3,"rowNode"],["colspan","4"],["styleClass","p-datatable-gridlines",3,"value"],[1,"fa",3,"ngClass"],[1,"buttons"],[1,"btn","btn-primary",3,"click","disabled"]],template:function(g,p){1&g&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"input",2),n.\u0275\u0275twoWayListener("ngModelChange",function(E){return n.\u0275\u0275twoWayBindingSet(p.params.name,E)||(p.params.name=E),E}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"p-inputMask",3),n.\u0275\u0275twoWayListener("ngModelChange",function(E){return n.\u0275\u0275twoWayBindingSet(p.params.cpf,E)||(p.params.cpf=E),E}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"button",4),n.\u0275\u0275listener("click",function(){return p.find({first:0})}),n.\u0275\u0275text(5,"Buscar"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(6,"p-treeTable",5),n.\u0275\u0275listener("onLazyLoad",function(E){return p.find(E)}),n.\u0275\u0275template(7,Q,7,0,"ng-template",6)(8,H,2,2,"ng-template",7),n.\u0275\u0275elementEnd()),2&g&&(n.\u0275\u0275advance(2),n.\u0275\u0275twoWayProperty("ngModel",p.params.name),n.\u0275\u0275advance(),n.\u0275\u0275twoWayProperty("ngModel",p.params.cpf),n.\u0275\u0275property("unmask",!0),n.\u0275\u0275advance(3),n.\u0275\u0275property("lazy",!0)("value",p.alunos)("paginator",!0)("totalRecords",p.total)("rows",p.rows))},dependencies:[O.CommonModule,$.NgClass,$.NgIf,u.FormsModule,A.DefaultValueAccessor,A.NgControlStatus,A.NgModel,S.InputMaskModule,X.InputMask,ne.PrimeTemplate,G.TreeTableModule,K.TreeTable,K.TreeTableToggler,K.TTRow,W.TableModule,j.Table],styles:[".cards[_ngcontent-%COMP%]{display:flex;-moz-column-gap:1em;column-gap:1em;row-gap:1em;flex-wrap:wrap}.card[_ngcontent-%COMP%]{max-width:250px;width:250px}.card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1em}[_nghost-%COMP%]{display:flex;row-gap:1em;flex-direction:column}.buttons[_ngcontent-%COMP%]{flex-direction:column;row-gap:.5em}"]})}return _})()},62011(_e,F,m){m.r(F),m.d(F,{TTBody:()=>se,TTCheckbox:()=>so,TTContextMenuRow:()=>ao,TTEditableColumn:()=>ge,TTHeaderCheckbox:()=>co,TTReorderableColumn:()=>io,TTResizableColumn:()=>oo,TTRow:()=>ho,TTScrollableView:()=>ue,TTSelectableRow:()=>no,TTSelectableRowDblClick:()=>ro,TTSortIcon:()=>lo,TTSortableColumn:()=>to,TreeTable:()=>k,TreeTableCellEditor:()=>po,TreeTableClasses:()=>he,TreeTableModule:()=>go,TreeTableService:()=>V,TreeTableStyle:()=>x,TreeTableToggler:()=>uo});var f=m(49849),t=m(35547),h=m(60414),R=m(4128),C=m(49769),z=m(60177),O=m(84341),u=m(63535),S=m(80998),G=m(5779),W=m(68498),n=m(75517),M=m(94068),Y=m(18165),$=m(81455),A=m(24249),X=m(12886),ne=m(3306),K=m(52423),j=m(18807),Q=m(76439),J=m(61470),Z=m(82950),q=m(38757),ee=m(39393),re=m(16911),te=m(9071),H=m(21413);const ae=["colgroup"],_=["caption"],T=["header"],d=["body"],g=["footer"],p=["summary"],w=["emptymessage"],E=["paginatorleft"],U=["paginatorright"],le=["paginatordropdownitem"],Te=["frozenheader"],we=["frozenbody"],ye=["frozenfooter"],Ce=["frozencolgroup"],ve=["loadingicon"],Se=["reorderindicatorupicon"],xe=["reorderindicatordownicon"],Ee=["sorticon"],Ie=["checkboxicon"],Me=["headercheckboxicon"],ke=["togglericon"],De=["paginatorfirstpagelinkicon"],ze=["paginatorlastpagelinkicon"],Le=["paginatorpreviouspagelinkicon"],Re=["paginatornextpagelinkicon"],Ne=["loader"],Be=["resizeHelper"],Pe=["reorderIndicatorUp"],Ge=["reorderIndicatorDown"],Ve=["table"],Oe=["scrollableView"],He=["scrollableFrozenView"],N=l=>({$implicit:l}),Fe=(l,s)=>({left:l,width:s}),Ae=(l,s)=>[l,s],Ke=l=>({width:l});function Ue(l,s){if(1&l&&t.nrm(0,"i"),2&l){const e=t.XpG(2);t.HbH(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function Ye(l,s){if(1&l&&(h.qSk(),t.nrm(0,"svg",13)),2&l){const e=t.XpG(3);t.HbH(e.cx("loadingIcon")),t.Y8G("spin",!0)}}function $e(l,s){}function We(l,s){1&l&&t.DNE(0,$e,0,0,"ng-template")}function Xe(l,s){if(1&l&&(t.j41(0,"span"),t.DNE(1,We,1,0,null,14),t.k0s()),2&l){const e=t.XpG(3);t.HbH(e.cx("loadingIcon")),t.R7$(),t.Y8G("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function je(l,s){if(1&l&&(t.qex(0),t.DNE(1,Ye,1,3,"svg",12)(2,Xe,2,3,"span",10),t.bVm()),2&l){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),t.R7$(),t.Y8G("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Qe(l,s){if(1&l&&(t.j41(0,"div",9),t.vzT("p-overlay-mask-leave-active"),t.QR4("p-overlay-mask-enter-active"),t.DNE(1,Ue,1,2,"i",10)(2,je,3,2,"ng-container",11),t.k0s()),2&l){const e=t.XpG();t.HbH(e.cx("mask")),t.Y8G("pBind",e.ptm("mask")),t.R7$(),t.Y8G("ngIf",e.loadingIcon),t.R7$(),t.Y8G("ngIf",!e.loadingIcon)}}function Je(l,s){1&l&&t.eu8(0)}function Ze(l,s){if(1&l&&(t.j41(0,"div",9),t.DNE(1,Je,1,0,"ng-container",14),t.k0s()),2&l){const e=t.XpG();t.HbH(e.cx("header")),t.Y8G("pBind",e.ptm("header")),t.R7$(),t.Y8G("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function qe(l,s){1&l&&t.eu8(0)}function et(l,s){if(1&l&&t.DNE(0,qe,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function tt(l,s){1&l&&t.DNE(0,et,1,1,"ng-template",16)}function lt(l,s){1&l&&t.eu8(0)}function ot(l,s){if(1&l&&t.DNE(0,lt,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function it(l,s){1&l&&t.DNE(0,ot,1,1,"ng-template",17)}function nt(l,s){1&l&&t.eu8(0)}function rt(l,s){if(1&l&&t.DNE(0,nt,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function at(l,s){1&l&&t.DNE(0,rt,1,1,"ng-template",18)}function st(l,s){1&l&&t.eu8(0)}function dt(l,s){if(1&l&&t.DNE(0,st,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function ct(l,s){1&l&&t.DNE(0,dt,1,1,"ng-template",19)}function pt(l,s){if(1&l){const e=t.RV6();t.j41(0,"p-paginator",15),t.bIt("onPageChange",function(o){h.eBV(e);const r=t.XpG();return h.Njj(r.onPageChange(o))}),t.DNE(1,tt,1,0,null,11)(2,it,1,0,null,11)(3,at,1,0,null,11)(4,ct,1,0,null,11),t.k0s()}if(2&l){const e=t.XpG();t.Y8G("pt",e.ptm("pcPaginator"))("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale)("unstyled",e.unstyled()),t.R7$(),t.Y8G("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),t.R7$(),t.Y8G("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),t.R7$(),t.Y8G("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),t.R7$(),t.Y8G("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function ht(l,s){1&l&&t.eu8(0)}function ut(l,s){1&l&&t.eu8(0)}function gt(l,s){1&l&&t.eu8(0)}
1function bt(l,s){if(1&l&&(t.j41(0,"div",9)(1,"table",20,0),t.DNE(3,ht,1,0,"ng-container",21),t.j41(4,"thead",22),t.DNE(5,ut,1,0,"ng-container",21),t.k0s(),t.nrm(6,"tbody",23),t.j41(7,"tfoot",22),t.DNE(8,gt,1,0,"ng-container",21),t.k0s()()()),2&l){const e=t.XpG();t.HbH(e.cx("wrapper")),t.Y8G("pBind",e.ptm("wrapper")),t.R7$(),t.Y8G("pBind",e.ptm("table"))("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),t.R7$(2),t.Y8G("ngTemplateOutlet",e.colGroupTemplate||e._colGroupTemplate)("ngTemplateOutletContext",t.eq3(24,N,e.columns)),t.R7$(),t.HbH(e.cx("thead")),t.Y8G("pBind",e.ptm("thead")),t.R7$(),t.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",t.eq3(26,N,e.columns)),t.R7$(),t.HbH(e.cx("tbody")),t.Y8G("pBind",e.ptm("tbody"))("unstyled",e.unstyled())("pTreeTableBody",e.columns)("pTreeTableBodyTemplate",e.bodyTemplate??e._bodyTemplate),t.R7$(),t.HbH(e.cx("tfoot")),t.Y8G("pBind",e.ptm("tfoot")),t.R7$(),t.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",t.eq3(28,N,e.columns))}}function mt(l,s){if(1&l&&t.nrm(0,"div",26,2),2&l){const e=t.XpG(2);t.Y8G("ngClass",t.l_i(7,Ae,e.cx("scrollableView"),e.cx("frozenView")))("ttScrollableView",e.frozenColumns)("unstyled",e.unstyled())("frozen",!0)("ngStyle",t.eq3(10,Ke,e.frozenWidth))("scrollHeight",e.scrollHeight)("pBind",e.ptm("scrollableView"))}}function ft(l,s){if(1&l&&(t.j41(0,"div",9),t.DNE(1,mt,2,12,"div",24),t.nrm(2,"div",25,1),t.k0s()),2&l){const e=t.XpG();t.HbH(e.cx("scrollableWrapper")),t.Y8G("pBind",e.ptm("scrollableWrapper")),t.R7$(),t.Y8G("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),t.R7$(),t.HbH(e.cx("scrollableView")),t.Y8G("pBind",e.ptm("scrollableView"))("ttScrollableView",e.columns)("unstyled",e.unstyled())("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",t.l_i(12,Fe,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function _t(l,s){1&l&&t.eu8(0)}function Tt(l,s){if(1&l&&t.DNE(0,_t,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function wt(l,s){1&l&&t.DNE(0,Tt,1,1,"ng-template",16)}function yt(l,s){1&l&&t.eu8(0)}function Ct(l,s){if(1&l&&t.DNE(0,yt,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function vt(l,s){1&l&&t.DNE(0,Ct,1,1,"ng-template",17)}function St(l,s){1&l&&t.eu8(0)}function xt(l,s){if(1&l&&t.DNE(0,St,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Et(l,s){1&l&&t.DNE(0,xt,1,1,"ng-template",18)}function It(l,s){1&l&&t.eu8(0)}function Mt(l,s){if(1&l&&t.DNE(0,It,1,0,"ng-container",14),2&l){const e=t.XpG(3);t.Y8G("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function kt(l,s){1&l&&t.DNE(0,Mt,1,1,"ng-template",19)}function Dt(l,s){if(1&l){const e=t.RV6();t.j41(0,"p-paginator",15),t.bIt("onPageChange",function(o){h.eBV(e);const r=t.XpG();return h.Njj(r.onPageChange(o))}),t.DNE(1,wt,1,0,null,11)(2,vt,1,0,null,11)(3,Et,1,0,null,11)(4,kt,1,0,null,11),t.k0s()}if(2&l){const e=t.XpG();t.Y8G("pt",e.ptm("pcPaginator"))("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale)("unstyled",e.unstyled()),t.R7$(),t.Y8G("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),t.R7$(),t.Y8G("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),t.R7$(),t.Y8G("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),t.R7$(),t.Y8G("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function zt(l,s){1&l&&t.eu8(0)}function Lt(l,s){if(1&l&&(t.j41(0,"div",9),t.DNE(1,zt,1,0,"ng-container",14),t.k0s()),2&l){const e=t.XpG();t.HbH(e.cx("footer")),t.Y8G("pBind",e.ptm("footer")),t.R7$(),t.Y8G("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Rt(l,s){if(1&l&&t.nrm(0,"div",9,3),2&l){const e=t.XpG();t.HbH(e.cx("columnResizerHelper")),t.xc7("display","none"),t.Y8G("pBind",e.ptm("columnResizerHelper"))}}function Nt(l,s){1&l&&(h.qSk(),t.nrm(0,"svg",28))}function Bt(l,s){}function Pt(l,s){1&l&&t.DNE(0,Bt,0,0,"ng-template")}function Gt(l,s){if(1&l&&(t.j41(0,"span",9,4),t.DNE(2,Nt,1,0,"svg",27)(3,Pt,1,0,null,14),t.k0s()),2&l){const e=t.XpG();t.HbH(e.cx("reorderIndicatorUp")),t.xc7("display","none"),t.Y8G("pBind",e.ptm("reorderIndicatorUp")),t.R7$(2),t.Y8G("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),t.R7$(),t.Y8G("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Vt(l,s){1&l&&(h.qSk(),t.nrm(0,"svg",30))}function Ot(l,s){}function Ht(l,s){1&l&&t.DNE(0,Ot,0,0,"ng-template")}function Ft(l,s){if(1&l&&(t.j41(0,"span",9,5),t.DNE(2,Vt,1,0,"svg",29)(3,Ht,1,0,null,14),t.k0s()),2&l){const e=t.XpG();t.HbH(e.cx("reorderIndicatorDown")),t.xc7("display","none"),t.Y8G("pBind",e.ptm("reorderIndicatorDown")),t.R7$(2),t.Y8G("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),t.R7$(),t.Y8G("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}const At=["pTreeTableBody",""],Kt=(l,s,e,i)=>({$implicit:l,node:s,rowData:e,columns:i}),Ut=(l,s)=>({$implicit:l,frozen:s});function Yt(l,s){1&l&&t.eu8(0)}function $t(l,s){if(1&l&&(t.qex(0),t.DNE(1,Yt,1,0,"ng-container",2),t.bVm()),2&l){const e=t.XpG().$implicit,i=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",i.template)("ngTemplateOutletContext",t.ziG(2,Kt,e,e.node,e.node.data,i.columns))}}function Wt(l,s){1&l&&t.DNE(0,$t,2,7,"ng-container",1),2&l&&t.Y8G("ngIf",s.$implicit.visible)}function Xt(l,s){1&l&&t.eu8(0)}function jt(l,s){if(1&l&&(t.qex(0),t.DNE(1,Xt,1,0,"ng-container",2),t.bVm()),2&l){const e=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",e.tt.emptyMessageTemplate||e.tt._emptyMessageTemplate)("ngTemplateOutletContext",t.l_i(2,Ut,e.columns,e.frozen))}}const Qt=["scrollHeader"],Jt=["scrollHeaderBox"],Zt=["scrollBody"],qt=["scrollTable"],el=["loadingTable"],tl=["scrollFooter"],ll=["scrollFooterBox"],ol=["scrollableAligner"],il=["scroller"],nl=["ttScrollableView",""],rl=l=>({height:l}),pe=(l,s)=>({$implicit:l,options:s}),al=l=>({options:l}),sl=(l,s)=>({"max-height":l,"overflow-y":s}),dl=()=>({});function cl(l,s){1&l&&t.eu8(0)}function pl(l,s){1&l&&t.eu8(0)}function hl(l,s){1&l&&t.eu8(0)}function ul(l,s){if(1&l&&t.DNE(0,hl,1,0,"ng-container",13),2&l){const e=s.$implicit,i=s.options;t.XpG(2);const o=t.sdS(11);t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.l_i(2,pe,e,i))}}function gl(l,s){1&l&&t.eu8(0)}function bl(l,s){if(1&l&&t.DNE(0,gl,1,0,"ng-container",13),2&l){const e=s.options,i=t.XpG(3);t.Y8G("ngTemplateOutlet",i.tt.loaderTemplate||i.tt._loaderTemplate)("ngTemplateOutletContext",t.eq3(2,al,e))}}function ml(l,s){1&l&&(t.qex(0),t.DNE(1,bl,1,4,"ng-template",null,5,t.C5r),t.bVm())}function fl(l,s){if(1&l){const e=t.RV6();t.j41(0,"p-scroller",18,3),t.bIt("onLazyLoad",function(o){h.eBV(e);const r=t.XpG();return h.Njj(r.tt.onLazyItemLoad(o))}),t.DNE(2,ul,1,5,"ng-template",null,4,t.C5r)(4,ml,3,0,"ng-container",16),t.k0s()}if(2&l){const e=t.XpG();t.Aen(t.eq3(10,rl,"flex"!==e.tt.scrollHeight?e.tt.scrollHeight:void 0)),t.Y8G("items",e.tt.serializedValue)("styleClass",e.cx("scrollableBody"))("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions)("pt",e.ptm("virtualScroller")),t.R7$(4),t.Y8G("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function _l(l,s){1&l&&t.eu8(0)}function Tl(l,s){if(1&l&&(t.qex(0),t.j41(1,"div",12,6),t.DNE(3,_l,1,0,"ng-container",13),t.k0s(),t.bVm()),2&l){const e=t.XpG(),i=t.sdS(11);t.R7$(),t.HbH(e.cx("scrollableBody")),t.Y8G("pBind",e.ptm("scrollableBody"))("ngStyle",t.l_i(6,sl,"flex"!==e.tt.scrollHeight?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),t.R7$(2),t.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",t.l_i(10,pe,e.serializedValue,t.lJ4(9,dl)))}}function wl(l,s){1&l&&t.eu8(0)}function yl(l,s){1&l&&t.nrm(0,"div",null,8),2&l&&t.xc7("background-color","transparent")}function Cl(l,s){if(1&l&&(t.j41(0,"table",19,7),t.DNE(2,wl,1,0,"ng-container",13),t.nrm(3,"tbody",20),t.k0s(),t.DNE(4,yl,2,2,"div",21)),2&l){const e=s.$implicit,i=s.options,o=t.XpG();t.Aen(i.contentStyle),t.HbH(o.tt.tableStyleClass),t.Y8G("pBind",o.ptm("table"))("ngClass",i.contentStyleClass)("ngStyle",o.tt.tableStyle),t.R7$(2),t.Y8G("ngTemplateOutlet",o.frozen?o.tt.frozenColGroupTemplate||o.tt._frozenColGroupTemplate||o.tt.colGroupTemplate||o.tt._colGroupTemplate:o.tt.colGroupTemplate||o.tt._colGroupTemplate)("ngTemplateOutletContext",t.eq3(19,N,o.columns)),t.R7$(),t.HbH(o.cx("tbody")),t.Y8G("pBind",o.ptm("tbody"))("pBind",o.ptm("tbody"))("pTreeTableBody",o.columns)("unstyled",o.unstyled())("pTreeTableBodyTemplate",o.frozen?o.tt.frozenBodyTemplate||o.tt._frozenBodyTemplate||o.tt.bodyTemplate||o.tt._bodyTemplate:o.tt.bodyTemplate||o.tt._bodyTemplate)("serializedNodes",e)("frozen",o.frozen),t.R7$(),t.Y8G("ngIf",o.frozen)}}function vl(l,s){1&l&&t.eu8(0)}function Sl(l,s){1&l&&t.eu8(0)}function xl(l,s){if(1&l&&(t.j41(0,"div",11,9)(2,"div",11,10)(4,"table",22),t.DNE(5,vl,1,0,"ng-container",13),t.j41(6,"tfoot",14),t.DNE(7,Sl,1,0,"ng-container",13),t.k0s()()()()),2&l){const e=t.XpG();t.HbH(e.cx("scrollableFooter")),t.Y8G("pBind",e.ptm("scrollableFooter")),t.R7$(2),t.HbH(e.cx("scrollableFooterBox")),t.Y8G("pBind",e.ptm("scrollableFooterBox")),t.R7$(2),t.HbH(e.cx("scrollableFooterTable")),t.Y8G("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle)("pBind",e.ptm("scrollableFooterTable")),t.R7$(),t.Y8G("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",t.eq3(18,N,e.columns)),t.R7$(),t.HbH(e.cx("tfoot")),t.Y8G("pBind",e.ptm("tfoot")),t.R7$(),t.Y8G("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",t.eq3(20,N,e.columns))}}function El(l,s){if(1&l&&(h.qSk(),t.nrm(0,"svg",6)),2&l){const e=t.XpG(2);t.HbH(e.cx("sortableColumnIcon")),t.Y8G("pBind",e.ptm("sortableColumnIcon"))}}function Il(l,s){if(1&l&&(h.qSk(),t.nrm(0,"svg",7)),2&l){const e=t.XpG(2);t.HbH(e.cx("sortableColumnIcon")),t.Y8G("pBind",e.ptm("sortableColumnIcon"))}}function Ml(l,s){if(1&l&&(h.qSk(),t.nrm(0,"svg",8)),2&l){const e=t.XpG(2);t.HbH(e.cx("sortableColumnIcon")),t.Y8G("pBind",e.ptm("sortableColumnIcon"))}}function kl(l,s){if(1&l&&(t.qex(0),t.DNE(1,El,1,3,"svg",3)(2,Il,1,3,"svg",4)(3,Ml,1,3,"svg",5),t.bVm()),2&l){const e=t.XpG();t.R7$(),t.Y8G("ngIf",0===e.sortOrder),t.R7$(),t.Y8G("ngIf",1===e.sortOrder),t.R7$(),t.Y8G("ngIf",-1===e.s
1ortOrder)}}function Dl(l,s){}function zl(l,s){1&l&&t.DNE(0,Dl,0,0,"ng-template")}function Ll(l,s){if(1&l&&(t.j41(0,"span",9),t.DNE(1,zl,1,0,null,10),t.k0s()),2&l){const e=t.XpG();t.HbH(e.cx("sortableColumnIcon")),t.Y8G("pBind",e.ptm("sortableColumnIcon")),t.R7$(),t.Y8G("ngTemplateOutlet",e.tt.sortIconTemplate||e.tt._sortIconTemplate)("ngTemplateOutletContext",t.eq3(5,N,e.sortOrder))}}function Rl(l,s){if(1&l&&t.nrm(0,"p-badge",11),2&l){const e=t.XpG();t.HbH(e.cx("sortableColumnBadge")),t.Y8G("value",e.getBadgeValue())("pt",e.ptm("pcSortableColumnBadge"))("unstyled",e.unstyled())}}const Nl=(l,s)=>({$implicit:l,partialSelected:s});function Bl(l,s){}function Pl(l,s){1&l&&t.DNE(0,Bl,0,0,"ng-template")}function Gl(l,s){if(1&l&&t.DNE(0,Pl,1,0,null,3),2&l){const e=t.XpG(2);t.Y8G("ngTemplateOutlet",e.tt.checkboxIconTemplate||e.tt._checkboxIconTemplate)("ngTemplateOutletContext",t.l_i(2,Nl,e.checked,e.partialChecked))}}function Vl(l,s){1&l&&(t.qex(0),t.DNE(1,Gl,1,5,"ng-template",2),t.bVm())}function Ol(l,s){}function Hl(l,s){1&l&&t.DNE(0,Ol,0,0,"ng-template")}function Fl(l,s){if(1&l&&t.DNE(0,Hl,1,0,null,3),2&l){const e=t.XpG(2);t.Y8G("ngTemplateOutlet",e.tt.headerCheckboxIconTemplate||e.tt._headerCheckboxIconTemplate)("ngTemplateOutletContext",t.eq3(2,N,e.checked))}}function Al(l,s){1&l&&(t.qex(0),t.DNE(1,Fl,1,4,"ng-template",2),t.bVm())}function Kl(l,s){1&l&&t.eu8(0)}function Ul(l,s){if(1&l&&(t.qex(0),t.DNE(1,Kl,1,0,"ng-container",1),t.bVm()),2&l){const e=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",e.inputTemplate)}}function Yl(l,s){1&l&&t.eu8(0)}function $l(l,s){if(1&l&&(t.qex(0),t.DNE(1,Yl,1,0,"ng-container",1),t.bVm()),2&l){const e=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",e.outputTemplate)}}function Wl(l,s){if(1&l&&(h.qSk(),t.nrm(0,"svg",5)),2&l){const e=t.XpG(2);t.Y8G("pBind",e.ptm("nodetoggleicon")),t.BMQ("aria-hidden",!0)}}function Xl(l,s){if(1&l&&(h.qSk(),t.nrm(0,"svg",6)),2&l){const e=t.XpG(2);t.Y8G("pBind",e.ptm("nodetoggleicon")),t.BMQ("aria-hidden",!0)}}function jl(l,s){if(1&l&&(t.qex(0),t.DNE(1,Wl,1,2,"svg",3)(2,Xl,1,2,"svg",4),t.bVm()),2&l){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.rowNode.node.expanded),t.R7$(),t.Y8G("ngIf",!e.rowNode.node.expanded)}}function Ql(l,s){}function Jl(l,s){1&l&&t.DNE(0,Ql,0,0,"ng-template")}const ql={root:({instance:l})=>["p-treetable p-component",{"p-treetable-gridlines":l.showGridlines,"p-treetable-hoverable-rows":l.rowHover||"single"===l.selectionMode||"multiple"===l.selectionMode,"p-treetable-auto-layout":l.autoLayout,"p-treetable-resizable":l.resizableColumns,"p-treetable-resizable-fit":l.resizableColumns&&"fit"===l.columnResizeMode,"p-treetable-flex-scrollable":l.scrollable&&"flex"===l.scrollHeight}],loading:"p-treetable-loading",mask:"p-treetable-mask p-overlay-mask",loadingIcon:"p-treetable-loading-icon",header:"p-treetable-header",pcPaginator:({instance:l})=>["p-treetable-paginator-"+l.paginatorPosition,l.paginatorStyleClass],tableContainer:"p-treetable-table-container",table:({instance:l})=>({"p-treetable-table":!0,"p-treetable-scrollable-table":l.scrollable,"p-treetable-resizable-table":l.resizableColumns,"p-treetable-resizable-table-fit":l.resizableColumns&&"fit"===l.columnResizeMode}),thead:"p-treetable-thead",sortableColumn:({instance:l})=>({"p-sortable-column":l.isEnabled(),"p-treetable-column-sorted":l.sorted}),sortableColumnIcon:"p-treetable-sort-icon",sortableColumnBadge:"p-sortable-column-badge",columnResizer:"p-treetable-column-resizer",columnHeaderContent:"p-treetable-column-header-content",columnTitle:"p-treetable-column-title",sortIcon:"p-treetable-sort-icon",pcSortBadge:"p-treetable-sort-badge",tbody:"p-treetable-tbody",row:({instance:l})=>({"p-treetable-row-selected":l.selected}),contextMenuRow:({instance:l})=>({"p-treetable-contextmenu-row-selected":l.selected}),toggler:"p-treetable-toggler",nodeToggleButton:"p-treetable-node-toggle-button",nodeToggleIcon:"p-treetable-node-toggle-icon",pcNodeCheckbox:"p-treetable-node-checkbox",tfoot:"p-treetable-tfoot",footerCell:({instance:l})=>({"p-treetable-frozen-column":l.columnProp("frozen")}),footer:"p-treetable-footer",columnResizeIndicator:"p-treetable-column-resize-indicator",wrapper:"p-treetable-wrapper",scrollableWrapper:"p-treetable-scrollable-wrapper",scrollableView:"p-treetable-scrollable-view",frozenView:"p-treetable-frozen-view",columnResizerHelper:"p-column-resizer-helper",reorderIndicatorUp:"p-treetable-reorder-indicator-up",reorderIndicatorDown:"p-treetable-reorder-indicator-down",scrollableHeader:"p-treetable-scrollable-header",scrollableHeaderBox:"p-treetable-scrollable-header-box",scrollableHeaderTable:"p-treetable-scrollable-header-table",scrollableBody:"p-treetable-scrollable-body",scrollableFooter:"p-treetable-scrollable-footer",scrollableFooterBox:"p-treetable-scrollable-footer-box",scrollableFooterTable:"p-treetable-scrollable-footer-table"};let x=(()=>{class l extends R.j{name="treetable";style="\n/* For PrimeNG */\n.p-treetable {\n position: relative;\n}\n\n.p-treetable table {\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n\n.p-treetable .p-sortable-column {\n cursor: pointer;\n user-select: none;\n}\n\n.p-treetable .p-sortable-column .p-column-title,\n.p-treetable .p-sortable-column .p-sortable-column-icon,\n.p-treetable .p-sortable-column .p-sortable-column-badge {\n vertical-align: middle;\n}\n\n.p-treetable-sort-icon {\n color: dt('treetable.sort.icon.color');\n font-size: dt('treetable.sort.icon.size');\n width: dt('treetable.sort.icon.size');\n height: dt('treetable.sort.icon.size');\n transition: color dt('treetable.transition.duration');\n}\n\n.p-treetable .p-sortable-column .p-sortable-column-badge {\n display: inline-flex;
1\n align-items: center;\n justify-content: center;\n}\n\n.p-treetable-auto-layout>.p-treetable-wrapper {\n overflow-x: auto;\n}\n\n.p-treetable-auto-layout>.p-treetable-wrapper>table {\n table-layout: auto;\n}\n\n.p-treetable-hoverable-rows .p-treetable-tbody>tr {\n cursor: pointer;\n}\n\n.p-treetable-toggler {\n cursor: pointer;\n user-select: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n overflow: hidden;\n position: relative;\n}\n\n\n/* Scrollable */\n.p-treetable-scrollable-wrapper {\n position: relative;\n}\n\n.p-treetable-scrollable-header,\n.p-treetable-scrollable-footer {\n overflow: hidden;\n flex-shrink: 0;\n}\n\n.p-treetable-scrollable-body {\n overflow: auto;\n position: relative;\n}\n\n.p-treetable-virtual-table {\n position: absolute;\n}\n\n/* Frozen Columns */\n.p-treetable-frozen-view .p-treetable-scrollable-body {\n overflow: hidden;\n}\n\n.p-treetable-frozen-view>.p-treetable-scrollable-body>table>.p-treetable-tbody>tr>td:last-child {\n border-right: 0 none;\n}\n\n.p-treetable-unfrozen-view {\n position: absolute;\n top: 0;\n}\n\n/* Flex Scrollable */\n.p-treetable-flex-scrollable {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n}\n\n.p-treetable-flex-scrollable .p-treetable-scrollable-wrapper,\n.p-treetable-flex-scrollable .p-treetable-scrollable-view {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n}\n\n.p-treetable-flex-scrollable .p-treetable-virtual-scrollable-body {\n flex: 1;\n}\n\n/* Resizable */\n.p-treetable-resizable>.p-treetable-wrapper {\n overflow-x: auto;\n}\n\n.p-treetable-resizable .p-treetable-thead>tr>th,\n.p-treetable-resizable .p-treetable-tfoot>tr>td,\n.p-treetable-resizable .p-treetable-tbody>tr>td {\n overflow: hidden;\n}\n\n.p-treetable-resizable .p-resizable-column {\n background-clip: padding-box;\n position: relative;\n}\n\n.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n\n.p-treetable .p-column-resizer {\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n margin: 0;\n width: dt('treetable.column.resizer.width');\n height: 100%;\n padding: 0px;\n cursor: col-resize;\n border: 1px solid transparent;\n}\n\n.p-treetable .p-column-resizer-helper {\n width: dt('treetable.resize.indicator.width');\n position: absolute;\n z-index: 10;\n display: none;\n background: dt('treetable.resize.indicator.color');\n}\n\n.p-treetable .p-row-editor-init,\n.p-treetable .p-row-editor-save,\n.p-treetable .p-row-editor-cancel {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n\n/* Reorder */\n.p-treetable-reorder-indicator-up,\n.p-treetable-reorder-indicator-down {\n position: absolute;\n display: none;\n}\n\n[ttReorderableColumn] {\n cursor: move;\n}\n\n/* Loader */\n.p-treetable-mask {\n position: absolute !important;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 2;\n}\n\n.p-treetable-loading-icon {\n font-size: dt('treetable.loading.icon.size');\n width: dt('treetable.loading.icon.size');\n height: dt('treetable.loading.icon.size');\n}\n\n/* Virtual Scroll */\n.p-treetable .p-scroller-loading {\n transform: none !important;\n min-height: 0;\n position: sticky;\n top: 0;\n left: 0;\n}\n\n.p-treetable .p-paginator-top {\n border-color: dt('treetable.paginator.top.border.color');\n border-style: solid;\n border-width: dt('treetable.paginator.top.border.width');\n}\n\n.p-treetable .p-paginator-bottom {\n border-color: dt('treetable.paginator.bottom.border.color');\n border-style: solid;\n border-width: dt('treetable.paginator.bottom.border.width');\n}\n\n.p-treetable .p-treetable-header {\n background: dt('treetable.header.background');\n color: dt('treetable.header.color');\n border-color: dt('treetable.header.border.color');\n border-style: solid;\n border-width: dt('treetable.header.border.width');\n padding: dt('treetable.header.padding');\n font-weight: dt('treetable.column.title.font.weight');\n}\n\n.p-treetable .p-treetable-footer {\n background: dt('treetable.footer.background');\n color: dt('treetable.footer.color');\n border-color: dt('treetable.footer.border.color');\n border-style: solid;\n border-width: dt('treetable.footer.border.width');\n padding: dt('treetable.footer.padding');\n font-weight: dt('treetable.column.footer.font.weight');\n}\n\n.p-treetable .p-treetable-thead>tr>th {\n padding: dt('treetable.header.cell.padding');\n background: dt('treetable.header.cell.background');\n border-color: dt('treetable.header.cell.border.color');\n border-style: solid;\n border-width: 0 0 1px 0;\n color: dt('treetable.header.cell.color');\n font-weight: dt('treetable.column.title.font.weight');\n text-align: start;\n transition: background dt('treetable.transition.duration'), color dt('treetable.transition.duration'), border-color dt('treetable.transition.duration'),\n outline-color dt('treetable.transition.duration'), box-shadow dt('treetable.transition.duration');\n}\n\n.p-treetable .p-treetable-tfoot>tr>td {\n text-align: start;\n padding: dt('treetable.footer.cell.padding');\n border-color: dt('treetable.footer.cell.border.color');\n border-style: solid;\n border-width: 0 0 1px 0;\n color: dt('treetable.footer.cell.color');\n background: dt('treetable.footer.cell.background');\n font-weight: dt('treetable.column.footer.font.weight');\n}\n\n.p-treetable .p-sortable-column {\n cursor: pointer;\n user-select: none;\n outline-color: transparent;\n vertical-align: middle;\n}\n\n.p-treetable .p-sortable-column .p-sortable-column-icon {\n color: dt('treetable.sort.icon.color');\n transition: color dt('treetable.transition.duration');\n}\n\n\n.p-treetable .p-sortable-column:not(.p-treetable-column-sorted):hover {\n background: dt('treetable.header.cell.hover.background');\n color: dt('treetable.header.cell.hover.color');\n}\n\n.p-treetable .p-sortable-column:not(.p-treetable-column-sorted):hover .p-treetable-sort-icon {\n color: dt('treetable.sort.icon.hover.color');\n}\n\n.p-treetable .p-sortable-column.p-treetable-column-sorted {\n background: dt('treetable.header.cell.selected.background');\n color: dt('treetable.header.cell.selected.color');\n}\n\n.p-treetable .p-sortable-column.p-treetable-column-sorted .p-treetable-sort-icon {\n color: dt('treetable.header.cell.selected.color');\n}\n\n.p-treetable .p-sortable-column:focus-visible {\n box-shadow: dt('treetable.header.cell.focus.ring.shadow');\n outline: dt('treetable.header.cell.focus.ring.width') dt('treetable.header.cell.focus.ring.style') dt('treetable.header.cell.focus.ring.color');\n outline-offset: dt('treetable.header.cell.focus.ring.offset');\n}\n\n.p-treetable-hoverable .p-treetable-selectable-row {\n cursor: pointer;\n}\n\n.p-treetable .p-treetable-tbody > tr {\n outline-color: transparent;\n background: dt('treetable.row.background');\n color: dt('treetable.row.color');\n}\n\n.p-treetable .p-treetable-tbody>tr>td {\n text-align: start;\n border-color: dt('treetable.body.cell.border.color');\n border-style: solid;\n border-width: 0 0 1px 0;\n padding: dt('treetable.body.cell.padding');\n}\n\n.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler {\n display: inline-flex;
1\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n width: dt('treetable.node.toggle.button.size');\n height: dt('treetable.node.toggle.button.size');\n color: dt('treetable.node.toggle.button.color');\n border: 0 none;\n background: transparent;\n cursor: pointer;\n border-radius: dt('treetable.node.toggle.button.border.radius');\n transition: background dt('treetable.transition.duration'), color dt('treetable.transition.duration'), border-color dt('treetable.transition.duration'),\n outline-color dt('treetable.transition.duration'), box-shadow dt('treetable.transition.duration');\n outline-color: transparent;\n user-select: none;\n}\n\n.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler:enabled:hover {\n color: dt('treetable.node.toggle.button.hover.color');\n background: dt('treetable.node.toggle.button.hover.background');\n}\n\n.p-treetable .p-treetable-tbody>tr>tr.treetable-row-selected .p-treetable-toggler:hover {\n background: dt('treetable.node.toggle.button.selected.hover.background');\n color: dt('treetable.node.toggle.button.selected.hover.color');\n}\n\n.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler:focus-visible {\n box-shadow: dt('treetable.node.toggle.button.focus.ring.shadow');\n outline: dt('treetable.node.toggle.button.focus.ring.width') dt('treetable.node.toggle.button.focus.ring.style') dt('treetable.node.toggle.button.focus.ring.color');\n outline-offset: dt('treetable.node.toggle.button.focus.ring.offset');\n}\n\n\n.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected {\n background: dt('treetable.row.selected.background');\n color: dt('treetable.row.selected.color');\n}\n\n.p-treetable-tbody > tr:focus-visible,\n.p-treetable-tbody > tr.p-treetable-contextmenu-row-selected {\n box-shadow: dt('treetable.row.focus.ring.shadow');\n outline: dt('treetable.row.focus.ring.width') dt('treetable.row.focus.ring.style') dt('treetable.row.focus.ring.color');\n outline-offset: dt('treetable.row.focus.ring.offset');\n}\n\n.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected .p-treetable-toggler {\n color: inherit;\n}\n\n.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected .p-treetable-toggler:hover {\n background: dt('treetable.node.toggle.button.selected.hover.background');\n color: dt('treetable.node.toggle.button.selected.hover.color');\n}\n\n.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody>tr:not(.p-treetable-row-selected):hover {\n background: dt('treetable.row.hover.background');\n color: dt('treetable.row.hover.color');\n}\n\n.p-treetable-gridlines .p-treetable-header {\n border-width: 1px 1px 0 1px;\n}\n\n.p-treetable-gridlines .p-treetable-footer {\n border-width: 0 1px 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-paginator-top {\n border-width: 1px 1px 0 1px;\n}\n\n.p-treetable-gridlines .p-treetable-paginator-bottom {\n border-width: 0 1px 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-thead > tr > th {\n border-width: 1px 0 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-thead > tr > th:last-child {\n border-width: 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tbody > tr > td {\n border-width: 1px 0 0 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tbody > tr > td:last-child {\n border-width: 1px 1px 0 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tbody > tr:last-child > td {\n border-width: 1px 0 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tbody > tr:last-child > td:last-child {\n border-width: 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tfoot > tr > td {\n border-width: 1px 0 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tfoot > tr > td:last-child {\n border-width: 1px 1px 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines .p-treetable-thead + .p-treetable-tfoot > tr > td {\n border-width: 0 0 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines .p-treetable-thead + .p-treetable-tfoot > tr > td:last-child {\n border-width: 0 1px 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-thead):has(.p-treetable-tbody) .p-treetable-tbody > tr > td {\n border-width: 0 0 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-thead):has(.p-treetable-tbody) .p-treetable-tbody > tr > td:last-child {\n border-width: 0 1px 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-tbody):has(.p-treetable-tfoot) .p-treetable-tbody > tr:last-child > td {\n border-width: 0 0 0 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-tbody):has(.p-treetable-tfoot) .p-treetable-tbody > tr:last-child > td:last-child {\n border-width: 0 1px 0 1px;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-header {\n padding: 0.65625rem 0.875rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-thead>tr>th {\n padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-tbody>tr>td {\n padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-tfoot>tr>td {\n padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-footer {\n padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-header {\n padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-thead>tr>th {\n padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-tbody>tr>td {\n padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-tfoot>tr>td {\n padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-footer {\n padding: 0.9375rem 1.25rem;\n}\n\np-treetabletoggler + p-treetablecheckbox .p-checkbox,\np-treetable-toggler + p-treetable-checkbox .p-checkbox,\np-tree-table-toggler + p-tree-table-checkbox .p-checkbox {\n vertical-align: middle;\n}\n\np-treetabletoggler + p-treetablecheckbox + span,\np-treetable-toggler + p-treetable-checkbox + span,\np-tree-table-toggler + p-tree-table-checkbox + span {\n vertical-align: middle;\n}\n\np-treetable-sort-icon {\n display: inline-flex;
1\n align-items: center;\n gap: dt('treetable.header.cell.gap');\n}\n";classes=ql;static \u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(l)))(o||l)}})();static \u0275prov=h.jDH({token:l,factory:l.\u0275fac})}return l})();var he=function(l){return l.root="p-treetable",l.loading="p-treetable-loading",l.mask="p-treetable-mask",l.loadingIcon="p-treetable-loading-icon",l.header="p-treetable-header",l.pcPaginator="p-treetable-paginator-[position]",l.tableContainer="p-treetable-table-container",l.table="p-treetable-table",l.thead="p-treetable-thead",l.columnResizer="p-treetable-column-resizer",l.columnTitle="p-treetable-column-title",l.sortIcon="p-treetable-sort-icon",l.pcSortBadge="p-treetable-sort-badge",l.tbody="p-treetable-tbody",l.nodeToggleButton="p-treetable-node-toggle-button",l.nodeToggleIcon="p-treetable-node-toggle-icon",l.pcNodeCheckbox="p-treetable-node-checkbox",l.emptyMessage="p-treetable-empty-message",l.tfoot="p-treetable-tfoot",l.footer="p-treetable-footer",l.columnResizeIndicator="p-treetable-column-resize-indicator",l.wrapper="p-treetable-wrapper",l.scrollableWrapper="p-treetable-scrollable-wrapper",l.scrollableView="p-treetable-scrollable-view",l.frozenView="p-treetable-frozen-view",l.columnResizerHelper="p-treetable-column-resizer-helper",l.reorderIndicatorUp="p-treetable-reorder-indicator-up",l.reorderIndicatorDown="p-treetable-reorder-indicator-down",l.scrollableHeader="p-treetable-scrollable-header",l.scrollableHeaderBox="p-treetable-scrollable-header-box",l.scrollableHeaderTable="p-treetable-scrollable-header-table",l.scrollableBody="p-treetable-scrollable-body",l.scrollableFooter="p-treetable-scrollable-footer",l.scrollableFooterBox="p-treetable-scrollable-footer-box",l.scrollableFooterTable="p-treetable-scrollable-footer-table",l.sortableColumnIcon="p-sortable-column-icon",l}(he||{});const eo=new h.nKC("TREETABLE_INSTANCE");let V=(()=>{class l{sortSource=new H.B;selectionSource=new H.B;contextMenuSource=new H.B;uiUpdateSource=new H.B;totalRecordsSource=new H.B;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();uiUpdateSource$=this.uiUpdateSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onUIUpdate(e){this.uiUpdateSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}static \u0275fac=function(i){return new(i||l)};static \u0275prov=h.jDH({token:l,factory:l.\u0275fac})}return l})(),k=(()=>{class l extends n.$G{componentName="TreeTable";_componentStyle=(0,h.WQX)(x);bindDirectiveInstance=(0,h.WQX)(M.Y,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}columns;styleClass;tableStyle;tableStyleClass;autoLayout;lazy=!1;lazyLoadOnInit=!0;paginator;rows;first=0;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;customSort;selectionMode;contextMenuSelection;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;compareSelectionBy="deepEquals";rowHover;loading;loadingIcon;showLoader=!0;scrollable;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=150;frozenWidth;frozenColumns;resizableColumns;columnResizeMode="fit";reorderableColumns;contextMenu;rowTrackBy=(e,i)=>i;filters={};globalFilterFields;filterDelay=300;filterMode="lenient";filterLocale;paginatorLocale;get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get value(){return this._value}set value(e){this._value=e}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.log("The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.")}get selectionKeys(){return this._selectionKeys}set selectionKeys(e){this._selectionKeys=e,this.selectionKeysChange.emit(this._selectionKeys)}showGridlines=!1;selectionChange=new h.bkB;contextMenuSelectionChange=new h.bkB;onFilter=new h.bkB;onNodeExpand=new h.bkB;onNodeCollapse=new h.bkB;onPage=new h.bkB;onSort=new h.bkB;onLazyLoad=new h.bkB;sortFunction=new h.bkB;onColResize=new h.bkB;onColReorder=new h.bkB;onNodeSelect=new h.bkB;onNodeUnselect=new h.bkB;onContextMenuSelect=new h.bkB;onHeaderCheckboxToggle=new h.bkB;onEditInit=new h.bkB;onEditComplete=new h.bkB;
1onEditCancel=new h.bkB;selectionKeysChange=new h.bkB;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;tableViewChild;scrollableViewChild;scrollableFrozenViewChild;_value=[];_virtualRowHeight=28;_selectionKeys;serializedValue;_totalRecords=0;_multiSortMeta;_sortField;_sortOrder=1;filteredNodes;filterTimeout;_colGroupTemplate;colGroupTemplate;_captionTemplate;captionTemplate;_headerTemplate;headerTemplate;_bodyTemplate;bodyTemplate;_footerTemplate;footerTemplate;_summaryTemplate;summaryTemplate;_emptyMessageTemplate;emptyMessageTemplate;_paginatorLeftTemplate;paginatorLeftTemplate;_paginatorRightTemplate;paginatorRightTemplate;_paginatorDropdownItemTemplate;paginatorDropdownItemTemplate;_frozenHeaderTemplate;frozenHeaderTemplate;_frozenBodyTemplate;frozenBodyTemplate;_frozenFooterTemplate;frozenFooterTemplate;_frozenColGroupTemplate;frozenColGroupTemplate;_loadingIconTemplate;loadingIconTemplate;_reorderIndicatorUpIconTemplate;reorderIndicatorUpIconTemplate;_reorderIndicatorDownIconTemplate;reorderIndicatorDownIconTemplate;_sortIconTemplate;sortIconTemplate;_checkboxIconTemplate;checkboxIconTemplate;_headerCheckboxIconTemplate;headerCheckboxIconTemplate;_togglerIconTemplate;togglerIconTemplate;_paginatorFirstPageLinkIconTemplate;paginatorFirstPageLinkIconTemplate;_paginatorLastPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;_paginatorPreviousPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;_paginatorNextPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;_loaderTemplate;loaderTemplate;lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;dropPosition;preventSelectionSetterPropagation;_selection;selectedKeys={};rowTouched;editingCell;editingCellData;editingCellField;editingCellClick;documentEditListener;initialized;toggleRowIndex;onInit(){this.lazy&&this.lazyLoadOnInit&&!this.virtualScroll&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.initialized=!0}templates;
1onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break;case"togglericon":this.togglerIconTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loader":this.loaderTemplate=e.template}})}filterService=(0,h.WQX)(G.FilterService);tableService=(0,h.WQX)(V);zone=(0,h.WQX)(h.SKi);onChanges(e){e.value&&(this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&this.sortField?this.sortSingle():"multiple"==this.sortMode&&this.multiSortMeta?this.sortMultiple():this.hasFilter()&&this._filter()),this.updateSerializedValue(),this.tableService.onUIUpdate(this.value)),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateselectedKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1)}updateSerializedValue(){this.serializedValue=[],this.paginator?this.serializePageNodes():this.serializeNodes(null,this.filteredNodes||this.value,0,!0)}serializeNodes(e,i,o,r){if(i&&i.length)for(let a of i){a.parent=e;const c={node:a,parent:e,level:o,visible:r&&(!e||e.expanded)};this.serializedValue.push(c),c.visible&&a.expanded&&this.serializeNodes(a,a.children,o+1,c.visible)}}serializePageNodes(){let e=this.filteredNodes||this.value;if(this.serializedValue=[],e&&e.length){const i=this.lazy?0:this.first;for(let o=i;o<i+this.rows;o++){let r=e[o];r&&(this.serializedValue.push({node:r,parent:null,level:0,visible:!0}),this.serializeNodes(r,r.children,1,!0))}}}updateselectedKeys(){if(this.dataKey&&this._selection)if(this.selectedKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectedKeys[String((0,S.L7)(e.data,this.dataKey))]=1;else this.selectedKeys[String((0,S.L7)(this._selection.data,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.serializePageNodes(),this.onPage.emit({first:this.first,rows:this.rows}),this.tableService.onUIUpdate(this.value),this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.sortSingle(),this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),"multiple"===this.sortMode){let o=i.metaKey||i.ctrlKey,r=this.getSortMeta(e.field);r?o?r.order=-1*r.order:(this._multiSortMeta=[{field:e.field,order:-1*r.order}],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.multiSortMeta.push({f
1ield:e.field,order:this.defaultSortOrder})),this.sortMultiple()}}sortSingle(){if(this.sortField&&this.sortOrder){this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortNodes(this.value),this.hasFilter()&&this._filter());let e={field:this.sortField,order:this.sortOrder};this.onSort.emit(e),this.tableService.onSort(e),this.updateSerializedValue()}}sortNodes(e){if(e&&0!==e.length){this.customSort?this.sortFunction.emit({data:e,mode:this.sortMode,field:this.sortField,order:this.sortOrder}):e.sort((i,o)=>{let r=(0,S.L7)(i.data,this.sortField),a=(0,S.L7)(o.data,this.sortField),c=0;return c=null==r&&null!=a?-1:null!=r&&null==a?1:null==r&&null==a?0:"string"==typeof r&&"string"==typeof a?r.localeCompare(a,void 0,{numeric:!0}):r<a?-1:r>a?1:0,this.sortOrder*c});for(let i of e)this.sortNodes(i.children)}}sortMultiple(){this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortMultipleNodes(this.value),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.updateSerializedValue(),this.tableService.onSort(this.multiSortMeta))}sortMultipleNodes(e){if(e&&0!==e.length){this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):e.sort((i,o)=>this.multisortField(i,o,this.multiSortMeta,0));for(let i of e)this.sortMultipleNodes(i.children)}}multisortField(e,i,o,r){if((0,S.Im)(this.multiSortMeta)||(0,S.Im)(o[r]))return 0;let a=(0,S.L7)(e.data,o[r].field),c=(0,S.L7)(i.data,o[r].field),b=0;if(null==a&&null!=c?b=-1:null!=a&&null==c?b=1:null==a&&null==c&&(b=0),"string"==typeof a||a instanceof String){if(a.localeCompare&&a!=c)return o[r].order*a.localeCompare(c,void 0,{numeric:!0})}else b=a<c?-1:1;return a==c?o.length-1>r?this.multisortField(e,i,o,r+1):0:o[r].order*b}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field===e)return this.multiSortMeta[i];return null}isSorted(e){if("single"===this.sortMode)return this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let i=!1;if(this.multiSortMeta)for(let o=0;o<this.multiSortMeta.length;o++)if(this.multiSortMeta[o].field==e){i=!0;break}return i}}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}onLazyItemLoad(e){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...e,rows:e.last-e.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scrollableViewChild&&this.scrollableViewChild.scrollToVirtualIndex(e),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollToVirtualIndex(e)}scrollTo(e){this.scrollableViewChild&&this.scrollableViewChild.scrollTo(e),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollTo(e)}isEmpty(){let e=this.filteredNodes||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}onColumnResizeBegin(e){let i=(0,u.A3)(this.el?.nativeElement).left;this.lastResizerHelperX=e.pageX-i+this.el?.nativeElement.scrollLeft,e.preventDefault()}onColumnResize(e){let i=(0,u.A3)(this.el?.nativeElement).left;this.el?.nativeElement.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&(0,u.TD)(this.el.nativeElement,{"user-select":"none"}),this.resizeHelperViewChild.nativeElement.style.height=this.el?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.el?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(e,i){let o=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,r=i.offsetWidth,a=r+o;if(r+o>parseInt(i.style.minWidth||15)){if("fit"===this.columnResizeMode){let b=i.nextElementSibling;for(;!b.offsetParent;)b=b.nextElementSibling;if(b){let y=b.offsetWidth-o;if(a>15&&y>parseInt(b.style.minWidth||15))if(this.scrollable){let D=this.findParentScrollableView(i),I=(0,u.kc)(D,'[data-
1pc-section="scrollablebody"] table')||(0,u.kc)(D,'[data-pc-name="virtualscroller"] table'),L=(0,u.kc)(D,'[data-pc-section="scrollableheadertable"]'),B=(0,u.kc)(D,'[data-pc-section="scrollablefootertable"]'),P=(0,u.Dx)(i);this.resizeColGroup(L,P,a,y),this.resizeColGroup(I,P,a,y),this.resizeColGroup(B,P,a,y)}else i.style.width=a+"px",b&&(b.style.width=y+"px")}}else if("expand"===this.columnResizeMode)if(this.scrollable){let b=this.findParentScrollableView(i),y=(0,u.kc)(b,'[data-pc-section="scrollablebody"]')||(0,u.kc)(b,'[data-pc-name="virtualscroller"]'),v=(0,u.kc)(b,'[data-pc-section="scrollableheader"]'),D=(0,u.kc)(b,'[data-pc-section="scrollablefooter"]'),I=(0,u.kc)(b,'[data-pc-section="scrollablebody"] table')||(0,u.kc)(b,'[data-pc-name="virtualscroller"] table'),L=(0,u.kc)(b,'[data-pc-section="scrollableheadertable"]'),B=(0,u.kc)(b,'[data-pc-section="scrollablefootertable"]');I.style.width=I.offsetWidth+o+"px",L.style.width=L.offsetWidth+o+"px",B&&(B.style.width=B.offsetWidth+o+"px");let P=(0,u.Dx)(i);const oe=i?I.offsetWidth+o:a,ie=i?L.offsetWidth+o:a,de=this.el?.nativeElement.offsetWidth>=oe;let ce=(be,me,fe,bo)=>{be&&me&&(be.style.width=bo?fe+(0,u.FY)(y)+"px":"auto",me.style.width=fe+"px")};ce(y,I,oe,de),ce(v,L,ie,de),ce(D,B,ie,de),this.resizeColGroup(L,P,a,null),this.resizeColGroup(I,P,a,null),this.resizeColGroup(B,P,a,null)}else{this.tableViewChild.nativeElement.style.width=this.tableViewChild?.nativeElement.offsetWidth+o+"px",i.style.width=a+"px";let b=this.tableViewChild?.nativeElement.style.width;this.el.nativeElement.style.width=b+"px"}this.onColResize.emit({element:i,delta:o})}this.resizeHelperViewChild.nativeElement.style.display="none",this.el.nativeElement.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.el.nativeElement.style["user-select"]="")}findParentScrollableView(e){if(e){let i=e.parentElement;for(;i&&!(0,u.kc)(i,'[data-pc-section="scrollableview"]');)i=i.parentElement;return i}return null}resizeColGroup(e,i,o,r){if(e){let a="COLGROUP"===e.children[0].nodeName?e.children[0]:null;if(!a)throw"Scrollable tables require a colgroup to support resizable columns";{let c=a.children[i],b=c.nextElementSibling;c.style.width=o+"px",b&&r&&(b.style.width=r+"px")}}}onColumnDragStart(e,i){this.reorderIconWidth=(0,u.cZ)(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=(0,u.tL)(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let o=(0,u.A3)(this.el?.nativeElement),r=(0,u.A3)(i);if(this.draggedColumn!=i){let a=r.left-o.left,b=r.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-o.top+i.offsetHeight+"px",e.pageX>b?(this.reorderIndicatorUpViewChild.nativeElement.style.left=a+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=a+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=a-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=a-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&(e.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let o=$.DV.indexWithinGroup(this.draggedColumn,"ttreorderablecolumn"),r=$.DV.indexWithinGroup(i,"ttreorderablecolumn"),a=o!=r;a&&(r-o==1&&-1===this.dropPosition||o-r==1&&1===this.dropPosition)&&(a=!1),a&&r<o&&1===this.dropPosition&&(r+=1),a&&r>o&&-1===this.dropPosition&&(r-=1),a&&((0,S.Pj)(this.columns,o,r),this.onColReorder.emit({dragIndex:o,dropIndex:r,columns:this.columns})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}handleRowClick(e){let i=e.originalEvent.target.nodeName;if("INPUT"!=i&&"BUTTON"!=i&&"A"!=i&&!(0,u.JD)(e.originalEvent.target)){if(this.selectionMode){this.preventSelectionSetterPropagation=!0;let o=e.rowNode,r=this.isSelected(o.node),a=!this.rowTouched&&this.metaKeySelection,c=this.dataKey?String((0,S.L7)(o.node.data,this.dataKey)):null;if(a){let b=e.originalEvent,y=b.metaKey||b.ctrlKey;
1if(r&&y){if(this.isSingleSelectionMode())this._selection=null,this.selectedKeys={},this.selectionChange.emit(null);else{let v=this.findIndexInSelection(o.node);this._selection=this.selection.filter((D,I)=>I!=v),this.selectionChange.emit(this.selection),c&&delete this.selectedKeys[c]}this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:o.node,type:"row"})}else this.isSingleSelectionMode()?(this._selection=o.node,this.selectionChange.emit(o.node),c&&(this.selectedKeys={},this.selectedKeys[c]=1)):this.isMultipleSelectionMode()&&(y?this._selection=this.selection||[]:(this._selection=[],this.selectedKeys={}),this._selection=[...this.selection,o.node],this.selectionChange.emit(this.selection),c&&(this.selectedKeys[c]=1)),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:o.node,type:"row",index:e.rowIndex})}else if("single"===this.selectionMode)r?(this._selection=null,this.selectedKeys={},this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:o.node,type:"row"})):(this._selection=o.node,this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:o.node,type:"row",index:e.rowIndex}),c&&(this.selectedKeys={},this.selectedKeys[c]=1));else if("multiple"===this.selectionMode)if(r){let b=this.findIndexInSelection(o.node);this._selection=this.selection.filter((y,v)=>v!=b),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:o.node,type:"row"}),c&&delete this.selectedKeys[c]}else this._selection=this.selection?[...this.selection,o.node]:[o.node],this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:o.node,type:"row",index:e.rowIndex}),c&&(this.selectedKeys[c]=1);this.tableService.onSelectionChange()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const i=e.rowNode.node,o=()=>{this.contextMenu.show(e.originalEvent),this.contextMenu.hideCallback=()=>{this.contextMenuSelection=null,this.contextMenuSelectionChange.emit(),this.tableService.onContextMenu(null)}};if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.tableService.onContextMenu(i),o(),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:i});else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let r=this.isSelected(i),a=this.dataKey?String((0,S.L7)(i.data,this.dataKey)):null;r||(this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i)):this.isMultipleSelectionMode()&&(this.selection=[i],this.selectionChange.emit(this.selection)),a&&(this.selectedKeys[a]=1)),this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.tableService.onContextMenu(i),o(),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:i})}}}toggleNodeWithCheckbox(e){this.selection=this.selection||[],this.preventSelectionSetterPropagation=!0;let i=e.rowNode.node;this.isSelected(i)?(this.propagateSelectionDown(i,!1),e.rowNode.parent&&this.prop
1agateSelectionUp(i.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.propagateSelectionDown(i,!0),e.rowNode.parent&&this.propagateSelectionUp(i.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:i})),this.tableService.onSelectionChange()}toggleNodesWithCheckbox(e,i){let o=this.filteredNodes||this.value;this._selection=i&&o?o.slice():[],this.toggleAll(i),i||(this._selection=[],this.selectedKeys={}),this.preventSelectionSetterPropagation=!0,this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i})}toggleAll(e){let i=this.filteredNodes||this.value;if(this.selectionKeys){if(i&&i.length){for(let o of i)this.propagateDown(o,e);this.selectionKeysChange.emit(this.selectionKeys)}}else if(i&&i.length)for(let o of i)this.propagateSelectionDown(o,e)}propagateSelectionUp(e,i){if(e.children&&e.children.length){let r=0,a=!1,c=this.dataKey?String((0,S.L7)(e.data,this.dataKey)):null;for(let b of e.children)this.isSelected(b)?r++:b.partialSelected&&(a=!0);if(i&&r==e.children.length)this._selection=[...this.selection||[],e],e.partialSelected=!1,c&&(this.selectedKeys[c]=1);else{if(!i){let b=this.findIndexInSelection(e);b>=0&&(this._selection=this.selection.filter((y,v)=>v!=b),c&&delete this.selectedKeys[c])}e.partialSelected=!!(a||r>0&&r!=e.children.length)}}let o=e.parent;e.checked=i,o&&this.propagateSelectionUp(o,i)}propagateSelectionDown(e,i){let o=this.findIndexInSelection(e),r=this.dataKey?String((0,S.L7)(e.data,this.dataKey)):null;if(i&&-1==o?(this._selection=[...this.selection||[],e],r&&(this.selectedKeys[r]=1)):!i&&o>-1&&(this._selection=this.selection.filter((a,c)=>c!=o),r&&delete this.selectedKeys[r]),e.partialSelected=!1,e.checked=i,e.children&&e.children.length)for(let a of e.children)this.propagateSelectionDown(a,i)}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?e.hasOwnProperty("checked")?e.checked:void 0!==this.selectedKeys[(0,S.L7)(e.data,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}isNodeSelected(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.nodeKey(e)]?.checked}isNodePartialSelected(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.nodeKey(e)]?.partialChecked}nodeKey(e){return(0,S.L7)(e,this.dataKey)||(0,S.L7)(e?.data,this.dataKey)}toggleCheckbox(e){let{rowNode:i,check:o,originalEvent:r}=e,a=i.node;
1this.selectionKeys?(this.propagateDown(a,o),a.parent&&this.propagateUp(a.parent,o),this.selectionKeysChange.emit(this.selectionKeys)):this.toggleNodeWithCheckbox({originalEvent:r,rowNode:i}),this.tableService.onSelectionChange()}propagateDown(e,i){if(i?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:delete this.selectionKeys[this.nodeKey(e)],e.children&&e.children.length)for(let o of e.children)this.propagateDown(o,i)}propagateUp(e,i){let o=0,r=!1;for(let c of e.children)this.selectionKeys[this.nodeKey(c)]&&this.selectionKeys[this.nodeKey(c)].checked?o++:this.selectionKeys[this.nodeKey(c)]&&this.selectionKeys[this.nodeKey(c)].partialChecked&&(r=!0);i&&o===e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:(i||delete this.selectionKeys[this.nodeKey(e)],this.selectionKeys[this.nodeKey(e)]=r||o>0&&o!==e.children.length?{checked:!1,partialChecked:!0}:{checked:!1,partialChecked:!1});let a=e.parent;a&&this.propagateUp(a,i)}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length)for(let o=0;o<this.selection.length;o++)if(this.equals(e,this.selection[o])){i=o;break}return i}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}equals(e,i){return"equals"===this.compareSelectionBy?(0,S.aI)(e,i):(0,S.aI)(e.data,i.data,this.dataKey)}filter(e,i,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay)}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let i;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");i=this.globalFilterFields||this.columns}this.filteredNodes=[];const o="strict"===this.filterMode;let r=!1;for(let a of this.value){let v,c={...a},b=!0,y=!1;for(let I in this.filters)if(this.filters.hasOwnProperty(I)&&"global"!==I){let L=this.filters[I];if(v={filterField:I,filterValue:L.value,filterConstraint:this.filterService.filters[L.matchMode||"startsWith"],isStrictMode:o},(o&&!(this.findFilteredNodes(c,v)||this.isFilterMatched(c,v))||!o&&!(this.isFilterMatched(c,v)||this.findFilteredNodes(c,v)))&&(b=!1),!b)break}if(this.filters.global&&!y&&i){let L,I={...c};v={filterField:L,filterValue:this.filters.global.value,filterConstraint:this.filterService.filters[this.filters.global.matchMode],isStrictMode:o,globalFilterFieldsArray:i},(o&&(this.findFilteredNodes(I,v)||this.isFilterMatched(I,v))||!o&&(this.isFilterMatched(I,v)||this.findFilteredNodes(I,v)))&&(y=!0,c=I)}let D=b;this.filters.global&&(D=b&&y),D&&this.filteredNodes.push(c),r=r||!b||y||b&&this.filteredNodes.length>0||!y&&0===this.filteredNodes.length}r||(this.filteredNodes=null),this.paginator&&(this.totalRecords=this.filteredNodes?this.filteredNodes.length:this.value?this.value.length:0)}else this.filteredNodes=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);this.cd.markForCheck()}this.first=0;const e=this.filteredNodes||this.value;this.onFilter.emit({filters:this.filters,filteredValue:e}),this.tableService.onUIUpdate(e),this.updateSerializedValue(),this.scrollable&&this.resetScrollTop()}findFilteredNodes(e,i){if(e){let o=!1;if(e.children){let r=[...e.children];e.children=[];for(let a of r){let c={...a};this.isFilterMatched(c,i)&&(o=!0,e.children.push(c))}}if(o)return!0}}isFilterMatched(e,i){let{filterField:o,filterValue:r,filterConstraint:a,isStrictMode:c,globalFilterFieldsArray:b}=i,y=!1;const v=D=>a((0,S.L7)(e.data,D),r,this.filterLocale);return y=b?.length?b.some(D=>v(D.field||D)):v(o),(!y||c&&!this.isNodeLeaf(e))&&(y=this.findFilteredNodes(e,{filterField:o,filterValue:r,filterConstraint:a,isStrictMode:c,globalFilterFieldsArray:b})||y),y}isNodeLeaf(e){return!1!==e.leaf&&!(e.children&&e.children.length)}hasFilter(){let e=!0;for(let i in this.filters)if(this.filters.hasOwnProperty(i)){e=!1;break}return!e}reset(){this._sortField=null,this._sortOrder=1,this._multiSortMeta=null,this.tableService.onSort(null),this.filteredNodes=null,this.filters={},this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}updateEditingCell(e,i,o){this.editingCell=e,this.editingCellData=i,this.editingCellField=o,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===(0,u.I6)(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.editingCellClick&&this.isEditingCellValid()&&(!this.$unstyled()&&(0,u.vy)(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData}),this.editingCellField=null,this.editingCellData=null,this.unbindDocumentEditListener()),this.editingCellClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}onDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.editingCellField=null,this.editingCellData=null,this.initialized=null}get dataP(){return this.cn({scrollable:this.scrollable,"flex-scrollable":this.scrollable&&"flex"===this.scrollHeight,loading:this.loading,empty:this.isEmpty()})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(l)))(o||l)}})();static \u0275cmp=t.VBU({type:l,selectors:[["p-treeTable"],["p-treetable"],["p-tree-table"]],contentQueries:function(i,o,r){if(1&i&&t.wni(r,ae,4)(r,_,4)(r,T,4)(r,d,4)(r,g,4)(r,p,4)(r,w,4)(r,E,4)(r,U,4)(r,le,4)(r,Te,4)(r,we,4)(r,ye,4)(r,Ce,4)(r,ve,4)(r,Se,4)(r,xe,4)(r,Ee,4)(r,Ie,4)(r,Me,4)(r,ke,4)(r,De,4)(r,ze,4)(r,Le,4)(r,Re,4)(r,Ne,4)(r,G.PrimeTemplate,4),2&i){let a;t.mGM(a=t.lsd())&&(o._colGroupTemplate=a.first),t.mGM(a=t.lsd())&&(o._captionTemplate=a.first),t.mGM(a=t.lsd())&&(o._headerTemplate=a.first),t.mGM(a=t.lsd())&&(o._bodyTemplate=a.first),t.mGM(a=t.lsd())&&(o._footerTemplate=a.first),t.mGM(a=t.lsd())&&(o._summaryTemplate=a.first),t.mGM(a=t.lsd())&&(o._emptyMessageTemplate=a.first),t.mGM(a=t.lsd())&&(o._paginatorLeftTemplate=a.first),t.mGM(a=t.lsd())&&(o._paginatorRightTemplate=a.first),t.mGM(a=t.lsd())&&(o._paginatorDropdownItemTemplate=a.first),t.mGM(a=t.lsd())&&(o._frozenHeaderTemplate=a.first),t.mGM(a=t.lsd())&&(o._frozenBodyTemplate=a.first),t.mGM(a=t.lsd())&&(o._frozenFooterTemplate=a.first),t.mGM(a=t.lsd())&&(o._frozenColGroupTemplate=a.first),t.mGM(a=t.lsd())&&(o._loadingIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._reorderIndicatorUpIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._reorderIndicatorDownIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._sortIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._checkboxIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._headerCheckboxIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._togglerIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._paginatorFirstPageLinkIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._paginatorLastPageLinkIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._paginatorPreviousPageLinkIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._paginatorNextPageLinkIconTemplate=a.first),t.mGM(a=t.lsd())&&(o._loaderTemplate=a.first),t.mGM(a=t.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&t.GBs(Be,5)(Pe,5)(Ge,5)(Ve,5)(Oe,5)(He,5),2&i){let r;t.mGM(r=t.lsd())&&(o.resizeHelperViewChild=r.first),t.mGM(r=t.lsd())&&(o.reorderIndicatorUpViewChild=r.first),t.mGM(r=t.lsd())&&(o.reorderIndicatorDownViewChild=r.first),t.mGM(r=t.lsd())&&(o.tableViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollableViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollableFrozenViewChild=r.first)}},hostVars:4,hostBindings:function(i,o){2&i&&(t.BMQ("data-p",o.dataP)("data-scrollselectors",".p-treetable-scrollable-body"),t.HbH(o.cn(o.cx("root"),o.styleClass)))},inputs:{columns:"columns",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",autoLayout:[2,"autoLayout","autoLayout",f.booleanAttribute],lazy:[2,"lazy","lazy",f.booleanAttribute],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",f.booleanAttribute],paginator:[2,"paginator","paginator",f.booleanAttribute],rows:[2,"rows","rows",f.numberAttribute],first:[2,"first","first",f.numberAttribute],pageLinks:[2,"pageLinks","pageLinks",f.numberAttribute],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",f.booleanAttribute],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",f.booleanAttribute],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",f.booleanAttribute],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",f.booleanAttribute],showPageLinks:[2,"showPageLinks","showPageLinks",f.booleanAttribute],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",f.numberAttribute],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",f.booleanAttribute],customSort:[2,"customSort","customSort",f.booleanAttribute],selectionMode:"selectionMode",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",f.booleanAttribute],compareSelectionBy:"compareSelectionBy",rowHover:[2,"rowHover","rowHover",f.booleanAttribute],loading:[2,"loading","loading",f.booleanAttribute],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",f.booleanAttribute],scrollable:[2,"scrollable","scrollable",f.booleanAttribute],scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",f.booleanAttribute],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",f.numberAttribute],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",f.numberAttribute],frozenWidth:"frozenWidth",frozenColumns:"frozenColumns",resizableColumns:[2,"resizableColumns","resizableColumns",f.booleanAttribute],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",f.booleanAttribute],contextMenu:"contextMenu",rowTrackBy:"rowTrackBy",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",f.numberAttribute],filterMode:"filterMode",filterLocale:"filterLocale",paginatorLocale:"paginatorLocale",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",value:"value",virtualRowHeight:"virtualRowHeight",selectionKeys:"selectionKeys",showGridlines:[2,"showGridlines","showGridlines",f.booleanAttribute]},outputs:{selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onFilter:"onFilter",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onPage:"onPage",onSort:"onSort",onLazyLoad:"onLazyLoad",sortFunction:"sortFunction",onColResize:"onColResize",onColReorder:"onColReorder",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onContextMenuSelect:"onContextMenuSelect",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",selectionKeysChange:"selectionKeysChange"},standalone:!1,features:[t.Jv_([V,x,{provide:eo,useExisting:l},{provide:n.bt,useExisting:l}]),t.nM4([M.Y]),t.Vt3],decls:10,vars:10,consts:[["table",""],["scrollableView",""],["scrollableFrozenView",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"pBind","class",4,"ngIf"],[3,"pt","rows","first","totalRecords","pageLinkSize","styleClass","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","locale","unstyled","onPageChange",4,"ngIf"],[3,"pBind","class","display",4,"ngIf"],[3,"pBind"],[3,"class",4,"ngIf"],[4,"ngIf"],["data-p-icon","spinner",3,"spin","class",4,"ngIf"],["data-p-icon","spinner",3,"spin"],[4,"ngTemplateOutlet"],[3,"onPageChange","pt","rows","first","totalRecords","pageLinkSize","styleClass","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","locale","unstyled"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],["role","treegrid",3,"pBind","ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",3,"pBind"],["role","rowgroup",3,"pBind","unstyled","pTreeTableBody","pTreeTableBodyTemplate"],[3,"ngClass","ttScrollableView","unstyled","frozen","ngStyle","scrollHeight","pBind",4,"ngIf"],[3,"pBind","ttScrollableView","unstyled","frozen","scrollHeight","ngStyle"],[3,"ngClass","ttScrollableView","unstyled","frozen","ngStyle","scrollHeight","pBind"],["data-p-icon","arrow-down",4,"ngIf"],["data-p-icon","arrow-down"],["data-p-icon","arrow-up",4,"ngIf"],["data-p-icon","arrow-up"]],template:function(i,o){1&i&&t.DNE(0,Qe,3,5,"div",6)(1,Ze,2,4,"div",6)(2,pt,5,23,"p-paginator",7)(3,bt,9,30,"div",6)(4,ft,4,15,"div",6)(5,Dt,5,23,"p-paginator",7)(6,Lt,2,4,"div",6)(7,Rt,2,5,"div",8)(8,Gt,4,7,"span",8)(9,Ft,4,7,"span",8),2&i&&(t.Y8G("ngIf",o.loading&&o.showLoader),t.R7$(),t.Y8G("ngIf",o.captionTemplate||o._captionTemplate),t.R7$(),t.Y8G("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),t.R7$(),t.Y8G("ngIf",!o.scrollable),t.R7$(),t.Y8G("ngIf",o.scrollable),t.R7$(),t.Y8G("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),t.R7$(),t.Y8G("ngIf",o.summaryTemplate||o._summaryTemplate),t.R7$(),t.Y8G("ngIf",o.resizableColumns),t.R7$(),t.Y8G("ngIf",o.reorderableColumns),t.R7$(),t.Y8G("ngIf",o.reorderableColumns))},dependencies:()=>
1[C.YU,C.bT,C.T3,C.B3,ee.Paginator,G.PrimeTemplate,q.N,A.Z,X.K,M.Y,ue,se],encapsulation:2})}return l})(),se=(()=>{class l extends n.$G{tt;treeTableService;columns;template;frozen;serializedNodes;scrollerOptions;subscription;constructor(e,i){super(),this.tt=e,this.treeTableService=i,this.subscription=this.tt.tableService.uiUpdateSource$.subscribe(()=>{this.tt.virtualScroll&&this.cd.detectChanges()})}getScrollerOption(e,i){return this.tt.virtualScroll&&(i=i||this.scrollerOptions)?i[e]:null}getRowIndex(e){const i=this.getScrollerOption("getItemOptions");return i?i(e).index:e}onDestroy(){this.subscription&&this.subscription.unsubscribe()}get dataP(){return this.cn({hoverable:this.tt.rowHover||this.tt.selectionMode,frozen:this.frozen})}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(V))};static \u0275cmp=t.VBU({type:l,selectors:[["","pTreeTableBody",""]],hostVars:1,hostBindings:function(i,o){2&i&&t.BMQ("data-p",o.dataP)},inputs:{columns:[0,"pTreeTableBody","columns"],template:[0,"pTreeTableBodyTemplate","template"],frozen:[2,"frozen","frozen",f.booleanAttribute],serializedNodes:"serializedNodes",scrollerOptions:"scrollerOptions"},standalone:!1,features:[t.Vt3],attrs:At,decls:2,vars:3,consts:[["ngFor","",3,"ngForOf","ngForTrackBy"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&t.DNE(0,Wt,1,1,"ng-template",0)(1,jt,2,5,"ng-container",1),2&i&&(t.Y8G("ngForOf",o.serializedNodes||o.tt.serializedValue)("ngForTrackBy",o.tt.rowTrackBy),t.R7$(),t.Y8G("ngIf",o.tt.isEmpty()))},dependencies:[C.Sq,C.bT,C.T3],encapsulation:2})}return l})(),ue=(()=>{class l extends n.$G{tt;zone;hostName="TreeTable";columns;frozen;scrollHeaderViewChild;scrollHeaderBoxViewChild;scrollBodyViewChild;scrollTableViewChild;scrollLoadingTableViewChild;scrollFooterViewChild;scrollFooterBoxViewChild;scrollableAlignerViewChild;scroller;headerScrollListener;bodyScrollListener;footerScrollListener;frozenSiblingBody;totalRecordsSubscription;_scrollHeight;preventBodyScrollPropagation;_componentStyle=(0,h.WQX)(x);get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e,null!=e&&(e.includes("%")||e.includes("calc"))&&console.log('Percentage scroll height calculation is removed in favor of the more performant CSS based flex mode, use scrollHeight="flex" instead.')}constructor(e,i){super(),this.tt=e,this.zone=i}onAfterViewInit(){if((0,z.isPlatformBrowser)(this.platformId)){if(this.frozen)this.scrollableAlignerViewChild&&this.scrollableAlignerViewChild.nativeElement&&(this.scrollableAlignerViewChild.nativeElement.style.height=(0,u.oN)()+"px");else{(this.tt.frozenColumns||this.tt.frozenBodyTemplate||this.tt._frozenBodyTemplate)&&(0,u.iQ)(this.el.nativeElement,"p-treetable-unfrozen-view");let e=this.el.nativeElement.previousElementSibling;if(e&&(this.frozenSiblingBody=(0,u.kc)(e,this.tt.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-section="scrollablebody"]')),this.scrollHeight){let i=(0,u.FY)();this.scrollHeaderBoxViewChild?.nativeElement&&(this.scrollHeaderBoxViewChild.nativeElement.style.paddingRight=i+"px"),this.scrollFooterBoxViewChild&&this.scrollFooterBoxViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.paddingRight=i+"px")}}this.bindEvents()}}bindEvents(){(0,z.isPlatformBrowser)(this.platformId)&&this.zone.runOutsideAngular(()=>{this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.headerScrollListener=this.renderer.listen(this.scrollHeaderBoxViewChild?.nativeElement,"scroll",this.onHeaderScroll.bind(this))),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.footerScrollListener=this.renderer.listen(this.scrollFooterViewChild.nativeElement,"scroll",this.onFooterScroll.bind(this))),this.frozen||(this.bodyScrollListener=this.renderer.listen(this.tt.virtualScroll?(this.scroller?.getElementRef()).nativeElement:this.scrollBodyViewChild?.nativeElement,"scroll",this.onBodyScroll.bind(this)))})}unbindEvents(){(0,z.isPlatformBrowser)(this.platformId)&&(this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&this.headerScrollListener&&(this.headerScrollListener(),this.headerScrollListener=null),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&this.footerScrollListener&&(this.footerScrollListener(),this.footerScrollListener=null),this.scrollBodyViewChild&&this.scrollBodyViewChild.nativeElement&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null),this.scroller&&this.scroller.getElementRef()&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null))}onHeaderScroll(){const e=this.scrollHeaderViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onFooterScroll(){const e=this.scrollFooterViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onBodyScroll(e){this.preventBodyScrollPropagation?this.preventBodyScrollPropagation=!1:(this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderBoxViewChild.nativeElement.style.marginLeft=-1*e.target.scrollLeft+"px"),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.marginLeft=-1*e.target.scrollLeft+"px"),this.frozenSiblingBody&&(this.frozenSiblingBody.scrollTop=e.target.scrollTop))}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.scroller?this.scroller.scrollTo(e):this.scrollBodyViewChild?.nativeElement.scrollTo?this.scrollBodyViewChild.nativeElement.scrollTo(e):(this.scrollBodyViewChild.nativeElement.scrollLeft=e.left,this.scrollBodyViewChild.nativeElement.scrollTop=e.top)}onDestroy(){this.unbindEvents(),this.frozenSiblingBody=null}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(h.SKi))};static \u0275cmp=t.VBU({type:l,selectors:[["","ttScrollableView",""]],viewQuery:function(i,o){if(1&i&&t.GBs(Qt,5)(Jt,5)(Zt,5)(qt,5)(el,5)(tl,5)(ll,5)(ol,5)(il,5),2&i){let r;t.mGM(r=t.lsd())&&(o.scrollHeaderViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollHeaderBoxViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollBodyViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollTableViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollLoadingTableViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollFooterViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollFooterBoxViewChild=r.first),t.mGM(r=t.lsd())&&(o.scrollableAlignerViewChild=r.first),t.mGM(r=t.lsd())&&(o.scroller=r.first)}},inputs:{columns:[0,"ttScrollableView","columns"],frozen:[2,"frozen","frozen",f.booleanAttribute],scrollHeight:"scrollHeight"},standalone:!1,features:[t.Jv_([x]),t.Vt3],attrs:nl,decls:13,vars:24,consts:[["scrollHeader",""],["scrollHeaderBox",""],["buildInItems",""],["scroller",""],["content",""],["loader",""],["scrollBody",""],["scrollTable",""],["scrollableAligner",""],["scrollFooter",""],["scrollFooterBox",""],[3,"pBind"],[3,"pBind","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",3,"pBind"],[3,"items","styleClass","style","scrollHeight","itemSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"onLazyLoad","items","styleClass","scrollHeight","itemSize","lazy","options","pt"],["role","treegrid",3,"pBind","ngClass","ngStyle"],["role","rowgroup",3,"pBind","pTreeTableBody","unstyled","pTreeTableBodyTemplate","serializedNodes","frozen"],[3,"background-color",4,"ngIf"],[3,"ngClass","ngStyle","pBind"]],template:function(i,o){1&i&&(t.j41(0,"div",11,0)(2,"div",11,1)(4,"table",12),t.DNE(5,cl,1,0,"ng-container",13),t.j41(6,"thead",14),t.DNE(7,pl,1,0,"ng-container",13),t.k0s()()()(),t.DNE(8,fl,5,12,"p-scroller",15)(9,Tl,4,13,"ng-container",16)(10,Cl,5,21,"ng-template",null,2,t.C5r)(12,xl,8,22,"div",17)),2&i&&(t.HbH(o.cx("scrollableHeader")),t.Y8G("pBind",o.ptm("scrollableHeader")),t.R7$(2),t.HbH(o.cx("scrollableHeaderBox")),t.Y8G("pBind",o.ptm("scrollableHeaderBox")),t.R7$(2),t.HbH(o.cn(o.cx("scrollableHeaderTable"),o.tt.tableStyleClass)),t.Y8G("pBind",o.ptm("scrollableHeaderTable"))("ngStyle",o.tt.tableStyle),t.R7$(),t.Y8G("ngTemplateOutlet",o.frozen?o.tt.frozenColGroupTemplate||o.tt._frozenColGroupTemplate||o.tt.colGroupTemplate||o.tt._colGroupTemplate:o.tt.colGroupTemplate||o.tt._colGroupTemplate)("ngTemplateOutletContext",t.eq3(20,N,o.columns)),t.R7$(),t.HbH(o.cx("thead")),t.Y8G("pBind",o.ptm("thead")),t.R7$(),t.Y8G("ngTemplateOutlet",o.frozen?o.tt.frozenHeaderTemplate||o.tt._frozenHeaderTemplate||o.tt.headerTemplate||o.tt._headerTemplate:o.tt.headerTemplate||o.tt._headerTemplate)("ngTemplateOutletContext",t.eq3(22,N,o.columns)),t.R7$(),t.Y8G("ngIf",o.tt.virtualScroll),t.R7$(),t.Y8G("ngIf",!o.tt.virtualScroll),t.R7$(3),t.Y8G("ngIf",o.tt.footerTemplate||o.tt._footerTemplate))},dependencies:()=>[C.YU,C.bT,C.T3,C.B3,te.HO,M.Y,se],encapsulation:2})}return l})(),to=(()=>{class l extends n.$G{tt;hostName="TreeTable ";bindDirectiveInstance=(0,h.WQX)(M.Y,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("sortableColumn",{context:{sorted:this.sorted}}))}field;ttSortableColumnDisabled;sorted;subscription;_componentStyle=(0,h.WQX)(x);
1get ariaSorted(){return this.sorted&&this.tt.sortOrder<0?"descending":this.sorted&&this.tt.sortOrder>0?"ascending":"none"}constructor(e){super(),this.tt=e,this.isEnabled()&&(this.subscription=this.tt.tableService.sortSource$.subscribe(i=>{this.updateSortState()}))}onInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.tt.isSorted(this.field)}onClick(e){this.isEnabled()&&(this.updateSortState(),this.tt.sort({originalEvent:e,field:this.field}),(0,u.wr)())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.ttSortableColumnDisabled}onDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||l)(t.rXU(k))};static \u0275dir=t.FsC({type:l,selectors:[["","ttSortableColumn",""]],hostAttrs:["role","columnheader"],hostVars:4,hostBindings:function(i,o){1&i&&t.bIt("click",function(a){return o.onClick(a)})("keydown.enter",function(a){return o.onEnterKey(a)}),2&i&&(t.Avn("tabIndex",o.isEnabled()?"0":null),t.BMQ("aria-sort",o.ariaSorted),t.HbH(o.cx("sortableColumn")))},inputs:{field:[0,"ttSortableColumn","field"],ttSortableColumnDisabled:[2,"ttSortableColumnDisabled","ttSortableColumnDisabled",f.booleanAttribute]},standalone:!1,features:[t.Jv_([x]),t.nM4([M.Y]),t.Vt3]})}return l})(),lo=(()=>{class l extends n.$G{tt;cd;hostName="TreeTable";field;ariaLabelDesc;ariaLabelAsc;subscription;sortOrder;_componentStyle=(0,h.WQX)(x);constructor(e,i){super(),this.tt=e,this.cd=i,this.subscription=this.tt.tableService.sortSource$.subscribe(o=>{this.updateSortState(),this.cd.markForCheck()})}onInit(){this.updateSortState()}onClick(e){e.preventDefault()}getMultiSortMetaIndex(){let e=this.tt._multiSortMeta,i=-1;if(e&&"multiple"===this.tt.sortMode&&e.length>1)for(let o=0;o<e.length;o++){let r=e[o];if(r.field===this.field||r.field===this.field){i=o;break}}return i}updateSortState(){if("single"===this.tt.sortMode)this.sortOrder=this.tt.isSorted(this.field)?this.tt.sortOrder:0;else if("multiple"===this.tt.sortMode){let e=this.tt.getSortMeta(this.field);this.sortOrder=e?e.order:0}}getBadgeValue(){return this.getMultiSortMetaIndex()+1}isMultiSorted(){return"multiple"===this.tt.sortMode&&this.getMultiSortMetaIndex()>-1}onDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(f.ChangeDetectorRef))};static \u0275cmp=t.VBU({type:l,selectors:[["p-treeTableSortIcon"],["p-treetable-sort-icon"],["p-tree-table-sort-icon"]],inputs:{field:"field",ariaLabelDesc:"ariaLabelDesc",ariaLabelAsc:"ariaLabelAsc"},standalone:!1,features:[t.Jv_([x]),t.Vt3],decls:3,vars:3,consts:[[4,"ngIf"],[3,"class","pBind",4,"ngIf"],["size","small",3,"class","value","pt","unstyled",4,"ngIf"],["data-p-icon","sort-alt",3,"class","pBind",4,"ngIf"],["data-p-icon","sort-amount-up-alt",3,"class","pBind",4,"ngIf"],["data-p-icon","sort-amount-down",3,"class","pBind",4,"ngIf"],["data-p-icon","sort-alt",3,"pBind"],["data-p-icon","sort-amount-up-alt",3,"pBind"],["data-p-icon","sort-amount-down",3,"pBind"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["size","small",3,"value","pt","unstyled"]],template:function(i,o){1&i&&t.DNE(0,kl,4,3,"ng-container",0)(1,Ll,2,7,"span",1)(2,Rl,1,5,"p-badge",2),2&i&&(t.Y8G("ngIf",!o.tt.sortIconTemplate&&!o.tt._sortIconTemplate),t.R7$(),t.Y8G("ngIf",o.tt.sortIconTemplate||o.tt._sortIconTemplate),t.R7$(),t.Y8G("ngIf",o.isMultiSorted()))},dependencies:()=>[C.bT,C.T3,Q.J,Z.w,J.S,W.Ex,M.Y],encapsulation:2,changeDetection:0})}return l})(),oo=(()=>{class l extends n.$G{tt;zone;hostName="TreeTable";ttResizableColumnDisabled;resizer;resizerMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,i){super(),this.tt=e,this.zone=i}onAfterViewInit(){(0,z.isPlatformBrowser)(this.platformId)&&this.isEnabled()&&((0,u.iQ)(this.el.nativeElement,"p-resizable-column"),this.resizer=this.renderer.createElement("span"),!this.$unstyled()&&this.renderer.addClass(this.resizer,"p-column-resizer"),this.resizer.setAttribute("data-pc-section","columnresizer"),this.renderer.appendChild(this.el.nativeElement,this.resizer),this.zone.runOutsideAngular(()=>{this.resizerMouseDownListener=this.renderer.listen(this.resizer,"mousedown",this.onMouseDown.bind(this))}))}bindDocumentEvents(){this.zone.runOutsideAngular(()=>{this.documentMouseMoveListener=this.renderer.listen(this.document,"mousemove",this.onDocumentMouseMove.bind(this)),this.documentMouseUpListener=this.renderer.listen(this.document,"mouseup",this.onDocumentMouseUp.bind(this))})}unbindDocumentEvents(){this.documentMouseMoveListener&&(this.documentMouseMoveListener(),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(this.documentMouseUpListener(),this.documentMouseUpListener=null)}onMouseDown(e){this.tt.onColumnResizeBegin(e),this.bindDocumentEvents()}onDocumentMouseMove(e){this.tt.onColumnResize(e)}onDocumentMouseUp(e){this.tt.onColumnResizeEnd(e,this.el.nativeElement),this.unbindDocumentEvents()}isEnabled(){return!0!==this.ttResizableColumnDisabled}onDestroy(){this.resizerMouseDownListener&&(this.resizerMouseDownListener(),this.resizerMouseDownListener=null),this.unbindDocumentEvents()}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(h.SKi))};static \u0275dir=t.FsC({type:l,selectors:[["","ttResizableColumn",""]],inputs:{ttResizableColumnDisabled:[2,"ttResizableColumnDisabled","ttResizableColumnDisabled",f.booleanAttribute]},standalone:!1,features:[t.Vt3]})}return l})(),io=(()=>{class l extends n.$G{tt;zone;hostName="TreeTable";ttReorderableColumnDisabled;dragStartListener;dragOverListener;dragEnterListener;dragLeaveListener;mouseDownListener;
1constructor(e,i){super(),this.tt=e,this.zone=i}onAfterViewInit(){this.isEnabled()&&this.bindEvents()}bindEvents(){(0,z.isPlatformBrowser)(this.platformId)&&this.zone.runOutsideAngular(()=>{this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this)),this.dragStartListener=this.renderer.listen(this.el.nativeElement,"dragstart",this.onDragStart.bind(this)),this.dragOverListener=this.renderer.listen(this.el.nativeElement,"dragover",this.onDragEnter.bind(this)),this.dragEnterListener=this.renderer.listen(this.el.nativeElement,"dragenter",this.onDragEnter.bind(this)),this.dragLeaveListener=this.renderer.listen(this.el.nativeElement,"dragleave",this.onDragLeave.bind(this))})}unbindEvents(){(0,z.isPlatformBrowser)(this.platformId)&&(this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=null),this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.dragEnterListener&&(this.dragEnterListener(),this.dragEnterListener=null),this.dragLeaveListener&&(this.dragLeaveListener(),this.dragLeaveListener=null))}onMouseDown(e){this.el.nativeElement.draggable="INPUT"!==e.target.nodeName&&"TEXTAREA"!==e.target.nodeName&&!(0,u.kc)(e.target,'[data-pc-section="columnresizer"]')}onDragStart(e){this.tt.onColumnDragStart(e,this.el.nativeElement)}onDragOver(e){e.preventDefault()}onDragEnter(e){this.tt.onColumnDragEnter(e,this.el.nativeElement)}onDragLeave(e){this.tt.onColumnDragLeave(e)}onDrop(e){this.isEnabled()&&this.tt.onColumnDrop(e,this.el.nativeElement)}isEnabled(){return!0!==this.ttReorderableColumnDisabled}onDestroy(){this.unbindEvents()}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(h.SKi))};static \u0275dir=t.FsC({type:l,selectors:[["","ttReorderableColumn",""]],hostBindings:function(i,o){1&i&&t.bIt("drop",function(a){return o.onDrop(a)})},inputs:{ttReorderableColumnDisabled:[2,"ttReorderableColumnDisabled","ttReorderableColumnDisabled",f.booleanAttribute]},standalone:!1,features:[t.Vt3]})}return l})(),no=(()=>{class l extends n.$G{tt;tableService;rowNode;ttSelectableRowDisabled;selected;subscription;_componentStyle=(0,h.WQX)(x);constructor(e,i){super(),this.tt=e,this.tableService=i,this.isEnabled()&&(this.subscription=this.tt.tableService.selectionSource$.subscribe(()=>{this.selected=this.tt.isSelected(this.rowNode.node)}))}onInit(){this.isEnabled()&&(this.selected=this.tt.isSelected(this.rowNode.node))}onClick(e){this.isEnabled()&&this.tt.handleRowClick({originalEvent:e,rowNode:this.rowNode})}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.onEnterKey(e)}}onTouchEnd(e){this.isEnabled()&&this.tt.handleRowTouchEnd(e)}onEnterKey(e){"checkbox"===this.tt.selectionMode?this.tt.toggleNodeWithCheckbox({originalEvent:e,rowNode:this.rowNode}):this.onClick(e),e.preventDefault()}isEnabled(){return!0!==this.ttSelectableRowDisabled}onDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(V))};static \u0275dir=t.FsC({type:l,selectors:[["","ttSelectableRow",""]],hostVars:3,hostBindings:function(i,o){1&i&&t.bIt("click",function(a){return o.onClick(a)})("keydown",function(a){return o.onKeyDown(a)})("touchend",function(a){return o.onTouchEnd(a)}),2&i&&(t.BMQ("aria-selected",o.selected),t.HbH(o.cx("row")))},inputs:{rowNode:[0,"ttSelectableRow","rowNode"],ttSelectableRowDisabled:[2,"ttSelectableRowDisabled","ttSelectableRowDisabled",f.booleanAttribute]},standalone:!1,features:[t.Jv_([x]),t.Vt3]})}return l})(),ro=(()=>{class l extends n.$G{tt;tableService;rowNode;ttSelectableRowDisabled;selected;subscription;_componentStyle=(0,h.WQX)(x);constructor(e,i){super(),this.tt=e,this.tableService=i,this.isEnabled()&&(this.subscription=this.tt.tableService.selectionSource$.subscribe(()=>{this.selected=this.tt.isSelected(this.rowNode.node)}))}onInit(){this.isEnabled()&&(this.selected=this.tt.isSelected(this.rowNode.node))}onClick(e){this.isEnabled()&&this.tt.handleRowClick({originalEvent:e,rowNode:this.rowNode})}isEnabled(){return!0!==this.ttSelectableRowDisabled}onDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(V))};static \u0275dir=t.FsC({type:l,selectors:[["","ttSelectableRowDblClick",""]],hostVars:2,hostBindings:function(i,o){1&i&&t.bIt("dblclick",function(a){return o.onClick(a)}),2&i&&t.HbH(o.cx("row"))},inputs:{rowNode:[0,"ttSelectableRowDblClick","rowNode"],ttSelectableRowDisabled:[2,"ttSelectableRowDisabled","ttSelectableRowDisabled",f.booleanAttribute]},standalone:!1,features:[t.Jv_([x]),t.Vt3]})}return l})(),ao=(()=>{class l extends n.$G{tt;tableService;rowNode;ttContextMenuRowDisabled;selected;subscription;_componentStyle=(0,h.WQX)(x);
1constructor(e,i){super(),this.tt=e,this.tableService=i,this.isEnabled()&&(this.subscription=this.tt.tableService.contextMenuSource$.subscribe(o=>{this.selected=!!o&&this.tt.equals(this.rowNode.node,o)}))}onContextMenu(e){this.isEnabled()&&(this.tt.handleRowRightClick({originalEvent:e,rowNode:this.rowNode}),this.el.nativeElement.focus(),e.preventDefault())}isEnabled(){return!0!==this.ttContextMenuRowDisabled}onDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(V))};static \u0275dir=t.FsC({type:l,selectors:[["","ttContextMenuRow",""]],hostVars:3,hostBindings:function(i,o){1&i&&t.bIt("contextmenu",function(a){return o.onContextMenu(a)}),2&i&&(t.Avn("tabIndex",o.isEnabled()?0:void 0),t.HbH(o.cx("contextMenuRow")))},inputs:{rowNode:[0,"ttContextMenuRow","rowNode"],ttContextMenuRowDisabled:[2,"ttContextMenuRowDisabled","ttContextMenuRowDisabled",f.booleanAttribute]},standalone:!1,features:[t.Jv_([x]),t.Vt3]})}return l})(),so=(()=>{class l extends n.$G{tt;tableService;cd;hostName="TreeTable";disabled;rowNode;checked;partialChecked;focused;subscription;_componentStyle=(0,h.WQX)(x);constructor(e,i,o){super(),this.tt=e,this.tableService=i,this.cd=o,this.subscription=this.tt.tableService.selectionSource$.subscribe(()=>{this.tt.selectionKeys?(this.checked=this.tt.isNodeSelected(this.rowNode.node),this.partialChecked=this.tt.isNodePartialSelected(this.rowNode.node)):(this.checked=this.tt.isSelected(this.rowNode.node),this.partialChecked=this.rowNode.node.partialSelected),this.cd.markForCheck()})}onInit(){this.tt.selectionKeys?(this.checked=this.tt.isNodeSelected(this.rowNode.node),this.partialChecked=this.tt.isNodePartialSelected(this.rowNode.node)):(this.checked=this.tt.isSelected(this.rowNode.node),this.partialChecked=this.rowNode.node.partialSelected)}onClick(e){this.disabled||(this.tt.selectionKeys?this.tt.toggleCheckbox({originalEvent:e,check:!this.checked,rowNode:this.rowNode}):this.tt.toggleNodeWithCheckbox({originalEvent:e,rowNode:this.rowNode})),(0,u.wr)()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}onDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(V),t.rXU(f.ChangeDetectorRef))};static \u0275cmp=t.VBU({type:l,selectors:[["p-treeTableCheckbox"],["p-treetable-checkbox"],["p-tree-table-checkbox"]],inputs:{disabled:[2,"disabled","disabled",f.booleanAttribute],rowNode:[0,"value","rowNode"]},standalone:!1,features:[t.Jv_([x]),t.Vt3],decls:2,vars:9,consts:[[3,"onChange","ngModel","pt","binary","disabled","indeterminate","styleClass","tabIndex","unstyled"],[4,"ngIf"],["pTemplate","icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&(t.j41(0,"p-checkbox",0),t.bIt("onChange",function(a){return o.onClick(a)}),t.DNE(1,Vl,2,0,"ng-container",1),t.k0s()),2&i&&(t.Y8G("ngModel",o.checked)("pt",o.ptm("pcRowCheckbox"))("binary",!0)("disabled",o.disabled)("indeterminate",o.partialChecked)("styleClass",o.cx("pcNodeCheckbox"))("tabIndex",-1)("unstyled",o.unstyled()),t.R7$(),t.Y8G("ngIf",o.tt.checkboxIconTemplate||o.tt._checkboxIconTemplate))},dependencies:()=>[C.bT,C.T3,G.PrimeTemplate,Y.Checkbox,O.NgControlStatus,O.NgModel],encapsulation:2,changeDetection:0})}return l})(),co=(()=>{class l extends n.$G{tt;tableService;checked;disabled;selectionChangeSubscription;valueChangeSubscription;constructor(e,i){super(),this.tt=e,this.tableService=i,this.valueChangeSubscription=this.tt.tableService.uiUpdateSource$.subscribe(()=>{this.checked=this.updateCheckedState()}),this.selectionChangeSubscription=this.tt.tableService.selectionSource$.subscribe(()=>{this.checked=this.updateCheckedState()})}onInit(){this.checked=this.updateCheckedState()}onClick(e){(this.tt?.value||this.tt?.filteredNodes)&&(this.tt?.value&&this.tt.value.length>0||this.tt?.filteredNodes&&this.tt.filteredNodes.length>0)&&this.tt?.toggleNodesWithCheckbox(e,!this.checked),(0,u.wr)()}onDestroy(){this.selectionChangeSubscription&&this.selectionChangeSubscription.unsubscribe(),this.valueChangeSubscription&&this.valueChangeSubscription.unsubscribe()}updateCheckedState(){let e;this.cd.markForCheck();const i=this.tt.filteredNodes||this.tt.value;if(i){if(this.tt.selectionKeys)for(let o of i){if(!this.tt.isNodeSelected(o)){e=!1;break}e=!0}if(!this.tt.selectionKeys)for(let o of i){if(!this.tt.isSelected(o)){e=!1;break}e=!0}}else e=!1;return e}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(V))};static \u0275cmp=t.VBU({type:l,selectors:[["p-treeTableHeaderCheckbox"]],standalone:!1,features:[t.Vt3],decls:2,vars:6,consts:[[3,"onChange","ngModel","pt","binary","disabled","unstyled"],[4,"ngIf"],["pTemplate","icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&(t.j41(0,"p-checkbox",0),t.bIt("onChange",function(a){return o.onClick(a)}),t.DNE(1,Al,2,0,"ng-container",1),t.k0s()),2&i&&(t.Y8G("ngModel",o.checked)("pt",o.ptm("pcHeaderCheckbox"))("binary",!0)("disabled",!o.tt.value||0===o.tt.value.length)("unstyled",o.unstyled()),t.R7$(),t.Y8G("ngIf",o.tt.headerCheckboxIconTemplate||o.tt._headerCheckboxIconTemplate))},dependencies:()=>[C.bT,C.T3,G.PrimeTemplate,Y.Checkbox,O.NgControlStatus,O.NgModel],encapsulation:2,changeDetection:0})}return l})(),ge=(()=>{class l extends n.$G{tt;zone;data;field;ttEditableColumnDisabled;
1constructor(e,i){super(),this.tt=e,this.zone=i}onAfterViewInit(){this.isEnabled()&&(!this.$unstyled()&&(0,u.iQ)(this.el.nativeElement,"p-editable-column"),this.el?.nativeElement.setAttribute("data-p-editable-column","true"))}onClick(e){if(this.isEnabled())if(this.tt.editingCellClick=!0,this.tt.editingCell){if(this.tt.editingCell!==this.el.nativeElement){if(!this.tt.isEditingCellValid())return;this.tt.editingCell&&!this.$unstyled()&&(0,u.vy)(this.tt.editingCell,"p-cell-editing"),this.openCell()}}else this.openCell()}openCell(){this.tt.updateEditingCell(this.el.nativeElement,this.data,this.field),!this.$unstyled()&&(0,u.iQ)(this.el.nativeElement,"p-cell-editing"),this.el?.nativeElement.setAttribute("data-p-cell-editing","true"),this.tt.onEditInit.emit({field:this.field,data:this.data}),this.tt.editingCellClick=!0,this.zone.runOutsideAngular(()=>{setTimeout(()=>{let e=(0,u.kc)(this.el.nativeElement,"input, textarea");e&&e.focus()},50)})}closeEditingCell(){this.tt.editingCell&&!this.$unstyled()&&(0,u.vy)(this.tt.editingCell,"p-checkbox-icon"),this.tt.editingCell=null,this.tt.unbindDocumentEditListener()}onKeyDown(e){this.isEnabled()&&(13!=e.keyCode||e.shiftKey?27==e.keyCode?(this.tt.isEditingCellValid()&&(this.tt.editingCell&&(!this.$unstyled()&&(0,u.vy)(this.tt.editingCell,"p-cell-editing"),this.el?.nativeElement.setAttribute("data-p-cell-editing","false")),this.closeEditingCell(),this.tt.onEditCancel.emit({field:this.field,data:this.data})),e.preventDefault()):9==e.keyCode&&(this.tt.onEditComplete.emit({field:this.field,data:this.data}),e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e)):(this.tt.isEditingCellValid()&&(this.tt.editingCell&&(!this.$unstyled()&&(0,u.vy)(this.tt.editingCell,"p-cell-editing"),this.el?.nativeElement.setAttribute("data-p-cell-editing","false")),this.closeEditingCell(),this.tt.onEditComplete.emit({field:this.field,data:this.data})),e.preventDefault()))}findCell(e){if(e){let i=e;for(;i&&!(0,u.kc)(i,'[data-p-cell-editing="true"]');)i=i.parentElement;return i}return null}moveToPreviousCell(e){let i=this.findCell(e.target),r=this.findPreviousEditableColumn(i);r&&((0,u.sW)(r,"click",void 0),e.preventDefault())}moveToNextCell(e){let i=this.findCell(e.target),r=this.findNextEditableColumn(i);r&&((0,u.sW)(r,"click",void 0),e.preventDefault())}findPreviousEditableColumn(e){let i=e.previousElementSibling;if(!i){let o=e.parentElement?e.parentElement.previousElementSibling:null;o&&(i=o.lastElementChild)}return i?(0,u.kc)(i,'[data-p-editable-column="true"]')?i:this.findPreviousEditableColumn(i):null}findNextEditableColumn(e){let i=e.nextElementSibling;if(!i){let o=e.parentElement?e.parentElement.nextElementSibling:null;o&&(i=o.firstElementChild)}return i?(0,u.kc)(i,'[data-p-editable-column="true"]')?i:this.findNextEditableColumn(i):null}isEnabled(){return!0!==this.ttEditableColumnDisabled}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(h.SKi))};static \u0275dir=t.FsC({type:l,selectors:[["","ttEditableColumn",""]],hostBindings:function(i,o){1&i&&t.bIt("click",function(a){return o.onClick(a)})("keydown",function(a){return o.onKeyDown(a)})},inputs:{data:[0,"ttEditableColumn","data"],field:[0,"ttEditableColumnField","field"],ttEditableColumnDisabled:[2,"ttEditableColumnDisabled","ttEditableColumnDisabled",f.booleanAttribute]},standalone:!1,features:[t.Vt3]})}return l})(),po=(()=>{class l extends n.$G{tt;editableColumn;hostName="TreeTable";bindDirectiveInstance=(0,h.WQX)(M.Y,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("cellEditor"))}templates;inputTemplate;outputTemplate;constructor(e,i){super(),this.tt=e,this.editableColumn=i}
1onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(ge))};static \u0275cmp=t.VBU({type:l,selectors:[["p-treeTableCellEditor"],["p-treetablecelleditor"],["p-treetable-cell-editor"]],contentQueries:function(i,o,r){if(1&i&&t.wni(r,G.PrimeTemplate,4),2&i){let a;t.mGM(a=t.lsd())&&(o.templates=a)}},standalone:!1,features:[t.nM4([M.Y]),t.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(i,o){1&i&&t.DNE(0,Ul,2,1,"ng-container",0)(1,$l,2,1,"ng-container",0),2&i&&(t.Y8G("ngIf",o.tt.editingCell===o.editableColumn.el.nativeElement),t.R7$(),t.Y8G("ngIf",!o.tt.editingCell||o.tt.editingCell!==o.editableColumn.el.nativeElement))},dependencies:[C.bT,C.T3],encapsulation:2})}return l})(),ho=(()=>{class l extends n.$G{tt;el;zone;hostName="TreeTable";bindDirectiveInstance=(0,h.WQX)(M.Y,{self:!0});treeTable=(0,h.WQX)(k);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("row",this.ptmOptions()))}get level(){return this.rowNode?.level+1}get styleClass(){return this.rowNode?.node.styleClass||""}get expanded(){return this.rowNode?.node.expanded}rowNode;_componentStyle=(0,h.WQX)(x);constructor(e,i,o){super(),this.tt=e,this.el=i,this.zone=o}onKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"Tab":this.onTabKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e)}}onArrowDownKey(e){let i=this.el?.nativeElement?.nextElementSibling;i&&this.focusRowChange(e.currentTarget,i),e.preventDefault()}onArrowUpKey(e){let i=this.el?.nativeElement?.previousElementSibling;i&&this.focusRowChange(e.currentTarget,i),e.preventDefault()}onArrowRightKey(e){const i=e.currentTarget;!("hidden"===(0,u.kc)(i,"button").style.visibility)&&!this.expanded&&this.rowNode.node.children&&(this.expand(e),i.tabIndex=-1),e.preventDefault()}onArrowLeftKey(e){const i=this.tt.el?.nativeElement,o=(0,u.I6)(i,'[aria-expanded="true"]'),r=o[o.length-1];this.expanded&&this.collapse(e),r&&(this.tt.toggleRowIndex=(0,u.Dx)(r)),this.restoreFocus(),e.preventDefault()}onHomeKey(e){const i=(0,u.kc)(this.tt.el?.nativeElement,`tr[aria-level="${this.level}"]`);i&&(0,u.XC)(i),e.preventDefault()}onEndKey(e){const i=(0,u.I6)(this.tt.el?.nativeElement,`tr[aria-level="${this.level}"]`);(0,u.XC)(i[i.length-1]),e.preventDefault()}onTabKey(e){const i=this.el.nativeElement?[...(0,u.I6)(this.el.nativeElement.parentNode,"tr")]:void 0;if(i&&(0,S.hj)(i)){const o=i.some(r=>(0,u.D$)(r,"data-p-highlight")||"true"===r.getAttribute("aria-selected"));if(i.forEach(r=>{r.tabIndex=-1}),o)return void(i.filter(a=>(0,u.D$)(a,"data-p-highlight")||"true"===a.getAttribute("aria-selected"))[0].tabIndex=0);i[0].tabIndex=0}}expand(e){this.tt.toggleRowIndex=(0,u.Dx)(this.el.nativeElement),this.rowNode.node.expanded=!0,this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),this.rowNode.node.children?this.restoreFocus(this.tt.toggleRowIndex+1):this.restoreFocus(),this.tt.onNodeExpand.emit({originalEvent:e,node:this.rowNode.node})}collapse(e){this.rowNode.node.expanded=!1,this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),this.tt.onNodeCollapse.emit({originalEvent:e,node:this.rowNode.node})}focusRowChange(e,i,o){e.tabIndex="-1",i.tabIndex="0",(0,u.XC)(i)}restoreFocus(e){this.zone.runOutsideAngular(()=>{setTimeout(()=>{const i=this.tt.el?.nativeElement,r=(0,u.kc)(i,'[data-pc-section="tbody"]')?.children?.[e||this.tt.toggleRowIndex||0],a=[...(0,u.I6)(i,"tr")];a&&a.forEach(c=>{r&&!r.isSameNode(c)&&(c.tabIndex=-1)}),r&&(r.tabIndex=0,r.focus())},25)})}ptmOptions(){return{context:{selectable:this.treeTable?.rowHover||"row"===this.treeTable.selectionMode,selected:this.treeTable.isSelected(this.rowNode?.node),scrollable:this.treeTable?.scrollable,rowNode:this.rowNode}}}static \u0275fac=function(i){return new(i||l)(t.rXU(k),t.rXU(t.aKT),t.rXU(h.SKi))};static \u0275dir=t.FsC({type:l,selectors:[["","ttRow",""]],hostAttrs:["role","row"],hostVars:5,hostBindings:function(i,o){1&i&&t.bIt("keydown",function(a){return o.onKeyDown(a)}),2&i&&(t.Avn("tabIndex","0"),t.BMQ("aria-expanded",o.expanded)("aria-level",o.level),t.HbH("p-element "+o.styleClass))},inputs:{rowNode:[0,"ttRow","rowNode"]},standalone:!1,features:[t.Jv_([x]),t.nM4([M.Y]),t.Vt3]})}return l})(),uo=(()=>{class l extends n.$G{tt;hostName="TreeTable";bindDirectiveInstance=(0,h.WQX)(M.Y,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("toggler"))}rowNode;_componentStyle=(0,h.WQX)(x);
1constructor(e){super(),this.tt=e}get toggleButtonAriaLabel(){return this.config.translation?this.rowNode.expanded?this.config.translation?.aria?.collapseRow:this.config.translation?.aria?.expandRow:void 0}onClick(e){this.rowNode.node.expanded=!this.rowNode.node.expanded,this.rowNode.node.expanded?this.tt.onNodeExpand.emit({originalEvent:e,node:this.rowNode.node}):this.tt.onNodeCollapse.emit({originalEvent:e,node:this.rowNode.node}),this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),e.preventDefault()}static \u0275fac=function(i){return new(i||l)(t.rXU(k))};static \u0275cmp=t.VBU({type:l,selectors:[["p-treeTableToggler"],["p-treetabletoggler"],["p-treetable-toggler"]],inputs:{rowNode:"rowNode"},standalone:!1,features:[t.Jv_([x]),t.nM4([M.Y]),t.Vt3],decls:3,vars:14,consts:[["type","button","tabindex","-1","pRipple","",3,"click","pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],["data-p-icon","chevron-right",3,"pBind"]],template:function(i,o){1&i&&(t.j41(0,"button",0),t.bIt("click",function(a){return o.onClick(a)}),t.DNE(1,jl,3,2,"ng-container",1)(2,Jl,1,0,null,2),t.k0s()),2&i&&(t.HbH(o.cx("toggler")),t.xc7("visibility",!1===o.rowNode.node.leaf||o.rowNode.node.children&&o.rowNode.node.children.length?"visible":"hidden")("margin-inline-start",16*o.rowNode.level+"px"),t.Y8G("pBind",o.ptm("rowToggleButton")),t.BMQ("data-pc-group-section","rowactionbutton")("aria-label",o.toggleButtonAriaLabel),t.R7$(),t.Y8G("ngIf",!o.tt.togglerIconTemplate&&!o.tt._togglerIconTemplate),t.R7$(),t.Y8G("ngTemplateOutlet",o.tt.togglerIconTemplate||o.tt._togglerIconTemplate)("ngTemplateOutletContext",t.eq3(12,N,o.rowNode.node.expanded)))},dependencies:()=>[C.bT,C.T3,re.n0,K.D,j.v,M.Y],encapsulation:2})}return l})(),go=(()=>{class l{static \u0275fac=function(i){return new(i||l)};static \u0275mod=t.$C({type:l});static \u0275inj=h.G2t({imports:[C.MD,ee.PaginatorModule,te.HO,q.N,A.Z,
1X.K,Q.J,Z.w,J.S,W.EJ,ne.S,K.D,j.v,Y.Checkbox,G.SharedModule,O.FormsModule,M.C,G.SharedModule]})}return l})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.