dealposbooks 5.43.1 → 5.43.3

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.
Files changed (70) hide show
  1. package/chunk-27LUAKKN.js +202 -0
  2. package/{chunk-L33MZZPK.js → chunk-2GWWFPGD.js} +1 -1
  3. package/{chunk-BM3MNYWW.js → chunk-2TVPTI2Q.js} +1 -1
  4. package/{chunk-6KDFPHJV.js → chunk-4UA6AQPD.js} +1 -1
  5. package/{chunk-2VQQEXJA.js → chunk-4WLR74CG.js} +1 -1
  6. package/{chunk-AWCGYJP7.js → chunk-57VDOVZI.js} +1 -1
  7. package/{chunk-RMOBSREQ.js → chunk-5XLCXMFV.js} +1 -1
  8. package/{chunk-NJ7D3QYH.js → chunk-66D3RLFJ.js} +2 -2
  9. package/{chunk-X4KTMWVO.js → chunk-6O5EWYT7.js} +1 -1
  10. package/{chunk-4FPYSVLT.js → chunk-6XT4TD5A.js} +1 -1
  11. package/{chunk-WLKS6LBU.js → chunk-7COI2POD.js} +1 -1
  12. package/chunk-AF357XP4.js +1 -0
  13. package/{chunk-HGVXVOFY.js → chunk-APDA5HMG.js} +1 -1
  14. package/{chunk-XZG6FHL4.js → chunk-BG6RQTAG.js} +1 -1
  15. package/{chunk-CX3TZ3F3.js → chunk-BUYRVZ5Z.js} +1 -1
  16. package/{chunk-R3GHYD6Y.js → chunk-CLIYA4C4.js} +1 -1
  17. package/{chunk-FOUSV5W2.js → chunk-CPGOKCZQ.js} +1 -1
  18. package/{chunk-VRD577YD.js → chunk-CPZSG7AO.js} +1 -1
  19. package/{chunk-S7IT3NE6.js → chunk-CYAFCLUJ.js} +1 -1
  20. package/{chunk-E2HTGITF.js → chunk-D6UE6XRQ.js} +1 -1
  21. package/{chunk-JYJZS4U4.js → chunk-DYS6SACW.js} +1 -1
  22. package/{chunk-NXAQCWYX.js → chunk-GCDC5CWV.js} +1 -1
  23. package/{chunk-WUQXNEUF.js → chunk-GD364P36.js} +1 -1
  24. package/{chunk-33OH23NL.js → chunk-H4EEYI62.js} +12 -12
  25. package/{chunk-RVN2ENY5.js → chunk-H5YVN5LB.js} +1 -1
  26. package/{chunk-4L2F2JYT.js → chunk-HIQAEXSA.js} +1 -1
  27. package/{chunk-O6PHQDZH.js → chunk-IS577OHV.js} +1 -1
  28. package/{chunk-HEX727RH.js → chunk-IYO6P6XI.js} +1 -1
  29. package/{chunk-QNCIH2ZA.js → chunk-J3XQBHI4.js} +1 -1
  30. package/{chunk-EOT2WEXN.js → chunk-JUCJGYST.js} +1 -1
  31. package/{chunk-WJVRZNOB.js → chunk-KZEJS5ET.js} +1 -1
  32. package/chunk-LUSQ5Y7D.js +7 -0
  33. package/{chunk-4QA6PJYM.js → chunk-MTMVT6EY.js} +1 -1
  34. package/{chunk-HR4JVZ4V.js → chunk-N7S3OBLK.js} +1 -1
  35. package/{chunk-35ITGGSZ.js → chunk-NM5QWTEY.js} +1 -1
  36. package/chunk-O2OXYS3Y.js +2 -0
  37. package/chunk-O3WC5V6A.js +1 -0
  38. package/{chunk-BJ4RON42.js → chunk-PPKCZMH4.js} +1 -1
  39. package/{chunk-BAHH4HL3.js → chunk-R2KIGE2S.js} +1 -1
  40. package/{chunk-ZQE76MZZ.js → chunk-R64762K6.js} +1 -1
  41. package/chunk-RVT7VP6Y.js +1 -0
  42. package/{chunk-RK2BTJAS.js → chunk-S6ZUNHSB.js} +1 -1
  43. package/chunk-SD3GXGTX.js +1 -0
  44. package/{chunk-U3TFXUW7.js → chunk-SHD37WDP.js} +1 -1
  45. package/{chunk-WPQGYVNT.js → chunk-SVHOGUGR.js} +1 -1
  46. package/{chunk-WJA77OH2.js → chunk-T6Z367EC.js} +1 -1
  47. package/{chunk-7YNVXRQ3.js → chunk-T72GVH4I.js} +1 -1
  48. package/{chunk-KLKIEREL.js → chunk-VPQDUC77.js} +1 -1
  49. package/{chunk-GDGNBGCE.js → chunk-VZKLQEOM.js} +1 -1
  50. package/chunk-W2PMWMFZ.js +129 -0
  51. package/chunk-WAJGPSIF.js +160 -0
  52. package/{chunk-GJWSARZM.js → chunk-WT5SITHN.js} +1 -1
  53. package/{chunk-ZB7BW4AF.js → chunk-XI4MQ5XJ.js} +1 -1
  54. package/{chunk-77OBQMSS.js → chunk-Y3EWLLFL.js} +2 -2
  55. package/{chunk-RD2UE5ML.js → chunk-YB6ZYDFS.js} +1 -1
  56. package/{chunk-VCIDPN4K.js → chunk-YLS62TOQ.js} +1 -1
  57. package/{chunk-7DONF5P4.js → chunk-ZGFFW4KO.js} +1 -1
  58. package/{chunk-GB5M23CX.js → chunk-ZGIFCTBC.js} +1 -1
  59. package/index.html +2 -2
  60. package/{main-VEXPCE7F.js → main-WKNPX6KZ.js} +1 -1
  61. package/package.json +1 -1
  62. package/chunk-7B6EWIM4.js +0 -1
  63. package/chunk-AYUFYFUB.js +0 -7
  64. package/chunk-CQ2SMQNS.js +0 -1
  65. package/chunk-GTDIXMKH.js +0 -2
  66. package/chunk-KAWGMTDN.js +0 -1
  67. package/chunk-KUDR6C6Y.js +0 -202
  68. package/chunk-ORLKNWW4.js +0 -1
  69. package/chunk-QC3F6W4P.js +0 -160
  70. package/chunk-UJDPTU63.js +0 -129
package/chunk-KAWGMTDN.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-QNCIH2ZA.js";import"./chunk-S7IT3NE6.js";import"./chunk-WLKS6LBU.js";import"./chunk-EFDD6Q3K.js";import"./chunk-BM3MNYWW.js";import"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import"./chunk-SB5MSLCX.js";import"./chunk-6K5LNQ4J.js";import"./chunk-YQFG5XE2.js";var o=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-GTDIXMKH.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{o as DashboardRoutes};
package/chunk-KUDR6C6Y.js DELETED
@@ -1,202 +0,0 @@
1
- import{a as ee,b as yt}from"./chunk-7DONF5P4.js";import{a as xt}from"./chunk-G4XX7EU2.js";import{f as Ct}from"./chunk-OB46Z7ZH.js";import"./chunk-E3ZGQRZ3.js";import{a as bt}from"./chunk-XKI7WLHE.js";import{a as ot}from"./chunk-ORLKNWW4.js";import"./chunk-WLKS6LBU.js";import{a as X,b as Y}from"./chunk-NHZLS6JU.js";import{d as ft,i as ht,j as gt,k as wt}from"./chunk-KLKIEREL.js";import"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as ue}from"./chunk-KXE3J4PK.js";import"./chunk-EOT2WEXN.js";import{a as ut,b as _t}from"./chunk-X4KTMWVO.js";import"./chunk-I7ILLTFH.js";import"./chunk-2LQVI4EI.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{h as dt}from"./chunk-R3GHYD6Y.js";import{a as Je}from"./chunk-L3PZS6EL.js";import{a as nt,b as rt}from"./chunk-5JV52UYK.js";import{a as D,b as at,c as st,d as lt,e as pt,f as ct,g as mt}from"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{a as Ke,f as L,k as Xe,m as Ye,o as et,s as tt,w as J,x as it}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{A as qe,C as Ge,K as je,La as Ze,Ma as K,Ua as We,c as W,e as Ae,f as Be,l as He,ma as $e,o as Ne,u as Qe,x as ze,z as de}from"./chunk-72LNXEXV.js";import{b as Re,d as Le,e as Me}from"./chunk-EFDD6Q3K.js";import"./chunk-BM3MNYWW.js";import"./chunk-ZDTMCWOO.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{h as j,k as $,m as Pe,s as Z}from"./chunk-SB5MSLCX.js";import{$b as T,$c as Fe,Aa as A,Bb as H,Cc as G,Db as _,Ec as V,Fc as Ee,Ha as R,Jc as Ue,Kb as E,Lb as s,Ob as xe,Pb as ne,Qb as Ce,Rb as N,Rc as x,Tb as Q,Ub as z,Vb as l,Wb as p,Xb as y,Y as O,Yb as ye,Zb as ve,_ as te,_b as U,_c as I,bd as P,c as M,ca as ge,cd as Ve,da as we,ec as b,fc as c,gc as ke,hb as a,hc as Te,ia as C,kc as F,lc as q,mc as v,nc as k,qa as d,qc as Se,ra as u,rc as g,sc as S,tc as Ie,ua as ie,vc as De,wc as re,xb as B,xc as oe,yb as be,yc as ae}from"./chunk-6K5LNQ4J.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:"",accessTypeID:1},options:{users:[],groups:[],accessTypes:[]}}},_e=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(ee);return{setFilter(n){D(t,i=>h(f({},i),{filter:n}))},onRowSelect(n){D(t,i=>{let r=i.data.map(m=>m.userID===n.userID?h(f({},m),{checked:!0}):m);return h(f({},i),{data:r})})},onRowUnselect(n){D(t,i=>{let r=i.data.map(m=>m.userID===n.userID?h(f({},m),{checked:!1}):m);return h(f({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");D(t,r=>{let m=r.data.map(w=>w.userName!==i?h(f({},w),{checked:n}):h(f({},w),{checked:!1}));return h(f({},r),{data:m})})},getUserLoader:X(M(O(()=>o.getUserLoaderList().pipe(Y({next:n=>{D(t,i=>h(f({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:X(M(O(n=>o.getUserFormMeta(n).pipe(Y({next:i=>{D(t,r=>h(f({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:X(M(O(n=>o.getUsers(n).pipe(Y({next:i=>{D(t,r=>h(f({},r),{data:i.data.map(m=>h(f({},m),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),lt({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Dt=["header"],Et=["footer"],Ut=["content"],Ft=["closeicon"],Vt=["headless"],Pt=["maskRef"],Rt=["container"],Lt=["closeButton"],Mt=["*"],Ot=(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}),At=(t,o)=>({transform:t,transition:o}),Bt=t=>({value:"visible",params:t});function Ht(t,o){t&1&&U(0)}function Nt(t,o){if(t&1&&_(0,Ht,1,0,"ng-container",4),t&2){let e=c(2);s("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function Qt(t,o){t&1&&U(0)}function zt(t,o){if(t&1&&(l(0,"div"),g(1),p()),t&2){let e=c(3);ne(e.cx("title")),a(),S(e.header)}}function qt(t,o){t&1&&y(0,"TimesIcon"),t&2&&E("data-pc-section","closeicon")}function Gt(t,o){}function jt(t,o){t&1&&_(0,Gt,0,0,"ng-template")}function $t(t,o){if(t&1&&_(0,qt,1,1,"TimesIcon",8)(1,jt,1,0,null,4),t&2){let e=c(4);s("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),a(),s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Zt(t,o){if(t&1){let e=T();l(0,"p-button",9),b("onClick",function(i){d(e);let r=c(3);return u(r.close(i))})("keydown.enter",function(i){d(e);let r=c(3);return u(r.close(i))}),_(1,$t,2,2,"ng-template",null,1,x),p()}if(t&2){let e=c(3);s("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),E("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Wt(t,o){t&1&&U(0)}function Kt(t,o){t&1&&U(0)}function Jt(t,o){if(t&1&&(ye(0),l(1,"div",5),_(2,Kt,1,0,"ng-container",4),p(),ve()),t&2){let e=c(3);a(),s("ngClass",e.cx("footer")),E("data-pc-section","footer"),a(),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Xt(t,o){if(t&1&&(l(0,"div",5),_(1,Qt,1,0,"ng-container",4)(2,zt,2,3,"div",6)(3,Zt,3,5,"p-button",7),p(),l(4,"div",5),Te(5),_(6,Wt,1,0,"ng-container",4),p(),_(7,Jt,3,3,"ng-container",8)),t&2){let e=c(2);s("ngClass",e.cx("header")),E("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")),E("data-pc-section","content"),a(2),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),a(),s("ngIf",e.footerTemplate||e._footerTemplate)}}function Yt(t,o){if(t&1){let e=T();l(0,"div",3,0),b("@panelState.start",function(i){d(e);let r=c();return u(r.onAnimationStart(i))})("@panelState.done",function(i){d(e);let r=c();return u(r.onAnimationEnd(i))})("keydown",function(i){d(e);let r=c();return u(r.onKeyDown(i))}),_(2,Nt,1,1,"ng-container")(3,Xt,8,9),p()}if(t&2){let e=c();xe(e.style),ne(e.styleClass),s("ngClass",Ue(9,Ot,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,Bt,Ee(16,At,e.transformOptions,e.transitionOptions))),E("data-pc-name","sidebar")("data-pc-section","root"),a(2),Ce(e.headlessTemplate||e._headlessTemplate?2:3)}}var ei=({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
- `,ti={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"})},ii={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=ei;classes=ii;inlineStyles=ti;static \u0275fac=(()=>{let e;return function(i){return(e||(e=ie(t)))(i||t)}})();static \u0275prov=ge({token:t,factory:t.\u0275fac})}return t})();var ni=ce([le({transform:"{{transform}}",opacity:0}),se("{{transition}}")]),ri=ce([se("{{transition}}",le({transform:"{{transform}}",opacity:0}))]),fe=(()=>{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),$e(this.mask,"style",this.maskStyle),de(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&&qe())}disableModality(){this.mask&&(de(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&&Ge(),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):je(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=ie(t)))(i||t)}})();static \u0275cmp=B({type:t,selectors:[["p-drawer"]],contentQueries:function(n,i,r){if(n&1&&(F(r,Dt,4),F(r,Et,4),F(r,Ut,4),F(r,Ft,4),F(r,Vt,4),F(r,Ze,4)),n&2){let m;v(m=k())&&(i.headerTemplate=m.first),v(m=k())&&(i.footerTemplate=m.first),v(m=k())&&(i.contentTemplate=m.first),v(m=k())&&(i.closeIconTemplate=m.first),v(m=k())&&(i.headlessTemplate=m.first),v(m=k())&&(i.templates=m)}},viewQuery:function(n,i){if(n&1&&(q(Pt,5),q(Rt,5),q(Lt,5)),n&2){let r;v(r=k())&&(i.maskRef=r.first),v(r=k())&&(i.containerViewChild=r.first),v(r=k())&&(i.closeButtonViewChild=r.first)}},inputs:{appendTo:"appendTo",blockScroll:[2,"blockScroll","blockScroll",I],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",I],baseZIndex:[2,"baseZIndex","baseZIndex",Fe],modal:[2,"modal","modal",I],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",I],showCloseIcon:[2,"showCloseIcon","showCloseIcon",I],closeOnEscape:[2,"closeOnEscape","closeOnEscape",I],transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen",header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",I]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[G([vt]),H],ngContentSelectors:Mt,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&&(ke(),_(0,Yt,4,21,"div",2)),n&2&&s("ngIf",i.visible)},dependencies:[Z,j,$,Pe,J,Je,K],encapsulation:2,data:{animation:[Oe("panelState",[pe("void => visible",[me(ni)]),pe("visible => void",[me(ri)])])]},changeDetection:0})}return t})(),kt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=be({type:t});static \u0275inj=we({imports:[fe,K,K]})}return t})();var ai=["class","page"],he=t=>({"ng-invalid ng-dirty":t}),si=t=>({groupID:t});function li(t,o){if(t&1){let e=T();l(0,"p-button",22),b("onClick",function(){d(e);let i=c(2);return u(i.onDeleteUser())}),p()}}function pi(t,o){if(t&1){let e=T();l(0,"p-button",23),b("onClick",function(){d(e);let i=c(2);return u(i.onHandleDrawer())}),p()}}function ci(t,o){if(t&1&&(l(0,"div",19),_(1,li,1,0,"p-button",20)(2,pi,1,0,"p-button",21),p()),t&2){let e=c();a(),s("ngIf",e.store.hasCheckedRows()),a(),s("ngIf",e.roleService.user.create)}}function mi(t,o){t&1&&(l(0,"th",27),y(1,"p-tableHeaderCheckbox"),p())}function di(t,o){if(t&1&&(l(0,"tr"),_(1,mi,2,0,"th",26),l(2,"th"),g(3,"LoginID"),p(),l(4,"th"),g(5,"Group"),p()()),t&2){let e=c(2);a(),s("ngIf",e.roleService.user.delete)}}function ui(t,o){t&1&&U(0)}function _i(t,o){if(t&1&&y(0,"p-tableCheckbox",33),t&2){let e=c(3).$implicit;s("value",e)}}function fi(t,o){if(t&1&&_(0,_i,1,1,"p-tableCheckbox",32),t&2){let e=c(4);s("ngIf",e.roleService.user.delete)}}function hi(t,o){if(t&1&&(l(0,"td"),_(1,ui,1,0,"ng-container",31)(2,fi,1,1,"ng-template",null,7,x),p()),t&2){let e=Se(3),n=c().$implicit,i=c(2);a(),s("ngIf",i.roleService.user.delete&&n.userName===i.currentUser())("ngIfElse",e)}}function gi(t,o){if(t&1){let e=T();l(0,"tr"),_(1,hi,4,2,"td",28),l(2,"td")(3,"button",29),b("click",function(){let i=d(e).$implicit,r=c(2);return u(r.onEditUser(i))}),g(4),p()(),l(5,"td")(6,"a",30),g(7),p()()()}if(t&2){let e=o.$implicit,n=c(2);a(),s("ngIf",n.roleService.user.delete),a(2),s("disabled",!n.roleService.user.edit),a(),Ie(" ",e.userName||e.userID," "),a(2),s("queryParams",V(5,si,e.groupID)),a(),S(e.groupName)}}function wi(t,o){if(t&1&&g(0),t&2){let e=c(2);De(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function bi(t,o){t&1&&(l(0,"tr")(1,"td",34)(2,"span"),g(3,"No users found. Try adjusting your filters or add a new user."),p()()())}function xi(t,o){if(t&1){let e=T();l(0,"p-panel")(1,"div",24),y(2,"app-user-tabs"),l(3,"p-table",25),b("onPage",function(i){d(e);let r=c();return u(r.onPageChange(i))})("onRowSelect",function(i){d(e);let r=c();return u(r.onRowSelect(i))})("onRowUnselect",function(i){d(e);let r=c();return u(r.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){d(e);let r=c();return u(r.onHeaderCheckboxToggle(i))}),_(4,di,6,1,"ng-template",null,3,x)(6,gi,8,7,"ng-template",null,4,x)(8,wi,1,3,"ng-template",null,5,x)(10,bi,4,0,"ng-template",null,6,x),p()()()}if(t&2){let e=c();a(3),s("value",e.store.data())("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function Ci(t,o){if(t&1&&(l(0,"div",35)(1,"div",17)(2,"div",36)(3,"label",37),g(4,"Group"),p(),y(5,"p-select",38),p()()()),t&2){let e=c();s("formGroup",e.forms.filterForm),a(5),s("showClear",!0)("options",e.store.meta().options.groups)}}function yi(t,o){if(t&1&&(l(0,"span",39),g(1),p()),t&2){let e=c();a(),S(e.store.hasCheckedRows()?"Edit User":"Invite User")}}function vi(t,o){if(t&1&&(l(0,"small",14),g(1),p()),t&2){let e=o.$implicit;a(),S(e)}}function ki(t,o){if(t&1&&(l(0,"small",14),g(1),p()),t&2){let e=o.$implicit;a(),S(e)}}function Ti(t,o){if(t&1&&(l(0,"small",14),g(1),p()),t&2){let e=o.$implicit;a(),S(e)}}var Vn=(()=>{class t extends bt{ngOnInit(){this.generateForm()}constructor(){Ve(()=>{this.store.metaForm()&&this.generateForm()}),super(),this.store=C(_e),this.fb=C(Qe),this.userService=C(ee),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},[W.required]),groupID:this.fb.control(this.store.metaForm().form.groupID,[W.required]),accessTypeID:this.fb.control(this.store.metaForm().form.accessTypeID,[W.required])})}}onHandleDrawer(){this.isDrawerOpen.update(e=>!e),this.store.getUserFormMeta(this.route.snapshot.params.id||null)}onInviteUser(){let{userForm:e}=this.forms;if(e.invalid){e.markAllAsTouched();return}let n=e.getRawValue(),i;if(this.store.hasCheckedRows()){let[r]=this.store.checkedData();i={id:r,groupID:n.groupID,accessTypeID:n.accessTypeID}}else i=n;this.userService.inviteUser(i).pipe(ue("User invited successfully"),te(()=>{this.onHandleDrawer(),this.store.setFilter(f({},this.store.filter())),e.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(ue("User(s) deleted successfully"),te(()=>{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:[G([_e]),H],attrs:ai,decls:34,vars:19,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["showCheckbox",""],["pageTitle","User List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible","scrollable"],["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"],["filter","","filterBy","name","formControlName","accessTypeID","optionLabel","value","optionValue","key","placeholder","Select Access Type","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","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=T();l(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,ci,3,2,"ng-template",null,0,x)(3,xi,12,5,"ng-template",null,1,x)(5,Ci,6,3,"ng-template",null,2,x),p(),l(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,yi,2,1,"ng-template",null,3,x),l(10,"div",10)(11,"div",11)(12,"div")(13,"label",12),g(14,"Users"),p(),y(15,"p-select",13),Q(16,vi,2,1,"small",14,N),p()(),l(18,"div",11)(19,"div")(20,"label",12),g(21,"Groups"),p(),y(22,"p-select",15),Q(23,ki,2,1,"small",14,N),p()(),l(25,"div",11)(26,"div")(27,"label",12),g(28,"Access Type"),p(),y(29,"p-select",16),Q(30,Ti,2,1,"small",14,N),p()(),l(32,"div",17)(33,"p-button",18),b("onClick",function(){return d(r),u(i.onInviteUser())}),p()()()()}n&2&&(s("isSearchableInput",!0)("isFilterable",!0),re("isDialogFilterVisible",i.isDialogFilterVisible),s("scrollable",!0),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(13,he,i.isInvalid("id","userForm"))),a(),z(i.getErrors("id","userForm")),a(6),s("options",i.store.metaForm().options.groups)("ngClass",V(15,he,i.isInvalid("groupID","userForm"))),a(),z(i.getErrors("id","userForm")),a(6),s("options",i.store.metaForm().options.accessTypes)("ngClass",V(17,he,i.isInvalid("accessTypeID","userForm"))),a(),z(i.getErrors("accessTypeID","userForm")))},dependencies:[dt,Z,j,$,wt,ft,ht,gt,it,J,kt,fe,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{Vn as UserPageComponent};
package/chunk-ORLKNWW4.js DELETED
@@ -1 +0,0 @@
1
- import{a as h,b as l}from"./chunk-WLKS6LBU.js";import{Ha as i,ca as o,cd as a,ia as r}from"./chunk-6K5LNQ4J.js";var d=(()=>{class s{constructor(){this._userRoles=i([]),this.tokenService=r(l),a(()=>{let e=this.tokenService.tokenSignal();e&&this.loadRolesFromToken(e)})}loadRolesFromToken(e){if(e){let t=h(e);t&&t["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]&&Array.isArray(t["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"])&&this._userRoles.set(t["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"])}}hasAnyRole(e){return e.some(t=>this._userRoles().includes(t))}refreshRoles(e){localStorage.setItem("AUTH_ROLES",JSON.stringify(e)),this._userRoles.set(e)}hasRole(e){return this._userRoles().includes(e)}get coa(){return{view:this.hasRole("Coa"),create:this.hasRole("CoaC"),edit:this.hasRole("CoaE"),delete:this.hasRole("CoaD")}}get journal(){return{view:this.hasRole("Journal"),create:this.hasRole("JournalC"),edit:this.hasRole("JournalE"),delete:this.hasRole("JournalD")}}get report(){return{ledger:this.hasRole("ReportL"),finance:this.hasRole("ReportF")}}get setup(){return{view:this.hasRole("Setup"),migrate:this.hasRole("Migrate"),tools:this.hasRole("Tools"),recurring:this.hasRole("Recurring")}}get global(){return{export:this.hasRole("Export"),date:this.hasRole("Date"),number:this.hasRole("Number")}}get user(){return{view:this.hasRole("User"),edit:this.hasRole("UserE"),delete:this.hasRole("UserD"),create:this.hasRole("UserC")}}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{d as a};