dealposbooks 1.1.0 → 1.9.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.
Files changed (128) hide show
  1. package/3rdpartylicenses.txt +127 -127
  2. package/assets/images/background/timeout.svg +2614 -0
  3. package/assets/scss/components/_forms.scss +5 -3
  4. package/assets/scss/layouts/_layout.scss +1 -1
  5. package/assets/scss/style.scss +17 -20
  6. package/assets/scss/variables/_variables.scss +45 -11
  7. package/chunk-26X2X35R.js +1 -0
  8. package/{chunk-B6N6C3RA.js → chunk-2ACAW72E.js} +1 -1
  9. package/chunk-2VF35PRV.js +7 -0
  10. package/chunk-35EULUGT.js +193 -0
  11. package/{chunk-RIALPB2D.js → chunk-66DZK3FQ.js} +1 -1
  12. package/chunk-6VN6A5B5.js +520 -0
  13. package/chunk-7T6O4KFO.js +2 -0
  14. package/chunk-ABZUNDNB.js +1 -0
  15. package/chunk-AER6WLW5.js +1 -0
  16. package/{chunk-R2KG54OT.js → chunk-AKZM2DMY.js} +2 -2
  17. package/{chunk-JR4EQTPJ.js → chunk-AVL6C3VX.js} +1 -1
  18. package/chunk-BLOB7I4P.js +210 -0
  19. package/chunk-BPFNN32N.js +1 -0
  20. package/chunk-C375SLTS.js +246 -0
  21. package/chunk-C4HBNN2L.js +1 -0
  22. package/{chunk-223MMYH7.js → chunk-CEMQLY34.js} +1 -1
  23. package/chunk-CEUNPX5D.js +1 -0
  24. package/chunk-CMHZLZ4E.js +1 -0
  25. package/chunk-DO2YIWC5.js +1 -0
  26. package/{chunk-ZL4DDXH7.js → chunk-DWTUKOMR.js} +4 -4
  27. package/chunk-E2RBYY7Q.js +1 -0
  28. package/{chunk-FOUHOMEE.js → chunk-EFOOUCV3.js} +5 -5
  29. package/chunk-EHULZLLD.js +300 -0
  30. package/{chunk-V7Y6Z4AQ.js → chunk-EKJXB6MV.js} +2 -2
  31. package/{chunk-S35HUXPS.js → chunk-F2X3VGZZ.js} +1 -1
  32. package/chunk-F6SXKAYF.js +67 -0
  33. package/{chunk-UGKSIDKE.js → chunk-FNOMC2TM.js} +1 -1
  34. package/{chunk-5GQEUX4M.js → chunk-G7MS6UI4.js} +1 -1
  35. package/{chunk-TUL6Y2HH.js → chunk-GFHANKXL.js} +1 -1
  36. package/{chunk-ZZPBK2XT.js → chunk-GHZLR44M.js} +1 -1
  37. package/chunk-GLLO2YQR.js +1 -0
  38. package/{chunk-ZU7I7MCL.js → chunk-GLURPAU2.js} +1 -1
  39. package/chunk-HZ6QN5ZG.js +7 -0
  40. package/{chunk-O65HPMSJ.js → chunk-HZ7WPLLK.js} +1 -1
  41. package/{chunk-CINZRZMB.js → chunk-HZLUYZB3.js} +1 -1
  42. package/chunk-I2MAIV44.js +1 -0
  43. package/chunk-I7T4W6G2.js +47 -0
  44. package/{chunk-EMVZ65TI.js → chunk-IF72X7RS.js} +1 -1
  45. package/chunk-JXI4NDYT.js +1 -0
  46. package/chunk-KHZ5L5UR.js +1 -0
  47. package/chunk-LAZCPZXL.js +1 -0
  48. package/chunk-MEKP6D5H.js +1 -0
  49. package/{chunk-H4HFCRFZ.js → chunk-MS3UTNX6.js} +14 -14
  50. package/chunk-NASSFXXN.js +1 -0
  51. package/chunk-NGKRNFZC.js +1 -0
  52. package/chunk-NNH4DORM.js +1 -0
  53. package/chunk-NTJQFRIB.js +180 -0
  54. package/chunk-OCYR2RTP.js +1 -0
  55. package/chunk-ON4N4CPO.js +51 -0
  56. package/chunk-OVJSBJBH.js +197 -0
  57. package/chunk-P63Q5GYL.js +1 -0
  58. package/{chunk-REHXXPZY.js → chunk-PATWAZNE.js} +1 -1
  59. package/chunk-PGIXMWYT.js +1 -0
  60. package/chunk-PUEKZGWI.js +1 -0
  61. package/{chunk-X2NM4CIV.js → chunk-Q4Y2IGA6.js} +2 -2
  62. package/chunk-QBJKUIXK.js +627 -0
  63. package/chunk-R3FUAON5.js +1 -0
  64. package/chunk-R6MI2SDH.js +1 -0
  65. package/chunk-RA2IZVJ4.js +1 -0
  66. package/{chunk-AYVR3RIS.js → chunk-ROX6NFMK.js} +2 -2
  67. package/{chunk-ERX7ND7E.js → chunk-S64TQVWK.js} +1 -1
  68. package/chunk-S6CFVRO6.js +1 -0
  69. package/chunk-SJTXIIX5.js +1 -0
  70. package/{chunk-DJ5UHXOJ.js → chunk-TBHL2OSG.js} +1 -1
  71. package/{chunk-YKYI4A3V.js → chunk-TL6UHPBU.js} +1 -1
  72. package/chunk-UNNEEFI2.js +1 -0
  73. package/chunk-USCTAGKM.js +1 -0
  74. package/{chunk-UTL7D6E7.js → chunk-USO7UKRV.js} +4 -4
  75. package/chunk-UZOBSLZX.js +1 -0
  76. package/chunk-VVC3QQUI.js +1 -0
  77. package/{chunk-SS3CMCAX.js → chunk-VYTUB2DV.js} +2 -2
  78. package/chunk-XCWBG4PB.js +1 -0
  79. package/{chunk-PNQSQQIT.js → chunk-YT7EC5LI.js} +1 -1
  80. package/chunk-ZBTGGL5M.js +5 -0
  81. package/index.html +3 -3
  82. package/main-TCYAGQCN.js +1 -0
  83. package/package.json +1 -1
  84. package/polyfills-OYTHSGNX.js +2 -0
  85. package/styles-H3D5FBL2.css +1 -0
  86. package/chunk-33KLXB2L.js +0 -180
  87. package/chunk-4Y3NYY52.js +0 -67
  88. package/chunk-5RRUIJ5U.js +0 -1
  89. package/chunk-6BFODHTZ.js +0 -2
  90. package/chunk-AXJA6OO7.js +0 -246
  91. package/chunk-DBRLQ7BX.js +0 -397
  92. package/chunk-DUOJKP2G.js +0 -300
  93. package/chunk-E4ZVZRLO.js +0 -210
  94. package/chunk-EBOJJWD5.js +0 -1
  95. package/chunk-ENPYMVZG.js +0 -1
  96. package/chunk-EOLHIQHQ.js +0 -1
  97. package/chunk-FKTEL4CU.js +0 -524
  98. package/chunk-G4XX7EU2.js +0 -1
  99. package/chunk-J53TOHZH.js +0 -1
  100. package/chunk-JC7YOUAM.js +0 -1
  101. package/chunk-JSAAKZBO.js +0 -1
  102. package/chunk-KZ2KGWUY.js +0 -1
  103. package/chunk-LON3T466.js +0 -1
  104. package/chunk-LYEN4UBW.js +0 -1
  105. package/chunk-MG3SLH6O.js +0 -1
  106. package/chunk-NQ3CKBYP.js +0 -1
  107. package/chunk-NS7JH3QF.js +0 -47
  108. package/chunk-OCLABZZW.js +0 -1
  109. package/chunk-OH2CJBFF.js +0 -1
  110. package/chunk-OSV7AMB2.js +0 -1
  111. package/chunk-OWI3BWEZ.js +0 -197
  112. package/chunk-OYYYX3IP.js +0 -1
  113. package/chunk-Q5PJ63MA.js +0 -1
  114. package/chunk-RJYO2KKV.js +0 -1
  115. package/chunk-ROKYJX6Q.js +0 -193
  116. package/chunk-RUGQ4OJG.js +0 -1
  117. package/chunk-RUP2SWYB.js +0 -231
  118. package/chunk-RUVT4SCE.js +0 -1
  119. package/chunk-TMY4NWZ6.js +0 -1
  120. package/chunk-TOJAZ32N.js +0 -1
  121. package/chunk-VY4Z33EE.js +0 -7
  122. package/chunk-VYKJK5YU.js +0 -7
  123. package/chunk-WG7APCJU.js +0 -51
  124. package/chunk-XWVLTTMV.js +0 -1
  125. package/chunk-Y6MJGNH2.js +0 -1
  126. package/main-MCP7AVEU.js +0 -1
  127. package/polyfills-EQXJKH7W.js +0 -2
  128. package/styles-IAH7RNKW.css +0 -1
@@ -1 +1 @@
1
- var i=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(i||{}),c="*";function _(e,t){return{type:i.Trigger,name:e,definitions:t,options:{}}}function f(e,t=null){return{type:i.Animate,styles:t,timings:e}}function d(e,t=null){return{type:i.Sequence,steps:e,options:t}}function y(e){return{type:i.Style,styles:e,offset:null}}function p(e,t,s){return{type:i.State,name:e,styles:t,options:s}}function m(e,t,s=null){return{type:i.Transition,expr:e,animation:t,options:s}}function g(e,t=null){return{type:i.Reference,animation:e,options:t}}function D(e=null){return{type:i.AnimateChild,options:e}}function F(e,t=null){return{type:i.AnimateRef,animation:e,options:t}}function S(e,t,s=null){return{type:i.Query,selector:e,animation:t,options:s}}var a=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,s=0){this.totalTime=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let s=t=="start"?this._onStartFns:this._onDoneFns;s.forEach(n=>n()),s.length=0}},l=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let s=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++s==h&&this._onFinish()}),r.onDestroy(()=>{++n==h&&this._onDestroy()}),r.onStart(()=>{++o==h&&this._onStart()})}),this.totalTime=this.players.reduce((r,u)=>Math.max(r,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let s=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,s/n.totalTime):1;n.setPosition(o)})}getPosition(){let t=this.players.reduce((s,n)=>s===null||n.totalTime>s.totalTime?n:s,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let s=t=="start"?this._onStartFns:this._onDoneFns;s.forEach(n=>n()),s.length=0}},E="!";export{i as a,c as b,_ as c,f as d,d as e,y as f,p as g,m as h,g as i,D as j,F as k,S as l,a as m,l as n,E as o};
1
+ var r=function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s}(r||{}),_="*";function a(s,t){return{type:r.Trigger,name:s,definitions:t,options:{}}}function c(s,t=null){return{type:r.Animate,styles:t,timings:s}}function y(s,t=null){return{type:r.Sequence,steps:s,options:t}}function F(s){return{type:r.Style,styles:s,offset:null}}function S(s,t,e){return{type:r.State,name:s,styles:t,options:e}}function g(s,t,e=null){return{type:r.Transition,expr:s,animation:t,options:e}}function D(s,t=null){return{type:r.Reference,animation:s,options:t}}function d(s=null){return{type:r.AnimateChild,options:s}}function p(s,t=null){return{type:r.AnimateRef,animation:s,options:t}}function E(s,t,e=null){return{type:r.Query,selector:s,animation:t,options:e}}var l=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},u=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++e==h&&this._onFinish()}),i.onDestroy(()=>{++n==h&&this._onDestroy()}),i.onStart(()=>{++o==h&&this._onStart()})}),this.totalTime=this.players.reduce((i,f)=>Math.max(i,f.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},P="!";export{r as a,_ as b,a as c,c as d,y as e,F as f,S as g,g as h,D as i,d as j,p as k,E as l,l as m,u as n,P as o};
@@ -0,0 +1,67 @@
1
+ import{a as J}from"./chunk-26X2X35R.js";import{b as d,ca as K,d as f,ka as Z,la as B,ta as G,w as O}from"./chunk-35EULUGT.js";import{j as $,n as q,o as W,s as N,v as j}from"./chunk-SJTXIIX5.js";import{Ib as m,Jb as V,Nb as x,Ob as P,Sc as U,Tb as v,Ub as g,Yb as z,Zb as R,ba as S,ca as E,cc as y,ec as I,fb as u,fc as H,ha as _,hc as L,ic as b,jc as h,kc as p,pa as s,qa as a,sa as C,tb as F,ub as A,uc as Q,xb as X,za as k,zb as Y}from"./chunk-2VF35PRV.js";var ee=["content"],oe=["container"],re=["xBar"],le=["yBar"],se=["*"];function ae(t,ie){t&1&&H(0)}function ce(t,ie){t&1&&z(0)}var ue=({dt:t})=>`
2
+ .p-scrollpanel-content-container {
3
+ overflow: hidden;
4
+ width: 100%;
5
+ height: 100%;
6
+ position: relative;
7
+ z-index: 1;
8
+ float: left;
9
+ }
10
+
11
+ .p-scrollpanel-content {
12
+ height: calc(100% + calc(2 * ${t("scrollpanel.bar.size")}));
13
+ width: calc(100% + calc(2 * ${t("scrollpanel.bar.size")}));
14
+ padding-inline: 0 calc(2 * ${t("scrollpanel.bar.size")});
15
+ padding-block: 0 calc(2 * ${t("scrollpanel.bar.size")});
16
+ position: relative;
17
+ overflow: auto;
18
+ box-sizing: border-box;
19
+ scrollbar-width: none;
20
+ }
21
+
22
+ .p-scrollpanel-content::-webkit-scrollbar {
23
+ display: none;
24
+ }
25
+
26
+ .p-scrollpanel-bar {
27
+ position: relative;
28
+ border-radius: ${t("scrollpanel.bar.border.radius")};
29
+ z-index: 2;
30
+ cursor: pointer;
31
+ opacity: 0;
32
+ outline-color: transparent;
33
+ transition: outline-color ${t("scrollpanel.transition.duration")};
34
+ background: ${t("scrollpanel.bar.background")};
35
+ border: 0 none;
36
+ transition: outline-color ${t("scrollpanel.transition.duration")}, opacity ${t("scrollpanel.transition.duration")};
37
+ }
38
+
39
+ .p-scrollpanel-bar:focus-visible {
40
+ box-shadow: ${t("scrollpanel.bar.focus.ring.shadow")};
41
+ outline: ${t("scrollpanel.barfocus.ring.width")} ${t("scrollpanel.bar.focus.ring.style")} ${t("scrollpanel.bar.focus.ring.color")};
42
+ outline-offset: ${t("scrollpanel.barfocus.ring.offset")};
43
+ }
44
+
45
+ .p-scrollpanel-bar-y {
46
+ width: ${t("scrollpanel.bar.size")};
47
+ top: 0;
48
+ }
49
+
50
+ .p-scrollpanel-bar-x {
51
+ height: ${t("scrollpanel.bar.size")};
52
+ bottom: 0;
53
+ }
54
+
55
+ .p-scrollpanel-hidden {
56
+ visibility: hidden;
57
+ }
58
+
59
+ .p-scrollpanel:hover .p-scrollpanel-bar,
60
+ .p-scrollpanel:active .p-scrollpanel-bar {
61
+ opacity: 1;
62
+ }
63
+
64
+ .p-scrollpanel-grabbed {
65
+ user-select: none;
66
+ }
67
+ `,he={root:"p-scrollpanel p-component",contentContainer:"p-scrollpanel-content-container",content:"p-scrollpanel-content",barX:"p-scrollpanel-bar p-scrollpanel-bar-x",barY:"p-scrollpanel-bar p-scrollpanel-bar-y"},te=(()=>{class t extends G{name="scrollpanel";theme=ue;classes=he;static \u0275fac=(()=>{let e;return function(i){return(e||(e=C(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),pe=function(t){return t.root="p-scrollpanel",t.contentContainer="p-scrollpanel-content-container",t.content="p-scrollpanel-content",t.barX="p-scrollpanel-bar-x",t.barY="p-scrollpanel-bar-y",t}(pe||{}),de=(()=>{class t extends J{style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;contentTemplate;templates;_contentTemplate;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;contentId;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;_componentStyle=_(te);zone=_(k);ngOnInit(){super.ngOnInit(),this.contentId=K("pn_id_")+"_content"}ngAfterViewInit(){super.ngAfterViewInit(),j(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement,o=this.document.defaultView,r=o.getComputedStyle(e),l=o.getComputedStyle(i),c=O(e)-parseInt(l.height,10);r["max-height"]!="none"&&c==0&&(n.offsetHeight+parseInt(l.height,10)>parseInt(r["max-height"],10)?e.style.height=r["max-height"]:e.style.height=n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement,o=n.scrollWidth,r=n.clientWidth,l=(e.clientHeight-i.clientHeight)*-1;this.scrollXRatio=r/o;let c=this.yBarViewChild.nativeElement,D=n.scrollHeight,T=n.clientHeight,ne=(e.clientWidth-c.clientWidth)*-1;this.scrollYRatio=T/D,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)i.setAttribute("data-p-scrollpanel-hidden","true"),d(i,"p-scrollpanel-hidden");else{i.setAttribute("data-p-scrollpanel-hidden","false"),f(i,"p-scrollpanel-hidden");let w=Math.max(this.scrollXRatio*100,10),M=Math.abs(n.scrollLeft*(100-w)/(o-r));i.style.cssText="width:"+w+"%; inset-inline-start:"+M+"%;bottom:"+l+"px;"}if(this.scrollYRatio>=1)c.setAttribute("data-p-scrollpanel-hidden","true"),d(c,"p-scrollpanel-hidden");else{c.setAttribute("data-p-scrollpanel-hidden","false"),f(c,"p-scrollpanel-hidden");let w=Math.max(this.scrollYRatio*100,10),M=n.scrollTop*(100-w)/(D-T);c.style.cssText="height:"+w+"%; top: calc("+M+"% - "+i.clientHeight+"px); inset-inline-end:"+ne+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if(this.orientation==="vertical")switch(e.code){case"ArrowDown":{this.setTimer("scrollTop",this.step),e.preventDefault();break}case"ArrowUp":{this.setTimer("scrollTop",this.step*-1),e.preventDefault();break}case"ArrowLeft":case"ArrowRight":{e.preventDefault();break}default:break}else if(this.orientation==="horizontal")switch(e.code){case"ArrowRight":{this.setTimer("scrollLeft",this.step),e.preventDefault();break}case"ArrowLeft":{this.setTimer("scrollLeft",this.step*-1),e.preventDefault();break}case"ArrowDown":case"ArrowUp":{e.preventDefault();break}default:break}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),d(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),d(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),d(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),d(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):this.isYBarClicked?this.onMouseMoveForYBar(e):(this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;e=e>n?n:e>0?e:0,this.contentViewChild.nativeElement.scrollTop=e}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){this.orientation==="horizontal"&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=C(t)))(i||t)}})();static \u0275cmp=F({type:t,selectors:[["p-scroll-panel"],["p-scrollPanel"],["p-scrollpanel"]],contentQueries:function(n,i,o){if(n&1&&(L(o,ee,4),L(o,Z,4)),n&2){let r;h(r=p())&&(i.contentTemplate=r.first),h(r=p())&&(i.templates=r)}},viewQuery:function(n,i){if(n&1&&(b(oe,5),b(ee,5),b(re,5),b(le,5)),n&2){let o;h(o=p())&&(i.containerViewChild=o.first),h(o=p())&&(i.contentViewChild=o.first),h(o=p())&&(i.xBarViewChild=o.first),h(o=p())&&(i.yBarViewChild=o.first)}},inputs:{style:"style",styleClass:"styleClass",step:[2,"step","step",U]},features:[Q([te]),X],ngContentSelectors:se,decls:11,vars:17,consts:[["container",""],["content",""],["xBar",""],["yBar",""],[3,"ngClass","ngStyle"],[1,"p-scrollpanel-content-container"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"]],template:function(n,i){if(n&1){let o=R();I(),v(0,"div",4,0)(2,"div",5)(3,"div",6,1),y("mouseenter",function(){return s(o),a(i.moveBar())})("scroll",function(l){return s(o),a(i.onScroll(l))}),Y(5,ae,1,0)(6,ce,1,0,"ng-container",7),g()(),v(7,"div",8,2),y("mousedown",function(l){return s(o),a(i.onXBarMouseDown(l))})("keydown",function(l){return s(o),a(i.onKeyDown(l))})("keyup",function(){return s(o),a(i.onKeyUp())})("focus",function(l){return s(o),a(i.onFocus(l))})("blur",function(){return s(o),a(i.onBlur())}),g(),v(9,"div",9,3),y("mousedown",function(l){return s(o),a(i.onYBarMouseDown(l))})("keydown",function(l){return s(o),a(i.onKeyDown(l))})("keyup",function(){return s(o),a(i.onKeyUp())})("focus",function(l){return s(o),a(i.onFocus(l))}),g()()}n&2&&(x(i.styleClass),V("ngClass","p-scrollpanel p-component")("ngStyle",i.style),m("data-pc-name","scrollpanel"),u(2),m("data-pc-section","wrapper"),u(),m("data-pc-section","content"),u(2),P(!i.contentTemplate&&!i._contentTemplate?5:-1),u(),V("ngTemplateOutlet",i.contentTemplate||i._contentTemplate),u(),m("aria-orientation","horizontal")("aria-valuenow",i.lastScrollLeft)("data-pc-section","barx")("aria-controls",i.contentId),u(2),m("aria-orientation","vertical")("aria-valuenow",i.lastScrollTop)("data-pc-section","bary")("aria-controls",i.contentId))},dependencies:[N,$,W,q,B],encapsulation:2,changeDetection:0})}return t})(),ke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=A({type:t});static \u0275inj=E({imports:[de,B,B]})}return t})();export{te as a,pe as b,de as c,ke as d};
@@ -1 +1 @@
1
- import{d as o}from"./chunk-TOJAZ32N.js";import{ca as r,ia as i}from"./chunk-VYKJK5YU.js";var c=(()=>{class n{constructor(){this.httpService=i(o)}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{c as a};
1
+ import{d as o}from"./chunk-CEUNPX5D.js";import{ba as r,ha as i}from"./chunk-2VF35PRV.js";var c=(()=>{class n{constructor(){this.httpService=i(o)}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{c as a};
@@ -1,4 +1,4 @@
1
- import{i as G}from"./chunk-OWI3BWEZ.js";import{Ea as P,Fa as A,Ga as H,Ha as g,Pa as V,pa as z}from"./chunk-ROKYJX6Q.js";import{k as R,n as w,o as O,p as N,t as B}from"./chunk-RUGQ4OJG.js";import{Bb as c,Ha as x,Jb as D,Kb as r,Ob as $,Ub as f,Vb as u,Xb as b,Yb as v,Zb as y,ca as S,da as F,ec as _,fc as j,gb as i,gc as h,hc as p,ia as I,jc as d,kc as s,mc as C,nc as Q,ta as T,ub as E,uc as q,vb as M,yb as k}from"./chunk-VYKJK5YU.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
1
+ import{a as G}from"./chunk-26X2X35R.js";import{V as z,ia as P,ja as A,ka as H,la as g,ta as V}from"./chunk-35EULUGT.js";import{j as R,m as w,n as O,o as N,s as B}from"./chunk-SJTXIIX5.js";import{Fa as x,Ib as D,Jb as r,Nb as $,Tb as f,Ub as u,Wb as b,Xb as v,Yb as y,ba as S,ca as F,dc as _,ec as j,fb as i,fc as h,ha as I,hc as p,jc as d,kc as s,mc as C,nc as Q,sa as T,tb as E,ub as M,uc as q,xb as k,zb as c}from"./chunk-2VF35PRV.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
2
2
  .p-card {
3
3
  background: ${e("card.background")};
4
4
  color: ${e("card.color")};
@@ -1 +1 @@
1
- import{d as m}from"./chunk-TOJAZ32N.js";import{o as g}from"./chunk-6BFODHTZ.js";import{Z as s,ca as l,ia as c}from"./chunk-VYKJK5YU.js";var a=class extends Error{};a.prototype.name="InvalidTokenError";function T(o){return decodeURIComponent(atob(o).replace(/(.)/g,(r,t)=>{let e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e}))}function p(o){let r=o.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return T(r)}catch{return atob(r)}}function u(o,r){if(typeof o!="string")throw new a("Invalid token specified: must be a string");r||(r={});let t=r.header===!0?0:1,e=o.split(".")[t];if(typeof e!="string")throw new a(`Invalid token specified: missing part #${t+1}`);let n;try{n=p(e)}catch(i){throw new a(`Invalid token specified: invalid base64 for part #${t+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new a(`Invalid token specified: invalid json for part #${t+1} (${i.message})`)}}var E=(()=>{class o{constructor(){this.httpService=c(m),this.router=c(g),this.autoLogout()}login(t){return this.httpService.post("","api/Authentication/login",t).pipe(s(e=>{let n=t.SubDomain;localStorage.setItem("AUTH_TOKEN",e.access_token),localStorage.setItem("AUTH_POS_TOKEN",e.pos.access_token),localStorage.setItem("AUTH_TOKEN_TYPE",e.token_type),localStorage.setItem("AUTH_EXPIRES_AT",e.expiredAt),localStorage.setItem("AUTH_DOMAIN",n.substring(n.indexOf("."))),localStorage.setItem("AUTH_SUB_DOMAIN",t.SubDomain.split(".")[0]),localStorage.setItem("AUTH_USERNAME",t.Username),this.storeTenantId(e.access_token),this.autoLogout()}))}isAuthenticated(){return!!localStorage.getItem("AUTH_TOKEN")}getToken(){return localStorage.getItem("AUTH_TOKEN")}getTokenType(){return localStorage.getItem("AUTH_TOKEN_TYPE")}isTokenExpired(){let t=localStorage.getItem("AUTH_EXPIRES_AT");return t?new Date(t).getTime()<Date.now():!0}autoLogout(){clearTimeout(this.logoutTimer);let t=localStorage.getItem("AUTH_EXPIRES_AT");if(!t)return;let e=new Date(t).getTime()-Date.now();e>0?this.logoutTimer=setTimeout(()=>this.logout(),e):this.logout()}getTenantExternalURL(){let t=localStorage.getItem("AUTH_SUB_DOMAIN")||"",e=localStorage.getItem("AUTH_DOMAIN")||"";return t&&e?`https://${t}${e}`:""}getTanantToken(){return localStorage.getItem("AUTH_POS_TOKEN")}logout(){localStorage.removeItem("AUTH_TOKEN"),localStorage.removeItem("AUTH_TOKEN_TYPE"),localStorage.removeItem("AUTH_EXPIRES_AT"),clearTimeout(this.logoutTimer),this.router.navigate(["/authentication/login"])}getFullDomain(){let t=localStorage.getItem("AUTH_SUB_DOMAIN"),e=localStorage.getItem("AUTH_DOMAIN");return!t||!e?(console.error("Subdomain or domain is missing in local storage."),null):`${t}${e}`}storeTenantId(t){let e=u(t);e&&localStorage.setItem("AC_TENANT",e.TID)}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{E as a};
1
+ import{d as m}from"./chunk-CEUNPX5D.js";import{o as g}from"./chunk-7T6O4KFO.js";import{Z as s,ba as l,ha as c}from"./chunk-2VF35PRV.js";var a=class extends Error{};a.prototype.name="InvalidTokenError";function T(o){return decodeURIComponent(atob(o).replace(/(.)/g,(r,t)=>{let e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e}))}function p(o){let r=o.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return T(r)}catch{return atob(r)}}function u(o,r){if(typeof o!="string")throw new a("Invalid token specified: must be a string");r||(r={});let t=r.header===!0?0:1,e=o.split(".")[t];if(typeof e!="string")throw new a(`Invalid token specified: missing part #${t+1}`);let n;try{n=p(e)}catch(i){throw new a(`Invalid token specified: invalid base64 for part #${t+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new a(`Invalid token specified: invalid json for part #${t+1} (${i.message})`)}}var E=(()=>{class o{constructor(){this.httpService=c(m),this.router=c(g),this.autoLogout()}login(t){return this.httpService.post("","api/Authentication/login",t).pipe(s(e=>{let n=t.SubDomain;localStorage.setItem("AUTH_TOKEN",e.access_token),localStorage.setItem("AUTH_POS_TOKEN",e.pos.access_token),localStorage.setItem("AUTH_TOKEN_TYPE",e.token_type),localStorage.setItem("AUTH_EXPIRES_AT",e.expiredAt),localStorage.setItem("AUTH_DOMAIN",n.substring(n.indexOf("."))),localStorage.setItem("AUTH_SUB_DOMAIN",t.SubDomain.split(".")[0]),localStorage.setItem("AUTH_USERNAME",t.Username),this.storeTenantId(e.access_token),this.autoLogout()}))}isAuthenticated(){return!!localStorage.getItem("AUTH_TOKEN")}getToken(){return localStorage.getItem("AUTH_TOKEN")}getTokenType(){return localStorage.getItem("AUTH_TOKEN_TYPE")}isTokenExpired(){let t=localStorage.getItem("AUTH_EXPIRES_AT");return t?new Date(t).getTime()<Date.now():!0}autoLogout(){clearTimeout(this.logoutTimer);let t=localStorage.getItem("AUTH_EXPIRES_AT");if(!t)return;let e=new Date(t).getTime()-Date.now();e>0?this.logoutTimer=setTimeout(()=>this.logout(),e):this.logout()}getTenantExternalURL(){let t=localStorage.getItem("AUTH_SUB_DOMAIN")||"",e=localStorage.getItem("AUTH_DOMAIN")||"";return t&&e?`https://${t}${e}`:""}getTanantToken(){return localStorage.getItem("AUTH_POS_TOKEN")}logout(){localStorage.removeItem("AUTH_TOKEN"),localStorage.removeItem("AUTH_TOKEN_TYPE"),localStorage.removeItem("AUTH_EXPIRES_AT"),clearTimeout(this.logoutTimer),this.router.navigate(["/authentication/login"])}getFullDomain(){let t=localStorage.getItem("AUTH_SUB_DOMAIN"),e=localStorage.getItem("AUTH_DOMAIN");return!t||!e?(console.error("Subdomain or domain is missing in local storage."),null):`${t}${e}`}storeTenantId(t){let e=u(t);e&&localStorage.setItem("AC_TENANT",e.TID)}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{E as a};
@@ -1 +1 @@
1
- import{o as u}from"./chunk-OWI3BWEZ.js";import{ya as f}from"./chunk-ROKYJX6Q.js";import{Jb as C,Kb as m,Ob as h,Ub as r,Vb as l,Wb as o,gb as a,sa as d,ta as s,ub as p,yb as c}from"./chunk-VYKJK5YU.js";var L=(()=>{class i extends u{pathId;ngOnInit(){this.pathId="url(#"+f()+")"}static \u0275fac=(()=>{let t;return function(e){return(t||(t=s(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["TimesCircleIcon"]],features:[c],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,e){n&1&&(d(),r(0,"svg",0)(1,"g"),o(2,"path",1),l(),r(3,"defs")(4,"clipPath",2),o(5,"rect",3),l()()()),n&2&&(h(e.getClassNames()),C("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role),a(),C("clip-path",e.pathId),a(3),m("id",e.pathId))},encapsulation:2})}return i})();export{L as a};
1
+ import{n as u}from"./chunk-OVJSBJBH.js";import{ca as f}from"./chunk-35EULUGT.js";import{Ib as C,Jb as m,Nb as h,Tb as r,Ub as l,Vb as o,fb as a,ra as d,sa as s,tb as p,xb as c}from"./chunk-2VF35PRV.js";var L=(()=>{class i extends u{pathId;ngOnInit(){this.pathId="url(#"+f()+")"}static \u0275fac=(()=>{let t;return function(e){return(t||(t=s(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["TimesCircleIcon"]],features:[c],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,e){n&1&&(d(),r(0,"svg",0)(1,"g"),o(2,"path",1),l(),r(3,"defs")(4,"clipPath",2),o(5,"rect",3),l()()()),n&2&&(h(e.getClassNames()),C("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role),a(),C("clip-path",e.pathId),a(3),m("id",e.pathId))},encapsulation:2})}return i})();export{L as a};
@@ -0,0 +1 @@
1
+ import{a as j}from"./chunk-FNOMC2TM.js";import{a as X,b as Y}from"./chunk-UNNEEFI2.js";import{a as oe,b as ae}from"./chunk-I7T4W6G2.js";import{h as Z,j as ee,k as te,l as ne}from"./chunk-MS3UTNX6.js";import"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{g as W}from"./chunk-NTJQFRIB.js";import{f as $,g as L}from"./chunk-USO7UKRV.js";import{a as h,b as G,c as O,d as q,e as K,f as Q}from"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{m as D,q as z,r as B,s as F}from"./chunk-SJTXIIX5.js";import{Fc as A,Gc as N,Hc as U,Ic as f,Jb as w,Mb as M,Tb as a,Ub as i,Uc as b,Vb as k,X as y,Zb as J,c as T,cc as E,dc as u,fb as p,ha as C,mc as c,nc as _,pa as g,qa as x,qc as H,s as v,tb as P,uc as I,vc as V,zb as S}from"./chunk-2VF35PRV.js";import{a as r,b as m}from"./chunk-EQDQRRRY.js";var ie={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},R=G(Q(ie),O(t=>({first:b(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:b(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:b(()=>t.data().data.some(d=>d.checked)),checkedAdjustment:b(()=>t.data().data.filter(d=>d.checked).map(d=>d.id))})),K(t=>{let d=C(j);return{updateFilter(o){h(t,n=>m(r({},n),{filter:r(r({},n.filter),o)}))},onRowSelect(o){h(t,n=>{let l=n.data.data.map(s=>s.id===o.id?m(r({},s),{checked:!0}):s);return m(r({},n),{data:m(r({},n.data),{data:l})})})},onRowUnselect(o){h(t,n=>{let l=n.data.data.map(s=>s.id===o.id?m(r({},s),{checked:!1}):s);return m(r({},n),{data:m(r({},n.data),{data:l})})})},onHeaderCheckboxToggle(o){h(t,n=>{let l=n.data.data.map(s=>m(r({},s),{checked:o}));return m(r({},n),{data:m(r({},n.data),{data:l})})})},getAdjustmentJournal:X(T(y(o=>d.getAdjustmentJournal(o).pipe(v(n=>m(r({},n),{data:n.data.map(l=>m(r({},l),{checked:!1}))})),Y({next:n=>{h(t,l=>m(r({},l),{data:n}))},error:n=>{console.error("Error fetching customer invoice:",n)}})))))}}),q(t=>({onInit:()=>{t.getAdjustmentJournal(t.filter)}})));var re=()=>({height:"calc(100vh - 70px)"});function le(t,d){if(t&1){let e=J();a(0,"p-button",7),E("onClick",function(){g(e);let n=u(2);return x(n.generateAdjusmentJournal())}),i()}}function me(t,d){if(t&1&&S(0,le,1,0,"p-button",6),t&2){let e=u();w("ngIf",e.store.hasCheckedRows())}}function ce(t,d){t&1&&(a(0,"tr")(1,"th",9),k(2,"p-tableHeaderCheckbox"),i(),a(3,"th"),c(4,"Outlet"),i(),a(5,"th"),c(6,"Number"),i(),a(7,"th"),c(8,"Date"),i(),a(9,"th"),c(10,"Adjustment Qty"),i(),a(11,"th"),c(12,"Type"),i(),a(13,"th"),c(14,"State"),i(),a(15,"th"),c(16,"Note"),i()())}function de(t,d){if(t&1&&(a(0,"tr")(1,"td"),k(2,"p-tableCheckbox",10),i(),a(3,"td"),c(4),i(),a(5,"td"),c(6),i(),a(7,"td"),c(8),A(9,"date"),i(),a(10,"td"),c(11),A(12,"number"),i(),a(13,"td"),c(14),i(),a(15,"td"),c(16),i(),a(17,"td"),c(18),i()()),t&2){let e=d.$implicit;p(2),w("value",e),p(2),_(e.outlet),p(2),_(e.number),p(2),_(U(9,8,e.date,"d MMM y")),p(3),_(N(12,11,e.quantitySUM)),p(3),_(e.type),p(2),_(e.state),p(2),_(e.note)}}function pe(t,d){if(t&1&&c(0),t&2){let e=u(2);H(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function se(t,d){if(t&1){let e=J();a(0,"p-panel")(1,"p-table",8),E("onRowSelect",function(n){g(e);let l=u();return x(l.onRowSelect(n))})("onRowUnselect",function(n){g(e);let l=u();return x(l.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){g(e);let l=u();return x(l.onHeaderCheckboxToggle(n))})("onPage",function(n){g(e);let l=u();return x(l.onPageChange(n))}),S(2,ce,17,0,"ng-template",null,2,f)(4,de,19,13,"ng-template",null,3,f)(6,pe,1,3,"ng-template",null,4,f),i()()}if(t&2){let e=u();M(V(9,re)),p(),w("value",e.store.data().data)("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}var Ve=(()=>{class t{constructor(){this.store=C(R),this.generateJournalService=C(j)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(o=>{this.store.onRowUnselect(o)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onPageChange(e){let o=e.first/e.rows;this.store.updateFilter(m(r({},this.store.filter()),{PageNumber:o+1}))}generateAdjusmentJournal(){this.generateJournalService.createAdjustmentJournal(this.store.checkedAdjustment()).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-adjustment-journal"]],features:[I([R])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Adjustment"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","onPage","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(o,n){o&1&&(a(0,"app-main-panel",5),S(1,me,1,1,"ng-template",null,0,f)(3,se,8,10,"ng-template",null,1,f),i())},dependencies:[W,ne,Z,ee,te,F,D,B,z,ae,oe,L,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{Ve as AdjustmentJournalComponent};
@@ -1,2 +1,2 @@
1
- import{p as g,w as v}from"./chunk-6BFODHTZ.js";import{k as u,t as f}from"./chunk-RUGQ4OJG.js";import{Kb as a,Ub as e,Vb as t,Wb as i,dc as p,gb as r,mc as n,ub as s,vc as d,wc as c}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";var h=o=>({"d-none":o}),k=()=>["/"],x=()=>["/authentication/signup2"],y=o=>({"d-block":o}),_=(()=>{class o{constructor(){this.loginform=!0,this.recoverform=!1}showRecoverForm(){this.loginform=!this.loginform,this.recoverform=!this.recoverform}static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=s({type:o,selectors:[["app-login"]],decls:62,vars:10,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
1
+ import{p as g,w as v}from"./chunk-7T6O4KFO.js";import{j as u,s as f}from"./chunk-SJTXIIX5.js";import{Jb as a,Tb as e,Ub as t,Vb as i,cc as p,fb as r,mc as n,tb as s,vc as d,wc as c}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";var h=o=>({"d-none":o}),k=()=>["/"],x=()=>["/authentication/signup2"],y=o=>({"d-block":o}),_=(()=>{class o{constructor(){this.loginform=!0,this.recoverform=!1}showRecoverForm(){this.loginform=!this.loginform,this.recoverform=!this.recoverform}static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=s({type:o,selectors:[["app-login"]],decls:62,vars:10,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
2
2
  no-repeat center center`],[1,"auth-box","on-sidebar","m-3","m-md-0"],["id","loginform",3,"ngClass"],[1,"text-center"],[1,"db"],["src","../../../../../assets/images/logos/logo-icon.svg","alt","logo"],[1,"font-medium","mb-4","mt-2"],[1,"row"],[1,"col-12"],["id","loginform",1,"form-horizontal","mt-3"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text"],[1,"ti-user"],["type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control"],["id","basic-addon2",1,"input-group-text"],[1,"ti-pencil"],["type","text","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1",1,"form-control"],[1,"form-group","row"],[1,"col-md-12"],[1,"form-check","d-flex"],["type","checkbox","id","customCheck1",1,"form-check-input"],["for","customCheck1",1,"form-check-label","fs-3","ms-2"],["href","javascript:void(0)","id","to-recover",1,"text-dark","ms-auto","fs-3",3,"click"],[1,"fa","fa-lock","me-2"],[1,"form-group","text-center","mt-4"],[1,"col-xs-12"],[1,"btn","d-block","w-100","btn-primary",3,"routerLink"],[1,"row","mt-4"],[1,"col-xs-12","col-sm-12","col-md-12","mt-2","text-center"],[1,"social"],["href","javascript:void(0)","data-toggle","tooltip","title","","data-original-title","Login with Facebook",1,"btn","btn-primary","me-2"],["aria-hidden","true",1,"fab","fa-facebook-f"],["href","javascript:void(0)","data-toggle","tooltip","title","","data-original-title","Login with Google",1,"btn","btn-danger"],["aria-hidden","true",1,"fab","fa-google"],[1,"form-group","mb-0","mt-2"],[1,"col-sm-12","text-center"],[1,"text-primary","ms-1",3,"routerLink"],["id","recoverform",3,"ngClass"],[1,"logo"],[1,"db","mb-2","d-block"],[1,"row","mt-3"],["action","../../../../../index.html",1,"col-12"],["type","email","required","","placeholder","Username",1,"form-control","form-control-lg"],["type","submit","name","action",1,"btn","d-block","w-100","btn-lg","btn-danger"]],template:function(m,l){m&1&&(e(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),i(5,"img",5),t(),e(6,"h5",6),n(7,"Sign In to Admin"),t()(),e(8,"div",7)(9,"div",8)(10,"form",9)(11,"div",10)(12,"span",11),i(13,"i",12),t(),i(14,"input",13),t(),e(15,"div",10)(16,"span",14),i(17,"i",15),t(),i(18,"input",16),t(),e(19,"div",17)(20,"div",18)(21,"div",19),i(22,"input",20),e(23,"label",21),n(24,"Remember me"),t(),e(25,"a",22),p("click",function(){return l.showRecoverForm()}),i(26,"i",23),n(27," Forgot pwd?"),t()()()(),e(28,"div",24)(29,"div",25)(30,"a",26),n(31,"Log In"),t()()(),e(32,"div",27)(33,"div",28)(34,"div",29)(35,"a",30),i(36,"i",31),t(),e(37,"a",32),i(38,"i",33),t()()()(),e(39,"div",34)(40,"div",35),n(41," Don't have an account? "),e(42,"a",36)(43,"b"),n(44,"Sign Up"),t()()()()()()()(),e(45,"div",37)(46,"div",38)(47,"span",39),i(48,"img",5),t(),e(49,"h5",6),n(50,"Recover Password"),t(),e(51,"span"),n(52,"Enter your Email and instructions will be sent to you!"),t()(),e(53,"div",40)(54,"form",41)(55,"div",17)(56,"div",8),i(57,"input",42),t()(),e(58,"div",40)(59,"div",8)(60,"button",43),n(61," Reset "),t()()()()()()()()),m&2&&(r(2),a("ngClass",c(4,h,l.recoverform)),r(28),a("routerLink",d(6,k)),r(12),a("routerLink",d(7,x)),r(3),a("ngClass",c(8,y,l.recoverform)))},dependencies:[f,u,v,g],encapsulation:2})}}return o})();export{_ as Login2Component};
@@ -0,0 +1,7 @@
1
+ import{a as Ce}from"./chunk-S64TQVWK.js";import{a as st,b as Fe,c as we}from"./chunk-ROX6NFMK.js";import{a as ct,b as dt}from"./chunk-VYTUB2DV.js";import{a as it}from"./chunk-GFHANKXL.js";import{a as at}from"./chunk-NNH4DORM.js";import{a as Se,b as xe,d as pt,e as mt}from"./chunk-QBJKUIXK.js";import"./chunk-ON4N4CPO.js";import"./chunk-GHZLR44M.js";import{a as ce}from"./chunk-MEKP6D5H.js";import{c as ot,d as Ie}from"./chunk-F6SXKAYF.js";import{a as G,b as N}from"./chunk-UNNEEFI2.js";import{a as ge,b as he}from"./chunk-I7T4W6G2.js";import{b as de,c as ue,h as fe,l as _e}from"./chunk-MS3UTNX6.js";import{h as De}from"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import{f as nt}from"./chunk-AVL6C3VX.js";import{b as se}from"./chunk-G7MS6UI4.js";import{f as lt,g as me}from"./chunk-NTJQFRIB.js";import{f as ae,g as pe}from"./chunk-USO7UKRV.js";import{a as F,b as ie,c as ne,d as oe,e as re,f as le,g as rt}from"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import{c as Ze,e as U,f as J,g as $e,h as B,j as Q,l as X,o as Z,r as Ee,u as $}from"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{d as tt}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import{c as Xe,m as et,p as ee,w as te}from"./chunk-7T6O4KFO.js";import{j as Je,m as be,q as Qe,r as K,s as H}from"./chunk-SJTXIIX5.js";import{D as ye,Fa as D,Fc as C,Gb as je,Gc as v,Hb as qe,Hc as He,Ic as s,Jb as c,Mb as j,Ob as We,Pb as ze,Rb as Ye,Sb as Ke,Tb as n,Ub as i,Uc as T,V as Pe,Vb as b,Vc as Ue,W as Ae,X as P,Z as q,Zb as V,ba as Ge,bb as Ne,c as O,cc as L,dc as _,fb as p,ha as g,mc as o,nc as d,oc as x,pa as E,qa as I,rc as W,s as Oe,sc as A,tb as w,tc as z,uc as Y,vc as R,wc as M,zb as h}from"./chunk-2VF35PRV.js";import{a as f,b as y,c as Be,e as ke}from"./chunk-EQDQRRRY.js";var k=(()=>{class e{constructor(){this.httpService=g(tt),this.authService=g(it)}fetchGeneralLedgerLoader(t={}){return this.httpService.post(void 0,"api/GeneralLedgerLoader/GetFilter",t)}fetchGeneralLedgerReport(t){return this.httpService.post(void 0,"api/GeneralLedger/Get",t)}getCustomerSuggestions(t){let r={Prefix:t,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:r})}getSupplierSuggestions(t){let r={Prefix:t,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:r})}getCashierSuggestions(t){let r={Prefix:t,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:r})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(t){let r=f({},t),m=new Xe;return Object.keys(r).forEach(S=>{m=m.set(S,String(r[S]))}),this.httpService.get(void 0,"/api/BalanceSheet",{params:m})}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(t){return this.httpService.post(void 0,"api/IncomeStatement/List",f({},t))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ge({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Rt={metadata:{filter:{categoryID:"",from:new Date().toISOString(),to:new Date().toISOString(),iDs:[],outletIDs:[]},options:{accounts:[],outlets:[]},roles:{isInEmptyOutletRole:!1}},items:{data:[],pageTitle:""},filter:{listAccountID:[],categoryID:null,OutletID:[],ContactID:null,from:null,to:null}},Re=ie(le(Rt),rt("General Ledger Store"),ne(e=>({hasData:T(()=>Array.isArray(e.items().data)&&e.items().data.length>0)})),re(e=>{let a=g(k),t={updateFilter:r=>{F(e,l=>y(f({},l),{filter:r}))},loadList:G(O(ye(r=>Array.isArray(r.listAccountID)&&r.listAccountID.length>0),P(r=>a.fetchGeneralLedgerReport(r).pipe(N({next:l=>{F(e,m=>y(f({},m),{items:l}))},error:l=>{console.error(l)}}))))),loadLoader:G(O(P(r=>a.fetchGeneralLedgerLoader(r).pipe(N({next:l=>{F(e,m=>y(f({},m),{metadata:l,filter:y(f({},m.filter),{categoryID:l.filter.categoryID})})),t.loadList(e.filter)},error:l=>{console.error(l)}}))),ce("res")))};return t}),oe({onInit:e=>{e.loadLoader({})}}));var Vt=()=>({height:"calc(100vh - 70px)"}),Lt=e=>["/journal/journal-entry/",e],Mt=e=>({"ng-invalid ng-dirty":e}),Bt=()=>({scrollHeight:"250px"});function kt(e,a){e&1&&(n(0,"div",9)(1,"a",10),o(2,"Return to Accounts"),i(),b(3,"p-button",11),i())}function Ot(e,a){e&1&&(n(0,"tr")(1,"th"),o(2,"Outlet"),i(),n(3,"th"),o(4,"No."),i(),n(5,"th"),o(6,"Date"),i(),n(7,"th"),o(8,"Name"),i(),n(9,"th"),o(10,"Description"),i(),n(11,"th"),o(12,"Debit"),i(),n(13,"th"),o(14,"Credit"),i(),n(15,"th"),o(16,"Balance"),i()())}function Pt(e,a){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td")(4,"a",16),o(5),i()(),n(6,"td"),o(7),C(8,"date"),i(),n(9,"td")(10,"a",17),o(11),i()(),b(12,"td"),n(13,"td",15),o(14),C(15,"number"),i(),n(16,"td",15),o(17),C(18,"number"),i(),n(19,"td",15),o(20),C(21,"number"),i()()),e&2){let t=a.$implicit;p(2),d(t.outletName),p(2),c("routerLink",M(18,Lt,t.id)),p(),d(t.number),p(2),d(He(8,9,t.date,"dd MMM yyyy")),p(3),c("href","https://rizastoretest.dealpos.net/menu/Contacts/Contact/Customers/Info?ID="+t.contactID,Ne),p(),d(t.contactName),p(3),d(v(15,12,t.debitAmount)),p(3),d(v(18,14,t.creditAmount)),p(3),d(v(21,16,t.balance))}}function At(e,a){if(e&1&&(n(0,"tr")(1,"td",14),o(2,"Starting Balance"),i(),n(3,"td",15),o(4),C(5,"number"),i()(),Ye(6,Pt,22,20,"tr",null,ze)),e&2){let t=a.$implicit;p(4),x(" ",v(5,1,t.startBalance)," "),p(2),Ke(t.data)}}function Gt(e,a){if(e&1&&(n(0,"tr"),b(1,"td",18),n(2,"td",19),o(3,"Total"),i(),n(4,"td",19),o(5),C(6,"number"),i(),n(7,"td",19),o(8),C(9,"number"),i(),b(10,"td"),i()),e&2){let t=_(3);p(5),x(" ",v(6,2,t.store.items().data[0].debitTotal)," "),p(3),x(" ",v(9,4,t.store.items().data[0].creditTotal)," ")}}function Nt(e,a){if(e&1&&(n(0,"p-panel")(1,"p-table",13),h(2,Ot,17,0,"ng-template",null,3,s)(4,At,8,3,"ng-template",null,4,s)(6,Gt,11,6,"ng-template",null,5,s),i()()),e&2){let t=_(2);j(R(4,Vt)),p(),c("value",t.store.items().data)("scrollable",!0)}}function jt(e,a){if(e&1&&h(0,Nt,8,5,"p-panel",12),e&2){let t=_();c("ngIf",t.store.items()&&t.store.items().data.length)}}function qt(e,a){if(e&1&&(n(0,"div",9)(1,"div",30)(2,"span",31),o(3),i()(),n(4,"div")(5,"span"),o(6,"-"),i()(),n(7,"div",30)(8,"span",32),o(9),i()()()),e&2){let t=a.$implicit;p(3),x("(",t.code,")"),p(6),d(t.name)}}function Wt(e,a){if(e&1&&(n(0,"div",9)(1,"div",30)(2,"span",31),o(3),i()(),n(4,"div")(5,"span"),o(6,"-"),i()(),n(7,"div",30)(8,"span",32),o(9),i()()()),e&2){let t=a.$implicit;p(3),x("(",t.code,")"),p(6),d(t.name)}}function zt(e,a){if(e&1&&(n(0,"div",33)(1,"div"),o(2),i()()),e&2){let t=a.$implicit;p(2),d(t.value)}}function Yt(e,a){if(e&1){let t=V();n(0,"div",21)(1,"label",22),o(2,"Customer"),i(),n(3,"p-autocomplete",34),L("completeMethod",function(l){E(t);let m=_(2);return I(m.searchCustomer(l))}),i()()}if(e&2){let t=_(2);p(3),c("suggestions",t.customerSuggestions())}}function Kt(e,a){if(e&1){let t=V();n(0,"div",21)(1,"label",22),o(2,"Supplier"),i(),n(3,"p-autocomplete",34),L("completeMethod",function(l){E(t);let m=_(2);return I(m.searchSupplier(l))}),i()()}if(e&2){let t=_(2);p(3),c("suggestions",t.supplierSuggestions())}}function Ht(e,a){if(e&1){let t=V();n(0,"form",20)(1,"div",21)(2,"label",22),o(3,"Accounts"),i(),n(4,"p-multiselect",23),h(5,qt,10,2,"ng-template",null,6,s)(7,Wt,10,2,"ng-template",null,7,s),i()(),n(9,"div",21)(10,"label",22),o(11,"From"),i(),b(12,"p-datepicker",24),i(),n(13,"div",21)(14,"label",22),o(15,"To"),i(),b(16,"p-datepicker",25),i(),n(17,"div",21)(18,"label",22),o(19,"Outlets"),i(),n(20,"p-multiselect",26),h(21,zt,3,1,"ng-template",null,7,s),i()(),n(23,"div",21)(24,"label",22),o(25,"Category"),i(),n(26,"p-treeselect",27),L("onFocus",function(){E(t);let l=_();return I(l.onCategoryFocus())}),i()(),n(27,"div",21)(28,"label",28),o(29,"Contact Type"),i(),b(30,"p-toggleswitch",29),i(),h(31,Yt,4,1,"div",21)(32,Kt,4,1,"div",21),i()}if(e&2){let t=_();c("formGroup",t.generalLedgerFilterForm),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.metadata().options.accounts)("ngClass",M(17,Mt,t.generalLedgerFilterForm.get("listAccountID").invalid&&t.generalLedgerFilterForm.get("listAccountID").touched||t.generalLedgerFilterForm.get("listAccountID").dirty)),p(8),c("iconDisplay","input")("showIcon",!0),p(4),c("iconDisplay","input")("showIcon",!0),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.metadata().options.outlets),p(6),c("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",R(19,Bt))("options",t.categoriesOptions()),p(5),We(t.generalLedgerFilterForm.get("contactType").value?31:32)}}var vt=(()=>{class e{constructor(){this.dialogFilterVisible=D(!1),this.reportService=g(k),this.coaService=g(at),this.store=g(Re),this.categoriesOptions=D([]),this.customerSuggestions=D([]),this.supplierSuggestions=D([]),this.route=g(et),this.dayjsService=g(Ce),this.initDialogVisible=D(!0),this.fb=g(Ee)}ngOnInit(){this.generateFilterForm(),this.route.queryParamMap.pipe(Oe(t=>t.get("id")),q(t=>{t&&(this.initDialogVisible.update(r=>!r),this.generalLedgerFilterForm.patchValue({listAccountID:[t]}),this.store.updateFilter(y(f({},this.store.filter()),{listAccountID:[t]})))})).subscribe(),this.generalLedgerFilterForm.patchValue({from:new Date})}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(ce("getCachedCategoriesOptions"),q(t=>this.categoriesOptions.set(t))).subscribe()}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({listAccountID:new B([],[Ze.required]),categoryID:new B(null),OutletID:new B([]),ContactID:new B(""),from:new B(new Date),to:new B(new Date),contactType:[!0]})}onFilterEvent(t){console.log(t),this.dialogFilterVisible.update(r=>!r)}onFilterOKEvent(){let S=this.generalLedgerFilterForm.value,{from:t,to:r}=S,l=Be(S,["from","to"]);if(this.generalLedgerFilterForm.invalid){this.generalLedgerFilterForm.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let m={categoryID:l.categoryID?.key??null,ContactID:l.ContactID.length?l.ContactID:null,OutletID:l.OutletID.length?l.OutletID:null,listAccountID:l.listAccountID,from:this.dayjsService.from(t)?this.dayjsService.from(t).format():null,to:this.dayjsService.from(r)?this.dayjsService.from(r).format():null};this.dialogFilterVisible.update(u=>!u),this.store.updateFilter(m),this.dialogFilterVisible.set(!1)}searchCustomer(t){this.reportService.getCustomerSuggestions(t.query).pipe(q(r=>this.customerSuggestions.set(r))).subscribe()}searchSupplier(t){this.reportService.getSupplierSuggestions(t.query).pipe(q(r=>this.supplierSuggestions.set(r))).subscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-report-general-ledger"]],features:[Y([Re])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["routerLink","/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export"],[3,"style",4,"ngIf"],["scrollHeight","calc(100vh - 150px)",3,"value","scrollable"],["colspan","7",1,"text-end"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","4"],[1,"text-end","fw-semibold"],[1,"d-flex","flex-column","row-gap-2",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["showClear","","filter","","filterBy","code,name","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"virtualScroll","virtualScrollItemSize","options","ngClass"],["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","","formControlName","OutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","filter","","filterBy","label","formControlName","categoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],["formControlName","contactType"],[1,""],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(r,l){if(r&1){let m=V();n(0,"app-main-panel",8),z("isDialogFilterVisibleChange",function(u){return E(m),A(l.dialogFilterVisible,u)||(l.dialogFilterVisible=u),I(u)})("isInitDialogFilterVisibleChange",function(u){return E(m),A(l.initDialogVisible,u)||(l.initDialogVisible=u),I(u)}),L("filterConfirmed",function(){return E(m),I(l.onFilterOKEvent())}),h(1,kt,4,0,"ng-template",null,0,s)(3,jt,1,1,"ng-template",null,1,s)(5,Ht,33,20,"ng-template",null,2,s),i()}r&2&&(c("pageTitle",l.store.items().pageTitle.length?l.store.items().pageTitle:"General Ledger"),W("isDialogFilterVisible",l.dialogFilterVisible),c("isFilterable",!0),W("isInitDialogFilterVisible",l.initDialogVisible))},dependencies:[me,H,Je,be,K,Qe,se,_e,fe,lt,pe,ae,De,ue,de,we,Fe,$,Q,U,J,X,Z,xe,Se,Ie,nt,mt,pt,dt,ct,he,ge,te,ee],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Ut={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},Te=ie(le(Ut),ne(e=>({totalCOGS:T(()=>{let a=e.data()?.data?.cogs;return Array.isArray(a)?a.reduce((t,r)=>t+(r?.Amount??0),0):0}),totalRevenue:T(()=>{let a=e.data()?.data?.revenue;return Array.isArray(a)?a.reduce((t,r)=>t+(r?.amount??0),0):0}),totalExpense:T(()=>{let a=e.data()?.data?.expense;return Array.isArray(a)?a.reduce((t,r)=>t+(r?.Amount??0),0):0}),isDataEmpty:T(()=>Object.keys(e.data()?.data??{}).length===0)})),re(e=>{let a=g(k),t=g(Ce),r={updateFilter(l){F(e,m=>y(f({},m),{filter:f(f({},m.filter),l)}))},getLoader:G(O(P(()=>a.getIncomeStatementLoader().pipe(N({next:l=>{F(e,m=>y(f({},m),{loader:l,filter:y(f({},m.filter),{from:t.now.format(),to:t.from(l.filter.to).format()})})),r.getIncomeStatement(e.filter)},error:l=>{console.error(l)}}))))),getIncomeStatement:G(O(P(l=>a.getIncomeStatement(l).pipe(Ae(()=>F(e,m=>y(f({},m),{isLoading:!0}))),N({next:m=>{F(e,S=>y(f({},S),{data:m,isLoading:!1}))},error:m=>{console.error(m)}})))))};return r}),oe({onInit:e=>{e.getLoader()}}));var Jt=()=>[be,K,fe,ge,import("./chunk-JXI4NDYT.js").then(e=>e.ScrollPanel),ee],Qt=()=>({height:"calc(100vh - 70px)"}),Xt=()=>({height:"calc(100vh - 150px)"}),yt=()=>({"min-width":"50rem"}),Zt=e=>["/chart-of-account/account/",e],$t=()=>["/report/general-ledger"],ei=e=>({id:e});function ti(e,a){e&1&&(n(0,"div",8),b(1,"p-button",9),i())}function ii(e,a){e&1&&(n(0,"tr")(1,"th",15),o(2,"Code"),i(),n(3,"th",16),o(4,"Name"),i(),n(5,"th",17),o(6,"Total"),i()())}function ni(e,a){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td")(4,"a",18),o(5),i()(),n(6,"td",17)(7,"a",19),o(8),C(9,"number"),i()()()),e&2){let t=a.$implicit;p(2),d(t.code),p(2),c("routerLink",M(8,Zt,t.accountID)),p(),d(t.name),p(2),c("routerLink",R(10,$t))("queryParams",M(11,ei,t.accountID)),p(),d(v(9,6,t.amount))}}function oi(e,a){if(e&1&&(n(0,"tr")(1,"td",20),o(2,"Total Asset"),i(),n(3,"td",21),o(4),C(5,"number"),i()()),e&2){let t=_(4);p(4),x(" ",v(5,1,t.store.totalRevenue())," ")}}function ri(e,a){e&1&&(n(0,"tr")(1,"td",22),o(2),i()()),e&2&&(p(2),x(" ","No data available"," "))}function li(e,a){e&1&&(n(0,"tr")(1,"th",15),o(2,"Code"),i(),n(3,"th",16),o(4,"Name"),i(),n(5,"th",23),o(6,"Total"),i()())}function ai(e,a){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td"),o(4),i(),n(5,"td",17),o(6),C(7,"number"),i()()),e&2){let t=a.$implicit;p(2),d(t.Code),p(2),d(t.Name),p(2),x(" ",v(7,3,t.Amount)," ")}}function pi(e,a){if(e&1&&(n(0,"tr")(1,"td",24),o(2,"Total Equity"),i(),b(3,"td",21),i(),n(4,"tr")(5,"td",24),o(6," Total Liability + Equity "),i(),n(7,"td",21),o(8),C(9,"number"),i()()),e&2){let t=_(4);p(8),x(" ",v(9,1,t.store.totalCOGS())," ")}}function mi(e,a){e&1&&(n(0,"tr")(1,"td",22),o(2),i()()),e&2&&(p(2),x(" ","No data available"," "))}function si(e,a){e&1&&(n(0,"tr")(1,"th",15),o(2,"Code"),i(),n(3,"th",16),o(4,"Name"),i(),n(5,"th",17),o(6,"Total"),i()())}function ci(e,a){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td"),o(4),i(),n(5,"td",17),o(6),C(7,"number"),i()()),e&2){let t=a.$implicit;p(2),d(t.Code),p(2),d(t.Name),p(2),d(v(7,3,t.Amount))}}function di(e,a){if(e&1&&(n(0,"tr")(1,"td",24),o(2,"Total Liability"),i(),n(3,"td",21),o(4),C(5,"number"),i()()),e&2){let t=_(4);p(4),x(" ",v(5,1,t.store.totalExpense())," ")}}function ui(e,a){e&1&&(n(0,"tr")(1,"td",22),o(2),i()()),e&2&&(p(2),x(" ","No data available"," "))}function fi(e,a){if(e&1&&(n(0,"p-scroll-panel")(1,"div",11)(2,"h6",12),o(3,"Asset"),i(),n(4,"p-table",13),h(5,ii,7,0,"ng-template",null,3,s)(7,ni,10,13,"ng-template",null,4,s),o(9," <"),h(10,oi,6,3,"ng-template",null,5,s)(12,ri,3,1,"ng-template",null,6,s),i(),n(14,"h4",12),o(15,"Liability + Equity"),i(),n(16,"p-table",14),h(17,li,7,0,"ng-template",null,3,s)(19,ai,8,5,"ng-template",null,4,s),o(21," <"),h(22,pi,10,3,"ng-template",null,5,s)(24,mi,3,1,"ng-template",null,6,s),i(),n(26,"h4",12),o(27,"Liability"),i(),n(28,"p-table",14),h(29,si,7,0,"ng-template",null,3,s)(31,ci,8,5,"ng-template",null,4,s),o(33," <"),h(34,di,6,3,"ng-template",null,5,s)(36,ui,3,1,"ng-template",null,6,s),i()()()),e&2){let t,r,l,m=_(3);j(R(7,Xt)),p(4),c("value",(t=m.store.data())==null||t.data==null?null:t.data.revenue),p(12),c("value",(r=m.store.data())==null||r.data==null?null:r.data.cogs)("tableStyle",R(8,yt)),p(12),c("value",(l=m.store.data())==null||l.data==null?null:l.data.expense)("tableStyle",R(9,yt))}}function _i(e,a){if(e&1&&(n(0,"p-panel"),h(1,fi,38,10,"p-scroll-panel",10),i()),e&2){let t=_(2);j(R(3,Qt)),p(),c("ngIf",t.store.data())}}function gi(e,a){if(e&1&&(h(0,_i,2,4),je(1,0,Jt)),e&2){let t=_();p(),qe(!t.store.isDataEmpty())}}function hi(e,a){if(e&1){let t=V();n(0,"form",25)(1,"div",26)(2,"label",27),o(3,"Outlet"),i(),b(4,"p-multiselect",28),i(),n(5,"div",26)(6,"label",27),o(7,"Cashier"),i(),n(8,"p-autocomplete",29),L("completeMethod",function(l){E(t);let m=_();return I(m.onCashierSearch(l))}),i()(),n(9,"div",26)(10,"label",27),o(11,"From"),i(),b(12,"p-datepicker",30),i(),n(13,"div",26)(14,"label",27),o(15,"To"),i(),b(16,"p-datepicker",31),i()()}if(e&2){let t=_();c("formGroup",t.formFilter),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.loader().options.outlets),p(4),c("showClear",!0)("suggestions",t.cashierSuggestions())}}var bt=(()=>{class e{constructor(){this.dayjsService=g(Ce),this.store=g(Te),this.fb=g(Ee),this.reportService=g(k),this.isInitDialogFilterVisible=D(!1),this.dialogFilterVisible=D(!1),this.cashierSuggestions=D([]),Ue(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm()}onSearch(t){this.store.updateFilter(y(f({},this.store.filter()),{Text:t}))}onCashierSearch(t){this.reportService.getCashierSuggestions(t.query).pipe(ce("Cashier Suggestions"),q(r=>this.cashierSuggestions.set(r))).subscribe()}initForm(){let t=this.store.filter();this.formFilter=this.fb.group({EntityID:this.fb.control(t.EntityID??[]),CashierID:this.fb.control(t.CashierID??null),Text:this.fb.control(t.Text??""),from:this.fb.control(t.from?this.dayjsService.from(t.from).toDate():null),to:this.fb.control(t.to?this.dayjsService.from(t.to).toDate():null)})}onFilterOK(){let t=this.formFilter.getRawValue(),r=Object.entries(t).reduce((l,[m,S])=>(m==="from"||m==="to"?S instanceof Date&&(l[m]=this.dayjsService.from(S).format()):m==="CashierID"?l[m]=Object.prototype.hasOwnProperty.call("Key",S)?S.Key:null:l[m]=S||null,l),{});this.store.updateFilter(f(f({},this.store.filter()),r)),this.dialogFilterVisible.update(l=>!l),console.log("body",t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-report-income-statement"]],features:[Y([Te])],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","search","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible","isSearchableInput"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export"],[3,"style",4,"ngIf"],[1,"d-flex","flex-column",2,"gap","2rem"],[1,"fs-5","fw-semibold"],[3,"value"],[3,"value","tableStyle"],[2,"width","20%"],[2,"width","10%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2 ",1,"fw-semibold"],[1,"text-end","fw-semibold"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],["colspan","2",1,"fw-semibold"],[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"],["appendTo","body","formControlName","CashierID","styleClass","w-100","inputStyleClass","w-100","field","Value","placeholder","Search a cashier",3,"completeMethod","showClear","suggestions"],["formControlName","from","styleClass","w-100","appendTo","body"],["formControlName","to","styleClass","w-100","appendTo","body"]],template:function(r,l){if(r&1){let m=V();n(0,"app-main-panel",7),z("isDialogFilterVisibleChange",function(u){return E(m),A(l.dialogFilterVisible,u)||(l.dialogFilterVisible=u),I(u)})("isInitDialogFilterVisibleChange",function(u){return E(m),A(l.isInitDialogFilterVisible,u)||(l.isInitDialogFilterVisible=u),I(u)}),L("search",function(u){return E(m),I(l.onSearch(u))})("filterConfirmed",function(){return E(m),I(l.onFilterOK())}),h(1,ti,2,0,"ng-template",null,0,s)(3,gi,3,1,"ng-template",null,1,s)(5,hi,17,6,"ng-template",null,2,s),i()}r&2&&(c("isFilterable",!0)("pageTitle",l.store.data().pageTitle),W("isDialogFilterVisible",l.dialogFilterVisible)("isInitDialogFilterVisible",l.isInitDialogFilterVisible),c("isSearchableInput",!0))},dependencies:[me,H,De,ue,de,$,Q,U,J,X,Z,xe,Se,se,_e,he,te,we,Fe,pe,ae],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Ve=ke(st());var Si={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,Ve.default)().format("YYYY-MM-DD"),listOutletParam:[]}},Le=ie(le(Si),ne(e=>({totalAsset:T(()=>e.data().asset.reduce((a,t)=>a+ +t.amount,0)),totalLiability:T(()=>e.data().liability.reduce((a,t)=>a+ +t.amount,0)),totalEquity:T(()=>e.data().equity.reduce((a,t)=>a+ +t.amount,0))})),re(e=>{let a=g(k),t={updateFilter:r=>{F(e,l=>y(f({},l),{filter:r}))},fetchBalanceSheet:G(O(ye(()=>{let r=e.filter();return Object.entries(r).every(([l,m])=>m!=null&&m!=="")}),P(r=>a.getBalanceSheet(r).pipe(N({next:l=>{F(e,m=>y(f({},m),{data:l}))},error:l=>{console.error(l)}}))),Pe(1))),fetchLoader:G(O(P(()=>a.getBalanceSheetLoader().pipe(N({next:r=>{F(e,l=>y(f({},l),{metadata:r,filter:{date:(0,Ve.default)(r.filter.to).format("YYYY-MM-DD")}})),t.fetchBalanceSheet(e.filter)},error:r=>{console.error(r)}})))))};return t}),oe(e=>({onInit:()=>{e.fetchLoader()}})));var Et=ke(st());var xi=()=>({height:"calc(100vh - 70px)"}),Ci=()=>({height:"calc(100vh - 100px)"}),Me=e=>["/chart-of-account/account/",e];function vi(e,a){e&1&&(n(0,"div",9),b(1,"p-button",10),i())}function yi(e,a){e&1&&(n(0,"tr")(1,"th",14),o(2,"Code"),i(),n(3,"th",15),o(4,"Asset"),i(),n(5,"th",16),o(6,"Total"),i()())}function bi(e,a){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td")(4,"a",17),o(5),i()(),n(6,"td",16),o(7),C(8,"number"),i()()),e&2){let t=a.$implicit;p(2),d(t.code),p(2),c("routerLink",M(6,Me,t.accountID)),p(),d(t.name),p(2),d(v(8,4,t.amount))}}function Ei(e,a){if(e&1&&(n(0,"tr")(1,"td",18),o(2,"Total Asset"),i(),n(3,"td",19),o(4),C(5,"number"),i()()),e&2){let t=_(2);p(4),x(" ",v(5,1,t.store.totalAsset())," ")}}function Ii(e,a){e&1&&(n(0,"tr")(1,"td",20),o(2),i()()),e&2&&(p(2),x(" ","No data available"," "))}function Di(e,a){e&1&&(n(0,"tr")(1,"th",14),o(2,"Code"),i(),n(3,"th",15),o(4,"Liability"),i(),n(5,"th",16),o(6,"Total"),i()())}function Fi(e,a){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td")(4,"a",21),o(5),i()(),n(6,"td",16),o(7),C(8,"number"),i()()),e&2){let t=a.$implicit;p(2),d(t.code),p(2),c("routerLink",M(6,Me,t.accountID)),p(),d(t.name),p(2),d(v(8,4,t.amount))}}function wi(e,a){if(e&1&&(n(0,"tr")(1,"td",22),o(2,"Total Liability"),i(),n(3,"td",19),o(4),C(5,"number"),i()()),e&2){let t=_(2);p(4),x(" ",v(5,1,t.store.totalLiability())," ")}}function Ri(e,a){e&1&&(n(0,"tr")(1,"td",20),o(2),i()()),e&2&&(p(2),x(" ","No data available"," "))}function Ti(e,a){e&1&&(n(0,"tr")(1,"th",14),o(2,"Code"),i(),n(3,"th",15),o(4,"Equity"),i(),n(5,"th",23),o(6,"Total"),i()())}function Vi(e,a){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td")(4,"a",17),o(5),i()(),n(6,"td",16),o(7),C(8,"number"),i()()),e&2){let t=a.$implicit;p(2),d(t.code),p(2),c("routerLink",M(6,Me,t.accountID)),p(),d(t.name),p(2),x(" ",v(8,4,t.amount)," ")}}function Li(e,a){if(e&1&&(n(0,"tr")(1,"td",22),o(2,"Total Equity"),i(),n(3,"td",19),o(4),C(5,"number"),i()(),n(6,"tr")(7,"td",22),o(8," Total Liability + Equity "),i(),n(9,"td",19),o(10),C(11,"number"),i()()),e&2){let t=_(2);p(4),x(" ",v(5,2,t.store.totalEquity())," "),p(6),x(" ",v(11,4,t.store.totalLiability()+t.store.totalEquity())," ")}}function Mi(e,a){e&1&&(n(0,"tr")(1,"td",20),o(2),i()()),e&2&&(p(2),x(" ","No data available"," "))}function Bi(e,a){if(e&1&&(n(0,"p-panel")(1,"p-scroll-panel")(2,"div",11)(3,"h4",12),o(4,"Asset"),i(),n(5,"p-table",13),h(6,yi,7,0,"ng-template",null,3,s)(8,bi,9,8,"ng-template",null,4,s)(10,Ei,6,3,"ng-template",null,5,s)(12,Ii,3,1,"ng-template",null,6,s),i(),b(14,"hr"),n(15,"h4",12),o(16,"Liability"),i(),n(17,"p-table",13),h(18,Di,7,0,"ng-template",null,3,s)(20,Fi,9,8,"ng-template",null,4,s)(22,wi,6,3,"ng-template",null,5,s)(24,Ri,3,1,"ng-template",null,6,s),i(),b(26,"hr"),n(27,"h4",12),o(28,"Equity"),i(),n(29,"p-table",13),h(30,Ti,7,0,"ng-template",null,3,s)(32,Vi,9,8,"ng-template",null,4,s),o(34," <"),h(35,Li,12,6,"ng-template",null,5,s)(37,Mi,3,1,"ng-template",null,6,s),i()()()()),e&2){let t=_();j(R(7,xi)),p(),j(R(8,Ci)),p(4),c("value",t.store.data().asset),p(12),c("value",t.store.data().liability),p(12),c("value",t.store.data().equity)}}function ki(e,a){if(e&1&&(n(0,"div",29)(1,"div"),o(2),i()()),e&2){let t=a.$implicit;p(2),d(t.value)}}function Oi(e,a){if(e&1&&(n(0,"form",24)(1,"div",25)(2,"label",26),o(3,"Outlet"),i(),n(4,"p-multiselect",27),h(5,ki,3,1,"ng-template",null,7,s),i()(),n(7,"div",25)(8,"label",26),o(9,"From"),i(),b(10,"p-datepicker",28),i()()),e&2){let t=_();c("formGroup",t.filterForm),p(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.metadata().options.outlets),p(6),c("iconDisplay","input")("showIcon",!0)}}var It=(()=>{class e{constructor(){this.store=g(Le),this.dialogFilterVisible=D(!1),this.isInitDialogFilterVisible=D(!1)}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new $e({date:new B(new Date),outletID:new B([])})}onFilterOKEvent(){let{date:t,outletID:r}=this.filterForm.value;this.store.updateFilter({date:(0,Et.default)(t).format("YYYY-MM-DD"),listOutletParam:r}),this.dialogFilterVisible.update(l=>!l)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-report-balance-sheet"]],features:[Y([Le])],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"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold"],[3,"value"],[2,"width","20%"],[2,"width","40%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["colspan","2 ",1,"fw-semibold"],[1,"text-end","fw-semibold"],["colspan","3",1,""],["target","_blank",1,"link","link-primary","d-flex","align-items-center",3,"routerLink"],["colspan","2",1,"fw-semibold"],[1,"text-end",2,"min-width","10%"],[1,"d-flex","flex-column","row-gap-2",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(r,l){if(r&1){let m=V();n(0,"app-main-panel",8),z("isDialogFilterVisibleChange",function(u){return E(m),A(l.dialogFilterVisible,u)||(l.dialogFilterVisible=u),I(u)})("isInitDialogFilterVisibleChange",function(u){return E(m),A(l.isInitDialogFilterVisible,u)||(l.isInitDialogFilterVisible=u),I(u)}),L("filterConfirmed",function(){return E(m),I(l.onFilterOKEvent())}),h(1,vi,2,0,"ng-template",null,0,s)(3,Bi,39,9,"ng-template",null,1,s)(5,Oi,11,6,"ng-template",null,2,s),i()}r&2&&(c("pageTitle",l.store.data().pageTitle)("isFilterable",!0),W("isDialogFilterVisible",l.dialogFilterVisible)("isInitDialogFilterVisible",l.isInitDialogFilterVisible))},dependencies:[me,H,K,_e,fe,se,pe,ae,$,Q,U,J,X,Z,xe,Se,ue,de,Ie,ot,he,ge,te,ee],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Dt=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(r,l){r&1&&(n(0,"p"),o(1,"report-comparative-balance works!"),i(),o(2,`
2
+ ,
3
+ `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Ft=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(r,l){r&1&&(n(0,"p"),o(1,"report-cash-flow works!"),i(),o(2,`
4
+ ,
5
+ `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var wt=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(r,l){r&1&&(n(0,"p"),o(1,"report-trial-balance works!"),i(),o(2,`
6
+ ,
7
+ `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Wo=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:vt},{path:"income-statement",component:bt},{path:"balance-sheet",component:It},{path:"comparative-balance",component:Dt},{path:"trial-balance",component:wt},{path:"cash-flow",component:Ft}]}];export{Wo as REPORTS_ROUTES};
@@ -1,2 +1,2 @@
1
- import{Ub as e,Vb as t,Wb as o,mc as r,ub as m}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";var c=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=m({type:n,selectors:[["app-lock"]],decls:18,vars:0,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
1
+ import{Tb as e,Ub as t,Vb as o,mc as r,tb as m}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";var c=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=m({type:n,selectors:[["app-lock"]],decls:18,vars:0,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
2
2
  no-repeat center center`],[1,"auth-box"],[1,"text-center"],[1,"db"],["alt","thumbnail","width","100","src","../../../../../assets/images/users/user1.jpg",1,"rounded-circle"],[1,"font-medium","mb-4","mt-1"],[1,"row"],[1,"col-12"],["action","../../../../../index.html",1,"form-horizontal","mt-3"],[1,"mb-3","row"],["type","password","required","","placeholder","Password",1,"form-control","form-control-lg"],[1,"col-xs-12"],["type","submit",1,"btn","d-block","w-100","btn-primary"]],template:function(i,l){i&1&&(e(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"span",3),o(5,"img",4),t(),e(6,"h5",5),r(7,"Genelia"),t()(),e(8,"div",6)(9,"div",7)(10,"form",8)(11,"div",9)(12,"div",7),o(13,"input",10),t()(),e(14,"div",2)(15,"div",11)(16,"button",12),r(17," LOGIN "),t()()()()()()()()())},encapsulation:2})}}return n})();export{c as LockComponent};
@@ -1 +1 @@
1
- import{d as u,v as b}from"./chunk-RUGQ4OJG.js";import{La as d,ca as n,da as s,fa as o,ha as a,ia as h,vb as c,za as p}from"./chunk-VYKJK5YU.js";var v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}var T=(()=>{class t{constructor(r){this._platformId=r,this.isBrowser=this._platformId?b(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(e){return new(e||t)(a(d))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var l;function _(){if(l==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>l=!0}))}finally{l=l||!1}return l}function F(t){return _()?t:!!t.capture}var g;function w(){if(g==null){let t=typeof document<"u"?document.head:null;g=!!(t&&(t.createShadowRoot||t.attachShadow))}return g}function B(t){if(w()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function A(t){return t.composedPath?t.composedPath()[0]:t.target}var P=new o("cdk-dir-doc",{providedIn:"root",factory:O});function O(){return h(u)}var x=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function k(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?x.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var $=(()=>{class t{constructor(r){if(this.value="ltr",this.change=new p,r){let e=r.body?r.body.dir:null,m=r.documentElement?r.documentElement.dir:null;this.value=k(e||m||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(e){return new(e||t)(a(P,8))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Vt=new o("NG_SCROLLBAR_OPTIONS"),jt=new o("NG_SCROLLBAR_POLYFILL");var Wt=new o("NG_SCROLLBAR");var Yt=new o("SCROLLBAR_CONTROL");var Ht=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=c({type:t})}static{this.\u0275inj=s({})}}return t})();export{T as a,F as b,B as c,A as d,$ as e,Ht as f};
1
+ import{a as u,v as b}from"./chunk-SJTXIIX5.js";import{Ja as d,ba as n,ca as s,ea as o,ga as a,ha as h,ub as c,ya as p}from"./chunk-2VF35PRV.js";var v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}var T=(()=>{class t{constructor(r){this._platformId=r,this.isBrowser=this._platformId?b(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(e){return new(e||t)(a(d))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var l;function _(){if(l==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>l=!0}))}finally{l=l||!1}return l}function F(t){return _()?t:!!t.capture}var g;function w(){if(g==null){let t=typeof document<"u"?document.head:null;g=!!(t&&(t.createShadowRoot||t.attachShadow))}return g}function B(t){if(w()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function A(t){return t.composedPath?t.composedPath()[0]:t.target}var P=new o("cdk-dir-doc",{providedIn:"root",factory:O});function O(){return h(u)}var x=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function k(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?x.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var $=(()=>{class t{constructor(r){if(this.value="ltr",this.change=new p,r){let e=r.body?r.body.dir:null,m=r.documentElement?r.documentElement.dir:null;this.value=k(e||m||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(e){return new(e||t)(a(P,8))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nt=new o("NG_SCROLLBAR_OPTIONS"),Vt=new o("NG_SCROLLBAR_POLYFILL");var jt=new o("NG_SCROLLBAR");var Wt=new o("SCROLLBAR_CONTROL");var Yt=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=c({type:t})}static{this.\u0275inj=s({})}}return t})();export{T as a,F as b,B as c,A as d,$ as e,Yt as f};
@@ -0,0 +1 @@
1
+ import{d as n}from"./chunk-CEUNPX5D.js";import{ba as e,ha as i}from"./chunk-2VF35PRV.js";var g=(()=>{class t{constructor(){this.httpService=i(n)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(){return this.httpService.post(void 0,"api/Migrate/accounting/journalheader",{})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=e({token:t,factory:t.\u0275fac})}}return t})();export{g as a};
@@ -0,0 +1,47 @@
1
+ import{e as pe}from"./chunk-EHULZLLD.js";import{c as re}from"./chunk-AVL6C3VX.js";import{f as ce,g as se}from"./chunk-USO7UKRV.js";import{a as le}from"./chunk-26X2X35R.js";import{ca as ne,ja as oe,ka as ie,la as V,ta as ae}from"./chunk-35EULUGT.js";import{c as te,d as S,f as Q,g as B,h as M}from"./chunk-F2X3VGZZ.js";import{j as U,m as X,n as Y,o as Z,s as ee}from"./chunk-SJTXIIX5.js";import{Ib as f,Ic as J,Jb as i,Nb as C,Rc as F,Tb as d,Ub as m,Vb as T,Wb as x,Xb as I,Yb as P,Zb as w,ba as O,ca as $,cc as k,dc as s,ec as H,fb as a,fc as E,ha as A,hc as u,ic as N,jc as _,kc as g,mc as W,nc as K,pa as b,qa as y,sa as D,tb as j,ub as q,uc as L,wc as h,xb as R,xc as z,ya as v,yc as G,zb as c}from"./chunk-2VF35PRV.js";var ge=["header"],ue=["icons"],me=["content"],fe=["footer"],he=["headericons"],be=["contentWrapper"],ye=["*",[["p-header"]],[["p-footer"]]],Te=["*","p-header","p-footer"],ve=(e,o)=>({"p-panel p-component":!0,"p-panel-toggleable":e,"p-panel-expanded":o}),Ce=e=>({transitionParams:e,height:"0",opacity:"0"}),xe=e=>({value:"hidden",params:e}),Ie=e=>({transitionParams:e,height:"*",opacity:"1"}),Pe=e=>({value:"visible",params:e}),we=(e,o,t)=>({"p-panel-icons-start":e,"p-panel-icons-end":o,"p-panel-icons-center":t}),ke=e=>({$implicit:e});function Ee(e,o){if(e&1&&(d(0,"span",12),W(1),m()),e&2){let t=s(2);f("id",t.id+"_header"),a(),K(t._header)}}function Fe(e,o){e&1&&P(0)}function Se(e,o){}function Qe(e,o){e&1&&c(0,Se,0,0,"ng-template")}function Be(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.expandIcon)}}function Me(e,o){e&1&&T(0,"MinusIcon")}function Ve(e,o){if(e&1&&(x(0),c(1,Be,1,2,"span",16)(2,Me,1,0,"MinusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.expandIcon),a(),i("ngIf",!t.expandIcon)}}function De(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.collapseIcon)}}function Oe(e,o){e&1&&T(0,"PlusIcon")}function $e(e,o){if(e&1&&(x(0),c(1,De,1,2,"span",16)(2,Oe,1,0,"PlusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.collapseIcon),a(),i("ngIf",!t.collapseIcon)}}function Ae(e,o){if(e&1&&(x(0),c(1,Ve,3,2,"ng-container",14)(2,$e,3,2,"ng-container",14),I()),e&2){let t=s(4);a(),i("ngIf",!t.collapsed),a(),i("ngIf",t.collapsed)}}function je(e,o){}function qe(e,o){e&1&&c(0,je,0,0,"ng-template")}function Re(e,o){if(e&1&&c(0,Ae,3,2,"ng-container",14)(1,qe,1,0,null,15),e&2){let t=s(3);i("ngIf",!t.headerIconsTemplate&&!t._headerIconsTemplate&&!(t.toggleButtonProps!=null&&t.toggleButtonProps.icon)),a(),i("ngTemplateOutlet",t.headerIconsTemplate||t._headerIconsTemplate)("ngTemplateOutletContext",h(3,ke,t.collapsed))}}function He(e,o){if(e&1){let t=w();d(0,"p-button",13),k("click",function(n){b(t);let r=s(2);return y(r.onIconClick(n))})("keydown",function(n){b(t);let r=s(2);return y(r.onKeyDown(n))}),c(1,Re,2,5,"ng-template",null,1,J),m()}if(e&2){let t=s(2);i("text",!0)("rounded",!0)("buttonProps",t.toggleButtonProps),f("id",t.id+"_header")("aria-label",t.buttonAriaLabel)("aria-controls",t.id+"_content")("aria-expanded",!t.collapsed)}}function Ne(e,o){if(e&1){let t=w();d(0,"div",8),k("click",function(n){b(t);let r=s();return y(r.onHeaderClick(n))}),c(1,Ee,2,2,"span",9),E(2,1),c(3,Fe,1,0,"ng-container",6),d(4,"div",10),c(5,Qe,1,0,null,6)(6,He,3,7,"p-button",11),m()()}if(e&2){let t=s();f("id",t.id+"-titlebar"),a(),i("ngIf",t._header),a(2),i("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),a(),i("ngClass",G(6,we,t.iconPos==="start",t.iconPos==="end",t.iconPos==="center")),a(),i("ngTemplateOutlet",t.iconTemplate||t._iconTemplate),a(),i("ngIf",t.toggleable)}}function We(e,o){e&1&&P(0)}function Ke(e,o){e&1&&P(0)}function Le(e,o){if(e&1&&(d(0,"div",17),E(1,2),c(2,Ke,1,0,"ng-container",6),m()),e&2){let t=s();a(2),i("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var ze=({dt:e})=>`
2
+ .p-panel {
3
+ border: 1px solid ${e("panel.border.color")};
4
+ border-radius: ${e("panel.border.radius")};
5
+ background: ${e("panel.background")};
6
+ color: ${e("panel.color")};
7
+ }
8
+
9
+ .p-panel-header {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ padding: ${e("panel.header.padding")};
14
+ background: ${e("panel.header.background")};
15
+ color: ${e("panel.header.color")};
16
+ border-style: solid;
17
+ border-width: ${e("panel.header.border.width")};
18
+ border-color: ${e("panel.header.border.color")};
19
+ border-radius: ${e("panel.header.border.radius")};
20
+ }
21
+
22
+ .p-panel-toggleable .p-panel-header {
23
+ padding: ${e("panel.toggleable.header.padding")};
24
+ }
25
+
26
+ .p-panel-title {
27
+ line-height: 1;
28
+ font-weight: ${e("panel.title.font.weight")};
29
+ }
30
+
31
+ .p-panel-content {
32
+ padding: ${e("panel.content.padding")};
33
+ }
34
+
35
+ .p-panel-footer {
36
+ padding: ${e("panel.footer.padding")};
37
+ }
38
+
39
+ /* For PrimeNG */
40
+ .p-panel-toggleable.p-panel-expanded > .p-panel-content-container:not(.ng-animating) {
41
+ overflow: visible
42
+ }
43
+
44
+ .p-panel-toggleable .p-panel-content-container {
45
+ overflow: hidden;
46
+ }
47
+ `,Ge={root:({props:e})=>["p-panel p-component",{"p-panel-toggleable":e.toggleable}],header:"p-panel-header",title:"p-panel-title",headerActions:"p-panel-header-actions",pcToggleButton:"p-panel-toggle-button",contentContainer:"p-panel-content-container",content:"p-panel-content",footer:"p-panel-footer"},de=(()=>{class e extends ae{name="panel";theme=ze;classes=Ge;static \u0275fac=(()=>{let t;return function(n){return(t||(t=D(e)))(n||e)}})();static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();var Je=(()=>{class e extends le{toggleable;_header;collapsed;style;styleClass;iconPos="end";expandIcon;collapseIcon;showHeader=!0;toggler="icon";transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";toggleButtonProps;collapsedChange=new v;onBeforeToggle=new v;onAfterToggle=new v;footerFacet;animating;headerTemplate;iconTemplate;contentTemplate;footerTemplate;headerIconsTemplate;_headerTemplate;_iconTemplate;_contentTemplate;_footerTemplate;_headerIconsTemplate;contentWrapperViewChild;id=ne("pn_id_");get buttonAriaLabel(){return this._header}_componentStyle=A(de);onHeaderClick(t){this.toggler==="header"&&this.toggle(t)}onIconClick(t){this.toggler==="icon"&&this.toggle(t)}toggle(t){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:t,collapsed:this.collapsed}),this.toggleable&&(this.collapsed?this.expand():this.collapse()),this.cd.markForCheck(),t.preventDefault()}expand(){this.collapsed=!1,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}collapse(){this.collapsed=!0,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}getBlockableElement(){return this.el.nativeElement.children[0]}updateTabIndex(){this.contentWrapperViewChild&&this.contentWrapperViewChild.nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]:not([tabindex="-1"])').forEach(l=>{this.collapsed?l.setAttribute("tabindex","-1"):l.removeAttribute("tabindex")})}onKeyDown(t){(t.code==="Enter"||t.code==="Space")&&(this.toggle(t),t.preventDefault())}onToggleDone(t){this.animating=!1,this.onAfterToggle.emit({originalEvent:t,collapsed:this.collapsed})}templates;ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this._headerTemplate=t.template;break;case"content":this._contentTemplate=t.template;break;case"footer":this._footerTemplate=t.template;break;case"icons":this._iconTemplate=t.template;break;case"headericons":this._headerIconsTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}static \u0275fac=(()=>{let t;return function(n){return(t||(t=D(e)))(n||e)}})();static \u0275cmp=j({type:e,selectors:[["p-panel"]],contentQueries:function(l,n,r){if(l&1&&(u(r,oe,5),u(r,ge,4),u(r,ue,4),u(r,me,4),u(r,fe,4),u(r,he,4),u(r,ie,4)),l&2){let p;_(p=g())&&(n.footerFacet=p.first),_(p=g())&&(n.headerTemplate=p.first),_(p=g())&&(n.iconTemplate=p.first),_(p=g())&&(n.contentTemplate=p.first),_(p=g())&&(n.footerTemplate=p.first),_(p=g())&&(n.headerIconsTemplate=p.first),_(p=g())&&(n.templates=p)}},viewQuery:function(l,n){if(l&1&&N(be,5),l&2){let r;_(r=g())&&(n.contentWrapperViewChild=r.first)}},inputs:{toggleable:[2,"toggleable","toggleable",F],_header:[0,"header","_header"],collapsed:[2,"collapsed","collapsed",F],style:"style",styleClass:"styleClass",iconPos:"iconPos",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:[2,"showHeader","showHeader",F],toggler:"toggler",transitionOptions:"transitionOptions",toggleButtonProps:"toggleButtonProps"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},features:[L([de]),R],ngContentSelectors:Te,decls:8,vars:25,consts:[["contentWrapper",""],["icon",""],[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-panel-content-container",3,"id"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons",3,"ngClass"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"text","rounded","buttonProps","click","keydown",4,"ngIf"],[1,"p-panel-title"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"click","keydown","text","rounded","buttonProps"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class",4,"ngIf"],[1,"p-panel-footer"]],template:function(l,n){if(l&1){let r=w();H(ye),d(0,"div",2),c(1,Ne,7,10,"div",3),d(2,"div",4),k("@panelContent.done",function(_e){return b(r),y(n.onToggleDone(_e))}),d(3,"div",5,0),E(5),c(6,We,1,0,"ng-container",6),m(),c(7,Le,3,1,"div",7),m()()}l&2&&(C(n.styleClass),i("ngClass",z(14,ve,n.toggleable,!n.collapsed&&n.toggleable))("ngStyle",n.style),f("id",n.id)("data-pc-name","panel"),a(),i("ngIf",n.showHeader),a(),i("id",n.id+"_content")("@panelContent",n.collapsed?h(19,xe,h(17,Ce,n.animating?n.transitionOptions:"0ms")):h(23,Pe,h(21,Ie,n.animating?n.transitionOptions:"0ms"))),f("aria-labelledby",n.id+"_header")("aria-hidden",n.collapsed)("tabindex",n.collapsed?"-1":void 0),a(4),i("ngTemplateOutlet",n.contentTemplate||n._contentTemplate),a(),i("ngIf",n.footerFacet||n.footerTemplate||n._footerTemplate))},dependencies:[ee,U,X,Z,Y,pe,re,se,ce,V],encapsulation:2,data:{animation:[te("panelContent",[B("hidden",Q({height:"0"})),B("void",Q({height:"{{height}}"}),{params:{height:"0"}}),B("visible",Q({height:"*"})),M("visible <=> hidden",[S("{{transitionParams}}")]),M("void => hidden",S("{{transitionParams}}")),M("void => visible",S("{{transitionParams}}"))])]},changeDetection:0})}return e})(),bt=(()=>{class e{static \u0275fac=function(l){return new(l||e)};static \u0275mod=q({type:e});static \u0275inj=$({imports:[Je,V,V]})}return e})();export{Je as a,bt as b};
@@ -1 +1 @@
1
- import{da as o,fa as r,vb as a}from"./chunk-VYKJK5YU.js";var p=/[&<>"']/g,ke=RegExp(p.source);function m(){return new l}var l=class{constructor(){this._selected=[]}get value(){return this._selected}select(e,t,i){if(e.selected=!0,(!e.children||!t&&i)&&this._selected.push(e),t)if(e.parent){let n=e.parent.children.length,u=e.parent.children.filter(c=>c.selected).length;e.parent.selected=n===u}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),i&&this._activeChildren(e)?this._selected=[...this._selected.filter(n=>n.parent!==e),e]:this._selected=[...this._selected,...e.children.filter(n=>!n.disabled)])}unselect(e,t){if(this._selected=this._selected.filter(i=>i!==e),e.selected=!1,t)if(e.parent&&e.parent.selected){let i=e.parent.children;this._removeParent(e.parent),this._removeChildren(e.parent),this._selected.push(...i.filter(n=>n!==e&&!n.disabled)),e.parent.selected=!1}else e.children&&(this._setChildrenSelectedState(e.children,!1),this._removeChildren(e))}clear(e){this._selected=e?this._selected.filter(t=>t.disabled):[]}_setChildrenSelectedState(e,t){for(let i of e)i.disabled||(i.selected=t)}_removeChildren(e){this._selected=[...this._selected.filter(t=>t.parent!==e),...e.children.filter(t=>t.parent===e&&t.disabled&&t.selected)]}_removeParent(e){this._selected=this._selected.filter(t=>t!==e)}_activeChildren(e){return e.children.every(t=>!t.disabled||t.selected)}};var g=new r("ng-select-selection-model");var Le=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=a({type:s})}static{this.\u0275inj=o({providers:[{provide:g,useValue:m}]})}}return s})();export{Le as a};
1
+ import{ca as o,ea as r,ub as a}from"./chunk-2VF35PRV.js";var p=/[&<>"']/g,Oe=RegExp(p.source);function m(){return new l}var l=class{constructor(){this._selected=[]}get value(){return this._selected}select(e,t,i){if(e.selected=!0,(!e.children||!t&&i)&&this._selected.push(e),t)if(e.parent){let n=e.parent.children.length,u=e.parent.children.filter(c=>c.selected).length;e.parent.selected=n===u}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),i&&this._activeChildren(e)?this._selected=[...this._selected.filter(n=>n.parent!==e),e]:this._selected=[...this._selected,...e.children.filter(n=>!n.disabled)])}unselect(e,t){if(this._selected=this._selected.filter(i=>i!==e),e.selected=!1,t)if(e.parent&&e.parent.selected){let i=e.parent.children;this._removeParent(e.parent),this._removeChildren(e.parent),this._selected.push(...i.filter(n=>n!==e&&!n.disabled)),e.parent.selected=!1}else e.children&&(this._setChildrenSelectedState(e.children,!1),this._removeChildren(e))}clear(e){this._selected=e?this._selected.filter(t=>t.disabled):[]}_setChildrenSelectedState(e,t){for(let i of e)i.disabled||(i.selected=t)}_removeChildren(e){this._selected=[...this._selected.filter(t=>t.parent!==e),...e.children.filter(t=>t.parent===e&&t.disabled&&t.selected)]}_removeParent(e){this._selected=this._selected.filter(t=>t!==e)}_activeChildren(e){return e.children.every(t=>!t.disabled||t.selected)}};var g=new r("ng-select-selection-model");var ke=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=a({type:s})}static{this.\u0275inj=o({providers:[{provide:g,useValue:m}]})}}return s})();export{ke as a};
@@ -0,0 +1 @@
1
+ import{a,b,c,d}from"./chunk-F6SXKAYF.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import"./chunk-SJTXIIX5.js";import"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";export{c as ScrollPanel,b as ScrollPanelClasses,d as ScrollPanelModule,a as ScrollPanelStyle};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-I2MAIV44.js";import{g as C}from"./chunk-NTJQFRIB.js";import"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{a as T}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{s as v}from"./chunk-SJTXIIX5.js";import{Ic as a,Tb as i,Ub as o,Zb as g,cc as x,dc as d,ha as r,mc as c,pa as l,qa as p,tb as u,uc as _,zb as f}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";function M(e,h){if(e&1){let t=g();i(0,"div",3)(1,"button",4),x("click",function(){l(t);let s=d();return p(s.onMigrate())}),c(2,"Migrate"),o()()}}function S(e,h){e&1&&(i(0,"div",5),c(1," reserved for future User Interface (UI) enhancements "),o())}var j=(()=>{class e{constructor(){this.migrateService=r(m),this.toastr=r(T)}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=u({type:e,selectors:[["app-tax-account"]],features:[_([m])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Tax Account"],[1,"d-flex","gap-2"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,s){n&1&&(i(0,"app-main-panel",2),f(1,M,3,0,"ng-template",null,0,a)(3,S,2,0,"ng-template",null,1,a),o())},dependencies:[C,v],encapsulation:2})}}return e})();export{j as TaxAccountComponent};
@@ -0,0 +1 @@
1
+ import{a as Ge,b as Re,c as je}from"./chunk-DWTUKOMR.js";import{a as qe,b as Ue,c as We,d as ze,e as Ke,f as He}from"./chunk-CEMQLY34.js";import{a as $e,b as Le}from"./chunk-VYTUB2DV.js";import"./chunk-GHZLR44M.js";import{a as Ae}from"./chunk-MEKP6D5H.js";import{c as Te,d as Fe}from"./chunk-F6SXKAYF.js";import{a as Z,b as ee}from"./chunk-I7T4W6G2.js";import{b as Me,c as we,d as Be,e as Ne,f as Pe,g as ke,h as Oe,l as Ve}from"./chunk-MS3UTNX6.js";import{g as De,h as Je}from"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{a as X,b as Y}from"./chunk-G7MS6UI4.js";import{g as P}from"./chunk-NTJQFRIB.js";import{f as G,g as R}from"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import{t as Q,u as J}from"./chunk-OVJSBJBH.js";import{b as V,c as ae,e as D,f as L,i as q,k as xe,l as U,m as he,o as W,r as z,t as K,u as H}from"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import{ga as le,ka as Ie}from"./chunk-35EULUGT.js";import{a as ye,d as Ee}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import{p as be,w as Se}from"./chunk-7T6O4KFO.js";import{j as $,m as ve,r as Ce,s as N}from"./chunk-SJTXIIX5.js";import{Fa as E,Fc as oe,Gc as re,Ic as d,Jb as m,Mb as se,Ob as ne,Pb as I,Rb as T,Sb as F,Tb as i,Ub as n,Uc as j,Vb as p,Z as O,Zb as b,ba as ce,cc as S,dc as u,fb as a,ha as _,lb as ue,mc as o,nc as x,pa as v,qa as C,rc as de,sc as ge,tb as w,tc as fe,uc as _e,vc as ie,wc as B,zb as f}from"./chunk-2VF35PRV.js";import{a as A,b as M}from"./chunk-EQDQRRRY.js";var k=(()=>{class t{#e=_(Ee);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ye=t=>({"active-state":t}),Ze=t=>({"text-white":t});function lt(t,l){if(t&1){let e=b();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),S("click",function(){v(e);let c=u();return C(c.updateAccountingIntegration())}),n()()}}function mt(t,l){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=l.$implicit,r=l.$index;m("value",r),a(),x(e)}}function pt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," End Of Shift "),n()()),t&2){let e=u(4);m("ngClass",B(2,Ye,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),m("ngClass",B(4,Ze,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function ct(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," Every "),n()()),t&2){let e=u(4);m("ngClass",B(2,Ye,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),m("ngClass",B(4,Ze,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function ut(t,l){if(t&1&&f(0,pt,3,6,"div",39)(1,ct,3,6,"div",39),t&2){let e,r=u().$implicit;ne((e=r.key)===0?0:e===1?1:-1)}}function st(t,l){t&1&&(i(0,"h4"),o(1,"Suitable for Cash Sales (Retail & FnB)"),n(),i(2,"p"),o(3," One Journal is generated for all transaction happening within a register open - close period "),n())}function dt(t,l){t&1&&(i(0,"h4"),o(1,"Every"),n(),i(2,"p"),o(3," Suitable for Credit Sales (Wholesale) Journal is generated for each transaction "),n())}function gt(t,l){if(t&1){let e=b();i(0,"div",13),p(1,"p-radiobutton",37),i(2,"p-card",38),S("click",function(){v(e);let c=u(2);return C(c.changeJournalType())}),f(3,ut,2,1,"ng-template",null,2,d)(5,st,4,0)(6,dt,4,0),n()()}if(t&2){let e,r=l.$implicit;a(),m("inputId",r.value)("value",r.key),a(4),ne((e=r.key)===0?5:e===1?6:-1)}}function ft(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",41),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function _t(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",43),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function vt(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",44),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function Ct(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",45),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function xt(t,l){if(t&1&&(i(0,"div",7)(1,"p-tabs",8)(2,"p-tablist"),T(3,mt,2,2,"p-tab",9,I),n(),i(5,"p-tabpanels")(6,"p-tabpanel",9)(7,"h4"),o(8,"Integration with POS"),n(),i(9,"p"),o(10,"Generate Journal"),n(),i(11,"div",10)(12,"div",11)(13,"div",12),T(14,gt,7,3,"div",13,I),n()()(),p(16,"hr"),i(17,"div",14)(18,"h3"),o(19,"Journal Generate"),n(),i(20,"p"),o(21,"Configure generate transaction"),n(),i(22,"div",12)(23,"div",15)(24,"div",16)(25,"div",15)(26,"div",17)(27,"label",18),o(28,"Generate EOD Expense Journal"),n(),p(29,"p-toggleswitch",19),n()(),p(30,"div",15),i(31,"div",15)(32,"div",17)(33,"label",18),o(34,"Generate Outlet Delivery Journal"),n(),p(35,"p-toggleswitch",20),n()(),p(36,"div",15),i(37,"div",15)(38,"div",17)(39,"label",18),o(40,"Generate Payment Discount Journal On Payment"),n(),p(41,"p-toggleswitch",21),n()()()()()()(),i(42,"p-tabpanel",22)(43,"div",23)(44,"h3"),o(45,"Accounting Numbering"),n(),i(46,"p"),o(47,"Configure numbering format and rule for your accounting"),n(),i(48,"div",12)(49,"div",15)(50,"div",16)(51,"div",15)(52,"div",17)(53,"label",24),o(54,"Digit"),n(),p(55,"p-inputnumber",25),n()(),p(56,"div",15),i(57,"div",15)(58,"div",17)(59,"label",26),o(60,"Seed"),n(),p(61,"p-inputnumber",27),n()(),i(62,"div",15)(63,"div",17)(64,"label",28),o(65,"Last Number"),n(),p(66,"p-inputnumber",29),n()(),i(67,"div",15)(68,"div",17)(69,"label",18),o(70,"Reset Every"),n(),i(71,"div",30),T(72,ft,4,4,"div",31,I),n()()(),i(74,"div",15)(75,"div",17)(76,"label",18),o(77,"Format"),n(),p(78,"p-select",32),n()()()()()()(),i(79,"p-tabpanel",33)(80,"div",23)(81,"h3"),o(82,"Report"),n(),i(83,"p"),o(84,"Configure report behavior"),n(),i(85,"div",12)(86,"div",15)(87,"div",16)(88,"div",15)(89,"div",17)(90,"label",18),o(91,"Audit Journal Transaction"),n(),i(92,"div",30),T(93,_t,4,4,"div",31,I),n()()(),p(95,"div",15),i(96,"div",15)(97,"div",17)(98,"label",18),o(99,"Accounting For Treatment"),n(),i(100,"div",30),T(101,vt,4,4,"div",31,I),n()()(),p(103,"div",15),i(104,"div",15)(105,"div",17)(106,"label",18),o(107,"Configure Report Access Control in COA"),n(),i(108,"div",30),T(109,Ct,4,4,"div",31,I),n()()()()()()()(),i(111,"p-tabpanel",34)(112,"div",23)(113,"h3"),o(114,"Note"),n(),i(115,"p"),o(116,"Configure show note"),n(),i(117,"div",12)(118,"div",15)(119,"div",16)(120,"div",15)(121,"div",17)(122,"label",18),o(123,"Note Required On Journal"),n(),p(124,"p-toggleswitch",35),n()(),p(125,"div",15),i(126,"div",15)(127,"div",17)(128,"label",18),o(129,"Trial Balance Footer Visible"),n(),p(130,"p-toggleswitch",36),n()(),p(131,"div",15),n()()()()()()()()),t&2){let e,r,c,s,y,g,h=u();a(),m("value",0)("formGroup",h.form),a(2),F(h.tabs()),a(3),m("value",0),a(8),F((e=h.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(28),m("value",1),a(30),F((r=h.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(6),m("options",(c=h.accountingIntegration())==null||c.options==null?null:c.options.monthlyResetPeriodFormat),a(),m("value",2),a(14),F((s=h.accountingIntegration())==null||s.options==null?null:s.options.auditType),a(8),F((y=h.accountingIntegration())==null||y.options==null?null:y.options.generatePrepaidJournal),a(8),F((g=h.accountingIntegration())==null||g.options==null?null:g.options.entityAccess),a(2),m("value",3)}}var et=(()=>{class t{constructor(){this.accountingSetupService=_(k),this.fb=_(z).nonNullable,this.tabs=E(["Pos","Numbering","Report","Note"]),this.journalType=E(0),this.accountingIntegration=E(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>M(A({},r),{form:M(A({},r.form),{posIntegration:M(A({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(O(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"overflow-y-auto"],[3,"value","formGroup"],[3,"value"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,"px-3"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for",""],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,"px-3"],["for","digit"],["inputId","digit","formControlName","digit"],["for","seed"],["inputId","seed","formControlName","seed"],["for","lastNumber"],["inputId","lastNumber","formControlName","lastNumber"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-2"],["formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],["formGroupName","report",3,"value"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"ml-2","m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,lt,4,0,"ng-template",null,0,d)(3,xt,132,7,"ng-template",null,1,d),n())},dependencies:[N,$,He,Ke,ze,We,qe,Ue,P,Y,X,ke,Pe,H,D,L,U,W,he,J,Je,De,Le,$e,Se,be,R,G,Ne,Be],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:#5680e9}"],changeDetection:0})}}return t})();var ht=()=>({width:"100%",height:"calc(100vh - 300px)"}),bt=()=>[];function St(t,l){t&1&&(i(0,"div"),p(1,"p-button",5),n())}function yt(t,l){t&1&&(i(0,"tr")(1,"th"),o(2,"Account Name"),n(),i(3,"th",17),o(4,"Debit"),n(),i(5,"th",17),o(6,"Credit"),n()())}function Et(t,l){if(t&1){let e=b();i(0,"tr")(1,"td"),o(2),n(),i(3,"td")(4,"input",18),S("ngModelChange",function(c){let s=v(e).rowIndex,y=u(2).$index,g=u(2);return C(g.dfsfsd(c,y,s,"debitAmount"))}),n()(),i(5,"td")(6,"input",18),S("ngModelChange",function(c){let s=v(e).rowIndex,y=u(2).$index,g=u(2);return C(g.dfsfsd(c,y,s,"creditAmount"))}),n()()()}if(t&2){let e=l.$implicit;a(2),x(e.accountName),a(2),m("ngModel",e.debitAmount),a(2),m("ngModel",e.creditAmount)}}function It(t,l){if(t&1&&(i(0,"p-table",14),f(1,yt,7,0,"ng-template",15)(2,Et,7,3,"ng-template",16),n()),t&2){let e=u().$implicit;m("value",e.items)}}function Tt(t,l){if(t&1&&(i(0,"div",7)(1,"div",8)(2,"div",12)(3,"h4"),o(4),n()(),i(5,"div"),f(6,It,3,1,"p-table",13),n()()()),t&2){let e=l.$implicit;a(4),x(e.name),a(2),m("ngIf",e.items.length)}}function Ft(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",19),o(3,"Total"),n()(),i(4,"td",17)(5,"p",19),o(6),oe(7,"number"),n()(),i(8,"td",17)(9,"p",19),o(10),oe(11,"number"),n()()()),t&2){let e=u(2);a(6),x(re(7,2,e.subTotalDebit())),a(4),x(re(11,4,e.subTotalCredit()))}}function At(t,l){if(t&1&&(i(0,"p-card",6)(1,"div",7)(2,"div",8),p(3,"p-datepicker",9),n()()(),p(4,"br"),i(5,"p-card")(6,"p-scroll-panel")(7,"div",10),T(8,Tt,7,2,"div",7,I),n()(),i(10,"p-table",11),f(11,Ft,12,6,"ng-template",null,2,d),n()()),t&2){let e=u();a(3),m("ngModel",e.date()),a(3),se(ie(4,ht)),a(2),F(e.nonEmptyForms()),a(2),m("value",ie(5,bt))}}var tt=(()=>{class t{constructor(){this.accSetupService=_(k),this.openingBalanceForm=E(null),this.date=E(new Date),this.messageService=_(le),this.subTotalDebit=j(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.debitAmount,0),0):0),this.subTotalCredit=j(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.creditAmount,0),0):0),this.totalItemsCount=j(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.length,0):0),this.nonEmptyForms=j(()=>{let e=["Asset","Liability","Equity","Revenue","Expense"];return this.openingBalanceForm()?this.openingBalanceForm().form.filter(r=>r.items.length>0||e.includes(r.name)):[]})}ngOnInit(){this.loadFormData(),setInterval(()=>{this.subTotalCredit()!==this.subTotalDebit()&&this.messageService.add({severity:"warn",summary:"Mismatch Detected",detail:`The total Debit and Credit amounts are not balanced. Difference: ${this.subTotalCredit()-this.subTotalDebit()}`})},1e3)}loadFormData(){this.accSetupService.fetchOpeningBalanceFormConfiguration().pipe(Ae("response"),O(e=>{this.openingBalanceForm.set(e)})).subscribe()}dfsfsd(e,r,c,s){let y=this.openingBalanceForm().form.map((g,h)=>h===r?M(A({},g),{items:g.items.map((pe,rt)=>rt===c?M(A({},pe),{[s]:e}):pe)}):g).filter(g=>g!==null);this.openingBalanceForm.update(g=>M(A({},g),{form:y})),console.log(this.openingBalanceForm())}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-acc-opening-balance-form"]],features:[_e([le])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit"],["header","Opening Balance Date"],[1,"row"],[1,"col"],[3,"ngModel"],[1,"d-flex","flex-column","gap-4"],[3,"value"],[1,"mb-2"],["dataKey","id","stripedRows","",3,"value",4,"ngIf"],["dataKey","id","stripedRows","",3,"value"],["pTemplate","header"],["pTemplate","body"],[2,"width","200px"],["type","number",1,"form-control",3,"ngModelChange","ngModel"],[1,"fw-semibold","fs-5"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,St,2,0,"ng-template",null,0,d)(3,At,13,6,"ng-template",null,1,d),n(),p(5,"p-toast",4))},dependencies:[P,Y,X,Ie,N,ve,Ce,we,Me,Ve,Oe,Fe,Te,K,V,xe,D,q,J,je,R,G],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var nt=t=>({"ng-invalid ng-dirty":t});function Bt(t,l){if(t&1){let e=b();i(0,"p-button",4),S("onClick",function(){v(e);let c=u();return C(c.saveCredentials())}),o(1,"Update"),n()}}function Nt(t,l){t&1&&(i(0,"div",8)(1,"h3",12),o(2,"Account"),n(),i(3,"small",13),o(4,"Configure Client ID and Client Secret"),n()())}function Dt(t,l){if(t&1&&(i(0,"div",5)(1,"p-panel"),f(2,Nt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),p(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),p(14,"input",11),n()()()()()),t&2){let e=u();a(4),m("formGroup",e.credentialForm),a(5),m("ngClass",B(3,nt,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),a(5),m("ngClass",B(5,nt,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var it=(()=>{class t{constructor(e){this.fb=e,this.setupService=_(k)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(O(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[ae.required]],clientSecret:["",[ae.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}static{this.\u0275fac=function(r){return new(r||t)(ue(z))}}static{this.\u0275cmp=w({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,Bt,2,0,"ng-template",null,0,d)(3,Dt,15,7,"ng-template",null,1,d),n())},dependencies:[N,$,H,V,D,L,U,W,J,Q,ee,Z,P,R,G],encapsulation:2})}}return t})();function Jt(t,l){if(t&1){let e=b();i(0,"button",4),S("click",function(){v(e);let c=u();return C(c.onFormatJournal())}),o(1," Format "),n()}}function Pt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Journal Configuration"),n(),i(3,"small",14),o(4," Enter your account information to format journal entries "),n()())}function kt(t,l){if(t&1){let e=b();i(0,"div",5)(1,"p-panel"),f(2,Pt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),fe("ngModelChange",function(c){v(e);let s=u();return ge(s.subdomain,c)||(s.subdomain=c),C(c)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();a(7),de("ngModel",e.subdomain)}}var ot=(()=>{class t{constructor(){this.setupService=_(k),this.subdomain=E(""),this.toastrService=_(ye)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-primary","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"d-flex","flex-column"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,Jt,2,0,"ng-template",null,0,d)(3,kt,12,1,"ng-template",null,1,d),n())},dependencies:[N,K,V,D,q,J,Q,P,ee,Z,Re,Ge],encapsulation:2})}}return t})();var pi=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:et},{path:"opening-balance-form",component:tt},{path:"api-crendetial",component:it},{path:"format-journal",component:ot}]}];export{pi as ACCOUNTING_SETUP_ROUTES};
@@ -0,0 +1 @@
1
+ import{Z as o}from"./chunk-2VF35PRV.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};