dealposbooks 5.36.1 → 5.36.2
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/{chunk-E7AQUEVD.js → chunk-3PPJHQQ4.js} +1 -1
- package/{chunk-IPXNFGXP.js → chunk-4AOHMAEQ.js} +1 -1
- package/chunk-4BKREZBV.js +1 -0
- package/{chunk-QMRRMWZN.js → chunk-4O47GML2.js} +1 -1
- package/{chunk-T5WWS25E.js → chunk-4OMJSWGH.js} +1 -1
- package/{chunk-QINDEB2G.js → chunk-5L5UVIIK.js} +1 -1
- package/{chunk-VCZXQVWN.js → chunk-5U2DQZ3P.js} +1 -1
- package/{chunk-GVMHNDIX.js → chunk-62S2RZ5N.js} +2 -2
- package/{chunk-33BBQ6RC.js → chunk-6DH5EZBL.js} +2 -2
- package/{chunk-QBGM5GTK.js → chunk-6SQ75ZSO.js} +1 -1
- package/{chunk-KMDZKE4V.js → chunk-6XZEYZFV.js} +1 -1
- package/{chunk-U2WQQNY6.js → chunk-6Y7LC5K4.js} +1 -1
- package/{chunk-NIDRHASQ.js → chunk-7K7AJJBA.js} +1 -1
- package/{chunk-TP2ORO5N.js → chunk-7SXGBB2J.js} +1 -1
- package/{chunk-HCFPAKFR.js → chunk-ASZXOTXP.js} +1 -1
- package/{chunk-YEQ35LTZ.js → chunk-AYDYX3J4.js} +1 -1
- package/{chunk-ALXNUA2V.js → chunk-EA47GVMD.js} +1 -1
- package/{chunk-2KLXL4MK.js → chunk-EBEP5ZNI.js} +1 -1
- package/{chunk-CGCYFX2J.js → chunk-EM3AQZPZ.js} +1 -1
- package/{chunk-DH3ZIMF6.js → chunk-EVRPQUZB.js} +1 -1
- package/{chunk-ORFEXIMG.js → chunk-FE4Q3L6W.js} +1 -1
- package/{chunk-Y5LMPOT6.js → chunk-FETWPNGI.js} +1 -1
- package/{chunk-UEW33LPU.js → chunk-GCTX4M5B.js} +1 -1
- package/{chunk-UXYHS5V4.js → chunk-GI2IGVR7.js} +1 -1
- package/{chunk-MAKOPAMW.js → chunk-GTVRKYLY.js} +1 -1
- package/{chunk-RH4OI3PO.js → chunk-IQQJUFFQ.js} +1 -1
- package/{chunk-WKUCQF2H.js → chunk-JOLNIJ36.js} +1 -1
- package/{chunk-BVK3ZKMS.js → chunk-JTK43IPK.js} +1 -1
- package/{chunk-O6URLJBJ.js → chunk-LSY7PUC7.js} +1 -1
- package/{chunk-2WXAYRVE.js → chunk-LZSGMIGM.js} +1 -1
- package/{chunk-SMM7ZNGR.js → chunk-MQPAWXQR.js} +1 -1
- package/{chunk-W42IYRTY.js → chunk-N5RPPHA6.js} +1 -1
- package/{chunk-KOL333HP.js → chunk-NSHK5C75.js} +1 -1
- package/{chunk-O4HLUAOT.js → chunk-O3JBRZF4.js} +1 -1
- package/{chunk-Y57O7UMC.js → chunk-O75U5E6H.js} +1 -1
- package/{chunk-NCEC5HNX.js → chunk-SNKHWMQW.js} +1 -1
- package/{chunk-C3W3M6BO.js → chunk-SSZSLP4Z.js} +1 -1
- package/{chunk-BZFDD5C3.js → chunk-TB6LDOLG.js} +1 -1
- package/{chunk-3XKN3BD5.js → chunk-UDNPUUWO.js} +1 -1
- package/{chunk-BELZJUWW.js → chunk-VKYNOYJC.js} +1 -1
- package/{chunk-V73ECQBM.js → chunk-WKBCELT6.js} +1 -1
- package/{chunk-52J7F6HR.js → chunk-WW5ELKKO.js} +1 -1
- package/{chunk-HXPLUAS2.js → chunk-X5PP77DR.js} +1 -1
- package/{chunk-KQA4MVBN.js → chunk-XGCWDZO7.js} +1 -1
- package/{chunk-7KIZ6KYX.js → chunk-XO27WEAF.js} +1 -1
- package/{chunk-5HGUQMKI.js → chunk-XZQ3IYQ6.js} +1 -1
- package/{chunk-VUY5OTY3.js → chunk-YARD4P64.js} +1 -1
- package/{chunk-XKUFP534.js → chunk-YJ2QEIBF.js} +1 -1
- package/index.html +2 -2
- package/{main-RDFIBSUD.js → main-RSQGAYLC.js} +1 -1
- package/package.json +1 -1
- package/chunk-NEOGNB43.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Yt,b as ei,c as ti,d as ii,e as oi,f as li}from"./chunk-SY6XFKYM.js";import{b as Zt,c as gi,d as ni}from"./chunk-RN2UFUFZ.js";import{a as kt,b as zt}from"./chunk-BV4GM72W.js";import{a as Xt}from"./chunk-U2WQQNY6.js";import{a as qe}from"./chunk-XKCLERWG.js";import{a as Ot}from"./chunk-H57SDRPH.js";import{b as Be,c as Ke,d as Rt,e as Dt,f as Pt,g as Gt,h as Jt}from"./chunk-GDX5XEV3.js";import"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import{a as Qe}from"./chunk-ZTEDQLOG.js";import{a as $e}from"./chunk-EDGADVEY.js";import{a as Vt}from"./chunk-JTDJJORR.js";import{c as je}from"./chunk-LZUGPBFD.js";import{a as Lt}from"./chunk-2KERKGCG.js";import{a as qt,b as Wt}from"./chunk-4CDAAU6Z.js";import{e as Kt,f as $t,g as Ut,h as jt}from"./chunk-5HGUQMKI.js";import{c as Qt}from"./chunk-X22YKT5B.js";import{a as At,b as Bt}from"./chunk-JYCUE5HV.js";import"./chunk-JMEBBWX4.js";import{i as Mt}from"./chunk-FUZFAJGJ.js";import{a as He,b as Ae,i as Ue,p as Nt,w as Ft,x as Ht}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{B as De,Ca as It,Ga as be,L as wt,La as _e,M as Pe,Ma as Fe,P as ie,Q as z,R as fe,S as Ve,Ua as Et,W as vt,X as St,Y as se,_ as ce,na as Ne,qa as xt,ra as V,sa as Oe,w as Ct,y as Me,z as Re}from"./chunk-G5S5AZA7.js";import{d as Tt}from"./chunk-Z45NTTES.js";import"./chunk-IPXNFGXP.js";import"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{h as re,j as yt,k as G,l as Le,m as ae,r as me,s as ge}from"./chunk-OKCHQM5Q.js";import{Aa as le,Ab as xe,Ac as P,Bc as te,Cb as p,Cc as ht,Dc as ut,Ea as Se,Fc as mt,Ga as X,I as Ye,Jb as ne,Jc as gt,Ka as it,Kb as a,Lb as at,Lc as ft,Mc as x,Nb as Z,Ob as j,Pb as Ie,Qb as Ee,Qc as bt,Sb as ke,Tb as ze,Ub as d,Vb as h,Vc as w,Wb as I,Wc as Q,Xb as q,Yb as W,Z as Ce,Zb as T,Zc as _t,_b as D,ba as we,ca as et,dc as k,eb as ot,ec as m,g as J,gb as s,ha as B,jc as _,kc as E,lb as lt,lc as g,m as Ze,mb as N,mc as f,oa as tt,pa as L,pc as Y,qa as M,qc as b,rc as A,sc as ue,ta as ve,vc as st,wb as U,wc as ct,xb as nt,xc as dt,yb as rt,yc as pt,za as S,zc as ee}from"./chunk-JP6RBSB3.js";import{a as $,b as he,e as mi}from"./chunk-YQFG5XE2.js";var _i=["colgroup"],yi=["caption"],Ti=["header"],Ci=["body"],wi=["footer"],vi=["summary"],Si=["emptymessage"],xi=["paginatorleft"],Ii=["paginatorright"],Ei=["paginatordropdownitem"],ki=["frozenheader"],zi=["frozenbody"],Li=["frozenfooter"],Mi=["frozencolgroup"],Ri=["loadingicon"],Di=["reorderindicatorupicon"],Pi=["reorderindicatordownicon"],Vi=["sorticon"],Ni=["checkboxicon"],Oi=["headercheckboxicon"],Fi=["togglericon"],Hi=["paginatorfirstpagelinkicon"],Ai=["paginatorlastpagelinkicon"],Bi=["paginatorpreviouspagelinkicon"],Ki=["paginatornextpagelinkicon"],$i=["loader"],Qi=["container"],Ui=["resizeHelper"],ji=["reorderIndicatorUp"],qi=["reorderIndicatorDown"],Wi=["table"],Gi=["scrollableView"],Ji=["scrollableFrozenView"],Xi=(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}),K=t=>({$implicit:t}),Zi=(t,r)=>({left:t,width:r}),Yi=t=>({width:t});function eo(t,r){if(t&1&&I(0,"i"),t&2){let e=m(2);j("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function to(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function io(t,r){}function oo(t,r){t&1&&p(0,io,0,0,"ng-template")}function lo(t,r){if(t&1&&(d(0,"span",25),p(1,oo,1,0,null,26),h()),t&2){let e=m(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function no(t,r){if(t&1&&(q(0),p(1,to,1,2,"SpinnerIcon",22)(2,lo,2,1,"span",23),W()),t&2){let e=m(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function ro(t,r){if(t&1&&(d(0,"div",18)(1,"div",19),p(2,eo,1,2,"i",20)(3,no,3,2,"ng-container",21),h()()),t&2){let e=m();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&(d(0,"div",27),p(1,ao,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function co(t,r){t&1&&T(0)}function po(t,r){if(t&1&&p(0,co,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ho(t,r){t&1&&p(0,po,1,1,"ng-template",29)}function uo(t,r){t&1&&T(0)}function mo(t,r){if(t&1&&p(0,uo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function go(t,r){t&1&&p(0,mo,1,1,"ng-template",30)}function fo(t,r){t&1&&T(0)}function bo(t,r){if(t&1&&p(0,fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function _o(t,r){t&1&&p(0,bo,1,1,"ng-template",31)}function yo(t,r){t&1&&T(0)}function To(t,r){if(t&1&&p(0,yo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Co(t,r){t&1&&p(0,To,1,1,"ng-template",32)}function wo(t,r){if(t&1){let e=D();d(0,"p-paginator",28),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,ho,1,0,null,21)(2,go,1,0,null,21)(3,_o,1,0,null,21)(4,Co,1,0,null,21),h()}if(t&2){let e,o,i,l=m();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 vo(t,r){t&1&&T(0)}function So(t,r){t&1&&T(0)}function xo(t,r){t&1&&T(0)}function Io(t,r){if(t&1&&(d(0,"div",33)(1,"table",34,1),p(3,vo,1,0,"ng-container",35),d(4,"thead",36),p(5,So,1,0,"ng-container",35),h(),I(6,"tbody",37),d(7,"tfoot",38),p(8,xo,1,0,"ng-container",35),h()()()),t&2){let e,o=m();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",P(10,K,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",P(12,K,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",P(14,K,o.columns))}}function Eo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=m(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",P(4,Yi,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function ko(t,r){if(t&1&&(d(0,"div",39),p(1,Eo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=m();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",te(5,Zi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function zo(t,r){t&1&&T(0)}function Lo(t,r){if(t&1&&p(0,zo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Mo(t,r){t&1&&p(0,Lo,1,1,"ng-template",29)}function Ro(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Ro,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Po(t,r){t&1&&p(0,Do,1,1,"ng-template",30)}function Vo(t,r){t&1&&T(0)}function No(t,r){if(t&1&&p(0,Vo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oo(t,r){t&1&&p(0,No,1,1,"ng-template",31)}function Fo(t,r){t&1&&T(0)}function Ho(t,r){if(t&1&&p(0,Fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ao(t,r){t&1&&p(0,Ho,1,1,"ng-template",32)}function Bo(t,r){if(t&1){let e=D();d(0,"p-paginator",43),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,Mo,1,0,null,21)(2,Po,1,0,null,21)(3,Oo,1,0,null,21)(4,Ao,1,0,null,21),h()}if(t&2){let e,o,i,l=m();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 Ko(t,r){t&1&&T(0)}function $o(t,r){if(t&1&&(d(0,"div",44),p(1,Ko,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Qo(t,r){t&1&&I(0,"div",45,4)}function Uo(t,r){t&1&&I(0,"ArrowDownIcon")}function jo(t,r){}function qo(t,r){t&1&&p(0,jo,0,0,"ng-template")}function Wo(t,r){if(t&1&&(d(0,"span",46,5),p(2,Uo,1,0,"ArrowDownIcon",21)(3,qo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Go(t,r){t&1&&I(0,"ArrowUpIcon")}function Jo(t,r){}function Xo(t,r){t&1&&p(0,Jo,0,0,"ng-template")}function Zo(t,r){if(t&1&&(d(0,"span",47,6),p(2,Go,1,0,"ArrowUpIcon",21)(3,Xo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Yo=["pTreeTableBody",""],el=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),tl=(t,r)=>({$implicit:t,frozen:r});function il(t,r){t&1&&T(0)}function ol(t,r){if(t&1&&(q(0),p(1,il,1,0,"ng-container",2),W()),t&2){let e=m().$implicit,o=m();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ut(2,el,e,e.node,e.node.data,o.columns))}}function ll(t,r){if(t&1&&p(0,ol,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function nl(t,r){t&1&&T(0)}function rl(t,r){if(t&1&&(q(0),p(1,nl,1,0,"ng-container",2),W()),t&2){let e=m();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",te(2,tl,e.columns,e.frozen))}}var al=["scrollHeader"],sl=["scrollHeaderBox"],cl=["scrollBody"],dl=["scrollTable"],pl=["loadingTable"],hl=["scrollFooter"],ul=["scrollFooterBox"],ml=["scrollableAligner"],gl=["scroller"],fl=["ttScrollableView",""],bl=t=>({height:t}),ai=(t,r)=>({$implicit:t,options:r}),_l=t=>({options:t}),yl=(t,r)=>({"max-height":t,"overflow-y":r}),Tl=()=>({});function Cl(t,r){t&1&&T(0)}function wl(t,r){t&1&&T(0)}function vl(t,r){t&1&&T(0)}function Sl(t,r){if(t&1&&p(0,vl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;m(2);let i=Y(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",te(2,ai,e,o))}}function xl(t,r){t&1&&T(0)}function Il(t,r){if(t&1&&p(0,xl,1,0,"ng-container",14),t&2){let e=r.options,o=m(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",P(2,_l,e))}}function El(t,r){t&1&&(q(0),p(1,Il,1,4,"ng-template",null,5,x),W())}function kl(t,r){if(t&1){let e=D();d(0,"p-scroller",19,3),k("onLazyLoad",function(i){L(e);let l=m();return M(l.tt.onLazyItemLoad(i))}),p(2,Sl,1,5,"ng-template",null,4,x)(4,El,3,0,"ng-container",17),h()}if(t&2){let e=m();Z(P(8,bl,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 zl(t,r){t&1&&T(0)}function Ll(t,r){if(t&1&&(q(0),d(1,"div",20,6),p(3,zl,1,0,"ng-container",14),h(),W()),t&2){let e=m(),o=Y(11);s(),a("ngStyle",te(3,yl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",te(7,ai,e.serializedValue,ee(6,Tl)))}}function Ml(t,r){t&1&&T(0)}function Rl(t,r){t&1&&I(0,"div",24,8)}function Dl(t,r){if(t&1&&(d(0,"table",21,7),p(2,Ml,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Rl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=m();Z(o.contentStyle),j(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",P(13,K,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 Pl(t,r){t&1&&T(0)}function Vl(t,r){t&1&&T(0)}function Nl(t,r){if(t&1&&(d(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Pl,1,0,"ng-container",14),d(6,"tfoot",28),p(7,Vl,1,0,"ng-container",14),h()()()()),t&2){let e=m();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",P(6,K,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",P(8,K,e.columns))}}function Ol(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&ne("aria-hidden",!0)}function Fl(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&ne("aria-hidden",!0)}function Hl(t,r){if(t&1&&(q(0),p(1,Ol,1,1,"ChevronDownIcon",1)(2,Fl,1,1,"ChevronRightIcon",1),W()),t&2){let e=m();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Al(t,r){}function Bl(t,r){t&1&&p(0,Al,0,0,"ng-template")}var Kl=({dt:t})=>`
|
|
1
|
+
import{a as Yt,b as ei,c as ti,d as ii,e as oi,f as li}from"./chunk-SY6XFKYM.js";import{b as Zt,c as gi,d as ni}from"./chunk-RN2UFUFZ.js";import{a as kt,b as zt}from"./chunk-BV4GM72W.js";import{a as Xt}from"./chunk-6Y7LC5K4.js";import{a as qe}from"./chunk-XKCLERWG.js";import{a as Ot}from"./chunk-H57SDRPH.js";import{b as Be,c as Ke,d as Rt,e as Dt,f as Pt,g as Gt,h as Jt}from"./chunk-GDX5XEV3.js";import"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import{a as Qe}from"./chunk-ZTEDQLOG.js";import{a as $e}from"./chunk-EDGADVEY.js";import{a as Vt}from"./chunk-JTDJJORR.js";import{c as je}from"./chunk-LZUGPBFD.js";import{a as Lt}from"./chunk-2KERKGCG.js";import{a as qt,b as Wt}from"./chunk-4CDAAU6Z.js";import{e as Kt,f as $t,g as Ut,h as jt}from"./chunk-XZQ3IYQ6.js";import{c as Qt}from"./chunk-X22YKT5B.js";import{a as At,b as Bt}from"./chunk-JYCUE5HV.js";import"./chunk-JMEBBWX4.js";import{i as Mt}from"./chunk-FUZFAJGJ.js";import{a as He,b as Ae,i as Ue,p as Nt,w as Ft,x as Ht}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{B as De,Ca as It,Ga as be,L as wt,La as _e,M as Pe,Ma as Fe,P as ie,Q as z,R as fe,S as Ve,Ua as Et,W as vt,X as St,Y as se,_ as ce,na as Ne,qa as xt,ra as V,sa as Oe,w as Ct,y as Me,z as Re}from"./chunk-G5S5AZA7.js";import{d as Tt}from"./chunk-Z45NTTES.js";import"./chunk-4AOHMAEQ.js";import"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{h as re,j as yt,k as G,l as Le,m as ae,r as me,s as ge}from"./chunk-OKCHQM5Q.js";import{Aa as le,Ab as xe,Ac as P,Bc as te,Cb as p,Cc as ht,Dc as ut,Ea as Se,Fc as mt,Ga as X,I as Ye,Jb as ne,Jc as gt,Ka as it,Kb as a,Lb as at,Lc as ft,Mc as x,Nb as Z,Ob as j,Pb as Ie,Qb as Ee,Qc as bt,Sb as ke,Tb as ze,Ub as d,Vb as h,Vc as w,Wb as I,Wc as Q,Xb as q,Yb as W,Z as Ce,Zb as T,Zc as _t,_b as D,ba as we,ca as et,dc as k,eb as ot,ec as m,g as J,gb as s,ha as B,jc as _,kc as E,lb as lt,lc as g,m as Ze,mb as N,mc as f,oa as tt,pa as L,pc as Y,qa as M,qc as b,rc as A,sc as ue,ta as ve,vc as st,wb as U,wc as ct,xb as nt,xc as dt,yb as rt,yc as pt,za as S,zc as ee}from"./chunk-JP6RBSB3.js";import{a as $,b as he,e as mi}from"./chunk-YQFG5XE2.js";var _i=["colgroup"],yi=["caption"],Ti=["header"],Ci=["body"],wi=["footer"],vi=["summary"],Si=["emptymessage"],xi=["paginatorleft"],Ii=["paginatorright"],Ei=["paginatordropdownitem"],ki=["frozenheader"],zi=["frozenbody"],Li=["frozenfooter"],Mi=["frozencolgroup"],Ri=["loadingicon"],Di=["reorderindicatorupicon"],Pi=["reorderindicatordownicon"],Vi=["sorticon"],Ni=["checkboxicon"],Oi=["headercheckboxicon"],Fi=["togglericon"],Hi=["paginatorfirstpagelinkicon"],Ai=["paginatorlastpagelinkicon"],Bi=["paginatorpreviouspagelinkicon"],Ki=["paginatornextpagelinkicon"],$i=["loader"],Qi=["container"],Ui=["resizeHelper"],ji=["reorderIndicatorUp"],qi=["reorderIndicatorDown"],Wi=["table"],Gi=["scrollableView"],Ji=["scrollableFrozenView"],Xi=(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}),K=t=>({$implicit:t}),Zi=(t,r)=>({left:t,width:r}),Yi=t=>({width:t});function eo(t,r){if(t&1&&I(0,"i"),t&2){let e=m(2);j("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function to(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function io(t,r){}function oo(t,r){t&1&&p(0,io,0,0,"ng-template")}function lo(t,r){if(t&1&&(d(0,"span",25),p(1,oo,1,0,null,26),h()),t&2){let e=m(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function no(t,r){if(t&1&&(q(0),p(1,to,1,2,"SpinnerIcon",22)(2,lo,2,1,"span",23),W()),t&2){let e=m(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function ro(t,r){if(t&1&&(d(0,"div",18)(1,"div",19),p(2,eo,1,2,"i",20)(3,no,3,2,"ng-container",21),h()()),t&2){let e=m();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&(d(0,"div",27),p(1,ao,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function co(t,r){t&1&&T(0)}function po(t,r){if(t&1&&p(0,co,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ho(t,r){t&1&&p(0,po,1,1,"ng-template",29)}function uo(t,r){t&1&&T(0)}function mo(t,r){if(t&1&&p(0,uo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function go(t,r){t&1&&p(0,mo,1,1,"ng-template",30)}function fo(t,r){t&1&&T(0)}function bo(t,r){if(t&1&&p(0,fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function _o(t,r){t&1&&p(0,bo,1,1,"ng-template",31)}function yo(t,r){t&1&&T(0)}function To(t,r){if(t&1&&p(0,yo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Co(t,r){t&1&&p(0,To,1,1,"ng-template",32)}function wo(t,r){if(t&1){let e=D();d(0,"p-paginator",28),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,ho,1,0,null,21)(2,go,1,0,null,21)(3,_o,1,0,null,21)(4,Co,1,0,null,21),h()}if(t&2){let e,o,i,l=m();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 vo(t,r){t&1&&T(0)}function So(t,r){t&1&&T(0)}function xo(t,r){t&1&&T(0)}function Io(t,r){if(t&1&&(d(0,"div",33)(1,"table",34,1),p(3,vo,1,0,"ng-container",35),d(4,"thead",36),p(5,So,1,0,"ng-container",35),h(),I(6,"tbody",37),d(7,"tfoot",38),p(8,xo,1,0,"ng-container",35),h()()()),t&2){let e,o=m();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",P(10,K,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",P(12,K,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",P(14,K,o.columns))}}function Eo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=m(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",P(4,Yi,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function ko(t,r){if(t&1&&(d(0,"div",39),p(1,Eo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=m();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",te(5,Zi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function zo(t,r){t&1&&T(0)}function Lo(t,r){if(t&1&&p(0,zo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Mo(t,r){t&1&&p(0,Lo,1,1,"ng-template",29)}function Ro(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Ro,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Po(t,r){t&1&&p(0,Do,1,1,"ng-template",30)}function Vo(t,r){t&1&&T(0)}function No(t,r){if(t&1&&p(0,Vo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oo(t,r){t&1&&p(0,No,1,1,"ng-template",31)}function Fo(t,r){t&1&&T(0)}function Ho(t,r){if(t&1&&p(0,Fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ao(t,r){t&1&&p(0,Ho,1,1,"ng-template",32)}function Bo(t,r){if(t&1){let e=D();d(0,"p-paginator",43),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,Mo,1,0,null,21)(2,Po,1,0,null,21)(3,Oo,1,0,null,21)(4,Ao,1,0,null,21),h()}if(t&2){let e,o,i,l=m();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 Ko(t,r){t&1&&T(0)}function $o(t,r){if(t&1&&(d(0,"div",44),p(1,Ko,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Qo(t,r){t&1&&I(0,"div",45,4)}function Uo(t,r){t&1&&I(0,"ArrowDownIcon")}function jo(t,r){}function qo(t,r){t&1&&p(0,jo,0,0,"ng-template")}function Wo(t,r){if(t&1&&(d(0,"span",46,5),p(2,Uo,1,0,"ArrowDownIcon",21)(3,qo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Go(t,r){t&1&&I(0,"ArrowUpIcon")}function Jo(t,r){}function Xo(t,r){t&1&&p(0,Jo,0,0,"ng-template")}function Zo(t,r){if(t&1&&(d(0,"span",47,6),p(2,Go,1,0,"ArrowUpIcon",21)(3,Xo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Yo=["pTreeTableBody",""],el=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),tl=(t,r)=>({$implicit:t,frozen:r});function il(t,r){t&1&&T(0)}function ol(t,r){if(t&1&&(q(0),p(1,il,1,0,"ng-container",2),W()),t&2){let e=m().$implicit,o=m();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ut(2,el,e,e.node,e.node.data,o.columns))}}function ll(t,r){if(t&1&&p(0,ol,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function nl(t,r){t&1&&T(0)}function rl(t,r){if(t&1&&(q(0),p(1,nl,1,0,"ng-container",2),W()),t&2){let e=m();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",te(2,tl,e.columns,e.frozen))}}var al=["scrollHeader"],sl=["scrollHeaderBox"],cl=["scrollBody"],dl=["scrollTable"],pl=["loadingTable"],hl=["scrollFooter"],ul=["scrollFooterBox"],ml=["scrollableAligner"],gl=["scroller"],fl=["ttScrollableView",""],bl=t=>({height:t}),ai=(t,r)=>({$implicit:t,options:r}),_l=t=>({options:t}),yl=(t,r)=>({"max-height":t,"overflow-y":r}),Tl=()=>({});function Cl(t,r){t&1&&T(0)}function wl(t,r){t&1&&T(0)}function vl(t,r){t&1&&T(0)}function Sl(t,r){if(t&1&&p(0,vl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;m(2);let i=Y(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",te(2,ai,e,o))}}function xl(t,r){t&1&&T(0)}function Il(t,r){if(t&1&&p(0,xl,1,0,"ng-container",14),t&2){let e=r.options,o=m(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",P(2,_l,e))}}function El(t,r){t&1&&(q(0),p(1,Il,1,4,"ng-template",null,5,x),W())}function kl(t,r){if(t&1){let e=D();d(0,"p-scroller",19,3),k("onLazyLoad",function(i){L(e);let l=m();return M(l.tt.onLazyItemLoad(i))}),p(2,Sl,1,5,"ng-template",null,4,x)(4,El,3,0,"ng-container",17),h()}if(t&2){let e=m();Z(P(8,bl,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 zl(t,r){t&1&&T(0)}function Ll(t,r){if(t&1&&(q(0),d(1,"div",20,6),p(3,zl,1,0,"ng-container",14),h(),W()),t&2){let e=m(),o=Y(11);s(),a("ngStyle",te(3,yl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",te(7,ai,e.serializedValue,ee(6,Tl)))}}function Ml(t,r){t&1&&T(0)}function Rl(t,r){t&1&&I(0,"div",24,8)}function Dl(t,r){if(t&1&&(d(0,"table",21,7),p(2,Ml,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Rl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=m();Z(o.contentStyle),j(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",P(13,K,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 Pl(t,r){t&1&&T(0)}function Vl(t,r){t&1&&T(0)}function Nl(t,r){if(t&1&&(d(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Pl,1,0,"ng-container",14),d(6,"tfoot",28),p(7,Vl,1,0,"ng-container",14),h()()()()),t&2){let e=m();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",P(6,K,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",P(8,K,e.columns))}}function Ol(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&ne("aria-hidden",!0)}function Fl(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&ne("aria-hidden",!0)}function Hl(t,r){if(t&1&&(q(0),p(1,Ol,1,1,"ChevronDownIcon",1)(2,Fl,1,1,"ChevronRightIcon",1),W()),t&2){let e=m();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Al(t,r){}function Bl(t,r){t&1&&p(0,Al,0,0,"ng-template")}var Kl=({dt:t})=>`
|
|
2
2
|
/* For PrimeNG */
|
|
3
3
|
.p-treetable {
|
|
4
4
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i,b as T}from"./chunk-C2GO6SPF.js";import{d as s}from"./chunk-Z45NTTES.js";import{a as l,c as m}from"./chunk-
|
|
1
|
+
import{a as i,b as T}from"./chunk-C2GO6SPF.js";import{d as s}from"./chunk-Z45NTTES.js";import{a as l,c as m}from"./chunk-4AOHMAEQ.js";import{Z as a,ba as c,ha as r}from"./chunk-JP6RBSB3.js";var h=(()=>{class o{constructor(){this.httpService=r(l),this.router=r(s),this.intercomService=r(m),this.tokenService=r(T),this.autoLogout()}login(e){return this.httpService.post("","api/Authentication/login",e).pipe(a(t=>{let n=e.SubDomain;localStorage.setItem("AUTH_TOKEN",t.access_token),localStorage.setItem("AUTH_POS_TOKEN",t.pos.access_token),localStorage.setItem("AUTH_TOKEN_TYPE",t.token_type),localStorage.setItem("AUTH_EXPIRES_AT",t.expiredAt),localStorage.setItem("AUTH_DOMAIN",n.substring(n.indexOf("."))),localStorage.setItem("AUTH_SUB_DOMAIN",e.SubDomain.split(".")[0]),localStorage.setItem("AUTH_USERNAME",e.Username),this.storeIntercom(t),this.storeTenantId(t.pos.access_token),this.storeRoles(t.access_token),this.tokenService.setToken(t.access_token),this.autoLogout()}))}storeIntercom(e){let t=e.intercomWidget?JSON.stringify(e.intercomWidget):null;t&&localStorage.setItem("INTERCOM",t)}isAuthenticated(){return!!localStorage.getItem("AUTH_TOKEN")}getToken(){return localStorage.getItem("AUTH_TOKEN")}getTokenType(){return localStorage.getItem("AUTH_TOKEN_TYPE")}isTokenExpired(){let e=localStorage.getItem("AUTH_EXPIRES_AT");return e?new Date(e).getTime()<Date.now():!0}autoLogout(){clearTimeout(this.logoutTimer);let e=localStorage.getItem("AUTH_EXPIRES_AT");if(!e)return;let t=new Date(e).getTime()-Date.now();t>0?this.logoutTimer=setTimeout(()=>this.logout(),t):this.logout()}getTenantExternalURL(){let e=localStorage.getItem("AUTH_SUB_DOMAIN")||"",t=localStorage.getItem("AUTH_DOMAIN")||"";return e&&t?`https://${e}${t}`:""}getTanantToken(){return localStorage.getItem("AUTH_POS_TOKEN")}logout(){this.intercomService.shutdown(),localStorage.removeItem("AUTH_TOKEN"),localStorage.removeItem("AUTH_TOKEN_TYPE"),localStorage.removeItem("AUTH_EXPIRES_AT"),localStorage.removeItem("INTERCOM"),clearTimeout(this.logoutTimer),this.router.navigate([""])}getFullDomain(){let e=localStorage.getItem("AUTH_SUB_DOMAIN"),t=localStorage.getItem("AUTH_DOMAIN");return!e||!t?(console.error("Subdomain or domain is missing in local storage."),null):`${e}${t}`}storeTenantId(e){let t=i(e);console.log("Decoded Token:",t),t&&(localStorage.setItem("AC_TENANT_BRAND",t.Brand),localStorage.setItem("AC_TENANT_LID",t.LID))}storeRoles(e){let t=i(e);console.log("Decoded Token:",t),t&&localStorage.setItem("AUTH_ROLES",JSON.stringify(t["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]))}checkAuthKeysExists(){return["AC_TENANT_BRAND","AC_TENANT_LID","AUTH_DOMAIN","AUTH_EXPIRES_AT","AUTH_POS_TOKEN","AUTH_SUB_DOMAIN","AUTH_TOKEN","AUTH_TOKEN_TYPE","AUTH_USERNAME","AUTH_ROLES"].every(t=>!!localStorage.getItem(t))}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Qe,b as Xe,c as Ye,d as Ze,e as et,f as tt}from"./chunk-3VJJTR55.js";import{a as ze,b as Ue,c as qe,d as We}from"./chunk-XAWSZFE3.js";import{a as He,b as Ke}from"./chunk-YYDAQ7AW.js";import{a as $e}from"./chunk-YPBGL37O.js";import{b as Le}from"./chunk-NCEC5HNX.js";import{a as Je,b as je}from"./chunk-Q23KXB3T.js";import"./chunk-DHW7UHFT.js";import{a as Be,b as Oe,d as Ve,k as ke}from"./chunk-SVXDMOLP.js";import{a as Ne,b as Me}from"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import{a as Re}from"./chunk-XKCLERWG.js";import{a as K,b as Q}from"./chunk-H57SDRPH.js";import"./chunk-GDX5XEV3.js";import{a as Ge,b as Pe}from"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import{a as De,b as we}from"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{b as X}from"./chunk-4CDAAU6Z.js";import{h as I}from"./chunk-5HGUQMKI.js";import"./chunk-X22YKT5B.js";import{a as L,b as $}from"./chunk-JYCUE5HV.js";import"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{n as H,o as E,w as J,x as j}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{Ha as R,La as Te,b as G,c as le,e as A,f as P,j as Ee,l as B,m as q,n as Ie,o as O,u as V,w as W,x as k}from"./chunk-G5S5AZA7.js";import{b as xe,e as Se,l as ye}from"./chunk-Z45NTTES.js";import{a as Ae}from"./chunk-IPXNFGXP.js";import{a as Fe}from"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{h as be,k as Ce,q as he,r as F}from"./chunk-OKCHQM5Q.js";import{Ac as oe,Cb as g,Ga as z,Jc as re,Kb as p,Kc as ae,L as ue,Mc as f,Nb as fe,Qb as T,Sb as N,Tb as M,Ub as i,Vb as n,Wb as c,Y as se,Z as D,_b as C,ba as de,dc as h,ec as u,g as pe,gb as l,ha as s,mb as ne,pa as v,qa as _,qc as r,rc as y,s as ce,sc as ie,vc as ge,wb as S,wc as ve,xc as _e,yc as U,zc as w}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var b=(()=>{class t{#e=s(Ae);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var st=()=>({height:"calc(100vh - 100px)"});function dt(t,m){if(t&1){let e=C();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),h("click",function(){v(e);let a=u();return _(a.updateAccountingIntegration())}),n()()}}function ft(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),y(e)}}function gt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",42),i(2,"label",43),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),y(e.value)}}function vt(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",44),i(3,"label",43),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),y(e.value)}}function _t(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",45),i(3,"label",43),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),y(e.value)}}function bt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),N(4,ft,2,2,"p-tab",8,T),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),N(39,gt,4,4,"div",25,T),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),N(92,vt,5,4,"div",40,T),n()()()(),i(94,"div")(95,"label",41),r(96,"Configure Report Access Control in COA"),n(),i(97,"div",12)(98,"div",39)(99,"div",12),N(100,_t,5,4,"div",40,T),n()()()()()()()()()()()()),t&2){let e,o,a,d,x=u();fe(w(8,st)),l(2),p("value",0)("formGroup",x.form),l(2),M(x.tabs()),l(3),p("value",0),l(26),p("options",(e=x.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=x.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=x.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal),l(8),M((d=x.accountingIntegration())==null||d.options==null?null:d.options.entityAccess)}}var it=(()=>{class t{constructor(){this.accountingSetupService=s(b),this.fb=s(V).nonNullable,this.tabs=z(["Numbering","Journal","Report"]),this.accountingIntegration=z(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(D(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["for","accountingEntityAccess",1,"fs-4","mb-2"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,dt,4,0,"ng-template",null,0,f)(3,bt,102,9,"ng-template",null,1,f),n())},dependencies:[F,tt,et,Ze,Ye,Qe,Xe,I,X,Oe,Be,k,A,P,B,O,q,E,Pe,Ge,je,Je,ye,Se,j,J,we,De,Q,K],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var xt=()=>[],ot=()=>({});function St(t,m){if(t&1){let e=C();i(0,"div")(1,"p-button",6),h("onClick",function(){v(e);let a=u();return _(a.submitForm())}),n()()}}function yt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Date"),n(),c(3,"p-datePicker",14),n())}function Ft(t,m){t&1&&(i(0,"tr")(1,"th",20),r(2,"Account Name"),n(),i(3,"th",21),r(4,"Debit"),n(),i(5,"th",21),r(6,"Credit"),n()())}function At(t,m){if(t&1&&(i(0,"tr",10)(1,"td",20),r(2),n(),i(3,"td"),c(4,"input",22),n(),i(5,"td"),c(6,"input",23),n()()),t&2){let e,o=m.$implicit,a=m.rowIndex,d=u(4);p("formGroupName",a),l(2),ie(" ",(e=d.asFormGroup(o).get("accountName"))==null?null:e.value," "),l(2),p("autoNumeric",w(4,ot)),l(2),p("autoNumeric",w(5,ot))}}function Et(t,m){if(t&1&&(i(0,"div",10)(1,"h4",15),r(2),n(),i(3,"div",16)(4,"p-table",17),g(5,Ft,7,0,"ng-template",18)(6,At,7,6,"ng-template",19),n()()()),t&2){let e=m.$implicit,o=m.$index,a=u(3);p("formGroupName",o),l(2),ie(" ",e.get("name").value," "),l(2),p("value",a.getItemsArray(a.asFormGroup(e)).controls)}}function It(t,m){if(t&1&&(i(0,"tr")(1,"td")(2,"p",24),r(3,"Total"),n()(),i(4,"td",25)(5,"p",24),r(6),re(7,"number"),n()(),i(8,"td",25)(9,"p",24),r(10),re(11,"number"),n()()()),t&2){let e=u(3);l(6),y(ae(7,2,e.subtotalDebit)),l(4),y(ae(11,4,e.subtotalCredit))}}function Tt(t,m){if(t&1&&(i(0,"p-panel",8),g(1,yt,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",9),N(6,Et,7,3,"div",10,T),n()(),i(8,"p-table",11),g(9,It,12,6,"ng-template",null,3,f),n()()),t&2){let e=u(2);p("formGroup",e.formGroups),l(6),M(e.formsArray.controls),l(2),p("value",w(2,xt))}}function Nt(t,m){if(t&1&&g(0,Tt,11,3,"p-panel",7),t&2){let e=u();p("ngIf",e.formGroups)}}var at=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=s(V),this.accSetupService=s(b),this.dayjsService=s(Le),this.date=new Date,this.routes=s(xe)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(ue(300),se(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(ce(e=>e.data),Re("response"),D(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),d=a.controls.reduce((Z,ee)=>{let te=ee.get("debitAmount").value||0;return Z+te},0),x=a.controls.reduce((Z,ee)=>{let te=ee.get("creditAmount").value||0;return Z+te},0);this.subtotalDebit+=d,this.subtotalCredit+=x})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,d])=>(a==="date"?o[a]=d instanceof Date?this.dayjsService.format(d):d:a==="forms"?o.form=d:o[a]=d,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-acc-opening-balance-form"]],features:[U([R])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["footer",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[3,"value"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],["formControlName","debitAmount",1,"fs-3","form-control",3,"autoNumeric"],["formControlName","creditAmount",1,"fs-3","form-control",3,"autoNumeric"],[1,"fw-semibold","fs-4"],[1,"text-end",2,"width","200px"]],template:function(o,a){o&1&&(i(0,"app-main-panel",4),g(1,St,2,0,"ng-template",null,0,f)(3,Nt,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",5)),o&2&&p("scrollable",!0)},dependencies:[I,X,Te,F,Ce,he,Me,Ne,ke,Ve,Q,K,W,G,A,P,E,qe,j,J,$,L,$e,k,B,O,q,Ie,Ke,He],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var lt=t=>({"ng-invalid ng-dirty":t});function Dt(t,m){if(t&1){let e=C();i(0,"p-button",4),h("onClick",function(){v(e);let a=u();return _(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),h("onClick",function(){v(e);let a=u();return _(a.saveCredentials())}),r(3,"Update"),n()}}function wt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function Gt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,wt,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=u();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",oe(3,lt,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",oe(5,lt,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var mt=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=s(b)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(D(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[le.required]],clientSecret:["",[le.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(ne(V),ne(R))}}static{this.\u0275cmp=S({type:t,selectors:[["app-api-credential"]],features:[U([R])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Dt,4,0,"ng-template",null,0,f)(3,Gt,15,7,"ng-template",null,1,f),n())},dependencies:[F,be,k,G,A,P,B,O,E,H,$,L,I,j,J,We],encapsulation:2})}}return t})();function Pt(t,m){if(t&1){let e=C();i(0,"button",4),h("click",function(){v(e);let a=u();return _(a.onFormatJournal())}),r(1," Format "),n()}}function Bt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function Ot(t,m){if(t&1){let e=C();i(0,"div",5)(1,"p-panel"),g(2,Bt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),_e("ngModelChange",function(a){v(e);let d=u();return ve(d.subdomain,a)||(d.subdomain=a),_(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();l(7),ge("ngModel",e.subdomain)}}var pt=(()=>{class t{constructor(){this.setupService=s(b),this.subdomain=z(""),this.toastrService=s(Fe)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Pt,2,0,"ng-template",null,0,f)(3,Ot,12,1,"ng-template",null,1,f),n())},dependencies:[F,W,G,A,Ee,E,H,I,$,L,Ue,ze],encapsulation:2})}}return t})();var ct=()=>s(b).fetchOpeningBalanceFormConfiguration();var bi=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:it},{path:"opening-balance-form",component:at,resolve:{data:ct}},{path:"api-crendetial",component:mt},{path:"format-journal",component:pt},{path:"closing-entries",loadComponent:()=>import("./chunk-TP2ORO5N.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-SMM7ZNGR.js").then(t=>t.ClosingFormComponent)}]}];export{bi as ACCOUNTING_SETUP_ROUTES};
|
|
1
|
+
import{a as Qe,b as Xe,c as Ye,d as Ze,e as et,f as tt}from"./chunk-3VJJTR55.js";import{a as ze,b as Ue,c as qe,d as We}from"./chunk-XAWSZFE3.js";import{a as He,b as Ke}from"./chunk-YYDAQ7AW.js";import{a as $e}from"./chunk-YPBGL37O.js";import{b as Le}from"./chunk-SNKHWMQW.js";import{a as Je,b as je}from"./chunk-Q23KXB3T.js";import"./chunk-DHW7UHFT.js";import{a as Be,b as Oe,d as Ve,k as ke}from"./chunk-SVXDMOLP.js";import{a as Ne,b as Me}from"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import{a as Re}from"./chunk-XKCLERWG.js";import{a as K,b as Q}from"./chunk-H57SDRPH.js";import"./chunk-GDX5XEV3.js";import{a as Ge,b as Pe}from"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import{a as De,b as we}from"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{b as X}from"./chunk-4CDAAU6Z.js";import{h as I}from"./chunk-XZQ3IYQ6.js";import"./chunk-X22YKT5B.js";import{a as L,b as $}from"./chunk-JYCUE5HV.js";import"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{n as H,o as E,w as J,x as j}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{Ha as R,La as Te,b as G,c as le,e as A,f as P,j as Ee,l as B,m as q,n as Ie,o as O,u as V,w as W,x as k}from"./chunk-G5S5AZA7.js";import{b as xe,e as Se,l as ye}from"./chunk-Z45NTTES.js";import{a as Ae}from"./chunk-4AOHMAEQ.js";import{a as Fe}from"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{h as be,k as Ce,q as he,r as F}from"./chunk-OKCHQM5Q.js";import{Ac as oe,Cb as g,Ga as z,Jc as re,Kb as p,Kc as ae,L as ue,Mc as f,Nb as fe,Qb as T,Sb as N,Tb as M,Ub as i,Vb as n,Wb as c,Y as se,Z as D,_b as C,ba as de,dc as h,ec as u,g as pe,gb as l,ha as s,mb as ne,pa as v,qa as _,qc as r,rc as y,s as ce,sc as ie,vc as ge,wb as S,wc as ve,xc as _e,yc as U,zc as w}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var b=(()=>{class t{#e=s(Ae);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var st=()=>({height:"calc(100vh - 100px)"});function dt(t,m){if(t&1){let e=C();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),h("click",function(){v(e);let a=u();return _(a.updateAccountingIntegration())}),n()()}}function ft(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),y(e)}}function gt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",42),i(2,"label",43),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),y(e.value)}}function vt(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",44),i(3,"label",43),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),y(e.value)}}function _t(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",45),i(3,"label",43),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),y(e.value)}}function bt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),N(4,ft,2,2,"p-tab",8,T),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),N(39,gt,4,4,"div",25,T),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),N(92,vt,5,4,"div",40,T),n()()()(),i(94,"div")(95,"label",41),r(96,"Configure Report Access Control in COA"),n(),i(97,"div",12)(98,"div",39)(99,"div",12),N(100,_t,5,4,"div",40,T),n()()()()()()()()()()()()),t&2){let e,o,a,d,x=u();fe(w(8,st)),l(2),p("value",0)("formGroup",x.form),l(2),M(x.tabs()),l(3),p("value",0),l(26),p("options",(e=x.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=x.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=x.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal),l(8),M((d=x.accountingIntegration())==null||d.options==null?null:d.options.entityAccess)}}var it=(()=>{class t{constructor(){this.accountingSetupService=s(b),this.fb=s(V).nonNullable,this.tabs=z(["Numbering","Journal","Report"]),this.accountingIntegration=z(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(D(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["for","accountingEntityAccess",1,"fs-4","mb-2"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,dt,4,0,"ng-template",null,0,f)(3,bt,102,9,"ng-template",null,1,f),n())},dependencies:[F,tt,et,Ze,Ye,Qe,Xe,I,X,Oe,Be,k,A,P,B,O,q,E,Pe,Ge,je,Je,ye,Se,j,J,we,De,Q,K],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var xt=()=>[],ot=()=>({});function St(t,m){if(t&1){let e=C();i(0,"div")(1,"p-button",6),h("onClick",function(){v(e);let a=u();return _(a.submitForm())}),n()()}}function yt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Date"),n(),c(3,"p-datePicker",14),n())}function Ft(t,m){t&1&&(i(0,"tr")(1,"th",20),r(2,"Account Name"),n(),i(3,"th",21),r(4,"Debit"),n(),i(5,"th",21),r(6,"Credit"),n()())}function At(t,m){if(t&1&&(i(0,"tr",10)(1,"td",20),r(2),n(),i(3,"td"),c(4,"input",22),n(),i(5,"td"),c(6,"input",23),n()()),t&2){let e,o=m.$implicit,a=m.rowIndex,d=u(4);p("formGroupName",a),l(2),ie(" ",(e=d.asFormGroup(o).get("accountName"))==null?null:e.value," "),l(2),p("autoNumeric",w(4,ot)),l(2),p("autoNumeric",w(5,ot))}}function Et(t,m){if(t&1&&(i(0,"div",10)(1,"h4",15),r(2),n(),i(3,"div",16)(4,"p-table",17),g(5,Ft,7,0,"ng-template",18)(6,At,7,6,"ng-template",19),n()()()),t&2){let e=m.$implicit,o=m.$index,a=u(3);p("formGroupName",o),l(2),ie(" ",e.get("name").value," "),l(2),p("value",a.getItemsArray(a.asFormGroup(e)).controls)}}function It(t,m){if(t&1&&(i(0,"tr")(1,"td")(2,"p",24),r(3,"Total"),n()(),i(4,"td",25)(5,"p",24),r(6),re(7,"number"),n()(),i(8,"td",25)(9,"p",24),r(10),re(11,"number"),n()()()),t&2){let e=u(3);l(6),y(ae(7,2,e.subtotalDebit)),l(4),y(ae(11,4,e.subtotalCredit))}}function Tt(t,m){if(t&1&&(i(0,"p-panel",8),g(1,yt,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",9),N(6,Et,7,3,"div",10,T),n()(),i(8,"p-table",11),g(9,It,12,6,"ng-template",null,3,f),n()()),t&2){let e=u(2);p("formGroup",e.formGroups),l(6),M(e.formsArray.controls),l(2),p("value",w(2,xt))}}function Nt(t,m){if(t&1&&g(0,Tt,11,3,"p-panel",7),t&2){let e=u();p("ngIf",e.formGroups)}}var at=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=s(V),this.accSetupService=s(b),this.dayjsService=s(Le),this.date=new Date,this.routes=s(xe)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(ue(300),se(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(ce(e=>e.data),Re("response"),D(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),d=a.controls.reduce((Z,ee)=>{let te=ee.get("debitAmount").value||0;return Z+te},0),x=a.controls.reduce((Z,ee)=>{let te=ee.get("creditAmount").value||0;return Z+te},0);this.subtotalDebit+=d,this.subtotalCredit+=x})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,d])=>(a==="date"?o[a]=d instanceof Date?this.dayjsService.format(d):d:a==="forms"?o.form=d:o[a]=d,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-acc-opening-balance-form"]],features:[U([R])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["footer",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[3,"value"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],["formControlName","debitAmount",1,"fs-3","form-control",3,"autoNumeric"],["formControlName","creditAmount",1,"fs-3","form-control",3,"autoNumeric"],[1,"fw-semibold","fs-4"],[1,"text-end",2,"width","200px"]],template:function(o,a){o&1&&(i(0,"app-main-panel",4),g(1,St,2,0,"ng-template",null,0,f)(3,Nt,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",5)),o&2&&p("scrollable",!0)},dependencies:[I,X,Te,F,Ce,he,Me,Ne,ke,Ve,Q,K,W,G,A,P,E,qe,j,J,$,L,$e,k,B,O,q,Ie,Ke,He],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var lt=t=>({"ng-invalid ng-dirty":t});function Dt(t,m){if(t&1){let e=C();i(0,"p-button",4),h("onClick",function(){v(e);let a=u();return _(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),h("onClick",function(){v(e);let a=u();return _(a.saveCredentials())}),r(3,"Update"),n()}}function wt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function Gt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,wt,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=u();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",oe(3,lt,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",oe(5,lt,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var mt=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=s(b)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(D(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[le.required]],clientSecret:["",[le.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(ne(V),ne(R))}}static{this.\u0275cmp=S({type:t,selectors:[["app-api-credential"]],features:[U([R])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Dt,4,0,"ng-template",null,0,f)(3,Gt,15,7,"ng-template",null,1,f),n())},dependencies:[F,be,k,G,A,P,B,O,E,H,$,L,I,j,J,We],encapsulation:2})}}return t})();function Pt(t,m){if(t&1){let e=C();i(0,"button",4),h("click",function(){v(e);let a=u();return _(a.onFormatJournal())}),r(1," Format "),n()}}function Bt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function Ot(t,m){if(t&1){let e=C();i(0,"div",5)(1,"p-panel"),g(2,Bt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),_e("ngModelChange",function(a){v(e);let d=u();return ve(d.subdomain,a)||(d.subdomain=a),_(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();l(7),ge("ngModel",e.subdomain)}}var pt=(()=>{class t{constructor(){this.setupService=s(b),this.subdomain=z(""),this.toastrService=s(Fe)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Pt,2,0,"ng-template",null,0,f)(3,Ot,12,1,"ng-template",null,1,f),n())},dependencies:[F,W,G,A,Ee,E,H,I,$,L,Ue,ze],encapsulation:2})}}return t})();var ct=()=>s(b).fetchOpeningBalanceFormConfiguration();var bi=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:it},{path:"opening-balance-form",component:at,resolve:{data:ct}},{path:"api-crendetial",component:mt},{path:"format-journal",component:pt},{path:"closing-entries",loadComponent:()=>import("./chunk-7SXGBB2J.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-MQPAWXQR.js").then(t=>t.ClosingFormComponent)}]}];export{bi as ACCOUNTING_SETUP_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ue}from"./chunk-52J7F6HR.js";import{b as be}from"./chunk-Q23KXB3T.js";import"./chunk-C2GO6SPF.js";import{a as q,b as Q}from"./chunk-O4QM64EH.js";import{d as W,i as xe,j as he,k as X}from"./chunk-SVXDMOLP.js";import"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import{a as Ce}from"./chunk-XKCLERWG.js";import"./chunk-GDX5XEV3.js";import"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{b as ge}from"./chunk-4CDAAU6Z.js";import{h as K}from"./chunk-5HGUQMKI.js";import"./chunk-X22YKT5B.js";import{a as A,b as j}from"./chunk-JYCUE5HV.js";import{a as b,b as H,c as z,d as L,e as G,f as $}from"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{o as _e,w as V,x as F}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{x as fe}from"./chunk-G5S5AZA7.js";import{e as ce,l as me}from"./chunk-Z45NTTES.js";import{a as se}from"./chunk-IPXNFGXP.js";import{a as de}from"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{k as re,p as le,q as D,r as N,y as pe}from"./chunk-OKCHQM5Q.js";import{Ac as ae,Cb as T,Jc as S,Kb as g,Kc as R,Lc as ie,Mc as _,Nb as I,Ub as a,Vb as i,Wb as J,X as M,Yc as w,Z as te,_b as U,ba as ne,c as k,cb as oe,dc as E,ec as s,gb as m,ha as u,pa as h,qa as C,qc as r,rc as f,s as ee,uc as B,wb as P,yc as O,zc as y}from"./chunk-JP6RBSB3.js";import{a as l,b as d}from"./chunk-YQFG5XE2.js";var v=(()=>{class e{constructor(){this.httpService=u(se)}getGenerateCoa(t){let n={params:new pe().set("PageNumber",t.PageNumber).set("RowCount",t.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(t={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,t)}getUnbalanceJournal(t){return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal/"+t.PageNumber+"/"+t.RowCount)}updateUnbalanceJournal(t){let o={ListID:t};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",o)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=ne({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Te={filter:{PageNumber:1,RowCount:20},data:{data:[],count:0}},Y=H($(Te),z(e=>({first:w(()=>(e.filter().PageNumber-1)*e.filter().RowCount+1),end:w(()=>Math.min(e.filter().PageNumber*e.filter().RowCount,e.data().count))})),G(e=>{let p=u(v);return{updateFilter:o=>{b(e,n=>d(l({},n),{filter:l(l({},n.filter),o)}))},getUpdateCOA:q(k(M(o=>p.getGenerateCoa(o).pipe(Q({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error(n)}})))))}}),L({onInit(e){e.getUpdateCOA(e.filter)}}));var ke=()=>({height:"calc(100vh - 70px)"}),Me=()=>({"min-width":"50rem"});function Pe(e,p){if(e&1){let t=U();a(0,"p-button",7),E("onClick",function(){h(t);let n=s();return C(n.updateCoaBalance())}),i()}}function Ie(e,p){e&1&&(a(0,"tr")(1,"th"),r(2,"Code"),i(),a(3,"th"),r(4,"Name"),i(),a(5,"th"),r(6,"Outlet"),i(),a(7,"th"),r(8,"COA Balance"),i(),a(9,"th"),r(10,"Correct Balance"),i()())}function Je(e,p){if(e&1&&(a(0,"tr")(1,"td"),r(2),i(),a(3,"td"),r(4),i(),a(5,"td"),r(6),i(),a(7,"td"),r(8),S(9,"number"),i(),a(10,"td"),r(11),S(12,"number"),i()()),e&2){let t=p.$implicit;m(2),f(t.Code),m(2),f(t.Name),m(2),f(t.OutletName),m(2),f(R(9,5,t.Balance)),m(3),f(R(12,7,t.CorrectBalance))}}function Be(e,p){if(e&1&&(a(0,"div",9)(1,"p",10),r(2),i()()),e&2){let t=s(2);m(2),B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Oe(e,p){e&1&&(a(0,"tr")(1,"td",11)(2,"span"),r(3,"No records found."),i()()())}function De(e,p){if(e&1){let t=U();a(0,"p-panel")(1,"p-table",8),E("onPage",function(n){h(t);let c=s();return C(c.onPageChange(n))}),T(2,Ie,11,0,"ng-template",null,2,_)(4,Je,13,9,"ng-template",null,3,_)(6,Be,3,3,"ng-template",null,4,_)(8,Oe,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(y(8,ke)),m(),g("paginator",!0)("lazy",!0)("totalRecords",t.store.data().count)("rows",t.store.filter().RowCount)("value",t.store.data().data)("tableStyle",y(9,Me))}}var we=(()=>{class e{constructor(){this.store=u(Y),this.coaService=u(v),this.toastrService=u(de)}onPageChange(t){this.store.updateFilter(d(l({},this.store.filter()),{PageNumber:Math.floor(t.first/t.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ce("Update COA Balance"),te(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-tools-update-coa"]],features:[O([Y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance",3,"scrollable"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","rows","value","tableStyle"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(o,n){o&1&&(a(0,"app-main-panel",6),T(1,Pe,1,0,"ng-template",null,0,_)(3,De,10,10,"ng-template",null,1,_),i()),o&2&&g("scrollable",!0)},dependencies:[K,X,W,ge,N,D,F,V,j,A],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return e})();var Ne={data:{count:0,data:[]},filter:{PageNumber:1,RowCount:20}},Z=H($(Ne),z(e=>({first:w(()=>(e.filter().PageNumber-1)*e.filter().RowCount+1),end:w(()=>Math.min(e.filter().PageNumber*e.filter().RowCount,e.data().count)),selectedItems:w(()=>e.data().data.filter(p=>p.checked)),hasCheckedRows:w(()=>e.data().data.some(p=>p.checked))})),G(e=>{let p=u(v);return{updateFilter(o){b(e,n=>d(l({},n),{filter:l(l({},n.filter),o)}))},onRowSelect(o){b(e,n=>{let c=n.data.data.map(x=>x.id===o.id?d(l({},x),{checked:!0}):x);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onRowUnselect(o){b(e,n=>{let c=n.data.data.map(x=>x.id===o.id?d(l({},x),{checked:!1}):x);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onHeaderCheckboxToggle(o){b(e,n=>{let c=n.data.data.map(x=>d(l({},x),{checked:o}));return d(l({},n),{data:d(l({},n.data),{data:c})})})},loadData:q(k(M(o=>p.getUnbalanceJournal(o).pipe(ee(n=>d(l({},n),{data:n.data.map(c=>d(l({},c),{checked:!1}))})),Q({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}),L(e=>({onInit:()=>{e.loadData(e.filter)}})));var Ve=()=>({height:"calc(100vh - 70px)"}),Fe=e=>["/pages/journal/journal-entry",e];function Ae(e,p){if(e&1){let t=U();a(0,"div",8),J(1,"p-button",9),a(2,"p-button",10),E("onClick",function(){h(t);let n=s(2);return C(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function je(e,p){if(e&1&&T(0,Ae,4,0,"div",7),e&2){let t=s();g("ngIf",t.store.hasCheckedRows())}}function He(e,p){e&1&&(a(0,"tr")(1,"th",12),J(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),r(4,"Date"),i(),a(5,"th"),r(6,"Number"),i(),a(7,"th",13),r(8,"Debit SUM"),i(),a(9,"th",13),r(10,"Credit SUM"),i(),a(11,"th",13),r(12,"Difference"),i(),a(13,"th"),r(14,"Reference"),i(),a(15,"th"),r(16,"Outlet"),i()())}function ze(e,p){if(e&1&&(a(0,"tr")(1,"td"),J(2,"p-tableCheckbox",14),i(),a(3,"td"),r(4),S(5,"date"),i(),a(6,"td")(7,"a",15),r(8),i()(),a(9,"td",13),r(10),S(11,"number"),i(),a(12,"td",13),r(13),S(14,"number"),i(),a(15,"td",13),r(16),S(17,"number"),i(),a(18,"td")(19,"a",16),r(20),i()(),a(21,"td"),r(22),i()()),e&2){let t=p.$implicit,o=s(2);m(2),g("value",t),m(2),f(ie(5,10,t.date,"dd MMM yyyy")),m(3),g("routerLink",ae(19,Fe,t.id)),m(),f(t.number),m(2),f(R(11,13,t.debitSum)),m(3),f(R(14,15,t.creditSum)),m(3),f(R(17,17,t.differences)),m(3),g("href",o.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+t.id,oe),m(),f(t.referenceText),m(2),f(t.outletName)}}function Le(e,p){if(e&1&&r(0),e&2){let t=s(2);B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Ge(e,p){e&1&&(a(0,"tr")(1,"td",17)(2,"span"),r(3,"No records found."),i()()())}function $e(e,p){if(e&1){let t=U();a(0,"p-panel")(1,"p-table",11),E("onPage",function(n){h(t);let c=s();return C(c.onPageChange(n))})("onRowSelect",function(n){h(t);let c=s();return C(c.onRowSelect(n))})("onRowUnselect",function(n){h(t);let c=s();return C(c.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){h(t);let c=s();return C(c.onHeaderCheckboxToggle(n))}),T(2,He,17,0,"ng-template",null,2,_)(4,ze,23,21,"ng-template",null,3,_)(6,Le,1,3,"ng-template",null,4,_)(8,Ge,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(y(7,Ve)),m(),g("value",t.store.data().data)("lazy",!0)("paginator",!0)("rows",t.store.filter().RowCount)("totalRecords",t.store.data().count)}}var ve=(()=>{class e{constructor(){this.store=u(Z),this.toolsService=u(v),this.authService=u(ue)}onPageChange(t){console.log("Page changed:",t);let o=t.first/t.rows;this.store.updateFilter({PageNumber:o+1})}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(o=>{this.store.onRowUnselect(o)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}regenerateUnbalanceJournal(){let o=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(o).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-unbalance-journal"]],features:[O([Z])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal",3,"scrollable"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"]],template:function(o,n){o&1&&(a(0,"app-main-panel",6),T(1,je,1,1,"ng-template",null,0,_)(3,$e,10,8,"ng-template",null,1,_),i()),o&2&&g("scrollable",!0)},dependencies:[K,X,W,xe,he,be,_e,N,re,D,le,fe,F,V,j,A,me,ce],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Qt=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:we},{path:"unbalance-journal",component:ve}];export{Qt as TOOLS_ROUTES};
|
|
1
|
+
import{a as ue}from"./chunk-WW5ELKKO.js";import{b as be}from"./chunk-Q23KXB3T.js";import"./chunk-C2GO6SPF.js";import{a as q,b as Q}from"./chunk-O4QM64EH.js";import{d as W,i as xe,j as he,k as X}from"./chunk-SVXDMOLP.js";import"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import{a as Ce}from"./chunk-XKCLERWG.js";import"./chunk-GDX5XEV3.js";import"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{b as ge}from"./chunk-4CDAAU6Z.js";import{h as K}from"./chunk-XZQ3IYQ6.js";import"./chunk-X22YKT5B.js";import{a as A,b as j}from"./chunk-JYCUE5HV.js";import{a as b,b as H,c as z,d as L,e as G,f as $}from"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{o as _e,w as V,x as F}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{x as fe}from"./chunk-G5S5AZA7.js";import{e as ce,l as me}from"./chunk-Z45NTTES.js";import{a as se}from"./chunk-4AOHMAEQ.js";import{a as de}from"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{k as re,p as le,q as D,r as N,y as pe}from"./chunk-OKCHQM5Q.js";import{Ac as ae,Cb as T,Jc as S,Kb as g,Kc as R,Lc as ie,Mc as _,Nb as I,Ub as a,Vb as i,Wb as J,X as M,Yc as w,Z as te,_b as U,ba as ne,c as k,cb as oe,dc as E,ec as s,gb as m,ha as u,pa as h,qa as C,qc as r,rc as f,s as ee,uc as B,wb as P,yc as O,zc as y}from"./chunk-JP6RBSB3.js";import{a as l,b as d}from"./chunk-YQFG5XE2.js";var v=(()=>{class e{constructor(){this.httpService=u(se)}getGenerateCoa(t){let n={params:new pe().set("PageNumber",t.PageNumber).set("RowCount",t.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(t={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,t)}getUnbalanceJournal(t){return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal/"+t.PageNumber+"/"+t.RowCount)}updateUnbalanceJournal(t){let o={ListID:t};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",o)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=ne({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Te={filter:{PageNumber:1,RowCount:20},data:{data:[],count:0}},Y=H($(Te),z(e=>({first:w(()=>(e.filter().PageNumber-1)*e.filter().RowCount+1),end:w(()=>Math.min(e.filter().PageNumber*e.filter().RowCount,e.data().count))})),G(e=>{let p=u(v);return{updateFilter:o=>{b(e,n=>d(l({},n),{filter:l(l({},n.filter),o)}))},getUpdateCOA:q(k(M(o=>p.getGenerateCoa(o).pipe(Q({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error(n)}})))))}}),L({onInit(e){e.getUpdateCOA(e.filter)}}));var ke=()=>({height:"calc(100vh - 70px)"}),Me=()=>({"min-width":"50rem"});function Pe(e,p){if(e&1){let t=U();a(0,"p-button",7),E("onClick",function(){h(t);let n=s();return C(n.updateCoaBalance())}),i()}}function Ie(e,p){e&1&&(a(0,"tr")(1,"th"),r(2,"Code"),i(),a(3,"th"),r(4,"Name"),i(),a(5,"th"),r(6,"Outlet"),i(),a(7,"th"),r(8,"COA Balance"),i(),a(9,"th"),r(10,"Correct Balance"),i()())}function Je(e,p){if(e&1&&(a(0,"tr")(1,"td"),r(2),i(),a(3,"td"),r(4),i(),a(5,"td"),r(6),i(),a(7,"td"),r(8),S(9,"number"),i(),a(10,"td"),r(11),S(12,"number"),i()()),e&2){let t=p.$implicit;m(2),f(t.Code),m(2),f(t.Name),m(2),f(t.OutletName),m(2),f(R(9,5,t.Balance)),m(3),f(R(12,7,t.CorrectBalance))}}function Be(e,p){if(e&1&&(a(0,"div",9)(1,"p",10),r(2),i()()),e&2){let t=s(2);m(2),B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Oe(e,p){e&1&&(a(0,"tr")(1,"td",11)(2,"span"),r(3,"No records found."),i()()())}function De(e,p){if(e&1){let t=U();a(0,"p-panel")(1,"p-table",8),E("onPage",function(n){h(t);let c=s();return C(c.onPageChange(n))}),T(2,Ie,11,0,"ng-template",null,2,_)(4,Je,13,9,"ng-template",null,3,_)(6,Be,3,3,"ng-template",null,4,_)(8,Oe,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(y(8,ke)),m(),g("paginator",!0)("lazy",!0)("totalRecords",t.store.data().count)("rows",t.store.filter().RowCount)("value",t.store.data().data)("tableStyle",y(9,Me))}}var we=(()=>{class e{constructor(){this.store=u(Y),this.coaService=u(v),this.toastrService=u(de)}onPageChange(t){this.store.updateFilter(d(l({},this.store.filter()),{PageNumber:Math.floor(t.first/t.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ce("Update COA Balance"),te(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-tools-update-coa"]],features:[O([Y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance",3,"scrollable"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","rows","value","tableStyle"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(o,n){o&1&&(a(0,"app-main-panel",6),T(1,Pe,1,0,"ng-template",null,0,_)(3,De,10,10,"ng-template",null,1,_),i()),o&2&&g("scrollable",!0)},dependencies:[K,X,W,ge,N,D,F,V,j,A],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return e})();var Ne={data:{count:0,data:[]},filter:{PageNumber:1,RowCount:20}},Z=H($(Ne),z(e=>({first:w(()=>(e.filter().PageNumber-1)*e.filter().RowCount+1),end:w(()=>Math.min(e.filter().PageNumber*e.filter().RowCount,e.data().count)),selectedItems:w(()=>e.data().data.filter(p=>p.checked)),hasCheckedRows:w(()=>e.data().data.some(p=>p.checked))})),G(e=>{let p=u(v);return{updateFilter(o){b(e,n=>d(l({},n),{filter:l(l({},n.filter),o)}))},onRowSelect(o){b(e,n=>{let c=n.data.data.map(x=>x.id===o.id?d(l({},x),{checked:!0}):x);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onRowUnselect(o){b(e,n=>{let c=n.data.data.map(x=>x.id===o.id?d(l({},x),{checked:!1}):x);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onHeaderCheckboxToggle(o){b(e,n=>{let c=n.data.data.map(x=>d(l({},x),{checked:o}));return d(l({},n),{data:d(l({},n.data),{data:c})})})},loadData:q(k(M(o=>p.getUnbalanceJournal(o).pipe(ee(n=>d(l({},n),{data:n.data.map(c=>d(l({},c),{checked:!1}))})),Q({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}),L(e=>({onInit:()=>{e.loadData(e.filter)}})));var Ve=()=>({height:"calc(100vh - 70px)"}),Fe=e=>["/pages/journal/journal-entry",e];function Ae(e,p){if(e&1){let t=U();a(0,"div",8),J(1,"p-button",9),a(2,"p-button",10),E("onClick",function(){h(t);let n=s(2);return C(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function je(e,p){if(e&1&&T(0,Ae,4,0,"div",7),e&2){let t=s();g("ngIf",t.store.hasCheckedRows())}}function He(e,p){e&1&&(a(0,"tr")(1,"th",12),J(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),r(4,"Date"),i(),a(5,"th"),r(6,"Number"),i(),a(7,"th",13),r(8,"Debit SUM"),i(),a(9,"th",13),r(10,"Credit SUM"),i(),a(11,"th",13),r(12,"Difference"),i(),a(13,"th"),r(14,"Reference"),i(),a(15,"th"),r(16,"Outlet"),i()())}function ze(e,p){if(e&1&&(a(0,"tr")(1,"td"),J(2,"p-tableCheckbox",14),i(),a(3,"td"),r(4),S(5,"date"),i(),a(6,"td")(7,"a",15),r(8),i()(),a(9,"td",13),r(10),S(11,"number"),i(),a(12,"td",13),r(13),S(14,"number"),i(),a(15,"td",13),r(16),S(17,"number"),i(),a(18,"td")(19,"a",16),r(20),i()(),a(21,"td"),r(22),i()()),e&2){let t=p.$implicit,o=s(2);m(2),g("value",t),m(2),f(ie(5,10,t.date,"dd MMM yyyy")),m(3),g("routerLink",ae(19,Fe,t.id)),m(),f(t.number),m(2),f(R(11,13,t.debitSum)),m(3),f(R(14,15,t.creditSum)),m(3),f(R(17,17,t.differences)),m(3),g("href",o.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+t.id,oe),m(),f(t.referenceText),m(2),f(t.outletName)}}function Le(e,p){if(e&1&&r(0),e&2){let t=s(2);B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Ge(e,p){e&1&&(a(0,"tr")(1,"td",17)(2,"span"),r(3,"No records found."),i()()())}function $e(e,p){if(e&1){let t=U();a(0,"p-panel")(1,"p-table",11),E("onPage",function(n){h(t);let c=s();return C(c.onPageChange(n))})("onRowSelect",function(n){h(t);let c=s();return C(c.onRowSelect(n))})("onRowUnselect",function(n){h(t);let c=s();return C(c.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){h(t);let c=s();return C(c.onHeaderCheckboxToggle(n))}),T(2,He,17,0,"ng-template",null,2,_)(4,ze,23,21,"ng-template",null,3,_)(6,Le,1,3,"ng-template",null,4,_)(8,Ge,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(y(7,Ve)),m(),g("value",t.store.data().data)("lazy",!0)("paginator",!0)("rows",t.store.filter().RowCount)("totalRecords",t.store.data().count)}}var ve=(()=>{class e{constructor(){this.store=u(Z),this.toolsService=u(v),this.authService=u(ue)}onPageChange(t){console.log("Page changed:",t);let o=t.first/t.rows;this.store.updateFilter({PageNumber:o+1})}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(o=>{this.store.onRowUnselect(o)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}regenerateUnbalanceJournal(){let o=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(o).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=P({type:e,selectors:[["app-unbalance-journal"]],features:[O([Z])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal",3,"scrollable"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"]],template:function(o,n){o&1&&(a(0,"app-main-panel",6),T(1,je,1,1,"ng-template",null,0,_)(3,$e,10,8,"ng-template",null,1,_),i()),o&2&&g("scrollable",!0)},dependencies:[K,X,W,xe,he,be,_e,N,re,D,le,fe,F,V,j,A,me,ce],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Qt=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:we},{path:"unbalance-journal",component:ve}];export{Qt as TOOLS_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-WKUCQF2H.js";import{a as He}from"./chunk-G4XX7EU2.js";import{a as Oe,b as Be}from"./chunk-AACWH3EJ.js";import{a as ze}from"./chunk-YPBGL37O.js";import{b as A}from"./chunk-NCEC5HNX.js";import{a as re}from"./chunk-52J7F6HR.js";import"./chunk-FLZXCWDU.js";import{a as je}from"./chunk-XKI7WLHE.js";import"./chunk-DHW7UHFT.js";import"./chunk-C2GO6SPF.js";import{a as j,b as z}from"./chunk-O4QM64EH.js";import{d as Ne,i as ke,j as Me,k as Pe}from"./chunk-SVXDMOLP.js";import{a as Ae,b as De}from"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import"./chunk-GDX5XEV3.js";import{a as Fe,b as Je}from"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{g as Ee,h as Ve}from"./chunk-5HGUQMKI.js";import{b as Ie,c as Te}from"./chunk-X22YKT5B.js";import{a as Ce,b as be}from"./chunk-JYCUE5HV.js";import{a as v,b as Se,c as we,d as ve,e as ye,f as Re}from"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{n as _e,o as ge,w as he,x as xe}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{b as ae,c as le,e as me,f as pe,k as se,l as ce,o as de,u as ue,x as fe}from"./chunk-G5S5AZA7.js";import"./chunk-Z45NTTES.js";import"./chunk-IPXNFGXP.js";import"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{h as Z,j as ee,k as te,n as ie,p as ne,r as oe}from"./chunk-OKCHQM5Q.js";import{Ab as K,Ac as E,Cb as g,Ga as k,Jc as I,Kb as c,Kc as Y,Lc as V,Mc as w,Ub as r,Vb as o,Wb as b,X as N,Yc as T,Z as H,_b as y,bb as U,c as F,cb as L,dc as R,ec as _,gb as m,ha as C,pa as h,qa as x,qc as s,rc as S,s as J,sc as M,uc as W,vc as $,wb as G,wc as P,xc as q,yc as Q,zc as X}from"./chunk-JP6RBSB3.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var qe={data:{data:[],totalCount:0},meta:{options:{outlets:[]},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},O=Se(Re(qe),we(t=>({first:T(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:T(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:T(()=>t.data().data.some(a=>a.checked)),checkedARCollection:T(()=>t.data().data.filter(a=>a.checked).map(a=>a.id))})),ye(t=>{let a=C(D),e=C(A);return{updateFilter(n){v(t,i=>f(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){v(t,i=>{let u=i.data.data.map(p=>p.id===n.id?f(d({},p),{checked:!0}):p);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onRowUnselect(n){v(t,i=>{let u=i.data.data.map(p=>p.id===n.id?f(d({},p),{checked:!1}):p);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onHeaderCheckboxToggle(n){v(t,i=>{let u=i.data.data.map(p=>f(d({},p),{checked:n}));return f(d({},i),{data:f(d({},i.data),{data:u})})})},getARLoader:j(F(N(()=>a.getARJournalLoader().pipe(z({next:n=>{v(t,i=>f(d({},i),{meta:n}))},error:n=>{console.error("Error fetching AR collection loader:",n)}}))))),getARCollection:j(F(J(n=>Object.entries(n).reduce((i,[u,p])=>(p!=null&&(i[u]=p),i),{})),N(n=>a.getARJournal(n).pipe(J(i=>f(d({},i),{data:i.data.map(u=>f(d({},u),{due:e.from(u.due)?e.from(u.due).format():null,checked:!1}))})),z({next:i=>{v(t,u=>f(d({},u),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),ve(t=>({onInit:()=>{t.getARLoader(),t.getARCollection(t.filter)}})));var B=t=>({"ng-invalid ng-dirty":t}),Qe=()=>({});function Xe(t,a){if(t&1){let e=y();r(0,"p-button",10),R("onClick",function(){h(e);let n=_(2);return x(n.onCreateJournal())}),o()}}function Ye(t,a){if(t&1&&g(0,Xe,1,0,"p-button",9),t&2){let e=_();c("ngIf",e.store.hasCheckedRows())}}function Ze(t,a){t&1&&(r(0,"tr")(1,"th",12),b(2,"p-tableHeaderCheckbox"),o(),r(3,"th",13),s(4,"Outlet"),o(),r(5,"th",14),s(6,"Number"),o(),r(7,"th",15),s(8,"Customer"),o(),r(9,"th",16),s(10,"Date"),o(),r(11,"th",16),s(12,"Due"),o(),r(13,"th",15),s(14,"Note"),o(),r(15,"th",17),s(16,"Payment"),o(),b(17,"th",18),o())}function et(t,a){if(t&1&&(r(0,"tr")(1,"td"),b(2,"p-tableCheckbox",19),o(),r(3,"td"),s(4),o(),r(5,"td")(6,"a",20),s(7),o()(),r(8,"td"),s(9),o(),r(10,"td"),s(11),I(12,"date"),o(),r(13,"td"),s(14),I(15,"date"),o(),r(16,"td"),b(17,"div",21),o(),r(18,"td"),s(19),o(),r(20,"td"),b(21,"p-button",22),o()()),t&2){let e=a.$implicit,l=_(2);m(2),c("value",e),m(2),S(e.outlet),m(2),c("href",l.authService.getTenantExternalURL()+"/menu/Debt/Debt/Join_Invoice/New_Join_Invoice/Info?ID="+e.id,L),m(),M(" ",e.number," "),m(2),S(e.customer),m(2),S(V(12,12,e.date,"d MMM y")),m(3),S(e.due?V(15,15,e.due,"d MMM y hh:mm"):"-"),m(3),c("innerHTML",e.note,U),m(2),S(e.payment),m(2),c("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function tt(t,a){if(t&1&&s(0),t&2){let e=_(2);W(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function it(t,a){t&1&&(r(0,"tr")(1,"td",23)(2,"span"),s(3,"No records found."),o()()())}function nt(t,a){if(t&1){let e=y();r(0,"p-panel")(1,"p-table",11),R("onPage",function(n){h(e);let i=_();return x(i.onPageChange(n))})("onHeaderCheckboxToggle",function(n){h(e);let i=_();return x(i.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){h(e);let i=_();return x(i.onRowSelect(n))})("onRowUnselect",function(n){h(e);let i=_();return x(i.onRowUnselect(n))}),g(2,Ze,18,0,"ng-template",null,3,w)(4,et,22,18,"ng-template",null,4,w)(6,tt,1,3,"ng-template",null,5,w)(8,it,4,0,"ng-template",null,6,w),o()()}if(t&2){let e=_();m(),c("value",e.store.data().data)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function ot(t,a){if(t&1&&(r(0,"span",34),s(1),I(2,"truncate"),o()),t&2){let e=a.$implicit;c("pTooltip",e.name),m(),M(" ",V(2,2,e.name,30)," ")}}function rt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function at(t,a){if(t&1&&(r(0,"div"),g(1,rt,3,1,"div",35),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("from"))}}function lt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function mt(t,a){if(t&1&&(r(0,"div"),g(1,lt,3,1,"div",35),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("to"))}}function pt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function st(t,a){if(t&1&&(r(0,"div"),g(1,pt,3,1,"div",35),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("pageSize"))}}function ct(t,a){if(t&1){let e=y();r(0,"form",24)(1,"div",25)(2,"label",26),s(3,"Outlet"),o(),r(4,"p-select",27),g(5,ot,3,5,"ng-template",null,7,w),o()(),r(7,"div",25)(8,"label",26),s(9,"From - To"),o(),r(10,"div",28),b(11,"p-datepicker",29),g(12,at,2,1,"div",30),b(13,"p-datepicker",31),g(14,mt,2,1,"div",30),o()(),r(15,"div",25)(16,"label",26),s(17,"Customer"),o(),r(18,"p-autocomplete",32),I(19,"async"),R("completeMethod",function(n){h(e);let i=_();return x(i.onSearchContact(n))}),o()(),r(20,"div",25)(21,"label",26),s(22,"Page Size"),o(),b(23,"input",33),g(24,st,2,1,"div",30),o()()}if(t&2){let e=_();c("formGroup",e.form),m(4),c("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),m(7),c("iconDisplay","input")("showIcon",!0)("ngClass",E(17,B,e.isInvalid("from"))),m(),c("ngIf",e.isInvalid("from")),m(),c("iconDisplay","input")("showIcon",!0)("ngClass",E(19,B,e.isInvalid("to"))),m(),c("ngIf",e.isInvalid("to")),m(4),c("suggestions",Y(19,15,e.customerSuggestions$)),m(5),c("autoNumeric",X(21,Qe))("ngClass",E(22,B,e.isInvalid("pageSize"))),m(),c("ngIf",e.isInvalid("pageSize"))}}var ti=(()=>{class t extends je{constructor(){super(),this.store=C(O),this.generateJournalService=C(D),this.authService=C(re),this.isDialogFilterVisible=k(!1),this.isInitDialogFilterVisible=k(!1),this.fb=C(ue),this.dayjsService=C(A)}ngOnInit(){this.initForm()}initForm(){let{number:e,from:l,to:n,pageNumber:i,rowCount:u,pageSize:p,export:Ue,exportPageNumber:Le,exportRowCount:Ge,outletName:Ke,customerID:We,paymentState:$e}=this.store.filter();this.form=this.fb.group({number:this.fb.control(e),from:this.fb.control(this.dayjsService.from(l)?this.dayjsService.from(l).toDate():null),to:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),pageNumber:this.fb.control(i),rowCount:this.fb.control(u),pageSize:this.fb.control(p,[le.required]),export:this.fb.control(Ue),exportPageNumber:this.fb.control(Le),exportRowCount:this.fb.control(Ge),outletName:this.fb.control(Ke),customerID:this.fb.control(We),paymentState:this.fb.control($e)})}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((l,[n,i])=>{switch(n){case"customerID":i||(l[n]=He);break;case"from":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;case"to":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;default:l[n]=i===null?"":i;break}return l},{});console.log("Filter Body:",e),this.store.updateFilter(e),this.isDialogFilterVisible.set(!1)}onSearchContact(e){this.customerSuggestions$=this.generateJournalService.getCustomerSuggestions(e.query)}onSearch(e){this.store.updateFilter(f(d({},this.store.filter()),{number:e,pageNumber:1})),this.store.getARCollection(this.store.filter())}onPageChange(e){let l=e.first/e.rows;this.store.updateFilter(f(d({},this.store.filter()),{pageNumber:l+1}))}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(l=>{this.store.onRowUnselect(l)});return}else this.store.onRowUnselect(e.data)}onCreateJournal(){this.generateJournalService.createARJournal(this.store.checkedARCollection()).pipe(H(()=>this.store.getARCollection(this.store.filter))).subscribe()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=G({type:t,selectors:[["app-ar-journal"]],features:[Q([O]),K],decls:8,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","AR Collection",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value","paginator","rows","totalRecords","lazy"],[2,"width","1rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","14rem"],[2,"width","11rem"],[2,"width","9rem"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[3,"icon","severity","text"],["colspan","9"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["virtualScroll","","showClear","","filter","","filterBy","name","formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Outlet",3,"virtualScrollItemSize","options"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],[4,"ngIf"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],["showClear","","formControlName","customerID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["type","text","pInputText","","formControlName","pageSize",3,"autoNumeric","ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(l,n){if(l&1){let i=y();r(0,"app-main-panel",8),q("isDialogFilterVisibleChange",function(p){return h(i),P(n.isDialogFilterVisible,p)||(n.isDialogFilterVisible=p),x(p)})("isInitDialogFilterVisibleChange",function(p){return h(i),P(n.isInitDialogFilterVisible,p)||(n.isInitDialogFilterVisible=p),x(p)}),R("filterConfirmed",function(){return h(i),x(n.onFilterOKEvent())})("search",function(p){return h(i),x(n.onSearch(p))}),g(1,Ye,1,1,"ng-template",null,0,w)(3,nt,10,5,"ng-template",null,1,w),s(5," <"),g(6,ct,25,24,"ng-template",null,2,w),o()}l&2&&(c("isSearchableInput",!0)("isFilterable",!0),$("isDialogFilterVisible",n.isDialogFilterVisible)("isInitDialogFilterVisible",n.isInitDialogFilterVisible),c("scrollable",!0))},dependencies:[Ve,oe,Z,ee,te,ie,ne,Pe,Ne,ke,Me,xe,he,be,Ce,fe,se,ae,me,pe,ce,de,Je,Fe,De,Ae,Be,Oe,ge,_e,Ee,Te,Ie,ze],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{ti as ARJournalComponent};
|
|
1
|
+
import{a as D}from"./chunk-JOLNIJ36.js";import{a as He}from"./chunk-G4XX7EU2.js";import{a as Oe,b as Be}from"./chunk-AACWH3EJ.js";import{a as ze}from"./chunk-YPBGL37O.js";import{b as A}from"./chunk-SNKHWMQW.js";import{a as re}from"./chunk-WW5ELKKO.js";import"./chunk-FLZXCWDU.js";import{a as je}from"./chunk-XKI7WLHE.js";import"./chunk-DHW7UHFT.js";import"./chunk-C2GO6SPF.js";import{a as j,b as z}from"./chunk-O4QM64EH.js";import{d as Ne,i as ke,j as Me,k as Pe}from"./chunk-SVXDMOLP.js";import{a as Ae,b as De}from"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import"./chunk-GDX5XEV3.js";import{a as Fe,b as Je}from"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{g as Ee,h as Ve}from"./chunk-XZQ3IYQ6.js";import{b as Ie,c as Te}from"./chunk-X22YKT5B.js";import{a as Ce,b as be}from"./chunk-JYCUE5HV.js";import{a as v,b as Se,c as we,d as ve,e as ye,f as Re}from"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import{n as _e,o as ge,w as he,x as xe}from"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{b as ae,c as le,e as me,f as pe,k as se,l as ce,o as de,u as ue,x as fe}from"./chunk-G5S5AZA7.js";import"./chunk-Z45NTTES.js";import"./chunk-4AOHMAEQ.js";import"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{h as Z,j as ee,k as te,n as ie,p as ne,r as oe}from"./chunk-OKCHQM5Q.js";import{Ab as K,Ac as E,Cb as g,Ga as k,Jc as I,Kb as c,Kc as Y,Lc as V,Mc as w,Ub as r,Vb as o,Wb as b,X as N,Yc as T,Z as H,_b as y,bb as U,c as F,cb as L,dc as R,ec as _,gb as m,ha as C,pa as h,qa as x,qc as s,rc as S,s as J,sc as M,uc as W,vc as $,wb as G,wc as P,xc as q,yc as Q,zc as X}from"./chunk-JP6RBSB3.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var qe={data:{data:[],totalCount:0},meta:{options:{outlets:[]},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},filter:{number:null,outletName:null,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4,paymentState:0}},O=Se(Re(qe),we(t=>({first:T(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:T(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:T(()=>t.data().data.some(a=>a.checked)),checkedARCollection:T(()=>t.data().data.filter(a=>a.checked).map(a=>a.id))})),ye(t=>{let a=C(D),e=C(A);return{updateFilter(n){v(t,i=>f(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){v(t,i=>{let u=i.data.data.map(p=>p.id===n.id?f(d({},p),{checked:!0}):p);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onRowUnselect(n){v(t,i=>{let u=i.data.data.map(p=>p.id===n.id?f(d({},p),{checked:!1}):p);return f(d({},i),{data:f(d({},i.data),{data:u})})})},onHeaderCheckboxToggle(n){v(t,i=>{let u=i.data.data.map(p=>f(d({},p),{checked:n}));return f(d({},i),{data:f(d({},i.data),{data:u})})})},getARLoader:j(F(N(()=>a.getARJournalLoader().pipe(z({next:n=>{v(t,i=>f(d({},i),{meta:n}))},error:n=>{console.error("Error fetching AR collection loader:",n)}}))))),getARCollection:j(F(J(n=>Object.entries(n).reduce((i,[u,p])=>(p!=null&&(i[u]=p),i),{})),N(n=>a.getARJournal(n).pipe(J(i=>f(d({},i),{data:i.data.map(u=>f(d({},u),{due:e.from(u.due)?e.from(u.due).format():null,checked:!1}))})),z({next:i=>{v(t,u=>f(d({},u),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),ve(t=>({onInit:()=>{t.getARLoader(),t.getARCollection(t.filter)}})));var B=t=>({"ng-invalid ng-dirty":t}),Qe=()=>({});function Xe(t,a){if(t&1){let e=y();r(0,"p-button",10),R("onClick",function(){h(e);let n=_(2);return x(n.onCreateJournal())}),o()}}function Ye(t,a){if(t&1&&g(0,Xe,1,0,"p-button",9),t&2){let e=_();c("ngIf",e.store.hasCheckedRows())}}function Ze(t,a){t&1&&(r(0,"tr")(1,"th",12),b(2,"p-tableHeaderCheckbox"),o(),r(3,"th",13),s(4,"Outlet"),o(),r(5,"th",14),s(6,"Number"),o(),r(7,"th",15),s(8,"Customer"),o(),r(9,"th",16),s(10,"Date"),o(),r(11,"th",16),s(12,"Due"),o(),r(13,"th",15),s(14,"Note"),o(),r(15,"th",17),s(16,"Payment"),o(),b(17,"th",18),o())}function et(t,a){if(t&1&&(r(0,"tr")(1,"td"),b(2,"p-tableCheckbox",19),o(),r(3,"td"),s(4),o(),r(5,"td")(6,"a",20),s(7),o()(),r(8,"td"),s(9),o(),r(10,"td"),s(11),I(12,"date"),o(),r(13,"td"),s(14),I(15,"date"),o(),r(16,"td"),b(17,"div",21),o(),r(18,"td"),s(19),o(),r(20,"td"),b(21,"p-button",22),o()()),t&2){let e=a.$implicit,l=_(2);m(2),c("value",e),m(2),S(e.outlet),m(2),c("href",l.authService.getTenantExternalURL()+"/menu/Debt/Debt/Join_Invoice/New_Join_Invoice/Info?ID="+e.id,L),m(),M(" ",e.number," "),m(2),S(e.customer),m(2),S(V(12,12,e.date,"d MMM y")),m(3),S(e.due?V(15,15,e.due,"d MMM y hh:mm"):"-"),m(3),c("innerHTML",e.note,U),m(2),S(e.payment),m(2),c("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function tt(t,a){if(t&1&&s(0),t&2){let e=_(2);W(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function it(t,a){t&1&&(r(0,"tr")(1,"td",23)(2,"span"),s(3,"No records found."),o()()())}function nt(t,a){if(t&1){let e=y();r(0,"p-panel")(1,"p-table",11),R("onPage",function(n){h(e);let i=_();return x(i.onPageChange(n))})("onHeaderCheckboxToggle",function(n){h(e);let i=_();return x(i.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){h(e);let i=_();return x(i.onRowSelect(n))})("onRowUnselect",function(n){h(e);let i=_();return x(i.onRowUnselect(n))}),g(2,Ze,18,0,"ng-template",null,3,w)(4,et,22,18,"ng-template",null,4,w)(6,tt,1,3,"ng-template",null,5,w)(8,it,4,0,"ng-template",null,6,w),o()()}if(t&2){let e=_();m(),c("value",e.store.data().data)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function ot(t,a){if(t&1&&(r(0,"span",34),s(1),I(2,"truncate"),o()),t&2){let e=a.$implicit;c("pTooltip",e.name),m(),M(" ",V(2,2,e.name,30)," ")}}function rt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function at(t,a){if(t&1&&(r(0,"div"),g(1,rt,3,1,"div",35),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("from"))}}function lt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function mt(t,a){if(t&1&&(r(0,"div"),g(1,lt,3,1,"div",35),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("to"))}}function pt(t,a){if(t&1&&(r(0,"div")(1,"span",36),s(2),o()()),t&2){let e=a.$implicit;m(2),S(e)}}function st(t,a){if(t&1&&(r(0,"div"),g(1,pt,3,1,"div",35),o()),t&2){let e=_(2);m(),c("ngForOf",e.getErrors("pageSize"))}}function ct(t,a){if(t&1){let e=y();r(0,"form",24)(1,"div",25)(2,"label",26),s(3,"Outlet"),o(),r(4,"p-select",27),g(5,ot,3,5,"ng-template",null,7,w),o()(),r(7,"div",25)(8,"label",26),s(9,"From - To"),o(),r(10,"div",28),b(11,"p-datepicker",29),g(12,at,2,1,"div",30),b(13,"p-datepicker",31),g(14,mt,2,1,"div",30),o()(),r(15,"div",25)(16,"label",26),s(17,"Customer"),o(),r(18,"p-autocomplete",32),I(19,"async"),R("completeMethod",function(n){h(e);let i=_();return x(i.onSearchContact(n))}),o()(),r(20,"div",25)(21,"label",26),s(22,"Page Size"),o(),b(23,"input",33),g(24,st,2,1,"div",30),o()()}if(t&2){let e=_();c("formGroup",e.form),m(4),c("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),m(7),c("iconDisplay","input")("showIcon",!0)("ngClass",E(17,B,e.isInvalid("from"))),m(),c("ngIf",e.isInvalid("from")),m(),c("iconDisplay","input")("showIcon",!0)("ngClass",E(19,B,e.isInvalid("to"))),m(),c("ngIf",e.isInvalid("to")),m(4),c("suggestions",Y(19,15,e.customerSuggestions$)),m(5),c("autoNumeric",X(21,Qe))("ngClass",E(22,B,e.isInvalid("pageSize"))),m(),c("ngIf",e.isInvalid("pageSize"))}}var ti=(()=>{class t extends je{constructor(){super(),this.store=C(O),this.generateJournalService=C(D),this.authService=C(re),this.isDialogFilterVisible=k(!1),this.isInitDialogFilterVisible=k(!1),this.fb=C(ue),this.dayjsService=C(A)}ngOnInit(){this.initForm()}initForm(){let{number:e,from:l,to:n,pageNumber:i,rowCount:u,pageSize:p,export:Ue,exportPageNumber:Le,exportRowCount:Ge,outletName:Ke,customerID:We,paymentState:$e}=this.store.filter();this.form=this.fb.group({number:this.fb.control(e),from:this.fb.control(this.dayjsService.from(l)?this.dayjsService.from(l).toDate():null),to:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),pageNumber:this.fb.control(i),rowCount:this.fb.control(u),pageSize:this.fb.control(p,[le.required]),export:this.fb.control(Ue),exportPageNumber:this.fb.control(Le),exportRowCount:this.fb.control(Ge),outletName:this.fb.control(Ke),customerID:this.fb.control(We),paymentState:this.fb.control($e)})}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((l,[n,i])=>{switch(n){case"customerID":i||(l[n]=He);break;case"from":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;case"to":typeof i=="object"?l[n]=this.dayjsService.from(i)?this.dayjsService.format(i):null:l[n]=i!=null?String(i):null;break;default:l[n]=i===null?"":i;break}return l},{});console.log("Filter Body:",e),this.store.updateFilter(e),this.isDialogFilterVisible.set(!1)}onSearchContact(e){this.customerSuggestions$=this.generateJournalService.getCustomerSuggestions(e.query)}onSearch(e){this.store.updateFilter(f(d({},this.store.filter()),{number:e,pageNumber:1})),this.store.getARCollection(this.store.filter())}onPageChange(e){let l=e.first/e.rows;this.store.updateFilter(f(d({},this.store.filter()),{pageNumber:l+1}))}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(l=>{this.store.onRowUnselect(l)});return}else this.store.onRowUnselect(e.data)}onCreateJournal(){this.generateJournalService.createARJournal(this.store.checkedARCollection()).pipe(H(()=>this.store.getARCollection(this.store.filter))).subscribe()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=G({type:t,selectors:[["app-ar-journal"]],features:[Q([O]),K],decls:8,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","AR Collection",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value","paginator","rows","totalRecords","lazy"],[2,"width","1rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","14rem"],[2,"width","11rem"],[2,"width","9rem"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[3,"icon","severity","text"],["colspan","9"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["virtualScroll","","showClear","","filter","","filterBy","name","formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Outlet",3,"virtualScrollItemSize","options"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],[4,"ngIf"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],["showClear","","formControlName","customerID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["type","text","pInputText","","formControlName","pageSize",3,"autoNumeric","ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(l,n){if(l&1){let i=y();r(0,"app-main-panel",8),q("isDialogFilterVisibleChange",function(p){return h(i),P(n.isDialogFilterVisible,p)||(n.isDialogFilterVisible=p),x(p)})("isInitDialogFilterVisibleChange",function(p){return h(i),P(n.isInitDialogFilterVisible,p)||(n.isInitDialogFilterVisible=p),x(p)}),R("filterConfirmed",function(){return h(i),x(n.onFilterOKEvent())})("search",function(p){return h(i),x(n.onSearch(p))}),g(1,Ye,1,1,"ng-template",null,0,w)(3,nt,10,5,"ng-template",null,1,w),s(5," <"),g(6,ct,25,24,"ng-template",null,2,w),o()}l&2&&(c("isSearchableInput",!0)("isFilterable",!0),$("isDialogFilterVisible",n.isDialogFilterVisible)("isInitDialogFilterVisible",n.isInitDialogFilterVisible),c("scrollable",!0))},dependencies:[Ve,oe,Z,ee,te,ie,ne,Pe,Ne,ke,Me,xe,he,be,Ce,fe,se,ae,me,pe,ce,de,Je,Fe,De,Ae,Be,Oe,ge,_e,Ee,Te,Ie,ze],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{ti as ARJournalComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ft,b as It,c as kt}from"./chunk-X22YKT5B.js";import{h as wt}from"./chunk-JMEBBWX4.js";import{a as at,b as lt}from"./chunk-FUZFAJGJ.js";import{a as ue,b as ut,f as Le,h as fe,j as ht,k as bt,l as Ct,m as xt,n as yt,o as vt,w as he,x as Tt}from"./chunk-5FSMHZSY.js";import{$ as _e,A as De,B as me,C as Se,D as Ve,Da as O,I as Fe,K as rt,La as mt,Ma as ge,N as st,Na as _t,R as Pe,U as pt,Ua as gt,Z as dt,b as tt,e as it,j as nt,ma as ct,w as ot,y as $,z as ce}from"./chunk-G5S5AZA7.js";import{c as et}from"./chunk-IPXNFGXP.js";import{c as Je,d as Ie,f as ke,h as ze,i as Me,k as Ee}from"./chunk-F2X3VGZZ.js";import{a as Ke,h as re,k as se,l as Ue,m as pe,r as de,s as Z}from"./chunk-OKCHQM5Q.js";import{Aa as Re,Ab as V,Ac as Q,Bc as Ze,Ca as U,Cb as m,Cc as $e,Da as z,Ga as Qe,Jb as T,Jc as Te,Ka as Ae,Kb as o,Kc as we,Mb as Ye,Mc as A,Nb as H,Ob as F,Pb as N,Ub as p,Vb as d,Vc as h,Wb as y,Wc as le,Xb as B,Yb as R,Yc as qe,Zb as w,Zc as Ge,_b as b,ba as He,ca as Ce,dc as u,eb as We,ec as s,fc as J,gb as l,gc as X,ha as I,jc as v,kc as ee,lc as C,mc as x,oa as Be,pa as _,pc as te,qa as g,qc as Y,ra as K,rb as xe,rc as je,sc as ve,ta as k,vc as ie,wb as S,wc as ne,xb as ye,xc as oe,yb as Ne,yc as ae,za as D,zb as Xe,zc as j}from"./chunk-JP6RBSB3.js";import{a as be}from"./chunk-YQFG5XE2.js";var zt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMaximizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Mt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMinimizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Et=(()=>{class t extends ue{pFocusTrapDisabled=!1;platformId=I(Ae);document=I(Ke);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>st("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?pt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Pe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?dt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Pe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",h]},features:[V,Be]})}return t})();var Ot=["header"],Dt=["content"],St=["footer"],Ht=["closeicon"],Bt=["maximizeicon"],Rt=["minimizeicon"],Qt=["headless"],At=["titlebar"],Wt=["*",[["p-footer"]]],Nt=["*","p-footer"],Xt=(t,r,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":r,"pointer-events":e}),Yt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),jt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),Zt=(t,r)=>({transform:t,transition:r}),$t=t=>({value:"visible",params:t});function qt(t,r){t&1&&w(0)}function Gt(t,r){if(t&1&&(B(0),m(1,qt,1,0,"ng-container",11),R()),t&2){let e=s(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Kt(t,r){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=s(4);return g(a.initResize(i))}),d()}if(t&2){let e=s(4);o("ngClass",e.cx("resizeHandle"))}}function Ut(t,r){if(t&1&&(p(0,"span",21),Y(1),d()),t&2){let e=s(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),je(e.header)}}function Jt(t,r){t&1&&w(0)}function ei(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function ti(t,r){t&1&&y(0,"WindowMaximizeIcon")}function ii(t,r){t&1&&y(0,"WindowMinimizeIcon")}function ni(t,r){if(t&1&&(B(0),m(1,ti,1,0,"WindowMaximizeIcon",23)(2,ii,1,0,"WindowMinimizeIcon",23),R()),t&2){let e=s(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function oi(t,r){}function ai(t,r){t&1&&m(0,oi,0,0,"ng-template")}function li(t,r){if(t&1&&(B(0),m(1,ai,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ri(t,r){}function si(t,r){t&1&&m(0,ri,0,0,"ng-template")}function pi(t,r){if(t&1&&(B(0),m(1,si,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function di(t,r){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=s(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=s(5);return g(i.maximize())}),m(1,ei,1,1,"span",14)(2,ni,3,2,"ng-container",23)(3,li,2,1,"ng-container",23)(4,pi,2,1,"ng-container",23),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function ci(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(8);o("ngClass",e.closeIcon)}}function mi(t,r){t&1&&y(0,"TimesIcon")}function _i(t,r){if(t&1&&(B(0),m(1,ci,1,1,"span",14)(2,mi,1,0,"TimesIcon",23),R()),t&2){let e=s(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function gi(t,r){}function ui(t,r){t&1&&m(0,gi,0,0,"ng-template")}function fi(t,r){if(t&1&&(p(0,"span"),m(1,ui,1,0,null,11),d()),t&2){let e=s(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function hi(t,r){if(t&1&&m(0,_i,3,2,"ng-container",23)(1,fi,2,1,"span",23),t&2){let e=s(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function bi(t,r){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=s(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=s(5);return g(a.close(i))}),m(1,hi,2,2,"ng-template",null,4,A),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function Ci(t,r){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=s(4);return g(a.initDrag(i))}),m(2,Ut,2,3,"span",17)(3,Jt,1,0,"ng-container",11),p(4,"div",18),m(5,di,5,8,"p-button",19)(6,bi,3,4,"p-button",20),d()()}if(t&2){let e=s(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function xi(t,r){t&1&&w(0)}function yi(t,r){t&1&&w(0)}function vi(t,r){if(t&1&&(p(0,"div",18,5),X(2,1),m(3,yi,1,0,"ng-container",11),d()),t&2){let e=s(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ti(t,r){if(t&1&&(m(0,Kt,1,1,"div",12)(1,Ci,7,6,"div",13),p(2,"div",7,2),X(4),m(5,xi,1,0,"ng-container",11),d(),m(6,vi,4,2,"div",14)),t&2){let e=s(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),F(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function wi(t,r){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=s(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=s(2);return g(a.onAnimationEnd(i))}),m(2,Gt,2,1,"ng-container",10)(3,Ti,7,9,"ng-template",null,1,A),d()}if(t&2){let e=te(4),n=s(2);H(n.style),F(n.styleClass),o("ngClass",Q(13,Yt,n.maximizable&&n.maximized))("ngStyle",j(15,jt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",Q(19,$t,Ze(16,Zt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function Ii(t,r){if(t&1&&(p(0,"div",7),m(1,wi,5,21,"div",8),d()),t&2){let e=s();H(e.maskStyle),F(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",$e(7,Xt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var ki=({dt:t})=>`
|
|
1
|
+
import{a as ft,b as It,c as kt}from"./chunk-X22YKT5B.js";import{h as wt}from"./chunk-JMEBBWX4.js";import{a as at,b as lt}from"./chunk-FUZFAJGJ.js";import{a as ue,b as ut,f as Le,h as fe,j as ht,k as bt,l as Ct,m as xt,n as yt,o as vt,w as he,x as Tt}from"./chunk-5FSMHZSY.js";import{$ as _e,A as De,B as me,C as Se,D as Ve,Da as O,I as Fe,K as rt,La as mt,Ma as ge,N as st,Na as _t,R as Pe,U as pt,Ua as gt,Z as dt,b as tt,e as it,j as nt,ma as ct,w as ot,y as $,z as ce}from"./chunk-G5S5AZA7.js";import{c as et}from"./chunk-4AOHMAEQ.js";import{c as Je,d as Ie,f as ke,h as ze,i as Me,k as Ee}from"./chunk-F2X3VGZZ.js";import{a as Ke,h as re,k as se,l as Ue,m as pe,r as de,s as Z}from"./chunk-OKCHQM5Q.js";import{Aa as Re,Ab as V,Ac as Q,Bc as Ze,Ca as U,Cb as m,Cc as $e,Da as z,Ga as Qe,Jb as T,Jc as Te,Ka as Ae,Kb as o,Kc as we,Mb as Ye,Mc as A,Nb as H,Ob as F,Pb as N,Ub as p,Vb as d,Vc as h,Wb as y,Wc as le,Xb as B,Yb as R,Yc as qe,Zb as w,Zc as Ge,_b as b,ba as He,ca as Ce,dc as u,eb as We,ec as s,fc as J,gb as l,gc as X,ha as I,jc as v,kc as ee,lc as C,mc as x,oa as Be,pa as _,pc as te,qa as g,qc as Y,ra as K,rb as xe,rc as je,sc as ve,ta as k,vc as ie,wb as S,wc as ne,xb as ye,xc as oe,yb as Ne,yc as ae,za as D,zb as Xe,zc as j}from"./chunk-JP6RBSB3.js";import{a as be}from"./chunk-YQFG5XE2.js";var zt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMaximizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Mt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMinimizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Et=(()=>{class t extends ue{pFocusTrapDisabled=!1;platformId=I(Ae);document=I(Ke);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>st("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?pt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Pe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?dt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Pe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",h]},features:[V,Be]})}return t})();var Ot=["header"],Dt=["content"],St=["footer"],Ht=["closeicon"],Bt=["maximizeicon"],Rt=["minimizeicon"],Qt=["headless"],At=["titlebar"],Wt=["*",[["p-footer"]]],Nt=["*","p-footer"],Xt=(t,r,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":r,"pointer-events":e}),Yt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),jt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),Zt=(t,r)=>({transform:t,transition:r}),$t=t=>({value:"visible",params:t});function qt(t,r){t&1&&w(0)}function Gt(t,r){if(t&1&&(B(0),m(1,qt,1,0,"ng-container",11),R()),t&2){let e=s(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Kt(t,r){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=s(4);return g(a.initResize(i))}),d()}if(t&2){let e=s(4);o("ngClass",e.cx("resizeHandle"))}}function Ut(t,r){if(t&1&&(p(0,"span",21),Y(1),d()),t&2){let e=s(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),je(e.header)}}function Jt(t,r){t&1&&w(0)}function ei(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function ti(t,r){t&1&&y(0,"WindowMaximizeIcon")}function ii(t,r){t&1&&y(0,"WindowMinimizeIcon")}function ni(t,r){if(t&1&&(B(0),m(1,ti,1,0,"WindowMaximizeIcon",23)(2,ii,1,0,"WindowMinimizeIcon",23),R()),t&2){let e=s(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function oi(t,r){}function ai(t,r){t&1&&m(0,oi,0,0,"ng-template")}function li(t,r){if(t&1&&(B(0),m(1,ai,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ri(t,r){}function si(t,r){t&1&&m(0,ri,0,0,"ng-template")}function pi(t,r){if(t&1&&(B(0),m(1,si,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function di(t,r){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=s(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=s(5);return g(i.maximize())}),m(1,ei,1,1,"span",14)(2,ni,3,2,"ng-container",23)(3,li,2,1,"ng-container",23)(4,pi,2,1,"ng-container",23),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function ci(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(8);o("ngClass",e.closeIcon)}}function mi(t,r){t&1&&y(0,"TimesIcon")}function _i(t,r){if(t&1&&(B(0),m(1,ci,1,1,"span",14)(2,mi,1,0,"TimesIcon",23),R()),t&2){let e=s(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function gi(t,r){}function ui(t,r){t&1&&m(0,gi,0,0,"ng-template")}function fi(t,r){if(t&1&&(p(0,"span"),m(1,ui,1,0,null,11),d()),t&2){let e=s(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function hi(t,r){if(t&1&&m(0,_i,3,2,"ng-container",23)(1,fi,2,1,"span",23),t&2){let e=s(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function bi(t,r){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=s(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=s(5);return g(a.close(i))}),m(1,hi,2,2,"ng-template",null,4,A),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function Ci(t,r){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=s(4);return g(a.initDrag(i))}),m(2,Ut,2,3,"span",17)(3,Jt,1,0,"ng-container",11),p(4,"div",18),m(5,di,5,8,"p-button",19)(6,bi,3,4,"p-button",20),d()()}if(t&2){let e=s(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function xi(t,r){t&1&&w(0)}function yi(t,r){t&1&&w(0)}function vi(t,r){if(t&1&&(p(0,"div",18,5),X(2,1),m(3,yi,1,0,"ng-container",11),d()),t&2){let e=s(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ti(t,r){if(t&1&&(m(0,Kt,1,1,"div",12)(1,Ci,7,6,"div",13),p(2,"div",7,2),X(4),m(5,xi,1,0,"ng-container",11),d(),m(6,vi,4,2,"div",14)),t&2){let e=s(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),F(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function wi(t,r){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=s(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=s(2);return g(a.onAnimationEnd(i))}),m(2,Gt,2,1,"ng-container",10)(3,Ti,7,9,"ng-template",null,1,A),d()}if(t&2){let e=te(4),n=s(2);H(n.style),F(n.styleClass),o("ngClass",Q(13,Yt,n.maximizable&&n.maximized))("ngStyle",j(15,jt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",Q(19,$t,Ze(16,Zt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function Ii(t,r){if(t&1&&(p(0,"div",7),m(1,wi,5,21,"div",8),d()),t&2){let e=s();H(e.maskStyle),F(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",$e(7,Xt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var ki=({dt:t})=>`
|
|
2
2
|
.p-dialog {
|
|
3
3
|
max-height: 90%;
|
|
4
4
|
transform: scale(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S,b as v}from"./chunk-O4QM64EH.js";import{d as Q,k as V}from"./chunk-SVXDMOLP.js";import"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import"./chunk-GDX5XEV3.js";import"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{b as J}from"./chunk-4CDAAU6Z.js";import{h as z}from"./chunk-
|
|
1
|
+
import{a as S,b as v}from"./chunk-O4QM64EH.js";import{d as Q,k as V}from"./chunk-SVXDMOLP.js";import"./chunk-S6X7PJAB.js";import"./chunk-LWLJZPBI.js";import"./chunk-3NU3P6NL.js";import"./chunk-GDX5XEV3.js";import"./chunk-DLUALPHU.js";import"./chunk-4DOELXOP.js";import"./chunk-VVUSFS6O.js";import"./chunk-ZTEDQLOG.js";import"./chunk-EDGADVEY.js";import"./chunk-JTDJJORR.js";import"./chunk-LZUGPBFD.js";import"./chunk-2KERKGCG.js";import{b as J}from"./chunk-4CDAAU6Z.js";import{h as z}from"./chunk-XZQ3IYQ6.js";import"./chunk-X22YKT5B.js";import{a as N,b as j}from"./chunk-JYCUE5HV.js";import{a as B,b as G,c as H,d as K,e as U,f as q,g as $}from"./chunk-JMEBBWX4.js";import"./chunk-FUZFAJGJ.js";import"./chunk-5FSMHZSY.js";import"./chunk-A5HAJEPC.js";import{w as F}from"./chunk-G5S5AZA7.js";import{e as L,l as R}from"./chunk-Z45NTTES.js";import{a as O}from"./chunk-4AOHMAEQ.js";import"./chunk-BLQJXMNV.js";import"./chunk-F2X3VGZZ.js";import{q as D,r as I}from"./chunk-OKCHQM5Q.js";import{Ac as _,Cb as C,Jc as x,Kb as m,Kc as k,Mc as c,Ub as n,Vb as a,Wb as y,X as u,Yc as w,ba as E,c as h,ec as g,gb as l,ha as p,qc as r,rc as s,sc as P,wb as b,yc as M,zc as T}from"./chunk-JP6RBSB3.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var W=(()=>{class e{constructor(){this.httpService=p(O)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(){return this.httpService.get("","api/CashAndBank/GetCashAndBank")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ee={data:[],filter:[],options:{hasGeneralLedger:!1}},A=G($("cash-bank-store"),q(ee),H(e=>({totalBalance:w(()=>e.data().reduce((o,t)=>o+t.balance,0))})),U(e=>{let o=p(W);return{loadCashAndBankLoader:S(h(u(()=>o.fetchCashAndBankLoader().pipe(v({next:t=>{console.log("response",t),B(e,i=>f(d({},i),{options:t.options}))},error:t=>{console.log("error",t)}}))))),loadCashAndBankData:S(h(u(()=>o.fetchCashAndBankData().pipe(v({next:t=>{console.log("response",t),B(e,i=>f(d({},i),{data:t}))},error:t=>{console.log("error",t)}})))))}}),K({onInit(e){e.loadCashAndBankLoader(),e.loadCashAndBankData()}}));var te=["class","page"],ne=e=>[e],ae=()=>["/pages/report/general-ledger"],oe=e=>({id:e});function ie(e,o){e&1&&(n(0,"tr")(1,"th"),r(2,"Code"),a(),n(3,"th"),r(4,"Name"),a(),n(5,"th",7),r(6,"Balance"),a()())}function re(e,o){if(e&1&&(n(0,"tr")(1,"td"),r(2),a(),n(3,"td")(4,"a",8),r(5),a()(),n(6,"td",7)(7,"a",9),r(8),x(9,"number"),a()()()),e&2){let t=o.$implicit;l(2),s(t.code),l(2),m("routerLink",_(8,ne,"/pages/chart-of-account/account/"+t.accountID)),l(),s(t.name),l(2),m("routerLink",T(10,ae))("queryParams",_(11,oe,t.accountID)),l(),s(k(9,6,t.balance))}}function le(e,o){if(e&1&&(n(0,"tr"),y(1,"td"),n(2,"td",10),r(3,"Total"),a(),n(4,"td",11),r(5),x(6,"number"),a()()),e&2){let t=g(2);l(5),P(" ",k(6,1,t.store.totalBalance())," ")}}function pe(e,o){e&1&&(n(0,"tr")(1,"td",12)(2,"span"),r(3,"No records found."),a()()())}function ce(e,o){if(e&1&&(n(0,"p-panel")(1,"p-table",6),C(2,ie,7,0,"ng-template",null,1,c)(4,re,10,13,"ng-template",null,2,c)(6,le,7,3,"ng-template",null,3,c)(8,pe,4,0,"ng-template",null,4,c),a()()),e&2){let t=g();l(),m("value",t.store.data())}}var X=(()=>{class e{constructor(){this.store=p(A),this.routeInfo=Y}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=b({type:e,selectors:[["app-cash-bank",8,"page"]],features:[M([A])],attrs:te,decls:3,vars:1,consts:[["content",""],["header",""],["body",""],["footer",""],["emptymessage",""],["pageTitle","Cash and Bank",3,"scrollable"],[3,"value"],[1,"text-end"],[1,"link","link-primary",3,"routerLink"],[1,"link","link-primary",3,"routerLink","queryParams"],[1,"fw-bold"],[1,"text-end","fw-bold"],["colspan","3"]],template:function(i,me){i&1&&(n(0,"app-main-panel",5),C(1,ce,10,1,"ng-template",null,0,c),a()),i&2&&m("scrollable",!0)},dependencies:[I,D,z,F,V,Q,J,R,L,j,N],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return e})();var Ke=[{path:"",component:X,children:[]}],Y={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{Ke as CASH_BANK_ROUTES,Y as CASH_BANK_ROUTE_PAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-WW5ELKKO.js";import{d as e}from"./chunk-Z45NTTES.js";import{ha as t}from"./chunk-JP6RBSB3.js";var m=(n,i)=>{let r=t(u),o=t(e);return!r.isAuthenticated()||r.isTokenExpired()||!r.checkAuthKeysExists()?(o.navigate(["/"],{queryParams:{returnUrl:i.url}}),!1):!0};export{m as a};
|