dealposbooks 5.33.2 → 5.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +15 -15
- package/{chunk-YDEVG4CR.js → chunk-2KERKGCG.js} +1 -1
- package/chunk-2NODLQR6.js +1 -0
- package/{chunk-BPAXVUBR.js → chunk-2YCI2ZLH.js} +1 -1
- package/{chunk-Q33XIUDN.js → chunk-3NU3P6NL.js} +1 -1
- package/{chunk-EDCDR4RJ.js → chunk-3VJJTR55.js} +1 -1
- package/{chunk-5R3XKSDM.js → chunk-4CDAAU6Z.js} +1 -1
- package/{chunk-42UIGXWH.js → chunk-4DOELXOP.js} +1 -1
- package/chunk-4QYZNOBR.js +160 -0
- package/chunk-4WMH4AEV.js +1 -0
- package/{chunk-EXGI2AG7.js → chunk-5E7SENLI.js} +1 -1
- package/{chunk-67VPWIWW.js → chunk-5FSMHZSY.js} +1 -1
- package/{chunk-R2SYW2WU.js → chunk-5MWVNA7L.js} +2 -2
- package/{chunk-KJ6CKUEI.js → chunk-5XDCBC5Q.js} +1 -1
- package/chunk-6DNEPPVS.js +129 -0
- package/chunk-6NTWTJMB.js +1 -0
- package/chunk-6OLVNISY.js +202 -0
- package/chunk-6XMT5N3G.js +1 -0
- package/{chunk-HHJMN4BS.js → chunk-AACWH3EJ.js} +1 -1
- package/{chunk-ABBBWSSO.js → chunk-B46T5XRJ.js} +1 -1
- package/{chunk-2CSSUKCF.js → chunk-BBQJC5RS.js} +1 -1
- package/chunk-BG6PUELE.js +1 -0
- package/{chunk-HICPZPJI.js → chunk-BGOI3WIG.js} +1 -1
- package/{chunk-VFEEFGWW.js → chunk-BLQJXMNV.js} +1 -1
- package/{chunk-6UGXXSQ3.js → chunk-BV4GM72W.js} +1 -1
- package/chunk-BY6QUHQI.js +1 -0
- package/{chunk-AZUQDRJU.js → chunk-DHW7UHFT.js} +1 -1
- package/{chunk-LRRVQSMI.js → chunk-DLUALPHU.js} +1 -1
- package/{chunk-PI5RBOCG.js → chunk-E7RUVUID.js} +1 -1
- package/chunk-ED5LANRC.js +1 -0
- package/{chunk-QYXQYPHB.js → chunk-EDGADVEY.js} +1 -1
- package/chunk-FIK2YCVV.js +1 -0
- package/{chunk-YOUPD27G.js → chunk-FLZXCWDU.js} +1 -1
- package/{chunk-GH5Z5SPB.js → chunk-FUZFAJGJ.js} +1 -1
- package/{chunk-FMVCTBCQ.js → chunk-G5S5AZA7.js} +4 -4
- package/{chunk-PKN47FQE.js → chunk-GDX5XEV3.js} +1 -1
- package/chunk-GDXGKHOL.js +1 -0
- package/chunk-GGVVJNM3.js +1 -0
- package/{chunk-4LGDNQMZ.js → chunk-H57SDRPH.js} +1 -1
- package/chunk-HIPJS62A.js +1 -0
- package/chunk-HJU5H3BY.js +1 -0
- package/chunk-HO4P24NF.js +1 -0
- package/chunk-ID36VIZQ.js +1 -0
- package/chunk-IDW6F2F3.js +1 -0
- package/chunk-IICRNXZ2.js +1 -0
- package/chunk-J7NE4FZG.js +1 -0
- package/chunk-JF4X2NRA.js +1 -0
- package/{chunk-JBSIAXM5.js → chunk-JMEBBWX4.js} +1 -1
- package/{chunk-FBEBMNVC.js → chunk-JTDJJORR.js} +1 -1
- package/{chunk-J4XRJAME.js → chunk-JYCUE5HV.js} +1 -1
- package/{chunk-WTBARN66.js → chunk-KL455HIW.js} +3 -3
- package/{chunk-JL2CN3ZY.js → chunk-LGRJSELQ.js} +1 -1
- package/{chunk-QCLAOAVG.js → chunk-LWLJZPBI.js} +1 -1
- package/{chunk-6NGIQJIP.js → chunk-LZUGPBFD.js} +1 -1
- package/chunk-MQDQSWR6.js +1 -0
- package/chunk-MXNRSORU.js +1 -0
- package/chunk-NEXPS7KD.js +1 -0
- package/{chunk-TVNXFJII.js → chunk-NJO5TWIA.js} +1 -1
- package/{chunk-RPPLUBX5.js → chunk-NMVZFOQ7.js} +1 -1
- package/chunk-NUTKQRB6.js +1 -0
- package/chunk-NXXA2OTE.js +1 -0
- package/chunk-OGLSZ3RG.js +1 -0
- package/chunk-OKCHQM5Q.js +2 -0
- package/{chunk-GY4LV6HX.js → chunk-PVXR4USB.js} +1 -1
- package/{chunk-YO23YVSC.js → chunk-Q23KXB3T.js} +1 -1
- package/chunk-QZUCPIZP.js +1 -0
- package/{chunk-6LENP6AB.js → chunk-RN2UFUFZ.js} +1 -1
- package/{chunk-OLOVFS3Y.js → chunk-S6X7PJAB.js} +1 -1
- package/{chunk-BMBVCXB4.js → chunk-SLHUSJER.js} +1 -1
- package/{chunk-EW3R2HAB.js → chunk-SVXDMOLP.js} +1 -1
- package/{chunk-BLJMNWUM.js → chunk-SY6XFKYM.js} +1 -1
- package/{chunk-33PMTNWY.js → chunk-T4EHT3H4.js} +1 -1
- package/chunk-TF5WKDAX.js +1 -0
- package/chunk-U2LBDVNR.js +1 -0
- package/{chunk-MWDWM2EU.js → chunk-UQZHGK5W.js} +1 -1
- package/chunk-UW2MQD5Q.js +130 -0
- package/{chunk-BDDB5AS7.js → chunk-VS7EWHRJ.js} +1 -1
- package/{chunk-NA5YXAMJ.js → chunk-VVUSFS6O.js} +1 -1
- package/chunk-WSOH6CXK.js +180 -0
- package/chunk-WURLP7FN.js +1 -0
- package/{chunk-C7LM5UCK.js → chunk-X22YKT5B.js} +1 -1
- package/{chunk-B7WHT2EP.js → chunk-XAWSZFE3.js} +4 -4
- package/chunk-XFEO3TKF.js +1 -0
- package/{chunk-SUYXXZHZ.js → chunk-XMMQFUBI.js} +1 -1
- package/chunk-XSPQTUYD.js +1 -0
- package/chunk-Y5C5TOKB.js +1 -0
- package/chunk-YDTKSUC7.js +1 -0
- package/{chunk-2PDTOOPI.js → chunk-YEUGY3NM.js} +1 -1
- package/chunk-YL2UL62U.js +7 -0
- package/{chunk-P7Z64VPC.js → chunk-YPBGL37O.js} +1 -1
- package/{chunk-HHDFSN55.js → chunk-YYDAQ7AW.js} +1 -1
- package/{chunk-YRCXWYJC.js → chunk-YYVQS5LF.js} +1 -1
- package/chunk-Z45NTTES.js +1 -0
- package/{chunk-253IFSMV.js → chunk-ZTEDQLOG.js} +1 -1
- package/index.html +35 -2
- package/main-JOMQDR5F.js +1 -0
- package/package.json +1 -1
- package/chunk-2WBUZJAU.js +0 -1
- package/chunk-452RR3Q5.js +0 -1
- package/chunk-4BWEZFB4.js +0 -1
- package/chunk-4W2QF5R5.js +0 -130
- package/chunk-5R5OXGVI.js +0 -1
- package/chunk-62S343UQ.js +0 -1
- package/chunk-6ACYDH2N.js +0 -1
- package/chunk-7MHKOL2S.js +0 -129
- package/chunk-AGLKA7OG.js +0 -1
- package/chunk-AWXT2WGR.js +0 -180
- package/chunk-B63BKC6F.js +0 -2
- package/chunk-GQWMJTTS.js +0 -1
- package/chunk-GYKMLBSE.js +0 -1
- package/chunk-HD2SASNC.js +0 -1
- package/chunk-HNPBGZU4.js +0 -1
- package/chunk-JMFWGTOZ.js +0 -1
- package/chunk-JT7FHN7T.js +0 -1
- package/chunk-LMNTEWLI.js +0 -1
- package/chunk-LRQ6Z4ZX.js +0 -1
- package/chunk-MNFWDRDS.js +0 -1
- package/chunk-N7OV4C3V.js +0 -1
- package/chunk-NI56PZU2.js +0 -1
- package/chunk-OD62LD7H.js +0 -160
- package/chunk-OLUQUWUK.js +0 -1
- package/chunk-P37DL4A6.js +0 -1
- package/chunk-PBN5IYNX.js +0 -1
- package/chunk-PDFK6YU3.js +0 -1
- package/chunk-Q25US4N2.js +0 -1
- package/chunk-QAQ2CXF3.js +0 -202
- package/chunk-RPZIOMLU.js +0 -1
- package/chunk-RVEUNKOZ.js +0 -1
- package/chunk-SHEVSJ34.js +0 -1
- package/chunk-U2WKXQQF.js +0 -1
- package/chunk-UEWFM35O.js +0 -1
- package/chunk-VAXEGESW.js +0 -1
- package/chunk-VXM4FDHN.js +0 -7
- package/chunk-Y6H6VNCN.js +0 -1
- package/chunk-ZGXJEG37.js +0 -1
- package/chunk-ZXCNQW44.js +0 -1
- package/main-GHHA6Y2C.js +0 -1
package/chunk-QAQ2CXF3.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import{a as J,b as yt}from"./chunk-UEWFM35O.js";import{a as xt}from"./chunk-G4XX7EU2.js";import{f as Ct}from"./chunk-EDCDR4RJ.js";import"./chunk-HHDFSN55.js";import{a as bt}from"./chunk-XKI7WLHE.js";import{a as ot}from"./chunk-6ACYDH2N.js";import"./chunk-C2GO6SPF.js";import{a as W,b as K}from"./chunk-O4QM64EH.js";import{d as ft,i as ht,j as gt,k as wt}from"./chunk-EW3R2HAB.js";import"./chunk-OLOVFS3Y.js";import"./chunk-QCLAOAVG.js";import"./chunk-Q33XIUDN.js";import{a as _e}from"./chunk-XKCLERWG.js";import"./chunk-PKN47FQE.js";import{a as ut,b as _t}from"./chunk-LRRVQSMI.js";import"./chunk-42UIGXWH.js";import"./chunk-NA5YXAMJ.js";import"./chunk-253IFSMV.js";import"./chunk-QYXQYPHB.js";import"./chunk-FBEBMNVC.js";import"./chunk-6NGIQJIP.js";import"./chunk-YDEVG4CR.js";import{h as dt}from"./chunk-AWXT2WGR.js";import{a as Je}from"./chunk-C7LM5UCK.js";import{a as nt,b as rt}from"./chunk-J4XRJAME.js";import{a as I,b as at,c as st,d as lt,e as pt,f as ct,g as mt}from"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{a as Ke,f as L,k as Xe,m as Ye,o as et,s as tt,w as $,x as it}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import{A as ue,B as Ge,D as je,L as qe,Ma as $e,Na as Z,Va as We,c as de,e as Ae,f as Be,l as He,na as Ze,o as Ne,v as Qe,y as ze}from"./chunk-FMVCTBCQ.js";import"./chunk-ZGXJEG37.js";import"./chunk-VFEEFGWW.js";import{c as Oe,d as se,f as le,h as pe,i as ce,k as me}from"./chunk-F2X3VGZZ.js";import{D as Re,F as Le,G as Me,c as G,f as j,h as Pe,m as q}from"./chunk-B63BKC6F.js";import{Ab as H,Ac as V,Bc as Ee,Cb as _,Fc as Ue,Ga as R,Jb as D,Kb as s,Mc as x,Nb as N,Ob as ee,Pb as xe,Qb as te,Sb as ie,Tb as ne,Ub as p,Vb as m,Vc as T,Wb as k,Wc as Fe,X as O,Xb as Ce,Yb as ye,Yc as P,Z as X,Zb as E,Zc as Ve,_b as S,ba as ge,c as M,ca as we,dc as b,ec as l,fc as ve,gb as a,gc as ke,ha as C,jc as U,kc as Q,lc as y,mc as v,pa as d,pc as Se,qa as u,qc as g,rc as F,sc as Te,ta as Y,uc as Ie,vc as re,wb as B,wc as oe,xb as be,xc as ae,yc as z,za as A,zc as De}from"./chunk-JP6RBSB3.js";import{a as f,b as h}from"./chunk-YQFG5XE2.js";var Tt={data:[],count:0,filter:{pagination:1,pageSize:10,groupID:null,text:""},meta:{filter:{pagination:1,pageSize:10,groupID:null,text:""},options:{groups:[]}},metaForm:{form:{id:"",groupID:""},options:{users:[],groups:[]}}},fe=at(mt("UserStore"),ct(Tt),st(t=>({first:P(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:P(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:P(()=>t.data().some(o=>o.checked)),checkedData:P(()=>t.data().filter(o=>o.checked).map(o=>o.userID)),selectedID:P(()=>t.data().find(o=>o.checked)?.userID||null)})),pt(t=>{let o=C(J);return{setFilter(n){I(t,i=>h(f({},i),{filter:n}))},onRowSelect(n){I(t,i=>{let r=i.data.map(c=>c.userID===n.userID?h(f({},c),{checked:!0}):c);return h(f({},i),{data:r})})},onRowUnselect(n){I(t,i=>{let r=i.data.map(c=>c.userID===n.userID?h(f({},c),{checked:!1}):c);return h(f({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");I(t,r=>{let c=r.data.map(w=>w.userName!==i?h(f({},w),{checked:n}):h(f({},w),{checked:!1}));return h(f({},r),{data:c})})},getUserLoader:W(M(O(()=>o.getUserLoaderList().pipe(K({next:n=>{I(t,i=>h(f({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:W(M(O(n=>o.getUserFormMeta(n).pipe(K({next:i=>{I(t,r=>h(f({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:W(M(O(n=>o.getUsers(n).pipe(K({next:i=>{I(t,r=>h(f({},r),{data:i.data.map(c=>h(f({},c),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),lt({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Et=["header"],Ut=["footer"],Ft=["content"],Vt=["closeicon"],Pt=["headless"],Rt=["maskRef"],Lt=["container"],Mt=["closeButton"],Ot=["*"],At=(t,o,e,n,i,r)=>({"p-drawer":!0,"p-drawer-active":t,"p-drawer-left":o,"p-drawer-right":e,"p-drawer-top":n,"p-drawer-bottom":i,"p-drawer-full":r}),Bt=(t,o)=>({transform:t,transition:o}),Ht=t=>({value:"visible",params:t});function Nt(t,o){t&1&&E(0)}function Qt(t,o){if(t&1&&_(0,Nt,1,0,"ng-container",4),t&2){let e=l(2);s("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function zt(t,o){t&1&&E(0)}function Gt(t,o){if(t&1&&(p(0,"div"),g(1),m()),t&2){let e=l(3);ee(e.cx("title")),a(),F(e.header)}}function jt(t,o){t&1&&k(0,"TimesIcon"),t&2&&D("data-pc-section","closeicon")}function qt(t,o){}function Zt(t,o){t&1&&_(0,qt,0,0,"ng-template")}function $t(t,o){if(t&1&&_(0,jt,1,1,"TimesIcon",8)(1,Zt,1,0,null,4),t&2){let e=l(4);s("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),a(),s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Wt(t,o){if(t&1){let e=S();p(0,"p-button",9),b("onClick",function(i){d(e);let r=l(3);return u(r.close(i))})("keydown.enter",function(i){d(e);let r=l(3);return u(r.close(i))}),_(1,$t,2,2,"ng-template",null,1,x),m()}if(t&2){let e=l(3);s("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),D("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Kt(t,o){t&1&&E(0)}function Jt(t,o){t&1&&E(0)}function Xt(t,o){if(t&1&&(Ce(0),p(1,"div",5),_(2,Jt,1,0,"ng-container",4),m(),ye()),t&2){let e=l(3);a(),s("ngClass",e.cx("footer")),D("data-pc-section","footer"),a(),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Yt(t,o){if(t&1&&(p(0,"div",5),_(1,zt,1,0,"ng-container",4)(2,Gt,2,3,"div",6)(3,Wt,3,5,"p-button",7),m(),p(4,"div",5),ke(5),_(6,Kt,1,0,"ng-container",4),m(),_(7,Xt,3,3,"ng-container",8)),t&2){let e=l(2);s("ngClass",e.cx("header")),D("data-pc-section","header"),a(),s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),a(),s("ngIf",e.header),a(),s("ngIf",e.showCloseIcon&&e.closable),a(),s("ngClass",e.cx("content")),D("data-pc-section","content"),a(2),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),a(),s("ngIf",e.footerTemplate||e._footerTemplate)}}function ei(t,o){if(t&1){let e=S();p(0,"div",3,0),b("@panelState.start",function(i){d(e);let r=l();return u(r.onAnimationStart(i))})("@panelState.done",function(i){d(e);let r=l();return u(r.onAnimationEnd(i))})("keydown",function(i){d(e);let r=l();return u(r.onKeyDown(i))}),_(2,Qt,1,1,"ng-container")(3,Yt,8,9),m()}if(t&2){let e=l();N(e.style),ee(e.styleClass),s("ngClass",Ue(9,At,e.visible,e.position==="left"&&!e.fullScreen,e.position==="right"&&!e.fullScreen,e.position==="top"&&!e.fullScreen,e.position==="bottom"&&!e.fullScreen,e.fullScreen||e.position==="full"))("@panelState",V(19,Ht,Ee(16,Bt,e.transformOptions,e.transitionOptions))),D("data-pc-name","sidebar")("data-pc-section","root"),a(2),xe(e.headlessTemplate||e._headlessTemplate?2:3)}}var ti=({dt:t})=>`
|
|
2
|
-
.p-drawer {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
pointer-events: auto;
|
|
6
|
-
transform: translate3d(0px, 0px, 0px);
|
|
7
|
-
position: fixed;
|
|
8
|
-
transition: transform 0.3s;
|
|
9
|
-
background: ${t("drawer.background")};
|
|
10
|
-
color: ${t("drawer.color")};
|
|
11
|
-
border: 1px solid ${t("drawer.border.color")};
|
|
12
|
-
box-shadow: ${t("drawer.shadow")};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.p-drawer-content {
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
flex-grow: 1;
|
|
18
|
-
padding: ${t("drawer.content.padding")};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-drawer-header {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
padding: ${t("drawer.header.padding")};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-drawer-footer {
|
|
30
|
-
padding: ${t("drawer.header.padding")};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.p-drawer-title {
|
|
34
|
-
font-weight: ${t("drawer.title.font.weight")};
|
|
35
|
-
font-size: ${t("drawer.title.font.size")};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.p-drawer-full .p-drawer {
|
|
39
|
-
transition: none;
|
|
40
|
-
transform: none;
|
|
41
|
-
width: 100vw !important;
|
|
42
|
-
height: 100vh !important;
|
|
43
|
-
max-height: 100%;
|
|
44
|
-
top: 0px !important;
|
|
45
|
-
left: 0px !important;
|
|
46
|
-
border-width: 1px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.p-drawer-left .p-drawer {
|
|
50
|
-
align-self: start;
|
|
51
|
-
width: 20rem;
|
|
52
|
-
height: 100%;
|
|
53
|
-
border-right-width: 1px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.p-drawer-right .p-drawer {
|
|
57
|
-
align-self: end;
|
|
58
|
-
width: 20rem;
|
|
59
|
-
height: 100%;
|
|
60
|
-
border-left-width: 1px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.p-drawer-top .p-drawer {
|
|
64
|
-
height: 10rem;
|
|
65
|
-
width: 100%;
|
|
66
|
-
border-bottom-width: 1px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-drawer-bottom .p-drawer {
|
|
70
|
-
height: 10rem;
|
|
71
|
-
width: 100%;
|
|
72
|
-
border-top-width: 1px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.p-drawer-left .p-drawer-content,
|
|
76
|
-
.p-drawer-right .p-drawer-content,
|
|
77
|
-
.p-drawer-top .p-drawer-content,
|
|
78
|
-
.p-drawer-bottom .p-drawer-content {
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.p-drawer-open {
|
|
84
|
-
display: flex;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-drawer-top {
|
|
88
|
-
justify-content: flex-start;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-drawer-bottom {
|
|
92
|
-
justify-content: flex-end;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-drawer {
|
|
96
|
-
position: fixed;
|
|
97
|
-
transition: transform 0.3s;
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.p-drawer-content {
|
|
103
|
-
position: relative;
|
|
104
|
-
overflow-y: auto;
|
|
105
|
-
flex-grow: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.p-drawer-header {
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-drawer-footer {
|
|
114
|
-
margin-top: auto;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.p-drawer-icon {
|
|
118
|
-
display: flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
justify-content: center;
|
|
121
|
-
margin-left: auto;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.p-drawer-left {
|
|
125
|
-
top: 0;
|
|
126
|
-
left: 0;
|
|
127
|
-
width: 20rem;
|
|
128
|
-
height: 100%;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.p-drawer-right {
|
|
132
|
-
top: 0;
|
|
133
|
-
right: 0;
|
|
134
|
-
width: 20rem;
|
|
135
|
-
height: 100%;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.p-drawer-top {
|
|
139
|
-
top: 0;
|
|
140
|
-
left: 0;
|
|
141
|
-
width: 100%;
|
|
142
|
-
height: 10rem;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.p-drawer-bottom {
|
|
146
|
-
bottom: 0;
|
|
147
|
-
left: 0;
|
|
148
|
-
width: 100%;
|
|
149
|
-
height: 10rem;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.p-drawer-full {
|
|
153
|
-
width: 100%;
|
|
154
|
-
height: 100%;
|
|
155
|
-
top: 0;
|
|
156
|
-
left: 0;
|
|
157
|
-
-webkit-transition: none;
|
|
158
|
-
transition: none;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.p-drawer-mask {
|
|
162
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
163
|
-
transition-duration: 0.2s;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.p-overlay-mask {
|
|
167
|
-
position: fixed;
|
|
168
|
-
top: 0;
|
|
169
|
-
left: 0;
|
|
170
|
-
width: 100%;
|
|
171
|
-
height: 100%;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.p-overlay-mask:dir(rtl) {
|
|
175
|
-
flex-direction: row-reverse;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.p-overlay-mask-enter {
|
|
179
|
-
animation: p-overlay-mask-enter-animation 150ms forwards;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.p-overlay-mask-leave {
|
|
183
|
-
animation: p-overlay-mask-leave-animation 150ms forwards;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@keyframes p-overlay-mask-enter-animation {
|
|
187
|
-
from {
|
|
188
|
-
background-color: transparent;
|
|
189
|
-
}
|
|
190
|
-
to {
|
|
191
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
@keyframes p-overlay-mask-leave-animation {
|
|
195
|
-
from {
|
|
196
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
197
|
-
}
|
|
198
|
-
to {
|
|
199
|
-
background-color: transparent;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
`,ii={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",flexDirection:"column",alignItems:t.position==="top"?"flex-start":t.position==="bottom"?"flex-end":"center"})},ni={mask:({instance:t})=>({"p-drawer-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen,[`p-drawer-${t.position}`]:!!t.position}),root:({instance:t})=>({"p-drawer p-component":!0,"p-drawer-full":t.fullScreen}),header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},vt=(()=>{class t extends We{name="drawer";theme=ti;classes=ni;inlineStyles=ii;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Y(t)))(i||t)}})();static \u0275prov=ge({token:t,factory:t.\u0275fac})}return t})();var ri=ce([le({transform:"{{transform}}",opacity:0}),se("{{transition}}")]),oi=ce([se("{{transition}}",le({transform:"{{transform}}",opacity:0}))]),he=(()=>{class t extends Ke{appendTo="body";blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;closeButtonProps={severity:"secondary",text:!0,rounded:!0};dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){if(this._position=e,e==="full"){this.transformOptions="none";return}switch(e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}header;maskStyle;closable=!0;onShow=new A;onHide=new A;visibleChange=new A;maskRef;containerViewChild;closeButtonViewChild;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;_componentStyle=C(vt);ngAfterViewInit(){super.ngAfterViewInit(),this.initialized=!0}headerTemplate;footerTemplate;contentTemplate;closeIconTemplate;headlessTemplate;_headerTemplate;_footerTemplate;_contentTemplate;_closeIconTemplate;_headlessTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.container.setAttribute(this.attrSelector,""),this.autoZIndex&&L.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll(".p-drawer-active"),n=e.length,i=n==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[n-1].style.zIndex)-1);this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",i),Ze(this.mask,"style",this.maskStyle),ue(this.mask,"p-overlay-mask p-drawer-mask p-overlay-mask-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.dismissible&&this.close(r)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&Ge())}disableModality(){this.mask&&(ue(this.mask,"p-overlay-mask-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&je(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener();break}}onAnimationEnd(e){switch(e.toState){case"void":this.hide(!1),L.clear(this.container),this.unbindGlobalListeners();break}}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):qe(this.appendTo,this.container))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.which==27&&parseInt(this.container.style.zIndex)===L.get(this.container)&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&L.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Y(t)))(i||t)}})();static \u0275cmp=B({type:t,selectors:[["p-drawer"]],contentQueries:function(n,i,r){if(n&1&&(U(r,Et,4),U(r,Ut,4),U(r,Ft,4),U(r,Vt,4),U(r,Pt,4),U(r,$e,4)),n&2){let c;y(c=v())&&(i.headerTemplate=c.first),y(c=v())&&(i.footerTemplate=c.first),y(c=v())&&(i.contentTemplate=c.first),y(c=v())&&(i.closeIconTemplate=c.first),y(c=v())&&(i.headlessTemplate=c.first),y(c=v())&&(i.templates=c)}},viewQuery:function(n,i){if(n&1&&(Q(Rt,5),Q(Lt,5),Q(Mt,5)),n&2){let r;y(r=v())&&(i.maskRef=r.first),y(r=v())&&(i.containerViewChild=r.first),y(r=v())&&(i.closeButtonViewChild=r.first)}},inputs:{appendTo:"appendTo",blockScroll:[2,"blockScroll","blockScroll",T],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",T],baseZIndex:[2,"baseZIndex","baseZIndex",Fe],modal:[2,"modal","modal",T],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",T],showCloseIcon:[2,"showCloseIcon","showCloseIcon",T],closeOnEscape:[2,"closeOnEscape","closeOnEscape",T],transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen",header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",T]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[z([vt]),H],ngContentSelectors:Ot,decls:1,vars:1,consts:[["container",""],["icon",""],["role","complementary",3,"ngClass","style","class","keydown",4,"ngIf"],["role","complementary",3,"keydown","ngClass"],[4,"ngTemplateOutlet"],[3,"ngClass"],[3,"class",4,"ngIf"],[3,"ngClass","buttonProps","ariaLabel","onClick","keydown.enter",4,"ngIf"],[4,"ngIf"],[3,"onClick","keydown.enter","ngClass","buttonProps","ariaLabel"]],template:function(n,i){n&1&&(ve(),_(0,ei,4,21,"div",2)),n&2&&s("ngIf",i.visible)},dependencies:[q,G,j,Pe,$,Je,Z],encapsulation:2,data:{animation:[Oe("panelState",[pe("void => visible",[me(ri)]),pe("visible => void",[me(oi)])])]},changeDetection:0})}return t})(),kt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=be({type:t});static \u0275inj=we({imports:[he,Z,Z]})}return t})();var si=["class","page"],St=t=>({"ng-invalid ng-dirty":t}),li=()=>({height:"calc(100vh - 70px)"}),pi=t=>({groupID:t});function ci(t,o){if(t&1){let e=S();p(0,"p-button",21),b("onClick",function(){d(e);let i=l(2);return u(i.onDeleteUser())}),m()}}function mi(t,o){if(t&1){let e=S();p(0,"p-button",22),b("onClick",function(){d(e);let i=l(2);return u(i.onHandleDrawer())}),m()}}function di(t,o){if(t&1&&(p(0,"div",18),_(1,ci,1,0,"p-button",19)(2,mi,1,0,"p-button",20),m()),t&2){let e=l();a(),s("ngIf",e.store.hasCheckedRows()),a(),s("ngIf",e.roleService.user.create)}}function ui(t,o){t&1&&(p(0,"th",26),k(1,"p-tableHeaderCheckbox"),m())}function _i(t,o){if(t&1&&(p(0,"tr"),_(1,ui,2,0,"th",25),p(2,"th"),g(3,"LoginID"),m(),p(4,"th"),g(5,"Group"),m()()),t&2){let e=l(2);a(),s("ngIf",e.roleService.user.delete)}}function fi(t,o){t&1&&E(0)}function hi(t,o){if(t&1&&k(0,"p-tableCheckbox",32),t&2){let e=l(3).$implicit;s("value",e)}}function gi(t,o){if(t&1&&_(0,hi,1,1,"p-tableCheckbox",31),t&2){let e=l(4);s("ngIf",e.roleService.user.delete)}}function wi(t,o){if(t&1&&(p(0,"td"),_(1,fi,1,0,"ng-container",30)(2,gi,1,1,"ng-template",null,7,x),m()),t&2){let e=Se(3),n=l().$implicit,i=l(2);a(),s("ngIf",i.roleService.user.delete&&n.userName===i.currentUser())("ngIfElse",e)}}function bi(t,o){if(t&1){let e=S();p(0,"tr"),_(1,wi,4,2,"td",27),p(2,"td")(3,"button",28),b("click",function(){let i=d(e).$implicit,r=l(2);return u(r.onEditUser(i))}),g(4),m()(),p(5,"td")(6,"a",29),g(7),m()()()}if(t&2){let e=o.$implicit,n=l(2);a(),s("ngIf",n.roleService.user.delete),a(2),s("disabled",!n.roleService.user.edit),a(),Te(" ",e.userName||e.userID," "),a(2),s("queryParams",V(5,pi,e.groupID)),a(),F(e.groupName)}}function xi(t,o){if(t&1&&g(0),t&2){let e=l(2);Ie(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function Ci(t,o){t&1&&(p(0,"tr")(1,"td",33)(2,"span"),g(3,"No users found. Try adjusting your filters or add a new user."),m()()())}function yi(t,o){if(t&1){let e=S();p(0,"p-panel")(1,"div",23),k(2,"app-user-tabs"),p(3,"p-table",24),b("onPage",function(i){d(e);let r=l();return u(r.onPageChange(i))})("onRowSelect",function(i){d(e);let r=l();return u(r.onRowSelect(i))})("onRowUnselect",function(i){d(e);let r=l();return u(r.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){d(e);let r=l();return u(r.onHeaderCheckboxToggle(i))}),_(4,_i,6,1,"ng-template",null,3,x)(6,bi,8,7,"ng-template",null,4,x)(8,xi,1,3,"ng-template",null,5,x)(10,Ci,4,0,"ng-template",null,6,x),m()()()}if(t&2){let e=l();N(De(9,li)),a(3),s("value",e.store.data())("lazy",!0)("paginator",!0)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function vi(t,o){if(t&1&&(p(0,"div",34)(1,"div",16)(2,"div",35)(3,"label",36),g(4,"Group"),m(),k(5,"p-select",37),m()()()),t&2){let e=l();s("formGroup",e.forms.filterForm),a(5),s("showClear",!0)("options",e.store.meta().options.groups)}}function ki(t,o){if(t&1&&(p(0,"span",38),g(1),m()),t&2){let e=l();a(),F(e.store.hasCheckedRows()?"Edit User":"Invite User")}}function Si(t,o){if(t&1&&(p(0,"small",14),g(1),m()),t&2){let e=o.$implicit;a(),F(e)}}function Ti(t,o){if(t&1&&(p(0,"small",14),g(1),m()),t&2){let e=o.$implicit;a(),F(e)}}var Pn=(()=>{class t extends bt{ngOnInit(){this.generateForm()}constructor(){Ve(()=>{this.store.metaForm()&&this.generateForm()}),super(),this.store=C(fe),this.fb=C(Qe),this.userService=C(J),this.isLoading=R(!1),this.form=null,this.isDrawerOpen=R(!1),this.router=C(Le),this.route=C(Re),this.isDialogFilterVisible=R(!1),this.roleService=C(ot),this.currentUser=R(null),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}ngAfterViewInit(){this.currentUser.set(localStorage.getItem("AUTH_USERNAME")||null)}onPageChange(e){this.store.setFilter(h(f({},this.store.filter()),{pagination:e.first/e.rows+1}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}generateForm(){this.forms={filterForm:this.fb.group({pagination:this.fb.control(1),pageSize:this.fb.control(10),groupID:this.fb.control(null)}),userForm:this.fb.group({id:this.fb.control({value:this.store.metaForm().form.id,disabled:this.store.metaForm().form.id!==xt},[de.required]),groupID:this.fb.control(this.store.metaForm().form.groupID,[de.required])})}}onHandleDrawer(){this.isDrawerOpen.update(e=>!e),this.store.getUserFormMeta(this.route.snapshot.params.id||null)}onInviteUser(){if(this.forms.userForm.invalid){this.forms.userForm.markAllAsTouched();return}let e=null;this.store.hasCheckedRows()?(console.log(this.store.checkedData()),e={id:this.store.checkedData()[0],groupID:this.forms.userForm.value.groupID}):e=this.forms.userForm.getRawValue(),this.userService.inviteUser(e).pipe(_e("User invited successfully"),X(()=>{this.onHandleDrawer(),this.store.setFilter(f({},this.store.filter())),this.forms.userForm.reset()})).subscribe()}onSearch(e){this.store.setFilter(h(f({},this.store.filter()),{text:e,pagination:1}))}onOKFilter(){if(this.forms.filterForm.invalid){this.forms.filterForm.markAllAsTouched();return}let{groupID:e}=this.forms.filterForm.value;this.store.setFilter(h(f({},this.store.filter()),{groupID:e})),this.isDialogFilterVisible.update(n=>!n)}onEditUser(e){this.store.onRowSelect(e),this.store.getUserFormMeta(this.store.selectedID()),this.isDrawerOpen.update(n=>!n)}onHideDrawer(){this.store.onHeaderCheckboxToggle(!1)}onDeleteUser(){let e=this.store.checkedData();this.userService.deleteUser(e).pipe(_e("User(s) deleted successfully"),X(()=>{this.store.setFilter(f({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=B({type:t,selectors:[["app-user",8,"page"]],features:[z([fe]),H],attrs:si,decls:27,vars:14,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["showCheckbox",""],["pageTitle","User List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible"],["position","right",3,"visibleChange","onHide","visible"],[1,"row","py-3","row-gap-3",3,"formGroup"],[1,"col-12"],["for","",1,"m-0"],["fluid","","filter","","filterBy","name","formControlName","id","optionLabel","loginID","optionValue","id","placeholder","Select a User",3,"disabled","options","ngClass"],[1,"text-danger"],["filter","","filterBy","name","formControlName","groupID","optionLabel","name","optionValue","id","placeholder","Select a Group","fluid","",3,"options","ngClass"],[1,"col"],["label","Submit",3,"onClick"],[1,"d-flex","gap-2","flex-wrap"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["label","Invite",3,"onClick",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["label","Invite",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","userID",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","scrollable","scrollHeight","rows","totalRecords"],["style","width: 4rem",4,"ngIf"],[2,"width","4rem"],[4,"ngIf"],[1,"btn","btn-link","fw-light","text-primary","p-0",2,"text-decoration","none",3,"click","disabled"],["routerLink","/pages/users/groups/forms",1,"link","link-primary",3,"queryParams"],[4,"ngIf","ngIfElse"],[3,"value",4,"ngIf"],[3,"value"],["colspan","3"],[1,"row",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["appendTo","body","formControlName","groupID","optionValue","id","optionLabel","name","placeholder","Select a Group",3,"showClear","options"],[1,"fs-5"]],template:function(n,i){if(n&1){let r=S();p(0,"app-main-panel",8),b("search",function(w){return d(r),u(i.onSearch(w))}),ae("isDialogFilterVisibleChange",function(w){return d(r),oe(i.isDialogFilterVisible,w)||(i.isDialogFilterVisible=w),u(w)}),b("filterConfirmed",function(){return d(r),u(i.onOKFilter())}),_(1,di,3,2,"ng-template",null,0,x)(3,yi,12,10,"ng-template",null,1,x)(5,vi,6,3,"ng-template",null,2,x),m(),p(7,"p-drawer",9),ae("visibleChange",function(w){return d(r),oe(i.isDrawerOpen,w)||(i.isDrawerOpen=w),u(w)}),b("onHide",function(){return d(r),u(i.onHideDrawer())}),_(8,ki,2,1,"ng-template",null,3,x),p(10,"div",10)(11,"div",11)(12,"div")(13,"label",12),g(14,"Users"),m(),k(15,"p-select",13),ie(16,Si,2,1,"small",14,te),m()(),p(18,"div",11)(19,"div")(20,"label",12),g(21,"Groups"),m(),k(22,"p-select",15),ie(23,Ti,2,1,"small",14,te),m()(),p(25,"div",16)(26,"p-button",17),b("onClick",function(){return d(r),u(i.onInviteUser())}),m()()()()}n&2&&(s("isSearchableInput",!0)("isFilterable",!0),re("isDialogFilterVisible",i.isDialogFilterVisible),a(7),re("visible",i.isDrawerOpen),a(3),s("formGroup",i.forms.userForm),a(5),s("disabled",i.store.hasCheckedRows())("options",i.store.metaForm().options.users)("ngClass",V(10,St,i.isInvalid("id","userForm"))),a(),ne(i.getErrors("id","userForm")),a(6),s("options",i.store.metaForm().options.groups)("ngClass",V(12,St,i.isInvalid("groupID","userForm"))),a(),ne(i.getErrors("id","userForm")))},dependencies:[dt,q,G,j,wt,ft,ht,gt,it,$,kt,he,ze,Ae,Be,He,Ne,et,Xe,Ye,tt,_t,ut,Ct,rt,nt,yt,Me],styles:['[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:"1rem 1.125rem"!important} .p-panel .p-panel-header{display:none!important}'],changeDetection:0})}}return t})();export{Pn as UserPageComponent};
|
package/chunk-RPZIOMLU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C,b as L}from"./chunk-GY4LV6HX.js";import"./chunk-2PDTOOPI.js";import"./chunk-Y6H6VNCN.js";import{a as E,b as V}from"./chunk-4LGDNQMZ.js";import"./chunk-5R3XKSDM.js";import{h as H}from"./chunk-AWXT2WGR.js";import{b as N,c as G}from"./chunk-C7LM5UCK.js";import{a as R,b as D}from"./chunk-J4XRJAME.js";import"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{w as j,x as O}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import"./chunk-FMVCTBCQ.js";import"./chunk-ZGXJEG37.js";import{a as I}from"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{i as $,m as F}from"./chunk-B63BKC6F.js";import{Cb as A,Jc as c,Kb as p,Kc as l,Mc as T,Nb as x,Ub as n,V as y,Vb as o,Wb as m,X as M,Z as S,_b as P,dc as h,ec as s,gb as a,h as v,ha as f,pa as g,qa as d,ra as b,s as u,sa as k,wb as B,yc as w,zc as _}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=P();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",l(3,2,e.countInBooks$)!==0)("pTooltip",l(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),m(3,"app-migration-cards",7),c(4,"async"),b(),n(5,"svg",8),m(6,"path",9),o(),k(),m(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,q)),a(),x(_(13,q)),a(2),p("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ue=(()=>{class i{constructor(){this.migrateService=f(C),this.toastr=f(I),this.refresh$=new v(void 0),this.pageTitle="Tax Account"}ngOnInit(){let e=this.refresh$.pipe(M(()=>this.migrateService.getTaxAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-tax-account"]],features:[w([C])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),A(1,J,5,6,"ng-template",null,0,T)(3,K,9,14,"ng-template",null,1,T),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,V,E,D,R,G,N,L,O,j],encapsulation:2})}}return i})();export{ue as TaxAccountComponent};
|
package/chunk-RVEUNKOZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x,b as L}from"./chunk-GY4LV6HX.js";import"./chunk-2PDTOOPI.js";import"./chunk-Y6H6VNCN.js";import{a as E,b as V}from"./chunk-4LGDNQMZ.js";import"./chunk-5R3XKSDM.js";import{h as H}from"./chunk-AWXT2WGR.js";import{b as N,c as G}from"./chunk-C7LM5UCK.js";import{a as R,b as D}from"./chunk-J4XRJAME.js";import"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{w as j,x as O}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import"./chunk-FMVCTBCQ.js";import"./chunk-ZGXJEG37.js";import{a as I}from"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{i as $,m as F}from"./chunk-B63BKC6F.js";import{Cb as A,Jc as c,Kb as p,Kc as s,Mc as C,Nb as h,Ub as n,V as v,Vb as o,Wb as l,X as T,Z as M,_b as B,dc as y,ec as m,gb as a,h as P,ha as f,pa as g,qa as d,ra as S,s as u,sa as b,wb as k,yc as w,zc as _}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=B();n(0,"div",3)(1,"p-button",4),y("onClick",function(){g(e);let r=m();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),y("onClick",function(){g(e);let r=m();return d(r.migratePaymentAccount())}),o()()}if(i&2){let e=m();a(2),p("disabled",s(3,2,e.countInBooks$)!==0)("pTooltip",s(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),c(4,"async"),S(),n(5,"svg",8),l(6,"path",9),o(),b(),l(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=m();h(_(12,q)),a(),h(_(13,q)),a(2),p("migrationCount",s(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",s(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ue=(()=>{class i{constructor(){this.migrateService=f(x),this.toastr=f(I),this.refresh$=new P(void 0),this.pageTitle="Payment Account"}ngOnInit(){let e=this.refresh$.pipe(T(()=>this.migrateService.getPaymentMethodAccountCount()),M(t=>console.log("API response:",t)),v(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatPaymentAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-payment-account"]],features:[w([x])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),A(1,J,5,6,"ng-template",null,0,C)(3,K,9,14,"ng-template",null,1,C),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,V,E,D,R,G,N,L,O,j],encapsulation:2})}}return i})();export{ue as PaymentAccountComponent};
|
package/chunk-SHEVSJ34.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,b as L}from"./chunk-GY4LV6HX.js";import"./chunk-2PDTOOPI.js";import"./chunk-Y6H6VNCN.js";import{a as I,b as E}from"./chunk-4LGDNQMZ.js";import"./chunk-5R3XKSDM.js";import{h as H}from"./chunk-AWXT2WGR.js";import{b as N,c as G}from"./chunk-C7LM5UCK.js";import{a as R,b as D}from"./chunk-J4XRJAME.js";import"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{w as V,x as j}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import"./chunk-FMVCTBCQ.js";import"./chunk-ZGXJEG37.js";import{a as F}from"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{i as w,m as $}from"./chunk-B63BKC6F.js";import{Cb as B,Jc as c,Kb as p,Kc as s,Mc as x,Nb as h,Ub as n,V as T,Vb as o,Wb as m,X as M,Z as S,_b as O,dc as _,ec as l,gb as a,h as y,ha as f,pa as g,qa as d,ra as b,s as u,sa as k,wb as A,yc as P,zc as C}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let t=O();n(0,"div",3)(1,"p-button",4),_("onClick",function(){g(t);let r=l();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),_("onClick",function(){g(t);let r=l();return d(r.onMigrateOutletAccount())}),o()()}if(i&2){let t=l();a(2),p("disabled",s(3,2,t.countInBooks$)!==0)("pTooltip",s(4,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),m(3,"app-migration-cards",7),c(4,"async"),b(),n(5,"svg",8),m(6,"path",9),o(),k(),m(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let t=l();h(C(12,q)),a(),h(C(13,q)),a(2),p("migrationCount",s(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),a(4),p("migrationCount",s(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var ut=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(F),this.refresh$=new y(void 0),this.pageTitle="Outlet Account"}ngOnInit(){let t=this.refresh$.pipe(M(()=>this.migrateService.getOutletAccountCount()),S(e=>console.log("API response:",e)),T(1));this.countInPOS$=t.pipe(u(e=>Number(e.pos))),this.countInBooks$=t.pipe(u(e=>Number(e.books)))}onMigrateOutletAccount(){this.migrateService.migrateOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=A({type:i,selectors:[["app-outlet-account"]],features:[P([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(e,r){e&1&&(n(0,"app-main-panel",2),B(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),o()),e&2&&p("pageTitle",r.pageTitle)},dependencies:[H,$,w,j,V,E,I,D,R,G,N,L],encapsulation:2})}}return i})();export{ut as OutletAccountComponent};
|
package/chunk-U2WKXQQF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,b as L}from"./chunk-GY4LV6HX.js";import"./chunk-2PDTOOPI.js";import"./chunk-Y6H6VNCN.js";import{a as I,b as E}from"./chunk-4LGDNQMZ.js";import"./chunk-5R3XKSDM.js";import{h as H}from"./chunk-AWXT2WGR.js";import{b as N,c as G}from"./chunk-C7LM5UCK.js";import{a as R,b as D}from"./chunk-J4XRJAME.js";import"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{w as V,x as j}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import"./chunk-FMVCTBCQ.js";import"./chunk-ZGXJEG37.js";import{a as F}from"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{i as O,m as $}from"./chunk-B63BKC6F.js";import{Cb as w,Jc as s,Kb as p,Kc as m,Mc as x,Nb as h,Ub as o,V as y,Vb as n,Wb as l,X as M,Z as b,_b as B,dc as C,ec as c,gb as a,h as T,ha as f,pa as g,qa as d,ra as S,s as u,sa as A,wb as k,yc as P,zc as _}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let t=B();o(0,"div",3)(1,"p-button",4),C("onClick",function(){g(t);let r=c();return d(r.onFormatCOA())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),C("onClick",function(){g(t);let r=c();return d(r.onMigrateCoaAccount())}),n()()}if(i&2){let t=c();a(2),p("disabled",m(3,2,t.countInBooks$)!==0)("pTooltip",m(4,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),s(4,"async"),S(),o(5,"svg",8),l(6,"path",9),n(),A(),l(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let t=c();h(_(12,q)),a(),h(_(13,q)),a(2),p("migrationCount",m(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),a(4),p("migrationCount",m(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var gt=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(F),this.refresh$=new T(void 0),this.pageTitle="Chart of Account"}ngOnInit(){let t=this.refresh$.pipe(M(()=>this.migrateService.getCOACount()),b(e=>console.log("API response:",e)),y(1));this.countInPOS$=t.pipe(u(e=>Number(e.pos))),this.countInBooks$=t.pipe(u(e=>Number(e.books)))}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormatCOA(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualCOA().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-chart-of-account"]],features:[P([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(e,r){e&1&&(o(0,"app-main-panel",2),w(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),n()),e&2&&p("pageTitle",r.pageTitle)},dependencies:[H,$,O,L,j,V,E,I,D,R,G,N],encapsulation:2})}}return i})();export{gt as ChartOfAccountComponent};
|
package/chunk-UEWFM35O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y,b as C,e as F,f as M}from"./chunk-EDCDR4RJ.js";import{b as T}from"./chunk-HHDFSN55.js";import{a as G}from"./chunk-ZGXJEG37.js";import{F as L,G as S,m as U}from"./chunk-B63BKC6F.js";import{Ac as g,Kb as n,Ob as l,Sb as m,Tb as f,Ub as a,Vb as p,ba as c,ec as h,gb as s,ha as i,qc as v,rc as b,wb as d}from"./chunk-JP6RBSB3.js";var $=(()=>{class t{constructor(){this.httpService=i(G)}getUserLoaderList(){return this.httpService.get(void 0,"api/UserLoader/List")}getUsers(e){return this.httpService.post(void 0,"api/User/List",e)}getUserFormMeta(e){return this.httpService.post(void 0,"api/UserLoader/Form",{ID:e})}inviteUser(e){return this.httpService.post(void 0,"api/User/Submit",e)}deleteUser(e){return this.httpService.post(void 0,"api/User/Delete",{ListID:e})}getGroupLoader(){return this.httpService.get(void 0,"api/UserGroupLoader/List")}getGroupList(e){return this.httpService.post(void 0,"api/UserGroup/List",e)}getGroupFormMeta(e){return this.httpService.get(void 0,e?`api/UserGroup/Form/${e}`:"api/UserGroup/Form")}assignGroupRole(e){return this.httpService.post(void 0,"api/UserGroup/AssignRole",e)}deleteGroup(e){return this.httpService.post(void 0,"api/UserGroup/Delete",{ListID:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var k=t=>({"ps-0":t}),x=(t,o)=>o.route;function _(t,o){if(t&1&&(a(0,"p-tab",2)(1,"span"),v(2),p()()),t&2){let e=o.$implicit,r=h();l(g(5,k,r.router.url.includes("forms"))),n("value",e.route)("routerLink",e.route),s(2),b(e.label)}}var B=(()=>{class t{constructor(){this.router=i(L),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}get activeTab(){return this.tabs.find(r=>this.router.url.startsWith(r.route)).route||this.tabs[0].route}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-user-tabs"]],decls:4,vars:1,consts:[[3,"value"],[3,"value","routerLink","class"],[3,"value","routerLink"]],template:function(r,u){r&1&&(a(0,"p-tabs",0)(1,"p-tablist"),m(2,_,3,7,"p-tab",1,x),p()()),r&2&&(n("value",u.activeTab),s(2),f(u.tabs))},dependencies:[M,F,y,C,S,T,U],styles:["[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:0 1.125rem .6rem 0!important}"],changeDetection:0})}}return t})();export{$ as a,B as b};
|
package/chunk-VAXEGESW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as p,N as c}from"./chunk-B63BKC6F.js";import{Kb as d,Ub as e,Vb as t,gb as i,qc as n,wb as m,zc as a}from"./chunk-JP6RBSB3.js";import"./chunk-YQFG5XE2.js";var s=()=>["/"],b=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=m({type:o,selectors:[["app-not-found"]],decls:10,vars:2,consts:[[1,"error-box"],[1,"error-body","text-center"],[1,"error-title","text-danger"],[1,"text-uppercase","error-subtitle"],[1,"text-muted","mt-4","mb-4"],[1,"btn","btn-danger","btn-rounded","mb-4",3,"routerLink"]],template:function(r,l){r&1&&(e(0,"div",0)(1,"div",1)(2,"h1",2),n(3,"404"),t(),e(4,"h3",3),n(5,"PAGE NOT FOUND !"),t(),e(6,"p",4),n(7," YOU SEEM TO BE TRYING TO FIND HIS WAY HOME "),t(),e(8,"a",5),n(9,"Back to home"),t()()()),r&2&&(i(8),d("routerLink",a(1,s)))},dependencies:[c,p],encapsulation:2})}}return o})();export{b as NotfoundComponent};
|
package/chunk-VXM4FDHN.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as Le,b as Ve}from"./chunk-HHJMN4BS.js";import{a as vt,b as ye}from"./chunk-2PDTOOPI.js";import"./chunk-Y6H6VNCN.js";import{a as Ie}from"./chunk-AGLKA7OG.js";import{b as St,c as Ct,d as yt}from"./chunk-KJ6CKUEI.js";import{a as Se,b as Ce}from"./chunk-YRCXWYJC.js";import"./chunk-YOUPD27G.js";import{b as xt}from"./chunk-YO23YVSC.js";import"./chunk-AZUQDRJU.js";import{a as le}from"./chunk-6ACYDH2N.js";import"./chunk-C2GO6SPF.js";import{a as N,b as q}from"./chunk-O4QM64EH.js";import{a as ft,b as gt,d as he,k as xe}from"./chunk-EW3R2HAB.js";import{a as fe,b as ge}from"./chunk-OLOVFS3Y.js";import"./chunk-QCLAOAVG.js";import"./chunk-Q33XIUDN.js";import{a as ht}from"./chunk-RPPLUBX5.js";import{a as be}from"./chunk-XKCLERWG.js";import{a as De,b as Fe}from"./chunk-4LGDNQMZ.js";import"./chunk-PKN47FQE.js";import{b as Te}from"./chunk-LRRVQSMI.js";import"./chunk-42UIGXWH.js";import"./chunk-NA5YXAMJ.js";import"./chunk-253IFSMV.js";import"./chunk-QYXQYPHB.js";import"./chunk-FBEBMNVC.js";import{d as dt}from"./chunk-6NGIQJIP.js";import"./chunk-YDEVG4CR.js";import{b as _e}from"./chunk-5R3XKSDM.js";import{f as _t,h as ue}from"./chunk-AWXT2WGR.js";import"./chunk-C7LM5UCK.js";import{a as Re,b as ae}from"./chunk-J4XRJAME.js";import{a as V,b as pe,c as me,d as ce,e as se,f as de,g as ut}from"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import{w as oe,x as re}from"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import{e as Q,f as Z,g as ct,i as G,k as ee,l as te,o as ie,t as st,v as we,y as ne}from"./chunk-FMVCTBCQ.js";import{a as mt}from"./chunk-ZGXJEG37.js";import{a as pt}from"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{D as lt,G as X,N as J,f as z,k as ot,l as U,m as $,r as rt,s as at}from"./chunk-B63BKC6F.js";import{Ac as w,Bc as tt,Cb as x,D as Ee,Ga as T,Jc as S,Kb as c,Kc as C,L as $e,Lc as it,Mc as d,Nb as Y,Pb as O,Qb as ke,Sb as Be,Tb as Oe,Ub as n,V as Xe,Vb as i,W as Je,Wb as L,X as P,Yc as R,Z as M,Zc as nt,_b as D,ba as Qe,c as A,cb as Ze,dc as I,ec as s,gb as p,ha as g,hc as et,pa as v,qa as b,qc as a,rc as _,s as Ue,sc as F,vc as H,wb as k,wc as j,xc as W,yc as K,zc as E}from"./chunk-JP6RBSB3.js";import{a as h,b as y,c as Me,e as ze}from"./chunk-YQFG5XE2.js";var B=(()=>{class t{constructor(){this.httpService=g(mt),this.authService=g(Ie)}fetchGeneralLedgerLoader(){return this.httpService.get(void 0,"api/GeneralLedgerLoader/GetFilter")}fetchGeneralLedgerReport(e){return this.httpService.post(void 0,"api/GeneralLedger/Get",e)}exportGeneralLedger(e){let o={responseType:"blob"};return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,o)}getCustomerSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:o})}getSupplierSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:o})}getCashierSuggestions(e){let o={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:o})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,o={}){let r=new at({fromObject:Object.fromEntries(Object.entries(e).map(([u,At])=>[u,String(At)]))}),m=new rt({"X-Timeout":"50000","X-Retry":"3","X-Retry-Delay":"2000","X-Exponential-Backoff":"true","X-Retry-On-500":"true","X-Retry-On-500-Message":"timeout expired"}),f=h({params:r,headers:m},o);return this.httpService.get(void 0,"/api/BalanceSheet",f)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,o={}){return this.httpService.post(void 0,"api/IncomeStatement/List",h({},e),o)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pt={metadata:{filter:{listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:0,contactID:""},options:{accounts:[],outlets:[],contactTypeOptions:[]},roles:{isInEmptyOutletRole:!1}},items:{data:[],pageTitle:""},filter:{listAccountID:[],from:null,to:null,listOutletID:[],listCategoryID:[],contactType:1,contactID:null}},Ge=pe(de(Pt),ut("General Ledger Store"),me(t=>({debitTotal:R(()=>t.items.data().reduce((l,e)=>l+e.data.reduce((o,r)=>o+(r.debitAmount||0),0),0)),creditTotal:R(()=>t.items.data().reduce((l,e)=>l+e.data.reduce((o,r)=>o+(r.creditAmount||0),0),0))})),se(t=>{let l=g(B),e={updateFilter:o=>{V(t,r=>y(h({},r),{filter:o}))},loadList:N(A(Ee(o=>o.listAccountID.length>0),P(o=>l.fetchGeneralLedgerReport(o).pipe(q({next:r=>{V(t,m=>y(h({},m),{items:r}))},error:r=>{console.error(r)}}))))),loadLoader:N(A(P(()=>l.fetchGeneralLedgerLoader().pipe(q({next:o=>{V(t,r=>y(h({},r),{metadata:o,filter:y(h({},r.filter),{listCategoryID:o.filter.listCategoryID})})),e.loadList(t.filter)},error:o=>{console.error(o)}})))))};return e}),ce({onInit:t=>{t.loadLoader()}}));var Nt=t=>["/pages/journal/journal-entry/",t],qt=()=>({scrollHeight:"250px"});function Ht(t,l){if(t&1){let e=D();n(0,"p-button",14),I("onClick",function(){v(e);let r=s(2);return b(r.onExport())}),i()}}function Yt(t,l){if(t&1&&(n(0,"div",11)(1,"a",12),a(2,"Return to Accounts"),i(),x(3,Ht,1,0,"p-button",13),i()),t&2){let e=s();p(3),c("ngIf",e.roleService.global.export)}}function Wt(t,l){if(t&1&&(n(0,"div",11)(1,"span",18)(2,"h2",19),a(3),i()(),n(4,"span",18)(5,"h2",19),a(6),i()()()),t&2){let e=s().$implicit;p(3),_(e.name),p(3),F(" (",e.chartOfAccountCode,") ")}}function Kt(t,l){t&1&&(n(0,"tr")(1,"th",20),a(2,"Outlet"),i(),n(3,"th",20),a(4,"No."),i(),n(5,"th",20),a(6,"Date"),i(),n(7,"th",20),a(8,"Name"),i(),n(9,"th",20),a(10,"Description"),i(),n(11,"th",21),a(12,"Debit"),i(),n(13,"th",22),a(14,"Credit"),i(),n(15,"th",22),a(16,"Balance"),i()())}function zt(t,l){if(t&1&&(n(0,"td",27),a(1,"Starting Balance"),i(),n(2,"td",28),a(3),S(4,"number"),i()),t&2){let e=s(2).$implicit;p(3),F(" ",C(4,1,e.startBalance)," ")}}function Ut(t,l){if(t&1&&(n(0,"tr"),x(1,zt,5,3),i(),n(2,"tr")(3,"td",23),a(4),i(),n(5,"td",23)(6,"a",24),a(7),i()(),n(8,"td",23),a(9),S(10,"date"),i(),n(11,"td",23)(12,"a",25),a(13),i()(),L(14,"td"),n(15,"td",26),a(16),S(17,"number"),i(),n(18,"td",26),a(19),S(20,"number"),i(),n(21,"td",26),a(22),S(23,"number"),i()()),t&2){let e=l.$implicit,o=l.rowIndex,r=s(4);p(),O(o===0&&r.store.items().data.length>0?1:-1),p(3),_(e.outletName),p(2),c("routerLink",w(19,Nt,e.id)),p(),_(e.number),p(2),_(it(10,10,e.date,"dd MMM yyyy")),p(3),c("href",r.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,Ze),p(),_(e.contactName),p(3),F(" ",C(17,13,e.debitAmount)," "),p(3),F(" ",C(20,15,e.creditAmount)," "),p(3),_(C(23,17,e.balance))}}function $t(t,l){if(t&1&&(n(0,"tr"),L(1,"td",29),n(2,"td",30),a(3,"Total"),i(),n(4,"td",30),a(5),S(6,"number"),i(),n(7,"td",30),a(8),S(9,"number"),i(),L(10,"td"),i()),t&2){let e=s().$index,o=s(3);p(5),F(" ",C(6,2,o.store.items().data[e].debitTotal)," "),p(3),F(" ",C(9,4,o.store.items().data[e].creditTotal)," ")}}function Xt(t,l){t&1&&(n(0,"tr")(1,"td",31)(2,"span"),a(3,"No records found."),i()()())}function Jt(t,l){if(t&1&&(n(0,"p-table",17),x(1,Wt,7,2,"ng-template",null,3,d)(3,Kt,17,0,"ng-template",null,4,d)(5,Ut,24,21,"ng-template",null,5,d)(7,$t,11,6,"ng-template",null,6,d)(9,Xt,4,0,"ng-template",null,7,d),i()),t&2){let e=l.$implicit;c("value",e.data)}}function Qt(t,l){if(t&1&&(n(0,"div",16),Be(1,Jt,11,1,"p-table",17,ke),i()),t&2){let e=s(2);p(),Oe(e.store.items().data)}}function Zt(t,l){if(t&1&&x(0,Qt,3,0,"div",15),t&2){let e=s();c("ngIf",e.store.items()&&e.store.items().data.length)}}function ei(t,l){if(t&1&&(n(0,"div",11)(1,"div",18)(2,"span",43),a(3),i()(),n(4,"div")(5,"span"),a(6,"-"),i()(),n(7,"div",18)(8,"span",44),a(9),i()()()),t&2){let e=l.$implicit;p(3),F("(",e.code,")"),p(6),_(e.name)}}function ti(t,l){if(t&1&&(n(0,"div",11)(1,"div",18)(2,"span",43),a(3),i()(),n(4,"div")(5,"span"),a(6,"-"),i()(),n(7,"div",18)(8,"span",44),a(9),i()()()),t&2){let e=l.$implicit;p(3),F("(",e.code,")"),p(6),_(e.name)}}function ii(t,l){if(t&1&&(n(0,"div",45)(1,"div"),a(2),i()()),t&2){let e=l.$implicit;p(2),_(e.value)}}function ni(t,l){if(t&1&&(n(0,"div",42),L(1,"p-radiobutton",46),n(2,"label",47),a(3),i()()),t&2){let e=l.$implicit;p(),c("value",e.key)("inputId",e.key),p(),et("for",e.key),p(),_(e.value)}}function oi(t,l){if(t&1){let e=D();n(0,"div",33)(1,"label",34),a(2,"Customer"),i(),n(3,"p-autocomplete",48),I("completeMethod",function(r){v(e);let m=s(2);return b(m.searchCustomer(r))}),i()()}if(t&2){let e=s(2);p(3),c("suggestions",e.customerSuggestions())}}function ri(t,l){if(t&1){let e=D();n(0,"div",33)(1,"label",34),a(2,"Supplier"),i(),n(3,"p-autocomplete",49),I("completeMethod",function(r){v(e);let m=s(2);return b(m.searchSupplier(r))}),i()()}if(t&2){let e=s(2);p(3),c("suggestions",e.supplierSuggestions())}}function ai(t,l){if(t&1){let e=D();n(0,"div",33)(1,"label",34),a(2,"Customer"),i(),n(3,"p-autocomplete",48),I("completeMethod",function(r){v(e);let m=s(2);return b(m.searchCustomer(r))}),i()()}if(t&2){let e=s(2);p(3),c("suggestions",e.customerSuggestions())}}function li(t,l){if(t&1){let e=D();n(0,"form",32)(1,"div",33)(2,"label",34),a(3,"Accounts"),i(),n(4,"p-multiselect",35),I("onChange",function(r){v(e);let m=s();return b(m.onAccountChange(r))}),x(5,ei,10,2,"ng-template",null,8,d)(7,ti,10,2,"ng-template",null,9,d),i()(),n(9,"div",33)(10,"label",34),a(11,"From"),i(),L(12,"p-datepicker",36),i(),n(13,"div",33)(14,"label",34),a(15,"To"),i(),L(16,"p-datepicker",37),i(),n(17,"div",33)(18,"label",34),a(19,"Outlets"),i(),n(20,"p-multiselect",38),x(21,ii,3,1,"ng-template",null,9,d),i()(),n(23,"div",33)(24,"label",34),a(25,"Category"),i(),n(26,"p-treeselect",39),I("onFocus",function(){v(e);let r=s();return b(r.onCategoryFocus())}),i()(),n(27,"div",33)(28,"label",40),a(29,"Contact Type"),i(),n(30,"div",41),Be(31,ni,4,4,"div",42,ke),i()(),x(33,oi,4,1,"div",33)(34,ri,4,1,"div",33)(35,ai,4,1,"div",33),i()}if(t&2){let e,o=s();c("formGroup",o.generalLedgerFilterForm),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("maxlength",5)("options",o.store.metadata().options.accounts),p(8),c("iconDisplay","input")("showIcon",!0),p(4),c("iconDisplay","input")("showIcon",!0),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",o.store.metadata().options.outlets),p(6),c("metaKeySelection",!1)("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",E(18,qt))("options",o.categoriesOptions()),p(5),Oe(o.store.metadata().options.contactTypeOptions),p(2),O((e=o.generalLedgerFilterForm.controls.contactType.value)===1?33:e===2?34:35)}}var Tt=(()=>{class t{constructor(){this.dialogFilterVisible=T(!1),this.reportService=g(B),this.coaService=g(ht),this.authService=g(Ie),this.store=g(Ge),this.roleService=g(le),this.categoriesOptions=T([]),this.customerSuggestions=T([]),this.supplierSuggestions=T([]),this.route=g(lt),this.dayjsService=g(ye),this.initDialogVisible=T(!0),this.fb=g(we),this.toastr=g(pt)}ngOnInit(){this.generateFilterForm(),this.route.queryParamMap.pipe(Ue(e=>({id:e.get("id"),to:e.get("to")})),M(({id:e,to:o})=>{let r=this.dayjsService.now.startOf("year").toDate();(e||o)&&(this.initDialogVisible.update(m=>!m),this.generalLedgerFilterForm.patchValue({listAccountID:[e],from:this.dayjsService.from(r)?this.dayjsService.from(r).toDate():null,to:this.dayjsService.from(o)?this.dayjsService.from(o).toDate():this.dayjsService.now.toDate()}),this.store.updateFilter(y(h({},this.store.filter()),{listAccountID:[e],from:this.dayjsService.from(r)?this.dayjsService.format(r):null,to:this.dayjsService.from(o)?this.dayjsService.format(o):this.dayjsService.format(this.dayjsService.now.toDate())})))})).subscribe(),this.clearContactValueOnContactTypeChange(),this.generalLedgerFilterForm.valueChanges.pipe($e(500),M(e=>{Array.isArray(e.listAccountID)&&e.listAccountID.length>0?this.generalLedgerFilterForm.controls.listCategoryID.disable():this.generalLedgerFilterForm.controls.listCategoryID.enable(),e.listCategoryID&&e.listCategoryID.filter(o=>o.key).length>0?this.generalLedgerFilterForm.controls.listAccountID.disable():this.generalLedgerFilterForm.controls.listAccountID.enable()})).subscribe()}clearContactValueOnContactTypeChange(){this.generalLedgerFilterForm.get("contactType")?.valueChanges.subscribe(()=>this.generalLedgerFilterForm.get("contactID")?.setValue(""))}onAccountChange(e){Array.isArray(e.value)&&e.value.length>5&&this.toastr.warning("Please select at least 5 accounts for the general ledger report.","Warning")}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(M(e=>this.categoriesOptions.set(e))).subscribe()}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({listAccountID:new G([]),listCategoryID:new G([]),listOutletID:new G([]),contactID:new G(""),from:new G(null),to:new G(null),contactType:new G(1)})}onFilterOKEvent(){let f=this.generalLedgerFilterForm.value,{from:e,to:o}=f,r=Me(f,["from","to"]);if(this.generalLedgerFilterForm.invalid){this.generalLedgerFilterForm.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let m={listCategoryID:r.listCategoryID?r.listCategoryID.map(u=>u.key):[],contactID:r.contactID.length===0?null:r.contactID,listOutletID:r.listOutletID?r.listOutletID:[],listAccountID:r.listAccountID?r.listAccountID:[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(o)?this.dayjsService.format(o):null,contactType:r.contactType};this.dialogFilterVisible.update(u=>!u),this.store.updateFilter(m),this.dialogFilterVisible.set(!1)}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(M(o=>this.customerSuggestions.set(o))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(M(o=>this.supplierSuggestions.set(o))).subscribe()}onExport(){let f=this.generalLedgerFilterForm.value,{from:e,to:o}=f,r=Me(f,["from","to"]),m={listCategoryID:r.listCategoryID?r.listCategoryID.map(u=>u.key):[],contactID:r.contactID.length===0?null:r.contactID,listOutletID:r.listOutletID?r.listOutletID:[],listAccountID:r.listAccountID?r.listAccountID:[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(o)?this.dayjsService.format(o):null,contactType:r.contactType};this.reportService.exportGeneralLedger(m).pipe(M(u=>{yt(u,`general-ledger-${this.dayjsService.now.format("D-MM-YYYY")}.${u.type.split("/")[1]}`,u.type)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-general-ledger"]],features:[K([Ge])],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["caption",""],["header",""],["body",""],["footer",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible","overflowScroll"],[1,"d-flex","gap-2"],["routerLink","/pages/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined","fs-3"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],["class","px-3 bg-white",4,"ngIf"],[1,"px-3","bg-white"],[3,"value"],[1,""],[1,"fs-5","fw-semibold"],[2,"width","10%"],[1,"text-end",2,"width","10%"],[1,"text-end",2,"width","20%"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],[1,"text-end","text-break"],["colspan","7",1,"text-end"],[1,"text-end"],["colspan","4"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"onChange","virtualScroll","virtualScrollItemSize","maxlength","options"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","display","chip","formControlName","listOutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","display","chip","selectionMode","multiple","filter","","filterBy","label","formControlName","listCategoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","metaKeySelection","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],[1,"d-flex","gap-3"],[1,"d-flex","align-items-center","gap-2"],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["name","contactType","formControlName","contactType",3,"value","inputId"],[1,"m-0",3,"for"],["formControlName","contactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(o,r){if(o&1){let m=D();n(0,"app-main-panel",10),W("isDialogFilterVisibleChange",function(u){return v(m),j(r.dialogFilterVisible,u)||(r.dialogFilterVisible=u),b(u)})("isInitDialogFilterVisibleChange",function(u){return v(m),j(r.initDialogVisible,u)||(r.initDialogVisible=u),b(u)}),I("filterConfirmed",function(){return v(m),b(r.onFilterOKEvent())}),x(1,Yt,4,1,"ng-template",null,0,d)(3,Zt,1,1,"ng-template",null,1,d)(5,li,36,19,"ng-template",null,2,d),i()}o&2&&(c("pageTitle",r.store.items().pageTitle.length?r.store.items().pageTitle:"General Ledger"),H("isDialogFilterVisible",r.dialogFilterVisible),c("isFilterable",!0),H("isInitDialogFilterVisible",r.initDialogVisible),c("overflowScroll",!0))},dependencies:[ue,$,z,U,ot,_e,xe,he,_t,re,oe,Te,ge,fe,Ve,Le,ne,ee,Q,Z,st,te,ie,Ce,Se,Fe,dt,Ct,St,xt,ae,J,X,gt,ft],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var pi={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},Ae=pe(de(pi),me(t=>{let l={totalCOGS:R(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((o,r)=>o+(r?.amount??0),0):0}),totalRevenue:R(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((o,r)=>o+(r?.amount??0),0):0}),totalExpense:R(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((o,r)=>o+(r?.amount??0),0):0}),grossProfit:R(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?l.totalRevenue()-l.totalCOGS():0),profitOrLoss:R(()=>l.totalRevenue()-l.totalCOGS()-l.totalExpense()),isDataEmpty:R(()=>Object.keys(t.data()?.data??{}).length===0)};return l}),se(t=>{let l=g(B),e=g(ye),o={updateFilter(r){V(t,m=>y(h({},m),{filter:h(h({},m.filter),r)}))},getLoader:N(A(P(()=>l.getIncomeStatementLoader().pipe(q({next:r=>{V(t,m=>y(h({},m),{loader:r,filter:y(h({},m.filter),{from:e.from(r.filter.from).format(),to:e.from(r.filter.to).format()})})),o.getIncomeStatement(t.filter)},error:r=>{console.error(r)}}))))),getIncomeStatement:N(A(P(r=>l.getIncomeStatement(r).pipe(Je(()=>V(t,m=>y(h({},m),{isLoading:!0}))),q({next:m=>{V(t,f=>y(h({},f),{data:m,isLoading:!1}))},error:m=>{console.error(m)}})))))};return o}),ce({onInit:t=>{t.getLoader()}}));var ci=()=>({height:"calc(100vh - 70px)"}),si=()=>({height:"calc(100vh - 150px)"}),Pe=()=>({}),je=t=>["/pages/chart-of-account/account/",t],Ne=()=>["/pages/report/general-ledger"],qe=t=>({id:t});function di(t,l){if(t&1){let e=D();n(0,"p-button",10),I("onClick",function(){v(e);let r=s(2);return b(r.onExport())}),i()}}function ui(t,l){if(t&1&&(n(0,"div",8),x(1,di,1,0,"p-button",9),i()),t&2){let e=s();p(),c("ngIf",e.roleService.global.export)}}function _i(t,l){t&1&&(n(0,"tr")(1,"th",15),a(2,"Code"),i(),n(3,"th",16),a(4,"Name"),i(),n(5,"th",17),a(6,"Total"),i()())}function fi(t,l){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",18),a(5),i()(),n(6,"td",17)(7,"a",19),a(8),S(9,"number"),i()()()),t&2){let e=l.$implicit;p(2),_(e.code),p(2),c("routerLink",w(8,je,e.accountID)),p(),_(e.name),p(2),c("routerLink",E(10,Ne))("queryParams",w(11,qe,e.accountID)),p(),_(C(9,6,e.amount))}}function gi(t,l){if(t&1&&(n(0,"tr")(1,"td",20)(2,"div",21)(3,"span",22),a(4,"Total Revenue :"),i(),n(5,"span",23),a(6),S(7,"number"),i()()()()),t&2){let e=s(4);p(6),_(C(7,1,e.store.totalRevenue()))}}function hi(t,l){t&1&&(n(0,"tr")(1,"td",24)(2,"span"),a(3,"No revenue records available"),i()()())}function xi(t,l){if(t&1&&(n(0,"h6",13),a(1,"Revenue"),i(),n(2,"p-table",14),x(3,_i,7,0,"ng-template",null,3,d)(5,fi,10,13,"ng-template",null,4,d)(7,gi,8,3,"ng-template",null,5,d)(9,hi,4,0,"ng-template",null,6,d),i()),t&2){let e,o=s(3);p(2),c("value",(e=o.store.data())==null||e.data==null?null:e.data.revenue)}}function Si(t,l){t&1&&(n(0,"tr")(1,"th",15),a(2,"Code"),i(),n(3,"th",16),a(4,"Name"),i(),n(5,"th",25),a(6,"Total"),i()())}function Ci(t,l){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",18),a(5),i()(),n(6,"td",17)(7,"a",19),a(8),S(9,"number"),i()()()),t&2){let e=l.$implicit;p(2),_(e.code),p(2),c("routerLink",w(8,je,e.accountID)),p(),_(e.name),p(2),c("routerLink",E(10,Ne))("queryParams",w(11,qe,e.AccountID)),p(),_(C(9,6,e.amount))}}function yi(t,l){if(t&1&&(n(0,"tr")(1,"td",20)(2,"div",21)(3,"span",22),a(4,"Total COGS :"),i(),n(5,"span",23),a(6),S(7,"number"),i()()()(),n(8,"tr")(9,"td",20)(10,"div",21)(11,"span",22),a(12,"Gross Profit :"),i(),n(13,"span",23),a(14),S(15,"number"),i()()()()),t&2){let e=s(4);p(6),_(C(7,2,e.store.totalCOGS())),p(8),_(C(15,4,e.store.grossProfit()))}}function vi(t,l){t&1&&(n(0,"tr")(1,"td",24)(2,"span"),a(3,"No COGS records available"),i()()())}function bi(t,l){if(t&1&&(n(0,"h4",13),a(1,"COGS"),i(),n(2,"p-table",14),x(3,Si,7,0,"ng-template",null,3,d)(5,Ci,10,13,"ng-template",null,4,d)(7,yi,16,6,"ng-template",null,5,d)(9,vi,4,0,"ng-template",null,6,d),i()),t&2){let e,o=s(3);p(2),c("value",(e=o.store.data())==null||e.data==null?null:e.data.cogs)}}function Ei(t,l){t&1&&(n(0,"tr")(1,"th",15),a(2,"Code"),i(),n(3,"th",16),a(4,"Name"),i(),n(5,"th",17),a(6,"Total"),i()())}function Ii(t,l){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",18),a(5),i()(),n(6,"td",17)(7,"a",19),a(8),S(9,"number"),i()()()),t&2){let e=l.$implicit;p(2),_(e.code),p(2),c("routerLink",w(8,je,e.accountID)),p(),_(e.name),p(2),c("routerLink",E(10,Ne))("queryParams",w(11,qe,e.AccountID)),p(),_(C(9,6,e.amount))}}function wi(t,l){if(t&1&&(n(0,"tr")(1,"td",20)(2,"div",21)(3,"span",22),a(4,"Total Expense :"),i(),n(5,"span",23),a(6),S(7,"number"),i()()()(),n(8,"tr")(9,"td",20)(10,"div",21)(11,"span",22),a(12,"Profit / Loss :"),i(),n(13,"span",23),a(14),S(15,"number"),i()()()()),t&2){let e=s(4);p(6),_(C(7,2,e.store.totalExpense())),p(8),_(C(15,4,e.store.profitOrLoss()))}}function Di(t,l){t&1&&(n(0,"tr")(1,"td",24)(2,"span"),a(3,"No expense records available"),i()()())}function Fi(t,l){if(t&1&&(n(0,"h4",13),a(1,"Expense"),i(),n(2,"p-table",14),x(3,Ei,7,0,"ng-template",null,3,d)(5,Ii,10,13,"ng-template",null,4,d)(7,wi,16,6,"ng-template",null,5,d)(9,Di,4,0,"ng-template",null,6,d),i()),t&2){let e,o=s(3);p(2),c("value",(e=o.store.data())==null||e.data==null?null:e.data.expense)}}function Ri(t,l){if(t&1&&(n(0,"p-scroll-panel")(1,"div",12),x(2,xi,11,1)(3,bi,11,1)(4,Fi,11,1),i()()),t&2){let e,o,r,m=s(2);Y(E(5,si)),p(2),O(m.Object.keys((e=m.store.data().data)!==null&&e!==void 0?e:E(6,Pe)).length>0?2:-1),p(),O(m.Object.keys((o=(o=m.store.data().data)==null?null:o.cogs)!==null&&o!==void 0?o:E(7,Pe)).length>0?3:-1),p(),O(m.Object.keys((r=(r=m.store.data().data)==null?null:r.expense)!==null&&r!==void 0?r:E(8,Pe)).length>0?4:-1)}}function Ti(t,l){if(t&1&&(n(0,"p-panel"),x(1,Ri,5,9,"p-scroll-panel",11),i()),t&2){let e=s();Y(E(3,ci)),p(),c("ngIf",e.store.data())}}function Li(t,l){if(t&1){let e=D();n(0,"form",26)(1,"div",27)(2,"label",28),a(3,"Outlet"),i(),L(4,"p-multiselect",29),i(),n(5,"div",27)(6,"label",28),a(7,"Cashier"),i(),n(8,"p-autocomplete",30),I("completeMethod",function(r){v(e);let m=s();return b(m.onCashierSearch(r))})("onSelect",function(r){v(e);let m=s();return b(m.onCashierSelect(r))}),i()(),n(9,"div",27)(10,"label",28),a(11,"From"),i(),L(12,"p-datepicker",31),i(),n(13,"div",27)(14,"label",28),a(15,"To"),i(),L(16,"p-datepicker",32),i()()}if(t&2){let e=s();c("formGroup",e.formFilter),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),p(4),c("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0)}}var Lt=(()=>{class t{constructor(){this.dayjsService=g(ye),this.store=g(Ae),this.fb=g(we),this.reportService=g(B),this.roleService=g(le),this.isInitDialogFilterVisible=T(!1),this.dialogFilterVisible=T(!1),this.cashierSuggestions=T([]),this.cashierHashMap=new Map,this.Object=Object,nt(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm(),console.log(this.cashierHashMap.entries())}onSearch(e){this.store.updateFilter(y(h({},this.store.filter()),{Text:e}))}onCashierSearch(e){this.reportService.getCashierSuggestions(e.query).pipe(be("Cashier Suggestions"),M(o=>this.cashierSuggestions.set(o))).subscribe()}initForm(){let e=this.store.filter();console.log("initForm",this.cashierHashMap.get(e.CashierID)),this.formFilter=this.fb.group({EntityID:this.fb.control(e.EntityID??[]),CashierID:this.fb.control(this.cashierHashMap.get(e.CashierID)??""),Text:this.fb.control(e.Text??""),from:this.fb.control(e.from?this.dayjsService.from(e.from).toDate():null),to:this.fb.control(e.to?this.dayjsService.from(e.to).toDate():null)})}onFilterOK(){let e=this.formFilter.getRawValue(),o=Object.entries(e).reduce((r,[m,f])=>(m==="from"||m==="to"?f instanceof Date&&(r[m]=this.dayjsService.from(f).format()):r[m]=f||null,r),{});this.store.updateFilter(h(h({},this.store.filter()),o)),this.dialogFilterVisible.update(r=>!r),console.log("body",e)}onCashierSelect(e){console.log("Cashier selected:",e),!this.cashierHashMap.has(e.value.Key)&&(this.cashierHashMap.set(e.value.Key,e.value.Value),console.log("Cashier HashMap:",this.cashierHashMap))}onExport(){let e=y(h({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.reportService.getIncomeStatement(e,{responseType:"blob"}).pipe(be("Export Profit & Loss"),M(o=>{let r=o.type,m=[o],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:r}));let u=`profit-and-loss.${r.split("/")[1]}`;f.setAttribute("download",u),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-income-statement"]],features:[K([Ae])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold"],[3,"value"],[2,"width","20%"],[2,"width","30%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","3",1,"text-end","fw-semibold"],[1,"row"],[1,"col"],[1,"col-1","col-lg-2"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],[1,"d-flex","flex-column","gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["formControlName","EntityID","filterBy","value","appendTo","body","display","chip","optionLabel","value","optionValue","key","placeholder","Select an Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["appendTo","body","formControlName","CashierID","optionLabel","Value","optionValue","Key","styleClass","w-100","inputStyleClass","w-100","field","Value","placeholder","Search a cashier",3,"completeMethod","onSelect","showClear","suggestions"],["formControlName","from","styleClass","w-100","appendTo","body"],["formControlName","to","styleClass","w-100","appendTo","body"]],template:function(o,r){if(o&1){let m=D();n(0,"app-main-panel",7),W("isDialogFilterVisibleChange",function(u){return v(m),j(r.dialogFilterVisible,u)||(r.dialogFilterVisible=u),b(u)})("isInitDialogFilterVisibleChange",function(u){return v(m),j(r.isInitDialogFilterVisible,u)||(r.isInitDialogFilterVisible=u),b(u)}),I("filterConfirmed",function(){return v(m),b(r.onFilterOK())}),x(1,ui,2,1,"ng-template",null,0,d)(3,Ti,2,4,"ng-template",null,1,d)(5,Li,17,8,"ng-template",null,2,d),i()}o&2&&(c("isFilterable",!0)("pageTitle",r.store.data().pageTitle),H("isDialogFilterVisible",r.dialogFilterVisible)("isInitDialogFilterVisible",r.isInitDialogFilterVisible))},dependencies:[ue,$,z,U,Te,ge,fe,ne,ee,Q,Z,te,ie,Ce,Se,_e,xe,he,ae,Re,De,J,X,Ve,Le,re,oe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var He=ze(vt());var Vi={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,He.default)().format("YYYY-MM-DD"),listOutletParam:[]}},Ye=pe(de(Vi),me(t=>({totalAsset:R(()=>t.data().asset.reduce((l,e)=>l+ +e.amount,0)),totalLiability:R(()=>t.data().liability.reduce((l,e)=>l+ +e.counterAmount,0)),totalEquity:R(()=>t.data().equity.reduce((l,e)=>l+ +e.counterAmount,0))})),se(t=>{let l=g(B),e={updateFilter:o=>{V(t,r=>y(h({},r),{filter:o}))},fetchBalanceSheet:N(A(Ee(()=>{let o=t.filter();return Object.entries(o).every(([r,m])=>m!=null&&m!=="")}),P(o=>l.getBalanceSheet(o).pipe(q({next:r=>{V(t,m=>y(h({},m),{data:r}))},error:r=>{console.error(r)}}))),Xe(1))),fetchLoader:N(A(P(()=>l.getBalanceSheetLoader().pipe(q({next:o=>{V(t,r=>y(h({},r),{metadata:o,filter:{date:(0,He.default)(o.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:o=>{console.error(o)}})))))};return e}),ce(t=>({onInit:()=>{t.fetchLoader()}})));var Vt=ze(vt());var Mi=()=>({height:"calc(100vh - 70px)"}),ki=()=>({height:"calc(100vh - 100px)"}),We=t=>["/pages/chart-of-account/account/",t],Ke=()=>["/pages/report/general-ledger"],Bi=(t,l)=>({id:t,to:l}),Mt=t=>({id:t});function Oi(t,l){if(t&1){let e=D();n(0,"p-button",11),I("onClick",function(){v(e);let r=s(2);return b(r.onExport())}),i()}}function Gi(t,l){if(t&1&&(n(0,"div",9),x(1,Oi,1,0,"p-button",10),i()),t&2){let e=s();p(),c("ngIf",e.roleService.global.export)}}function Ai(t,l){t&1&&(n(0,"tr")(1,"th",16),a(2,"Code"),i(),n(3,"th"),a(4,"Asset"),i(),n(5,"th",17),a(6,"Total"),i()())}function Pi(t,l){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",18),a(5),i()(),n(6,"td",19)(7,"a",20),a(8),S(9,"number"),i()()()),t&2){let e=l.$implicit,o=s(3);p(2),_(e.code),p(2),c("routerLink",w(8,We,e.accountID)),p(),_(e.name),p(2),c("routerLink",E(10,Ke))("queryParams",tt(11,Bi,e.accountID,o.store.filter().date)),p(),_(C(9,6,e.amount))}}function ji(t,l){if(t&1&&(n(0,"tr")(1,"td",21),a(2,"Total Asset"),i(),n(3,"td",22),a(4),S(5,"number"),i()()),t&2){let e=s(3);p(4),F(" ",C(5,1,e.store.totalAsset())," ")}}function Ni(t,l){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),a(3,"No asset records found."),i()()())}function qi(t,l){if(t&1&&(n(0,"h4",14),a(1,"Asset"),i(),n(2,"p-table",15),x(3,Ai,7,0,"ng-template",null,3,d)(5,Pi,10,14,"ng-template",null,4,d)(7,ji,6,3,"ng-template",null,5,d)(9,Ni,4,0,"ng-template",null,6,d),i()),t&2){let e=s(2);p(2),c("value",e.store.data().asset)}}function Hi(t,l){t&1&&(n(0,"tr")(1,"th",16),a(2,"Code"),i(),n(3,"th"),a(4,"Liability"),i(),n(5,"th",17),a(6,"Total"),i()())}function Yi(t,l){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",25),a(5),i()(),n(6,"td",19)(7,"a",20),a(8),S(9,"number"),i()()()),t&2){let e=l.$implicit;p(2),_(e.code),p(2),c("routerLink",w(8,We,e.accountID)),p(),_(e.name),p(2),c("routerLink",E(10,Ke))("queryParams",w(11,Mt,e.accountID)),p(),_(C(9,6,e.counterAmount))}}function Wi(t,l){if(t&1&&(n(0,"tr")(1,"td",21),a(2," Total Liability "),i(),n(3,"td",22),a(4),S(5,"number"),i()()),t&2){let e=s(3);p(4),F(" ",C(5,1,e.store.totalLiability())," ")}}function Ki(t,l){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),a(3,"No liability records found."),i()()())}function zi(t,l){if(t&1&&(n(0,"h4",24),a(1,"Liability"),i(),n(2,"p-table",15),x(3,Hi,7,0,"ng-template",null,3,d)(5,Yi,10,13,"ng-template",null,4,d)(7,Wi,6,3,"ng-template",null,5,d)(9,Ki,4,0,"ng-template",null,6,d),i()),t&2){let e=s(2);p(2),c("value",e.store.data().liability)}}function Ui(t,l){t&1&&(n(0,"tr")(1,"th",16),a(2,"Code"),i(),n(3,"th"),a(4,"Equity"),i(),n(5,"th",17),a(6,"Total"),i()())}function $i(t,l){if(t&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"a",18),a(5),i()(),n(6,"td",19)(7,"a",20),a(8),S(9,"number"),i()()()),t&2){let e=l.$implicit;p(2),_(e.code),p(2),c("routerLink",w(8,We,e.accountID)),p(),_(e.name),p(2),c("routerLink",E(10,Ke))("queryParams",w(11,Mt,e.accountID)),p(),_(C(9,6,e.counterAmount))}}function Xi(t,l){if(t&1&&(n(0,"tr")(1,"td",21),a(2,"Total Equity"),i(),n(3,"td",22),a(4),S(5,"number"),i()(),n(6,"tr")(7,"td",21),a(8," Total Liability + Equity "),i(),n(9,"td",22),a(10),S(11,"number"),i()()),t&2){let e=s(3);p(4),F(" ",C(5,2,e.store.totalEquity())," "),p(6),F(" ",C(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function Ji(t,l){t&1&&(n(0,"tr")(1,"td",23)(2,"span"),a(3,"No equity records found."),i()()())}function Qi(t,l){if(t&1&&(n(0,"h4",24),a(1,"Equity"),i(),n(2,"p-table",15),x(3,Ui,7,0,"ng-template",null,3,d)(5,$i,10,13,"ng-template",null,4,d),a(7," <"),x(8,Xi,12,6,"ng-template",null,5,d)(10,Ji,4,0,"ng-template",null,6,d),i()),t&2){let e=s(2);p(2),c("value",e.store.data().equity)}}function Zi(t,l){if(t&1&&(n(0,"p-panel",12)(1,"p-scroll-panel")(2,"div",13),x(3,qi,11,1)(4,zi,11,1)(5,Qi,12,1),i()()()),t&2){let e=s();Y(E(8,Mi)),c("showHeader",!1),p(),Y(E(9,ki)),p(2),O(e.Object.keys(e.store.data().asset).length>0?3:-1),p(),O(e.Object.keys(e.store.data().liability).length>0?4:-1),p(),O(e.Object.keys(e.store.data().equity).length>0?5:-1)}}function en(t,l){if(t&1&&(n(0,"div",31)(1,"div"),a(2),i()()),t&2){let e=l.$implicit;p(2),_(e.value)}}function tn(t,l){if(t&1&&(n(0,"form",26)(1,"div",27)(2,"label",28),a(3,"Outlet"),i(),n(4,"p-multiselect",29),x(5,en,3,1,"ng-template",null,7,d),i()(),n(7,"div",27)(8,"label",28),a(9,"From"),i(),L(10,"p-datepicker",30),i()()),t&2){let e=s();c("formGroup",e.filterForm),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),p(6),c("iconDisplay","input")("showIcon",!0)}}var kt=(()=>{class t{constructor(){this.store=g(Ye),this.ReportServiceStore=g(B),this.dialogFilterVisible=T(!1),this.isInitDialogFilterVisible=T(!1),this.roleService=g(le),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new ct({date:new G(new Date),outletID:new G([])})}onFilterOKEvent(){let{date:e,outletID:o}=this.filterForm.value;this.store.updateFilter({date:(0,Vt.default)(e).format("YYYY-MM-DD"),listOutletParam:o}),this.dialogFilterVisible.update(r=>!r)}onExport(){let e=y(h({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(be("Export Balance Sheet"),M(o=>{let r=o.type,m=[o],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:r}));let u=`balance-sheet.${r.split("/")[1]}`;f.setAttribute("download",u),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-balance-sheet"]],features:[K([Ye])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"showHeader"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold","mt-3"],[3,"value"],[2,"width","20%"],[1,"text-end",2,"width","5%"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"fw-semibold","text-end"],[1,"text-end","fw-semibold"],["colspan","3",1,""],[1,"fs-5","fw-semibold"],["target","_blank",1,"link","link-primary","d-flex","align-items-center",3,"routerLink"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","display","chip","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(o,r){if(o&1){let m=D();n(0,"app-main-panel",8),W("isDialogFilterVisibleChange",function(u){return v(m),j(r.dialogFilterVisible,u)||(r.dialogFilterVisible=u),b(u)})("isInitDialogFilterVisibleChange",function(u){return v(m),j(r.isInitDialogFilterVisible,u)||(r.isInitDialogFilterVisible=u),b(u)}),I("filterConfirmed",function(){return v(m),b(r.onFilterOKEvent())}),x(1,Gi,2,1,"ng-template",null,0,d)(3,Zi,6,10,"ng-template",null,1,d)(5,tn,11,7,"ng-template",null,2,d),i()}o&2&&(c("pageTitle",r.store.data().pageTitle)("isFilterable",!0),H("isDialogFilterVisible",r.dialogFilterVisible)("isInitDialogFilterVisible",r.isInitDialogFilterVisible))},dependencies:[ue,$,z,U,xe,he,_e,re,oe,ne,ee,Q,Z,te,ie,Ce,Se,ge,fe,Fe,De,ae,Re,J,X],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Bt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(o,r){o&1&&(n(0,"p"),a(1,"report-comparative-balance works!"),i(),a(2,`
|
|
2
|
-
,
|
|
3
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(o,r){o&1&&(n(0,"p"),a(1,"report-cash-flow works!"),i(),a(2,`
|
|
4
|
-
,
|
|
5
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Gt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(o,r){o&1&&(n(0,"p"),a(1,"report-trial-balance works!"),i(),a(2,`
|
|
6
|
-
,
|
|
7
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var xr=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Tt},{path:"profit-loss",component:Lt},{path:"balance-sheet",component:kt},{path:"comparative-balance",component:Bt},{path:"trial-balance",component:Gt},{path:"cash-flow",component:Ot}]}];export{xr as REPORTS_ROUTES};
|
package/chunk-Y6H6VNCN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={production:!0,version:"5.33.2",changelogUrl:"https://changelog.dealpos.com/?categories=cat_O6pYAT7GI1mts",defaultTimezone:"Asia/Jakarta"};export{e as a};
|
package/chunk-ZGXJEG37.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as g}from"./chunk-VFEEFGWW.js";import{u,v as l,w as m}from"./chunk-B63BKC6F.js";import{I as n,Z as d,ba as b,ha as c,n as f,s as h}from"./chunk-JP6RBSB3.js";import{a as o,b as p}from"./chunk-YQFG5XE2.js";var w=(()=>{class a{constructor(){this.httpClient=c(m),this.toastr=c(g)}get(t="",e,r={}){return this.httpClient.get(`${t}${e}`,r).pipe(n(this.handleError.bind(this)))}post(t="",e,r,i={observe:"response"}){return this.httpClient.post(`${t}${e}`,r,o({},i)).pipe(d(this.handleResponse.bind(this)),h(s=>s instanceof u&&Object.prototype.hasOwnProperty.call(i,"observe")&&i.observe==="response"?s.body instanceof Blob?s:s.body:s),n(this.handleError.bind(this)))}put(t="",e,r,i={}){return this.httpClient.put(`${t}${e}`,r,p(o({},i),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(s=>s.body),n(this.handleError.bind(this)))}delete(t="",e,r={}){return this.httpClient.delete(`${t}${e}`,p(o({},r),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(i=>i.body),n(this.handleError.bind(this)))}handleResponse(t){if(t instanceof u&&t.status===200&&t.body){let e;typeof t.body=="object"&&t.body!==null&&(e=t.body.message||t.body.Message),typeof e=="string"&&e.length>0&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof l)switch(t.status){case 0:e.message="CORS error: Request blocked or server not responding with proper CORS headers",e.header="CORS Error";break;case 504:e.message=t.statusText||"Gateway Timeout",e.header=`API Error: ${t.status}`;break;default:e.header=`API Error: ${t.status}`,e.message=t.error&&(t.error.Message||t.error.message||t.error.error)||t.message}return t instanceof l&&(t.status>=200&&t.status<300?this.toastr.success(e.message,e.header):t.status>=400&&t.status<500?this.toastr.warning(e.message,e.header):t.status>=500&&t.status<600&&this.toastr.error(e.message,e.header)),f(()=>e)}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=b({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{w as a};
|
package/chunk-ZXCNQW44.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,b as A}from"./chunk-O4QM64EH.js";import{d as V,k as W}from"./chunk-EW3R2HAB.js";import"./chunk-OLOVFS3Y.js";import"./chunk-QCLAOAVG.js";import"./chunk-Q33XIUDN.js";import"./chunk-PKN47FQE.js";import"./chunk-LRRVQSMI.js";import"./chunk-42UIGXWH.js";import"./chunk-NA5YXAMJ.js";import"./chunk-253IFSMV.js";import"./chunk-QYXQYPHB.js";import"./chunk-FBEBMNVC.js";import"./chunk-6NGIQJIP.js";import"./chunk-YDEVG4CR.js";import{b as Q}from"./chunk-5R3XKSDM.js";import{h as J}from"./chunk-AWXT2WGR.js";import"./chunk-C7LM5UCK.js";import{a as N,b as j}from"./chunk-J4XRJAME.js";import{a as S,b as G,c as K,d as U,e as q,f as $,g as z}from"./chunk-JBSIAXM5.js";import"./chunk-GH5Z5SPB.js";import"./chunk-67VPWIWW.js";import"./chunk-BHV2HCJY.js";import{x as H}from"./chunk-FMVCTBCQ.js";import{a as O}from"./chunk-ZGXJEG37.js";import"./chunk-VFEEFGWW.js";import"./chunk-F2X3VGZZ.js";import{G as R,N as F,l as I,m as L}from"./chunk-B63BKC6F.js";import{Ac as x,Cb as g,Jc as k,Kb as m,Kc as B,Mc as c,Nb as b,Ub as n,Vb as a,Wb as M,X as u,Yc as D,ba as y,c as f,ec as C,gb as l,ha as p,qc as i,rc as s,sc as T,wb as P,yc as w,zc as _}from"./chunk-JP6RBSB3.js";import{a as d,b as h}from"./chunk-YQFG5XE2.js";var X=(()=>{class t{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(r){return new(r||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var et={data:[],filter:[],options:{hasGeneralLedger:!1}},E=G(z("cash-bank-store"),$(et),K(t=>({totalBalance:D(()=>t.data().reduce((o,e)=>o+e.balance,0))})),q(t=>{let o=p(X);return{loadCashAndBankLoader:v(f(u(()=>o.fetchCashAndBankLoader().pipe(A({next:e=>{console.log("response",e),S(t,r=>h(d({},r),{options:e.options}))},error:e=>{console.log("error",e)}}))))),loadCashAndBankData:v(f(u(()=>o.fetchCashAndBankData().pipe(A({next:e=>{console.log("response",e),S(t,r=>h(d({},r),{data:e}))},error:e=>{console.log("error",e)}})))))}}),U({onInit(t){t.loadCashAndBankLoader(),t.loadCashAndBankData()}}));var nt=["class","page"],at=()=>({height:"calc(100vh - 70px)"}),ot=t=>[t],it=()=>["/pages/report/general-ledger"],rt=t=>({id:t});function lt(t,o){t&1&&(n(0,"tr")(1,"th"),i(2,"Code"),a(),n(3,"th"),i(4,"Name"),a(),n(5,"th",7),i(6,"Balance"),a()())}function pt(t,o){if(t&1&&(n(0,"tr")(1,"td"),i(2),a(),n(3,"td")(4,"a",8),i(5),a()(),n(6,"td",7)(7,"a",9),i(8),k(9,"number"),a()()()),t&2){let e=o.$implicit;l(2),s(e.code),l(2),m("routerLink",x(8,ot,"/pages/chart-of-account/account/"+e.accountID)),l(),s(e.name),l(2),m("routerLink",_(10,it))("queryParams",x(11,rt,e.accountID)),l(),s(B(9,6,e.balance))}}function ct(t,o){if(t&1&&(n(0,"tr"),M(1,"td"),n(2,"td",10),i(3,"Total"),a(),n(4,"td",11),i(5),k(6,"number"),a()()),t&2){let e=C(2);l(5),T(" ",B(6,1,e.store.totalBalance())," ")}}function mt(t,o){t&1&&(n(0,"tr")(1,"td",12)(2,"span"),i(3,"No records found."),a()()())}function st(t,o){if(t&1&&(n(0,"p-panel")(1,"p-table",6),g(2,lt,7,0,"ng-template",null,1,c)(4,pt,10,13,"ng-template",null,2,c)(6,ct,7,3,"ng-template",null,3,c)(8,mt,4,0,"ng-template",null,4,c),a()()),t&2){let e=C();b(_(4,at)),l(),m("value",e.store.data())("scrollHeight","calc(100vh - 100px)")}}var Y=(()=>{class t{constructor(){this.store=p(E),this.routeInfo=Z}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-cash-bank",8,"page"]],features:[w([E])],attrs:nt,decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["footer",""],["emptymessage",""],["pageTitle","Cash and Bank"],["scrollable","",3,"value","scrollHeight"],[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(r,dt){r&1&&(n(0,"app-main-panel",5),g(1,st,10,5,"ng-template",null,0,c),a())},dependencies:[L,I,J,H,W,V,Q,F,R,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 t})();var qt=[{path:"",component:Y,children:[]}],Z={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{qt as CASH_BANK_ROUTES,Z as CASH_BANK_ROUTE_PAGE};
|