dealposbooks 1.9.5 → 1.9.6-p
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +35 -35
- package/assets/scss/layouts/_sidebar.scss +2 -2
- package/assets/scss/style.scss +1 -1
- package/assets/scss/variables/_variables.scss +1 -1
- package/chunk-27SWEVDU.js +1 -0
- package/chunk-2DV653RD.js +1 -0
- package/chunk-2OECREUZ.js +1 -0
- package/{chunk-ANMMOPX7.js → chunk-32BR7AQL.js} +1 -1
- package/chunk-34XRAZFC.js +1 -0
- package/{chunk-2JCKXI2B.js → chunk-35CWG2OK.js} +1 -1
- package/{chunk-HAZ5H5ZV.js → chunk-35KDUCM3.js} +1 -1
- package/chunk-3G3QSUWH.js +1 -0
- package/{chunk-4LFQJHJZ.js → chunk-3HW557B7.js} +1 -1
- package/{chunk-HJPAXVNY.js → chunk-3L7IWFXM.js} +1 -1
- package/{chunk-7GHU4UQ7.js → chunk-3WB76KQC.js} +1 -1
- package/{chunk-JGSRMMYX.js → chunk-43WCLYRX.js} +1 -1
- package/{chunk-6NDJPEK4.js → chunk-46TNY5N4.js} +1 -1
- package/chunk-4KXSM3HP.js +1 -0
- package/chunk-4QKRWFW4.js +1 -0
- package/{chunk-4WYSO23S.js → chunk-54OPMMIM.js} +1 -1
- package/chunk-6HQX2SM2.js +1 -0
- package/{chunk-7UBLUR5O.js → chunk-6TA77CRR.js} +1 -1
- package/{chunk-4GL5YTWS.js → chunk-6ZZARVQO.js} +1 -1
- package/{chunk-RZRT24L6.js → chunk-AKMHO3LC.js} +1 -1
- package/{chunk-VG23QNZF.js → chunk-AOSPVPK7.js} +1 -1
- package/chunk-BNI5KUDE.js +193 -0
- package/chunk-BX3CRF44.js +1 -0
- package/{chunk-XLUCH64S.js → chunk-C4LZX33Q.js} +2 -2
- package/{chunk-HI7JDHS3.js → chunk-C5GEP4MM.js} +1 -1
- package/chunk-C7UZ6ZYF.js +1 -0
- package/{chunk-CVMP55UZ.js → chunk-CSMMP7XG.js} +1 -1
- package/chunk-CTCQB63H.js +1 -0
- package/chunk-DNK2GUDB.js +1 -0
- package/{chunk-5ROVFZR4.js → chunk-DOM7WYRM.js} +1 -1
- package/{chunk-IPUUBC74.js → chunk-ELWFWCNU.js} +2 -2
- package/{chunk-YLHU3GDJ.js → chunk-EXVUABTO.js} +1 -1
- package/{chunk-Q7ITPAXT.js → chunk-G6FJQBZZ.js} +1 -1
- package/chunk-GJXWL5XV.js +1 -0
- package/chunk-GNP7WGSH.js +1 -0
- package/chunk-GTGRV7IH.js +1 -0
- package/{chunk-RVTAI3J3.js → chunk-HFFH2WIX.js} +1 -1
- package/chunk-HRPP75N7.js +1 -0
- package/{chunk-PSDZXCOR.js → chunk-HRQJ5DXP.js} +1 -1
- package/chunk-J77A3DFB.js +1 -0
- package/chunk-JDW35ZB5.js +47 -0
- package/{chunk-AZM2EGTF.js → chunk-JMLETF7Y.js} +1 -1
- package/chunk-JYNZPVLW.js +1 -0
- package/chunk-K6753MGR.js +7 -0
- package/chunk-LD4G6ND6.js +130 -0
- package/{chunk-JHCHHBCW.js → chunk-LKZL77YR.js} +1 -1
- package/{chunk-P5ZPLAYA.js → chunk-LR2DJRRL.js} +1 -1
- package/{chunk-P36L53XK.js → chunk-LTZA6IIO.js} +1 -1
- package/chunk-M7MFX6BW.js +1 -0
- package/chunk-MCDQ2TIS.js +1 -0
- package/chunk-MJVSTWYY.js +1 -0
- package/{chunk-FBUI4SQJ.js → chunk-N2RYBZK7.js} +1 -1
- package/{chunk-O2G255P4.js → chunk-N6JCA3CN.js} +2 -2
- package/{chunk-LYDUVWPM.js → chunk-NF3TF3LT.js} +1 -1
- package/chunk-OEJBOFI5.js +1 -0
- package/{chunk-IPKPBYSN.js → chunk-OEOAUJY5.js} +6 -6
- package/{chunk-I7YFUZI7.js → chunk-OVCTOPAO.js} +1 -1
- package/{chunk-MP7S52YU.js → chunk-OZACNHDP.js} +1 -1
- package/{chunk-CVMIZKGH.js → chunk-P6CJ2ONT.js} +1 -1
- package/{chunk-ONPJXDDI.js → chunk-QPKNYNLC.js} +2 -2
- package/{chunk-6JZPAN4G.js → chunk-RBDJZRHY.js} +1 -1
- package/{chunk-4B5RFKWI.js → chunk-RT5PUZ5F.js} +1 -1
- package/{chunk-JQZRKOKE.js → chunk-TC43COAE.js} +1 -1
- package/{chunk-OSFKXKXD.js → chunk-TFV5QZKR.js} +1 -1
- package/{chunk-DAV2SMOY.js → chunk-TK3G2BVM.js} +1 -1
- package/{chunk-VUPF5YJY.js → chunk-TQZNJ5WF.js} +1 -1
- package/chunk-UEOO2LYA.js +82 -0
- package/chunk-WEWEITR7.js +1 -0
- package/{chunk-FFODCTQC.js → chunk-WGZN6AN2.js} +1 -1
- package/chunk-WZO2ZLBL.js +1 -0
- package/chunk-X34Y3TVX.js +1 -0
- package/chunk-XFSZDZPJ.js +1 -0
- package/{chunk-OVIHA23Z.js → chunk-XKEV5AED.js} +1 -1
- package/chunk-XZGFG6E3.js +1 -0
- package/{chunk-TCF45ELT.js → chunk-YOEPO6LK.js} +1 -1
- package/index.html +2 -2
- package/{main-EJEYMG7N.js → main-U5PC2W2C.js} +1 -1
- package/package.json +1 -1
- package/styles-GTUKYMN7.css +1 -0
- package/chunk-3HN62WAN.js +0 -1
- package/chunk-5RUWTN5X.js +0 -1
- package/chunk-6OAGE44Z.js +0 -7
- package/chunk-7XDZM4MJ.js +0 -1
- package/chunk-AF77PUJO.js +0 -1
- package/chunk-ALX7UOMP.js +0 -193
- package/chunk-ANG5YF2J.js +0 -47
- package/chunk-ARESU6CY.js +0 -1
- package/chunk-CZMTQ4XK.js +0 -1
- package/chunk-DC5OTEZ6.js +0 -1
- package/chunk-F2FW6UDP.js +0 -1
- package/chunk-FIQFBEQK.js +0 -1
- package/chunk-FYQCFDW7.js +0 -1
- package/chunk-G2APSUOI.js +0 -1
- package/chunk-IL7RZKFX.js +0 -1
- package/chunk-IZ2XPL4O.js +0 -1
- package/chunk-MFMEPXFQ.js +0 -1
- package/chunk-NXCQN45H.js +0 -1
- package/chunk-PQTUFQME.js +0 -129
- package/chunk-RIOZSND3.js +0 -1
- package/chunk-SJ5TWHWM.js +0 -1
- package/chunk-TYHNOILY.js +0 -1
- package/chunk-VEUXDYYI.js +0 -1
- package/chunk-VXSF6SQF.js +0 -1
- package/chunk-WSVAXPZZ.js +0 -82
- package/chunk-X3PB5IV5.js +0 -1
- package/chunk-YDBJGTTB.js +0 -1
- package/styles-AU7PIISM.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Wt,b as Gt,c as Jt,d as Xt,e as Zt,f as Yt}from"./chunk-6NDJPEK4.js";import{b as qt,c as di,d as ei}from"./chunk-HJPAXVNY.js";import{a as jt}from"./chunk-FBUI4SQJ.js";import{a as be}from"./chunk-B7JILYJO.js";import{b as He,c as Ae,d as Et,e as kt,f as zt,g as Qt,h as Ut}from"./chunk-RVTAI3J3.js";import"./chunk-DAV2SMOY.js";import"./chunk-P5ZPLAYA.js";import"./chunk-CVMP55UZ.js";import{a as Ke}from"./chunk-7UBLUR5O.js";import{a as Be}from"./chunk-AZM2EGTF.js";import{a as Lt}from"./chunk-HI7JDHS3.js";import{b as xt,d as Qe}from"./chunk-JQZRKOKE.js";import{a as It,c as Pt,d as Vt}from"./chunk-ANG5YF2J.js";import{a as Kt,b as $t}from"./chunk-4GL5YTWS.js";import{e as Ft,f as Nt,g as At,h as Bt}from"./chunk-2JCKXI2B.js";import{b as Ot,c as Ht}from"./chunk-YLHU3GDJ.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{a as Ne,b as Oe,i as $e,p as Dt,w as Rt,x as Mt}from"./chunk-TCF45ELT.js";import"./chunk-ZWHB7NI7.js";import{A as ze,B as Le,D as De,Ea as wt,Ia as vt,N as _t,Na as fe,O as Re,Oa as Fe,R as ee,S as E,T as ge,U as Me,Wa as St,Y as yt,Z as Tt,_ as se,aa as ce,pa as Pe,sa as Ct,ta as R,ua as Ve,y as bt}from"./chunk-ALX7UOMP.js";import"./chunk-HAZ5H5ZV.js";import"./chunk-4LFQJHJZ.js";import"./chunk-F2X3VGZZ.js";import{E as ft,c as re,e as gt,f as W,g as ke,h as ae,m as ue,n as me}from"./chunk-BYD3JK4R.js";import{Aa as ie,Ab as ve,Ac as Y,Cb as p,Cc as ht,Ea as we,Ec as ut,Ga as X,I as Ze,Ic as Ie,Jb as oe,Ka as it,Kb as a,Kc as Ee,Lb as at,Lc as x,Nb as Z,Ob as le,Pb as Se,Pc as mt,Ub as c,Uc as w,Vb as h,Vc as $,Wb as I,X as Ye,Xb as U,Yb as j,Z as he,Zb as T,_b as N,ba as Te,ca as et,dc as D,eb as ot,ec as u,g as J,gb as s,ha as B,ic as b,jc as k,kc as g,lb as lt,lc as f,m as Je,mb as V,oa as tt,oc as ne,pa as M,pc as _,qa as P,qc as K,rc as xe,s as Xe,ta as Ce,uc as st,vc as ct,wb as Q,wc as dt,xb as nt,xc as pt,yb as rt,yc as q,za as S,zc as z}from"./chunk-YVEUYFCE.js";import{a as G,b as Ge,e as ci}from"./chunk-YQFG5XE2.js";var ui=["colgroup"],mi=["caption"],gi=["header"],fi=["body"],bi=["footer"],_i=["summary"],yi=["emptymessage"],Ti=["paginatorleft"],Ci=["paginatorright"],wi=["paginatordropdownitem"],vi=["frozenheader"],Si=["frozenbody"],xi=["frozenfooter"],Ii=["frozencolgroup"],Ei=["loadingicon"],ki=["reorderindicatorupicon"],zi=["reorderindicatordownicon"],Li=["sorticon"],Di=["checkboxicon"],Ri=["headercheckboxicon"],Mi=["togglericon"],Pi=["paginatorfirstpagelinkicon"],Vi=["paginatorlastpagelinkicon"],Fi=["paginatorpreviouspagelinkicon"],Ni=["paginatornextpagelinkicon"],Oi=["loader"],Hi=["container"],Ai=["resizeHelper"],Bi=["reorderIndicatorUp"],Ki=["reorderIndicatorDown"],$i=["table"],Qi=["scrollableView"],Ui=["scrollableFrozenView"],ji=(t,r,e,o,i,l)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":o,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":l}),A=t=>({$implicit:t}),qi=(t,r)=>({left:t,width:r}),Wi=t=>({width:t});function Gi(t,r){if(t&1&&I(0,"i"),t&2){let e=u(2);le("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function Ji(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function Xi(t,r){}function Zi(t,r){t&1&&p(0,Xi,0,0,"ng-template")}function Yi(t,r){if(t&1&&(c(0,"span",25),p(1,Zi,1,0,null,26),h()),t&2){let e=u(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function eo(t,r){if(t&1&&(U(0),p(1,Ji,1,2,"SpinnerIcon",22)(2,Yi,2,1,"span",23),j()),t&2){let e=u(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function to(t,r){if(t&1&&(c(0,"div",18)(1,"div",19),p(2,Gi,1,2,"i",20)(3,eo,3,2,"ng-container",21),h()()),t&2){let e=u();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function io(t,r){t&1&&T(0)}function oo(t,r){if(t&1&&(c(0,"div",27),p(1,io,1,0,"ng-container",26),h()),t&2){let e=u();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function lo(t,r){t&1&&T(0)}function no(t,r){if(t&1&&p(0,lo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ro(t,r){t&1&&p(0,no,1,1,"ng-template",29)}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&p(0,ao,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function co(t,r){t&1&&p(0,so,1,1,"ng-template",30)}function po(t,r){t&1&&T(0)}function ho(t,r){if(t&1&&p(0,po,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function uo(t,r){t&1&&p(0,ho,1,1,"ng-template",31)}function mo(t,r){t&1&&T(0)}function go(t,r){if(t&1&&p(0,mo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function fo(t,r){t&1&&p(0,go,1,1,"ng-template",32)}function bo(t,r){if(t&1){let e=N();c(0,"p-paginator",28),D("onPageChange",function(i){M(e);let l=u();return P(l.onPageChange(i))}),p(1,ro,1,0,null,21)(2,co,1,0,null,21)(3,uo,1,0,null,21)(4,fo,1,0,null,21),h()}if(t&2){let e,o,i,l=u();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function _o(t,r){t&1&&T(0)}function yo(t,r){t&1&&T(0)}function To(t,r){t&1&&T(0)}function Co(t,r){if(t&1&&(c(0,"div",33)(1,"table",34,1),p(3,_o,1,0,"ng-container",35),c(4,"thead",36),p(5,yo,1,0,"ng-container",35),h(),I(6,"tbody",37),c(7,"tfoot",38),p(8,To,1,0,"ng-container",35),h()()()),t&2){let e,o=u();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",z(10,A,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",z(12,A,o.columns)),s(),a("pTreeTableBody",o.columns)("pTreeTableBodyTemplate",(e=o.bodyTemplate)!==null&&e!==void 0?e:o._bodyTemplate),s(2),a("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)("ngTemplateOutletContext",z(14,A,o.columns))}}function wo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=u(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",z(4,Wi,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function vo(t,r){if(t&1&&(c(0,"div",39),p(1,wo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=u();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",Y(5,qi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function So(t,r){t&1&&T(0)}function xo(t,r){if(t&1&&p(0,So,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Io(t,r){t&1&&p(0,xo,1,1,"ng-template",29)}function Eo(t,r){t&1&&T(0)}function ko(t,r){if(t&1&&p(0,Eo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function zo(t,r){t&1&&p(0,ko,1,1,"ng-template",30)}function Lo(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Lo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Ro(t,r){t&1&&p(0,Do,1,1,"ng-template",31)}function Mo(t,r){t&1&&T(0)}function Po(t,r){if(t&1&&p(0,Mo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Vo(t,r){t&1&&p(0,Po,1,1,"ng-template",32)}function Fo(t,r){if(t&1){let e=N();c(0,"p-paginator",43),D("onPageChange",function(i){M(e);let l=u();return P(l.onPageChange(i))}),p(1,Io,1,0,null,21)(2,zo,1,0,null,21)(3,Ro,1,0,null,21)(4,Vo,1,0,null,21),h()}if(t&2){let e,o,i,l=u();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function No(t,r){t&1&&T(0)}function Oo(t,r){if(t&1&&(c(0,"div",44),p(1,No,1,0,"ng-container",26),h()),t&2){let e=u();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Ho(t,r){t&1&&I(0,"div",45,4)}function Ao(t,r){t&1&&I(0,"ArrowDownIcon")}function Bo(t,r){}function Ko(t,r){t&1&&p(0,Bo,0,0,"ng-template")}function $o(t,r){if(t&1&&(c(0,"span",46,5),p(2,Ao,1,0,"ArrowDownIcon",21)(3,Ko,1,0,null,26),h()),t&2){let e=u();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Qo(t,r){t&1&&I(0,"ArrowUpIcon")}function Uo(t,r){}function jo(t,r){t&1&&p(0,Uo,0,0,"ng-template")}function qo(t,r){if(t&1&&(c(0,"span",47,6),p(2,Qo,1,0,"ArrowUpIcon",21)(3,jo,1,0,null,26),h()),t&2){let e=u();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Wo=["pTreeTableBody",""],Go=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),Jo=(t,r)=>({$implicit:t,frozen:r});function Xo(t,r){t&1&&T(0)}function Zo(t,r){if(t&1&&(U(0),p(1,Xo,1,0,"ng-container",2),j()),t&2){let e=u().$implicit,o=u();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ht(2,Go,e,e.node,e.node.data,o.columns))}}function Yo(t,r){if(t&1&&p(0,Zo,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function el(t,r){t&1&&T(0)}function tl(t,r){if(t&1&&(U(0),p(1,el,1,0,"ng-container",2),j()),t&2){let e=u();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",Y(2,Jo,e.columns,e.frozen))}}var il=["scrollHeader"],ol=["scrollHeaderBox"],ll=["scrollBody"],nl=["scrollTable"],rl=["loadingTable"],al=["scrollFooter"],sl=["scrollFooterBox"],cl=["scrollableAligner"],dl=["scroller"],pl=["ttScrollableView",""],hl=t=>({height:t}),ii=(t,r)=>({$implicit:t,options:r}),ul=t=>({options:t}),ml=(t,r)=>({"max-height":t,"overflow-y":r}),gl=()=>({});function fl(t,r){t&1&&T(0)}function bl(t,r){t&1&&T(0)}function _l(t,r){t&1&&T(0)}function yl(t,r){if(t&1&&p(0,_l,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;u(2);let i=ne(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",Y(2,ii,e,o))}}function Tl(t,r){t&1&&T(0)}function Cl(t,r){if(t&1&&p(0,Tl,1,0,"ng-container",14),t&2){let e=r.options,o=u(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",z(2,ul,e))}}function wl(t,r){t&1&&(U(0),p(1,Cl,1,4,"ng-template",null,5,x),j())}function vl(t,r){if(t&1){let e=N();c(0,"p-scroller",19,3),D("onLazyLoad",function(i){M(e);let l=u();return P(l.tt.onLazyItemLoad(i))}),p(2,yl,1,5,"ng-template",null,4,x)(4,wl,3,0,"ng-container",17),h()}if(t&2){let e=u();Z(z(8,hl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Sl(t,r){t&1&&T(0)}function xl(t,r){if(t&1&&(U(0),c(1,"div",20,6),p(3,Sl,1,0,"ng-container",14),h(),j()),t&2){let e=u(),o=ne(11);s(),a("ngStyle",Y(3,ml,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",Y(7,ii,e.serializedValue,q(6,gl)))}}function Il(t,r){t&1&&T(0)}function El(t,r){t&1&&I(0,"div",24,8)}function kl(t,r){if(t&1&&(c(0,"table",21,7),p(2,Il,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,El,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=u();Z(o.contentStyle),le(i.tt.tableStyleClass),a("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",z(13,A,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function zl(t,r){t&1&&T(0)}function Ll(t,r){t&1&&T(0)}function Dl(t,r){if(t&1&&(c(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,zl,1,0,"ng-container",14),c(6,"tfoot",28),p(7,Ll,1,0,"ng-container",14),h()()()()),t&2){let e=u();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",z(6,A,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",z(8,A,e.columns))}}function Rl(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&oe("aria-hidden",!0)}function Ml(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&oe("aria-hidden",!0)}function Pl(t,r){if(t&1&&(U(0),p(1,Rl,1,1,"ChevronDownIcon",1)(2,Ml,1,1,"ChevronRightIcon",1),j()),t&2){let e=u();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Vl(t,r){}function Fl(t,r){t&1&&p(0,Vl,0,0,"ng-template")}var Nl=({dt:t})=>`
|
|
1
|
+
import{a as Ut,b as jt,c as qt,d as Wt,e as Gt,f as Jt}from"./chunk-46TNY5N4.js";import{b as Qt,c as ai,d as Xt}from"./chunk-3L7IWFXM.js";import{a as $t}from"./chunk-N2RYBZK7.js";import{a as Ke}from"./chunk-B7JILYJO.js";import{b as Ne,c as Fe,d as xt,e as It,f as Et,g as At,h as Kt}from"./chunk-HFFH2WIX.js";import"./chunk-TK3G2BVM.js";import"./chunk-LR2DJRRL.js";import"./chunk-CSMMP7XG.js";import{a as He}from"./chunk-6TA77CRR.js";import{a as Oe}from"./chunk-JMLETF7Y.js";import{a as kt}from"./chunk-C5GEP4MM.js";import{b as vt,d as Ae}from"./chunk-TC43COAE.js";import{a as Rt,b as Mt}from"./chunk-JDW35ZB5.js";import{a as St}from"./chunk-WZO2ZLBL.js";import{a as Ht,b as Bt}from"./chunk-6ZZARVQO.js";import{e as Pt,f as Vt,g as Ft,h as Ot}from"./chunk-35CWG2OK.js";import{c as Nt}from"./chunk-EXVUABTO.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{a as Pe,b as Ve,i as Be,p as zt,w as Lt,x as Dt}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{$ as ce,A as Ee,C as ke,Da as Tt,Ha as Ct,M as ft,Ma as ge,N as ze,Na as Me,Q as ee,R as E,S as me,T as Le,Va as wt,X as bt,Y as _t,Z as se,oa as De,ra as yt,sa as R,ta as Re,x as gt,z as Ie}from"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import"./chunk-3HW557B7.js";import{E as mt,c as re,e as ut,f as W,g as xe,h as ae,m as he,n as ue}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Aa as ie,Ab as we,Ac as Y,Cb as p,Cc as st,Ea as Ce,Ec as ct,Ga as X,I as Ge,Ic as dt,Jb as oe,Ka as Ze,Kb as a,Kc as pt,Lb as ot,Lc as x,Nb as Z,Ob as le,Pb as ve,Pc as ht,Ub as c,Uc as w,Vb as h,Vc as $,Wb as I,Xb as U,Yb as j,Z as _e,Zb as T,_b as F,ba as ye,ca as Je,dc as D,eb as Ye,ec as u,g as J,gb as s,ha as K,ic as b,jc as k,kc as g,lb as et,lc as f,m as We,mb as V,oa as Xe,oc as ne,pa as M,pc as _,qa as P,qc as B,rc as Se,ta as Te,uc as lt,vc as nt,wb as Q,wc as rt,xb as tt,xc as at,yb as it,yc as q,za as S,zc as z}from"./chunk-YVEUYFCE.js";import{a as G,b as qe,e as ri}from"./chunk-YQFG5XE2.js";var di=["colgroup"],pi=["caption"],hi=["header"],ui=["body"],mi=["footer"],gi=["summary"],fi=["emptymessage"],bi=["paginatorleft"],_i=["paginatorright"],yi=["paginatordropdownitem"],Ti=["frozenheader"],Ci=["frozenbody"],wi=["frozenfooter"],vi=["frozencolgroup"],Si=["loadingicon"],xi=["reorderindicatorupicon"],Ii=["reorderindicatordownicon"],Ei=["sorticon"],ki=["checkboxicon"],zi=["headercheckboxicon"],Li=["togglericon"],Di=["paginatorfirstpagelinkicon"],Ri=["paginatorlastpagelinkicon"],Mi=["paginatorpreviouspagelinkicon"],Pi=["paginatornextpagelinkicon"],Vi=["loader"],Ni=["container"],Fi=["resizeHelper"],Oi=["reorderIndicatorUp"],Hi=["reorderIndicatorDown"],Bi=["table"],Ai=["scrollableView"],Ki=["scrollableFrozenView"],$i=(t,r,e,o,i,l)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":o,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":l}),A=t=>({$implicit:t}),Qi=(t,r)=>({left:t,width:r}),Ui=t=>({width:t});function ji(t,r){if(t&1&&I(0,"i"),t&2){let e=u(2);le("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function qi(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function Wi(t,r){}function Gi(t,r){t&1&&p(0,Wi,0,0,"ng-template")}function Ji(t,r){if(t&1&&(c(0,"span",25),p(1,Gi,1,0,null,26),h()),t&2){let e=u(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Xi(t,r){if(t&1&&(U(0),p(1,qi,1,2,"SpinnerIcon",22)(2,Ji,2,1,"span",23),j()),t&2){let e=u(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Zi(t,r){if(t&1&&(c(0,"div",18)(1,"div",19),p(2,ji,1,2,"i",20)(3,Xi,3,2,"ng-container",21),h()()),t&2){let e=u();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function Yi(t,r){t&1&&T(0)}function eo(t,r){if(t&1&&(c(0,"div",27),p(1,Yi,1,0,"ng-container",26),h()),t&2){let e=u();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function to(t,r){t&1&&T(0)}function io(t,r){if(t&1&&p(0,to,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function oo(t,r){t&1&&p(0,io,1,1,"ng-template",29)}function lo(t,r){t&1&&T(0)}function no(t,r){if(t&1&&p(0,lo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function ro(t,r){t&1&&p(0,no,1,1,"ng-template",30)}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&p(0,ao,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function co(t,r){t&1&&p(0,so,1,1,"ng-template",31)}function po(t,r){t&1&&T(0)}function ho(t,r){if(t&1&&p(0,po,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function uo(t,r){t&1&&p(0,ho,1,1,"ng-template",32)}function mo(t,r){if(t&1){let e=F();c(0,"p-paginator",28),D("onPageChange",function(i){M(e);let l=u();return P(l.onPageChange(i))}),p(1,oo,1,0,null,21)(2,ro,1,0,null,21)(3,co,1,0,null,21)(4,uo,1,0,null,21),h()}if(t&2){let e,o,i,l=u();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function go(t,r){t&1&&T(0)}function fo(t,r){t&1&&T(0)}function bo(t,r){t&1&&T(0)}function _o(t,r){if(t&1&&(c(0,"div",33)(1,"table",34,1),p(3,go,1,0,"ng-container",35),c(4,"thead",36),p(5,fo,1,0,"ng-container",35),h(),I(6,"tbody",37),c(7,"tfoot",38),p(8,bo,1,0,"ng-container",35),h()()()),t&2){let e,o=u();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",z(10,A,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",z(12,A,o.columns)),s(),a("pTreeTableBody",o.columns)("pTreeTableBodyTemplate",(e=o.bodyTemplate)!==null&&e!==void 0?e:o._bodyTemplate),s(2),a("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)("ngTemplateOutletContext",z(14,A,o.columns))}}function yo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=u(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",z(4,Ui,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function To(t,r){if(t&1&&(c(0,"div",39),p(1,yo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=u();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",Y(5,Qi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Co(t,r){t&1&&T(0)}function wo(t,r){if(t&1&&p(0,Co,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function vo(t,r){t&1&&p(0,wo,1,1,"ng-template",29)}function So(t,r){t&1&&T(0)}function xo(t,r){if(t&1&&p(0,So,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Io(t,r){t&1&&p(0,xo,1,1,"ng-template",30)}function Eo(t,r){t&1&&T(0)}function ko(t,r){if(t&1&&p(0,Eo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function zo(t,r){t&1&&p(0,ko,1,1,"ng-template",31)}function Lo(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Lo,1,0,"ng-container",26),t&2){let e=u(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ro(t,r){t&1&&p(0,Do,1,1,"ng-template",32)}function Mo(t,r){if(t&1){let e=F();c(0,"p-paginator",43),D("onPageChange",function(i){M(e);let l=u();return P(l.onPageChange(i))}),p(1,vo,1,0,null,21)(2,Io,1,0,null,21)(3,zo,1,0,null,21)(4,Ro,1,0,null,21),h()}if(t&2){let e,o,i,l=u();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function Po(t,r){t&1&&T(0)}function Vo(t,r){if(t&1&&(c(0,"div",44),p(1,Po,1,0,"ng-container",26),h()),t&2){let e=u();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function No(t,r){t&1&&I(0,"div",45,4)}function Fo(t,r){t&1&&I(0,"ArrowDownIcon")}function Oo(t,r){}function Ho(t,r){t&1&&p(0,Oo,0,0,"ng-template")}function Bo(t,r){if(t&1&&(c(0,"span",46,5),p(2,Fo,1,0,"ArrowDownIcon",21)(3,Ho,1,0,null,26),h()),t&2){let e=u();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Ao(t,r){t&1&&I(0,"ArrowUpIcon")}function Ko(t,r){}function $o(t,r){t&1&&p(0,Ko,0,0,"ng-template")}function Qo(t,r){if(t&1&&(c(0,"span",47,6),p(2,Ao,1,0,"ArrowUpIcon",21)(3,$o,1,0,null,26),h()),t&2){let e=u();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Uo=["pTreeTableBody",""],jo=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),qo=(t,r)=>({$implicit:t,frozen:r});function Wo(t,r){t&1&&T(0)}function Go(t,r){if(t&1&&(U(0),p(1,Wo,1,0,"ng-container",2),j()),t&2){let e=u().$implicit,o=u();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",st(2,jo,e,e.node,e.node.data,o.columns))}}function Jo(t,r){if(t&1&&p(0,Go,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function Xo(t,r){t&1&&T(0)}function Zo(t,r){if(t&1&&(U(0),p(1,Xo,1,0,"ng-container",2),j()),t&2){let e=u();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",Y(2,qo,e.columns,e.frozen))}}var Yo=["scrollHeader"],el=["scrollHeaderBox"],tl=["scrollBody"],il=["scrollTable"],ol=["loadingTable"],ll=["scrollFooter"],nl=["scrollFooterBox"],rl=["scrollableAligner"],al=["scroller"],sl=["ttScrollableView",""],cl=t=>({height:t}),Yt=(t,r)=>({$implicit:t,options:r}),dl=t=>({options:t}),pl=(t,r)=>({"max-height":t,"overflow-y":r}),hl=()=>({});function ul(t,r){t&1&&T(0)}function ml(t,r){t&1&&T(0)}function gl(t,r){t&1&&T(0)}function fl(t,r){if(t&1&&p(0,gl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;u(2);let i=ne(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",Y(2,Yt,e,o))}}function bl(t,r){t&1&&T(0)}function _l(t,r){if(t&1&&p(0,bl,1,0,"ng-container",14),t&2){let e=r.options,o=u(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",z(2,dl,e))}}function yl(t,r){t&1&&(U(0),p(1,_l,1,4,"ng-template",null,5,x),j())}function Tl(t,r){if(t&1){let e=F();c(0,"p-scroller",19,3),D("onLazyLoad",function(i){M(e);let l=u();return P(l.tt.onLazyItemLoad(i))}),p(2,fl,1,5,"ng-template",null,4,x)(4,yl,3,0,"ng-container",17),h()}if(t&2){let e=u();Z(z(8,cl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Cl(t,r){t&1&&T(0)}function wl(t,r){if(t&1&&(U(0),c(1,"div",20,6),p(3,Cl,1,0,"ng-container",14),h(),j()),t&2){let e=u(),o=ne(11);s(),a("ngStyle",Y(3,pl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",Y(7,Yt,e.serializedValue,q(6,hl)))}}function vl(t,r){t&1&&T(0)}function Sl(t,r){t&1&&I(0,"div",24,8)}function xl(t,r){if(t&1&&(c(0,"table",21,7),p(2,vl,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Sl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=u();Z(o.contentStyle),le(i.tt.tableStyleClass),a("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",z(13,A,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Il(t,r){t&1&&T(0)}function El(t,r){t&1&&T(0)}function kl(t,r){if(t&1&&(c(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Il,1,0,"ng-container",14),c(6,"tfoot",28),p(7,El,1,0,"ng-container",14),h()()()()),t&2){let e=u();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",z(6,A,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",z(8,A,e.columns))}}function zl(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&oe("aria-hidden",!0)}function Ll(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&oe("aria-hidden",!0)}function Dl(t,r){if(t&1&&(U(0),p(1,zl,1,1,"ChevronDownIcon",1)(2,Ll,1,1,"ChevronRightIcon",1),j()),t&2){let e=u();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Rl(t,r){}function Ml(t,r){t&1&&p(0,Rl,0,0,"ng-template")}var Pl=({dt:t})=>`
|
|
2
2
|
/* For PrimeNG */
|
|
3
3
|
.p-treetable {
|
|
4
4
|
position: relative;
|
|
@@ -446,4 +446,4 @@ p-treetable-toggler + p-treetable-checkbox + span,
|
|
|
446
446
|
p-tree-table-toggler + p-tree-table-checkbox + span {
|
|
447
447
|
vertical-align: middle;
|
|
448
448
|
}
|
|
449
|
-
`,Ol={root:({instance:t})=>({"p-treetable p-component":!0,"p-treetable-hoverable":t.rowHover||t.selectionMode,"p-treetable-resizable":t.resizableColumns,"p-treetable-resizable-fit":t.resizableColumns&&t.columnResizeMode==="fit","p-treetable-scrollable":t.scrollable,"p-treetable-flex-scrollable":t.scrollable&&t.scrollHeight==="flex","p-treetable-gridlines":t.showGridlines,"p-treetable-sm":t.size==="small","p-treetable-lg":t.size==="large"}),loading:"p-treetable-loading",mask:"p-treetable-mask p-overlay-mask",loadingIcon:"p-treetable-loading-icon",header:"p-treetable-header",paginator:({instance:t})=>"p-treetable-paginator-"+t.paginatorPosition,tableContainer:"p-treetable-table-container",table:({instance:t})=>({"p-treetable-table":!0,"p-treetable-scrollable-table":t.scrollable,"p-treetable-resizable-table":t.resizableColumns,"p-treetable-resizable-table-fit":t.resizableColumns&&t.columnResizeMode==="fit"}),thead:"p-treetable-thead",headerCell:({instance:t})=>({"p-treetable-header-cell":!0,"p-treetable-sortable-column":t.sortable,"p-treetable-resizable-column":t.resizableColumns,"p-treetable-column-sorted":t?.sorted,"p-treetable-frozen-column":t.columnProp("frozen")}),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:t})=>({"p-treetable-row-selected":t.selected}),bodyCell:({instance:t})=>({"p-treetable-frozen-column":t.columnProp("frozen")}),bodyCellContent:({instance:t})=>({"p-treetable-body-cell-content":!0,"p-treetable-body-cell-content-expander":t.columnProp("expander")}),toggler:"p-treetable-body-cell-content-expander",nodeToggleButton:"p-treetable-node-toggle-button",nodeToggleIcon:"p-treetable-node-toggle-icon",pcNodeCheckbox:"p-treetable-node-checkbox",emptyMessage:"p-treetable-empty-message",tfoot:"p-treetable-tfoot",footerCell:({instance:t})=>({"p-treetable-frozen-column":t.columnProp("frozen")}),footer:"p-treetable-footer",columnResizeIndicator:"p-treetable-column-resize-indicator"},Hl={tableContainer:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},ti=(()=>{class t extends St{name="treetable";theme=Nl;classes=Ol;inlineStyles=Hl;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ce(t)))(i||t)}})();static \u0275prov=Te({token:t,factory:t.\u0275fac})}return t})();var Ue=(()=>{class t{sortSource=new J;selectionSource=new J;contextMenuSource=new J;uiUpdateSource=new J;totalRecordsSource=new J;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(o){return new(o||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac})}return t})(),te=(()=>{class t extends Ne{_componentStyle=B(ti);columns;style;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,o)=>o;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 S;contextMenuSelectionChange=new S;onFilter=new S;onNodeExpand=new S;onNodeCollapse=new S;onPage=new S;onSort=new S;onLazyLoad=new S;sortFunction=new S;onColResize=new S;onColReorder=new S;onNodeSelect=new S;onNodeUnselect=new S;onContextMenuSelect=new S;onHeaderCheckboxToggle=new S;onEditInit=new S;onEditComplete=new S;onEditCancel=new S;selectionKeysChange=new S;containerViewChild;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;ngOnInit(){super.ngOnInit(),this.lazy&&this.lazyLoadOnInit&&!this.virtualScroll&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.initialized=!0}templates;ngAfterContentInit(){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;break}})}filterService=B(vt);tableService=B(Ue);zone=B(ie);ngOnChanges(e){super.ngOnChanges(e),e.value&&(this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&this.sortField?this.sortSingle():this.sortMode=="multiple"&&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)&&this.sortMode==="single"&&this.sortSingle()),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&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,o,i,l){if(o&&o.length)for(let n of o){n.parent=e;let d={node:n,parent:e,level:i,visible:l&&(e?e.expanded:!0)};this.serializedValue.push(d),d.visible&&n.expanded&&this.serializeNodes(n,n.children,i+1,d.visible)}}serializePageNodes(){let e=this.filteredNodes||this.value;if(this.serializedValue=[],e&&e.length){let o=this.lazy?0:this.first;for(let i=o;i<o+this.rows;i++){let l=e[i];l&&(this.serializedValue.push({node:l,parent:null,level:0,visible:!0}),this.serializeNodes(l,l.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(R(e.data,this.dataKey))]=1;else this.selectedKeys[String(R(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 o=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.sortSingle(),this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.sortMode==="multiple"){let i=o.metaKey||o.ctrlKey,l=this.getSortMeta(e.field);l?i?l.order=l.order*-1:(this._multiSortMeta=[{field:e.field,order:l.order*-1}],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()):((!i||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.multiSortMeta.push({field: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||e.length===0)){this.customSort?this.sortFunction.emit({data:e,mode:this.sortMode,field:this.sortField,order:this.sortOrder}):e.sort((o,i)=>{let l=R(o.data,this.sortField),n=R(i.data,this.sortField),d=null;return l==null&&n!=null?d=-1:l!=null&&n==null?d=1:l==null&&n==null?d=0:typeof l=="string"&&typeof n=="string"?d=l.localeCompare(n,void 0,{numeric:!0}):d=l<n?-1:l>n?1:0,this.sortOrder*d});for(let o of e)this.sortNodes(o.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||e.length===0)){this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):e.sort((o,i)=>this.multisortField(o,i,this.multiSortMeta,0));for(let o of e)this.sortMultipleNodes(o.children)}}multisortField(e,o,i,l){if(Pe(this.multiSortMeta)||Pe(i[l]))return 0;let n=R(e.data,i[l].field),d=R(o.data,i[l].field),m=null;if(n==null&&d!=null?m=-1:n!=null&&d==null?m=1:n==null&&d==null&&(m=0),typeof n=="string"||n instanceof String){if(n.localeCompare&&n!=d)return i[l].order*n.localeCompare(d,void 0,{numeric:!0})}else m=n<d?-1:1;return n==d?i.length-1>l?this.multisortField(e,o,i,l+1):0:i[l].order*m}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let o=0;o<this.multiSortMeta.length;o++)if(this.multiSortMeta[o].field===e)return this.multiSortMeta[o]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let o=!1;if(this.multiSortMeta){for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field==e){o=!0;break}}return o}}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(Ge(G(G({},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 e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}onColumnResizeBegin(e){let o=ce(this.containerViewChild?.nativeElement).left;this.lastResizerHelperX=e.pageX-o+this.containerViewChild?.nativeElement.scrollLeft,e.preventDefault()}onColumnResize(e){let o=ce(this.containerViewChild?.nativeElement).left;Le(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-o+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(e,o){let i=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,l=o.offsetWidth,n=l+i,d=o.style.minWidth||15;if(l+i>parseInt(d)){if(this.columnResizeMode==="fit"){let m=o.nextElementSibling;for(;!m.offsetParent;)m=m.nextElementSibling;if(m){let y=m.offsetWidth-i,C=m.style.minWidth||15;if(n>15&&y>parseInt(C))if(this.scrollable){let L=this.findParentScrollableView(o),v=E(L,".p-treetable-scrollable-body table")||E(L,".p-scroller-viewport table"),F=E(L,"table.p-treetable-scrollable-header-table"),O=E(L,"table.p-treetable-scrollable-footer-table"),H=se(o);this.resizeColGroup(F,H,n,y),this.resizeColGroup(v,H,n,y),this.resizeColGroup(O,H,n,y)}else o.style.width=n+"px",m&&(m.style.width=y+"px")}}else if(this.columnResizeMode==="expand")if(this.scrollable){let m=this.findParentScrollableView(o),y=E(m,".p-treetable-scrollable-body")||E(m,".p-scroller-viewport"),C=E(m,".p-treetable-scrollable-header"),L=E(m,".p-treetable-scrollable-footer"),v=E(m,".p-treetable-scrollable-body table")||E(m,".p-scroller-viewport table"),F=E(m,"table.p-treetable-scrollable-header-table"),O=E(m,"table.p-treetable-scrollable-footer-table");v.style.width=v.offsetWidth+i+"px",F.style.width=F.offsetWidth+i+"px",O&&(O.style.width=O.offsetWidth+i+"px");let H=se(o),de=o?v.offsetWidth+i:n,pe=o?F.offsetWidth+i:n,_e=this.containerViewChild?.nativeElement.offsetWidth>=de,ye=(je,qe,We,si)=>{je&&qe&&(je.style.width=si?We+Re(y)+"px":"auto",qe.style.width=We+"px")};ye(y,v,de,_e),ye(C,F,pe,_e),ye(L,O,pe,_e),this.resizeColGroup(F,H,n,null),this.resizeColGroup(v,H,n,null),this.resizeColGroup(O,H,n,null)}else{this.tableViewChild.nativeElement.style.width=this.tableViewChild?.nativeElement.offsetWidth+i+"px",o.style.width=n+"px";let m=this.tableViewChild?.nativeElement.style.width;this.containerViewChild.nativeElement.style.width=m+"px"}this.onColResize.emit({element:o,delta:i})}this.resizeHelperViewChild.nativeElement.style.display="none",De(this.containerViewChild?.nativeElement,"p-unselectable-text")}findParentScrollableView(e){if(e){let o=e.parentElement;for(;o&&!ze(o,"p-treetable-scrollable-view");)o=o.parentElement;return o}else return null}resizeColGroup(e,o,i,l){if(e){let n=e.children[0].nodeName==="COLGROUP"?e.children[0]:null;if(n){let d=n.children[o],m=d.nextElementSibling;d.style.width=i+"px",m&&l&&(m.style.width=l+"px")}else throw"Scrollable tables require a colgroup to support resizable columns"}}onColumnDragStart(e,o){this.reorderIconWidth=Tt(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=yt(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=o,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,o){if(this.reorderableColumns&&this.draggedColumn&&o){e.preventDefault();let i=ce(this.containerViewChild?.nativeElement),l=ce(o);if(this.draggedColumn!=o){let n=l.left-i.left,d=i.top-l.top,m=l.left+o.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=l.top-i.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=l.top-i.top+o.offsetHeight+"px",e.pageX>m?(this.reorderIndicatorUpViewChild.nativeElement.style.left=n+o.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=n+o.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=n-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=n-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,o){if(e.preventDefault(),this.draggedColumn){let i=Oe.indexWithinGroup(this.draggedColumn,"ttreorderablecolumn"),l=Oe.indexWithinGroup(o,"ttreorderablecolumn"),n=i!=l;n&&(l-i==1&&this.dropPosition===-1||i-l==1&&this.dropPosition===1)&&(n=!1),n&&l<i&&this.dropPosition===1&&(l=l+1),n&&l>i&&this.dropPosition===-1&&(l=l-1),n&&(wt(this.columns,i,l),this.onColReorder.emit({dragIndex:i,dropIndex:l,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 o=e.originalEvent.target.nodeName;if(!(o=="INPUT"||o=="BUTTON"||o=="A"||ze(e.originalEvent.target,"p-clickable"))){if(this.selectionMode){this.preventSelectionSetterPropagation=!0;let i=e.rowNode,l=this.isSelected(i.node),n=this.rowTouched?!1:this.metaKeySelection,d=this.dataKey?String(R(i.node.data,this.dataKey)):null;if(n){let m=e.originalEvent,y=m.metaKey||m.ctrlKey;if(l&&y){if(this.isSingleSelectionMode())this._selection=null,this.selectedKeys={},this.selectionChange.emit(null);else{let C=this.findIndexInSelection(i.node);this._selection=this.selection.filter((L,v)=>v!=C),this.selectionChange.emit(this.selection),d&&delete this.selectedKeys[d]}this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"})}else this.isSingleSelectionMode()?(this._selection=i.node,this.selectionChange.emit(i.node),d&&(this.selectedKeys={},this.selectedKeys[d]=1)):this.isMultipleSelectionMode()&&(y?this._selection=this.selection||[]:(this._selection=[],this.selectedKeys={}),this._selection=[...this.selection,i.node],this.selectionChange.emit(this.selection),d&&(this.selectedKeys[d]=1)),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectedKeys={},this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"})):(this._selection=i.node,this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex}),d&&(this.selectedKeys={},this.selectedKeys[d]=1));else if(this.selectionMode==="multiple")if(l){let m=this.findIndexInSelection(i.node);this._selection=this.selection.filter((y,C)=>C!=m),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"}),d&&delete this.selectedKeys[d]}else this._selection=this.selection?[...this.selection,i.node]:[i.node],this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex}),d&&(this.selectedKeys[d]=1);this.tableService.onSelectionChange()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let o=e.rowNode.node;if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=o,this.contextMenuSelectionChange.emit(o),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:o}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(o);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let i=this.isSelected(o),l=this.dataKey?String(R(o.data,this.dataKey)):null;i||(this.isSingleSelectionMode()?(this.selection=o,this.selectionChange.emit(o)):this.isMultipleSelectionMode()&&(this.selection=[o],this.selectionChange.emit(this.selection)),l&&(this.selectedKeys[l]=1)),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:o})}}}toggleNodeWithCheckbox(e){this.selection=this.selection||[],this.preventSelectionSetterPropagation=!0;let o=e.rowNode.node;this.isSelected(o)?(this.propagateSelectionDown(o,!1),e.rowNode.parent&&this.propagateSelectionUp(o.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:o})):(this.propagateSelectionDown(o,!0),e.rowNode.parent&&this.propagateSelectionUp(o.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:o})),this.tableService.onSelectionChange()}toggleNodesWithCheckbox(e,o){let i=this.filteredNodes||this.value;this._selection=o&&i?i.slice():[],this.toggleAll(o),o||(this._selection=[],this.selectedKeys={}),this.preventSelectionSetterPropagation=!0,this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:o})}toggleAll(e){let o=this.filteredNodes||this.value;if(this.selectionKeys){if(o&&o.length){for(let i of o)this.propagateDown(i,e);this.selectionKeysChange.emit(this.selectionKeys)}}else if(o&&o.length)for(let i of o)this.propagateSelectionDown(i,e)}propagateSelectionUp(e,o){if(e.children&&e.children.length){let l=0,n=!1,d=this.dataKey?String(R(e.data,this.dataKey)):null;for(let m of e.children)this.isSelected(m)?l++:m.partialSelected&&(n=!0);if(o&&l==e.children.length)this._selection=[...this.selection||[],e],e.partialSelected=!1,d&&(this.selectedKeys[d]=1);else{if(!o){let m=this.findIndexInSelection(e);m>=0&&(this._selection=this.selection.filter((y,C)=>C!=m),d&&delete this.selectedKeys[d])}n||l>0&&l!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}}let i=e.parent;e.checked=o,i&&this.propagateSelectionUp(i,o)}propagateSelectionDown(e,o){let i=this.findIndexInSelection(e),l=this.dataKey?String(R(e.data,this.dataKey)):null;if(o&&i==-1?(this._selection=[...this.selection||[],e],l&&(this.selectedKeys[l]=1)):!o&&i>-1&&(this._selection=this.selection.filter((n,d)=>d!=i),l&&delete this.selectedKeys[l]),e.partialSelected=!1,e.checked=o,e.children&&e.children.length)for(let n of e.children)this.propagateSelectionDown(n,o)}isSelected(e){return e&&this.selection?this.dataKey?e.hasOwnProperty("checked")?e.checked:this.selectedKeys[R(e.data,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}isNodeSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.checked===!0:!1}isNodePartialSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.partialChecked===!0:!1}nodeKey(e){return R(e,this.dataKey)||R(e?.data,this.dataKey)}toggleCheckbox(e){let{rowNode:o,check:i,originalEvent:l}=e,n=o.node;this.selectionKeys?(this.propagateDown(n,i),n.parent&&this.propagateUp(n.parent,i),this.selectionKeysChange.emit(this.selectionKeys)):this.toggleNodeWithCheckbox({originalEvent:l,rowNode:o}),this.tableService.onSelectionChange()}propagateDown(e,o){if(o?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:delete this.selectionKeys[this.nodeKey(e)],e.children&&e.children.length)for(let i of e.children)this.propagateDown(i,o)}propagateUp(e,o){let i=0,l=!1;for(let d of e.children)this.selectionKeys[this.nodeKey(d)]&&this.selectionKeys[this.nodeKey(d)].checked?i++:this.selectionKeys[this.nodeKey(d)]&&this.selectionKeys[this.nodeKey(d)].partialChecked&&(l=!0);o&&i===e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:(o||delete this.selectionKeys[this.nodeKey(e)],l||i>0&&i!==e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!0}:this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!1});let n=e.parent;n&&this.propagateUp(n,o)}findIndexInSelection(e){let o=-1;if(this.selection&&this.selection.length){for(let i=0;i<this.selection.length;i++)if(this.equals(e,this.selection[i])){o=i;break}}return o}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}equals(e,o){return this.compareSelectionBy==="equals"?Ve(e,o):Ve(e.data,o.data,this.dataKey)}filter(e,o,i){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[o]&&delete this.filters[o]:this.filters[o]={value:e,matchMode:i},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay)}filterGlobal(e,o){this.filter(e,"global",o)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredNodes=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let o;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");o=this.globalFilterFields||this.columns}this.filteredNodes=[];let i=this.filterMode==="strict",l=!1;for(let n of this.value){let d=G({},n),m=!0,y=!1,C;for(let v in this.filters)if(this.filters.hasOwnProperty(v)&&v!=="global"){let F=this.filters[v],O=v,H=F.value,de=F.matchMode||"startsWith",pe=this.filterService.filters[de];if(C={filterField:O,filterValue:H,filterConstraint:pe,isStrictMode:i},(i&&!(this.findFilteredNodes(d,C)||this.isFilterMatched(d,C))||!i&&!(this.isFilterMatched(d,C)||this.findFilteredNodes(d,C)))&&(m=!1),!m)break}if(this.filters.global&&!y&&o){let v=G({},d),F,O=this.filters.global.value,H=this.filterService.filters[this.filters.global.matchMode];C={filterField:F,filterValue:O,filterConstraint:H,isStrictMode:i,globalFilterFieldsArray:o},(i&&(this.findFilteredNodes(v,C)||this.isFilterMatched(v,C))||!i&&(this.isFilterMatched(v,C)||this.findFilteredNodes(v,C)))&&(y=!0,d=v)}let L=m;this.filters.global&&(L=m&&y),L&&this.filteredNodes.push(d),l=l||!m||y||m&&this.filteredNodes.length>0||!y&&this.filteredNodes.length===0}l||(this.filteredNodes=null),this.paginator&&(this.totalRecords=this.filteredNodes?this.filteredNodes.length:this.value?this.value.length:0)}this.cd.markForCheck()}this.first=0;let 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,o){if(e){let i=!1;if(e.children){let l=[...e.children];e.children=[];for(let n of l){let d=G({},n);this.isFilterMatched(d,o)&&(i=!0,e.children.push(d))}}if(i)return!0}}isFilterMatched(e,o){let{filterField:i,filterValue:l,filterConstraint:n,isStrictMode:d,globalFilterFieldsArray:m}=o,y=!1,C=L=>n(R(e.data,L),l,this.filterLocale);return y=m?.length?m.some(L=>C(L.field||L)):C(i),(!y||d&&!this.isNodeLeaf(e))&&(y=this.findFilteredNodes(e,{filterField:i,filterValue:l,filterConstraint:n,isStrictMode:d,globalFilterFieldsArray:m})||y),y}isNodeLeaf(e){return e.leaf===!1?!1:!(e.children&&e.children.length)}hasFilter(){let e=!0;for(let o in this.filters)if(this.filters.hasOwnProperty(o)){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,o,i){this.editingCell=e,this.editingCellData=o,this.editingCellField=i,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&ee(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.editingCellClick&&this.isEditingCellValid()&&(De(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)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.editingCellField=null,this.editingCellData=null,this.initialized=null,super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ce(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-treeTable"],["p-treetable"],["p-tree-table"]],contentQueries:function(o,i,l){if(o&1&&(b(l,ui,4),b(l,mi,4),b(l,gi,4),b(l,fi,4),b(l,bi,4),b(l,_i,4),b(l,yi,4),b(l,Ti,4),b(l,Ci,4),b(l,wi,4),b(l,vi,4),b(l,Si,4),b(l,xi,4),b(l,Ii,4),b(l,Ei,4),b(l,ki,4),b(l,zi,4),b(l,Li,4),b(l,Di,4),b(l,Ri,4),b(l,Mi,4),b(l,Pi,4),b(l,Vi,4),b(l,Fi,4),b(l,Ni,4),b(l,Oi,4),b(l,fe,4)),o&2){let n;g(n=f())&&(i._colGroupTemplate=n.first),g(n=f())&&(i._captionTemplate=n.first),g(n=f())&&(i._headerTemplate=n.first),g(n=f())&&(i._bodyTemplate=n.first),g(n=f())&&(i._footerTemplate=n.first),g(n=f())&&(i._summaryTemplate=n.first),g(n=f())&&(i._emptyMessageTemplate=n.first),g(n=f())&&(i._paginatorLeftTemplate=n.first),g(n=f())&&(i._paginatorRightTemplate=n.first),g(n=f())&&(i._paginatorDropdownItemTemplate=n.first),g(n=f())&&(i._frozenHeaderTemplate=n.first),g(n=f())&&(i._frozenBodyTemplate=n.first),g(n=f())&&(i._frozenFooterTemplate=n.first),g(n=f())&&(i._frozenColGroupTemplate=n.first),g(n=f())&&(i._loadingIconTemplate=n.first),g(n=f())&&(i._reorderIndicatorUpIconTemplate=n.first),g(n=f())&&(i._reorderIndicatorDownIconTemplate=n.first),g(n=f())&&(i._sortIconTemplate=n.first),g(n=f())&&(i._checkboxIconTemplate=n.first),g(n=f())&&(i._headerCheckboxIconTemplate=n.first),g(n=f())&&(i._togglerIconTemplate=n.first),g(n=f())&&(i._paginatorFirstPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorLastPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorPreviousPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorNextPageLinkIconTemplate=n.first),g(n=f())&&(i._loaderTemplate=n.first),g(n=f())&&(i.templates=n)}},viewQuery:function(o,i){if(o&1&&(k(Hi,5),k(Ai,5),k(Bi,5),k(Ki,5),k($i,5),k(Qi,5),k(Ui,5)),o&2){let l;g(l=f())&&(i.containerViewChild=l.first),g(l=f())&&(i.resizeHelperViewChild=l.first),g(l=f())&&(i.reorderIndicatorUpViewChild=l.first),g(l=f())&&(i.reorderIndicatorDownViewChild=l.first),g(l=f())&&(i.tableViewChild=l.first),g(l=f())&&(i.scrollableViewChild=l.first),g(l=f())&&(i.scrollableFrozenViewChild=l.first)}},inputs:{columns:"columns",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",autoLayout:[2,"autoLayout","autoLayout",w],lazy:[2,"lazy","lazy",w],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",w],paginator:[2,"paginator","paginator",w],rows:[2,"rows","rows",$],first:[2,"first","first",$],pageLinks:[2,"pageLinks","pageLinks",$],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",w],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",w],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",w],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",w],showPageLinks:[2,"showPageLinks","showPageLinks",w],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",$],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",w],customSort:[2,"customSort","customSort",w],selectionMode:"selectionMode",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",w],compareSelectionBy:"compareSelectionBy",rowHover:[2,"rowHover","rowHover",w],loading:[2,"loading","loading",w],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",w],scrollable:[2,"scrollable","scrollable",w],scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",w],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",$],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",$],frozenWidth:"frozenWidth",frozenColumns:"frozenColumns",resizableColumns:[2,"resizableColumns","resizableColumns",w],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",w],contextMenu:"contextMenu",rowTrackBy:"rowTrackBy",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",$],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",w]},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:[pt([Ue,ti]),ve,tt],decls:12,vars:21,consts:[["container",""],["table",""],["scrollableView",""],["scrollableFrozenView",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],["data-scrollselectors",".p-treetable-scrollable-body",3,"ngStyle","ngClass"],["class","p-treetable-loading",4,"ngIf"],["class","p-treetable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-wrapper",4,"ngIf"],["class","p-treetable-scrollable-wrapper",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-treetable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-treetable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-treetable-loading"],[1,"p-overlay-mask","p-treetable-mask"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-treetable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-treetable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-treetable-header"],["styleClass","p-paginator-top",3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[1,"p-treetable-wrapper"],["role","table",3,"ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate"],["role","rowgroup",1,"p-treetable-tfoot"],[1,"p-treetable-scrollable-wrapper"],["class","p-treetable-scrollable-view p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight",4,"ngIf"],[1,"p-treetable-scrollable-view",3,"ttScrollableView","frozen","scrollHeight","ngStyle"],[1,"p-treetable-scrollable-view","p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight"],["styleClass","p-paginator-bottom",3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale"],[1,"p-treetable-footer"],[1,"p-column-resizer-helper",2,"display","none"],[1,"p-treetable-reorder-indicator-up",2,"display","none"],[1,"p-treetable-reorder-indicator-down",2,"display","none"]],template:function(o,i){o&1&&(c(0,"div",7,0),p(2,to,4,2,"div",8)(3,oo,2,1,"div",9)(4,bo,5,21,"p-paginator",10)(5,Co,9,16,"div",11)(6,vo,4,8,"div",12)(7,Fo,5,21,"p-paginator",13)(8,Oo,2,1,"div",14)(9,Ho,2,0,"div",15)(10,$o,4,2,"span",16)(11,qo,4,2,"span",17),h()),o&2&&(le(i.styleClass),a("ngStyle",i.style)("ngClass",ut(14,ji,i.showGridlines,i.rowHover||i.selectionMode==="single"||i.selectionMode==="multiple",i.autoLayout,i.resizableColumns,i.resizableColumns&&i.columnResizeMode==="fit",i.scrollable&&i.scrollHeight==="flex")),s(2),a("ngIf",i.loading&&i.showLoader),s(),a("ngIf",i.captionTemplate||i._captionTemplate),s(),a("ngIf",i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")),s(),a("ngIf",!i.scrollable),s(),a("ngIf",i.scrollable),s(),a("ngIf",i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")),s(),a("ngIf",i.summaryTemplate||i._summaryTemplate),s(),a("ngIf",i.resizableColumns),s(),a("ngIf",i.reorderableColumns),s(),a("ngIf",i.reorderableColumns))},dependencies:()=>[re,W,ae,ke,Qt,fe,$e,He,Ae,Al,oi],encapsulation:2})}return t})(),oi=(()=>{class t{tt;treeTableService;cd;columns;template;frozen;serializedNodes;scrollerOptions;subscription;constructor(e,o,i){this.tt=e,this.treeTableService=o,this.cd=i,this.subscription=this.tt.tableService.uiUpdateSource$.subscribe(()=>{this.tt.virtualScroll&&this.cd.detectChanges()})}getScrollerOption(e,o){return this.tt.virtualScroll?(o=o||this.scrollerOptions,o?o[e]:null):null}getRowIndex(e){let o=this.getScrollerOption("getItemOptions");return o?o(e).index:e}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(o){return new(o||t)(V(te),V(Ue),V(mt))};static \u0275cmp=Q({type:t,selectors:[["","pTreeTableBody",""]],inputs:{columns:[0,"pTreeTableBody","columns"],template:[0,"pTreeTableBodyTemplate","template"],frozen:[2,"frozen","frozen",w],serializedNodes:"serializedNodes",scrollerOptions:"scrollerOptions"},standalone:!1,attrs:Wo,decls:2,vars:3,consts:[["ngFor","",3,"ngForOf","ngForTrackBy"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,i){o&1&&p(0,Yo,1,1,"ng-template",0)(1,tl,2,5,"ng-container",1),o&2&&(a("ngForOf",i.serializedNodes||i.tt.serializedValue)("ngForTrackBy",i.tt.rowTrackBy),s(),a("ngIf",i.tt.isEmpty()))},dependencies:[gt,W,ae],encapsulation:2})}return t})(),Al=(()=>{class t{platformId;renderer;tt;el;zone;columns;frozen;scrollHeaderViewChild;scrollHeaderBoxViewChild;scrollBodyViewChild;scrollTableViewChild;scrollLoadingTableViewChild;scrollFooterViewChild;scrollFooterBoxViewChild;scrollableAlignerViewChild;scroller;headerScrollListener;bodyScrollListener;footerScrollListener;frozenSiblingBody;totalRecordsSubscription;_scrollHeight;preventBodyScrollPropagation;get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e,e!=null&&(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,o,i,l,n){this.platformId=e,this.renderer=o,this.tt=i,this.el=l,this.zone=n}ngAfterViewInit(){if(me(this.platformId)){if(this.frozen)this.scrollableAlignerViewChild&&this.scrollableAlignerViewChild.nativeElement&&(this.scrollableAlignerViewChild.nativeElement.style.height=_t()+"px");else{(this.tt.frozenColumns||this.tt.frozenBodyTemplate||this.tt._frozenBodyTemplate)&&Le(this.el.nativeElement,"p-treetable-unfrozen-view");let e=this.el.nativeElement.previousElementSibling;if(e&&(this.tt.virtualScroll?this.frozenSiblingBody=E(e,".p-scroller-viewport"):this.frozenSiblingBody=E(e,".p-treetable-scrollable-body")),this.scrollHeight){let o=Re();this.scrollHeaderBoxViewChild.nativeElement.style.paddingRight=o+"px",this.scrollFooterBoxViewChild&&this.scrollFooterBoxViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.paddingRight=o+"px")}}this.bindEvents()}}bindEvents(){me(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.tt.virtualScroll?this.bodyScrollListener=this.renderer.listen((this.scroller?.getElementRef()).nativeElement,"scroll",this.onBodyScroll.bind(this)):this.bodyScrollListener=this.renderer.listen(this.scrollBodyViewChild?.nativeElement,"scroll",this.onBodyScroll.bind(this)))})}unbindEvents(){me(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(){let e=this.scrollHeaderViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onFooterScroll(){let 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){if(this.preventBodyScrollPropagation){this.preventBodyScrollPropagation=!1;return}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)}ngOnDestroy(){this.unbindEvents(),this.frozenSiblingBody=null}static \u0275fac=function(o){return new(o||t)(V(it),V(lt),V(te),V(we),V(ie))};static \u0275cmp=Q({type:t,selectors:[["","ttScrollableView",""]],viewQuery:function(o,i){if(o&1&&(k(il,5),k(ol,5),k(ll,5),k(nl,5),k(rl,5),k(al,5),k(sl,5),k(cl,5),k(dl,5)),o&2){let l;g(l=f())&&(i.scrollHeaderViewChild=l.first),g(l=f())&&(i.scrollHeaderBoxViewChild=l.first),g(l=f())&&(i.scrollBodyViewChild=l.first),g(l=f())&&(i.scrollTableViewChild=l.first),g(l=f())&&(i.scrollLoadingTableViewChild=l.first),g(l=f())&&(i.scrollFooterViewChild=l.first),g(l=f())&&(i.scrollFooterBoxViewChild=l.first),g(l=f())&&(i.scrollableAlignerViewChild=l.first),g(l=f())&&(i.scroller=l.first)}},inputs:{columns:[0,"ttScrollableView","columns"],frozen:[2,"frozen","frozen",w],scrollHeight:"scrollHeight"},standalone:!1,attrs:pl,decls:13,vars:13,consts:[["scrollHeader",""],["scrollHeaderBox",""],["buildInItems",""],["scroller",""],["content",""],["loader",""],["scrollBody",""],["scrollTable",""],["scrollableAligner",""],["scrollFooter",""],["scrollFooterBox",""],[1,"p-treetable-scrollable-header"],[1,"p-treetable-scrollable-header-box"],[1,"p-treetable-scrollable-header-table",3,"ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["styleClass","p-treetable-scrollable-body",3,"items","style","scrollHeight","itemSize","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-treetable-scrollable-footer",4,"ngIf"],["styleClass","p-treetable-scrollable-body",3,"onLazyLoad","items","scrollHeight","itemSize","lazy","options"],[1,"p-treetable-scrollable-body",3,"ngStyle"],["role","table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate","serializedNodes","frozen"],["style","background-color:transparent",4,"ngIf"],[2,"background-color","transparent"],[1,"p-treetable-scrollable-footer"],[1,"p-treetable-scrollable-footer-box"],[1,"p-treetable-scrollable-footer-table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-treetable-tfoot"]],template:function(o,i){o&1&&(c(0,"div",11,0)(2,"div",12,1)(4,"table",13),p(5,fl,1,0,"ng-container",14),c(6,"thead",15),p(7,bl,1,0,"ng-container",14),h()()()(),p(8,vl,5,10,"p-scroller",16)(9,xl,4,10,"ng-container",17)(10,kl,5,15,"ng-template",null,2,x)(12,Dl,8,10,"div",18)),o&2&&(s(4),a("ngClass",i.tt.tableStyleClass)("ngStyle",i.tt.tableStyle),s(),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",z(9,A,i.columns)),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenHeaderTemplate||i.tt._frozenHeaderTemplate||i.tt.headerTemplate||i.tt._headerTemplate:i.tt.headerTemplate||i.tt._headerTemplate)("ngTemplateOutletContext",z(11,A,i.columns)),s(),a("ngIf",i.tt.virtualScroll),s(),a("ngIf",!i.tt.virtualScroll),s(3),a("ngIf",i.tt.footerTemplate||i.tt._footerTemplate))},dependencies:()=>[re,W,ae,ke,Qe,oi],encapsulation:2})}return t})();var li=(()=>{class t{tt;el;zone;get level(){return this.rowNode?.level+1}get styleClass(){return this.rowNode?.node.styleClass||""}get expanded(){return this.rowNode?.node.expanded}rowNode;constructor(e,o,i){this.tt=e,this.el=o,this.zone=i}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);break;default:break}}onArrowDownKey(e){let o=this.el?.nativeElement?.nextElementSibling;o&&this.focusRowChange(e.currentTarget,o),e.preventDefault()}onArrowUpKey(e){let o=this.el?.nativeElement?.previousElementSibling;o&&this.focusRowChange(e.currentTarget,o),e.preventDefault()}onArrowRightKey(e){let o=e.currentTarget;!(E(o,"button").style.visibility==="hidden")&&!this.expanded&&this.rowNode.node.children&&(this.expand(e),o.tabIndex=-1),e.preventDefault()}onArrowLeftKey(e){let o=this.tt.containerViewChild?.nativeElement,i=ee(o,'[aria-expanded="true"]'),l=i[i.length-1];this.expanded&&this.collapse(e),l&&(this.tt.toggleRowIndex=se(l)),this.restoreFocus(),e.preventDefault()}onHomeKey(e){let o=E(this.tt.containerViewChild?.nativeElement,`tr[aria-level="${this.level}"]`);o&&ge(o),e.preventDefault()}onEndKey(e){let o=ee(this.tt.containerViewChild?.nativeElement,`tr[aria-level="${this.level}"]`),i=o[o.length-1];ge(i),e.preventDefault()}onTabKey(e){let o=this.el.nativeElement?[...ee(this.el.nativeElement.parentNode,"tr")]:void 0;if(o&&Ct(o)){let i=o.some(l=>Me(l,"data-p-highlight")||l.getAttribute("aria-checked")==="true");if(o.forEach(l=>{l.tabIndex=-1}),i){let l=o.filter(n=>Me(n,"data-p-highlight")||n.getAttribute("aria-checked")==="true");l[0].tabIndex=0;return}o[0].tabIndex=0}}expand(e){this.tt.toggleRowIndex=se(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,o,i){e.tabIndex="-1",o.tabIndex="0",ge(o)}restoreFocus(e){this.zone.runOutsideAngular(()=>{setTimeout(()=>{let o=this.tt.containerViewChild?.nativeElement,i=E(o,".p-treetable-tbody").children[e||this.tt.toggleRowIndex],l=[...ee(o,"tr")];l&&l.forEach(n=>{i.isSameNode(n)||(n.tabIndex=-1)}),i&&(i.tabIndex=0,i.focus())},25)})}static \u0275fac=function(o){return new(o||t)(V(te),V(we),V(ie))};static \u0275dir=rt({type:t,selectors:[["","ttRow",""]],hostVars:7,hostBindings:function(o,i){o&1&&D("keydown",function(n){return i.onKeyDown(n)}),o&2&&(oe("tabindex","0")("aria-expanded",i.expanded)("aria-level",i.level)("data-pc-section",i.row)("role",i.row),le("p-element "+i.styleClass))},inputs:{rowNode:[0,"ttRow","rowNode"]},standalone:!1})}return t})(),ni=(()=>{class t extends Ne{tt;rowNode;constructor(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(o){return new(o||t)(V(te))};static \u0275cmp=Q({type:t,selectors:[["p-treeTableToggler"],["p-treetabletoggler"],["p-treetable-toggler"]],inputs:{rowNode:"rowNode"},standalone:!1,features:[ve],decls:3,vars:12,consts:[["type","button","tabindex","-1","pRipple","",1,"p-treetable-toggler",3,"click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,i){o&1&&(c(0,"button",0),D("click",function(n){return i.onClick(n)}),p(1,Pl,3,2,"ng-container",1)(2,Fl,1,0,null,2),h()),o&2&&(at("visibility",i.rowNode.node.leaf===!1||i.rowNode.node.children&&i.rowNode.node.children.length?"visible":"hidden")("margin-inline-start",i.rowNode.level*16+"px"),oe("data-pc-section","rowtoggler")("data-pc-group-section","rowactionbutton")("aria-label",i.toggleButtonAriaLabel),s(),a("ngIf",!i.tt.togglerIconTemplate&&!i.tt._togglerIconTemplate),s(),a("ngTemplateOutlet",i.tt.togglerIconTemplate||i.tt._togglerIconTemplate)("ngTemplateOutletContext",z(10,A,i.rowNode.node.expanded)))},dependencies:()=>[W,ae,Dt,Be,Ke],encapsulation:2})}return t})(),ri=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=nt({type:t});static \u0275inj=et({imports:[ue,Ut,Qe,$e,He,Ae,Et,zt,kt,xt,It,Be,Ke,Lt,Fe,bt,Fe]})}return t})();var ai=ci(di());var Kl=()=>({width:"30vw"}),$l=()=>({"1199px":"75vw","575px":"100vw"}),Ql=()=>({height:"calc(100vh - 70px)"}),Ul=t=>({"justify-content-center":t}),jl=t=>({"col-12":t}),ql=()=>({"min-width":"50rem"});function Wl(t,r){if(t&1){let e=N();c(0,"p-button",12),D("click",function(){M(e);let i=u(2);return P(i.onPrevStep())}),h()}if(t&2){let e=u(2);a("disabled",e.stepActiveIndex()===1)}}function Gl(t,r){if(t&1){let e=N();c(0,"p-button",13),D("click",function(){M(e);let i=u(2);return P(i.onNextStep())}),h()}if(t&2){let e=u(2);a("disabled",e.stepActiveIndex()===3||!e.COAImportPreview())}}function Jl(t,r){if(t&1){let e=N();c(0,"p-button",14),D("click",function(){M(e);let i=u(2);return P(i.onReset())}),h()}}function Xl(t,r){if(t&1&&p(0,Wl,1,1,"p-button",9)(1,Gl,1,1,"p-button",10)(2,Jl,1,0,"p-button",11),t&2){let e=u();a("ngIf",e.stepActiveIndex()>1),s(),a("ngIf",e.stepActiveIndex()<3),s(),a("ngIf",e.stepActiveIndex()===3)}}function Zl(t,r){if(t&1){let e=N();c(0,"POS-uppy",23),D("fileUploaded",function(i){M(e);let l=u(2);return P(l.onFileUploaded(i))})("fileRemoved",function(i){M(e);let l=u(2);return P(l.onFileRemoved(i))}),h(),c(1,"p",24),_(2," Please refer this "),c(3,"a",25),_(4,"article"),h(),_(5," for more information "),h()}if(t&2){let e=u(2);a("uppyCoreConfiguration",e.uppyCore)("sampleUrl",e.SAMPLE_URL)}}function Yl(t,r){t&1&&(c(0,"tr")(1,"th"),_(2,"Name"),h(),c(3,"th"),_(4,"Code"),h(),c(5,"th"),_(6,"Status"),h(),c(7,"th"),_(8,"Message"),h()())}function en(t,r){if(t&1&&(c(0,"tr",27)(1,"td"),I(2,"p-treetable-toggler",28),c(3,"p",29),Ie(4,"truncate"),_(5),Ie(6,"truncate"),h()(),c(7,"td"),_(8),h(),c(9,"td"),_(10),h(),c(11,"td"),_(12),h()()),t&2){let e=r.$implicit,o=r.rowData;a("ttRow",e),s(2),a("rowNode",e),s(),a("pTooltip",Ee(4,7,o.name,o.name!==40?o.name:null)),s(2),xe(" ",Ee(6,10,o.name,40)," "),s(3),K(o.code),s(2),K(o.action),s(2),K(o.action)}}function tn(t,r){if(t&1&&(c(0,"p-treetable",26),p(1,Yl,9,0,"ng-template",null,3,x)(3,en,13,13,"ng-template",null,6,x),h()),t&2){let e=u(3);a("value",e.COAImportPreviewTreenode())("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("tableStyle",q(4,ql))}}function on(t,r){if(t&1&&p(0,tn,5,5,"p-treetable",26),t&2){let e=u(2);Se(e.COAImportPreview()?0:-1)}}function ln(t,r){t&1&&(c(0,"h5"),_(1,"Successfully Imported"),h())}function nn(t,r){if(t&1&&(c(0,"p-panel")(1,"div",15)(2,"div",16)(3,"p-stepper",17,5)(5,"p-step-list")(6,"p-step",18)(7,"div",19),I(8,"i",20),c(9,"span"),_(10,"Upload"),h()()(),c(11,"p-step",18)(12,"div",19),I(13,"i",21),c(14,"span"),_(15,"Preview"),h()()(),c(16,"p-step",18)(17,"div",19),I(18,"i",22),c(19,"span"),_(20,"Finish"),h()()()(),c(21,"p-step-panels")(22,"p-step-panel",18),p(23,Zl,6,2,"ng-template",null,1,x),h(),c(25,"p-step-panel",18),p(26,on,1,1,"ng-template",null,1,x),h(),c(28,"p-step-panel",18),p(29,ln,2,0,"ng-template",null,1,x),h()()()()()()),t&2){let e=u();Z(q(12,Ql)),s(),a("ngClass",z(13,Ul,e.stepActiveIndex()===1||e.stepActiveIndex()===3)),s(),a("ngClass",z(15,jl,e.stepActiveIndex()===2)),s(),a("linear",!0)("value",e.stepActiveIndex()),s(3),a("value",1),s(5),a("value",2),s(5),a("value",3),s(6),a("value",1),s(3),a("value",2),s(3),a("value",3)}}function rn(t,r){if(t&1){let e=N();c(0,"p-button",30),D("onClick",function(){M(e);let i=u();return P(i.summaryDialogVisible.set(!1))}),h()}t&2&&a("rounded",!0)("text",!0)}function an(t,r){if(t&1&&(c(0,"div",31)(1,"h4",32),_(2,"Import Summary"),h(),c(3,"p",33),_(4),h()()),t&2){let e=u();s(4),xe("(",e.CSVRowCount()," rows ready for import)")}}function sn(t,r){t&1&&(c(0,"div",36)(1,"h4",37),_(2,"New"),h()())}function cn(t,r){t&1&&(c(0,"div",38)(1,"h4",37),_(2,"Updated"),h()())}function dn(t,r){t&1&&(c(0,"div",39)(1,"h4",37),_(2,"Unchanged"),h()())}function pn(t,r){t&1&&(c(0,"div",40)(1,"h4",37),_(2,"Error"),h()())}function hn(t,r){if(t&1&&(c(0,"div",34)(1,"div",35)(2,"p-card"),p(3,sn,3,0,"ng-template",null,3,x),c(5,"div",34)(6,"div",35)(7,"h5"),_(8),h()()()()()(),I(9,"br"),c(10,"div",34)(11,"div",35)(12,"p-card"),p(13,cn,3,0,"ng-template",null,3,x),c(15,"div",34)(16,"div",35)(17,"h5"),_(18),h()()()()(),c(19,"div",35)(20,"p-card"),p(21,dn,3,0,"ng-template",null,3,x),c(23,"div",34)(24,"div",35)(25,"h5"),_(26),h()()()()(),c(27,"div",35)(28,"p-card"),p(29,pn,3,0,"ng-template",null,3,x),c(31,"div",34)(32,"div",35)(33,"h5"),_(34),h()()()()()()),t&2){let e=u(2);s(8),K(e.COAImportPreview().summary.new),s(10),K(e.COAImportPreview().summary.updated),s(8),K(e.COAImportPreview().summary.noChanges),s(8),K(e.COAImportPreview().summary.error)}}function un(t,r){if(t&1&&p(0,hn,35,4),t&2){let e=u();Se(e.COAImportPreview()?0:-1)}}function mn(t,r){if(t&1){let e=N();c(0,"p-button",41),D("click",function(){M(e);let i=u();return P(i.summaryDialogVisible.set(!1))}),h(),c(1,"p-button",42),D("click",function(){M(e);let i=u();return P(i.onConfirmImport())}),h()}if(t&2){let e=u();s(),a("disabled",!e.COAImportPreview().canProceed)}}var Cr=(()=>{class t{constructor(){this.service=B(jt),this.router=B(ft),this.stepActiveIndex=X(1),this.COAImportPreview=X(null),this.COAImportPreviewTreenode=X([]),this.summaryDialogVisible=X(!1),this.CSVRowCount=X(0),this.uppyCore={restrictions:{allowedFileTypes:["text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},this.SAMPLE_URL="https://res.cloudinary.com/pos/raw/upload/v1585879643/POS/CSV/ChartOfAccount-DealPOS-V1.csv",this.hasIssue=!1}onFileUpload(e){console.log("File upload event:",e);let o=new FormData;Array.isArray(e.currentFiles)&&e.currentFiles.forEach(i=>{i instanceof File&&(o.append("File",i,i.name),ai.default.parse(i,{header:!0,skipEmptyLines:!0,complete:l=>{console.log("CSV Parsing Results:",l),this.CSVRowCount.set(l.data.length)},error:l=>{console.error("Error parsing CSV:",l)}}))}),console.log("Form data prepared for upload:",o.get("File")),this.service.importPreviewChartOfAccounts(o).pipe(be("Import Preview"),Xe(i=>({cacheKey:i.cacheKey})),Ye(i=>this.service.importConfirmChartOfAccounts(i)),he(()=>{this.router.navigate(["/pages/chart-of-account/account"])})).subscribe()}onFileRemoved(e){console.log("File removed event:",e),this.COAImportPreview.set(null),this.COAImportPreviewTreenode.set([])}onNextStep(){if(this.stepActiveIndex()<3&&(this.stepActiveIndex.update(e=>e+1),this.stepActiveIndex()===3)){this.stepActiveIndex.update(()=>this.stepActiveIndex()-1),this.summaryDialogVisible.set(!0);return}}onPrevStep(){this.stepActiveIndex()>1&&this.stepActiveIndex.update(e=>e-1)}onFileUploaded(e){let o=new FormData;if("name"in e&&typeof e.name=="string")o.append("File",e,e.name),this.service.importPreviewChartOfAccounts(o).pipe(be("Import Preview"),he(i=>{this.COAImportPreview.set(i),this.COAImportPreviewTreenode.set(i.dataRow)})).subscribe();else return}getJournalEntryImportCount(){let e=this.COAImportPreview();return e&&e.summary?.total!==void 0?e.summary.total:0}onConfirmImport(){if(this.COAImportPreview()&&this.COAImportPreview().canProceed){let e={cacheKey:this.COAImportPreview().cacheKey};this.service.importConfirmChartOfAccounts(e).pipe(be("Import Confirm"),he(()=>{this.router.navigate(["/pages/chart-of-account/account"]),this.stepActiveIndex.update(o=>o+1),this.summaryDialogVisible.update(o=>!o)}),Ze(o=>(console.error("Error occurred during import confirmation:",o),this.stepActiveIndex.update(i=>i+1),this.summaryDialogVisible.update(i=>!i),Je(null)))).subscribe()}else{console.error("Cannot proceed with import, JournalEntryImport is not set or canProceed is false.");return}}onReset(){this.stepActiveIndex.set(1),this.COAImportPreview.set(null)}handleKeyboardEvent(e){e.key==="F2"&&this.onConfirmImport()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=Q({type:t,selectors:[["app-coa-import"]],hostBindings:function(o,i){o&1&&D("keydown",function(n){return i.handleKeyboardEvent(n)},!1,ot)},decls:14,vars:10,consts:[["actionButton",""],["content",""],["closeIconTemplate",""],["header",""],["footer",""],["stepper",""],["body",""],["pageTitle","Chart of Account Import"],["position","center","appendTo","body",3,"visibleChange","modal","visible","breakpoints","draggable","closeIconTemplate","dismissableMask"],["label","Back","severity","secondary","variant","outlined",3,"disabled","click",4,"ngIf"],["label","Next","severity","primary",3,"disabled","click",4,"ngIf"],["label","Finish","severity","primary",3,"click",4,"ngIf"],["label","Back","severity","secondary","variant","outlined",3,"click","disabled"],["label","Next","severity","primary",3,"click","disabled"],["label","Finish","severity","primary",3,"click"],[1,"row",3,"ngClass"],[1,"col-6",3,"ngClass"],[1,"basis-[50rem]",3,"linear","value"],[3,"value"],[1,"d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-upload"],[1,"fa-solid","fa-file"],[1,"fa-solid","fa-check"],["subtitle","Accepted file format: .csv & max file size: 1MB",3,"fileUploaded","fileRemoved","uppyCoreConfiguration","sampleUrl"],[1,"fst-italic"],["href","#","target","_blank",1,"link","link-primary"],[3,"value","scrollable","scrollHeight","tableStyle"],[3,"ttRow"],[3,"rowNode"],["tooltipPosition","bottom",3,"pTooltip"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],[1,"d-flex","gap-2","align-items-baseline"],[1,"fs-4","text-white","m-0"],[1,"m-0","fs-3"],[1,"row"],[1,"col"],[1,"state-new"],[1,"fs-4","m-0"],[1,"state-updated"],[1,"state-unchanged"],[1,"state-error"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click","disabled"]],template:function(o,i){if(o&1){let l=N();c(0,"app-main-panel",7),p(1,Xl,3,3,"ng-template",null,0,x)(3,nn,31,17,"ng-template",null,1,x),h(),c(5,"p-dialog",8),dt("visibleChange",function(d){return M(l),ct(i.summaryDialogVisible,d)||(i.summaryDialogVisible=d),P(d)}),p(6,rn,1,2,"ng-template",null,2,x)(8,an,5,1,"ng-template",null,3,x)(10,un,1,1,"ng-template",null,1,x)(12,mn,2,1,"ng-template",null,4,x),h()}if(o&2){let l=ne(7);s(5),Z(q(8,Kl)),a("modal",!0),st("visible",i.summaryDialogVisible),a("breakpoints",q(9,$l))("draggable",!1)("closeIconTemplate",l)("dismissableMask",!0)}},dependencies:[Bt,ue,re,W,Vt,Pt,qt,$t,Kt,Yt,Zt,Wt,Xt,Jt,Gt,ei,Mt,Rt,ri,te,ni,li,Nt,Ft,At,Ht,Ot],styles:["[_nghost-%COMP%]{display:block} .p-card{border-radius:4px} .p-card .p-card-header{display:flex;align-items:center;width:100%} .p-card .p-card-header .state-new{width:inherit;padding:.75rem;vertical-align:middle;background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important} .p-card .p-card-header .state-updated{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important} .p-card .p-card-header .state-unchanged{width:inherit;padding:.75rem;border-bottom:1px solid #dee2e6} .p-card .p-card-header .state-error{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}"],changeDetection:0})}}return t})();export{Cr as CoaImportComponent};
|
|
449
|
+
`,Vl={root:({instance:t})=>({"p-treetable p-component":!0,"p-treetable-hoverable":t.rowHover||t.selectionMode,"p-treetable-resizable":t.resizableColumns,"p-treetable-resizable-fit":t.resizableColumns&&t.columnResizeMode==="fit","p-treetable-scrollable":t.scrollable,"p-treetable-flex-scrollable":t.scrollable&&t.scrollHeight==="flex","p-treetable-gridlines":t.showGridlines,"p-treetable-sm":t.size==="small","p-treetable-lg":t.size==="large"}),loading:"p-treetable-loading",mask:"p-treetable-mask p-overlay-mask",loadingIcon:"p-treetable-loading-icon",header:"p-treetable-header",paginator:({instance:t})=>"p-treetable-paginator-"+t.paginatorPosition,tableContainer:"p-treetable-table-container",table:({instance:t})=>({"p-treetable-table":!0,"p-treetable-scrollable-table":t.scrollable,"p-treetable-resizable-table":t.resizableColumns,"p-treetable-resizable-table-fit":t.resizableColumns&&t.columnResizeMode==="fit"}),thead:"p-treetable-thead",headerCell:({instance:t})=>({"p-treetable-header-cell":!0,"p-treetable-sortable-column":t.sortable,"p-treetable-resizable-column":t.resizableColumns,"p-treetable-column-sorted":t?.sorted,"p-treetable-frozen-column":t.columnProp("frozen")}),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:t})=>({"p-treetable-row-selected":t.selected}),bodyCell:({instance:t})=>({"p-treetable-frozen-column":t.columnProp("frozen")}),bodyCellContent:({instance:t})=>({"p-treetable-body-cell-content":!0,"p-treetable-body-cell-content-expander":t.columnProp("expander")}),toggler:"p-treetable-body-cell-content-expander",nodeToggleButton:"p-treetable-node-toggle-button",nodeToggleIcon:"p-treetable-node-toggle-icon",pcNodeCheckbox:"p-treetable-node-checkbox",emptyMessage:"p-treetable-empty-message",tfoot:"p-treetable-tfoot",footerCell:({instance:t})=>({"p-treetable-frozen-column":t.columnProp("frozen")}),footer:"p-treetable-footer",columnResizeIndicator:"p-treetable-column-resize-indicator"},Nl={tableContainer:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},Zt=(()=>{class t extends wt{name="treetable";theme=Pl;classes=Vl;inlineStyles=Nl;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Te(t)))(i||t)}})();static \u0275prov=ye({token:t,factory:t.\u0275fac})}return t})();var $e=(()=>{class t{sortSource=new J;selectionSource=new J;contextMenuSource=new J;uiUpdateSource=new J;totalRecordsSource=new J;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(o){return new(o||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac})}return t})(),te=(()=>{class t extends Pe{_componentStyle=K(Zt);columns;style;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,o)=>o;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 S;contextMenuSelectionChange=new S;onFilter=new S;onNodeExpand=new S;onNodeCollapse=new S;onPage=new S;onSort=new S;onLazyLoad=new S;sortFunction=new S;onColResize=new S;onColReorder=new S;onNodeSelect=new S;onNodeUnselect=new S;onContextMenuSelect=new S;onHeaderCheckboxToggle=new S;onEditInit=new S;onEditComplete=new S;onEditCancel=new S;selectionKeysChange=new S;containerViewChild;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;ngOnInit(){super.ngOnInit(),this.lazy&&this.lazyLoadOnInit&&!this.virtualScroll&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.initialized=!0}templates;ngAfterContentInit(){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;break}})}filterService=K(Ct);tableService=K($e);zone=K(ie);ngOnChanges(e){super.ngOnChanges(e),e.value&&(this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&this.sortField?this.sortSingle():this.sortMode=="multiple"&&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)&&this.sortMode==="single"&&this.sortSingle()),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&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,o,i,l){if(o&&o.length)for(let n of o){n.parent=e;let d={node:n,parent:e,level:i,visible:l&&(e?e.expanded:!0)};this.serializedValue.push(d),d.visible&&n.expanded&&this.serializeNodes(n,n.children,i+1,d.visible)}}serializePageNodes(){let e=this.filteredNodes||this.value;if(this.serializedValue=[],e&&e.length){let o=this.lazy?0:this.first;for(let i=o;i<o+this.rows;i++){let l=e[i];l&&(this.serializedValue.push({node:l,parent:null,level:0,visible:!0}),this.serializeNodes(l,l.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(R(e.data,this.dataKey))]=1;else this.selectedKeys[String(R(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 o=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.sortSingle(),this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.sortMode==="multiple"){let i=o.metaKey||o.ctrlKey,l=this.getSortMeta(e.field);l?i?l.order=l.order*-1:(this._multiSortMeta=[{field:e.field,order:l.order*-1}],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()):((!i||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.multiSortMeta.push({field: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||e.length===0)){this.customSort?this.sortFunction.emit({data:e,mode:this.sortMode,field:this.sortField,order:this.sortOrder}):e.sort((o,i)=>{let l=R(o.data,this.sortField),n=R(i.data,this.sortField),d=null;return l==null&&n!=null?d=-1:l!=null&&n==null?d=1:l==null&&n==null?d=0:typeof l=="string"&&typeof n=="string"?d=l.localeCompare(n,void 0,{numeric:!0}):d=l<n?-1:l>n?1:0,this.sortOrder*d});for(let o of e)this.sortNodes(o.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||e.length===0)){this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):e.sort((o,i)=>this.multisortField(o,i,this.multiSortMeta,0));for(let o of e)this.sortMultipleNodes(o.children)}}multisortField(e,o,i,l){if(De(this.multiSortMeta)||De(i[l]))return 0;let n=R(e.data,i[l].field),d=R(o.data,i[l].field),m=null;if(n==null&&d!=null?m=-1:n!=null&&d==null?m=1:n==null&&d==null&&(m=0),typeof n=="string"||n instanceof String){if(n.localeCompare&&n!=d)return i[l].order*n.localeCompare(d,void 0,{numeric:!0})}else m=n<d?-1:1;return n==d?i.length-1>l?this.multisortField(e,o,i,l+1):0:i[l].order*m}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let o=0;o<this.multiSortMeta.length;o++)if(this.multiSortMeta[o].field===e)return this.multiSortMeta[o]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let o=!1;if(this.multiSortMeta){for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field==e){o=!0;break}}return o}}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(qe(G(G({},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 e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}onColumnResizeBegin(e){let o=ce(this.containerViewChild?.nativeElement).left;this.lastResizerHelperX=e.pageX-o+this.containerViewChild?.nativeElement.scrollLeft,e.preventDefault()}onColumnResize(e){let o=ce(this.containerViewChild?.nativeElement).left;Ee(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-o+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(e,o){let i=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,l=o.offsetWidth,n=l+i,d=o.style.minWidth||15;if(l+i>parseInt(d)){if(this.columnResizeMode==="fit"){let m=o.nextElementSibling;for(;!m.offsetParent;)m=m.nextElementSibling;if(m){let y=m.offsetWidth-i,C=m.style.minWidth||15;if(n>15&&y>parseInt(C))if(this.scrollable){let L=this.findParentScrollableView(o),v=E(L,".p-treetable-scrollable-body table")||E(L,".p-scroller-viewport table"),N=E(L,"table.p-treetable-scrollable-header-table"),O=E(L,"table.p-treetable-scrollable-footer-table"),H=se(o);this.resizeColGroup(N,H,n,y),this.resizeColGroup(v,H,n,y),this.resizeColGroup(O,H,n,y)}else o.style.width=n+"px",m&&(m.style.width=y+"px")}}else if(this.columnResizeMode==="expand")if(this.scrollable){let m=this.findParentScrollableView(o),y=E(m,".p-treetable-scrollable-body")||E(m,".p-scroller-viewport"),C=E(m,".p-treetable-scrollable-header"),L=E(m,".p-treetable-scrollable-footer"),v=E(m,".p-treetable-scrollable-body table")||E(m,".p-scroller-viewport table"),N=E(m,"table.p-treetable-scrollable-header-table"),O=E(m,"table.p-treetable-scrollable-footer-table");v.style.width=v.offsetWidth+i+"px",N.style.width=N.offsetWidth+i+"px",O&&(O.style.width=O.offsetWidth+i+"px");let H=se(o),de=o?v.offsetWidth+i:n,pe=o?N.offsetWidth+i:n,fe=this.containerViewChild?.nativeElement.offsetWidth>=de,be=(Qe,Ue,je,ni)=>{Qe&&Ue&&(Qe.style.width=ni?je+ze(y)+"px":"auto",Ue.style.width=je+"px")};be(y,v,de,fe),be(C,N,pe,fe),be(L,O,pe,fe),this.resizeColGroup(N,H,n,null),this.resizeColGroup(v,H,n,null),this.resizeColGroup(O,H,n,null)}else{this.tableViewChild.nativeElement.style.width=this.tableViewChild?.nativeElement.offsetWidth+i+"px",o.style.width=n+"px";let m=this.tableViewChild?.nativeElement.style.width;this.containerViewChild.nativeElement.style.width=m+"px"}this.onColResize.emit({element:o,delta:i})}this.resizeHelperViewChild.nativeElement.style.display="none",ke(this.containerViewChild?.nativeElement,"p-unselectable-text")}findParentScrollableView(e){if(e){let o=e.parentElement;for(;o&&!Ie(o,"p-treetable-scrollable-view");)o=o.parentElement;return o}else return null}resizeColGroup(e,o,i,l){if(e){let n=e.children[0].nodeName==="COLGROUP"?e.children[0]:null;if(n){let d=n.children[o],m=d.nextElementSibling;d.style.width=i+"px",m&&l&&(m.style.width=l+"px")}else throw"Scrollable tables require a colgroup to support resizable columns"}}onColumnDragStart(e,o){this.reorderIconWidth=_t(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=bt(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=o,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,o){if(this.reorderableColumns&&this.draggedColumn&&o){e.preventDefault();let i=ce(this.containerViewChild?.nativeElement),l=ce(o);if(this.draggedColumn!=o){let n=l.left-i.left,d=i.top-l.top,m=l.left+o.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=l.top-i.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=l.top-i.top+o.offsetHeight+"px",e.pageX>m?(this.reorderIndicatorUpViewChild.nativeElement.style.left=n+o.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=n+o.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=n-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=n-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,o){if(e.preventDefault(),this.draggedColumn){let i=Ve.indexWithinGroup(this.draggedColumn,"ttreorderablecolumn"),l=Ve.indexWithinGroup(o,"ttreorderablecolumn"),n=i!=l;n&&(l-i==1&&this.dropPosition===-1||i-l==1&&this.dropPosition===1)&&(n=!1),n&&l<i&&this.dropPosition===1&&(l=l+1),n&&l>i&&this.dropPosition===-1&&(l=l-1),n&&(Tt(this.columns,i,l),this.onColReorder.emit({dragIndex:i,dropIndex:l,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 o=e.originalEvent.target.nodeName;if(!(o=="INPUT"||o=="BUTTON"||o=="A"||Ie(e.originalEvent.target,"p-clickable"))){if(this.selectionMode){this.preventSelectionSetterPropagation=!0;let i=e.rowNode,l=this.isSelected(i.node),n=this.rowTouched?!1:this.metaKeySelection,d=this.dataKey?String(R(i.node.data,this.dataKey)):null;if(n){let m=e.originalEvent,y=m.metaKey||m.ctrlKey;if(l&&y){if(this.isSingleSelectionMode())this._selection=null,this.selectedKeys={},this.selectionChange.emit(null);else{let C=this.findIndexInSelection(i.node);this._selection=this.selection.filter((L,v)=>v!=C),this.selectionChange.emit(this.selection),d&&delete this.selectedKeys[d]}this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"})}else this.isSingleSelectionMode()?(this._selection=i.node,this.selectionChange.emit(i.node),d&&(this.selectedKeys={},this.selectedKeys[d]=1)):this.isMultipleSelectionMode()&&(y?this._selection=this.selection||[]:(this._selection=[],this.selectedKeys={}),this._selection=[...this.selection,i.node],this.selectionChange.emit(this.selection),d&&(this.selectedKeys[d]=1)),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectedKeys={},this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"})):(this._selection=i.node,this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex}),d&&(this.selectedKeys={},this.selectedKeys[d]=1));else if(this.selectionMode==="multiple")if(l){let m=this.findIndexInSelection(i.node);this._selection=this.selection.filter((y,C)=>C!=m),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:i.node,type:"row"}),d&&delete this.selectedKeys[d]}else this._selection=this.selection?[...this.selection,i.node]:[i.node],this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:i.node,type:"row",index:e.rowIndex}),d&&(this.selectedKeys[d]=1);this.tableService.onSelectionChange()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let o=e.rowNode.node;if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=o,this.contextMenuSelectionChange.emit(o),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:o}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(o);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let i=this.isSelected(o),l=this.dataKey?String(R(o.data,this.dataKey)):null;i||(this.isSingleSelectionMode()?(this.selection=o,this.selectionChange.emit(o)):this.isMultipleSelectionMode()&&(this.selection=[o],this.selectionChange.emit(this.selection)),l&&(this.selectedKeys[l]=1)),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:o})}}}toggleNodeWithCheckbox(e){this.selection=this.selection||[],this.preventSelectionSetterPropagation=!0;let o=e.rowNode.node;this.isSelected(o)?(this.propagateSelectionDown(o,!1),e.rowNode.parent&&this.propagateSelectionUp(o.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:o})):(this.propagateSelectionDown(o,!0),e.rowNode.parent&&this.propagateSelectionUp(o.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:o})),this.tableService.onSelectionChange()}toggleNodesWithCheckbox(e,o){let i=this.filteredNodes||this.value;this._selection=o&&i?i.slice():[],this.toggleAll(o),o||(this._selection=[],this.selectedKeys={}),this.preventSelectionSetterPropagation=!0,this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:o})}toggleAll(e){let o=this.filteredNodes||this.value;if(this.selectionKeys){if(o&&o.length){for(let i of o)this.propagateDown(i,e);this.selectionKeysChange.emit(this.selectionKeys)}}else if(o&&o.length)for(let i of o)this.propagateSelectionDown(i,e)}propagateSelectionUp(e,o){if(e.children&&e.children.length){let l=0,n=!1,d=this.dataKey?String(R(e.data,this.dataKey)):null;for(let m of e.children)this.isSelected(m)?l++:m.partialSelected&&(n=!0);if(o&&l==e.children.length)this._selection=[...this.selection||[],e],e.partialSelected=!1,d&&(this.selectedKeys[d]=1);else{if(!o){let m=this.findIndexInSelection(e);m>=0&&(this._selection=this.selection.filter((y,C)=>C!=m),d&&delete this.selectedKeys[d])}n||l>0&&l!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}}let i=e.parent;e.checked=o,i&&this.propagateSelectionUp(i,o)}propagateSelectionDown(e,o){let i=this.findIndexInSelection(e),l=this.dataKey?String(R(e.data,this.dataKey)):null;if(o&&i==-1?(this._selection=[...this.selection||[],e],l&&(this.selectedKeys[l]=1)):!o&&i>-1&&(this._selection=this.selection.filter((n,d)=>d!=i),l&&delete this.selectedKeys[l]),e.partialSelected=!1,e.checked=o,e.children&&e.children.length)for(let n of e.children)this.propagateSelectionDown(n,o)}isSelected(e){return e&&this.selection?this.dataKey?e.hasOwnProperty("checked")?e.checked:this.selectedKeys[R(e.data,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}isNodeSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.checked===!0:!1}isNodePartialSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.partialChecked===!0:!1}nodeKey(e){return R(e,this.dataKey)||R(e?.data,this.dataKey)}toggleCheckbox(e){let{rowNode:o,check:i,originalEvent:l}=e,n=o.node;this.selectionKeys?(this.propagateDown(n,i),n.parent&&this.propagateUp(n.parent,i),this.selectionKeysChange.emit(this.selectionKeys)):this.toggleNodeWithCheckbox({originalEvent:l,rowNode:o}),this.tableService.onSelectionChange()}propagateDown(e,o){if(o?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:delete this.selectionKeys[this.nodeKey(e)],e.children&&e.children.length)for(let i of e.children)this.propagateDown(i,o)}propagateUp(e,o){let i=0,l=!1;for(let d of e.children)this.selectionKeys[this.nodeKey(d)]&&this.selectionKeys[this.nodeKey(d)].checked?i++:this.selectionKeys[this.nodeKey(d)]&&this.selectionKeys[this.nodeKey(d)].partialChecked&&(l=!0);o&&i===e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:(o||delete this.selectionKeys[this.nodeKey(e)],l||i>0&&i!==e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!0}:this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!1});let n=e.parent;n&&this.propagateUp(n,o)}findIndexInSelection(e){let o=-1;if(this.selection&&this.selection.length){for(let i=0;i<this.selection.length;i++)if(this.equals(e,this.selection[i])){o=i;break}}return o}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}equals(e,o){return this.compareSelectionBy==="equals"?Re(e,o):Re(e.data,o.data,this.dataKey)}filter(e,o,i){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[o]&&delete this.filters[o]:this.filters[o]={value:e,matchMode:i},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay)}filterGlobal(e,o){this.filter(e,"global",o)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredNodes=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let o;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");o=this.globalFilterFields||this.columns}this.filteredNodes=[];let i=this.filterMode==="strict",l=!1;for(let n of this.value){let d=G({},n),m=!0,y=!1,C;for(let v in this.filters)if(this.filters.hasOwnProperty(v)&&v!=="global"){let N=this.filters[v],O=v,H=N.value,de=N.matchMode||"startsWith",pe=this.filterService.filters[de];if(C={filterField:O,filterValue:H,filterConstraint:pe,isStrictMode:i},(i&&!(this.findFilteredNodes(d,C)||this.isFilterMatched(d,C))||!i&&!(this.isFilterMatched(d,C)||this.findFilteredNodes(d,C)))&&(m=!1),!m)break}if(this.filters.global&&!y&&o){let v=G({},d),N,O=this.filters.global.value,H=this.filterService.filters[this.filters.global.matchMode];C={filterField:N,filterValue:O,filterConstraint:H,isStrictMode:i,globalFilterFieldsArray:o},(i&&(this.findFilteredNodes(v,C)||this.isFilterMatched(v,C))||!i&&(this.isFilterMatched(v,C)||this.findFilteredNodes(v,C)))&&(y=!0,d=v)}let L=m;this.filters.global&&(L=m&&y),L&&this.filteredNodes.push(d),l=l||!m||y||m&&this.filteredNodes.length>0||!y&&this.filteredNodes.length===0}l||(this.filteredNodes=null),this.paginator&&(this.totalRecords=this.filteredNodes?this.filteredNodes.length:this.value?this.value.length:0)}this.cd.markForCheck()}this.first=0;let 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,o){if(e){let i=!1;if(e.children){let l=[...e.children];e.children=[];for(let n of l){let d=G({},n);this.isFilterMatched(d,o)&&(i=!0,e.children.push(d))}}if(i)return!0}}isFilterMatched(e,o){let{filterField:i,filterValue:l,filterConstraint:n,isStrictMode:d,globalFilterFieldsArray:m}=o,y=!1,C=L=>n(R(e.data,L),l,this.filterLocale);return y=m?.length?m.some(L=>C(L.field||L)):C(i),(!y||d&&!this.isNodeLeaf(e))&&(y=this.findFilteredNodes(e,{filterField:i,filterValue:l,filterConstraint:n,isStrictMode:d,globalFilterFieldsArray:m})||y),y}isNodeLeaf(e){return e.leaf===!1?!1:!(e.children&&e.children.length)}hasFilter(){let e=!0;for(let o in this.filters)if(this.filters.hasOwnProperty(o)){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,o,i){this.editingCell=e,this.editingCellData=o,this.editingCellField=i,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&ee(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.editingCellClick&&this.isEditingCellValid()&&(ke(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)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.editingCellField=null,this.editingCellData=null,this.initialized=null,super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Te(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-treeTable"],["p-treetable"],["p-tree-table"]],contentQueries:function(o,i,l){if(o&1&&(b(l,di,4),b(l,pi,4),b(l,hi,4),b(l,ui,4),b(l,mi,4),b(l,gi,4),b(l,fi,4),b(l,bi,4),b(l,_i,4),b(l,yi,4),b(l,Ti,4),b(l,Ci,4),b(l,wi,4),b(l,vi,4),b(l,Si,4),b(l,xi,4),b(l,Ii,4),b(l,Ei,4),b(l,ki,4),b(l,zi,4),b(l,Li,4),b(l,Di,4),b(l,Ri,4),b(l,Mi,4),b(l,Pi,4),b(l,Vi,4),b(l,ge,4)),o&2){let n;g(n=f())&&(i._colGroupTemplate=n.first),g(n=f())&&(i._captionTemplate=n.first),g(n=f())&&(i._headerTemplate=n.first),g(n=f())&&(i._bodyTemplate=n.first),g(n=f())&&(i._footerTemplate=n.first),g(n=f())&&(i._summaryTemplate=n.first),g(n=f())&&(i._emptyMessageTemplate=n.first),g(n=f())&&(i._paginatorLeftTemplate=n.first),g(n=f())&&(i._paginatorRightTemplate=n.first),g(n=f())&&(i._paginatorDropdownItemTemplate=n.first),g(n=f())&&(i._frozenHeaderTemplate=n.first),g(n=f())&&(i._frozenBodyTemplate=n.first),g(n=f())&&(i._frozenFooterTemplate=n.first),g(n=f())&&(i._frozenColGroupTemplate=n.first),g(n=f())&&(i._loadingIconTemplate=n.first),g(n=f())&&(i._reorderIndicatorUpIconTemplate=n.first),g(n=f())&&(i._reorderIndicatorDownIconTemplate=n.first),g(n=f())&&(i._sortIconTemplate=n.first),g(n=f())&&(i._checkboxIconTemplate=n.first),g(n=f())&&(i._headerCheckboxIconTemplate=n.first),g(n=f())&&(i._togglerIconTemplate=n.first),g(n=f())&&(i._paginatorFirstPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorLastPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorPreviousPageLinkIconTemplate=n.first),g(n=f())&&(i._paginatorNextPageLinkIconTemplate=n.first),g(n=f())&&(i._loaderTemplate=n.first),g(n=f())&&(i.templates=n)}},viewQuery:function(o,i){if(o&1&&(k(Ni,5),k(Fi,5),k(Oi,5),k(Hi,5),k(Bi,5),k(Ai,5),k(Ki,5)),o&2){let l;g(l=f())&&(i.containerViewChild=l.first),g(l=f())&&(i.resizeHelperViewChild=l.first),g(l=f())&&(i.reorderIndicatorUpViewChild=l.first),g(l=f())&&(i.reorderIndicatorDownViewChild=l.first),g(l=f())&&(i.tableViewChild=l.first),g(l=f())&&(i.scrollableViewChild=l.first),g(l=f())&&(i.scrollableFrozenViewChild=l.first)}},inputs:{columns:"columns",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",autoLayout:[2,"autoLayout","autoLayout",w],lazy:[2,"lazy","lazy",w],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",w],paginator:[2,"paginator","paginator",w],rows:[2,"rows","rows",$],first:[2,"first","first",$],pageLinks:[2,"pageLinks","pageLinks",$],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",w],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",w],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",w],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",w],showPageLinks:[2,"showPageLinks","showPageLinks",w],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",$],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",w],customSort:[2,"customSort","customSort",w],selectionMode:"selectionMode",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",w],compareSelectionBy:"compareSelectionBy",rowHover:[2,"rowHover","rowHover",w],loading:[2,"loading","loading",w],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",w],scrollable:[2,"scrollable","scrollable",w],scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",w],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",$],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",$],frozenWidth:"frozenWidth",frozenColumns:"frozenColumns",resizableColumns:[2,"resizableColumns","resizableColumns",w],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",w],contextMenu:"contextMenu",rowTrackBy:"rowTrackBy",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",$],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",w]},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:[at([$e,Zt]),we,Xe],decls:12,vars:21,consts:[["container",""],["table",""],["scrollableView",""],["scrollableFrozenView",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],["data-scrollselectors",".p-treetable-scrollable-body",3,"ngStyle","ngClass"],["class","p-treetable-loading",4,"ngIf"],["class","p-treetable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-wrapper",4,"ngIf"],["class","p-treetable-scrollable-wrapper",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-treetable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-treetable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-treetable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-treetable-loading"],[1,"p-overlay-mask","p-treetable-mask"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-treetable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-treetable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-treetable-header"],["styleClass","p-paginator-top",3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[1,"p-treetable-wrapper"],["role","table",3,"ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate"],["role","rowgroup",1,"p-treetable-tfoot"],[1,"p-treetable-scrollable-wrapper"],["class","p-treetable-scrollable-view p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight",4,"ngIf"],[1,"p-treetable-scrollable-view",3,"ttScrollableView","frozen","scrollHeight","ngStyle"],[1,"p-treetable-scrollable-view","p-treetable-frozen-view",3,"ttScrollableView","frozen","ngStyle","scrollHeight"],["styleClass","p-paginator-bottom",3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","locale"],[1,"p-treetable-footer"],[1,"p-column-resizer-helper",2,"display","none"],[1,"p-treetable-reorder-indicator-up",2,"display","none"],[1,"p-treetable-reorder-indicator-down",2,"display","none"]],template:function(o,i){o&1&&(c(0,"div",7,0),p(2,Zi,4,2,"div",8)(3,eo,2,1,"div",9)(4,mo,5,21,"p-paginator",10)(5,_o,9,16,"div",11)(6,To,4,8,"div",12)(7,Mo,5,21,"p-paginator",13)(8,Vo,2,1,"div",14)(9,No,2,0,"div",15)(10,Bo,4,2,"span",16)(11,Qo,4,2,"span",17),h()),o&2&&(le(i.styleClass),a("ngStyle",i.style)("ngClass",ct(14,$i,i.showGridlines,i.rowHover||i.selectionMode==="single"||i.selectionMode==="multiple",i.autoLayout,i.resizableColumns,i.resizableColumns&&i.columnResizeMode==="fit",i.scrollable&&i.scrollHeight==="flex")),s(2),a("ngIf",i.loading&&i.showLoader),s(),a("ngIf",i.captionTemplate||i._captionTemplate),s(),a("ngIf",i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")),s(),a("ngIf",!i.scrollable),s(),a("ngIf",i.scrollable),s(),a("ngIf",i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")),s(),a("ngIf",i.summaryTemplate||i._summaryTemplate),s(),a("ngIf",i.resizableColumns),s(),a("ngIf",i.reorderableColumns),s(),a("ngIf",i.reorderableColumns))},dependencies:()=>[re,W,ae,xe,At,ge,Be,Ne,Fe,Fl,ei],encapsulation:2})}return t})(),ei=(()=>{class t{tt;treeTableService;cd;columns;template;frozen;serializedNodes;scrollerOptions;subscription;constructor(e,o,i){this.tt=e,this.treeTableService=o,this.cd=i,this.subscription=this.tt.tableService.uiUpdateSource$.subscribe(()=>{this.tt.virtualScroll&&this.cd.detectChanges()})}getScrollerOption(e,o){return this.tt.virtualScroll?(o=o||this.scrollerOptions,o?o[e]:null):null}getRowIndex(e){let o=this.getScrollerOption("getItemOptions");return o?o(e).index:e}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(o){return new(o||t)(V(te),V($e),V(ht))};static \u0275cmp=Q({type:t,selectors:[["","pTreeTableBody",""]],inputs:{columns:[0,"pTreeTableBody","columns"],template:[0,"pTreeTableBodyTemplate","template"],frozen:[2,"frozen","frozen",w],serializedNodes:"serializedNodes",scrollerOptions:"scrollerOptions"},standalone:!1,attrs:Uo,decls:2,vars:3,consts:[["ngFor","",3,"ngForOf","ngForTrackBy"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,i){o&1&&p(0,Jo,1,1,"ng-template",0)(1,Zo,2,5,"ng-container",1),o&2&&(a("ngForOf",i.serializedNodes||i.tt.serializedValue)("ngForTrackBy",i.tt.rowTrackBy),s(),a("ngIf",i.tt.isEmpty()))},dependencies:[ut,W,ae],encapsulation:2})}return t})(),Fl=(()=>{class t{platformId;renderer;tt;el;zone;columns;frozen;scrollHeaderViewChild;scrollHeaderBoxViewChild;scrollBodyViewChild;scrollTableViewChild;scrollLoadingTableViewChild;scrollFooterViewChild;scrollFooterBoxViewChild;scrollableAlignerViewChild;scroller;headerScrollListener;bodyScrollListener;footerScrollListener;frozenSiblingBody;totalRecordsSubscription;_scrollHeight;preventBodyScrollPropagation;get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e,e!=null&&(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,o,i,l,n){this.platformId=e,this.renderer=o,this.tt=i,this.el=l,this.zone=n}ngAfterViewInit(){if(ue(this.platformId)){if(this.frozen)this.scrollableAlignerViewChild&&this.scrollableAlignerViewChild.nativeElement&&(this.scrollableAlignerViewChild.nativeElement.style.height=ft()+"px");else{(this.tt.frozenColumns||this.tt.frozenBodyTemplate||this.tt._frozenBodyTemplate)&&Ee(this.el.nativeElement,"p-treetable-unfrozen-view");let e=this.el.nativeElement.previousElementSibling;if(e&&(this.tt.virtualScroll?this.frozenSiblingBody=E(e,".p-scroller-viewport"):this.frozenSiblingBody=E(e,".p-treetable-scrollable-body")),this.scrollHeight){let o=ze();this.scrollHeaderBoxViewChild.nativeElement.style.paddingRight=o+"px",this.scrollFooterBoxViewChild&&this.scrollFooterBoxViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.paddingRight=o+"px")}}this.bindEvents()}}bindEvents(){ue(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.tt.virtualScroll?this.bodyScrollListener=this.renderer.listen((this.scroller?.getElementRef()).nativeElement,"scroll",this.onBodyScroll.bind(this)):this.bodyScrollListener=this.renderer.listen(this.scrollBodyViewChild?.nativeElement,"scroll",this.onBodyScroll.bind(this)))})}unbindEvents(){ue(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(){let e=this.scrollHeaderViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onFooterScroll(){let 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){if(this.preventBodyScrollPropagation){this.preventBodyScrollPropagation=!1;return}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)}ngOnDestroy(){this.unbindEvents(),this.frozenSiblingBody=null}static \u0275fac=function(o){return new(o||t)(V(Ze),V(et),V(te),V(Ce),V(ie))};static \u0275cmp=Q({type:t,selectors:[["","ttScrollableView",""]],viewQuery:function(o,i){if(o&1&&(k(Yo,5),k(el,5),k(tl,5),k(il,5),k(ol,5),k(ll,5),k(nl,5),k(rl,5),k(al,5)),o&2){let l;g(l=f())&&(i.scrollHeaderViewChild=l.first),g(l=f())&&(i.scrollHeaderBoxViewChild=l.first),g(l=f())&&(i.scrollBodyViewChild=l.first),g(l=f())&&(i.scrollTableViewChild=l.first),g(l=f())&&(i.scrollLoadingTableViewChild=l.first),g(l=f())&&(i.scrollFooterViewChild=l.first),g(l=f())&&(i.scrollFooterBoxViewChild=l.first),g(l=f())&&(i.scrollableAlignerViewChild=l.first),g(l=f())&&(i.scroller=l.first)}},inputs:{columns:[0,"ttScrollableView","columns"],frozen:[2,"frozen","frozen",w],scrollHeight:"scrollHeight"},standalone:!1,attrs:sl,decls:13,vars:13,consts:[["scrollHeader",""],["scrollHeaderBox",""],["buildInItems",""],["scroller",""],["content",""],["loader",""],["scrollBody",""],["scrollTable",""],["scrollableAligner",""],["scrollFooter",""],["scrollFooterBox",""],[1,"p-treetable-scrollable-header"],[1,"p-treetable-scrollable-header-box"],[1,"p-treetable-scrollable-header-table",3,"ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",1,"p-treetable-thead"],["styleClass","p-treetable-scrollable-body",3,"items","style","scrollHeight","itemSize","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-treetable-scrollable-footer",4,"ngIf"],["styleClass","p-treetable-scrollable-body",3,"onLazyLoad","items","scrollHeight","itemSize","lazy","options"],[1,"p-treetable-scrollable-body",3,"ngStyle"],["role","table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-treetable-tbody",3,"pTreeTableBody","pTreeTableBodyTemplate","serializedNodes","frozen"],["style","background-color:transparent",4,"ngIf"],[2,"background-color","transparent"],[1,"p-treetable-scrollable-footer"],[1,"p-treetable-scrollable-footer-box"],[1,"p-treetable-scrollable-footer-table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-treetable-tfoot"]],template:function(o,i){o&1&&(c(0,"div",11,0)(2,"div",12,1)(4,"table",13),p(5,ul,1,0,"ng-container",14),c(6,"thead",15),p(7,ml,1,0,"ng-container",14),h()()()(),p(8,Tl,5,10,"p-scroller",16)(9,wl,4,10,"ng-container",17)(10,xl,5,15,"ng-template",null,2,x)(12,kl,8,10,"div",18)),o&2&&(s(4),a("ngClass",i.tt.tableStyleClass)("ngStyle",i.tt.tableStyle),s(),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",z(9,A,i.columns)),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenHeaderTemplate||i.tt._frozenHeaderTemplate||i.tt.headerTemplate||i.tt._headerTemplate:i.tt.headerTemplate||i.tt._headerTemplate)("ngTemplateOutletContext",z(11,A,i.columns)),s(),a("ngIf",i.tt.virtualScroll),s(),a("ngIf",!i.tt.virtualScroll),s(3),a("ngIf",i.tt.footerTemplate||i.tt._footerTemplate))},dependencies:()=>[re,W,ae,xe,Ae,ei],encapsulation:2})}return t})();var ti=(()=>{class t{tt;el;zone;get level(){return this.rowNode?.level+1}get styleClass(){return this.rowNode?.node.styleClass||""}get expanded(){return this.rowNode?.node.expanded}rowNode;constructor(e,o,i){this.tt=e,this.el=o,this.zone=i}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);break;default:break}}onArrowDownKey(e){let o=this.el?.nativeElement?.nextElementSibling;o&&this.focusRowChange(e.currentTarget,o),e.preventDefault()}onArrowUpKey(e){let o=this.el?.nativeElement?.previousElementSibling;o&&this.focusRowChange(e.currentTarget,o),e.preventDefault()}onArrowRightKey(e){let o=e.currentTarget;!(E(o,"button").style.visibility==="hidden")&&!this.expanded&&this.rowNode.node.children&&(this.expand(e),o.tabIndex=-1),e.preventDefault()}onArrowLeftKey(e){let o=this.tt.containerViewChild?.nativeElement,i=ee(o,'[aria-expanded="true"]'),l=i[i.length-1];this.expanded&&this.collapse(e),l&&(this.tt.toggleRowIndex=se(l)),this.restoreFocus(),e.preventDefault()}onHomeKey(e){let o=E(this.tt.containerViewChild?.nativeElement,`tr[aria-level="${this.level}"]`);o&&me(o),e.preventDefault()}onEndKey(e){let o=ee(this.tt.containerViewChild?.nativeElement,`tr[aria-level="${this.level}"]`),i=o[o.length-1];me(i),e.preventDefault()}onTabKey(e){let o=this.el.nativeElement?[...ee(this.el.nativeElement.parentNode,"tr")]:void 0;if(o&&yt(o)){let i=o.some(l=>Le(l,"data-p-highlight")||l.getAttribute("aria-checked")==="true");if(o.forEach(l=>{l.tabIndex=-1}),i){let l=o.filter(n=>Le(n,"data-p-highlight")||n.getAttribute("aria-checked")==="true");l[0].tabIndex=0;return}o[0].tabIndex=0}}expand(e){this.tt.toggleRowIndex=se(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,o,i){e.tabIndex="-1",o.tabIndex="0",me(o)}restoreFocus(e){this.zone.runOutsideAngular(()=>{setTimeout(()=>{let o=this.tt.containerViewChild?.nativeElement,i=E(o,".p-treetable-tbody").children[e||this.tt.toggleRowIndex],l=[...ee(o,"tr")];l&&l.forEach(n=>{i.isSameNode(n)||(n.tabIndex=-1)}),i&&(i.tabIndex=0,i.focus())},25)})}static \u0275fac=function(o){return new(o||t)(V(te),V(Ce),V(ie))};static \u0275dir=it({type:t,selectors:[["","ttRow",""]],hostVars:7,hostBindings:function(o,i){o&1&&D("keydown",function(n){return i.onKeyDown(n)}),o&2&&(oe("tabindex","0")("aria-expanded",i.expanded)("aria-level",i.level)("data-pc-section",i.row)("role",i.row),le("p-element "+i.styleClass))},inputs:{rowNode:[0,"ttRow","rowNode"]},standalone:!1})}return t})(),ii=(()=>{class t extends Pe{tt;rowNode;constructor(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(o){return new(o||t)(V(te))};static \u0275cmp=Q({type:t,selectors:[["p-treeTableToggler"],["p-treetabletoggler"],["p-treetable-toggler"]],inputs:{rowNode:"rowNode"},standalone:!1,features:[we],decls:3,vars:12,consts:[["type","button","tabindex","-1","pRipple","",1,"p-treetable-toggler",3,"click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,i){o&1&&(c(0,"button",0),D("click",function(n){return i.onClick(n)}),p(1,Dl,3,2,"ng-container",1)(2,Ml,1,0,null,2),h()),o&2&&(ot("visibility",i.rowNode.node.leaf===!1||i.rowNode.node.children&&i.rowNode.node.children.length?"visible":"hidden")("margin-inline-start",i.rowNode.level*16+"px"),oe("data-pc-section","rowtoggler")("data-pc-group-section","rowactionbutton")("aria-label",i.toggleButtonAriaLabel),s(),a("ngIf",!i.tt.togglerIconTemplate&&!i.tt._togglerIconTemplate),s(),a("ngTemplateOutlet",i.tt.togglerIconTemplate||i.tt._togglerIconTemplate)("ngTemplateOutletContext",z(10,A,i.rowNode.node.expanded)))},dependencies:()=>[W,ae,zt,Oe,He],encapsulation:2})}return t})(),oi=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=tt({type:t});static \u0275inj=Je({imports:[he,Kt,Ae,Be,Ne,Fe,xt,Et,It,vt,St,Oe,He,kt,Me,gt,Me]})}return t})();var li=ri(ai());var Hl=()=>({width:"30vw"}),Bl=()=>({"1199px":"75vw","575px":"100vw"}),Al=()=>({height:"calc(100vh - 70px)"}),Kl=t=>({"justify-content-center":t}),$l=t=>({"col-12":t}),Ql=()=>({"min-width":"50rem"});function Ul(t,r){if(t&1){let e=F();c(0,"p-button",12),D("click",function(){M(e);let i=u(2);return P(i.onPrevStep())}),h()}if(t&2){let e=u(2);a("disabled",e.stepActiveIndex()===1)}}function jl(t,r){if(t&1){let e=F();c(0,"p-button",13),D("click",function(){M(e);let i=u(2);return P(i.onNextStep())}),h()}if(t&2){let e=u(2);a("disabled",e.stepActiveIndex()===3||!e.COAImportPreview())}}function ql(t,r){if(t&1){let e=F();c(0,"p-button",14),D("click",function(){M(e);let i=u(2);return P(i.onReset())}),h()}}function Wl(t,r){if(t&1&&p(0,Ul,1,1,"p-button",9)(1,jl,1,1,"p-button",10)(2,ql,1,0,"p-button",11),t&2){let e=u();a("ngIf",e.stepActiveIndex()>1),s(),a("ngIf",e.stepActiveIndex()<3),s(),a("ngIf",e.stepActiveIndex()===3)}}function Gl(t,r){if(t&1){let e=F();c(0,"POS-uppy",23),D("fileUploaded",function(i){M(e);let l=u(2);return P(l.onFileUploaded(i))})("fileRemoved",function(i){M(e);let l=u(2);return P(l.onFileRemoved(i))}),h(),c(1,"p",24),_(2," Please refer this "),c(3,"a",25),_(4,"article"),h(),_(5," for more information "),h()}if(t&2){let e=u(2);a("uppyCoreConfiguration",e.uppyCore)("sampleUrl",e.SAMPLE_URL)}}function Jl(t,r){t&1&&(c(0,"tr")(1,"th"),_(2,"Type"),h(),c(3,"th"),_(4,"Name"),h(),c(5,"th"),_(6,"Code"),h(),c(7,"th"),_(8,"Status"),h(),c(9,"th"),_(10,"Message"),h()())}function Xl(t,r){if(t&1&&(c(0,"tr",27)(1,"td"),I(2,"p-treetable-toggler",28),_(3),dt(4,"truncate"),h(),c(5,"td"),_(6),h(),c(7,"td"),_(8),h(),c(9,"td"),_(10),h(),c(11,"td"),_(12),h()()),t&2){let e=r.$implicit,o=r.rowData;a("ttRow",e),s(2),a("rowNode",e),s(),Se(" ",pt(4,7,o.typeName,40)," "),s(3),B(o.accountName),s(2),B(o.code),s(2),B(o.action),s(2),B(o.action)}}function Zl(t,r){if(t&1&&(c(0,"p-treetable",26),p(1,Jl,11,0,"ng-template",null,3,x)(3,Xl,13,10,"ng-template",null,6,x),h()),t&2){let e=u(3);a("value",e.COAImportPreviewTreenode())("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("tableStyle",q(4,Ql))}}function Yl(t,r){if(t&1&&p(0,Zl,5,5,"p-treetable",26),t&2){let e=u(2);ve(e.COAImportPreview()?0:-1)}}function en(t,r){t&1&&(c(0,"h5"),_(1,"Successfully Imported"),h())}function tn(t,r){if(t&1&&(c(0,"p-panel")(1,"div",15)(2,"div",16)(3,"p-stepper",17,5)(5,"p-step-list")(6,"p-step",18)(7,"div",19),I(8,"i",20),c(9,"span"),_(10,"Upload"),h()()(),c(11,"p-step",18)(12,"div",19),I(13,"i",21),c(14,"span"),_(15,"Preview"),h()()(),c(16,"p-step",18)(17,"div",19),I(18,"i",22),c(19,"span"),_(20,"Finish"),h()()()(),c(21,"p-step-panels")(22,"p-step-panel",18),p(23,Gl,6,2,"ng-template",null,1,x),h(),c(25,"p-step-panel",18),p(26,Yl,1,1,"ng-template",null,1,x),h(),c(28,"p-step-panel",18),p(29,en,2,0,"ng-template",null,1,x),h()()()()()()),t&2){let e=u();Z(q(12,Al)),s(),a("ngClass",z(13,Kl,e.stepActiveIndex()===1||e.stepActiveIndex()===3)),s(),a("ngClass",z(15,$l,e.stepActiveIndex()===2)),s(),a("linear",!0)("value",e.stepActiveIndex()),s(3),a("value",1),s(5),a("value",2),s(5),a("value",3),s(6),a("value",1),s(3),a("value",2),s(3),a("value",3)}}function on(t,r){if(t&1){let e=F();c(0,"p-button",29),D("onClick",function(){M(e);let i=u();return P(i.summaryDialogVisible.set(!1))}),h()}t&2&&a("rounded",!0)("text",!0)}function ln(t,r){if(t&1&&(c(0,"div",30)(1,"h4",31),_(2,"Import Summary"),h(),c(3,"p",32),_(4),h()()),t&2){let e=u();s(4),Se("(",e.CSVRowCount()," rows ready for import)")}}function nn(t,r){t&1&&(c(0,"div",35)(1,"h4",36),_(2,"New"),h()())}function rn(t,r){t&1&&(c(0,"div",37)(1,"h4",36),_(2,"Updated"),h()())}function an(t,r){t&1&&(c(0,"div",38)(1,"h4",36),_(2,"Unchanged"),h()())}function sn(t,r){t&1&&(c(0,"div",39)(1,"h4",36),_(2,"Error"),h()())}function cn(t,r){if(t&1&&(c(0,"div",33)(1,"div",34)(2,"p-card"),p(3,nn,3,0,"ng-template",null,3,x),c(5,"div",33)(6,"div",34)(7,"h5"),_(8),h()()()()()(),I(9,"br"),c(10,"div",33)(11,"div",34)(12,"p-card"),p(13,rn,3,0,"ng-template",null,3,x),c(15,"div",33)(16,"div",34)(17,"h5"),_(18),h()()()()(),c(19,"div",34)(20,"p-card"),p(21,an,3,0,"ng-template",null,3,x),c(23,"div",33)(24,"div",34)(25,"h5"),_(26),h()()()()(),c(27,"div",34)(28,"p-card"),p(29,sn,3,0,"ng-template",null,3,x),c(31,"div",33)(32,"div",34)(33,"h5"),_(34),h()()()()()()),t&2){let e=u(2);s(8),B(e.COAImportPreview().summary.new),s(10),B(e.COAImportPreview().summary.updated),s(8),B(e.COAImportPreview().summary.noChanges),s(8),B(e.COAImportPreview().summary.error)}}function dn(t,r){if(t&1&&p(0,cn,35,4),t&2){let e=u();ve(e.COAImportPreview()?0:-1)}}function pn(t,r){if(t&1){let e=F();c(0,"p-button",40),D("click",function(){M(e);let i=u();return P(i.summaryDialogVisible.set(!1))}),h(),c(1,"p-button",41),D("click",function(){M(e);let i=u();return P(i.onConfirmImport())}),h()}if(t&2){let e=u();s(),a("disabled",!e.COAImportPreview().canProceed)}}var br=(()=>{class t{constructor(){this.service=K($t),this.router=K(mt),this.stepActiveIndex=X(1),this.COAImportPreview=X(null),this.COAImportPreviewTreenode=X([]),this.summaryDialogVisible=X(!1),this.CSVRowCount=X(0),this.uppyCore={restrictions:{allowedFileTypes:["text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},this.SAMPLE_URL="https://res.cloudinary.com/pos/raw/upload/v1585879643/POS/CSV/ChartOfAccount-DealPOS-V1.csv",this.hasIssue=!1}onFileRemoved(e){console.log("File removed event:",e),this.COAImportPreview.set(null),this.COAImportPreviewTreenode.set([])}onNextStep(){if(this.stepActiveIndex()<3&&(this.stepActiveIndex.update(e=>e+1),this.stepActiveIndex()===3)){this.stepActiveIndex.update(()=>this.stepActiveIndex()-1),this.summaryDialogVisible.set(!0);return}}onPrevStep(){this.stepActiveIndex()>1&&this.stepActiveIndex.update(e=>e-1)}onFileUploaded(e){let o=new FormData;if("name"in e&&typeof e.name=="string")li.default.parse(e,{header:!0,skipEmptyLines:!0,complete:i=>{console.log("CSV Parsing Results:",i),this.CSVRowCount.set(i.data.length)},error:i=>{console.error("Error parsing CSV:",i)}}),o.append("File",e,e.name),this.service.importPreviewChartOfAccounts(o).pipe(Ke("Import Preview"),_e(i=>{this.COAImportPreview.set(i),this.COAImportPreviewTreenode.set(i.dataRow)})).subscribe();else return}getJournalEntryImportCount(){let e=this.COAImportPreview();return e&&e.summary?.total!==void 0?e.summary.total:0}onConfirmImport(){if(this.COAImportPreview()&&this.COAImportPreview().canProceed){let e={cacheKey:this.COAImportPreview().cacheKey};this.service.importConfirmChartOfAccounts(e).pipe(Ke("Import Confirm"),_e(()=>{this.router.navigate(["/pages/chart-of-account/account"]),this.stepActiveIndex.update(o=>o+1),this.summaryDialogVisible.update(o=>!o)}),Ge(o=>(console.error("Error occurred during import confirmation:",o),this.stepActiveIndex.update(i=>i+1),this.summaryDialogVisible.update(i=>!i),We(null)))).subscribe()}else{console.error("Cannot proceed with import, JournalEntryImport is not set or canProceed is false.");return}}onReset(){this.stepActiveIndex.set(1),this.COAImportPreview.set(null)}handleKeyboardEvent(e){e.key==="F2"&&this.onConfirmImport()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=Q({type:t,selectors:[["app-coa-import"]],hostBindings:function(o,i){o&1&&D("keydown",function(n){return i.handleKeyboardEvent(n)},!1,Ye)},decls:14,vars:10,consts:[["actionButton",""],["content",""],["closeIconTemplate",""],["header",""],["footer",""],["stepper",""],["body",""],["pageTitle","Chart of Account Import"],["position","center","appendTo","body",3,"visibleChange","modal","visible","breakpoints","draggable","closeIconTemplate","dismissableMask"],["label","Back","severity","secondary","variant","outlined",3,"disabled","click",4,"ngIf"],["label","Next","severity","primary",3,"disabled","click",4,"ngIf"],["label","Finish","severity","primary",3,"click",4,"ngIf"],["label","Back","severity","secondary","variant","outlined",3,"click","disabled"],["label","Next","severity","primary",3,"click","disabled"],["label","Finish","severity","primary",3,"click"],[1,"row",3,"ngClass"],[1,"col-6",3,"ngClass"],[1,"basis-[50rem]",3,"linear","value"],[3,"value"],[1,"d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-upload"],[1,"fa-solid","fa-file"],[1,"fa-solid","fa-check"],["subtitle","Accepted file format: .csv & max file size: 1MB",3,"fileUploaded","fileRemoved","uppyCoreConfiguration","sampleUrl"],[1,"fst-italic"],["href","#","target","_blank",1,"link","link-primary"],[3,"value","scrollable","scrollHeight","tableStyle"],[3,"ttRow"],[3,"rowNode"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],[1,"d-flex","gap-2","align-items-baseline"],[1,"fs-4","text-white","m-0"],[1,"m-0","fs-3"],[1,"row"],[1,"col"],[1,"state-new"],[1,"fs-4","m-0"],[1,"state-updated"],[1,"state-unchanged"],[1,"state-error"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click","disabled"]],template:function(o,i){if(o&1){let l=F();c(0,"app-main-panel",7),p(1,Wl,3,3,"ng-template",null,0,x)(3,tn,31,17,"ng-template",null,1,x),h(),c(5,"p-dialog",8),rt("visibleChange",function(d){return M(l),nt(i.summaryDialogVisible,d)||(i.summaryDialogVisible=d),P(d)}),p(6,on,1,2,"ng-template",null,2,x)(8,ln,5,1,"ng-template",null,3,x)(10,dn,1,1,"ng-template",null,1,x)(12,pn,2,1,"ng-template",null,4,x),h()}if(o&2){let l=ne(7);s(5),Z(q(8,Hl)),a("modal",!0),lt("visible",i.summaryDialogVisible),a("breakpoints",q(9,Bl))("draggable",!1)("closeIconTemplate",l)("dismissableMask",!0)}},dependencies:[Ot,he,re,W,Mt,Rt,Qt,Bt,Ht,Jt,Gt,Ut,Wt,qt,jt,Xt,Dt,Lt,oi,te,ii,ti,Vt,Pt,Ft,Nt],styles:["[_nghost-%COMP%]{display:block} .p-card{border-radius:4px} .p-card .p-card-header{display:flex;align-items:center;width:100%} .p-card .p-card-header .state-new{width:inherit;padding:.75rem;vertical-align:middle;background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important} .p-card .p-card-header .state-updated{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important} .p-card .p-card-header .state-unchanged{width:inherit;padding:.75rem;border-bottom:1px solid #dee2e6} .p-card .p-card-header .state-error{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}"],changeDetection:0})}}return t})();export{br as CoaImportComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ce}from"./chunk-
|
|
1
|
+
import{b as ce}from"./chunk-TC43COAE.js";import{a as ie}from"./chunk-WZO2ZLBL.js";import{a as oe}from"./chunk-YOEPO6LK.js";import{Ma as Z,Na as C,Va as ee,a as X,d as J,ta as W,ua as Y}from"./chunk-BNI5KUDE.js";import{c as U,f as G,h as H,m as K}from"./chunk-BYD3JK4R.js";import{Ab as D,Cb as d,Ga as E,Jb as s,Kb as t,Nb as _,Ob as v,Ub as $,Uc as h,Vb as I,Vc as P,Wb as x,Xb as w,Yb as T,_b as L,aa as M,ba as F,ca as S,dc as Q,ec as f,gb as l,ha as z,ic as V,jc as N,kc as g,lc as m,oa as B,pa as u,qa as p,ta as y,wb as O,xb as q,xc as j,yc as A,za as k,zc as R}from"./chunk-YVEUYFCE.js";var ae=["checkboxicon"],re=["input"],le=()=>({"p-checkbox-input":!0}),he=e=>({checked:e,class:"p-checkbox-icon"});function se(e,a){if(e&1&&x(0,"span",8),e&2){let o=f(3);t("ngClass",o.checkboxIcon),s("data-pc-section","icon")}}function be(e,a){e&1&&x(0,"CheckIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function de(e,a){if(e&1&&(w(0),d(1,se,1,2,"span",7)(2,be,1,2,"CheckIcon",6),T()),e&2){let o=f(2);l(),t("ngIf",o.checkboxIcon),l(),t("ngIf",!o.checkboxIcon)}}function ue(e,a){e&1&&x(0,"MinusIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function pe(e,a){if(e&1&&(w(0),d(1,de,3,2,"ng-container",4)(2,ue,1,2,"MinusIcon",6),T()),e&2){let o=f();l(),t("ngIf",o.checked),l(),t("ngIf",o._indeterminate())}}function ke(e,a){}function xe(e,a){e&1&&d(0,ke,0,0,"ng-template")}var fe=({dt:e})=>`
|
|
2
2
|
.p-checkbox {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Qe}from"./chunk-G4XX7EU2.js";import{a as Xe,b as Ze,c as et,d as tt,e as nt,f as ot}from"./chunk-DOM7WYRM.js";import{a as ee,b as pe}from"./chunk-LKZL77YR.js";import{a as Te,b as Fe}from"./chunk-JP3F2QND.js";import{d as ne,e as qe,i as we,j as Me,k as oe}from"./chunk-TFV5QZKR.js";import"./chunk-3WB76KQC.js";import"./chunk-LTZA6IIO.js";import{a as Ae}from"./chunk-B7JILYJO.js";import"./chunk-HFFH2WIX.js";import{a as K,b as J}from"./chunk-TK3G2BVM.js";import"./chunk-LR2DJRRL.js";import"./chunk-CSMMP7XG.js";import"./chunk-6TA77CRR.js";import"./chunk-JMLETF7Y.js";import"./chunk-C5GEP4MM.js";import"./chunk-TC43COAE.js";import{a as z,b as U}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import{a as Ee,b as Y}from"./chunk-6ZZARVQO.js";import{h as M}from"./chunk-35CWG2OK.js";import"./chunk-EXVUABTO.js";import{a as te,b as ye,c as Pe,d as be,e as Oe,f as Ie,g as Je}from"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{o as Ke,w as B,x as V}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{e as H,f as _e,j as re,k as ge,l as xe,m as he,n as Ye,o as Ce,v as Se,x as Z,y as ve}from"./chunk-BNI5KUDE.js";import{a as fe}from"./chunk-35KDUCM3.js";import"./chunk-3HW557B7.js";import{C as ae,E as ze,F as L,M as k,f as G,j as He,m as w}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as _,Ga as R,Ic as Ue,Jc as je,Kb as s,Lc as u,Nb as F,Pb as $e,Qb as P,Sb as b,Tb as O,Ub as a,Vb as i,Wb as $,X as j,Xc as X,Z as D,_b as v,ba as ue,bb as Ve,c as se,dc as y,ec as c,gb as p,ha as h,pa as C,pc as m,qa as S,qc as d,rc as I,s as Q,tc as We,wb as T,xc as de,yc as E,zc as ie}from"./chunk-YVEUYFCE.js";import{a as f,b as x}from"./chunk-YQFG5XE2.js";var A=(()=>{class t{constructor(){this.httpService=h(fe)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(e){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration",{params:e})}fetchPOSOutletFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",n)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(e){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration",{params:e})}fetchPOSPaymentFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",n)}updatePOSPaymentConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitPaymentConfiguration",e)}fetchPOSTaxConfiguration(){return this.httpService.get(void 0,"/api/setup/TaxConfigurationForm")}updatePOSTaxConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitTaxConfiguration",e)}fetchPOSWriteOffConfiguration(){return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationList")}fetchPOSWriteOffFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",n)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var N=function(t){return t.POSGLOBAL_SELL="Sell",t.POSGLOBAL_BUY="Buy",t.POSGLOBAL_ADJUSTMENT="Adjustment",t.POSGLOBAL_PREPAID="Prepaid",t.POSGLOBAL_RETURN="Return",t.POSGLOBAL_DEBT="Debt",t.POSGLOBAL_PAYMENTFEE="Payment Fee",t.POSGLOBAL_MANUFACTURING="Manufacturing",t.POSGLOBAL_ADVANCE="Advance",t}(N||{});var it={[N.POSGLOBAL_SELL]:[{typeID:2,side:"debit",label:"Account Receivable"},{typeID:1,side:"credit",label:"Sales"},{typeID:4,side:"debit",label:"COGS"},{typeID:3,side:"credit",label:"Sold Inventory"},{typeID:10,side:"debit",label:"Sales Discount"}],[N.POSGLOBAL_BUY]:[{typeID:27,side:"debit",label:"Pending Paid Inventory"},{typeID:5,side:"credit",label:"Account Payable"},{typeID:28,side:"debit",label:"Inventory Bought"},{typeID:27,side:"credit",label:"Pending Paid Inventory"},{typeID:11,side:"credit",label:"Purchase Discount"}],[N.POSGLOBAL_ADJUSTMENT]:[{typeID:26,side:"debit",label:"Adjustment Asset"},{typeID:21,side:"credit",label:"Adjustment Expense"}],[N.POSGLOBAL_PREPAID]:[{typeID:29,side:"debit",label:"Accounting for Prepaid"},{typeID:30,side:"debit",label:"Sales For Prepaid"}],[N.POSGLOBAL_RETURN]:[{typeID:8,side:"debit",label:"Sales Return"},{typeID:27,side:"debit",label:"Inventory"},{typeID:4,side:"credit",label:"COGS"},{typeID:9,side:"credit",label:"Purchase Return"}],[N.POSGLOBAL_DEBT]:[{typeID:17,side:"debit",label:"Consignment Payable"}],[N.POSGLOBAL_PAYMENTFEE]:[{typeID:19,side:"debit",label:"Payment Fee"},{typeID:20,side:"credit",label:"Surcharge"}],[N.POSGLOBAL_MANUFACTURING]:[{typeID:24,side:"debit",label:"Finished Goods"},{typeID:23,side:"credit",label:"Raw Material"},{typeID:25,side:"credit",label:"Production Expenses"}],[N.POSGLOBAL_ADVANCE]:[{typeID:15,side:"debit",label:"Crossing Account"},{typeID:16,side:"debit",label:"Retained Earnings"},{typeID:18,side:"debit",label:"Current Earnings"}]};function gt(t,r){if(t&1){let e=v();a(0,"div",5)(1,"p-button",6),y("onClick",function(){C(e);let o=c();return S(o.onSubmit())}),i()()}}function xt(t,r){if(t&1&&(a(0,"p-tab",10),m(1),i()),t&2){let e=r.$implicit;s("value",e.value),p(),d(e.label)}}function ht(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Ct(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function St(t,r){if(t&1&&(a(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),m(4),i(),a(5,"span",17),m(6),i()(),a(7,"p-select",18),_(8,ht,7,2,"ng-template",null,2,u)(10,Ct,7,2,"ng-template",null,3,u),i()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function vt(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function yt(t,r){if(t&1&&(a(0,"div",19)(1,"div")(2,"span"),m(3),i()(),a(4,"div")(5,"span"),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Pt(t,r){if(t&1&&(a(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),m(4),i(),a(5,"span",20),m(6),i()(),a(7,"p-select",18),_(8,vt,7,2,"ng-template",null,2,u)(10,yt,7,2,"ng-template",null,3,u),i()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function bt(t,r){if(t&1&&(a(0,"p-tabpanel",10)(1,"div",11)(2,"div",12)(3,"div",13),b(4,St,12,4,"div",14,P),i()(),a(6,"div",12)(7,"div",13),b(8,Pt,12,4,"div",14,P),i()()()()),t&2){let e=r.$implicit,n=c(3);s("value",e.value),p(),s("formGroupName",e.value),p(3),O(n.getDebitEntries(e.value)),p(4),O(n.getCreditEntries(e.value))}}function Ot(t,r){if(t&1){let e=v();a(0,"form",8),y("ngSubmit",function(){C(e);let o=c(2);return S(o.onSubmit())}),a(1,"p-tabs",9)(2,"p-tablist"),b(3,xt,2,2,"p-tab",10,P),i(),a(5,"p-tabpanels"),b(6,bt,10,2,"p-tabpanel",10,P),i()()()}if(t&2){let e=c(2);s("formGroup",e.accountForm),p(),s("value",e.tab())("lazy",!0),p(2),O(e.tabs()),p(3),O(e.tabs())}}function It(t,r){if(t&1&&_(0,Ot,8,3,"form",7),t&2){let e=c();s("ngIf",e.posIntegration()&&e.accountForm)}}var at=(()=>{class t{constructor(){this.posConfigService=h(A),this.fb=h(Se),this.tab=R(N.POSGLOBAL_SELL),this.tabs=R(Object.values(N).map(e=>({label:e,value:e}))),this.posIntegration=R(null),this.form=R([]),this.descriptionsMap=new Map,this.objectKeys=Object.keys,this.posGlobalTabEnum=N}ngOnInit(){this.posConfigService.getGlobalConfiguration().pipe(D(e=>{this.posIntegration.set(e),this.form.set(e.form),this.descriptionsMap=new Map(e.descriptions.map(n=>[+n.id,n.name])),this.initializeForm()})).subscribe()}initializeForm(){let e={};this.tabs().forEach(n=>{let o=this.getEntriesForTab(n.value);console.log(`Entries for ${n.value}:`,o),e[n.value]=this.fb.array(o.map(l=>this.createEntryFormGroup(l)))}),this.accountForm=this.fb.group(e)}createEntryFormGroup(e){let n=this.fb.group({typeID:[e.typeID],label:[e.label],side:[e.side],accountID:[this.getAccountIDByTypeID(e.typeID)]});return n.get("accountID").valueChanges.subscribe(o=>{this.syncAccountIDs(e.typeID,o,n)}),n}getAccountIDByTypeID(e){return this.form().find(o=>o.typeID===e)?.accountID||""}getEntriesForTab(e){return it[e]||[]}getTabEntries(e){return this.accountForm.get(e)}onSubmit(){let e=this.accountForm.getRawValue(),n=[],o=new Set;for(let l of Object.values(e))for(let{typeID:g,accountID:W}of l){let Be=`${g}_${W}`;o.has(Be)||(o.add(Be),n.push({typeID:g,accountID:W||Qe}))}console.log("Form submitted with value:",n),this.posConfigService.saveGlobalConfiguration({form:n}).subscribe({next:()=>console.log("Save successful"),error:l=>console.error("Save failed",l)})}getDebitEntries(e){return this.getTabEntries(e).controls.map((n,o)=>({entry:n,index:o})).filter(n=>n.entry.value.side==="debit")}getCreditEntries(e){return this.getTabEntries(e).controls.map((n,o)=>({entry:n,index:o})).filter(n=>n.entry.value.side==="credit")}syncAccountIDs(e,n,o){Object.values(this.accountForm.controls).forEach(l=>{l.controls.forEach(g=>{g!==o&&g.get("typeID")?.value===e&&g.get("accountID")?.value!==n&&g.get("accountID")?.setValue(n,{emitEvent:!1})})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","POS Integration"],[1,"d-flex","gap-2"],["label","Submit",3,"onClick"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"border-top",3,"value","lazy"],[3,"value"],[1,"row",3,"formGroupName"],[1,"col"],[1,"row","gap-3"],[1,"col-12",3,"formGroupName"],[1,"form-group","d-flex","flex-column"],["for","",1,"fs-3"],[1,"text-success","fs-3"],["filter","","filterBy","code,name","formControlName","accountID","optionLabel","name","optionValue","id",3,"options"],[1,"d-flex","align-items-center","gap-2"],[1,"text-danger","fs-3"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,gt,2,0,"ng-template",null,0,u)(3,It,1,1,"ng-template",null,1,u),i())},dependencies:[M,ot,nt,tt,et,Xe,Ze,Ke,J,K,Z,ge,H,_e,w,G,k,V,B,ve,xe,Ce,he],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Et=t=>[t];function Tt(t,r){if(t&1&&(a(0,"th",8),m(1),i()),t&2){let e=r.$implicit;p(),d(e.name.slice(0,10))}}function Ft(t,r){if(t&1&&(a(0,"tr")(1,"th",6),m(2,"Method"),i(),a(3,"th",7),m(4,"Outlet"),i()(),a(5,"tr"),b(6,Tt,2,1,"th",8,P),i()),t&2){let e=c(3);p(3),s("colSpan",e.paymentConfiguration().outlets.length),p(3),O(e.paymentConfiguration().outlets)}}function wt(t,r){if(t&1&&(a(0,"td"),m(1),i()),t&2){let e=r.$implicit;p(),d(e.accountName)}}function Mt(t,r){if(t&1&&(a(0,"tr")(1,"td",9)(2,"a",10),m(3),i()(),b(4,wt,2,1,"td",null,P),i()),t&2){let e=r.$implicit;p(2),s("routerLink",ie(2,Et,e.id)),p(),d(e.name),p(),O(e.accounts)}}function Dt(t,r){if(t&1&&(a(0,"p-table",5),_(1,Ft,8,1,"ng-template",null,1,u)(3,Mt,6,4,"ng-template",null,2,u),i()),t&2){let e=c(2);s("scrollable",!0)("scrollHeight","calc(100vh - 70px)")("value",e.paymentConfiguration().payment)}}function Rt(t,r){if(t&1){let e=v();a(0,"app-main-panel",4),y("search",function(o){C(e);let l=c();return S(l.onSearch(o))}),_(1,Dt,5,3,"ng-template",null,0,u),i()}t&2&&s("isSearchableInput",!0)}var rt=(()=>{class t{constructor(){this.POSSetupService=h(A),this.paymentConfiguration=R(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration({}).pipe(D(e=>{this.paymentConfiguration.set(e)})).subscribe()}onSearch(e){this.POSSetupService.fetchPOSPaymentConfiguration({Search:e}).pipe(D(n=>{this.paymentConfiguration.set(n)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",3,"isSearchableInput","search",4,"ngIf"],["pageTitle","Payment Method Accounting",3,"search","isSearchableInput"],[3,"scrollable","scrollHeight","value"],["rowspan","3",2,"min-width","300px"],[3,"colSpan"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(n,o){n&1&&_(0,Rt,3,1,"app-main-panel",3),n&2&&s("ngIf",o.paymentConfiguration())},dependencies:[M,oe,ne,qe,w,G,k,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var kt={data:{listOutletAccount:[],listCOAType:[],pageNumber:1,pageSize:20,totalCount:0,totalPages:0},filter:{PageNumber:1,PageSize:20,Search:""}},Ge=ye(Ie(kt),Pe(t=>({first:X(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:X(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount))})),Oe(t=>{let r=h(A);return{updateFilter:n=>{te(t,o=>x(f({},o),{filter:f(f({},o.filter),n)}))},getPOSOutlets:Te(se(j(n=>r.fetchPOSOutletConfiguration(n).pipe(Fe({next:o=>{te(t,l=>x(f({},l),{data:o}))},error:o=>{console.error("Error fetching POS outlets:",o)}})))))}}),be(t=>({onInit:()=>{t.getPOSOutlets(t.filter)}})));var At=()=>({height:"calc(100vh - 70px)"}),Nt=t=>[t];function Gt(t,r){if(t&1&&(a(0,"th"),m(1),i()),t&2){let e=r.$implicit;p(),d(e.value)}}function Lt(t,r){if(t&1&&(a(0,"tr")(1,"th"),m(2,"Name"),i(),b(3,Gt,2,1,"th",null,P),i()),t&2){let e=c(2);p(3),O(e.store.data().listCOAType)}}function Bt(t,r){if(t&1&&(a(0,"td"),m(1),i()),t&2){let e=r.$implicit;p(),d(e)}}function Vt(t,r){if(t&1&&(a(0,"tr")(1,"td")(2,"a",7),m(3),i()(),b(4,Bt,2,1,"td",null,P),i()),t&2){let e=r.$implicit;p(2),s("routerLink",ie(2,Nt,e.OutletID)),p(),I(" ",e.OutletName,""),p(),O(e.Accounts)}}function $t(t,r){if(t&1&&m(0),t&2){let e=c(2);We(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Wt(t,r){t&1&&(a(0,"tr")(1,"td",8)(2,"span"),m(3," No journal entries found. "),i()()())}function Ut(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",6),y("onPage",function(o){C(e);let l=c();return S(l.onPage(o))}),_(2,Lt,5,0,"ng-template",null,1,u)(4,Vt,6,4,"ng-template",null,2,u)(6,$t,1,3,"ng-template",null,3,u)(8,Wt,4,0,"ng-template",null,4,u),i()()}if(t&2){let e=c();F(E(11,At)),p(),s("scrollable",!0)("scrollHeight","calc(100vh - 100px)")("value",e.store.data().listOutletAccount)("paginator",!0)("rows",e.store.filter().PageSize)("lazy",!0)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("totalRecords",e.store.data().totalCount)}}var pt=(()=>{class t{constructor(){this.store=h(Ge)}onSearch(e){this.store.updateFilter({PageNumber:1,PageSize:20,Search:e})}onPage(e){let n=e.first/e.rows+1;this.store.updateFilter(x(f({},this.store.filter()),{PageSize:e.rows,PageNumber:n}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-outlet"]],features:[de([Ge])],decls:3,vars:1,consts:[["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Outlet Account",3,"search","isSearchableInput"],["styleClass","d-flex flex-column justify-content-between h-100",3,"onPage","scrollable","scrollHeight","value","paginator","rows","lazy","totalRecords"],[1,"link","link-primary",3,"routerLink"],["colspan","8"]],template:function(n,o){if(n&1){let l=v();a(0,"app-main-panel",5),y("search",function(W){return C(l),S(o.onSearch(W))}),_(1,Ut,10,12,"ng-template",null,0,u),i()}n&2&&s("isSearchableInput",!0)},dependencies:[M,w,Y,oe,ne,k,L,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var jt=()=>({height:"calc(100vh - 100px)"}),Ht=()=>({height:"calc(100vh - 150px)"});function zt(t,r){if(t&1){let e=v();a(0,"a",5),m(1,"Cancel"),i(),a(2,"p-button",6),y("onClick",function(){C(e);let o=c();return S(o.updatePOsOutletConfiguration())}),i()}}function Yt(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",17)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Kt(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",18)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function Jt(t,r){if(t&1&&(a(0,"div",12)(1,"span",14),m(2),i(),a(3,"p-select",15),_(4,Yt,7,2,"ng-template",null,2,u)(6,Kt,7,2,"ng-template",null,3,u),i()()),t&2){let e,n=r.$implicit,o=r.$index,l=c(3);s("formGroupName",o),p(2),d((e=n.get("TypeName"))==null?null:e.value),p(),s("options",l.options.accounts)}}function qt(t,r){t&1&&$(0,"hr")}function Qt(t,r){if(t&1&&(a(0,"div",9)(1,"h3",10),m(2),Ue(3,"titlecase"),i(),a(4,"div",11),b(5,Jt,8,3,"div",12,P),i()(),_(7,qt,1,0,"hr",13)),t&2){let e,n=r.$implicit,o=r.$index,l=r.$index,g=r.$count,W=c(2);s("formGroupName",o),p(2),I(" ",je(3,3,(e=n.get("groupName"))==null?null:e.value)," "),p(3),O(W.getAccountsFormArray(l).controls),p(2),s("ngIf",l!==g-1)}}function Xt(t,r){if(t&1&&(a(0,"p-panel")(1,"p-scroll-panel")(2,"form",7)(3,"div",8),b(4,Qt,8,5,null,null,P),i()()()()),t&2){let e=c();F(E(5,jt)),p(),F(E(6,Ht)),p(),s("formGroup",e.accountsForm),p(2),O(e.accountGroupsArray.controls)}}var lt=(()=>{class t{constructor(){this.route=h(ae),this.POSSetupService=h(A),this.outletForm=R(null),this.allAccounts=[],this.options=null,this.outletName="",this.accountGroups=[{name:"sell",typeIds:[1,2],accounts:[]},{name:"delivery",typeIds:[3,4],accounts:[]},{name:"buy",typeIds:[27,11,28],accounts:[]},{name:"purchase return",typeIds:[9],accounts:[]},{name:"sales return",typeIds:[8],accounts:[]},{name:"adjustment",typeIds:[21,26],accounts:[]}],this.fb=h(Se)}ngOnInit(){this.accountsForm=this.fb.group({accountGroups:this.fb.array([])}),this.route.paramMap.pipe(Q(e=>e.get("id")),j(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),D(e=>{this.allAccounts=e.form,this.options=e.options,this.outletName=e.form[0].OutletName,this.accountGroups.forEach(o=>{o.accounts=this.allAccounts.filter(l=>o.typeIds.includes(l.TypeID))});let n=this.accountsForm.get("accountGroups");this.accountGroups.forEach(o=>{n.push(this.createAccountGroupControl(o))})})).subscribe()}get accountGroupsArray(){return this.accountsForm.get("accountGroups")}getAccountsFormArray(e){return this.accountGroupsArray.at(e).get("accounts")}createAccountGroupControl(e){return this.fb.group({groupName:[e.name],accounts:this.fb.array(e.accounts.map(n=>this.createAccountControl(n)))})}createAccountControl(e){return this.fb.group({AccountID:[e.AccountID],TypeID:[e.TypeID],TypeName:[e.TypeName],OutletID:[e.OutletID],OutletName:[e.OutletName]})}updatePOsOutletConfiguration(){let{accountGroups:e}=this.accountsForm.value,n={form:e.flatMap(o=>o.accounts.map(l=>({AccountID:l.AccountID,TypeID:l.TypeID,TypeName:l.TypeName,OutletID:l.OutletID,OutletName:l.OutletName})))};this.POSSetupService.updatePOSOutletConfiguration(n).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-outlet-form"]],decls:5,vars:2,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],["routerLink","/pages/pos-setup/outlets",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"",3,"formGroup"],["formArrayName","accountGroups",1,"d-flex","flex-column","gap-2"],[1,"row",3,"formGroupName"],[1,"fs-4","fw-semibold"],["formArrayName","accounts",1,"row","row-gap-3"],[1,"col-6",3,"formGroupName"],[4,"ngIf"],[1,"fs-3"],["formControlName","AccountID","filter","","filterBy","code,name","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-100",3,"options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,zt,3,0,"ng-template",null,0,u)(3,Xt,6,7,"ng-template",null,1,u),i()),n&2&&s("pageTitle","Edit "+o.outletName)("hasMainWrapperPadding",!0)},dependencies:[M,w,G,He,Y,ve,ge,H,_e,xe,Ce,he,Ye,J,K,U,z,ee,V,B,k,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var en=()=>({height:"calc(100vh - 100px)"}),tn=()=>({width:"100%",height:"calc(100vh - 150px)"}),nn=()=>({width:"100%"});function on(t,r){if(t&1){let e=v();a(0,"a",6),m(1,"Cancel"),i(),a(2,"p-button",7),y("onClick",function(){C(e);let o=c(3);return S(o.updatePOSOutletConfiguration())}),i()}}function an(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",17)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function rn(t,r){if(t&1&&(a(0,"div",16)(1,"div",17)(2,"span"),m(3),i()(),a(4,"div",18)(5,"span",17),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function pn(t,r){if(t&1){let e=v();a(0,"div",9)(1,"div",10)(2,"div",11)(3,"label",12),m(4),i()(),$(5,"div",13),a(6,"div",14)(7,"p-select",15),y("ngModelChange",function(o){let l=C(e).$index,g=c(4);return S(g.updateAccountById(o,l))}),_(8,an,7,2,"ng-template",null,2,u)(10,rn,7,2,"ng-template",null,3,u),i()()()()}if(t&2){let e=r.$implicit,n=r.$index,o=c(4);p(4),d(e.outletName.slice(0,15)),p(3),F(E(7,nn)),s("ngModel",o.paymentForm().form.accounts[n].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.paymentForm().options.chartOfAccount)}}function ln(t,r){if(t&1&&(a(0,"p-card")(1,"p-scrollpanel")(2,"div",8),b(3,pn,12,8,"div",9,P),i()()()),t&2){let e=c(3);F(E(4,en)),p(),F(E(5,tn)),p(2),O(e.paymentForm().form.accounts)}}function mn(t,r){if(t&1&&(a(0,"app-main-panel",4),_(1,on,3,0,"ng-template",null,0,u)(3,ln,5,6,"ng-template",null,1,u),i()),t&2){let e=c(2);s("pageTitle",e.paymentForm().form.paymentMethod.name+" Form Accounting")("hasMainWrapperPadding",!0)}}function cn(t,r){if(t&1&&_(0,mn,5,2,"app-main-panel",5),t&2){let e=c();s("ngIf",e.paymentForm())}}var ct=(()=>{class t{constructor(){this.route=h(ae),this.POSSetupService=h(A),this.paymentForm=R(null),this.router=h(ze)}ngOnInit(){this.route.paramMap.pipe(Q(e=>+e.get("id")),j(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),D(e=>{this.paymentForm.set(e)}),Ae("response")).subscribe()}updateAccountById(e,n){let o=this.paymentForm().form.accounts,l=x(f({},this.paymentForm()),{form:x(f({},this.paymentForm().form),{accounts:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)})});this.paymentForm.set(l)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(Ae("response"),D(()=>{this.router.navigate(["/pages/pos-setup/payments"])})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],["routerLink","/pages/pos-setup/payments",1,"p-button","p-button-outlined","p-button-secondary"],["label","Submit",3,"onClick"],[1,"row","row-gap-3"],[1,"col-6","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-2"],["for",""],[1,"col-3"],[1,"col-7"],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&_(0,cn,1,1,"app-main-panel",4),n&2&&$e(o.paymentForm()?0:-1)},dependencies:[Y,Ee,M,w,G,pe,ee,J,K,Z,H,re,k,L,V,B,U],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var sn=()=>({height:"calc(100vh - 70px)"}),un=()=>({width:"100%",height:"calc(100vh - 100px)"});function dn(t,r){if(t&1){let e=v();a(0,"div",5)(1,"a",6),m(2,"Cancel"),i(),a(3,"p-button",7),y("onClick",function(){C(e);let o=c();return S(o.updatePOSTaxConfiguration())}),i()()}}function fn(t,r){if(t&1&&(a(0,"div",5)(1,"div",15)(2,"span"),m(3),i()(),a(4,"div",15)(5,"span",15),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function _n(t,r){if(t&1&&(a(0,"div",5)(1,"div",15)(2,"span"),m(3),i()(),a(4,"div",16)(5,"span",15),m(6),i()()()),t&2){let e=r.$implicit;p(3),I("(",e.code,")"),p(3),d(e.name)}}function gn(t,r){if(t&1){let e=v();a(0,"div",11)(1,"div",12)(2,"label",13),m(3),i(),a(4,"p-select",14),y("ngModelChange",function(o){let l=C(e).$index,g=c(2);return S(g.updateAccountID(o,l))}),_(5,fn,7,2,"ng-template",null,2,u)(7,_n,7,2,"ng-template",null,3,u),i()()()}if(t&2){let e=r.$implicit,n=r.$index,o=c(2);p(3),d(e.name),p(),s("options",o.taxForm().options.chartOfAccount)("ngModel",o.taxForm().form[n].accountID)}}function xn(t,r){if(t&1&&(a(0,"p-panel")(1,"p-scroll-panel")(2,"div",8)(3,"div",9)(4,"div",10),b(5,gn,9,3,"div",11,P),i()()()()()),t&2){let e=c();F(E(4,sn)),p(),F(E(5,un)),p(4),O(e.taxForm().form)}}var st=(()=>{class t{constructor(){this.POSSetupService=h(A),this.taxForm=R(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(D(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,n){let o=this.taxForm().form,l=x(f({},this.taxForm()),{form:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)});this.taxForm.set(l)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(D(n=>console.log(n))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","Tax Setup"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col-4"],[1,"row","row-gap-3"],[1,"col-12"],[1,"d-flex","flex-column"],["for",""],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an Account",3,"ngModelChange","options","ngModel"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,dn,4,0,"ng-template",null,0,u)(3,xn,7,6,"ng-template",null,1,u),i())},dependencies:[M,Y,w,J,K,pe,ee,Z,H,re,k,L,V,B,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var hn=()=>({height:"calc(100vh - 70px)"}),Cn=()=>({"min-width":"50rem"}),Sn=t=>[t];function vn(t,r){t&1&&$(0,"p-button",6)}function yn(t,r){if(t&1&&_(0,vn,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.hasCheckedItems())}}function Pn(t,r){t&1&&(a(0,"tr")(1,"th",8),$(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),m(4,"Name"),i(),a(5,"th"),m(6,"Description"),i()())}function bn(t,r){if(t&1&&(a(0,"tr")(1,"td"),$(2,"p-tableCheckbox",9),i(),a(3,"td")(4,"a",10),m(5),i()(),a(6,"td"),m(7),i()()),t&2){let e,n=r.$implicit;p(2),s("value",n),p(2),s("routerLink",ie(4,Sn,n.id)),p(),d(n.name),p(2),d((e=n.description)!==null&&e!==void 0?e:"N/A")}}function On(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",7),y("onRowSelect",function(o){C(e);let l=c();return S(l.onRowSelect(o))})("onRowUnselect",function(o){C(e);let l=c();return S(l.onRowSelect(o))})("onHeaderCheckboxToggle",function(o){C(e);let l=c();return S(l.onSelectAll(o))}),_(2,Pn,7,0,"ng-template",null,2,u)(4,bn,8,6,"ng-template",null,3,u),i()()}if(t&2){let e=c();F(E(4,hn)),p(),s("value",e.writeoffList().data)("tableStyle",E(5,Cn))}}var ut=(()=>{class t{constructor(){this.POSSetupService=h(A),this.writeoffList=R(null),this.hasCheckedItems=X(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(n=>n&&n.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe(Q(e=>x(f({},e),{data:e.data.map(n=>x(f({},n),{checked:!1}))})),D(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let n=this.writeoffList();if(!n||!n.data)return;let o=n.data.findIndex(l=>l.id===e.data.id);if(o!==-1){let l=[...n.data];l[o]=x(f({},l[o]),{checked:!l[o].checked}),this.writeoffList.set(x(f({},n),{data:l}))}}onSelectAll(e){let n=this.writeoffList();if(!n?.data)return;let o=n.data.map(l=>x(f({},l),{checked:e.checked}));this.writeoffList.set(x(f({},n),{data:o}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-writeoff"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Write Off"],["severity","danger","label","Delete","icon","fa-solid fa-trash",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","4rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,yn,1,1,"ng-template",null,0,u)(3,On,6,6,"ng-template",null,1,u),i())},dependencies:[M,w,G,oe,ne,we,Me,k,L,V,B,U,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var In=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function En(t,r){if(t&1){let e=v();a(0,"div",6)(1,"a",7),m(2,"Cancel"),i(),a(3,"p-button",8),y("onClick",function(){C(e);let o=c(2);return S(o.updateWriteOffConfiguration())}),i()()}}function Tn(t,r){if(t&1&&(a(0,"div",6)(1,"span",16),m(2),i(),a(3,"span",16),m(4),i()()),t&2){let e=r.$implicit;p(2),I("(",e.code,")"),p(2),d(e.name)}}function Fn(t,r){if(t&1&&(a(0,"div",6)(1,"span",16),m(2),i(),a(3,"span",16),m(4),i()()),t&2){let e=r.$implicit;p(2),I("(",e.code,")"),p(2),d(e.name)}}function wn(t,r){if(t&1){let e=v();a(0,"div",12)(1,"div",13)(2,"label",14),m(3),i(),a(4,"p-select",15),y("ngModelChange",function(o){let l=C(e).$index,g=c(3);return S(g.updateAccountById(o,l))}),_(5,Tn,5,2,"ng-template",null,2,u)(7,Fn,5,2,"ng-template",null,3,u),i()()()}if(t&2){let e=r.$implicit,n=c(3);p(3),d(e.name),p(),s("ngModel",e.accountID)("options",n.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function Mn(t,r){if(t&1&&(a(0,"p-card")(1,"p-scroll-panel")(2,"div",9)(3,"div",10)(4,"div",11),b(5,wn,9,5,"div",12,P),i()()()()()),t&2){let e=c(2);p(),F(E(2,In)),p(4),O(e.writeOffForm().form)}}function Dn(t,r){if(t&1&&(a(0,"app-main-panel",5),_(1,En,4,0,"ng-template",null,0,u)(3,Mn,7,3,"ng-template",null,1,u),i()),t&2){let e=c();s("pageTitle","Write Off Form "+e.writeOffForm().info.name)("hasMainWrapperPadding",!0)}}var dt=(()=>{class t{constructor(){this.POSSetupService=h(A),this.route=h(ae),this.writeOffForm=R(null)}ngOnInit(){this.route.paramMap.pipe(Q(e=>e.get("id")),j(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),D(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,n){let o=this.writeOffForm().form,l=x(f({},this.writeOffForm()),{form:o.map((g,W)=>W===n?x(f({},g),{accountID:e}):g)});this.writeOffForm.set(l)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],[3,"pageTitle","hasMainWrapperPadding"],[1,"d-flex","gap-2"],["routerLink","/pages/pos-setup/writeoff",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for","",1,"d-inline-block","text-truncate",2,"max-width","300px"],["filter","","filterBy","name,code","optionLabel","name","filter","","filterBy","name,code","optionValue","id","placeholder","Select an account",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"],[1,""]],template:function(n,o){n&1&&_(0,Dn,5,2,"app-main-panel",4),n&2&&s("ngIf",o.writeOffForm())},dependencies:[M,w,G,Y,Ee,pe,ee,J,K,Z,H,re,k,L,V,B],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ft=(()=>{class t{constructor(){this.httpService=h(fe)}getExpenseOptions(){return this.httpService.get(void 0,"/api/SetupExpenseOption/GetExpenseOptions")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Rn={data:{expenseOptions:[]}},Le=ye(Ie(Rn),Je("POSExpenseOptionStore"),Pe(t=>({hasCheckedRows:X(()=>t.data().expenseOptions.some(r=>r.checked)),checkedInvoice:X(()=>t.data().expenseOptions.filter(r=>r.checked).map(r=>r.id))})),Oe(t=>{let r=h(ft);return{onRowSelect(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>g.id===n.id?x(f({},g),{checked:!0}):g);return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},onRowUnselect(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>g.id===n.id?x(f({},g),{checked:!1}):g);return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},onHeaderCheckboxToggle(n){te(t,o=>{let l=o.data.expenseOptions.map(g=>x(f({},g),{checked:n}));return x(f({},o),{data:x(f({},o.data),{expenseOptions:l})})})},getExpenseOptions:Te(se(j(()=>r.getExpenseOptions().pipe(Fe({next:n=>{te(t,o=>x(f({},o),{data:x(f({},o.data),{expenseOptions:n.expenseOptions.map(l=>x(f({},l),{checked:!1}))})}))},error:n=>{console.error("Error fetching expense options:",n)}})))))}}),be({onInit:t=>{t.getExpenseOptions()}}));var kn=()=>({height:"calc(100vh - 70px)"});function An(t,r){t&1&&$(0,"p-button",6)}function Nn(t,r){if(t&1&&_(0,An,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.store.hasCheckedRows())}}function Gn(t,r){t&1&&(a(0,"tr")(1,"th",8),$(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),m(4,"Name"),i(),a(5,"th"),m(6,"Account"),i(),a(7,"th"),m(8,"Description"),i()())}function Ln(t,r){if(t&1&&(a(0,"tr")(1,"td"),$(2,"p-tableCheckbox",9),i(),a(3,"td"),m(4),i(),a(5,"td"),m(6),i(),a(7,"td"),$(8,"p",10),i()()),t&2){let e=r.$implicit;p(2),s("value",e),p(2),d(e.name),p(2),d(e.accountName),p(2),s("innerHTML",e.description,Ve)}}function Bn(t,r){if(t&1){let e=v();a(0,"p-panel")(1,"p-table",7),y("onRowSelect",function(o){C(e);let l=c();return S(l.onRowSelect(o))})("onRowUnselect",function(o){C(e);let l=c();return S(l.onRowUnselect(o))})("onHeaderCheckboxToggle",function(o){C(e);let l=c();return S(l.onHeaderCheckboxToggle(o))}),_(2,Gn,9,0,"ng-template",null,2,u)(4,Ln,9,4,"ng-template",null,3,u),i()()}if(t&2){let e=c();F(E(3,kn)),p(),s("value",e.store.data().expenseOptions)}}var _t=(()=>{class t{constructor(){this.store=h(Le)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){Array.isArray(e.data)?e.data.forEach(n=>{this.store.onRowUnselect(n)}):this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-pos-expense-option"]],features:[de([Le])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Expense Option"],["label","Delete","severity","danger","icon","fa-solid fa-trash",4,"ngIf"],["label","Delete","severity","danger","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value"],[2,"width","4rem"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(a(0,"app-main-panel",4),_(1,Nn,1,1,"ng-template",null,0,u)(3,Bn,6,4,"ng-template",null,1,u),i())},dependencies:[M,oe,ne,we,Me,U,z,V,B,w,G],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Wa=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:at},{path:"outlets",component:pt},{path:"outlets/:id",component:lt},{path:"payments",component:rt},{path:"payments/:id",component:ct},{path:"taxs",component:st},{path:"writeoff",component:ut},{path:"writeoff/:id",component:dt},{path:"expense-option",component:_t}]}];export{Wa as POS_SETUP_ROUTES};
|