dealpos 25.48.1 → 25.48.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/browser/{chunk-IFOBYW26.js → chunk-25H27N7N.js} +1 -1
  2. package/browser/{chunk-BA3BDB5Y.js → chunk-26YFRPR2.js} +1 -1
  3. package/browser/{chunk-JEL3OND6.js → chunk-2CL5FM3P.js} +1 -1
  4. package/browser/chunk-2MPRVJXH.js +1 -0
  5. package/browser/chunk-2RLL7E46.js +1 -0
  6. package/browser/{chunk-CA6YBQT3.js → chunk-2VE2WNSA.js} +1 -1
  7. package/browser/chunk-2YNPPAZH.js +1 -0
  8. package/browser/{chunk-MVUVDYGQ.js → chunk-32QBWLTN.js} +1 -1
  9. package/browser/{chunk-HL3ONSX6.js → chunk-363IDTE3.js} +1 -1
  10. package/browser/chunk-36GWLMZX.js +1 -0
  11. package/browser/chunk-3ALPLNFL.js +1 -0
  12. package/browser/chunk-3BIA7JJK.js +1 -0
  13. package/browser/chunk-3CSCTT6I.js +1 -0
  14. package/browser/chunk-3HZIDGPN.js +1 -0
  15. package/browser/{chunk-534MIVWD.js → chunk-45E6XCHN.js} +1 -1
  16. package/browser/{chunk-UTAQ3FRE.js → chunk-4BXCIT62.js} +1 -1
  17. package/browser/{chunk-VP2ZEIJA.js → chunk-4CPRMZL6.js} +1 -1
  18. package/browser/chunk-4HEJOI53.js +1 -0
  19. package/browser/{chunk-3OHHXDTW.js → chunk-4KGHH5FV.js} +1 -1
  20. package/browser/chunk-4LPKNH7W.js +1 -0
  21. package/browser/{chunk-QIJEAKQK.js → chunk-4OEDK7YE.js} +1 -1
  22. package/browser/{chunk-O5CTER4C.js → chunk-4PJRRPIJ.js} +3 -3
  23. package/browser/{chunk-R4OHTTCT.js → chunk-4SRWAPD4.js} +1 -1
  24. package/browser/chunk-4VZ44DFH.js +1 -0
  25. package/browser/chunk-4W3WYXI2.js +1 -0
  26. package/browser/chunk-4XJWQAS6.js +1 -0
  27. package/browser/{chunk-SWPKQM2X.js → chunk-4ZITX27A.js} +1 -1
  28. package/browser/chunk-53VS5DA7.js +1 -0
  29. package/browser/chunk-57GKJ4WM.js +1 -0
  30. package/browser/chunk-57LTUNGL.js +1 -0
  31. package/browser/chunk-5ATOLSOU.js +1 -0
  32. package/browser/{chunk-3VKLSTEH.js → chunk-5BE4626O.js} +1 -1
  33. package/browser/{chunk-XACC6EMJ.js → chunk-5USF4MRW.js} +1 -1
  34. package/browser/{chunk-YU4JSVLL.js → chunk-5WC44KI7.js} +1 -1
  35. package/browser/{chunk-GN3HVOCN.js → chunk-5ZD6KTDH.js} +1 -1
  36. package/browser/{chunk-7NOKG3UC.js → chunk-6C2HPRJZ.js} +1 -1
  37. package/browser/{chunk-M43HNBJQ.js → chunk-6P2ASCNY.js} +1 -1
  38. package/browser/{chunk-LOD3JYZW.js → chunk-6WATOQG3.js} +1 -1
  39. package/browser/{chunk-CSFFF2YO.js → chunk-72RZBOHX.js} +1 -1
  40. package/browser/{chunk-CDFNRJAQ.js → chunk-76HEQQHO.js} +1 -1
  41. package/browser/chunk-7BQKGIZM.js +1 -0
  42. package/browser/chunk-7DAPNQYU.js +1 -0
  43. package/browser/{chunk-ZRYRGDGM.js → chunk-7F4QLFQQ.js} +1 -1
  44. package/browser/{chunk-5IAWFOXD.js → chunk-7JULWG2B.js} +1 -1
  45. package/browser/chunk-7NB2JM2Z.js +1 -0
  46. package/browser/{chunk-NWSIPELM.js → chunk-7P3L3ODB.js} +1 -1
  47. package/browser/{chunk-HNK3XQEI.js → chunk-7PWZYJQP.js} +1 -1
  48. package/browser/{chunk-X57HWGVJ.js → chunk-7YUPYNWQ.js} +1 -1
  49. package/browser/chunk-A2EVMYAR.js +1 -0
  50. package/browser/{chunk-JCTDWAYQ.js → chunk-A565EUMD.js} +1 -1
  51. package/browser/chunk-AOWEKBY6.js +1 -0
  52. package/browser/{chunk-AEXXXOEQ.js → chunk-AQW4VS3Y.js} +1 -1
  53. package/browser/{chunk-4HPBSK4V.js → chunk-ARYZHNFV.js} +1 -1
  54. package/browser/chunk-AY2G4OD6.js +1 -0
  55. package/browser/{chunk-HVJHE6PQ.js → chunk-B36P4U32.js} +1 -1
  56. package/browser/{chunk-4HCSE44G.js → chunk-B5IABJO5.js} +1 -1
  57. package/browser/chunk-B7AC4RMR.js +1 -0
  58. package/browser/chunk-BD6OKJBW.js +1 -0
  59. package/browser/chunk-BDINGIQV.js +1 -0
  60. package/browser/{chunk-QFWPOP7L.js → chunk-BFH7QECY.js} +1 -1
  61. package/browser/chunk-BNNKSBQ6.js +1 -0
  62. package/browser/{chunk-IWUWV3MS.js → chunk-BQUL7SGN.js} +1 -1
  63. package/browser/{chunk-RMB6IO7X.js → chunk-BRNU2JXC.js} +1 -1
  64. package/browser/{chunk-JUS6LLVX.js → chunk-BT7NN7PT.js} +1 -1
  65. package/browser/{chunk-JR5LAUIS.js → chunk-BYTV42NJ.js} +1 -1
  66. package/browser/{chunk-66MCBKC7.js → chunk-C2NCV7VC.js} +1 -1
  67. package/browser/{chunk-RNXOIUIO.js → chunk-C3STDN73.js} +1 -1
  68. package/browser/{chunk-NETNL55X.js → chunk-C5DGBRES.js} +1 -1
  69. package/browser/{chunk-O2LFJOK7.js → chunk-C5N3GKEC.js} +1 -1
  70. package/browser/{chunk-W7CJ25G5.js → chunk-C7XESRQV.js} +1 -1
  71. package/browser/{chunk-IDOZYC3I.js → chunk-CAYYUGXV.js} +1 -1
  72. package/browser/{chunk-BILYIP7J.js → chunk-CCD6EYWH.js} +1 -1
  73. package/browser/{chunk-C5AIOCPM.js → chunk-CFWHBIM3.js} +1 -1
  74. package/browser/chunk-CJCEJIDM.js +1 -0
  75. package/browser/{chunk-X2JCAGKP.js → chunk-CJJZ3NN6.js} +1 -1
  76. package/browser/{chunk-I5W4NCFM.js → chunk-COA4UL2V.js} +1 -1
  77. package/browser/{chunk-ZJDY54VM.js → chunk-COGKLKKE.js} +1 -1
  78. package/browser/{chunk-NVCUDJUL.js → chunk-CQLZHUT4.js} +1 -1
  79. package/browser/{chunk-UAIR26OK.js → chunk-CTYPZCCF.js} +1 -1
  80. package/browser/{chunk-LS5TMLIT.js → chunk-CVNF5DNI.js} +1 -1
  81. package/browser/{chunk-KKLNFVVN.js → chunk-D4FCXEV4.js} +1 -1
  82. package/browser/{chunk-YQUQYWX3.js → chunk-D7DUI5NF.js} +1 -1
  83. package/browser/{chunk-KYAKLZR7.js → chunk-DC3TCY6D.js} +1 -1
  84. package/browser/chunk-DOCQN2VL.js +1 -0
  85. package/browser/chunk-DTOZS4FK.js +1 -0
  86. package/browser/{chunk-H7XFYY6V.js → chunk-DTVCBHPA.js} +1 -1
  87. package/browser/{chunk-RNLSEEMX.js → chunk-DWZ5JTI2.js} +1 -1
  88. package/browser/chunk-DZPZK3FC.js +1 -0
  89. package/browser/{chunk-XEATJM6B.js → chunk-EHXF34TI.js} +1 -1
  90. package/browser/{chunk-7PN2DG6D.js → chunk-EN2Y56CS.js} +1 -1
  91. package/browser/{chunk-3GPGJFQV.js → chunk-ESDXMFGP.js} +1 -1
  92. package/browser/{chunk-Q2A4MYK3.js → chunk-FAED643P.js} +1 -1
  93. package/browser/{chunk-ZW5E2GIN.js → chunk-FHB5KLDR.js} +1 -1
  94. package/browser/{chunk-LAZZHDUO.js → chunk-FPRM3L6U.js} +1 -1
  95. package/browser/{chunk-DEGB7PBB.js → chunk-FQZELIHB.js} +1 -1
  96. package/browser/{chunk-OU7YY2CV.js → chunk-FR45A6EK.js} +1 -1
  97. package/browser/{chunk-L76WVZW6.js → chunk-FU2ZGMX4.js} +1 -1
  98. package/browser/{chunk-J7YNB6YX.js → chunk-FW4OCSXV.js} +1 -1
  99. package/browser/chunk-G6XFCO2C.js +2 -0
  100. package/browser/{chunk-N5SEZOII.js → chunk-GFZBO5RW.js} +1 -1
  101. package/browser/{chunk-3PC6CTVP.js → chunk-GTPQNPNO.js} +1 -1
  102. package/browser/{chunk-QEOGHVXA.js → chunk-GWKBJZYT.js} +1 -1
  103. package/browser/chunk-HE7N7GWE.js +1 -0
  104. package/browser/{chunk-23PKMU5D.js → chunk-HGSF7LOB.js} +1 -1
  105. package/browser/{chunk-L5KVMIM3.js → chunk-HQ574TNK.js} +1 -1
  106. package/browser/{chunk-VAPCHGLS.js → chunk-HSIXOQO7.js} +1 -1
  107. package/browser/{chunk-MJ2YN4R7.js → chunk-HWPSC7RE.js} +1 -1
  108. package/browser/chunk-I2VTAB36.js +1 -0
  109. package/browser/chunk-IEVGW2RT.js +5 -0
  110. package/browser/{chunk-46GHEHUK.js → chunk-IFIH2CE2.js} +1 -1
  111. package/browser/chunk-IISHJIET.js +1 -0
  112. package/browser/{chunk-VX5HH3BW.js → chunk-IKKPP4JS.js} +1 -1
  113. package/browser/{chunk-33ZBZA3U.js → chunk-ISNO6K5N.js} +1 -1
  114. package/browser/chunk-IYXZ6DM6.js +1 -0
  115. package/browser/{chunk-GODXDKX5.js → chunk-IZLEZJ6U.js} +1 -1
  116. package/browser/{chunk-4QM23MMO.js → chunk-J6M7UWVR.js} +1 -1
  117. package/browser/{chunk-C4WJKF7R.js → chunk-JBS5UYZC.js} +1 -1
  118. package/browser/chunk-JDXKVQWT.js +1 -0
  119. package/browser/chunk-JLJ6CCD3.js +1 -0
  120. package/browser/chunk-JNZBO6JV.js +1 -0
  121. package/browser/{chunk-RONQFUCZ.js → chunk-JTZHHVPI.js} +1 -1
  122. package/browser/{chunk-BCUIYEEN.js → chunk-JXXYVM7W.js} +1 -1
  123. package/browser/{chunk-RDAIK2LU.js → chunk-KTPBLT2O.js} +1 -1
  124. package/browser/chunk-KU2O2EHB.js +1 -0
  125. package/browser/{chunk-4Y2FYXDF.js → chunk-KUG5VVV4.js} +1 -1
  126. package/browser/{chunk-UFBRV4CF.js → chunk-KVMBRL53.js} +1 -1
  127. package/browser/chunk-KYXB2UQI.js +1 -0
  128. package/browser/{chunk-VYQEM4T2.js → chunk-KZFNI67M.js} +1 -1
  129. package/browser/{chunk-DEOVGQZC.js → chunk-KZXFGU4G.js} +2 -2
  130. package/browser/chunk-L5VX4XJU.js +1 -0
  131. package/browser/{chunk-QFON23YX.js → chunk-L6PKNRWO.js} +1 -1
  132. package/browser/{chunk-IDQUQBKL.js → chunk-LGINK7BD.js} +1 -1
  133. package/browser/chunk-LGOSIAUC.js +1 -0
  134. package/browser/{chunk-DZ6FWYAF.js → chunk-LLYADZXM.js} +1 -1
  135. package/browser/{chunk-CBSYYTXQ.js → chunk-LNDHYAFW.js} +1 -1
  136. package/browser/chunk-M2WWQMGM.js +1 -0
  137. package/browser/chunk-M3DKYPGC.js +1 -0
  138. package/browser/{chunk-LDTRYGRE.js → chunk-M4EQZHIE.js} +1 -1
  139. package/browser/{chunk-2MQDNPCG.js → chunk-MLBTUOHX.js} +1 -1
  140. package/browser/chunk-MNEZCILO.js +1 -0
  141. package/browser/{chunk-SVUUS5JD.js → chunk-MNJSQKLX.js} +1 -1
  142. package/browser/{chunk-GZ7UUU3F.js → chunk-MVISUVLB.js} +1 -1
  143. package/browser/chunk-MWJTE5VJ.js +1 -0
  144. package/browser/chunk-N6QOUUEK.js +1 -0
  145. package/browser/{chunk-HUYWGTVQ.js → chunk-NCSIYRDC.js} +1 -1
  146. package/browser/chunk-NL4ASITV.js +1 -0
  147. package/browser/{chunk-2KPICU7I.js → chunk-NM3IQUNN.js} +1 -1
  148. package/browser/{chunk-ZHPBIWMH.js → chunk-NOYC5PIT.js} +1 -1
  149. package/browser/{chunk-CZYGX5TM.js → chunk-NTC7KH7U.js} +1 -1
  150. package/browser/{chunk-6QBYWFJ4.js → chunk-NXNTQNWD.js} +1 -1
  151. package/browser/chunk-O2SKATLU.js +1 -0
  152. package/browser/{chunk-AUBQH6JY.js → chunk-O2VVATBW.js} +1 -1
  153. package/browser/chunk-O3R6FNX7.js +1 -0
  154. package/browser/chunk-O5A5DNRB.js +1 -0
  155. package/browser/chunk-OUYWPXOM.js +1 -0
  156. package/browser/{chunk-76RLGANX.js → chunk-OXWQ7ZZS.js} +1 -1
  157. package/browser/{chunk-5BH2H4V6.js → chunk-OYGBAHVX.js} +1 -1
  158. package/browser/{chunk-KHR4NBM3.js → chunk-PHH2AA3W.js} +1 -1
  159. package/browser/{chunk-RAQ5KDLF.js → chunk-PJ3DTEH2.js} +1 -1
  160. package/browser/{chunk-4KLLS7S5.js → chunk-PMVUKT2P.js} +1 -1
  161. package/browser/{chunk-C6YPXBIP.js → chunk-PPVORSJQ.js} +1 -1
  162. package/browser/chunk-PQ6W7KXC.js +1 -0
  163. package/browser/{chunk-5DQ4MJJT.js → chunk-PRVQ3NAP.js} +1 -1
  164. package/browser/chunk-PS7477UG.js +2 -0
  165. package/browser/{chunk-KR2YGW5S.js → chunk-PVW5CNDF.js} +2 -2
  166. package/browser/{chunk-Z6RY34PQ.js → chunk-PXDS3HXW.js} +1 -1
  167. package/browser/{chunk-3N7EBSCG.js → chunk-QGKX2IE5.js} +1 -1
  168. package/browser/{chunk-KI4BAWII.js → chunk-QI7I46MV.js} +1 -1
  169. package/browser/{chunk-64RUCACD.js → chunk-QJUU75N6.js} +1 -1
  170. package/browser/{chunk-M3CGB5RK.js → chunk-QKNGNLDI.js} +2 -2
  171. package/browser/{chunk-5SFUSWFY.js → chunk-QPAUI5EG.js} +1 -1
  172. package/browser/chunk-QVUZMITO.js +1 -0
  173. package/browser/{chunk-XA4TVPAS.js → chunk-QZZ2NRA3.js} +1 -1
  174. package/browser/{chunk-CS6HBROS.js → chunk-R2GUMKAU.js} +1 -1
  175. package/browser/{chunk-DXBQR3VL.js → chunk-RACYAEOL.js} +1 -1
  176. package/browser/{chunk-W4W2KCYV.js → chunk-RESN2GAB.js} +1 -1
  177. package/browser/{chunk-NHWTJY64.js → chunk-RFRD7Y7N.js} +1 -1
  178. package/browser/chunk-RO6RY4AJ.js +5 -0
  179. package/browser/{chunk-AQQHMGYE.js → chunk-RSNEHVIM.js} +1 -1
  180. package/browser/chunk-S27D5MBU.js +1 -0
  181. package/browser/chunk-S43AJQWQ.js +1 -0
  182. package/browser/{chunk-HVFAKTAO.js → chunk-S6FFSXPE.js} +1 -1
  183. package/browser/{chunk-6SGN7MNX.js → chunk-S7FOJJP2.js} +1 -1
  184. package/browser/{chunk-TGEQUV6Z.js → chunk-SIDUUVNA.js} +1 -1
  185. package/browser/{chunk-FIUZN6JU.js → chunk-SIQZO2WM.js} +1 -1
  186. package/browser/{chunk-O5SLP4JK.js → chunk-SLX34TWD.js} +1 -1
  187. package/browser/{chunk-62V34GYI.js → chunk-SNEK2BS2.js} +1 -1
  188. package/browser/chunk-SRC3HH3O.js +1 -0
  189. package/browser/chunk-T4MU3R7Y.js +1 -0
  190. package/browser/{chunk-AFBBEIKR.js → chunk-T7XU5W5A.js} +1 -1
  191. package/browser/{chunk-KCOMWYKA.js → chunk-TCUCRGQD.js} +1 -1
  192. package/browser/{chunk-T25N3EEG.js → chunk-TEGIL5RZ.js} +1 -1
  193. package/browser/{chunk-7TBS7SPQ.js → chunk-THT6CY5E.js} +1 -1
  194. package/browser/{chunk-HD2QU6GJ.js → chunk-TSH564VU.js} +1 -1
  195. package/browser/{chunk-B3STLAM7.js → chunk-TXJJUZ26.js} +1 -1
  196. package/browser/{chunk-2B5OZGVM.js → chunk-TYE7PH3R.js} +1 -1
  197. package/browser/{chunk-LVC4ZU2C.js → chunk-TYV6AS5A.js} +1 -1
  198. package/browser/chunk-UGA6CKWS.js +1 -0
  199. package/browser/chunk-UIIVXERD.js +1 -0
  200. package/browser/{chunk-5I5IONRY.js → chunk-USD2ALDX.js} +1 -1
  201. package/browser/{chunk-MP4RQSWT.js → chunk-VG3PJFDU.js} +2 -2
  202. package/browser/chunk-VJJIUPEN.js +1 -0
  203. package/browser/{chunk-7DCWSNUN.js → chunk-VKFZNKM5.js} +1 -1
  204. package/browser/chunk-VKWSK452.js +1 -0
  205. package/browser/chunk-VM4K4MNV.js +1 -0
  206. package/browser/{chunk-ZEKZLSGA.js → chunk-VVWAYTKN.js} +1 -1
  207. package/browser/{chunk-PJCGIZLH.js → chunk-VVYRPW2Y.js} +1 -1
  208. package/browser/{chunk-ZQGXWDT6.js → chunk-VXOS2AWO.js} +1 -1
  209. package/browser/chunk-VXPORXGI.js +1 -0
  210. package/browser/{chunk-P3LNLMNH.js → chunk-VZBXT2TV.js} +1 -1
  211. package/browser/{chunk-4RYYICV5.js → chunk-W2BNI7QT.js} +2 -2
  212. package/browser/chunk-WFN42V6H.js +1 -0
  213. package/browser/chunk-WGOJUNBF.js +1 -0
  214. package/browser/{chunk-6H5P35AP.js → chunk-WKM2QOAU.js} +1 -1
  215. package/browser/chunk-WM2DGNWH.js +1 -0
  216. package/browser/{chunk-QPOOLLKY.js → chunk-WMZLH4YK.js} +1 -1
  217. package/browser/{chunk-YLLLGS4S.js → chunk-WNAYJWEQ.js} +1 -1
  218. package/browser/chunk-WTAIDRV6.js +1 -0
  219. package/browser/chunk-WUV22SZ4.js +1 -0
  220. package/browser/chunk-X44CHNHS.js +1 -0
  221. package/browser/{chunk-AAXXZ3RZ.js → chunk-XMZLK7EB.js} +1 -1
  222. package/browser/chunk-XNRJ3UHI.js +1 -0
  223. package/browser/chunk-XQEJUVQP.js +1 -0
  224. package/browser/{chunk-6GLKD66N.js → chunk-XTCEZONP.js} +1 -1
  225. package/browser/chunk-XY3FCZN2.js +1 -0
  226. package/browser/{chunk-KQYNW4DG.js → chunk-Y3KLG6WD.js} +2 -2
  227. package/browser/{chunk-S3K63CGI.js → chunk-Y6BFENML.js} +1 -1
  228. package/browser/chunk-Y6GA2S36.js +1 -0
  229. package/browser/chunk-YPG7NXW6.js +1 -0
  230. package/browser/chunk-YSM3FPZM.js +1 -0
  231. package/browser/chunk-YTQA4ZQ5.js +1 -0
  232. package/browser/chunk-YVBGB3JF.js +1 -0
  233. package/browser/chunk-Z6X5UYRZ.js +1 -0
  234. package/browser/{chunk-SANNYTK4.js → chunk-ZCQDZKFQ.js} +1 -1
  235. package/browser/{chunk-UGCO74DQ.js → chunk-ZKOARDC2.js} +1 -1
  236. package/browser/{chunk-DLNZDHGS.js → chunk-ZMJLTU5O.js} +1 -1
  237. package/browser/{chunk-A45GTZVV.js → chunk-ZTD4APMR.js} +1 -1
  238. package/browser/chunk-ZTU3TIGR.js +1 -0
  239. package/browser/{chunk-EHJXCRPX.js → chunk-ZX2PZLXX.js} +1 -1
  240. package/browser/{chunk-G4IW5GPY.js → chunk-ZZBF7AOW.js} +1 -1
  241. package/browser/index.html +2 -2
  242. package/browser/{main-NN7FZ4DK.js → main-OHTLAVEH.js} +2 -2
  243. package/package.json +1 -1
  244. package/browser/chunk-22Q4GFCS.js +0 -1
  245. package/browser/chunk-2LOWEWI4.js +0 -1
  246. package/browser/chunk-2MCEIRJY.js +0 -1
  247. package/browser/chunk-2YJP5PQJ.js +0 -1
  248. package/browser/chunk-327LILIU.js +0 -1
  249. package/browser/chunk-37E4SNZ3.js +0 -1
  250. package/browser/chunk-3ALHEPKV.js +0 -1
  251. package/browser/chunk-3DZLNGPO.js +0 -1
  252. package/browser/chunk-3KSZCJ6T.js +0 -1
  253. package/browser/chunk-4F6J35GL.js +0 -1
  254. package/browser/chunk-4OD3JW2M.js +0 -1
  255. package/browser/chunk-5TKXFIDJ.js +0 -1
  256. package/browser/chunk-5U73W2IZ.js +0 -1
  257. package/browser/chunk-6F4WKG7M.js +0 -1
  258. package/browser/chunk-7T6YO3VY.js +0 -1
  259. package/browser/chunk-A4TTSCQT.js +0 -2
  260. package/browser/chunk-A5WQMHVO.js +0 -1
  261. package/browser/chunk-ABNUBGXO.js +0 -1
  262. package/browser/chunk-AMONIKLC.js +0 -1
  263. package/browser/chunk-AVTYR2I6.js +0 -1
  264. package/browser/chunk-BWEEC6HM.js +0 -1
  265. package/browser/chunk-BXOQMC5N.js +0 -1
  266. package/browser/chunk-CSURZQS6.js +0 -1
  267. package/browser/chunk-CUU2G2CM.js +0 -1
  268. package/browser/chunk-D2JKYGM3.js +0 -1
  269. package/browser/chunk-DJTAYVZN.js +0 -1
  270. package/browser/chunk-DPGY5YXC.js +0 -1
  271. package/browser/chunk-E5XIALIA.js +0 -1
  272. package/browser/chunk-E7ISSVA3.js +0 -1
  273. package/browser/chunk-EQR3RN5K.js +0 -1
  274. package/browser/chunk-ETLWM6MW.js +0 -1
  275. package/browser/chunk-EX6JLLRB.js +0 -1
  276. package/browser/chunk-FNH6K4S4.js +0 -1
  277. package/browser/chunk-FY3CQQFL.js +0 -1
  278. package/browser/chunk-FYMATMVS.js +0 -1
  279. package/browser/chunk-G2VAG4V3.js +0 -1
  280. package/browser/chunk-GEMHTJVB.js +0 -1
  281. package/browser/chunk-GHBBRGW2.js +0 -1
  282. package/browser/chunk-GTJDUG56.js +0 -1
  283. package/browser/chunk-HIQKF5X3.js +0 -1
  284. package/browser/chunk-HS44M5L3.js +0 -1
  285. package/browser/chunk-I3ABVEQL.js +0 -1
  286. package/browser/chunk-IMM4P55U.js +0 -1
  287. package/browser/chunk-IMSDBLRH.js +0 -1
  288. package/browser/chunk-JYZTRN6N.js +0 -5
  289. package/browser/chunk-LBQRCFLJ.js +0 -1
  290. package/browser/chunk-M4HEF65P.js +0 -1
  291. package/browser/chunk-MEG3XVPI.js +0 -5
  292. package/browser/chunk-N7SUEV3C.js +0 -1
  293. package/browser/chunk-NDSWUR7R.js +0 -2
  294. package/browser/chunk-P32JEM3L.js +0 -1
  295. package/browser/chunk-P6LF5RPW.js +0 -1
  296. package/browser/chunk-PD5SVXID.js +0 -1
  297. package/browser/chunk-PIZRVCBM.js +0 -1
  298. package/browser/chunk-PSJRHKCL.js +0 -1
  299. package/browser/chunk-QA67WF7E.js +0 -1
  300. package/browser/chunk-REBD6XHD.js +0 -1
  301. package/browser/chunk-RJJYGGF6.js +0 -1
  302. package/browser/chunk-RLQLFW36.js +0 -1
  303. package/browser/chunk-SEOZWGYI.js +0 -1
  304. package/browser/chunk-SVECNUUA.js +0 -1
  305. package/browser/chunk-T2ECIFZW.js +0 -1
  306. package/browser/chunk-T2H2XAEJ.js +0 -1
  307. package/browser/chunk-T2IWW7SS.js +0 -1
  308. package/browser/chunk-THUJIHI7.js +0 -1
  309. package/browser/chunk-UHVNH2XA.js +0 -1
  310. package/browser/chunk-UILJOKEL.js +0 -1
  311. package/browser/chunk-USJ6ILEE.js +0 -1
  312. package/browser/chunk-UTTKPBED.js +0 -1
  313. package/browser/chunk-VAVKHKIO.js +0 -1
  314. package/browser/chunk-W4ZCLNTU.js +0 -1
  315. package/browser/chunk-WNZKCNMC.js +0 -1
  316. package/browser/chunk-XL7XI3DY.js +0 -1
  317. package/browser/chunk-YRDGEYIV.js +0 -1
  318. package/browser/chunk-YV6MAUKK.js +0 -1
@@ -1 +0,0 @@
1
- import{a as ge}from"./chunk-IDOZYC3I.js";import{a as Ni,e as Ai,f as Vi}from"./chunk-C6YPXBIP.js";import{a as Ri}from"./chunk-VAPCHGLS.js";import{a as Ti}from"./chunk-3OHHXDTW.js";import{a as Fi}from"./chunk-4HPBSK4V.js";import{a as ki}from"./chunk-AMONIKLC.js";import"./chunk-5I5IONRY.js";import{a as gi}from"./chunk-ABNUBGXO.js";import"./chunk-5TKXFIDJ.js";import{a as Pi,b as Ei}from"./chunk-E5XIALIA.js";import{a as Mi}from"./chunk-C5AIOCPM.js";import"./chunk-NQX7EX5A.js";import{a as Oi}from"./chunk-RAQ5KDLF.js";import{a as wi}from"./chunk-HBAQBI6Z.js";import{a as _i}from"./chunk-YXCPHYC5.js";import{a as hi,b as yi,c as xi,d as se,e as Si}from"./chunk-64RUCACD.js";import{c as Di,d as me}from"./chunk-PSJRHKCL.js";import"./chunk-2MCEIRJY.js";import"./chunk-23PKMU5D.js";import{a as ae}from"./chunk-PF33HK6M.js";import"./chunk-IFOBYW26.js";import{b as vi}from"./chunk-SVUUS5JD.js";import{a as pe,b as de,c as ue}from"./chunk-76RLGANX.js";import{a as le,b as ce}from"./chunk-J7YNB6YX.js";import{a as Ii}from"./chunk-VP2ZEIJA.js";import"./chunk-7PN2DG6D.js";import"./chunk-Z3E24JZW.js";import"./chunk-NQKVYQ6V.js";import{c as Ci}from"./chunk-NSNUUKNK.js";import{a as fi,b as bi}from"./chunk-6H5P35AP.js";import"./chunk-5DQ4MJJT.js";import"./chunk-AUBQH6JY.js";import"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import"./chunk-G4IW5GPY.js";import{f as ui}from"./chunk-YLLLGS4S.js";import"./chunk-UTAQ3FRE.js";import{a as oi,c as ri,e as ai,g as li}from"./chunk-M43HNBJQ.js";import{a as ut,c as gt}from"./chunk-KKLNFVVN.js";import"./chunk-3VKLSTEH.js";import{a as ci,b as si}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{A as di,q as ni,u as Ft,v as Rt,w as Bt,x as mi,z as pi}from"./chunk-BA3BDB5Y.js";import{b as oe,c as re}from"./chunk-C4WJKF7R.js";import{O as L}from"./chunk-T25N3EEG.js";import{d as Vt}from"./chunk-7TBS7SPQ.js";import{a as V,b as B,e as Nt,f as At,g as nt}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import{a as yt}from"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as it,G as kt,a as ne,c as tt,h as z,l as wt,o as et,r as ei,s as Tt}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import{a as ii}from"./chunk-HVFAKTAO.js";import{a as g,d as dt}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{$b as Ye,$d as ee,Ab as It,Bb as Dt,Bc as v,Ca as k,Cb as u,Cc as h,D as Be,Db as r,Dc as Ne,E as P,Eb as a,Fb as D,Gb as Y,Hb as at,I as Ue,Ib as ze,Jb as mt,Kb as pt,Kc as q,M as je,Mb as A,Ob as d,Pb as Mt,Q as Qe,Qa as $e,Qb as m,S as Le,Sa as Jt,Ub as Ge,Va as Kt,Vb as Je,W as We,Wb as Ke,Wd as ti,Xa as c,Y as xt,Ya as N,Yd as Ot,Zd as te,_b as Xt,aa as J,be as ie,cd as X,d as Fe,db as K,dc as s,ec as F,ed as Ze,ee as G,fa as O,fb as qe,fc as x,gc as ht,hb as I,ic as U,jc as j,k as Re,kc as Q,kd as Et,la as w,lb as He,nb as Yt,o as Te,oc as ke,od as Z,pa as p,rd as R,sc as Pt,t as st,ta as C,tc as Zt,ua as f,uc as $,vb as b,vc as Xe,xb as _,zb as St}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as T,b as Lt}from"./chunk-SNAKHGZS.js";var Ce=class{AppConfigJSON;Currencies;SalesOrderTags;Entities;Payments;Taxes;SalesPOTypes;EstimateOptions;Data};var Ut=class{CurrencyID;CustomerID;Date;Discount;DiscountAmount;EntityID;ID;Note;Number;SalesID;TaxTypeID;TypeID;constructor(){this.CustomerID=g.GuidEmpty,this.EntityID=g.GuidEmpty,this.ID=g.GuidEmpty,this.TaxTypeID=g.GuidEmpty,this.Discount=0,this.DiscountAmount=0,this.Date=new Date().toDateString(),this.Note=""}};var ot=class{Email;Key;Mobile;Name;Phone;Value;PricebookID;StateID};var fe=class{ID;Index;Symbol;Name;ExchangeRate;ConversionSuggestion;ExchangeRateDate;ExchangeRateDateDisplay};var be=class{ID;Name;DueDays;BlockDays;Description;PrintTemplateID;AccountID};var _e=class{DeliveryID;InvoiceID;InvoiceNumber;Message;OrderID;PaymentStateID;PaymentStateLabel;PrintMode;Success};var S=class n{estimateState=Fi({loadForm:new Ce,outlet:{Name:"",ID:g.GuidEmpty},order:new Ut,cartItems:[],customer:new ot,tax:new _i,currency:new fe,tag:new be,discount:{discountAmount:0,discount:0},state:0,complete:new _e});loadForm=this.estimateState.select(t=>Object.freeze(t.loadForm()));order=this.estimateState.select(t=>Object.freeze(t.order()));outlet=this.estimateState.select(t=>Object.freeze(t.outlet()));cartItems=this.estimateState.select(t=>Object.freeze(t.cartItems()));customer=this.estimateState.select(t=>Object.freeze(t.customer()));tax=this.estimateState.select(t=>Object.freeze(t.tax()));currency=this.estimateState.select(t=>Object.freeze(t.currency()));tag=this.estimateState.select(t=>Object.freeze(t.tag()));discount=this.estimateState.select(t=>Object.freeze(t.discount()));state=this.estimateState.select(t=>Object.freeze(t.state()));complete=this.estimateState.select(t=>Object.freeze(t.complete()));updateLoadForm(t){this.estimateState.update("loadForm",t)}updateOutlet(t){this.estimateState.update("outlet",t)}updateOrder(t){this.estimateState.update("order",t)}updateCartItems(t){this.estimateState.update("cartItems",t)}updateCustomer(t){this.estimateState.update("customer",t)}updateTax(t){this.estimateState.update("tax",t)}updateCurrency(t){this.estimateState.update("currency",t)}updateTag(t){this.estimateState.update("tag",t)}updateDiscount(t){this.estimateState.update("discount",t)}updateState(t){this.estimateState.update("state",t)}updateComplete(t){this.estimateState.update("complete",t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var Ct=class{ID;Name;Code;Cost;ThumbnailUrl;CouponDiscount;Discount;DiscountAmount;EntityID;Expense;InventoryTypeID;LoyaltyPoint;Note;PromotionGift;Quantity;UnitQuantity;SalesID;VariantID;VariantUnitQuantity;isMaxInventory;UOM;UOMName;UnitCost;UnitPrice;TypeID;Storage;Taxable;Price;Serial;PriceBookID;Variant;PriceTypeID;PriceNote;get Total(){return this.Price*(this.Quantity*this.UnitQuantity)*((100-this.Discount)/100)}get getItemAfterDiscount(){let t=this.getDiscPercentagePerItem();return this.DiscountAmount<t?t-this.DiscountAmount:0}getDiscPercentagePerItem(){let t=this.UnitPrice;return this.Discount>0&&(t=(100-this.Discount)/100*this.UnitPrice),t}};var ft=class n{constructor(){}generateCartItem(t){let e=new Ct;return e.Name=t.Name,e.ThumbnailUrl=t.ThumbnailUrl,e.Price=t.UnitPrice,e.UnitPrice=t.UnitPrice,e.UnitCost=t.UnitCost,e.UnitQuantity=t.UnitQuantity,e.Quantity=1,e.Code=t.Code,e.TypeID=t.TypeID,e.Discount=t.PriceDiscount,e.VariantUnitQuantity=t.VariantUnitQuantity,e.Storage=t.Storage,e.UOM=t.UOM,e.UOMName=t.UOMName,e.VariantID=t.ID,e.Taxable=t.Taxable,e.InventoryTypeID=t.TypeID,e.PriceTypeID=t.PriceTypeID,e.PriceNote=t.PriceNote,e.Variant=t,e}generateCartItemOnEdit(t){let e=new Ct;return e.ID=t.ID,e.Name=t.Variant?.Name,e.ThumbnailUrl=t.Variant?.ThumbnailUrl,e.Price=t.Price,e.UnitPrice=t.Price,e.UnitCost=t.Cost,e.UnitQuantity=t.Variant?.UnitQuantity,e.Quantity=t.Quantity,e.Code=t.Variant?.Code,e.TypeID=t.Variant?.TypeID,e.Discount=t.Discount,e.VariantUnitQuantity=t.Variant?.VariantUnitQuantity,e.Storage=t.Variant?.Storage,e.UOM=t.Variant?.UOM,e.UOMName=t.Variant?.UOMName,e.VariantID=t.VariantID,e.Taxable=t.Taxable,e.Note=t.Note,e.Serial=t.Serial,e.InventoryTypeID=t.InventoryTypeID,e.PriceTypeID=t.PriceTypeID,e.Variant=t.Variant,e.PriceNote=t.PriceNote,e}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var Wt=class n{httpService=p(G);storeService=p(S);factoryService=p(ft);activatedRoute=p(ti);getLoadForm$=this.activatedRoute.queryParams.pipe(J(t=>this.httpService.post("/API/estimate/LoadForm",t)),O(t=>this.storeService.updateLoadForm(t)),O(t=>{g.IsNotEmpty(t.Data)?this.onEditOrder(t):(this.initDefaultCurrency(),this.initTag(),this.initTax())}),V());constructor(){this.getLoadForm$.subscribe()}onEditOrder(t){let e=t.Data,i=this.findTaxById(e.Order.TaxTypeID),o=this.findCurrencyById(e.Order.CurrencyID),l=this.findOutletById(e.Order.EntityID),y=this.findTagById(e.Order.TypeID),M=this.getCartItemsOnEdit(t);this.storeService.updateState(1),this.storeService.updateOrder(e.Order),this.storeService.updateCartItems(M),this.storeService.updateCustomer({Key:e.Order.CustomerID,Value:e.ContactName}),this.storeService.updateTax(i),this.storeService.updateCurrency(o),this.storeService.updateOutlet(l),this.storeService.updateDiscount({discount:e.Order.Discount,discountAmount:e.Order.DiscountAmount}),this.storeService.updateTag(y)}getCartItemsOnEdit(t){return t.Data.Items.map(o=>this.factoryService.generateCartItemOnEdit(o))}initDefaultCurrency(){let t=this.storeService.loadForm()?.AppConfigJSON?.CoreDefaults?.CurrencyID,e=this.storeService.loadForm()?.Currencies.find(i=>i.ID===t);this.storeService.updateCurrency(e)}initTag(){let t=this.storeService.loadForm()?.SalesOrderTags;this.storeService.updateTag(t[0])}initTax(){let t=this.storeService.loadForm()?.Taxes;this.storeService.updateTax(t[0])}findTaxById(t){return(this.storeService.loadForm()?.Taxes).find(o=>o.ID===t)}findCurrencyById(t){return(this.storeService.loadForm()?.Currencies).find(o=>o.ID===t)}findOutletById(t){return(this.storeService.loadForm()?.Entities).find(o=>o.ID===t)}findTagById(t){return(this.storeService.loadForm()?.SalesOrderTags).find(o=>o.ID===t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var $t=class n{storeService=p(S);isOpenDialog$=B(this.storeService.loadForm).pipe(P(t=>g.IsNotEmpty(t.Entities)),st(()=>{let t=!1,e=this.storeService.state(),i=this.storeService.outlet();return(e==0||e==1)&&(t=g.IsEmpty(i.ID)),t}));updateOutlet(t){this.storeService.updateOutlet(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})};var lt=class n{storeService=p(S);httpService=p(G);router=p(Ot);orderNumber$=B(this.storeService.outlet).pipe(P(t=>g.IsNotEmpty(t.ID)),J(t=>{if(this.storeService.state()==0)return this.httpService.post(L.EstimateGenerateNumber,{ID:t.ID}).pipe(st(e=>e.Number));{let e=this.storeService.order().Number;return Te(e)}}),O(t=>{this.storeService.state()==0&&this.updateOrderNumber(t)}),V());salesPersons$=B(this.storeService.outlet).pipe(J(t=>g.IsNotEmpty(t.ID)?this.httpService.get(L.GetSalesPersonByOutletId,[{key:"ID",value:t.ID}]):Te([])),xt(1));updateTagOrder$=B(this.storeService.tag).pipe(O(t=>{let e=T({},this.storeService.order());e.TypeID=t.ID,this.storeService.updateOrder(e)}),V());updateCurrencyOrder$=B(this.storeService.currency).pipe(O(t=>{let e=T({},this.storeService.order());e.CurrencyID=t.ID,this.storeService.updateOrder(e)}),V());updateTaxOrder$=B(this.storeService.tax).pipe(O(t=>{let e=T({},this.storeService.order());e.TaxTypeID=t.ID,this.storeService.updateOrder(e)}),V());updateDiscountOrder$=B(this.storeService.discount).pipe(O(t=>{let e=T({},this.storeService.order());e.Discount=t.discount,e.DiscountAmount=t.discountAmount,this.storeService.updateOrder(e)}),V());updateCustomerOrder$=B(this.storeService.customer).pipe(O(t=>{let e=T({},this.storeService.order());e.CustomerID=t.Key,this.storeService.updateOrder(e)}),V());updateEntityId$=B(this.storeService.outlet).pipe(P(t=>g.IsNotEmpty(t.ID)),O(t=>{let e=T({},this.storeService.order());e.EntityID=t.ID,this.storeService.updateOrder(e)}),V());constructor(){this.updateTagOrder$.subscribe(),this.updateCurrencyOrder$.subscribe(),this.updateTaxOrder$.subscribe(),this.updateDiscountOrder$.subscribe(),this.updateCustomerOrder$.subscribe(),this.updateEntityId$.subscribe()}newOrder(){let t=this.storeService.loadForm(),e=this.getDefaultCurrency(),i=this.storeService.outlet();this.storeService.updateOrder(new Ut),this.storeService.updateCartItems([]),this.storeService.updateCustomer(new ot),this.storeService.updateTax(T({},t.Taxes[0])),this.storeService.updateCurrency(T({},e)),this.storeService.updateTag(T({},t.SalesOrderTags[0])),this.storeService.updateDiscount({discountAmount:0,discount:0}),this.storeService.updateOutlet(T({},i)),this.router.navigate([],{queryParams:{}}),this.storeService.updateState(0)}getDefaultCurrency(){let t=this.storeService.loadForm()?.AppConfigJSON?.CoreDefaults?.CurrencyID;return this.storeService.loadForm()?.Currencies.find(i=>i.ID===t)}updateOrderNumber(t){g.IsNotEmpty(t)&&this.storeService.order().Number!==t&&this.storeService.updateOrder(Lt(T({},this.storeService.order()),{Number:t}))}updateOrderDate(t){g.IsNotEmpty(t)&&this.storeService.order().Date!==t&&this.storeService.updateOrder(Lt(T({},this.storeService.order()),{Date:t}))}updateSalesPersonId(t){let e=T({},this.storeService.order());e.SalesID=t,this.storeService.updateOrder(e)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var qt=class n{storeService=p(S);httpService=p(G);quickkeys$=B(this.storeService.outlet).pipe(P(t=>g.IsNotEmpty(t.ID)),Qe((t,e)=>t.ID===e.ID),J(t=>this.httpService.get(L.GetQuickKeyByEntityID,[{key:"ID",value:t.ID}])),xt(1));static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var Bi=n=>({"qtyBtn-disabled":n}),ve=class n{disabled=!1;decimalPlaces=4;max=1e15;min=-1e15;quantity;constructor(){}ngOnInit(){}incrementQty(){this.quantity<this.max&&(this.quantity++,this.onChange(this.quantity))}decrementQty(){this.quantity>this.min&&(this.quantity--,this.onChange(this.quantity))}quantityChange(){this.onChange(this.quantity)}onChange=t=>{};onTouched=()=>{};writeValue(t){g.IsEmpty(t)?this.quantity=0:this.quantity=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["POS-input-quantity"]],inputs:{disabled:"disabled",decimalPlaces:"decimalPlaces",max:"max",min:"min"},features:[Pt([{provide:ne,multi:!0,useExisting:n}])],decls:6,vars:11,consts:[[1,"input-group"],["type","button","id","button-addon1",1,"btn","btn-outline-secondary","fw-bold","rounded-0","fs-2","border-end-0","py-4","qty-input","d-flex","align-items-center","qty_btn","justify-content-center",3,"click","ngClass","disabled"],["id","txtCartQuantity","type","text","autoNum","",1,"form-control","input-numpad","qty-input","text-center",3,"ngModelChange","ngModel","disabled","decimalPlaces"],["type","button","id","button-addon2",1,"btn","btn-outline-secondary","fw-bold","rounded-0","fs-5","border-start-0","py-4","qty-input","d-flex","align-items-center","qty_btn","justify-content-center",3,"click","ngClass","disabled"]],template:function(e,i){e&1&&(r(0,"div",0)(1,"button",1),d("click",function(){return i.decrementQty()}),s(2,"-"),a(),r(3,"input",2),Q("ngModelChange",function(l){return j(i.quantity,l)||(i.quantity=l),l}),d("ngModelChange",function(){return i.quantityChange()}),a(),r(4,"button",3),d("click",function(){return i.incrementQty()}),s(5,"+"),a()()),e&2&&(c(),u("ngClass",$(7,Bi,i.disabled))("disabled",i.disabled),c(2),U("ngModel",i.quantity),u("disabled",i.disabled)("decimalPlaces",i.decimalPlaces),c(),u("ngClass",$(9,Bi,i.disabled))("disabled",i.disabled))},dependencies:[R,X,it,tt,z,et,ut,gt],styles:[".qtyBtn-disabled[_ngcontent-%COMP%]{background-color:#e9ecef;color:#000!important}button.qty_btn[_ngcontent-%COMP%]{background:#eee;border:1px solid #ddd;width:36px}.qty-input[_ngcontent-%COMP%]{height:36px!important}"]})};var _t=class n{storeService=p(S);autoApplyPricebook(t){let e=t?.Variant?.PriceBook?t?.Variant?.PriceBook:[],i=this.storeService.customer(),o=this.findCustomerPricebook(e,i),l=this.sortAppliedPricebooks(e,t.Quantity);return l.length>0||g.IsNotEmpty(o)?g.IsNotEmpty(o)?t=this.applyPricebook(t,o):t=this.applyPricebook(t,l[0]):t.PriceTypeID===2&&(t=this.removePricebook(t)),t}findCustomerPricebook(t=[],e){let i;return g.IsNotEmpty(e)&&g.IsNotEmpty(e?.Key)&&(i=t.find(o=>o.ID==e.PricebookID)),i}applyCustomerPricebook(){let t=[],e=this.storeService.customer(),i=this.storeService.cartItems();return g.IsNotEmpty(e.PricebookID)&&i.forEach(o=>{let l=this.findCustomerPricebook(o.Variant.PriceBook,e);l&&(o=this.applyPricebook(o,l),t.push(o))}),t}removeCustomerPricebook(t){let e=[];return this.storeService.cartItems().forEach(o=>{this.findCustomerPricebook(o.Variant.PriceBook,t)&&(o=this.removePricebook(o),e.push(o))}),e}sortAppliedPricebooks(t=[],e){return t.sort((i,o)=>o.MinimumQuantity-i.MinimumQuantity).filter(i=>e>=i.MinimumQuantity&&i.MinimumQuantity!=0)}applyPricebook(t,e){let i=this.storeService.loadForm()?.AppConfigJSON?.ModuleSell?.Pricebook?.PricebookVisible;return t.Discount=e.PriceDiscount,t.UnitPrice=e.UnitPrice,t.PriceBookID=e.ID,t.Price=e.UnitPrice,t.PriceTypeID=2,t.PriceNote=e.Name,i?t.Note=e.Name:t.Note="",t}removePricebook(t){return t.Discount=t.Variant.PriceDiscount,t.UnitPrice=t.Variant.UnitPrice,t.PriceBookID=null,t.Price=t.Variant.UnitPrice,t.PriceTypeID=0,t.Note="",t.PriceNote="",t}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var Ve=n=>({selected:n}),qi=()=>["/menu/Products/Catalog/Variants/Info"],Hi=n=>({ID:n});function zi(n,t){if(n&1){let e=A();r(0,"a",12),d("click",function(){C(e);let o=m();return f(o.tabState="PRODUCT")}),s(1," Product "),a()}if(n&2){let e=m();u("ngClass",$(1,Ve,e.tabState=="PRODUCT"))}}function Gi(n,t){if(n&1){let e=A();r(0,"a",13),d("click",function(){C(e);let o=m();return f(o.tabState="SERIAL")}),s(1," Serial "),a()}if(n&2){let e=m();u("ngClass",$(1,Ve,e.tabState=="SERIAL"))}}function Ji(n,t){if(n&1&&(r(0,"div",14)(1,"div",23),D(2,"POS-variant-autocomplete",24),a()()),n&2){let e=m(2);c(2),u("formControl",e.variantSearchCtrl)}}function Ki(n,t){if(n&1&&(r(0,"span"),s(1),a()),n&2){let e=m(2);c(),x("(",e.cartItem().UOMName,")")}}function Yi(n,t){if(n&1){let e=A();r(0,"div",17)(1,"h6"),s(2,"Pricebook"),a(),r(3,"ng-select",25),Q("ngModelChange",function(o){C(e);let l=m(2);return j(l.cartItem().PriceBookID,o)||(l.cartItem().PriceBookID=o),f(o)}),d("ngModelChange",function(o){C(e);let l=m(2);return f(l.onSelectPricebook(o))}),a()()}if(n&2){let e,i=m(2);c(3),u("items",(e=i.cartItem())==null||e.Variant==null?null:e.Variant.PriceBook),U("ngModel",i.cartItem().PriceBookID)}}function Xi(n,t){if(n&1){let e=A();b(0,Ji,3,1,"div",14),r(1,"div",14)(2,"div",15)(3,"h6"),s(4," Qty "),b(5,Ki,2,1,"span"),a(),r(6,"POS-input-quantity",16,0),Q("ngModelChange",function(o){C(e);let l=m();return j(l.cartItem().Quantity,o)||(l.cartItem().Quantity=o),f(o)}),d("ngModelChange",function(){C(e);let o=m();return f(o.onQtyChange())}),a()(),r(8,"div",17)(9,"h6"),s(10,"Discount (%)"),a(),r(11,"input",18),Q("ngModelChange",function(o){C(e);let l=m();return j(l.cartItem().Discount,o)||(l.cartItem().Discount=o),f(o)}),a()(),r(12,"div",17)(13,"h6"),s(14,"Price"),a(),r(15,"input",19,1),Q("ngModelChange",function(o){C(e);let l=m();return j(l.cartItem().Price,o)||(l.cartItem().Price=o),f(o)}),a()(),b(17,Yi,4,2,"div",17),a(),r(18,"div",20)(19,"div",21)(20,"POS-tinymce-editor",22),Q("ngModelChange",function(o){C(e);let l=m();return j(l.cartItem().Note,o)||(l.cartItem().Note=o),f(o)}),a()()()}if(n&2){let e,i=m();_(i.isEditState()==!1?0:-1),c(5),_(i.cartItem().UOMName?5:-1),c(),U("ngModel",i.cartItem().Quantity),u("decimalPlaces",i.isSerialItem()?0:4),c(5),U("ngModel",i.cartItem().Discount),c(4),U("ngModel",i.cartItem().Price),u("disabled",!(!(i.roleService==null||i.roleService.sell==null)&&i.roleService.sell.UnitPriceEditor)),c(2),_(((e=i.cartItem().Variant)==null||e.PriceBook==null?null:e.PriceBook.length)>0?17:-1),c(3),U("ngModel",i.cartItem().Note)}}function Zi(n,t){n&1&&(D(0,"i",42),r(1,"h6"),s(2,"No Image"),a())}function tn(n,t){if(n&1&&D(0,"img",28),n&2){let e=m(2);u("src",e.cartItem().ThumbnailUrl,Jt)}}function en(n,t){if(n&1&&(r(0,"tr")(1,"td",43),s(2),v(3,"number"),a(),r(4,"td",43),s(5),v(6,"number"),a(),r(7,"td",43),s(8),v(9,"number"),a()()),n&2){let e=t;c(2),x(" ",h(3,3,e==null?null:e.OnHand)," "),c(3),x(" ",h(6,5,e==null?null:e.Allocated)," "),c(3),x(" ",h(9,7,(e==null?null:e.OnHand)-(e==null?null:e.Allocated))," ")}}function nn(n,t){if(n&1){let e=A();r(0,"tr")(1,"th",40),s(2,"Cost"),a(),r(3,"td",44)(4,"input",45),Q("ngModelChange",function(o){C(e);let l=m(2);return j(l.cartItem().UnitCost,o)||(l.cartItem().UnitCost=o),f(o)}),a()()()}if(n&2){let e,i=m(2);c(4),U("ngModel",i.cartItem().UnitCost),u("readonly",!(!((e=i.appConfig())==null||e.ModuleSell==null)&&e.ModuleSell.Cost.Enabled))}}function on(n,t){if(n&1&&(r(0,"tr")(1,"th",40),s(2,"Content"),a(),r(3,"td",41)(4,"div",46),s(5),v(6,"number"),a()()()),n&2){let e,i=m(2);c(5),ht(" ",(e=i.cartItem())==null?null:e.VariantUnitQuantity," (@",h(6,2,i.cartItem().Price/((e=i.cartItem())==null?null:e.VariantUnitQuantity)),")")}}function rn(n,t){if(n&1&&(r(0,"div",38)(1,"table",47)(2,"thead")(3,"tr")(4,"th",48),s(5,"Storage Location"),a()()(),r(6,"tbody")(7,"tr")(8,"td"),s(9),a()()()()()),n&2){let e=m(2);c(9),x(" ",e.cartItem().Storage," ")}}function an(n,t){if(n&1&&(r(0,"div",10)(1,"div",26)(2,"a",27),b(3,Zi,3,0)(4,tn,1,1,"img",28),a()(),r(5,"div",29)(6,"div",30)(7,"div",21)(8,"div",31),D(9,"i",32),r(10,"div",33),s(11,"Inventory"),a()(),r(12,"table",34)(13,"thead")(14,"tr")(15,"th",35),s(16,"On Hand"),a(),r(17,"th",35),s(18,"Allocated"),a(),r(19,"th",36),s(20,"Available"),a()()(),r(21,"tbody"),b(22,en,10,9,"tr"),v(23,"async"),a()()()(),r(24,"div",37)(25,"div",38)(26,"table",39)(27,"thead"),b(28,nn,5,2,"tr"),r(29,"tr")(30,"th",40),s(31,"Price"),a(),r(32,"td",41),s(33),v(34,"number"),a()(),b(35,on,7,4,"tr"),a()()(),b(36,rn,10,1,"div",38),a()()()),n&2){let e,i,o,l,y,M,W,rt=m();c(2),u("routerLink",Zt(12,qi))("queryParams",$(13,Hi,(e=rt.cartItem())==null?null:e.ID)),c(),_(((i=rt.cartItem())==null?null:i.ThumbnailUrl)==null?3:4),c(19),_((o=h(23,8,rt.variantInventory$))?22:-1,o),c(6),_(!((l=rt.appConfig())==null||l.ModuleSell==null)&&l.ModuleSell.Cost.Visible&&rt.roleService.product.Cost?28:-1),c(5),x(" ",h(34,10,(y=rt.cartItem())==null?null:y.Price)," "),c(2),_(((M=rt.cartItem())==null?null:M.VariantUnitQuantity)>1?35:-1),c(),_(!((W=rt.appConfig())==null||W.ModuleSell==null||W.ModuleSell.Grid==null)&&W.ModuleSell.Grid.StorageVisible&&((W=rt.cartItem())!=null&&W.Storage)?36:-1)}}function ln(n,t){if(n&1){let e=A();r(0,"app-item-serial",49),d("cartItemChange",function(o){C(e);let l=m();return f(l.onSerialChanges(o))}),a()}if(n&2){let e=m();u("entityId",e.storeService.outlet().ID)("cartItem",e.cartItem())}}var zt=class n{constructor(t,e){this.data=t;this.dialogRef=e;this.cartItem=k(t),this.initVariantInventory(),this.initIsSerialItem(),this.initModalConfig(),this.initDialogState()}storeService=p(S);cartItemService=p(ct);roleService=p(dt);toastr=p(ie);pricebookService=p(_t);modalConfig=new Ft;tabState="CART";cartItem;appConfig=k(this.storeService.loadForm()?.AppConfigJSON);isSerialItem=k(!1);variantInventory$;isEditState=k(!1);showProductTab=k(!1);variantSearchCtrl=new wt;getItemFromSearch$=this.variantSearchCtrl.valueChanges.pipe(P(t=>g.IsNotEmpty(t)),J(t=>{if(t.type==="ID")return this.cartItemService.getItemByVariantId(t.str);if(t.type==="Code")return this.cartItemService.getItemByVariantByCode(t.str)}),O(t=>{this.cartItem.set(t),this.initModalTitle(),this.initProductTab(),this.initIsSerialItem(),this.initVariantInventory()}),V());ngOnInit(){this.isEditState()||this.getItemFromSearch$.subscribe()}initDialogState(){this.isEditState.set(g.IsNotEmpty(this.cartItem().VariantID)),this.initProductTab()}initVariantInventory(){this.variantInventory$=this.cartItemService.getVariantInventory(this.cartItem().VariantID).pipe(xt(1))}initProductTab(){this.showProductTab.set(g.IsNotEmpty(this.cartItem().VariantID))}initIsSerialItem(){this.isSerialItem.set(this.cartItem().TypeID==4)}initModalConfig(){this.initModalTitle(),this.modalConfig.customWidth="680px",this.modalConfig.noPadding=!0,this.modalConfig.bodyScrollable=!0}initModalTitle(){this.modalConfig.title=this.cartItem()?.Name??"Add Variant"}onSerialChanges(t){this.cartItem.set(t)}onQtyChange(){let t=this.pricebookService.autoApplyPricebook(this.cartItem());this.cartItem.set(t)}onSelectPricebook(t){let e;if(g.IsNotEmpty(t)){let o=this.cartItem().Variant.PriceBook.find(l=>l.ID===t);e=this.pricebookService.applyPricebook(this.cartItem(),o)}else e=this.pricebookService.removePricebook(this.cartItem());this.cartItem.set(e)}onCancel(){this.dialogRef.close()}onSave(){g.IsNotEmpty(this.cartItem().VariantID)&&g.IsNotEmpty(this.cartItem().Name)?this.dialogRef.close(this.cartItem()):this.toastr.warning("Please select a product","Warning")}static \u0275fac=function(e){return new(e||n)(K(At),K(Nt))};static \u0275cmp=I({type:n,selectors:[["app-dialog-item"]],decls:13,vars:9,consts:[["quantity",""],["price",""],[3,"onOk","onCancel","onClose","config"],[1,"mb-5"],[1,"container","w-100","h-100","mt-8"],[1,"row","border-bottom","mx-5"],["data-cy","input_sell",1,"btn","btn-link",3,"click","ngClass"],["data-cy","product",1,"btn","btn-link",3,"ngClass"],["data-cy","serial",1,"btn","btn-link",3,"ngClass"],[1,"mx-8"],[1,"row","my-8"],[3,"entityId","cartItem"],["data-cy","product",1,"btn","btn-link",3,"click","ngClass"],["data-cy","serial",1,"btn","btn-link",3,"click","ngClass"],[1,"row","mt-8"],[1,"col-auto","pe-0",2,"width","145px"],[3,"ngModelChange","ngModel","decimalPlaces"],[1,"col-auto","pe-0"],["type","text","percentage","","autoNum","",1,"form-control","input-cart",2,"width","100px",3,"ngModelChange","ngModel"],["id","inputPrice","type","text","autoNum","",1,"form-control","input-cart",2,"width","112px",3,"ngModelChange","ngModel","disabled"],[1,"row","my-6"],[1,"col-12"],["height","220px",3,"ngModelChange","ngModel"],[1,"col-12","px-0"],[3,"formControl"],["bindLabel","Name","bindValue","ID","placeholder","Pricebook","appendTo","body",2,"width","170px",3,"ngModelChange","items","ngModel"],[1,"col-sm-4","d-flex","justify-content-center","flex-column","align-items-center","text-body-secondary"],["target","_blank",2,"color","inherit",3,"routerLink","queryParams"],[1,"border","rounded",3,"src"],[1,"col-sm-8","inventory"],[1,"row","mb-8"],[1,"d-flex"],["aria-hidden","true",1,"fa-archive","fa-solid","fa-1x","pt-3","pe-2"],[2,"font-size","15px","font-family","'Roboto Slab'"],[1,"table","table-bordered","text-center","inventory-table"],[1,"table-light","py-6","border-end",2,"text-transform","none"],[1,"table-light","py-6",2,"text-transform","none"],[1,"row"],[1,"col-6"],[1,"table","table-bordered",2,"width","171px"],[1,"table-light",2,"text-transform","none"],[1,"pe-6","text-end"],["aria-hidden","true",1,"fa-solid","fa-image","fa-5x"],[1,"py-6"],[1,"p-0"],["type","text","autoNum","",1,"form-control","border-0","bg-white","text-end",3,"ngModelChange","ngModel","readonly"],["ngClass","ms-3"],[1,"table","table-bordered","text-center"],[1,"table-light"],[3,"cartItemChange","entityId","cartItem"]],template:function(e,i){e&1&&(r(0,"modal-material",2),d("onOk",function(){return i.onSave()})("onCancel",function(){return i.onCancel()})("onClose",function(){return i.onCancel()}),r(1,"content",3)(2,"div",4)(3,"div",5)(4,"div")(5,"a",6),d("click",function(){return i.tabState="CART"}),s(6," Cart "),a(),b(7,zi,2,3,"a",7),b(8,Gi,2,3,"a",8),a()(),r(9,"div",9),b(10,Xi,21,9),b(11,an,37,15,"div",10),b(12,ln,1,2,"app-item-serial",11),a()()()()),e&2&&(u("config",i.modalConfig),c(5),u("ngClass",$(7,Ve,i.tabState=="CART")),c(2),_(i.showProductTab()?7:-1),c(),_(i.isSerialItem()?8:-1),c(2),_(i.tabState=="CART"?10:-1),c(),_(i.tabState=="PRODUCT"?11:-1),c(),_(i.tabState=="SERIAL"?12:-1))},dependencies:[R,X,Bt,Rt,Mi,it,tt,z,et,ut,gt,ce,le,ee,te,ge,kt,Tt,Ei,Pi,ve,Vt,Et,Z],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.inventory-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .inventory-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{line-height:6px!important}.btn-link[_ngcontent-%COMP%]{padding-top:0;color:#868686;padding-bottom:8px;border-radius:unset;font-family:Roboto Slab,serif}.btn-link.selected[_ngcontent-%COMP%]{color:#3b3b3b;border-bottom:4px solid #07a519}.input-cart[_ngcontent-%COMP%]{height:36px!important}"]})};var ct=class n{httpService=p(G);storeService=p(S);factoryService=p(ft);pricebookService=p(_t);dialog=p(nt);variantSearchCtrl=new wt;viewContainerRef=p(qe);selectedCustomer;cartItemEvent=new Fe;onEditCartItems$=B(this.storeService.cartItems).pipe(P(()=>this.storeService.state()==1),st(t=>({action:"INIT",items:t})),Le());applyCustomerPricebook$=B(this.storeService.customer).pipe(O(t=>{this.onApplyCustomerPricebook(t)}),V());cartItems$=Be(this.onEditCartItems$,this.cartItemEvent.asObservable()).pipe(We((t,e)=>{let i=[];switch(e.action){case"INIT":i=e.items;break;case"ADD":i=this.addNewItem(t,e);break;case"UPDATE":i=this.updateItems(t,e);break;case"REMOVE":i=t.filter((o,l)=>e.index!==l);break;case"CLEAR":i=[];break;case"PURCHASE":i=this.updateItems(t,e);break;case"RETURN":i=this.updateItems(t,e);break;case"DROP":i=e.items;break}return this.storeService.updateCartItems(i),i},this.storeService.cartItems()));addCartItemBySearch$=this.variantSearchCtrl.valueChanges.pipe(P(t=>g.IsNotEmpty(t)),O(t=>{t.type==="ID"?this.addItemByVariantId(t.str):t.type==="Code"&&this.addItemByVariantCode(t.str)}),V());constructor(){this.addCartItemBySearch$.subscribe(),this.applyCustomerPricebook$.subscribe()}onApplyCustomerPricebook(t){let e=[],i=this.storeService.cartItems();g.IsNotEmpty(t.PricebookID)?(this.selectedCustomer=t,e=this.pricebookService.applyCustomerPricebook()):g.IsNotEmpty(this.selectedCustomer)&&(e=this.pricebookService.removeCustomerPricebook(this.selectedCustomer),this.selectedCustomer=null),i.forEach((o,l)=>{let y=e.find(M=>M.VariantID===o.VariantID);y&&this.updateCartItem({cartItem:y,index:l})})}onApplyPricebook(t){return this.pricebookService.autoApplyPricebook(t)}onOpenAddDialog(){this.dialog.open(zt,{data:new Ct,viewContainerRef:this.viewContainerRef}).afterClosed().pipe(P(t=>g.IsNotEmpty(t))).subscribe(t=>{this.cartItemEvent.next({item:t,action:"ADD",newRow:!0})})}onOpenEditDialog(t){this.dialog.open(zt,{data:T({},t.cartItem),viewContainerRef:this.viewContainerRef}).afterClosed().pipe(P(e=>g.IsNotEmpty(e))).subscribe(e=>{this.cartItemEvent.next({item:e,action:"UPDATE",index:t.index})})}onSelectQuickkeyItem(t){this.addItemByVariantId(t)}addNewItem(t,e){let i=[],o=t.find(l=>l.VariantID===e.item?.VariantID);return o?e.newRow?(e.item=this.onApplyPricebook(e.item),i=[...t,e.item]):(o.Quantity+=1,o=this.onApplyPricebook(o),i=[...t]):(e.item=this.onApplyPricebook(e.item),i=[...t,e.item]),i}updateItems(t,e){return t.map((o,l)=>l===e.index?Ci(Ct,e.item):o)}onDropItems(t){this.cartItemEvent.next({action:"DROP",items:t})}addItemByVariantId(t){this.getItemByVariantId(t).pipe(O(e=>{this.cartItemEvent.next({item:e,action:"ADD",newRow:!1})})).subscribe()}addItemByVariantCode(t){this.getItemByVariantByCode(t).pipe(O(e=>{this.cartItemEvent.next({item:e,action:"ADD",newRow:!1})})).subscribe()}removeCartItem(t){this.cartItemEvent.next({action:"REMOVE",index:t.index})}updateCartItem(t){this.cartItemEvent.next({action:"UPDATE",item:t.cartItem,index:t.index})}clearCart(){this.dialog.open(Ri,{data:{title:"Clear Order Items",message:'<p class="h4">Are you sure you want to clear all order items?</p>',headerType:yt.Warning}}).afterClosed().pipe(P(t=>t)).subscribe(()=>{this.cartItemEvent.next({action:"CLEAR"})})}onPurchaseItem(t){this.cartItemEvent.next({action:"PURCHASE",item:t.cartItem,index:t.index})}onReturnItem(t){this.cartItemEvent.next({action:"RETURN",item:t.cartItem,index:t.index})}getItemByVariantId(t){return this.httpService.get(L.GetVariantByID,[{key:"ID",value:t},{key:"EntityID",value:this.storeService.outlet().ID}]).pipe(st(e=>this.factoryService.generateCartItem(e)))}getItemByVariantByCode(t){return this.httpService.get(L.GetVariantByCode,[{key:"Code",value:t},{key:"EntityID",value:this.storeService.outlet().ID},{key:"Promotion",value:!0}]).pipe(st(e=>this.factoryService.generateCartItem(e)))}getVariantInventory(t){return this.httpService.get(L.GetVariantStockByID,[{key:"EntityID",value:this.storeService.outlet().ID},{key:"ID",value:t}])}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};function cn(n,t){if(n&1&&(r(0,"td",8),s(1),a()),n&2){let e=m().$index;c(),x(" ",e+1,". ")}}function sn(n,t){if(n&1&&(r(0,"div",11),D(1,"img",31),a()),n&2){let e=m().$implicit;c(),u("src",e.ThumbnailUrl,Jt)}}function mn(n,t){n&1&&(r(0,"div",12),D(1,"i",32),a())}function pn(n,t){if(n&1&&D(0,"small",16),n&2){let e=m().$implicit;u("innerHtml",e.Note,$e)}}function dn(n,t){if(n&1&&(r(0,"span",20),s(1),v(2,"number"),a()),n&2){let e=m().$implicit;c(),F(Ne(2,1,e.Quantity,"1.0-4"))}}function un(n,t){if(n&1&&(r(0,"span",33),s(1,"x"),a(),r(2,"div",34)(3,"span",35),s(4),v(5,"number"),a()()),n&2){let e=m().$implicit;c(4),F(h(5,1,e.UnitQuantity))}}function gn(n,t){if(n&1&&(r(0,"span",21),s(1),v(2,"number"),a()),n&2){let e=m().$implicit;c(),x("@",h(2,1,e.VariantUnitQuantity))}}function Cn(n,t){if(n&1&&(r(0,"small",22),s(1),a()),n&2){let e=m().$implicit;c(),F(e.UOM?e==null?null:e.UOMName:"")}}function fn(n,t){if(n&1&&(r(0,"div",24),s(1),v(2,"number"),a()),n&2){let e=m().$implicit;c(),x(" ",Ne(2,1,e.Price,"1.0-4")," ")}}function bn(n,t){if(n&1){let e=A();r(0,"tr",7),d("contextmenu",function(o){let l=C(e),y=l.$implicit,M=l.$index,W=m(2);return f(W.onContextMenu(o,y,M))}),b(1,cn,2,1,"td",8),r(2,"td",9),d("click",function(){let o=C(e),l=o.$implicit,y=o.$index,M=m(2);return f(M.onEdit(l,y))}),r(3,"div",10),b(4,sn,2,1,"div",11)(5,mn,2,0,"div",12),r(6,"div",13)(7,"div"),s(8),a(),r(9,"span",14),s(10),a(),r(11,"div"),D(12,"app-serial-note",15),a(),b(13,pn,1,1,"small",16),a()()(),r(14,"td",17),d("click",function(){let o=C(e),l=o.$implicit,y=o.$index,M=m(2);return f(M.onEdit(l,y))}),r(15,"div",18)(16,"div",19),b(17,dn,3,4,"span",20),b(18,un,6,3),b(19,gn,3,3,"span",21),b(20,Cn,2,1,"small",22),a()()(),r(21,"td",23),d("click",function(){let o=C(e),l=o.$implicit,y=o.$index,M=m(2);return f(M.onEdit(l,y))}),b(22,fn,3,4,"div",24),a(),r(23,"td",23),d("click",function(){let o=C(e),l=o.$implicit,y=o.$index,M=m(2);return f(M.onEdit(l,y))}),r(24,"div",25),s(25),v(26,"number"),a()(),r(27,"td",26),d("click",function(){let o=C(e),l=o.$implicit,y=o.$index,M=m(2);return f(M.onEdit(l,y))}),r(28,"div",18)(29,"div",20),s(30),v(31,"number"),a()()(),r(32,"td",27)(33,"div",28)(34,"span",29),d("click",function(){let o=C(e),l=o.$implicit,y=o.$index,M=m(2);return f(M.onRemove(l,y))}),D(35,"i",30),a()()()()}if(n&2){let e=t.$implicit,i=m(2);c(),_(i.appConfig!=null&&i.appConfig.ModuleSell.Grid.RowNumberVisible?1:-1),c(3),_(e.ThumbnailUrl?4:5),c(4),F(e.Name),c(2),F(e.Code),c(2),u("serials",e==null?null:e.Serial),c(),_(e.Note?13:-1),c(4),_(e.Quantity!==1&&e.Quantity!==0||e.UnitQuantity>1||e.VariantUnitQuantity>1?17:-1),c(),_(e.UnitQuantity>1?18:-1),c(),_(e.VariantUnitQuantity>1?19:-1),c(),_(e.UOM&&(!(i.appConfig==null||i.appConfig.ModuleSell==null)&&i.appConfig.ModuleSell.Grid.UOMVisible)?20:-1),c(2),_(e.Price!==e.Total?22:-1),c(3),x(" ",e.Discount?h(26,13,e.Discount*-1)+"%":""," "),c(5),x(" ",i.roleService.product!=null&&i.roleService.product.Price?h(31,15,e.Total):" - "," ")}}function _n(n,t){if(n&1){let e=A();r(0,"table",1)(1,"tbody",5),d("cdkDropListDropped",function(o){C(e);let l=m();return f(l.onDrop(o))}),It(2,bn,36,17,"tr",6,St),a()()}if(n&2){let e=m();c(2),Dt(e.cartItems)}}function vn(n,t){n&1&&(r(0,"div",2)(1,"div",36)(2,"div",37)(3,"div",38)(4,"div",39),D(5,"i",40),a(),r(6,"div",41)(7,"span"),s(8,"Empty Cart"),a(),D(9,"br"),r(10,"span"),s(11,"Add products to the cart"),a(),D(12,"br"),r(13,"span"),s(14,"or scan barcode"),a()()()()()())}function hn(n,t){if(n&1){let e=A();r(0,"button",42),d("click",function(){let o=C(e).item,l=m();return f(l.onReverse(o,!0))}),s(1,"Return"),a(),r(2,"button",42),d("click",function(){let o=C(e).item,l=m();return f(l.onReverse(o,!1))}),s(3,"Purchase"),a()}}var he=class n{roleService=p(dt);appConfig;cartItems=[];set _cartItems(t){t&&(this.cartItems=[...t])}onRemoveEvent=new N;onEditEvent=new N;onDropItems=new N;onReturnEvent=new N;onPurchaseEvent=new N;contextMenu;contextMenuPosition={x:"0px",y:"0px"};onContextMenu(t,e,i){t.preventDefault(),this.contextMenuPosition.x=t.clientX+"px",this.contextMenuPosition.y=t.clientY+"px",e.Index=i,this.contextMenu.menuData={item:e},this.contextMenu.openMenu()}onDrop(t){oi(this.cartItems,t.previousIndex,t.currentIndex),this.onDropItems.emit(this.cartItems)}onEdit(t,e){this.onEditEvent.emit({cartItem:t,index:e})}onRemove(t,e){this.onRemoveEvent.emit({cartItem:t,index:e})}onReverse(t,e){let i=t.Index;e?(t.Quantity>0&&(t.Quantity=t.Quantity*-1),this.onReturnEvent.emit({cartItem:t,index:i})):(t.Quantity<0&&(t.Quantity=t.Quantity*-1),this.onPurchaseEvent.emit({cartItem:t,index:i}))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["POS-cart-display"]],viewQuery:function(e,i){if(e&1&&Ge(se,7),e&2){let o;Je(o=Ke())&&(i.contextMenu=o.first)}},inputs:{appConfig:"appConfig",_cartItems:[0,"cartItems","_cartItems"]},outputs:{onRemoveEvent:"onRemove",onEditEvent:"onEdit",onDropItems:"onDropItems",onReturnEvent:"onReturn",onPurchaseEvent:"onPurchase"},decls:6,vars:6,consts:[["contextMenu","matMenu"],[1,"table","table-borderless"],[1,"row","g-0","h-100"],[2,"visibility","hidden","position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","",1,"border-bottom"],["cdkDrag","",1,"border-bottom",3,"contextmenu"],[2,"width","10px"],[1,"pe-0",2,"width","50%",3,"click"],[1,"d-flex","align-items-center"],[1,"ratio","ratio-1x1",2,"width","55px"],[1,"item-image","d-flex","justify-content-center","align-items-center","text-center","fs-1"],[1,"d-block","ms-4",2,"line-height","18px"],[1,"fw-normal","fs-6","text-muted"],[3,"serials"],["title","Note",1,"special-TinyMCE","m-0","fst-italic","d-block",3,"innerHtml"],[1,"px-0","text-end",2,"width","15%",3,"click"],[1,"d-flex","align-items-center","justify-content-end"],[1,"d-flex","text-end","fw-normal","align-items-center",2,"line-height","20px"],[1,"fs-5"],["title","Variant Unit Quantity",1,"fs-5"],["title","UOM",1,"ps-1","fs-5"],[3,"click"],[1,"fs-5","text-end"],[1,"fw-normal","fs-5","text-danger"],[1,"pe-0",3,"click"],[1,"mt-6","ps-0"],[1,"d-flex","justify-content-end","align-items-center"],["role","button","title","Delete Item",1,"fs-3","cursor-pointer",3,"click"],[1,"fa","fa-trash","text-danger","fs-4"],[1,"item-image",3,"src"],[1,"fa-solid","fa-image",2,"color","#b4b4b4c2"],[1,"fs-6","me-1","ms-1"],[1,"d-flex","algin-items-center"],["title","Unit Quantity",1,"fs-5","me-1"],[1,"col-12"],[1,"d-flex","justify-content-center","align-items-center","h-100"],[1,"row"],[1,"col-12","d-flex","justify-content-center"],[1,"fa-regular","fa-cart-arrow-up","text-secondary",2,"font-size","110px"],[1,"col-12","justify-content-center","text-center","mt-5","empty-cart-description","text-secondary","headings-font-family"],["mat-menu-item","",3,"click"]],template:function(e,i){if(e&1&&(b(0,_n,4,0,"table",1)(1,vn,15,0,"div",2),D(2,"div",3),r(3,"mat-menu",null,0),Yt(5,hn,4,0,"ng-template",4),a()),e&2){let o=Xt(4);_(i.cartItems.length>0?0:1),c(2),Ye("left",i.contextMenuPosition.x)("top",i.contextMenuPosition.y),u("matMenuTriggerFor",o)}},dependencies:[R,li,ai,ri,Ai,Ii,Si,xi,hi,yi,se,Z],styles:[".item-image[_ngcontent-%COMP%]{height:50px;width:56px;display:block;border:solid 1px #dddddd;border-radius:5px;object-fit:contain}.example-menu[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;min-width:180px;max-width:280px;background-color:#fff;padding:6px 0}.example-menu-item[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer;border:none;-webkit-user-select:none;user-select:none;min-width:64px;line-height:36px;padding:0 16px;display:flex;align-items:center;flex-direction:row;flex:1}.example-menu-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.example-menu-item[_ngcontent-%COMP%]:active{background-color:#dcdcdc}.table[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(caption) > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:12px 10px} .cdk-menu.cdk-menu-group.example-menu{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.empty-cart-description[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#c7c7c7}"]})};var xn=(n,t)=>({"text-danger":n,"text-custom-warning":t});function Sn(n,t){if(n&1&&(r(0,"mat-option",7)(1,"div",8)(2,"div",9)(3,"div"),s(4),a()()()()),n&2){let e=t.$implicit,i=m();u("value",e),c(2),u("ngClass",Xe(4,xn,e.StateID==i.customerState.Suspended,e.StateID==i.customerState.WaitingForApproval))("title",e.StateID==i.customerState.Suspended?"Suspended":e.StateID==i.customerState.WaitingForApproval?"Waiting for Approval":""),c(2),F(e==null?null:e.Value)}}function In(n,t){if(n&1){let e=A();r(0,"i",10),d("click",function(){C(e);let o=m();return f(o.openCustomerDetail())}),a()}}var ye=class n{httpService=p(G);router=p(Ot);customerCtrl=new wt;customerFiltered$=this.customerCtrl.valueChanges.pipe(P(t=>typeof t=="string"&&t.length>=3),je(300),J(t=>this.getCustomerSuggestion(t)));customerSelected$=this.customerCtrl.valueChanges.pipe(P(t=>typeof t!="string"),O(t=>{this.onChange(t)}));createNewCustomer=new N;clickInput=new N;customerState=wi;constructor(){this.customerSelected$.pipe(V()).subscribe()}getCustomerSuggestion(t){return this.httpService.get(L.GetCustomerSuggestions,[{key:"count",value:100},{key:"prefix",value:t}])}displayFn(t){return t?.Value}onCreateCustomer(){this.createNewCustomer.emit()}onClickInputValue(){this.clickInput.emit()}onChange=t=>{};onTouched=()=>{};writeValue(t){this.customerCtrl.patchValue(t,{onlySelf:!0,emitEvent:!1})}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}openCustomerDetail(){let t=this.customerCtrl.value.Key;if(g.IsNotEmpty(t)){let e=this.router.serializeUrl(this.router.createUrlTree(["/menu/Contacts/Contact/Customers/Info"],{queryParams:{ID:t}}));window.open(e,"_blank")}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["POS-customer-autocomplete"]],outputs:{createNewCustomer:"onCreateNewCustomer",clickInput:"onClickInput"},features:[Pt([{provide:ne,multi:!0,useExisting:n}])],decls:8,vars:7,consts:[["auto","matAutocomplete"],[1,"d-flex","align-items-center","position-relative"],["matTooltipPosition","above","matTooltip","New Customer","role","button",1,"fa-light","fa-user-plus","position-absolute","cursor-pointer",2,"font-size","12px",3,"click"],["type","text","placeholder","Assign Customer",3,"click","formControl","matAutocomplete"],[3,"displayWith"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left","matTooltip","Open Customer Details",1,"fa-regular","fa-arrow-up-right-from-square","position-absolute"],[3,"value"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,"ms-3","text-wrap","text-break",3,"ngClass","title"],["matTooltipPosition","left","matTooltip","Open Customer Details",1,"fa-regular","fa-arrow-up-right-from-square","position-absolute",3,"click"]],template:function(e,i){if(e&1){let o=A();r(0,"div",1)(1,"i",2),d("click",function(){return C(o),f(i.onCreateCustomer())}),a(),r(2,"input",3),d("click",function(){return C(o),f(i.onClickInputValue())}),a(),r(3,"mat-autocomplete",4,0),Yt(5,Sn,5,7,"mat-option",5),v(6,"async"),a(),b(7,In,1,0,"i",6),a()}if(e&2){let o=Xt(4);c(2),u("formControl",i.customerCtrl)("matAutocomplete",o),c(),u("displayWith",i.displayFn),c(2),u("ngForOf",h(6,5,i.customerFiltered$)),c(2),_(i.customerCtrl&&(i.customerCtrl!=null&&i.customerCtrl.value)&&(!(i.customerCtrl==null||i.customerCtrl.value==null)&&i.customerCtrl.value.Key)?7:-1)}},dependencies:[R,X,Ze,di,mi,ni,pi,kt,tt,z,Tt,re,oe,me,Et],styles:["input[_ngcontent-%COMP%]{width:100%;height:38px!important;border-radius:.375rem;border:1px solid #ced4da;padding-left:32px;padding-right:32px}input[_ngcontent-%COMP%]::placeholder{color:#ced4da}i.fa-user-plus[_ngcontent-%COMP%]{font-size:16px;top:12px;left:11px}.text-custom-warning[_ngcontent-%COMP%]{color:#ff7a00d6}i.fa-arrow-up-right-from-square[_ngcontent-%COMP%]{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:12px;z-index:2;cursor:pointer}"]})};var Gt=class n{storeService=p(S);dialog=p(nt);httpService=p(G);createNewCustomer(){this.dialog.open(Di,{data:{options:this.storeService.loadForm()?.EstimateOptions,config:this.storeService.loadForm()?.AppConfigJSON?.ModuleContact,type:"customer",title:"New Customer Form"}}).afterClosed().pipe(P(t=>g.IsNotEmpty(t))).subscribe(t=>{let e=new ot;e.Key=t.CustomerID,e.Value=t.ContactName,this.storeService.updateCustomer(e)})}onSelectCustomer(t){let e=this.storeService.outlet();this.httpService.get(L.GetCustomerPrivilegeByID,[{key:"ID",value:t.Key},{key:"EntityID",value:e.ID}]).pipe(Ue(()=>{let i=new ot;return this.storeService.updateCustomer(i),Re})).subscribe(i=>{let o=JSON.parse(JSON.stringify(t));o.PricebookID=i.PricebookID,this.storeService.updateCustomer(o)})}onDeleteCustomer(){g.IsNotEmpty(this.storeService?.customer()?.Key)&&this.dialog.open(Oi,{data:{title:"Re-assign customer",message:"Are you sure to re-assign the customer?"}}).afterClosed().pipe(P(t=>t)).subscribe(()=>{let t=new ot;this.storeService.updateCustomer(t)})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var xe=class n{clickEvent=new N;onClick(){this.clickEvent.emit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-note-button"]],outputs:{clickEvent:"onClickEvent"},decls:2,vars:0,consts:[["type","button",1,"btn","btn-gray","w-100","fs-3","px-0","py-6","headings-font-family",3,"click"],[1,"fa-regular","fa-note-sticky","fa-xl"]],template:function(e,i){e&1&&(Y(0,"button",0),Mt("click",function(){return i.onClick()}),ze(1,"i",1),at())},styles:[".btn-gray[_ngcontent-%COMP%]{border:1px solid #d6d6d6;color:#545454!important;background:linear-gradient(to bottom,#fff,#eee)}"]})};function Dn(n,t){if(n&1&&(Y(0,"div"),s(1),v(2,"number"),at()),n&2){let e=m();c(),x(" ",h(2,1,e.totalAmount)," ")}}function Mn(n,t){n&1&&s(0," - ")}var Se=class n{payEvent=new N;totalItems=0;totalQuantity=0;totalAmount=0;rolePrice=!0;constructor(){}ngOnInit(){}onPay(){this.payEvent.emit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-pay-button"]],inputs:{totalItems:"totalItems",totalQuantity:"totalQuantity",totalAmount:"totalAmount",rolePrice:"rolePrice"},outputs:{payEvent:"onPayEvent"},decls:10,vars:5,consts:[["type","button",1,"btn","btn-success","fs-1","py-4","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fs-6"]],template:function(e,i){e&1&&(Y(0,"button",0),Mt("click",function(){return i.onPay()}),Y(1,"div",1)(2,"div")(3,"span"),s(4,"Submit"),at(),Y(5,"small",2),s(6),v(7,"number"),at()(),b(8,Dn,3,3,"div")(9,Mn,1,0),at()()),e&2&&(c(6),ht(" (",h(7,3,i.totalItems)," Items & ",i.totalQuantity," Qty) "),c(2),_(i.rolePrice?8:9))},dependencies:[R,Z],styles:["button[_ngcontent-%COMP%]{border-right:.1px solid #fff;margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0;position:relative;flex:1 1 auto;border-left:.1px solid #fff}"]})};var Ie=class n{clickEvent=new N;onClick(){this.clickEvent.emit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-discount-button"]],outputs:{clickEvent:"onClickEvent"},decls:2,vars:0,consts:[["type","button","matTooltip","Discount / Tax","matTooltipPosition","above",1,"btn","btn-success","fs-5",3,"click"],[1,"fa-light","fa-percent"]],template:function(e,i){e&1&&(r(0,"button",0),d("click",function(){return i.onClick()}),D(1,"i",1),a())},dependencies:[re,oe],styles:["button[_ngcontent-%COMP%]{border-right:.1px solid #fff;border-top-right-radius:0;border-bottom-right-radius:0;position:relative;flex:1 1 auto}"]})};var Qt=class n{store=p(S);toastr=p(ie);dialog=p(nt);_backEndService=p(gi);updateState$=B(this.store.complete).pipe(P(t=>t.Success),O(()=>this.store.updateState(3)),V());constructor(){this.updateState$.subscribe()}onPay(){if(this.validatePayOrder()==!1)return;let e={Items:this.cartItemPreSubmission(),Order:T({},this.store.order())};this._backEndService.submitTransaction(e,L.SubmitEstimate).subscribe(i=>{this.store.updateComplete(i)})}cartItemPreSubmission(){let t=JSON.parse(JSON.stringify(this.store.cartItems()));return t=t.map(e=>(delete e.Variant,e)),t}validatePayOrder(){let t=!0;return g.IsEmpty(this.store.outlet().ID)&&(this.toastr.error("Please select outlet before proceeding..",yt.Error),t=!1),g.IsEmpty(this.store.customer().Key)&&(this.toastr.warning("Please select a customer!",yt.Warning),t=!1),this.store.cartItems().length==0&&(this.toastr.error("You must have at least one item.",yt.Error),t=!1),g.IsEmpty(this.store.order().Number)&&(this.toastr.error("Number cannot be empty.",yt.Error),t=!1),t}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var De=class n{constructor(t,e){this.dialogRef=e;this.discountAmount.set(t.discountAmount),this.discount.set(t.discount),this.tax=k(t.tax),this.currency=k(t.currency),this.taxes.set(t.taxes),this.initModalConfig()}modalConfig=new Ft;discountAmount=k(0);discount=k(0);tax;discounts=k([0,0,0]);currency;taxes=k([]);initModalConfig(){this.modalConfig.title="Discount and Tax",this.modalConfig.customWidth="400px"}onClose(){this.dialogRef.close()}onSave(){this.dialogRef.close({discountAmount:this.discountAmount(),discount:this.discount(),tax:this.tax()})}onSelectTax(t){this.tax.set(t)}onDiscountCalculatorChange(t,e){let i=this.discounts();i[e]=t,this.discounts.set(i),this.calculateDiscountCalculator()}calculateDiscountCalculator(){let t=this.discounts(),e=100;t.forEach(o=>{o&&o>0&&(e=e*(100-o)/100)});let i=100-e;this.discount.set(i)}static \u0275fac=function(e){return new(e||n)(K(At),K(Nt))};static \u0275cmp=I({type:n,selectors:[["app-dialog-discount"]],decls:48,vars:10,consts:[[3,"keydown.F2","onOk","onCancel","onClose","config"],[1,"container"],["matTooltipPosition","above","matTooltip","Discount","tabTitle","Discount"],[1,"row","d-flex","align-items-center","justify-content-start"],[1,"col-3"],[1,"fw-bold","d-block"],[1,"col-9"],["type","text","data-cy","discount1","autoNum","","percentage","","decimalPlaces","2",1,"form-control","d-inline-block",2,"width","100px",3,"ngModelChange","ngModel"],[1,"ms-1"],[1,"row","d-flex","align-items-center","justify-content-start","mt-6"],["type","text","data-cy","discountamount","autoNum","",1,"form-control","d-inline-block",2,"width","100px",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Tax","tabTitle","Tax"],["bindLabel","Label","appendTo","body","bindValue","ID","placeholder","Tax","data-cy","Tax",2,"width","150px",3,"change","clearable","ngModel","items"],["matTooltipPosition","above","matTooltip","Calculation","tabTitle","Calculator"],[1,"row","mt-6","g-0","d-flex","align-items-center","justify-content-start"],[1,"col-4"],[1,"col-8","ps-4"],["type","text","data-cy","discountCal1","autoNum","","percentage","",1,"form-control","d-inline-block",2,"width","47px",3,"ngModelChange","ngModel"],[1,"mx-2"],["type","text","data-cy","discountCal2","autoNum","","percentage","",1,"form-control","d-inline-block",2,"width","47px",3,"ngModelChange","ngModel"],["type","text","data-cy","discountCal3","autoNum","","percentage","",1,"form-control","d-inline-block",2,"width","47px",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(r(0,"modal-material",0),d("keydown.F2",function(){return i.onSave()})("onOk",function(){return i.onSave()})("onCancel",function(){return i.onClose()})("onClose",function(){return i.onClose()}),r(1,"content")(2,"div",1)(3,"custom-tabs"),mt(4),r(5,"tab",2)(6,"div",3)(7,"div",4)(8,"label",5),s(9,"Discount %"),a()(),r(10,"div",6)(11,"input",7),Q("ngModelChange",function(l){return j(i.discount,l)||(i.discount=l),l}),a(),r(12,"span",8),s(13,"%"),a()()(),r(14,"div",9)(15,"div",4)(16,"label",5),s(17),a()(),r(18,"div",6)(19,"input",10),Q("ngModelChange",function(l){return j(i.discountAmount,l)||(i.discountAmount=l),l}),a()()()(),pt(),mt(20),r(21,"tab",11)(22,"div",3)(23,"div",4)(24,"label",5),s(25,"Tax"),a()(),r(26,"div",6)(27,"ng-select",12),d("change",function(l){return i.onSelectTax(l)}),a()()()(),pt(),mt(28),r(29,"tab",13)(30,"div",14)(31,"div",15)(32,"label",5),s(33,"Discount Calculator"),a()(),r(34,"div",16)(35,"input",17),d("ngModelChange",function(l){return i.onDiscountCalculatorChange(l,0)}),a(),r(36,"span"),s(37," %"),a(),r(38,"span",18),s(39,"+"),a(),r(40,"input",19),d("ngModelChange",function(l){return i.onDiscountCalculatorChange(l,1)}),a(),r(41,"span"),s(42," %"),a(),r(43,"span",18),s(44,"+"),a(),r(45,"input",20),d("ngModelChange",function(l){return i.onDiscountCalculatorChange(l,2)}),a(),r(46,"span"),s(47," %"),a()()()(),pt(),a()()()()),e&2){let o;u("config",i.modalConfig),c(11),U("ngModel",i.discount),c(6),x("Discount ",(o=i.currency())==null?null:o.Symbol),c(2),U("ngModel",i.discountAmount),c(8),u("clearable",!1)("ngModel",i.tax().ID)("items",i.taxes()),c(8),u("ngModel",i.discounts[0]),c(5),u("ngModel",i.discounts[1]),c(5),u("ngModel",i.discounts[2])}},dependencies:[Bt,Rt,pe,ue,de,it,tt,z,et,Vt,ut,gt],encapsulation:2})};var vt=class n{storeService=p(S);totalItemsQty=q(()=>this.storeService.cartItems().reduce((i,o)=>i+o.Quantity,0));totalItemsAmount=q(()=>this.storeService.cartItems().reduce((i,o)=>i+o.Total,0));taxAmount=q(()=>{let t=this.storeService.tax(),e=0;return t.Rate>0&&(t.CalculationTypeID==1?e=this.calculateTaxInclude(t):e=this.calculateTaxAdd(t)),e});totalAmount=q(()=>{let t=this.storeService.tax(),e=this.storeService.order().DiscountAmount,i=this.storeService.order().Discount,o=this.totalItemsAmount(),l=this.calculatePercentagDisc(i,o),y=o-e-l;return t.CalculationTypeID==0&&(y=y+this.taxAmount()),y});discountPercentageAmount=q(()=>{let t=this.storeService.order().Discount,e=this.totalItemsAmount();return this.calculatePercentagDisc(t,e)});calculateTaxInclude(t){let e=this.grossTotalTaxable();return t.Rate/(100+t.Rate)*e}calculateTaxAdd(t){let e=this.grossTotalTaxable();return t.Rate/100*e}grossTotalTaxable(){let t=this.taxableItems(),e=this.calculateTaxableItemsPrice(),i=this.storeService.discount();if(t.length!==0){let o=this.calculateDiscountTaxableItem();e=e*(100-i.discount)/100,e=e-o}return e}calculateDiscountTaxableItem(){let t=this.taxableItems(),e=this.totalItemsAmount(),i=this.storeService.discount().discountAmount,o=0,l=0,y=0,M=0;for(let W of t)o=W.getItemAfterDiscount/e,l=o*i,M=l*W.Quantity,y+=M;return y}calculatePercentagDisc(t,e){return t/100*e}calculateTaxableItemsPrice(){return this.taxableItems().filter(i=>i.Taxable).reduce((i,o)=>i+o.Total,0)}taxableItems(){return this.storeService.cartItems().filter(e=>e.Taxable)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})};var On=n=>({selected:n});function wn(n,t){if(n&1){let e=A();r(0,"div",9)(1,"span",14),s(2,"@"),a(),r(3,"input",15),Q("ngModelChange",function(o){C(e);let l=m();return j(l.currency().ExchangeRate,o)||(l.currency().ExchangeRate=o),f(o)}),a()()}if(n&2){let e=m();c(3),U("ngModel",e.currency().ExchangeRate)}}function Tn(n,t){if(n&1){let e=A();r(0,"div",13)(1,"label",16)(2,"input",17),d("ngModelChange",function(){let o=C(e).$implicit,l=m();return f(l.onChangeTag(o.ID))}),a(),s(3),a()()}if(n&2){let e,i=t.$implicit,o=t.$index,l=m();c(),u("for",ke("potype-"+o))("ngClass",$(7,On,((e=l.tag())==null?null:e.ID)==i.ID)),c(),u("id",ke("potype-"+o))("ngModel",l.tag().ID),c(),x(" ",i.Name," ")}}var Me=class n{constructor(t,e){this.dialogRef=e;this.initModalConfig(),this.currencies.set(t.currencies),this.note.set(t.note),this.tags.set(t.tags),this.tag=k(t.tag),this.currency=k(t.currency),this.defaultCurrencyId=k(t.defaultCurrencyId)}modalConfig=new Ft;currencies=k([]);tags=k([]);tag;currency;defaultCurrencyId;note=k("");initModalConfig(){this.modalConfig.title="Order Note",this.modalConfig.customWidth="700px"}onChangeCurrency(t){let e=this.currencies()?.find(i=>i.ID===t);this.currency.set(e)}onChangeTag(t){let e=this.tags()?.find(i=>i.ID===t);this.tag.set(e)}onClose(){this.dialogRef.close()}onSave(){this.dialogRef.close({currency:this.currency(),tag:this.tag(),note:this.note()})}static \u0275fac=function(e){return new(e||n)(K(At),K(Nt))};static \u0275cmp=I({type:n,selectors:[["app-dialog-note"]],decls:20,vars:6,consts:[[3,"keydown.F2","onOk","onCancel","onClose","config"],[1,"container"],["matTooltipPosition","above","matTooltip","Notes","tabTitle","Notes"],[3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Currency","tabTitle","Currency"],[1,"row","d-flex","align-items-center","justify-content-start","mt-6"],[1,"row","ms-4"],[1,"ps-0","col-sm-4"],["bindLabel","Name","bindValue","ID","placeholder","Currency","appendTo","body",3,"ngModelChange","items","clearable","ngModel"],[1,"col-sm-4","d-flex"],["matTooltipPosition","above","matTooltip","Tag","tabTitle","Tag"],[1,"row"],[1,"col-12"],[1,"rad-btn"],[1,"pt-4"],["type","text","autoNum","",1,"border","border-light",3,"ngModelChange","ngModel"],[3,"for","ngClass"],["type","radio",3,"ngModelChange","ngModel","id"]],template:function(e,i){if(e&1&&(r(0,"modal-material",0),d("keydown.F2",function(){return i.onSave()})("onOk",function(){return i.onSave()})("onCancel",function(){return i.onClose()})("onClose",function(){return i.onClose()}),r(1,"content")(2,"div",1)(3,"custom-tabs"),mt(4),r(5,"tab",2)(6,"POS-tinymce-editor",3),Q("ngModelChange",function(l){return j(i.note,l)||(i.note=l),l}),a()(),pt(),mt(7),r(8,"tab",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"ng-select",8),d("ngModelChange",function(l){return i.onChangeCurrency(l)}),a()(),b(13,wn,4,1,"div",9),a()()(),pt(),mt(14),r(15,"tab",10)(16,"div",11)(17,"div",12),It(18,Tn,4,9,"div",13,St),a()()(),pt(),a()()()()),e&2){let o;u("config",i.modalConfig),c(6),U("ngModel",i.note),c(6),u("items",i.currencies())("clearable",!1)("ngModel",i.currency().ID),c(),_(((o=i.currency())==null?null:o.ID)!=i.defaultCurrencyId()?13:-1),c(5),Dt(i.tags())}},dependencies:[R,X,Bt,Rt,pe,ue,de,it,tt,ei,z,et,Vt,ut,gt,ce,le],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.rad-btn[_ngcontent-%COMP%]{position:relative;display:inline-block}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #dddddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label.selected[_ngcontent-%COMP%]{background:#dcdcdc;border:1px solid #dcdcdc}"]})};var Pe=class n{onClickEvent=new N;constructor(){}ngOnInit(){}onClick(){this.onClickEvent.emit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-clear-button"]],outputs:{onClickEvent:"onClickEvent"},decls:3,vars:0,consts:[["type","button",1,"btn","btn-gray","w-100","fs-3","px-0","py-6","headings-font-family",3,"click"]],template:function(e,i){e&1&&(Y(0,"button",0),Mt("click",function(){return i.onClick()}),Y(1,"span"),s(2,"Clear"),at()())},styles:[".btn-gray[_ngcontent-%COMP%]{border:1px solid #d6d6d6;color:#545454!important;background:linear-gradient(to bottom,#fff,#eee)}"]})};function kn(n,t){if(n&1&&(r(0,"tr")(1,"th",11),s(2,"Amount"),a(),r(3,"td",12),s(4),v(5,"number"),a()()),n&2){let e=m();c(4),F(h(5,1,e.calculationService==null?null:e.calculationService.totalItemsAmount()))}}function Nn(n,t){if(n&1&&(r(0,"tr")(1,"th",11),s(2),a(),r(3,"td",13),s(4),v(5,"number"),a()()),n&2){let e=m(2);c(2),x("Discount ",e.storeService==null?null:e.storeService.discount().discount,"%"),c(2),x(" ",h(5,2,e.calculationService.discountPercentageAmount()*-1))}}function An(n,t){if(n&1&&(r(0,"tr")(1,"th",11),s(2),a(),r(3,"td",13),s(4),v(5,"number"),a()()),n&2){let e,i,o=m(2);c(2),x("Discount ",(e=o.storeService.currency())==null?null:e.Symbol),c(2),x(" ",h(5,2,((i=o.storeService.discount())==null?null:i.discountAmount)*-1))}}function Vn(n,t){if(n&1&&(r(0,"tr")(1,"th",11),s(2),a(),r(3,"td",12),s(4),v(5,"number"),a()()),n&2){let e,i=m(2);c(2),F((e=i.storeService.tax())==null?null:e.Label),c(2),F(h(5,2,i.calculationService.taxAmount()))}}function Fn(n,t){if(n&1&&(b(0,Nn,6,4,"tr"),b(1,An,6,4,"tr"),b(2,Vn,6,4,"tr")),n&2){let e,i,o=m();_(o.storeService.discount().discount!=0?0:-1),c(),_(((e=o.storeService.discount())==null?null:e.discountAmount)!=0?1:-1),c(),_(((i=o.storeService.tax())==null?null:i.Rate)!=0?2:-1)}}var Ee=class n{storeService=p(S);orderService=p(lt);roleService=p(dt);payService=p(Qt);calculationService=p(vt);cartService=p(ct);dialog=p(nt);taxCalculationType=ae;totalItemsQty=q(()=>this.storeService.cartItems()?.length);isShowAmount=q(()=>this.storeService?.tax()?.CalculationTypeID==0&&this.storeService?.tax()?.Rate||this.storeService.discount()?.discount!=0||this.storeService.discount()?.discountAmount!=0);onOpenDialogNote(){this.dialog.open(Me,{data:{tags:this.storeService.loadForm().SalesOrderTags,currencies:this.storeService.loadForm().Currencies,currency:this.storeService.currency(),tag:this.storeService.tag(),defaultCurrencyId:this.storeService.loadForm()?.AppConfigJSON?.CoreDefaults?.CurrencyID,note:this.storeService.order().Note}}).afterClosed().pipe(P(t=>g.IsNotEmpty(t))).subscribe(t=>{this.storeService.updateCurrency(t.currency),this.storeService.updateTag(t.tag),this.storeService.updateOrder(Lt(T({},this.storeService.order()),{Note:t.note}))})}onOpenDialogDiscount(){this.dialog.open(De,{data:{discountAmount:this.storeService.order().DiscountAmount,discount:this.storeService.order().Discount,tax:this.storeService.tax(),currency:this.storeService.currency(),taxes:this.storeService.loadForm().Taxes}}).afterClosed().pipe(P(t=>g.IsNotEmpty(t))).subscribe(t=>{this.storeService.updateDiscount({discountAmount:t.discountAmount,discount:t.discount}),this.storeService.updateTax(t.tax)})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["POS-cart-action"]],decls:13,vars:6,consts:[[1,"row","g-0","px-5","justify-content-end"],[1,"col-6",2,"padding-right","15px"],[1,"table","table-borderless"],[1,"row","g-0","pb-6","px-5"],[1,"col-5","d-flex","justify-content-between","pe-5",2,"column-gap","12px"],[2,"flex-grow","1",3,"onClickEvent"],[2,"flex-grow","3",3,"onClickEvent"],[1,"col-7"],[1,"btn-group","w-100"],[1,"d-inline-flex",3,"onClickEvent"],[1,"d-inline-flex","w-100",3,"onPayEvent","rolePrice","totalQuantity","totalItems","totalAmount"],[1,"text-start"],[1,"text-end","fs-5"],[1,"text-end","fs-5","text-danger"]],template:function(e,i){e&1&&(r(0,"div",0)(1,"div",1)(2,"table",2),b(3,kn,6,3,"tr"),b(4,Fn,3,3),a()()(),r(5,"div",3)(6,"div",4)(7,"app-note-button",5),d("onClickEvent",function(){return i.onOpenDialogNote()}),a(),r(8,"app-clear-button",6),d("onClickEvent",function(){return i.cartService.clearCart()}),a()(),r(9,"div",7)(10,"div",8)(11,"app-discount-button",9),d("onClickEvent",function(){return i.onOpenDialogDiscount()}),a(),r(12,"app-pay-button",10),d("onPayEvent",function(){return i.payService.onPay()}),a()()()()),e&2&&(c(3),_(i.isShowAmount()?3:-1),c(),_(i.calculationService.totalItemsQty()>0?4:-1),c(8),u("rolePrice",i.roleService.product.Price)("totalQuantity",i.calculationService.totalItemsQty())("totalItems",i.totalItemsQty())("totalAmount",i.calculationService.totalAmount()))},dependencies:[R,Ie,xe,Se,Pe,Z],encapsulation:2})};var Qi=n=>({ID:n}),Rn=()=>["/menu/Orders/Orders/Estimate/Info"],Bn=n=>({"border-top":n});function Un(n,t){if(n&1&&(r(0,"div",23)(1,"div",28),s(2),a(),r(3,"div",28),s(4),v(5,"number"),a()()),n&2){let e=t.$implicit;c(2),F(e.Name),c(2),x("",h(5,2,e.Total)," ")}}function jn(n,t){if(n&1&&(r(0,"div",24)(1,"div",29),s(2),a(),r(3,"div",29),s(4),v(5,"number"),a()()),n&2){let e,i=m();c(2),x("Amount: ",(e=i.storeService.currency())==null?null:e.Symbol),c(2),F(h(5,2,i.calculationService.totalItemsAmount()))}}function Qn(n,t){if(n&1&&(r(0,"div",25)(1,"div",29),s(2),v(3,"number"),a(),r(4,"div",30),s(5),v(6,"number"),a()()),n&2){let e,i=m();c(2),ht("","Discount "+h(3,3,(e=i.storeService.discount())==null?null:e.discount)+" %",": ",(e=i.storeService.currency())==null?null:e.Symbol),c(3),F(h(6,5,i.calculationService.discountPercentageAmount()*-1))}}function Ln(n,t){if(n&1&&(r(0,"div",25)(1,"div",29),s(2),a(),r(3,"div",30),s(4),v(5,"number"),a()()),n&2){let e,i,o=m();c(2),x("Discount: ",(e=o.storeService.currency())==null?null:e.Symbol),c(2),x("",h(5,2,((i=o.storeService.discount())==null?null:i.discountAmount)*-1)," ")}}function Wn(n,t){if(n&1&&(r(0,"div",25)(1,"div",29),s(2),a(),r(3,"div",29),s(4),v(5,"number"),a()()),n&2){let e,i=m();c(2),ht("",(e=i.storeService.tax())==null?null:e.Label,": ",(e=i.storeService.currency())==null?null:e.Symbol),c(2),F(h(5,3,i.calculationService.taxAmount()))}}var Oe=class n{orderService=p(lt);calculationService=p(vt);storeService=p(S);isShowAmount=q(()=>this.storeService?.tax()?.CalculationTypeID==0&&this.storeService?.tax()?.Rate||this.storeService.discount()?.discount!=0||this.storeService.discount()?.discountAmount!=0);handleF8(){this.orderService.newOrder()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["POS-complete"]],hostBindings:function(e,i){e&1&&d("keydown.F8",function(l){return i.handleF8(l)},Kt)},decls:41,vars:20,consts:[[1,"pt-7",2,"border-bottom","1px solid rgba(0, 0, 0, 0.1)"],[1,"ps-7","fw-normal","pb-9"],[1,"order-complete"],[1,"container-fluid","pt-8"],[1,"row"],[1,"col-8"],[1,"card"],[1,"card-header",2,"padding-bottom","15px"],[1,"fw-normal",2,"font-size","32px"],[1,"fa-solid","fa-check","me-3"],[1,"card-body"],[1,"row",2,"height","115px"],[1,"col","text-center","my-auto"],[1,"btn","btn-success","w-50",2,"font-size","20px",3,"click"],[1,"card-footer"],[1,"d-flex","justify-content-between","my-6"],["target","_blank","routerLink","/print/Estimate",1,"btn","bg-light-gray","btn-secondary",3,"queryParams"],[1,"fa-solid","fa-print","me-2"],[1,"col-4"],[1,"card-header","bg-light-gray",2,"padding-bottom","15px"],[1,"fst-italic"],["target","_blank",3,"routerLink","queryParams"],[1,"card-body","py-4"],[1,"row","justify-content-between","border-bottom","py-2"],[1,"row","justify-content-end","mt-2","pb-2"],[1,"row","justify-content-end","pb-2"],[1,"row","justify-content-end","pt-4",3,"ngClass"],[1,"col-4","text-end","h5"],[1,"col","text-end"],[1,"col-4","text-end"],[1,"col-4","text-end","text-danger"]],template:function(e,i){if(e&1&&(r(0,"div",0)(1,"h1",1),s(2,"Estimate"),a()(),r(3,"section",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"h1",8),D(10,"i",9),s(11,"Order Complete "),a()(),r(12,"div",10)(13,"div",11)(14,"div",12)(15,"a",13),d("click",function(){return i.orderService.newOrder()}),s(16,"New Order (F8)"),a()()()(),r(17,"div",14)(18,"div",15)(19,"a",16),D(20,"i",17),s(21,"Print Receipt"),a()()()()(),r(22,"div",18)(23,"div",6)(24,"div",19)(25,"h3",20)(26,"a",21),s(27),a()()(),r(28,"div",22),It(29,Un,6,4,"div",23,St),b(31,jn,6,4,"div",24),b(32,Qn,7,7,"div",25),b(33,Ln,6,4,"div",25),b(34,Wn,6,5,"div",25),r(35,"div",26)(36,"div",27),s(37),a(),r(38,"div",27),s(39),v(40,"number"),a()()()()()()()()),e&2){let o,l,y,M,W;c(19),u("queryParams",$(13,Qi,i.storeService.complete().OrderID)),c(7),u("routerLink",Zt(15,Rn))("queryParams",$(16,Qi,i.storeService.complete().OrderID)),c(),x("Estimate #",(o=i.storeService.complete())==null?null:o.InvoiceNumber),c(2),Dt(i.storeService.cartItems()),c(2),_(i.isShowAmount()?31:-1),c(),_(((l=i.storeService.discount())==null?null:l.discount)>0?32:-1),c(),_(((y=i.storeService.discount())==null?null:y.discountAmount)>0?33:-1),c(),_(((M=i.storeService.tax())==null?null:M.Rate)>0?34:-1),c(),u("ngClass",$(18,Bn,i.isShowAmount())),c(2),x("Total: ",(W=i.storeService.currency())==null?null:W.Symbol),c(2),F(h(40,11,i.calculationService.totalAmount()))}},dependencies:[R,X,ee,te,ui,Z],styles:[".order-complete[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.125);padding-bottom:.9375rem}.order-complete[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem}.order-complete[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{max-width:500px;margin-top:30px;margin-bottom:30px}"]})};var we=class n{route=p(Ot);dialog=p(nt);addItem=new N;handleF8(){this.dialog.openDialogs&&this.dialog.openDialogs.length>0||this.onAddItem()}onAddItem(){this.addItem.emit()}redirectToPrevious(){this.route.navigate(["/menu/Estimate/V1"])}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["POS-more-action"]],hostBindings:function(e,i){e&1&&d("keydown.F4",function(l){return i.handleF8(l)},Kt)},outputs:{addItem:"onAddItem"},decls:14,vars:0,consts:[["id","moreMenu","data-bs-toggle","dropdown",1,"d-flex","align-items-center","cursor-pointer"],[1,"me-2"],[1,"fa-solid","fa-caret-down","fa-lg"],[1,"fs-6","headings-font-family","pb-1"],[1,"h-100","d-flex","align-items-center","justify-content-between"],["aria-labelledby","moreMenu",1,"dropdown-menu","more-actions"],[1,"d-flex"],[1,"dropdown-header","text-dark","col"],[1,"h5","mb-4"],[1,"dropdown-divider","m-0"],[1,"cursor-pointer",3,"click"],["icon","fa-circle-plus fa-solid","label","Add New"]],template:function(e,i){e&1&&(r(0,"span",0)(1,"span",1),D(2,"i",2),a(),r(3,"span",3),s(4,"More Actions"),a()(),r(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),s(10,"Item"),a(),D(11,"div",9),r(12,"li",10),d("click",function(){return i.onAddItem()}),D(13,"POS-dropdown-item-more-action",11),a()()()()())},dependencies:[Vi],encapsulation:2})};function $n(n,t){n&1&&D(0,"POS-complete")}function qn(n,t){if(n&1){let e=A();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"POS-select-outlet-form",6),v(6,"async"),d("ngModelChange",function(o){C(e);let l=m();return f(l.outletService.updateOutlet(o))}),a()(),r(7,"POS-invoice-number-form",7),v(8,"async"),d("ngModelChange",function(o){C(e);let l=m();return f(l.orderService.updateOrderNumber(o))}),a(),r(9,"POS-invoice-date",8),d("ngModelChange",function(o){C(e);let l=m();return f(l.orderService.updateOrderDate(o))}),a()()(),r(10,"div",9)(11,"div",10)(12,"div",11)(13,"POS-more-action",12),d("onAddItem",function(){C(e);let o=m();return f(o.cartItemService.onOpenAddDialog())}),a()(),r(14,"div",13)(15,"ng-select-infinite",14,0),v(17,"async"),d("selectedChange",function(o){C(e);let l=m();return f(l.orderService.updateSalesPersonId(o))}),a()()()()(),r(18,"div",15)(19,"div",16)(20,"POS-quick-key",17),v(21,"async"),d("onSelectVariant",function(o){C(e);let l=m();return f(l.cartItemService.onSelectQuickkeyItem(o))}),a()(),r(22,"div",18)(23,"div",19)(24,"div",20),D(25,"POS-variant-autocomplete",21),a(),r(26,"div",13)(27,"POS-customer-autocomplete",22),d("onCreateNewCustomer",function(){C(e);let o=m();return f(o.customerService.createNewCustomer())})("ngModelChange",function(o){C(e);let l=m();return f(l.customerService.onSelectCustomer(o))})("onClickInput",function(){C(e);let o=m();return f(o.customerService.onDeleteCustomer())}),a()()(),r(28,"POS-cart-display",23),v(29,"async"),d("onRemove",function(o){C(e);let l=m();return f(l.cartItemService.removeCartItem(o))})("onEdit",function(o){C(e);let l=m();return f(l.cartItemService.onOpenEditDialog(o))})("onDropItems",function(o){C(e);let l=m();return f(l.cartItemService.onDropItems(o))})("onPurchase",function(o){C(e);let l=m();return f(l.cartItemService.onPurchaseItem(o))})("onReturn",function(o){C(e);let l=m();return f(l.cartItemService.onReturnItem(o))}),a(),D(30,"POS-cart-action"),a()()()}if(n&2){let e,i=m();c(5),u("ngModel",i.storeService.outlet())("outlets",i.storeService.loadForm().Entities)("isOpenAfterLoad",h(6,18,i.outletService.isOpenDialog$)),c(2),u("ngModel",h(8,20,i.orderService.orderNumber$))("isEdit",i.isEditOrder()),c(2),u("ngModel",i.storeService.order().Date)("disabled",!(!(i.role==null||i.role.global==null)&&i.role.global.Date))("tooltip",!(i.role==null||i.role.global==null)&&i.role.global.Date?"":"Date role is required"),c(6),u("clearable",!0)("optionTitle",!0)("items",h(17,22,i.orderService.salesPersons$))("selected",i.storeService.order().SalesID),c(5),u("quickKey",h(21,24,i.quickkeyService.quickkeys$))("outletID",i.storeService.outlet().ID),c(5),u("formControl",i.cartItemService.variantSearchCtrl),c(2),u("ngModel",i.storeService.customer()),c(),u("cartItems",h(29,26,i.cartItemService.cartItems$))("appConfig",(e=i.storeService.loadForm())==null?null:e.AppConfigJSON)}}var Li=class n extends ci{loadFormService=p(Wt);storeService=p(S);role=p(dt);outletService=p($t);orderService=p(lt);quickkeyService=p(qt);cartItemService=p(ct);customerService=p(Gt);intercomService=p(ii);isCompleteOrder=q(()=>this.storeService.state()==3);isEditOrder=q(()=>this.storeService.state()==1);constructor(t){super(t),this.menuData$.subscribe(),this.intercomService.hideLauncher()}ngOnDestroy(){this.intercomService.showLauncher()}static \u0275fac=function(e){return new(e||n)(K(si))};static \u0275cmp=I({type:n,selectors:[["POS-estimate-v2"]],features:[Pt([S,Wt,$t,lt,qt,ct,Gt,Qt,vt,ft,_t]),He],decls:2,vars:1,consts:[["ngSelectInfinite",""],[1,"container-fluid"],[1,"row","header","border-bottom"],[1,"col-5","border-end"],[1,"left-toolbar-container","h-100","d-flex","align-items-center","justify-content-between"],[1,"d-flex"],[3,"ngModelChange","ngModel","outlets","isOpenAfterLoad"],["transactionType","Estimate",3,"ngModelChange","ngModel","isEdit"],[3,"ngModelChange","ngModel","disabled","tooltip"],[1,"col-7","d-flex","align-items-center"],[1,"row","flex-grow-1"],[1,"col-lg-7","col-5","d-flex","align-items-center"],[3,"onAddItem"],[1,"col-5","ps-0"],["bindValue","ID","bindLabel","Name","placeholder","Assign Sales Person",1,"sales-person","select-max-width",3,"selectedChange","clearable","optionTitle","items","selected"],[1,"row","content"],[1,"col-5","border-end","pt-1"],[3,"onSelectVariant","quickKey","outletID"],[1,"col-7","pt-5","px-0","d-flex","flex-column"],[1,"row","w-100","ms-0"],[1,"col-7","px-0"],[3,"formControl"],[3,"onCreateNewCustomer","ngModelChange","onClickInput","ngModel"],[1,"cart-display",3,"onRemove","onEdit","onDropItems","onPurchase","onReturn","cartItems","appConfig"]],template:function(e,i){e&1&&b(0,$n,1,0,"POS-complete")(1,qn,31,28,"div",1),e&2&&_(i.isCompleteOrder()?0:1)},dependencies:[R,Ti,kt,z,Tt,ki,it,et,vi,bi,fi,Ni,he,ye,me,ge,Ee,Oe,we,Et],styles:["ng-select-infinite.sales-person.select-max-width>ng-select{padding-right:10px;height:38px} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-single .ng-select-container{font-size:.75rem;border:.5px solid #d7d7d7;padding-right:6px} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-single .ng-select-container>.ng-arrow-wrapper{width:12px;padding-bottom:2px} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-single .ng-select-container>.ng-value-container{padding-left:6px} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-single .ng-select-container{min-height:38px!important;height:38px!important;border:none} ng-select-infinite.sales-person.select-max-width.offline>.ng-select.ng-select-single .ng-select-container{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-single .ng-select-container .ng-input{padding-left:5px!important} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-single .ng-select-container .ng-input>input{padding-top:5px} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-single>ng-dropdown-panel.ng-dropdown-panel{font-size:.75rem;width:95%!important} ng-select-infinite.sales-person.select-max-width>.ng-select.ng-select-focused .ng-select-container{box-shadow:none!important;border-color:transparent!important}.left-toolbar-container[_ngcontent-%COMP%]{position:relative}.left-toolbar-container[_ngcontent-%COMP%] POS-invoice-number-form[_ngcontent-%COMP%]{position:absolute;top:34px;left:32px}.header[_ngcontent-%COMP%]{min-height:60px}.content[_ngcontent-%COMP%]{min-height:calc(100vh - 60px)}.supplier-more-menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.cart-display[_ngcontent-%COMP%]{flex-grow:1;height:0px;overflow-y:auto}input[_ngcontent-%COMP%]{width:100%;height:38px!important;border:0;border-bottom:1px solid #ced4da;padding-left:32px}input[_ngcontent-%COMP%]::placeholder{color:#ced4da}i[_ngcontent-%COMP%]{font-size:16px;top:10.6px;left:13px}.change[_ngcontent-%COMP%] .burger-lines[_ngcontent-%COMP%]{transition:.4s}.change[_ngcontent-%COMP%] .burger-lines[_ngcontent-%COMP%]:nth-child(1){-webkit-transform:rotate(-45deg) translate(-8px,4px);transform:rotate(-45deg) translate(-8px,4px)}.change[_ngcontent-%COMP%] .burger-lines[_ngcontent-%COMP%]:nth-child(2){opacity:0}.change[_ngcontent-%COMP%] .burger-lines[_ngcontent-%COMP%]:nth-child(3){-webkit-transform:rotate(45deg) translate(-5px,0px);transform:rotate(45deg) translate(-5px)}.mobile-button[_ngcontent-%COMP%]{display:none}@media (max-width: 990px){.mobile-button[_ngcontent-%COMP%]{display:block}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}.more-actions[_ngcontent-%COMP%] div.d-flex[_ngcontent-%COMP%]{width:30rem}"]})};export{Li as EstimateV2Component};
@@ -1 +0,0 @@
1
- import{c as H,d as N}from"./chunk-4KLLS7S5.js";import{a as P,b as R}from"./chunk-QFON23YX.js";import{oa as F}from"./chunk-O5SLP4JK.js";import{F as k,h as A,o as E}from"./chunk-RNLSEEMX.js";import{a as m}from"./chunk-USJ6ILEE.js";import{Bc as M,Cb as _,Cc as x,Db as u,Eb as i,Ob as w,Qb as D,Xa as p,Y as f,Ya as C,ca as O,d as h,db as a,dc as d,ee as s,fa as S,fc as L,hb as y,kd as $,la as g,nb as v,o as G,pa as b,rd as j,vb as I,xb as T}from"./chunk-JYZTRN6N.js";var c=class l{http=b(s);onOpenTreeSelector$=new h;outletGroups$=this.onOpenTreeSelector$.pipe(O(e=>e.length?G(e):this.http.get("/API/outlet/ActiveOptions"),[]),f(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=g({token:l,factory:l.\u0275fac,providedIn:"root"})};function z(l,e){if(l&1&&(u(0,"div"),d(1),i()),l&2){let t=D();p(),L(" ",t.selectedOutletGroupLabel," ")}}function J(l,e){l&1&&(u(0,"label",3),d(1,"Outlet Group"),i())}var B=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new C;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(m.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(S(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(m.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){try{setTimeout(()=>{let e=document.querySelector(".p-overlay.p-component");if(e){let t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`)}},0)}catch(e){console.error("Error:",e)}finally{this.outletGroup.loadOutletGroups()}}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),M(2,"async"),w("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),v(3,z,2,1,"ng-template",2),i(),I(4,J,2,0,"label",3),i()),t&2&&(p(),_("options",x(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),T(o.showLabel?4:-1))},dependencies:[j,N,H,F,k,A,E,R,P,$],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{B as a};
@@ -1 +0,0 @@
1
- import{a as le}from"./chunk-GZ7UUU3F.js";import{a as oe,b as ae,c as re}from"./chunk-AEXXXOEQ.js";import{a as xe,b as fe}from"./chunk-I3ABVEQL.js";import{f as ye}from"./chunk-4KLLS7S5.js";import{c as ve}from"./chunk-EHJXCRPX.js";import{b as se}from"./chunk-T2H2XAEJ.js";import{a as _e}from"./chunk-4QM23MMO.js";import{e as ue,f as ge}from"./chunk-YLLLGS4S.js";import{b as Ce}from"./chunk-HIQKF5X3.js";import{b as ne,c as ie}from"./chunk-C4WJKF7R.js";import{a as me,d as pe,e as de}from"./chunk-7TBS7SPQ.js";import{g as ce}from"./chunk-A45GTZVV.js";import{F as $,c as U,h as X,o as Y,q as Z}from"./chunk-RNLSEEMX.js";import{d as te}from"./chunk-USJ6ILEE.js";import{Ab as N,Bb as H,Bc as S,Ca as O,Cb as g,Cc as w,Db as o,Eb as a,Fb as j,Hc as G,Jb as F,Kb as M,Lc as R,Mb as T,Ob as V,Qb as r,Xa as i,Zd as K,be as J,db as h,dc as m,ec as D,ee,fc as y,hb as L,ic as v,jc as x,kc as f,lb as W,nb as A,oc as k,od as q,pa as E,rd as z,ta as C,ua as _,uc as Q,vb as d,xb as s,zb as B}from"./chunk-JYZTRN6N.js";import{a as b,b as P}from"./chunk-SNAKHGZS.js";var he=n=>({ID:n});function De(n,p){if(n&1){let e=T();o(0,"button",16),V("click",function(){C(e);let t=r();return _(t.openExportModal())}),j(1,"i",17),m(2," Export "),a()}}function Se(n,p){if(n&1&&(o(0,"span",27),m(1),a()),n&2){let e=p.item;g("matTooltip",k(e.Value)),i(),D(e.Value)}}function we(n,p){if(n&1){let e=T();o(0,"div",18)(1,"div")(2,"h6"),m(3,"Outlet"),a(),o(4,"outlet-selector",19),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.OutletID,t)||(l.pageData.Filter.OutletID=t),_(t)}),a()(),o(5,"div")(6,"h6"),m(7,"Category"),a(),o(8,"POS-product-category-select",20),f("selectedCategoryIDChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductCategoryID,t)||(l.pageData.Filter.ProductCategoryID=t),_(t)}),a()(),o(9,"div")(10,"h6"),m(11,"Brand"),a(),o(12,"ng-select",21),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductBrandID,t)||(l.pageData.Filter.ProductBrandID=t),_(t)}),A(13,Se,2,3,"ng-template",22),a()(),o(14,"div")(15,"h6"),m(16,"Product Tags"),a(),o(17,"ng-select",23),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductTagID,t)||(l.pageData.Filter.ProductTagID=t),_(t)}),a()(),o(18,"div")(19,"h6"),m(20,"Quantity From - To"),a(),o(21,"div",24)(22,"input",25),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.QtyFrom,t)||(l.pageData.Filter.QtyFrom=t),_(t)}),a(),m(23," - "),o(24,"input",26),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.QtyTo,t)||(l.pageData.Filter.QtyTo=t),_(t)}),a()()()()}if(n&2){let e=r();i(4),g("accessType",2),v("ngModel",e.pageData.Filter.OutletID),i(4),v("selectedCategoryID",e.pageData.Filter.ProductCategoryID),g("showClear",!0),i(4),g("items",e.pageData.Options==null?null:e.pageData.Options.Brands),v("ngModel",e.pageData.Filter.ProductBrandID),i(5),g("items",e.pageData.Options==null?null:e.pageData.Options.Tags),v("ngModel",e.pageData.Filter.ProductTagID),i(5),v("ngModel",e.pageData.Filter.QtyFrom),i(2),v("ngModel",e.pageData.Filter.QtyTo)}}function Te(n,p){if(n&1&&(o(0,"th",10),m(1),a()),n&2){let e=r();i(),y(" ",e.column.VariantName.name," ")}}function Ve(n,p){if(n&1&&(o(0,"th",11),m(1),a()),n&2){let e=r();i(),y(" ",e.column.VariantCode.name," ")}}function be(n,p){if(n&1&&(o(0,"th",12),m(1),a()),n&2){let e=r();i(),y(" ",e.column.OnHand.name," ")}}function Pe(n,p){if(n&1&&(o(0,"th",13),m(1),a()),n&2){let e=r();i(),y(" ",e.column.DirectAllocated.name," ")}}function Fe(n,p){if(n&1&&(o(0,"th",14),m(1),a()),n&2){let e=r();i(),y(" ",e.column.IndirectAllocated.name," ")}}function Me(n,p){if(n&1&&(o(0,"th",15),m(1),a()),n&2){let e=r();i(),y(" ",e.column.Available.name," ")}}function Ae(n,p){if(n&1&&(o(0,"td")(1,"a",28),m(2),a()()),n&2){let e=r().$implicit;i(),g("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",Q(3,he,e.VariantID)),i(),y(" ",e.VariantName," ")}}function Ee(n,p){if(n&1&&(o(0,"td"),m(1),a()),n&2){let e=r().$implicit;i(),D(e.VariantCode)}}function Oe(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.OnHand))}}function Le(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),y(" ",w(2,1,e.DirectAllocated)," ")}}function We(n,p){if(n&1&&d(0,Le,3,3,"td"),n&2){let e=r(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function Be(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),y(" ",w(2,1,e.DirectAllocated)," ")}}function Ne(n,p){if(n&1&&d(0,Be,3,3,"td"),n&2){let e=r(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function He(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.IndirectAllocated))}}function je(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.Available))}}function ke(n,p){if(n&1&&(o(0,"tr"),d(1,Ae,3,5,"td"),d(2,Ee,2,1,"td"),d(3,Oe,3,3,"td"),d(4,We,1,1)(5,Ne,1,1),d(6,He,3,3,"td"),d(7,je,3,3,"td"),a()),n&2){let e=r();i(),s(e.column.VariantName&&e.column.VariantName.selected?1:-1),i(),s(e.column.VariantCode&&e.column.VariantCode.selected?2:-1),i(),s(e.column.OnHand&&e.column.OnHand.selected?3:-1),i(),s(e.totalIndirect()>0?4:5),i(2),s(e.column.IndirectAllocated&&e.column.IndirectAllocated.selected&&e.totalIndirect()>0?6:-1),i(),s(e.column.Available&&e.column.Available.selected?7:-1)}}function Qe(n,p){if(n&1){let e=T();o(0,"div")(1,"POS-complex-pagination",29),V("jumpToPage",function(){C(e);let t=r();return _(t.getListData())})("previousPage",function(){C(e);let t=r();return _(t.getListData())})("nextPage",function(){C(e);let t=r();return _(t.getListData())}),a()()}if(n&2){let e=r();i(),g("total",e.data.Data.length)("pageData",e.pageData)}}var Ie=class n extends le{constructor(e,c,t,l,I){super(e,c,"inventory/GetListInventoryComposite","inventoryloader/GetListInventoryComposite",t,void 0,!1);this.httpService=c;this.csvConverter=l;this.roleService=I;R(()=>{let u=this.totalIndirect();u!==null&&u<=0&&(console.log("Indirect allocation is zero or negative"),this.column=P(b({},this.column),{DirectAllocated:P(b({},this.column.DirectAllocated),{name:"Allocated"}),IndirectAllocated:P(b({},this.column.IndirectAllocated),{show:!1})}))})}column={VariantName:{selected:!0,name:"Name",show:!0},VariantCode:{selected:!0,name:"Code",show:!0},OnHand:{selected:!0,name:"On Hand",show:!0},DirectAllocated:{selected:!0,name:"Direct Allocated",show:!0},IndirectAllocated:{selected:!0,name:"Indirect Allocated",show:!0},Available:{selected:!0,name:"Available",show:!0}};totalIndirect=O(null);dialog=E(ce);afterPostInit(e){console.log("Composite Inventory Data",e);let c=e.Data.reduce((t,l)=>t+l.IndirectAllocated,0);console.log("Total Indirect Allocated:",c),this.totalIndirect.set(c)}sortData(e){let c=[...this.data.Data];if(!e.active||e.direction===""){this.infiniteList=c;return}this.infiniteList=c.sort((t,l)=>{let I=e.direction==="asc";return this.compare(t[e.active],l[e.active],I)})}openExportModal(){this.dialog.open(se,{data:{title:"Composite Inventory",exportTypes:[{ID:"inventoryExport/GetExportInventoryComposite",Value:"Default",FileName:"Composite Inventory"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountInventoryComposite",pagination:!0}})}static \u0275fac=function(c){return new(c||n)(h(Ce),h(ee),h(J),h(_e),h(te))};static \u0275cmp=L({type:n,selectors:[["pos-composite-inventory"]],features:[W],decls:22,vars:13,consts:[["pageFilterTemplate",""],["tooltipTitle","Identify and manage unsold inventory that has been stagnant for a long time",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter","column"],["ngProjectAs","actions",5,["actions"]],[1,"btn","btn-outline-secondary","me-3"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["mat-sort-header","VariantName",2,"width","20%"],["mat-sort-header","VariantCode",2,"width","20%"],["mat-sort-header","OnHand",2,"width","10%"],["mat-sort-header","DirectAllocated",2,"width","10%"],["mat-sort-header","IndirectAllocated",2,"width","10%"],["mat-sort-header","Available",2,"width","10%"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"d-flex","flex-column","gap-4"],["placeholder","Choose Outlets (Leave Blank to Choose All)",1,"ng-select-multiple",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["bindLabel","Value","bindValue","Key","placeholder","Choose Brand",3,"ngModelChange","items","ngModel"],["ng-option-tmp",""],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center",2,"column-gap","8px"],["type","number","name","QuantityFrom",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["matTooltipPosition","above",3,"matTooltip"],[3,"routerLink","queryParams"],["api","inventory/GetCountInventoryComposite",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(c,t){if(c&1){let l=T();o(0,"mainpanel-cmp",1),f("textChange",function(u){return C(l),x(t.pageData.Filter.SearchText,u)||(t.pageData.Filter.SearchText=u),_(u)}),V("onSubmit",function(){return C(l),_(t.searchFromPageOne())}),f("filterChange",function(u){return C(l),x(t.pageData.Filter,u)||(t.pageData.Filter=u),_(u)}),F(1,2),d(2,De,3,0,"button",3),M(),F(3,4),A(4,we,25,10,"ng-template",null,0,G),M(),F(6,5),o(7,"div",6)(8,"div",7)(9,"table",8),V("matSortChange",function(u){return C(l),_(t.sortData(u))}),o(10,"thead",9)(11,"tr"),d(12,Te,2,1,"th",10),d(13,Ve,2,1,"th",11),d(14,be,2,1,"th",12),d(15,Pe,2,1,"th",13),d(16,Fe,2,1,"th",14),d(17,Me,2,1,"th",15),a()(),o(18,"tbody"),N(19,ke,8,6,"tr",null,B),a()()(),d(21,Qe,2,2,"div"),a(),M(),a()}c&2&&(g("pageData",t.menuData),v("text",t.pageData.Filter.SearchText),g("isFilterOnDropdown",!1),v("filter",t.pageData.Filter),g("column",t.column),i(2),s(t.roleService.global.Export?2:-1),i(10),s(t.column.VariantName&&t.column.VariantName.selected?12:-1),i(),s(t.column.VariantCode&&t.column.VariantCode.selected?13:-1),i(),s(t.column.OnHand&&t.column.OnHand.selected?14:-1),i(),s(t.column.DirectAllocated&&t.column.DirectAllocated.selected?15:-1),i(),s(t.column.IndirectAllocated&&t.column.IndirectAllocated.selected&&t.totalIndirect()>0?16:-1),i(),s(t.column.Available&&t.column.Available.selected?17:-1),i(2),H(t.infiniteList),i(2),s(t.data?21:-1))},dependencies:[ge,ue,ve,ye,$,U,Z,X,Y,de,pe,me,ie,ne,fe,xe,z,K,re,oe,ae,q],styles:["[_nghost-%COMP%]{display:block}"]})};export{Ie as a};
@@ -1 +0,0 @@
1
- import{e as re,f as oe,g as ie}from"./chunk-A45GTZVV.js";import{a as Z,c as r,d as I}from"./chunk-USJ6ILEE.js";import{a as ee}from"./chunk-NETNL55X.js";import{Ab as G,Bb as j,Ed as X,Gb as s,Hb as g,I as $,Ib as f,Nb as M,Pb as z,Qb as C,Sa as O,Xa as l,aa as K,db as E,dc as S,ec as J,ee as te,fa as h,fc as W,hb as Y,k as q,la as c,o as L,oa as _,pa as T,t as V,tb as H,vb as R,xb as v,zb as w}from"./chunk-JYZTRN6N.js";import{a as P,b as k}from"./chunk-SNAKHGZS.js";var ae=class{menuData$;menuData={T:null,N:null,H:null,SH:null,U:null};constructor(e){e.setMenu$(),this.menuData$=e.menu$.pipe(h(t=>this.menuData=t))}};function Ie(o,e){if(o&1&&f(0,"button",11),o&2){let t=C().$index;H("data-bs-slide-to",t)}}function Ne(o,e){if(o&1&&R(0,Ie,1,1,"button",11),o&2){let t=e.$index;v(t!=0?0:-1)}}function De(o,e){if(o&1&&(s(0,"div",3),f(1,"button",10),G(2,Ne,1,1,null,null,w),g()),o&2){let t=C();l(),H("data-bs-slide-to",0),l(),j(t.changelogs)}}function Fe(o,e){if(o&1&&(s(0,"div",12),f(1,"img",6),s(2,"div",7)(3,"h2")(4,"a",8),S(5),g()(),s(6,"p",9),S(7),g()()()),o&2){let t=C().$implicit;l(),M("src",t.ImageSource,O),l(3),M("href",t.Href,O),l(),J(t.Title),l(2),W(" ",t.Description," ")}}function Ae(o,e){if(o&1&&R(0,Fe,8,4,"div",12),o&2){let t=e.$index;v(t!=0?0:-1)}}var N=class o{constructor(e,t){this.dialogRef=t;this.changelogs=e}changelogs=[];close(){this.dialogRef.close()}static \u0275fac=function(t){return new(t||o)(E(oe),E(re))};static \u0275cmp=Y({type:o,selectors:[["POS-modal-changelog"]],decls:16,vars:5,consts:[[1,"changelog-container","h-100"],["mat-button","",1,"close",3,"click"],["id","carouselExampleIndicators","data-bs-ride","carousel",1,"carousel","slide"],[1,"carousel-indicators"],[1,"carousel-inner"],[1,"carousel-item","active"],["alt","",3,"src"],[1,"text-container",2,"height","150px","width","40vw","margin","0 auto"],["target","_blank",3,"href"],[1,"description"],["type","button","data-bs-target","#carouselExampleIndicators","aria-current","true",1,"active"],["type","button","data-bs-target","#carouselExampleIndicators","aria-current","true"],[1,"carousel-item"]],template:function(t,a){t&1&&(s(0,"div",0)(1,"button",1),z("click",function(){return a.close()}),S(2,"X"),g(),s(3,"div",2),R(4,De,4,1,"div",3),s(5,"div",4)(6,"div",5),f(7,"img",6),s(8,"div",7)(9,"h2")(10,"a",8),S(11),g()(),s(12,"p",9),S(13),g()()(),G(14,Ae,1,1,null,null,w),g()()()),t&2&&(l(4),v(a.changelogs.length>1?4:-1),l(3),M("src",a.changelogs[0].ImageSource,O),l(3),M("href",a.changelogs[0].Href,O),l(),J(a.changelogs[0].Title),l(2),W(" ",a.changelogs[0].Description," "),l(),j(a.changelogs))},styles:[".changelog-container[_ngcontent-%COMP%]{position:relative;text-align:center}.changelog-container[_ngcontent-%COMP%] .carousel.slide[_ngcontent-%COMP%]{height:100%}.changelog-container[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] [data-bs-target][_ngcontent-%COMP%]{background-color:#dbdfea}.changelog-container[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:#19a7ce}.changelog-container[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:10px;border:0}.changelog-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:16/9;max-height:55vh}@media (max-width: 576px){.changelog-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:auto;width:100%}}.changelog-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:20px}.changelog-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:10px!important;margin-bottom:15px!important;max-width:700px;font-size:15px;margin:0 auto}.changelog-container[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{position:absolute;top:15px;right:20px;transform:translate(100%,-100%);background:#fff;padding:8px 13px;min-width:auto;border:none;border-radius:119px;z-index:2}@media (max-width: 576px){.changelog-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{width:100%!important}}"]})};var Be={headerTitle:"Adjustment",menu:[{label:"Archive",routerLink:"Adjustment/Adjustment/Archive",pageTitle:"Inventory Adjustment"},{label:"New Inventory Adjustment",routerLink:"Adjustment/Adjustment/Archive/Form",pageTitle:"New Inventory Adjustment",isNotTabOrSideMenu:!0},{label:"Adjustemnt",routerLink:"Adjustment/Adjustment/Archive/Info",pageTitle:"Inventory Adjustment Info",isNotTabOrSideMenu:!0},{label:"Stock Take by CSV",routerLink:"Adjustment/Adjustment/Stock_Take_by_CSV",pageTitle:"Stock Take By CSV"},{label:"Stock Take by CSV",routerLink:"Adjustment/Adjustment/Stock_Take_by_CSV/V1",pageTitle:"Stock Take By CSV",isNotTabOrSideMenu:!0},{label:"Stock Take by Web Spreadsheet",routerLink:"Adjustment/Adjustment/Stock_Take_by_Web_Spreadsheet",pageTitle:"Adjustment By Web Spreadsheet"}]},xe={headerTitle:"Tools",menu:[{label:"Count Product Inventory",routerLink:"Adjustment/Tools/Count_Product_Inventory",pageTitle:"Count Product Inventory"},{label:"Convert Inventory To Parent UOM",routerLink:"Adjustment/Tools/Convert_Inventory_to_Parent_UOM",pageTitle:"Convert Inventory To Parent UOM"},{label:"Product Sheet",routerLink:"Adjustment/Tools/Product_Sheet",pageTitle:"Product Sheet"}]},Ue={headerTitle:"Report",menu:[{label:"Detail",routerLink:"Adjustment/Report/Adjustment",pageTitle:"Adjustment Report"},{label:"Last Count",routerLink:"Adjustment/Report/Last_Count",pageTitle:"Last Count"}]},Ve={headerTitle:"History",menu:[{label:"Variant Adjustment",routerLink:"Adjustment/History/Variant",pageTitle:"Variant Adjustment History"}]},ne=[Be,xe,Ue,Ve];var Ee={headerTitle:"Contact",menu:[{label:"Customers",routerLink:"Contacts/Contact/Customers",pageTitle:"Customers List"},{label:"New Customer",routerLink:"Contacts/Contact/Customers/Form",pageTitle:"Contact",isNotTabOrSideMenu:!0},{label:"Import Customer",routerLink:"Contacts/Contact/Customers/Import",pageTitle:"Import Customer",isNotTabOrSideMenu:!0},{label:"Import Customer",routerLink:"Contacts/Contact/Customers/Import",pageTitle:"Import Customer",isNotTabOrSideMenu:!0},{label:"Suppliers",routerLink:"Contacts/Contact/Suppliers",pageTitle:"Suppliers List",role:"Supp"},{label:"New Supplier",routerLink:"Contacts/Contact/Suppliers/Form",pageTitle:"Supplier",isNotTabOrSideMenu:!0},{label:"Import Supplier",routerLink:"Contacts/Contact/Suppliers/Import",pageTitle:"Import Supplier",isNotTabOrSideMenu:!0},{label:"Supplier Info",routerLink:"Contacts/Contact/Suppliers/Info",pageTitle:"Supplier Info",isNotTabOrSideMenu:!0},{label:"Sales Person",routerLink:"Contacts/Contact/Sales_Person",pageTitle:"Sales Person",role:"SalP"},{label:"Sales",routerLink:"Contacts/Contact/Sales_Person/Form",pageTitle:"Sales",isNotTabOrSideMenu:!0},{label:"Import Sales Person",routerLink:"Contacts/Contact/Sales_Person/Import",pageTitle:"Import Sales Person",isNotTabOrSideMenu:!0},{label:"Sales Info",routerLink:"Contacts/Contact/Sales_Person/Info",pageTitle:"Sales Info",isNotTabOrSideMenu:!0},{label:"Feedback",routerLink:"Contacts/Contact/Feedback",pageTitle:"Feedback List"},{label:"App Sign In",routerLink:"Contacts/Contact/AppSignIn",pageTitle:"App Sign In"}]},He={headerTitle:"Loyalty",menu:[{label:"Current Point",routerLink:"Contacts/Loyalty/Current_Point",pageTitle:"Current Point"},{label:"Loyalty Point History",routerLink:"Contacts/Loyalty/Current_Point/Point_History",pageTitle:"Point History",isNotTabOrSideMenu:!0},{label:"Points Earned",routerLink:"Contacts/Loyalty/Earned_Point",pageTitle:"Points Earned"},{label:"Redeemed Point",routerLink:"Contacts/Loyalty/Redeemed_Point",pageTitle:"Loyalty Summary"},{label:"Loyalty Point Redemption",routerLink:"Contacts/Loyalty/Loyalty_Point_Redemption",pageTitle:"Daily Loyalty Point Redemption"}]},we={headerTitle:"Group",menu:[{label:"Customer Group",routerLink:"Contacts/Group/Customer_Group",pageTitle:"Customer Group"},{label:"Customer Group Form",routerLink:"Contacts/Group/Customer_Group/Form",pageTitle:"Customer Group Form",isNotTabOrSideMenu:!0},{label:"Sales Group",routerLink:"Contacts/Group/Sales_Group",pageTitle:"Sales Group"},{label:"Sales Group Form",routerLink:"Contacts/Group/Sales_Group/Form",pageTitle:"Sales Group Form",isNotTabOrSideMenu:!0},{label:"Expired Customer Group",routerLink:"Contacts/Group/Expired_Customer_Group",pageTitle:"Expired Customer Group"}]},Ge={headerTitle:"Option Values",menu:[{label:"Country",routerLink:"Contacts/Option_Values/Country",pageTitle:"Country List"},{label:"Country Form",routerLink:"Contacts/Option_Values/Country/Form",pageTitle:"Country Form",isNotTabOrSideMenu:!0},{label:"City",routerLink:"Contacts/Option_Values/City",pageTitle:"City List"},{label:"City Form",routerLink:"Contacts/Option_Values/City/Form",pageTitle:"City Form",isNotTabOrSideMenu:!0},{label:"Import City",routerLink:"Contacts/Option_Values/City/Import",pageTitle:"Import City",isNotTabOrSideMenu:!0},{label:"Nationality",routerLink:"Contacts/Option_Values/Nationality",pageTitle:"Nationality List"},{label:"Nationality Form",routerLink:"Contacts/Option_Values/Nationality/Form",pageTitle:"Nationality Form",isNotTabOrSideMenu:!0},{label:"Race",routerLink:"Contacts/Option_Values/Race",pageTitle:"Race List"},{label:"Race Form",routerLink:"Contacts/Option_Values/Race/Form",pageTitle:"Race Form",isNotTabOrSideMenu:!0},{label:"Acquisition Media",routerLink:"Contacts/Option_Values/Acqusition_Media",pageTitle:"Acquisition Media List"},{label:"Acquisition Media Form",routerLink:"Contacts/Option_Values/Acqusition_Media/Form",pageTitle:"Acquisition Media Form",isNotTabOrSideMenu:!0},{label:"Shipping Address",routerLink:"Contacts/Option_Values/Shipping_Address",pageTitle:"Shipping Address List"},{label:"Customer Title",routerLink:"Contacts/Option_Values/Customer_Title",pageTitle:"Customer Title List"},{label:"Customer Title Form",routerLink:"Contacts/Option_Values/Customer_Title/Form",pageTitle:"Customer Title Form",isNotTabOrSideMenu:!0}]},je={headerTitle:"Reports",menu:[{label:"New Customer Outlet",routerLink:"Contacts/Reports/New_Customer_Outlet",pageTitle:"New Customer Outlet"},{label:"App Sign In",routerLink:"Contacts/Reports/AppSignIn",pageTitle:"App Sign In"}]},le=[Ee,He,we,Ge,je];var Je={headerTitle:"Delivery",menu:[{label:"New Order",routerLink:"Fulfillment/Delivery/New_Order",pageTitle:"New Order"},{label:"Pick",routerLink:"Fulfillment/Delivery/Pick",pageTitle:"Pick"},{label:"Pick Form",routerLink:"Fulfillment/Delivery/Pick/Form",pageTitle:"Pick Form",isNotTabOrSideMenu:!0},{label:"Assigned",routerLink:"Fulfillment/Delivery/Assigned",pageTitle:"Assigned"},{label:"Pack",routerLink:"Fulfillment/Delivery/Pack",pageTitle:"Pack"},{label:"Ship",routerLink:"Fulfillment/Delivery/Ship",pageTitle:"Ship"},{label:"All",routerLink:"Fulfillment/Delivery/All",pageTitle:"All"}]},We={headerTitle:"Allocated",menu:[{label:"Unfulfilled Products",routerLink:"Fulfillment/Allocated/Unfulfilled_Products",pageTitle:"Unfulfilled Products"},{label:"Unfulfilled Orders",routerLink:"Fulfillment/Allocated/Unfulfilled_Invoices",pageTitle:"Unfulfilled Orders"},{label:"Pick List Products",routerLink:"Fulfillment/Allocated/PickList_Products",pageTitle:"Pick List Products"}]},Qe={headerTitle:"Awaiting",menu:[{label:"Unfulfilled Products",routerLink:"Fulfillment/Awaiting/Unfulfilled_Products",pageTitle:"Unfulfilled Products"}]},qe={headerTitle:"Report",menu:[{label:"Outlet Performance",routerLink:"Fulfillment/Report/Outlet_Performance",pageTitle:"Outlet Performance"},{label:"Daily Fulfillment",routerLink:"Fulfillment/Report/Daily_Fulfillment",pageTitle:"Daily Fulfillment (Shipped)"},{label:"Employee Performance",routerLink:"Fulfillment/Report/Employee_Performance",pageTitle:"Employee Performance (Packed)"},{label:"Product",routerLink:"Fulfillment/Report/Product",pageTitle:"Product"}]},ue=[Je,We,qe,Qe];var $e={headerTitle:"Job Order",menu:[{label:"Archive",routerLink:"Manufacture/Job_Order/Archive",pageTitle:"Job Order List"},{label:"Job Order Form",routerLink:"Manufacture/Job_Order/Archive/Form",pageTitle:"Job Order Form",isNotTabOrSideMenu:!0},{label:"Job Order Form",routerLink:"Manufacture/Job_Order/Archive/FormV1",pageTitle:"Job Order Form",isNotTabOrSideMenu:!0},{label:"Job Order",routerLink:"Manufacture/Job_Order/Archive/Info",pageTitle:"Job Order Info",isNotTabOrSideMenu:!0},{label:"Report",routerLink:"Manufacture/Job_Order/Report",pageTitle:"Manufacture Production"},{label:"Detail",routerLink:"Manufacture/Job_Order/Report_Detail",pageTitle:"Manufacture Detail"}]},se=[$e];var Ke={headerTitle:"Master",menu:[{label:"Outlets",routerLink:"Outlets/Master/Outlets",pageTitle:"Outlet List"},{label:"Import Outlet",routerLink:"Outlets/Master/Outlets/Import",pageTitle:"Import Outlet",isNotTabOrSideMenu:!0},{label:"Outlet Form",routerLink:"Outlets/Master/Outlets/Form",pageTitle:"New Outlet",isNotTabOrSideMenu:!0},{label:"Outlet Info",routerLink:"Outlets/Master/Outlets/Info",pageTitle:"Outlet Info",isNotTabOrSideMenu:!0},{label:"Registers",routerLink:"Outlets/Master/Registers",pageTitle:"Outlet Register List",isNotTabOrSideMenu:!1},{label:"Register Form",routerLink:"Outlets/Master/Registers/Form",pageTitle:"Register Form",isNotTabOrSideMenu:!0},{label:"Register Info",routerLink:"Outlets/Master/Registers/Info",pageTitle:"Register Info",isNotTabOrSideMenu:!0},{label:"Receipt Templates",routerLink:"Outlets/Master/Receipt_Templates",pageTitle:"Receipt Templates",isNotTabOrSideMenu:!1},{label:"Receipt Templates Form",routerLink:"Outlets/Master/Receipt_Templates/Form",pageTitle:"Receipt Templates Form",isNotTabOrSideMenu:!0},{label:"Receipt Templates Info",routerLink:"Outlets/Master/Receipt_Templates/Info",pageTitle:"Receipt Templates Info",isNotTabOrSideMenu:!0},{label:"Quick Key Templates",routerLink:"Outlets/Master/Quick_Key_Templates",pageTitle:"Quick Key Templates",isNotTabOrSideMenu:!1},{label:"Quick Key Form",routerLink:"Outlets/Master/Quick_Key_Templates/Form",pageTitle:"Quick Key Form",isNotTabOrSideMenu:!0},{label:"Quick Key Form",routerLink:"Outlets/Master/Quick_Key_Templates/Form/V2",pageTitle:"Quick Key Form",isNotTabOrSideMenu:!0},{label:"Park Layout Templates",routerLink:"Outlets/Master/Park_Layout_Templates",pageTitle:"Park Layout Templates",isNotTabOrSideMenu:!1},{label:"Park Layout Template Form",routerLink:"Outlets/Master/Park_Layout_Templates/Form",pageTitle:"Park Layout Template Form",isNotTabOrSideMenu:!0},{label:"Customer Display",routerLink:"Outlets/Master/Customer_Display",pageTitle:"Customer Display",isNotTabOrSideMenu:!1},{label:"Customer Display Form",routerLink:"Outlets/Master/Customer_Display/Form",pageTitle:"Customer Display Form",isNotTabOrSideMenu:!0}]},Ye={headerTitle:"Setup",menu:[{label:"Outlet Group",routerLink:"Outlets/Setup/List",pageTitle:"Outlet Group"},{label:"Outlet Group Form",routerLink:"Outlets/Setup/List/Form",pageTitle:"Outlet Group Form",isNotTabOrSideMenu:!0}]},pe=[Ke,Ye];var ze={headerTitle:"Default",menu:[{label:"Received",routerLink:"Payment/Default/Received",pageTitle:"Received Payment"},{label:"Import Payment",routerLink:"Payment/Default/Received/Import_Payment",pageTitle:"Import Payment",isNotTabOrSideMenu:!0},{label:"Import Payment",routerLink:"Payment/Default/Received/Import_Payment/V2",pageTitle:"Import Payment",isNotTabOrSideMenu:!0},{label:"Import Payment",routerLink:"Payment/Default/Received/Import_Payment_Note",pageTitle:"Import Payment Note",isNotTabOrSideMenu:!0},{label:"Adding New Bulk Payment",routerLink:"Payment/Default/Received/Bulk_Payment",pageTitle:"Bulk Payment",isNotTabOrSideMenu:!0},{label:"Received Chart",routerLink:"Payment/Default/Received_Chart",pageTitle:"Payment Received Chart"},{label:"By Outlet",routerLink:"Payment/Default/Received_by_Outlet",pageTitle:"Payments Received By Group"},{label:"Daily",routerLink:"Payment/Default/Daily",pageTitle:"Daily Payment Received"},{label:"Detail",routerLink:"Payment/Default/Detail",pageTitle:"Record Payment Detail"},{label:"Daily Payment Received Detail",routerLink:"Payment/Default/Detail/TypeColumn",pageTitle:"Payment Received With Type Column",isNotTabOrSideMenu:!0},{label:"Method Analysis",routerLink:"Payment/Default/Top_Payment_Methods",pageTitle:"Top Payment Methods"},{label:"Payments Made",routerLink:"Payment/Default/Made",pageTitle:"Daily Payment Made"},{label:"Purchase Order Payment Detail",routerLink:"Payment/Default/Made/Detail",pageTitle:"Purchase Order Payment Detail",isNotTabOrSideMenu:!0},{label:"Write Off",routerLink:"Payment/Default/Write_Off",pageTitle:"Write Off"},{label:"Payment Gateway",routerLink:"Payment/Default/Payment_Gateway",pageTitle:"Payment Gateway"},{label:"Payment Gateway Daily Aggregate",routerLink:"Payment/Default/Payment_Gateway/Daily",pageTitle:"Payment Gateway Daily Aggregate",isNotTabOrSideMenu:!0}]},Xe={headerTitle:"Advance",menu:[{label:"Received By User",routerLink:"Payment/Advance/Received_by_User",pageTitle:"Received By User"},{label:"Payments Difference",routerLink:"Payment/Advance/Payments_Difference",pageTitle:"Payments Difference Date"}]},de=[ze,Xe];var Ze={headerTitle:"Catalog",menu:[{label:"Category",routerLink:"Products/Catalog/Categories",pageTitle:"Product Category Tree"},{label:"New Category",routerLink:"Products/Catalog/Categories/Form",pageTitle:"Product Category",isNotTabOrSideMenu:!0},{label:"Category Info",routerLink:"Products/Catalog/Categories/Info",pageTitle:"Categories Info",isNotTabOrSideMenu:!0},{label:"Products",routerLink:"Products/Catalog/Products",pageTitle:"Products"},{label:"New Product",routerLink:"Products/Catalog/Products/Form",pageTitle:"Product Form",isNotTabOrSideMenu:!0},{label:"Product Inventory",routerLink:"Products/Catalog/Products/Inventory",pageTitle:"Product Inventory",isNotTabOrSideMenu:!0},{label:"Import Product",routerLink:"Products/Catalog/Products/Import",pageTitle:"Import Product",isNotTabOrSideMenu:!0},{label:"Import Product",routerLink:"Products/Catalog/Products/ImportV2",pageTitle:"Import Product",isNotTabOrSideMenu:!0},{label:"Import Product",routerLink:"Products/Catalog/Products/ImportV3",pageTitle:"Import Product",isNotTabOrSideMenu:!0},{label:"Variants",routerLink:"Products/Catalog/Variants",pageTitle:"Variants"},{label:"Variant Form",routerLink:"Products/Catalog/Variants/Form",pageTitle:"Variant Form",isNotTabOrSideMenu:!0},{label:"Variant Inventory Log",routerLink:"Products/Catalog/Variants/Log",pageTitle:"Stock Log",isNotTabOrSideMenu:!0},{label:"Serial",routerLink:"Products/Catalog/Serial",pageTitle:"Serial"},{label:"Serial Form",routerLink:"Products/Catalog/Serial/Form",pageTitle:"Serial Form",isNotTabOrSideMenu:!0},{label:"Serial Import",routerLink:"Products/Catalog/Serial/Import",pageTitle:"Serial Import",isNotTabOrSideMenu:!0}]},et={headerTitle:"Price Editor",menu:[{label:"Custom Outlet Price",routerLink:"Products/Price_Editor/Custom_Outlet_Price",pageTitle:"Custom Outlet Price"}]},tt={headerTitle:"Log",menu:[{label:"Variant History",routerLink:"Products/Log/Variant_History",pageTitle:"Variant Update History"},{label:"Product Update History",routerLink:"Products/Log/Product_History",pageTitle:"Product Update History"},{label:"Product Import Log",routerLink:"Products/Log/Product_Import_Log",pageTitle:"Product Import Log"}]},rt={headerTitle:"Setup",menu:[{label:"Brand",routerLink:"Products/Setup/Brand",pageTitle:"Brand"},{label:"Brand Form",routerLink:"Products/Setup/Brand/Brand_Form",pageTitle:"Brand Form",isNotTabOrSideMenu:!0},{label:"Measurement",routerLink:"Products/Setup/Measurement",pageTitle:"Measurement List"},{label:"Measurement Form",routerLink:"Products/Setup/Measurement/Form",pageTitle:"Measurement Form",isNotTabOrSideMenu:!0},{label:"Tags",routerLink:"Products/Setup/Tags",pageTitle:"Tags"},{label:"Tags Form",routerLink:"Products/Setup/Tags/Tags_Form",pageTitle:"Tags Form",isNotTabOrSideMenu:!0},{label:"Tags Info",routerLink:"Products/Setup/Tags/Info",pageTitle:"Tags Info",isNotTabOrSideMenu:!0},{label:"Tags Form",routerLink:"Products/Setup/Tags/Form",pageTitle:"Tags Form",isNotTabOrSideMenu:!0},{label:"UOM",routerLink:"Products/Setup/UOM",pageTitle:"UOM List"},{label:"UOM Form",routerLink:"Products/Setup/UOM/Form",pageTitle:"UOM Form",isNotTabOrSideMenu:!0},{label:"Storage Location",routerLink:"Products/Setup/Storages",pageTitle:"Storage Location Option Tree"},{label:"New Storage",routerLink:"Products/Setup/Storages/Form",pageTitle:"Storage Location",isNotTabOrSideMenu:!0}]},ce=[Ze,et,tt,rt];var ot={headerTitle:"Main",menu:[{label:"Promotion Event",routerLink:"Promotion/Main/Event",pageTitle:"Promotion Event"},{label:"Info",routerLink:"Promotion/Main/Event/Info",pageTitle:"Info",isNotTabOrSideMenu:!0},{label:"Promotion Event Form",routerLink:"Promotion/Main/Event/Form",pageTitle:"Promotion Event Form",isNotTabOrSideMenu:!0},{label:"Promotion Coupon",routerLink:"Promotion/Main/Coupon",pageTitle:"Promotion Coupon"},{label:"Info",routerLink:"Promotion/Main/Coupon/Info",pageTitle:"Info",isNotTabOrSideMenu:!0},{label:"Generate Coupon",routerLink:"Promotion/Main/Coupon/Form",pageTitle:"Generate Coupon",isNotTabOrSideMenu:!0},{label:"Pricebook",routerLink:"Promotion/Main/Pricebook",pageTitle:"Pricebook"},{label:"Pricebook Info",routerLink:"Promotion/Main/Pricebook/Info",pageTitle:"Pricebook Info",isNotTabOrSideMenu:!0},{label:"Pricebook Form",routerLink:"Promotion/Main/Pricebook/Form",pageTitle:"Pricebook Form",isNotTabOrSideMenu:!0}]},ge=[ot];var it={headerTitle:"Payment",menu:[{label:"Payment",routerLink:"Setup/Payment/Payment",pageTitle:"Payment Method List"},{label:"Payment Method Form",routerLink:"Setup/Payment/Payment/Form",pageTitle:"Payment Method Form",isNotTabOrSideMenu:!0},{label:"Tax",routerLink:"Setup/Payment/Tax",pageTitle:"Tax Type(S)"},{label:"Tax Form",routerLink:"Setup/Payment/Tax/Form",pageTitle:"Tax Type Form",isNotTabOrSideMenu:!0},{label:"Currency",routerLink:"Setup/Payment/Currency",pageTitle:"Currency List"},{label:"Currency Form",routerLink:"Setup/Payment/Currency/Form",pageTitle:"Currency Form",isNotTabOrSideMenu:!0},{label:"Bank Note",routerLink:"Setup/Payment/Bank_Note",pageTitle:"Bank Note List"},{label:"Bank Note Form",routerLink:"Setup/Payment/Bank_Note/Form",pageTitle:"Bank Note Form",isNotTabOrSideMenu:!0},{label:"Invoice Number",routerLink:"Setup/Payment/Invoice_Number",pageTitle:"Invoice Number List"}]},at={headerTitle:"Tag",menu:[{label:"Sales Order",routerLink:"Setup/Tag/Sales_Order",pageTitle:"Sales Order Tag(S)"},{label:"Sales Order Tag Form",routerLink:"Setup/Tag/Sales_Order/Form",pageTitle:"Sales Order Tag Form",isNotTabOrSideMenu:!0},{label:"Purchase Order",routerLink:"Setup/Tag/Purchase_Order",pageTitle:"Purchase Order Tag(S)"},{label:"Adjustment",routerLink:"Setup/Tag/Adjustment",pageTitle:"Adjustment Tag(S)"},{label:"Adjustment Tag Form",routerLink:"Setup/Tag/Adjustment/Form",pageTitle:"Adjustment Tag Form",isNotTabOrSideMenu:!0},{label:"Purchase Order Tag Form",routerLink:"Setup/Tag/Purchase_Order/Form",pageTitle:"Purchase Order Tag Form",isNotTabOrSideMenu:!0},{label:"Transfer Order",routerLink:"Setup/Tag/Transfer_Order",pageTitle:"Transfer Order Tag(S)"},{label:"Transfer Order Tag Form",routerLink:"Setup/Tag/Transfer_Order/Form",pageTitle:"Transfer Order Tag Form",isNotTabOrSideMenu:!0},{label:"Write Off Option",routerLink:"Setup/Tag/Write_Off_Option",pageTitle:"Write Off Option"},{label:"Write Off Option Form",routerLink:"Setup/Tag/Write_Off_Option/Form",pageTitle:"Write Off Option Form",isNotTabOrSideMenu:!0},{label:"Expense Option",routerLink:"Setup/Tag/Expense_Option",pageTitle:"Expense Option"},{label:"Expense Option Form",routerLink:"Setup/Tag/Expense_Option/Form",pageTitle:"Expense Option Form",isNotTabOrSideMenu:!0},{label:"PO Notes",routerLink:"Setup/Tag/PO_Notes",pageTitle:"PO Notes"},{label:"PO Notes Form",routerLink:"Setup/Tag/PO_Notes/Form",pageTitle:"PO Notes Form",isNotTabOrSideMenu:!0},{label:"Payment Method",routerLink:"Setup/Tag/Payment_Method",pageTitle:"Payment Method Tag"},{label:"Payment Method Form",routerLink:"Setup/Tag/Payment_Method/Form",pageTitle:"Payment Method Form",isNotTabOrSideMenu:!0},{label:"Logistics Service",routerLink:"Setup/Tag/Logistics_Service",pageTitle:"Logistics Service"},{label:"Logistics Service Form",routerLink:"Setup/Tag/Logistics_Service/Form",pageTitle:"Logistics Service Form",isNotTabOrSideMenu:!0},{label:"Logistics Service Info",routerLink:"Setup/Tag/Logistics_Service/Info",pageTitle:"Logistics Service Info",isNotTabOrSideMenu:!0}]},nt={headerTitle:"Configuration",menu:[{label:"Application",routerLink:"Setup/Configuration/Application",pageTitle:"Application Configuration"},{label:"Module",routerLink:"Setup/Configuration/Module",pageTitle:"Module Configuration"},{label:"Printing",routerLink:"Setup/Configuration/Printing",pageTitle:"Printing Configuration"},{label:"AddOns",routerLink:"Setup/Configuration/AddOns",pageTitle:"AddOns Configuration"},{label:"Mail",routerLink:"Setup/Configuration/Mail",pageTitle:"Mail Configuration"},{label:"Payment",routerLink:"Setup/Configuration/Payment",pageTitle:"Payment Configuration"},{label:"Generator",routerLink:"Setup/Configuration/Generator",pageTitle:"Code Generator"},{label:"Sensitive Field",routerLink:"Setup/Configuration/Sensitive_Field",pageTitle:"Sensitive Field"},{label:"Whatsapp",routerLink:"Setup/Configuration/WhatsApp",pageTitle:"WhatsApp"},{label:"AI",routerLink:"Setup/Configuration/AI",pageTitle:"DealPOS AI Configuration"}]},lt={headerTitle:"Restriction",menu:[{label:"IP Restriction",routerLink:"Setup/Restriction/IP",pageTitle:"IP Restriction"},{label:"Time Restriction",routerLink:"Setup/Restriction/Time",pageTitle:"Time Restriction"},{label:"Geo Restriction",routerLink:"Setup/Restriction/Geo",pageTitle:"Geo Restriction"}]},ut={headerTitle:"Integration",menu:[{label:"Apps",routerLink:"Setup/Integration/Apps",pageTitle:"Apps"}]},st={headerTitle:"Data",menu:[{label:"Format Data",routerLink:"Setup/Data/Format_Data",pageTitle:"Format Data"}]},me=[it,at,nt,lt,st,ut];var pt={headerTitle:"Main",menu:[{label:"My Shift",routerLink:"Shift/Main/My_Shift",pageTitle:"My Shift"},{label:"Active Shift",routerLink:"Shift/Main/Active_Shift",pageTitle:"Active Shift"},{label:"Previous Shift",routerLink:"Shift/Main/Previous_Shift",pageTitle:"Previous Shift"},{label:"Shift Expense",routerLink:"Shift/Main/Expense",pageTitle:"Shift Expense"},{label:"Register Shift Form",routerLink:"Shift/Main/Previous_Shift/Register_Shift_Form",pageTitle:"Register Shift Form",isNotTabOrSideMenu:!0},{label:"Shift",routerLink:"Shift/Main/Previous_Shift/Register_Shift_Detail",pageTitle:"Register Shift Detail",isNotTabOrSideMenu:!0}]},dt={headerTitle:"Recycle Bin",menu:[{label:"Shift",routerLink:"Shift/Recycle_Bin/Voided_Shift",pageTitle:"Voided Shift"}]},Te=[pt,dt];var ct={headerTitle:"User",menu:[{label:"Users",routerLink:"Users/User/Users",pageTitle:"User List"},{label:"New User Form",routerLink:"Users/User/Users/Form",pageTitle:"New User Form",isNotTabOrSideMenu:!0},{label:"User Info",routerLink:"Users/User/Users/Info",pageTitle:"User Info",isNotTabOrSideMenu:!0},{label:"Groups",routerLink:"Users/User/Groups",pageTitle:"Group List"},{label:"Group Info",routerLink:"Users/User/Groups/Info",pageTitle:"Group Info",isNotTabOrSideMenu:!0},{label:"New Group Form",routerLink:"Users/User/Groups/Form",pageTitle:"New Group Form",isNotTabOrSideMenu:!0},{label:"Roles",routerLink:"Users/User/Roles",pageTitle:"Role List"},{label:"Role Form",routerLink:"Users/User/Roles/Form",pageTitle:"Role Form",isNotTabOrSideMenu:!0},{label:"Role Info",routerLink:"Users/User/Roles/Info",pageTitle:"Role Info",isNotTabOrSideMenu:!0}]},gt={headerTitle:"History",menu:[{label:"Login History",routerLink:"Users/History/Login_History",pageTitle:"Login History List"},{label:"User Update History",routerLink:"Users/History/User_Update_History",pageTitle:"User Update History"},{label:"Group Update History",routerLink:"Users/History/Group_Update_History",pageTitle:"Group Update History"}]},be=[ct,gt];var mt={headerTitle:"Orders",menu:[{label:"Customer Invoice",routerLink:"Orders/Orders/Customer_Invoice",pageTitle:"Customer Invoice",role:r.orders.Invoice},{label:"Customer Invoice",routerLink:"Orders/Orders/Customer_Invoice/Info",pageTitle:"Customer Invoice Info",isNotTabOrSideMenu:!0},{label:"Import Order",routerLink:"Orders/Orders/Customer_Invoice/Import",pageTitle:"Import Order",isNotTabOrSideMenu:!0},{label:"Import Order",routerLink:"Orders/Orders/Customer_Invoice/Import/V2",pageTitle:"Import Order",isNotTabOrSideMenu:!0},{label:"Import Payment Note",routerLink:"Orders/Orders/Customer_Invoice/Import_Payment_Note",pageTitle:"Import Payment Note",isNotTabOrSideMenu:!0},{label:"Supplier Bill",routerLink:"Orders/Orders/Supplier_Bill",pageTitle:"Supplier Bill",role:r.orders.SupplierBill},{label:"Supplier Bill Info",routerLink:"Orders/Orders/Supplier_Bill/Info",pageTitle:"Supplier Bill Info",isNotTabOrSideMenu:!0},{label:"Summary Delivery",routerLink:"Orders/Orders/Supplier_Bill/Summary",pageTitle:"Summary Delivery",isNotTabOrSideMenu:!0},{label:"Import Purchase Order",routerLink:"Orders/Orders/Supplier_Bill/Import",pageTitle:"Import Purchase Order",isNotTabOrSideMenu:!0},{label:"Import Purchase Order",routerLink:"Orders/Orders/Supplier_Bill/Import/V1",pageTitle:"Import Purchase Order",isNotTabOrSideMenu:!0},{label:"Estimate",routerLink:"Orders/Orders/Estimate",pageTitle:"Estimate",role:r.estimate.Create},{label:"Estimate Info",routerLink:"Orders/Orders/Estimate/Info",pageTitle:"Estimate Info",isNotTabOrSideMenu:!0,role:r.estimate.Create},{label:"Import Estimate",routerLink:"Orders/Orders/Estimate/Import",pageTitle:"Import Estimate",isNotTabOrSideMenu:!0,role:r.estimate.Create},{label:"Import Estimate",routerLink:"Orders/Orders/Estimate/Import/V2",pageTitle:"Import Estimate",isNotTabOrSideMenu:!0,role:r.estimate.Create},{label:"Sales Return",routerLink:"Orders/Orders/Sales_Return",pageTitle:"Sales Return"},{label:"Sales Return Info",routerLink:"Orders/Orders/Sales_Return/Info",pageTitle:"Sales Return Info",isNotTabOrSideMenu:!0}]},Tt={headerTitle:"Order",menu:[{label:"Sales Order",routerLink:"Orders/Order/Sales_Order",pageTitle:"Sales Order"},{label:"Sales Order Info",routerLink:"Orders/Order/Sales_Order/Info",pageTitle:"Sales Order Info",isNotTabOrSideMenu:!0},{label:"Purchase Order",routerLink:"Orders/Order/Purchase_Order",pageTitle:"Purchase Order"},{label:"Purchase Order Info",routerLink:"Orders/Order/Purchase_Order/Info",pageTitle:"Purchase Order Info",isNotTabOrSideMenu:!0},{label:"Parked Order",routerLink:"Orders/Order/Parked_Order",pageTitle:"Parked Order"},{label:"Parked Order Info",routerLink:"Orders/Order/Sales_Order/Info",pageTitle:"Parked Order Info",isNotTabOrSideMenu:!0},{label:"Client Number",routerLink:"Orders/Order/Client_Number",pageTitle:"Client Number"}]},bt={headerTitle:"Search",menu:[{label:"Search Serial",routerLink:"Orders/Search/Serial",pageTitle:"Search Serial"},{label:"Search Note",routerLink:"Orders/Search/Note",pageTitle:"Search Note"}]},St={headerTitle:"Advanced",menu:[{label:"Fulfillment Schedule",routerLink:"Orders/Advanced/Fulfillment_Schedule",pageTitle:"Fulfillment Schedule"},{label:"8cm Bulk Invoice",routerLink:"Orders/Advanced/Print/Bulk_Invoice",pageTitle:"8cm Bulk Invoice",role:"OrdRpr"},{label:"A4 Bulk Invoice",routerLink:"Orders/Advanced/Print/Bulk_Invoice_A4",pageTitle:"A4 Bulk Invoice",role:"OrdRpr"},{label:"Print History",routerLink:"Orders/Advanced/Print/History",pageTitle:"Print History",role:"OrdRpr"}]},yt={headerTitle:"Log History",menu:[{label:"Invoice",routerLink:"Orders/Log_History/Update/Invoice_Update",pageTitle:"Invoice Update History"},{label:"Bill",routerLink:"Orders/Log_History/Update/SupplierInvoice_Update",pageTitle:"Bill Update History"}]},Pt={headerTitle:"Recycle Bin",menu:[{label:"Invoice",routerLink:"Orders/Recycle_Bin/Invoice",pageTitle:"Voided Invoice"},{label:"Bill",routerLink:"Orders/Recycle_Bin/Supplier_Bill",pageTitle:"Voided Bill"},{label:"Sales Order",routerLink:"Orders/Recycle_Bin/Sales_Order",pageTitle:"Voided Sales Order"}]},Se=[mt,Tt,bt,yt,St,Pt];var kt={headerTitle:"Debt",menu:[{label:"Accounts Receiveable",routerLink:"Debt/Debt/Accounts_Receiveable",pageTitle:"Accounts Receiveable"},{label:"Accounts Receiveable Detail",routerLink:"Debt/Debt/Accounts_Receiveable/Accounts_Receiveable_Detail",pageTitle:"Accounts Receiveable Detail",isNotTabOrSideMenu:!0},{label:"Accounts Payable",routerLink:"Debt/Debt/Accounts_Payable",pageTitle:"Accounts Payable"},{label:"Accounts Payable Detail",routerLink:"Debt/Debt/Accounts_Payable/Accounts_Payable_Detail",pageTitle:"Accounts Payable Detail",isNotTabOrSideMenu:!0},{label:"Join Invoice",routerLink:"Debt/Debt/Join_Invoice",pageTitle:"Join Invoice"},{label:"New Join Invoice",routerLink:"Debt/Debt/Join_Invoice/Form",pageTitle:"New Join Invoice",isNotTabOrSideMenu:!0},{label:"AR Collection",routerLink:"Debt/Debt/Join_Invoice/New_Join_Invoice/Info",pageTitle:"Join Invoice Info",isNotTabOrSideMenu:!0},{label:"Join Bill",routerLink:"Debt/Debt/Join_Bill",pageTitle:"Join Bill"},{label:"New Join Bill",routerLink:"Debt/Debt/Join_Bill/New_Join_Bill",pageTitle:"New Join Bill",isNotTabOrSideMenu:!0},{label:"AP Collection",routerLink:"Debt/Debt/Join_Bill/New_Join_Bill/Info",pageTitle:"Join Bill Info",isNotTabOrSideMenu:!0}]},Lt={headerTitle:"Report",menu:[{label:"Invoice Aging",routerLink:"Debt/Report/Invoice_Aging",pageTitle:"Customer Invoice Aging"},{label:"Bill Aging",routerLink:"Debt/Report/Bill_Aging",pageTitle:"Supplier Bill Aging"},{label:"AR History",routerLink:"Debt/Report/AR_History",pageTitle:"Account Receiveable History"}]},_t={headerTitle:"Setup",menu:[{label:"Payment Discount Illustration Setup",routerLink:"Debt/Setup/Payment_Discount_Illustration_Setup",pageTitle:"Payment Discount Illustration Setup"},{label:"Payment Discount Illustration Setup Form",routerLink:"Debt/Setup/Payment_Discount_Illustration_Setup/Form",pageTitle:"Payment Discount Illustration Setup Form",isNotTabOrSideMenu:!0},{label:"Due Setup",routerLink:"Debt/Setup/Due_Setup",pageTitle:"Due Setup"},{label:"Payment Discount Illustration",routerLink:"Debt/Setup/Payment_Discount_Illustration",pageTitle:"A/R Statement"}]},ye=[kt,Lt,_t];var Ot={headerTitle:"Quantity",menu:[{label:"Value",routerLink:"Inventory/Quantity/Valuation",pageTitle:"Inventory Value"},{label:"Category",routerLink:"Inventory/Quantity/Inventory_By_Category",pageTitle:"Inventory By Category"},{label:"Brand",routerLink:"Inventory/Quantity/Brand",pageTitle:"Inventory Summary By Brand"},{label:"Outlet",routerLink:"Inventory/Quantity/Outlet",pageTitle:"Inventory Summary By Outlet"},{label:"As Column",routerLink:"Inventory/Quantity/Product_By_Outlet",pageTitle:"Outlet As Column"},{label:"Outlet Group As Column",routerLink:"Inventory/Quantity/Product_By_Outlet/Product_By_Outlet_Group",pageTitle:"Outlet Group As Column",isNotTabOrSideMenu:!0},{label:"Category By Outlet",routerLink:"Inventory/Quantity/Product_By_Outlet/Category_By_Outlet",pageTitle:"Category By Outlet",isNotTabOrSideMenu:!0},{label:"Timeline",routerLink:"Inventory/Quantity/Timeline",pageTitle:"Inventory Timeline"},{label:"Detailed Inventory Traffic Log",routerLink:"Inventory/Quantity/Timeline/Detailed_Inventory_Traffic_Log",pageTitle:"Detailed Inventory Traffic Log",isNotTabOrSideMenu:!0},{label:"Allocated",routerLink:"Inventory/Quantity/Allocated_Inventory",pageTitle:"Allocated Inventory"},{label:"Awaiting",routerLink:"Inventory/Quantity/Awaiting_Inventory",pageTitle:"Awaiting Inventory"},{label:"Low",routerLink:"Inventory/Quantity/Low_On_Stock",pageTitle:"Low Stock"},{label:"Over",routerLink:"Inventory/Quantity/Inventory_Over_Max",pageTitle:"Over Stock"},{label:"Highest",routerLink:"Inventory/Quantity/Highest_Quantity",pageTitle:"Inventory Count Rank"},{label:"Transit",routerLink:"Inventory/Quantity/In_Transit",pageTitle:"In Transit Inventory"},{label:"Days Of",routerLink:"Inventory/Quantity/Days_Of_Inventory",pageTitle:"Days of Inventory"},{label:"Dead",routerLink:"Inventory/Quantity/Dead_Stock",pageTitle:"Dead Stock"},{label:"Composite",routerLink:"Inventory/Quantity/Composite",pageTitle:"Composite Inventory"}]},ft={headerTitle:"Inventory Traffic",menu:[{label:"Outlet Inventory Traffic",routerLink:"Inventory/Inventory_Traffic/Outlet_Inventory_Traffic",pageTitle:"Outlet Inventory Traffic"},{label:"Category Inventory Traffic",routerLink:"Inventory/Inventory_Traffic/Category_Inventory_Traffic",pageTitle:"Category Inventory Traffic"},{label:"Outlet Inventory Traffic Summary",routerLink:"Inventory/Inventory_Traffic/Outlet_Inventory_Traffic/Outlet_Inventory_Traffic_Summary",pageTitle:"Outlet Inventory Traffic Summary",isNotTabOrSideMenu:!0},{label:"Product Inventory Traffic",routerLink:"Inventory/Inventory_Traffic/Product_Inventory_Traffic",pageTitle:"Product Inventory Traffic"},{label:"Variant Inventory Traffic",routerLink:"Inventory/Inventory_Traffic/Variant_Inventory_Traffic",pageTitle:"Variant Inventory Traffic"}]},Mt={headerTitle:"Advanced",menu:[{label:"Serial Inventory",routerLink:"Inventory/Advanced/Serial_Inventory",pageTitle:"Serial Inventory"},{label:"Depleting Inventory",routerLink:"Inventory/Advanced/Depleting_Inventory",pageTitle:"Depleting Inventory"},{label:"Negative",routerLink:"Inventory/Advanced/Negative",pageTitle:"Negative Inventory"},{label:"Storage Location",routerLink:"Inventory/Advanced/Storage_Location",pageTitle:"Storage Inventory"},{label:"Order by Composite",routerLink:"Inventory/Advanced/Inventory_Order_By_Composite",pageTitle:"Order by Composite"}]},Pe=[Ot,ft,Mt];var ht={headerTitle:"Archive",menu:[{label:"Transfer Order",routerLink:"Logistics/Archive/Transfer_Order",pageTitle:"Transfer Order"},{label:"New Transfer Order",routerLink:"Logistics/Archive/Transfer_Order/Form",pageTitle:"New Transfer Order",isNotTabOrSideMenu:!0},{label:"Transfer Order",routerLink:"Logistics/Archive/Transfer_Order/Info",pageTitle:"Transfer Order Info",isNotTabOrSideMenu:!0},{label:"Outbound Logistics",routerLink:"Logistics/Archive/Outbound_Logistics",pageTitle:"Outbound Logistics"},{label:"Outbound Logistics Form",routerLink:"Logistics/Archive/Outbound_Logistics/Form",pageTitle:"Outbound Logistics Form",isNotTabOrSideMenu:!0},{label:"Outbound Logistics",routerLink:"Logistics/Archive/Outbound_Logistics/Info",pageTitle:"Outbound Logistics Info",isNotTabOrSideMenu:!0},{label:"Inbound Logistics",routerLink:"Logistics/Archive/Inbound_Logistics",pageTitle:"Inbound Logistics"},{label:"Inbound Logistics",routerLink:"Logistics/Archive/Inbound_Logistics/Info",pageTitle:"Inbound Logistics Info",isNotTabOrSideMenu:!0},{label:"Inbound Logistics Form",routerLink:"Logistics/Archive/Inbound_Logistics/Form",pageTitle:"Inbound Logistics Form",isNotTabOrSideMenu:!0}]},Rt={headerTitle:"Report",children:[{headerTitle:"Outbound",menu:[{label:"Product",routerLink:"Logistics/Report/Outbound/Product",pageTitle:"Out Stock Report"},{label:"Detail",routerLink:"Logistics/Report/Outbound/Detail",pageTitle:"Outbound Goods By Logistics"},{label:"Logistics Service",routerLink:"Logistics/Report/Outbound/Logistics_Service",pageTitle:"Logistics Service Report"},{label:"Logistics Service Detail",routerLink:"Logistics/Report/Outbound/Logistics_Service/Detail",pageTitle:"Logistics Service Detail",isNotTabOrSideMenu:!0}]},{headerTitle:"Inbound",menu:[{label:"Product",routerLink:"Logistics/Report/Inbound/Product",pageTitle:"In Stock Report"},{label:"Detail",routerLink:"Logistics/Report/Inbound/Detail",pageTitle:"Inbound Goods By Logistics"}]},{headerTitle:"Transfer",menu:[{label:"Product",routerLink:"Logistics/Report/Transfer/Product",pageTitle:"Transfer Order Report By Product"},{label:"Detail",routerLink:"Logistics/Report/Transfer/Detail",pageTitle:"Transfer Order Detail"},{label:"History",routerLink:"Logistics/Report/Transfer/History",pageTitle:"Transfer Order Update History"}]}]},vt={headerTitle:"Setup",menu:[{label:"Courier",routerLink:"Logistics/Setup/Courier",pageTitle:"Courier"},{label:"Courier Form",routerLink:"Logistics/Setup/Courier/Form",pageTitle:"Courier Form",isNotTabOrSideMenu:!0},{label:"Courier Info",routerLink:"Logistics/Setup/Courier/Info",pageTitle:"Courier Info",isNotTabOrSideMenu:!0},{label:"Recycle Bin",routerLink:"Logistics/Setup/Recycle_Bin",pageTitle:"Voided Transfer Order"}]},ke=[ht,Rt,vt];var Ct={headerTitle:"Dashboard",menu:[{label:"Waiting Customer",routerLink:"Prepaid_Package/Dashboard/Waiting_Customer",pageTitle:"Waiting Customer"},{label:"My Incentive",routerLink:"Prepaid_Package/Dashboard/Waiting_Customer/My_Incentive",pageTitle:"My Incentive",isNotTabOrSideMenu:!0},{label:"Prepaid Form",routerLink:"Prepaid_Package/Dashboard/Waiting_Customer/Prepaid_Form",pageTitle:"Prepaid Form",isNotTabOrSideMenu:!0},{label:"History",routerLink:"Prepaid_Package/Dashboard/Prepaid_History",pageTitle:"Prepaid Archive"},{label:"Prepaid Form",routerLink:"Prepaid_Package/Dashboard/Prepaid_History/Info",pageTitle:"Prepaid Info",isNotTabOrSideMenu:!0},{label:"New Prepaid Registration",routerLink:"Prepaid_Package/Dashboard/Prepaid_History/Prepaid_Registration",pageTitle:"New Prepaid Registration",isNotTabOrSideMenu:!0},{label:"Prepaid History",routerLink:"Prepaid_Package/Dashboard/Prepaid_History/Prepaid",pageTitle:"Prepaid History",isNotTabOrSideMenu:!0},{label:"Package",routerLink:"Prepaid_Package/Dashboard/Prepaid_Package",pageTitle:"Prepaid Package"},{label:"History Point",routerLink:"Prepaid_Package/Dashboard/Prepaid_Package/History",pageTitle:"History Point",isNotTabOrSideMenu:!0},{label:"Sharing Form",routerLink:"Prepaid_Package/Package_Sharing/Sharing/Form",pageTitle:"Sharing Form",isNotTabOrSideMenu:!0},{label:"Last Visit",routerLink:"Prepaid_Package/Dashboard/Last_Visit",pageTitle:"Customer Visit Analytics"},{label:"Package Forecast",routerLink:"Prepaid_Package/Dashboard/Package_Forecast",pageTitle:"Package Forecast"}]},It={headerTitle:"Package Sharing",menu:[{label:"Sharing",routerLink:"Prepaid_Package/Package_Sharing/Sharing",pageTitle:"Sharing List"},{label:"Sharing List",routerLink:"Prepaid_Package/Package_Sharing/Sharing/Info",pageTitle:"Sharing List",isNotTabOrSideMenu:!0},{label:"Sharing Form",routerLink:"Prepaid_Package/Package_Sharing/Sharing/Form",pageTitle:"Sharing Form",isNotTabOrSideMenu:!0}]},Nt={headerTitle:"Report",children:[{headerTitle:"History",menu:[{label:"My History",routerLink:"Prepaid_Package/Report/History/My_Prepaid_History",pageTitle:"Doctor Prepaid History"}]},{headerTitle:"Accounting",menu:[{label:"Services Rendered",routerLink:"Prepaid_Package/Report/Accounting/Services_Rendered",pageTitle:"Services Rendered"},{label:"Services Rendered",routerLink:"Prepaid_Package/Report/Accounting/Services_Rendered/Services_Rendered",pageTitle:"Services Rendered",isNotTabOrSideMenu:!0},{label:"Deferred Revenue",routerLink:"Prepaid_Package/Report/Accounting/Deferred_Revenue",pageTitle:"Deferred Revenue"},{label:"Monthly Statistic",routerLink:"Prepaid_Package/Report/Accounting/Monthly_Statistic",pageTitle:"Monthly Statistic"}]},{headerTitle:"Prepaid",menu:[{label:"Daily Statistic",routerLink:"Prepaid_Package/Report/Prepaid/Daily_Statistic",pageTitle:"Daily Statistic"},{label:"Doctor Statistic",routerLink:"Prepaid_Package/Report/Prepaid/Doctor_Statistic",pageTitle:"Doctor Statistic"},{label:"Outlet Statistic",routerLink:"Prepaid_Package/Report/Prepaid/Outlet_Statistic",pageTitle:"Outlet Statistic"},{label:"Peak Hour",routerLink:"Prepaid_Package/Report/Prepaid/Peak_Hour",pageTitle:"Peak Hour"},{label:"Type Rank",routerLink:"Prepaid_Package/Report/Prepaid/Prepaid_Type_Rank",pageTitle:"Prepaid Type Rank"}]}]},Dt={headerTitle:"Setup",menu:[{label:"Administrator",routerLink:"Prepaid_Package/Setup/Prepaid_Administrator",pageTitle:"Prepaid Administrator"},{label:"Treatment Administrator Form",routerLink:"Prepaid_Package/Setup/Prepaid_Administrator/Form",pageTitle:"Treatment Administrator Form",isNotTabOrSideMenu:!0},{label:"Type",routerLink:"Prepaid_Package/Setup/Prepaid_Type",pageTitle:"Prepaid Type"},{label:"Prepaid Type Form",routerLink:"Prepaid_Package/Setup/Prepaid_Type/form",pageTitle:"Prepaid Type Form",isNotTabOrSideMenu:!0},{label:"Prepaid Type Info",routerLink:"Prepaid_Package/Setup/Prepaid_Type/Info",pageTitle:"Prepaid Type Info",isNotTabOrSideMenu:!0},{label:"Area",routerLink:"Prepaid_Package/Setup/Prepaid_Area",pageTitle:"Prepaid Area"},{label:"Prepaid Area Form",routerLink:"Prepaid_Package/Setup/Prepaid_Area/Form",pageTitle:"Prepaid Area Form",isNotTabOrSideMenu:!0}]},Le=[Ct,It,Nt,Dt];var Ft={headerTitle:"Main",menu:[{label:"My Profile",routerLink:"Profile/Main/My_Profile",pageTitle:"My Profile",isNotTabOrSideMenu:!0},{label:"Choose Your Plan",routerLink:"Profile/Main/My_Subscription/Choose_your_plan",pageTitle:"Choose Your Plan",isNotTabOrSideMenu:!0},{label:"My Sales",routerLink:"Profile/Main/My_Sales",pageTitle:"My Sales",isNotTabOrSideMenu:!0}]},At={headerTitle:"Notification",menu:[{label:"Push Notification",routerLink:"Profile/Notification/Push",pageTitle:"Push Notification"},{label:"Async Notification",routerLink:"Profile/Notification/Async",pageTitle:"Async Notification"}]},_e=[Ft,At];var Bt={headerTitle:"Webhook",menu:[{label:"Webhook",routerLink:"Developer/Webhook/URL",pageTitle:"Webhook URL"},{label:"Logs",routerLink:"Developer/Webhook/Logs",pageTitle:"Webhook Logs"},{label:"Logs Detail",routerLink:"Developer/Webhook/Logs/Detail",pageTitle:"Webhook Logs Detail",isNotTabOrSideMenu:!0},{label:"Job Logs",routerLink:"Developer/Webhook/Job_Logs",pageTitle:"Webhook Job Logs (Async)"},{label:"Job Logs Detail",routerLink:"Developer/Webhook/Job_Logs/Detail",pageTitle:"Webhook Job Logs Detail",isNotTabOrSideMenu:!0},{label:"Configuration",routerLink:"Developer/Webhook/Configuration",pageTitle:"Webhook Configuration"},{label:"Promotion Coupon Provider",routerLink:"Developer/Webhook/CouponProvider",pageTitle:"Promotion Coupon Provider"}]},xt={headerTitle:"API",menu:[{label:"Configuration",routerLink:"Developer/API/Configuration",pageTitle:"API Configuration"},{label:"Usage Activities",routerLink:"Developer/API/Usage_Activities",pageTitle:"Usage Activities"},{label:"Report",routerLink:"Developer/API/Report",pageTitle:"Report "}]},Ut={headerTitle:"Developer",menu:[{label:"Developer Configuration",routerLink:"Developer/Developer/Developer_Configuration",pageTitle:"Developer Configuration"},{label:"Appconfig Editor",routerLink:"Developer/Developer/Appconfig_Editor",pageTitle:"Appconfig Editor"},{label:"Exception Log",routerLink:"Developer/Developer/Exception_Log",pageTitle:"Exception Log"},{label:"Clear Log",routerLink:"Developer/Developer/Maintenance",pageTitle:"Clear Log"},{label:"Exception Log Detail",routerLink:"Developer/Developer/Exception_Log/Detail",pageTitle:"Exception Log Detail",isNotTabOrSideMenu:!0}]},Oe=[Bt,xt,Ut];var F=class o{role=T(I);purchasesReportSubMenu={headerTitle:"Purchases Report",menu:[{label:"Product",routerLink:"Reports/Purchases_Report/Product",pageTitle:"Product Bought"},{label:"Detail",routerLink:"Reports/Purchases_Report/Detail",pageTitle:"Purchase Transaction"},{label:"Summary",routerLink:"Reports/Purchases_Report/Summary",pageTitle:"Summary"},{label:"Supplier",routerLink:"Reports/Purchases_Report/Supplier",pageTitle:"Top Supplier"},{label:"Daily",routerLink:"Reports/Purchases_Report/Daily",pageTitle:"Daily Purchases"},{label:"Monthly Purchases",routerLink:"Reports/Purchases_Report/Daily/Monthly",pageTitle:"Monthly",isNotTabOrSideMenu:!0},{label:"Outlet",routerLink:"Reports/Purchases_Report/Outlet",pageTitle:"Outlet Performance"},{label:"Outlet Group Performance",routerLink:"Reports/Purchases_Report/Outlet/Outlet_Group_Performance",pageTitle:"Outlet Group Performance",isNotTabOrSideMenu:!0},{label:"Outlet Monthly Performance",routerLink:"Reports/Purchases_Report/Outlet/Outlet_Monthly_Perfomance",pageTitle:"Outlet Monthly Performance",isNotTabOrSideMenu:!0},{label:"History",routerLink:"Reports/Purchases_Report/History",pageTitle:"Purchase History"},{label:"Volume",routerLink:"Reports/Purchases_Report/Volume",pageTitle:"Purchase Volume"},{label:"Sales",routerLink:"Reports/Purchases_Report/Sales",pageTitle:"Purchase Sales Report"},{label:"Tax",routerLink:"Reports/Purchases_Report/Tax",pageTitle:"Purchase Tax Report"}]};salesReportSubMenu={headerTitle:"Sales Report",children:[{headerTitle:"Standard",menu:[{label:"Products",routerLink:"Reports/Sales_Report/Standard/Products_Sold",pageTitle:"Sales By Product",requiredRoles:[r.report.View]},{label:"Products Tags",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Products_Tags",pageTitle:"Products Tags",isNotTabOrSideMenu:!0},{label:"Top Supplier",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Top_Suppliers",pageTitle:"Top Supplier",isNotTabOrSideMenu:!0},{label:"Invoice Items",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Invoice_Items",pageTitle:"Invoice Items",isNotTabOrSideMenu:!0},{label:"Sales Product-Outlet Matrix",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Product_Sales_by_Outlet",pageTitle:"Sales Product-Outlet Matrix",isNotTabOrSideMenu:!0},{label:"Sales By Product by",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Product_Sales",pageTitle:"Sales By Product",isNotTabOrSideMenu:!0},{label:"Product Sales Vs Logistics",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Product_Sales_Vs_Logistics",pageTitle:"Product Sales Vs Logistics",isNotTabOrSideMenu:!0},{label:"Category",routerLink:"Reports/Sales_Report/Standard/Category_Sold",pageTitle:"Category Sold",isNotTabOrSideMenu:!0},{label:"Category Chart",routerLink:"Reports/Sales_Report/Standard/Category_Sold/Category",pageTitle:"Category Chart",isNotTabOrSideMenu:!0},{label:"Category",routerLink:"Reports/Sales_Report/Standard/Category_Sold/Category_Sales_Tree",pageTitle:"Category Sales",requiredRoles:[r.report.View]},{label:"Category Sales By Outlet",routerLink:"Reports/Sales_Report/Standard/Category_Sold/Category_By_Outlet",pageTitle:"Category Sales By Outlet",isNotTabOrSideMenu:!0},{label:"Detail",routerLink:"Reports/Sales_Report/Standard/Detail",pageTitle:"Sales Transaction",requiredRoles:[r.report.View]},{label:"Summary",routerLink:"Reports/Sales_Report/Standard/Summary",pageTitle:"Sales Summary",requiredRoles:[r.report.View]},{label:"Customers",routerLink:"Reports/Sales_Report/Standard/Top_Customers",pageTitle:"Top Customers",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Sales By Customer Group",routerLink:"Reports/Sales_Report/Standard/Top_Customers/Customer_Group",pageTitle:"Sales By Customer Group",isNotTabOrSideMenu:!0},{label:"Sales By Regional",routerLink:"Reports/Sales_Report/Standard/Top_Customers/City",pageTitle:"Sales By Regional",isNotTabOrSideMenu:!0},{label:"Top Customers By Age",routerLink:"Reports/Sales_Report/Standard/Top_Customers/Top_Customers_By_Age",pageTitle:"Top Customers By Age",isNotTabOrSideMenu:!0},{label:"Top Customers By Gender",routerLink:"Reports/Sales_Report/Standard/Top_Customers/Top_Customers_By_Gender",pageTitle:"Top Customers By Gender",isNotTabOrSideMenu:!0},{label:"Last Purchase",routerLink:"Reports/Sales_Report/Standard/Top_Customers/By_Last_Purchase",pageTitle:"Last Purchase",isNotTabOrSideMenu:!0},{label:"Outlet",routerLink:"Reports/Sales_Report/Standard/Outlet_Performance",pageTitle:"Outlet Performance",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Outlet Group Performance",routerLink:"Reports/Sales_Report/Standard/Outlet_Performance/Outlet_Group_Performance",pageTitle:"Outlet Group Performance",isNotTabOrSideMenu:!0},{label:"Outlet Monthly Performance",routerLink:"Reports/Sales_Report/Standard/Compare/Outlet_Monthly_Perfomance",pageTitle:"Outlet Monthly Performance",isNotTabOrSideMenu:!0},{label:"Outlet Performance Chart",routerLink:"Reports/Sales_Report/Standard/Outlet_Performance/Outlet_Graphic",pageTitle:"Outlet Performance Chart",isNotTabOrSideMenu:!0},{label:"Compare",routerLink:"Reports/Sales_Report/Standard/Compare",pageTitle:"Sales Compare By Outlet",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Tag",routerLink:"Reports/Sales_Report/Standard/Sales_Order_Tag",pageTitle:"Group By Sales Order Tag",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Person",routerLink:"Reports/Sales_Report/Standard/Person",pageTitle:"Sales Person",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Sales Person Report By Outlet",routerLink:"Reports/Sales_Report/Standard/Person/Commission_Outlet",pageTitle:"Outlet Commission Report",isNotTabOrSideMenu:!0},{label:"Employee Commission Report",routerLink:"Reports/Sales_Report/Standard/Person/Commission_Report",pageTitle:"Person Commission Report",isNotTabOrSideMenu:!0},{label:"Employee Invoice Item Detail",routerLink:"Reports/Sales_Report/Standard/Person/Commission_Report/Commission_Report_Detail",pageTitle:"Person Commission Report",isNotTabOrSideMenu:!0},{label:"Sales Group",routerLink:"Reports/Sales_Report/Standard/Person/Sales_Group",pageTitle:"Sales Group Performance",isNotTabOrSideMenu:!0},{label:"Discount",routerLink:"Reports/Sales_Report/Standard/Discounted_Sales",pageTitle:"Discount",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Price",routerLink:"Reports/Sales_Report/Standard/Price_Analysis",pageTitle:"Price Analysis",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Brand",routerLink:"Reports/Sales_Report/Standard/Top_Brand",pageTitle:"Top Brand",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Top Brand Chart",routerLink:"Reports/Sales_Report/Standard/Top_Brand/Top_Brand_Chart",pageTitle:"Top Brand Chart",isNotTabOrSideMenu:!0},{label:"Brand Sales Analysis",routerLink:"Reports/Sales_Report/Standard/Top_Brand/Brand_Sales_Analysis",pageTitle:"Brand Sales Analysis",isNotTabOrSideMenu:!0},{label:"Peak",routerLink:"Reports/Sales_Report/Standard/Peak",pageTitle:"Peak Hour Chart",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Peak Hour Table",routerLink:"Reports/Sales_Report/Standard/Peak/Peak",pageTitle:"Peak Hour Table",isNotTabOrSideMenu:!0},{label:"Daily",routerLink:"Reports/Sales_Report/Standard/Daily",pageTitle:"Daily Sales Performance",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Daily Report",routerLink:"Reports/Sales_Report/Standard/Daily/Daily_Table",pageTitle:"Daily Report",isNotTabOrSideMenu:!0},{label:"Daily Quantity",routerLink:"Reports/Sales_Report/Standard/Daily/Daily_Quantity",pageTitle:"Daily Quantity",isNotTabOrSideMenu:!0},{label:"Monthly Sales Volume",routerLink:"Reports/Sales_Report/Standard/Daily/Daily_Quantity/Monthly",pageTitle:"Monthly Sales Volume",isNotTabOrSideMenu:!0},{label:"Monthly",routerLink:"Reports/Sales_Report/Standard/Monthly",pageTitle:"Monthly",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Monthly Report",routerLink:"Reports/Sales_Report/Standard/Monthly/Monthly_Table",pageTitle:"Monthly Report",isNotTabOrSideMenu:!0},{label:"Yearly",routerLink:"Reports/Sales_Report/Standard/Yearly",pageTitle:"Yearly",requiredRoles:[r.report.View,r.report.Advanced]},{label:"Monthly Sales Comparison",routerLink:"Reports/Sales_Report/Standard/Yearly/Comparison",pageTitle:"Monthly Sales Comparison",isNotTabOrSideMenu:!0}]},{headerTitle:"Group",menu:[]},{headerTitle:"Advanced",menu:[{label:"Tax Report",routerLink:"Reports/Sales_Report/Advanced/Tax_Report",pageTitle:"Tax Report"},{label:"Tax Report",routerLink:"Reports/Sales_Report/Advanced/Tax_Report/By_Outlet",pageTitle:"Tax Report by Outlet",isNotTabOrSideMenu:!0},{label:"Product Life Cycle",routerLink:"Reports/Sales_Report/Advanced/Product_Life_Cycle",pageTitle:"Product Life Cycle Report"},{label:"Product Profit",routerLink:"Reports/Sales_Report/Advanced/Product_Profit",pageTitle:"Product Profit Report"},{label:"Exchanged Sales",routerLink:"Reports/Sales_Report/Advanced/Exchanged_Sales",pageTitle:"Exchanged Sales"},{label:"Variant Model",routerLink:"Reports/Sales_Report/Advanced/Variant_Model_Rank",pageTitle:"Sales Rank By Variant Model"},{label:"Visitor",routerLink:"Reports/Sales_Report/Advanced/Visitor",pageTitle:"Visitor List"}]}]};returnSubMenu={headerTitle:"Return",menu:[{label:"Sales Return",routerLink:"Reports/Return/Sales_Return",pageTitle:"Sales Return"},{label:"Purchase Return",routerLink:"Reports/Return/Purchase_Return",pageTitle:"Purchase Return"}]};reportMenu=[];constructor(){this.role.buy.Report?this.reportMenu=[this.purchasesReportSubMenu,this.salesReportSubMenu,this.returnSubMenu]:this.reportMenu=[this.salesReportSubMenu,this.returnSubMenu]}static \u0275fac=function(t){return new(t||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var A=class o{report=T(F);_menu=[];constructor(){this._menu.Products=ce,this._menu.Shift=Te,this._menu.Payment=de,this._menu.Promotion=ge,this._menu.Outlets=pe,this._menu.Users=be,this._menu.Manufacture=se,this._menu.Fulfillment=ue,this._menu.Adjustment=ne,this._menu.Contacts=le,this._menu.Setup=me,this._menu.Orders=Se,this._menu.Debt=ye,this._menu.Inventory=Pe,this._menu.Logistics=ke,this._menu.Reports=this.report.reportMenu,this._menu.Prepaid_Package=Le,this._menu.Profile=_e,this._menu.Developer=Oe}static \u0275fac=function(t){return new(t||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var B=class o{role=T(I);menuService=T(A);getFullRouteMenu(){let e=window.location.href;return e=e.split("menu/")[1]}getCurrentMainMenu(){try{return this.getFullRouteMenu().split("/")[0].split("?")?.[0]}catch(e){console.log(e)}}getCurrentSubMenu(){try{return this.getFullRouteMenu().split("/")[1].replace("_"," ")}catch(e){console.log(e)}}getCurrentSubTitleMenu(){try{return this.getFullRouteMenu().split("/")[2].replace("_"," ")}catch(e){console.log(e)}}getPageMenu(){let e=["Sell","Dashboard","Estimate","Buy"],t=this.getCurrentMainMenu();if(e.includes(t)){let b=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName+" POS | "+t,m=this.getFullRouteMenu()?.split("?")[0];return L({H:t,N:[],T:b,R:m,U:[]})}else{let a=this.getCurrentSubMenu(),u=this.getCurrentSubTitleMenu(),m=this.menuService._menu[t],d=m.filter(i=>i.headerTitle==a)[0];d?.children!=null&&(d=d.children.filter(i=>i.headerTitle==u)[0]);let y=[];m.forEach(i=>{i.children==null?i.headerTitle!=a&&(y=y.concat(i)):y=y.concat(k(P({},i),{headerTitle:i.headerTitle,children:i.children.filter(n=>n.headerTitle!=u)}))});let Me=d.menu?.map(i=>k(P({},i),{T:i.label,U:i.routerLink,isNotTabOrSideMenu:i.isNotTabOrSideMenu,role:i.role})).filter(i=>!i.isNotTabOrSideMenu).filter(i=>!i.requiredRoles||i.requiredRoles.length===0?!0:i.requiredRoles.every(n=>this.role.isUserHasRole(n))),he=y.map(i=>i.children==null?{T:i.headerTitle,SI:i.menu?.map(n=>({T:n.label,U:n.routerLink,isNotTabOrSideMenu:n.isNotTabOrSideMenu,role:n.role})).filter(n=>!n.isNotTabOrSideMenu).filter(n=>!n.role||this.role.isUserHasRole(n.role))}:{T:i.headerTitle,SI:i.children.map(Q=>({T:Q.headerTitle,SI:Q.menu?.map(p=>({T:p.label,U:p.routerLink,isNotTabOrSideMenu:p.isNotTabOrSideMenu,role:p.role})).filter(p=>!p.isNotTabOrSideMenu).filter(p=>!p.role||this.role.isUserHasRole(p.role))}))}),x=this.getFullRouteMenu()?.includes("#")?this.getFullRouteMenu()?.split("#")[0]:this.getFullRouteMenu()?.split("?")[0],Re=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName+" POS | ",U=d.menu?.filter(i=>i.routerLink==x)[0]?.pageTitle;d.children!=null&&(U=d.children.filter(i=>i.routerLink==x)[0]?.pageTitle);let ve=Re+U;return L({H:U,ST:u,N:{TM:Me,SM:he},T:ve,R:x,U:[]})}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var fe=class o{constructor(e,t,a,u){this.http=e;this.matDialog=t;this.title=a;this.clientRoute=u}menu$;setMenu$(){let e=ee.changelog,t=this.getCurrentFormattedRoute();this.menu$=this.clientRoute.getPageMenu().pipe(h(a=>this.title.setTitle(a.T)),V(a=>Z.IsNotEmpty(e.find(u=>u?.UrlPage===a.R))?k(P({},a),{U:e}):a),K(a=>{let u=L(a);if(a.U.length>0){localStorage.getItem("mapRouteOpenChangelogDialog")||localStorage.setItem("mapRouteOpenChangelogDialog",JSON.stringify([]));let b=JSON.parse(localStorage.getItem("mapRouteOpenChangelogDialog")),m=t.split("?")[0];b.includes(m)||(b.push(m),localStorage.setItem("mapRouteOpenChangelogDialog",JSON.stringify(b)),u=this.matDialog.open(N,{panelClass:"changelog-dialog",data:a.U}).afterOpened().pipe(V(()=>a)))}return u}),$(()=>q))}getCurrentFormattedRoute(){try{let e=window.location.href;return e=e.split("menu/")[1],e=e.split(";")[0],e}catch(e){console.log(e)}}static \u0275fac=function(t){return new(t||o)(_(te),_(ie),_(X),_(B))};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};export{ae as a,fe as b};
@@ -1 +0,0 @@
1
- import{a as st,b as ft}from"./chunk-3ALHEPKV.js";import"./chunk-UGCO74DQ.js";import{a as mt}from"./chunk-IWUWV3MS.js";import{a as _t}from"./chunk-GHBBRGW2.js";import{a as ut}from"./chunk-DLNZDHGS.js";import"./chunk-5DQ4MJJT.js";import"./chunk-BYXBJQAS.js";import{a as $}from"./chunk-HL3ONSX6.js";import{d as dt,e as pt}from"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import{d as rt,e as lt}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as X}from"./chunk-GZ7UUU3F.js";import{f as ct}from"./chunk-4KLLS7S5.js";import{b as Z}from"./chunk-T2H2XAEJ.js";import"./chunk-LVC4ZU2C.js";import"./chunk-7DCWSNUN.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{a as et}from"./chunk-4QM23MMO.js";import{e as ot,f as at}from"./chunk-YLLLGS4S.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-3VKLSTEH.js";import{b as tt}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as K,c as U}from"./chunk-C4WJKF7R.js";import{N as nt,g as it}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as Y}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as z}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import{d as J}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{Ab as N,Bb as j,Bc as d,Cb as s,Cc as f,Db as o,Dc as x,Eb as n,Ed as R,Fb as w,Hc as q,Mb as P,Ob as h,Qb as c,Xa as i,Zd as H,db as T,dc as r,ec as D,ee as Q,fc as u,fd as W,hb as O,ic as g,jc as I,kc as S,lb as V,nb as E,od as A,rd as G,ta as v,tb as k,tc as b,ua as y,uc as B,vb as p,xb as m,yb as M}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],Ct=t=>({ID:t}),yt=()=>["/menu/Products/Catalog/Products/Info"];function Tt(t,l){if(t&1){let e=P();o(0,"button",11),h("click",function(){v(e);let a=c();return y(a.openExportModal())}),w(1,"i",12),r(2," Export "),n()}}function gt(t,l){if(t&1){let e=P();o(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),o(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(a){v(e);let C=c();return I(C.pageData.Filter.OutletGroupID,a)||(C.pageData.Filter.OutletGroupID=a),y(a)}),n(),o(4,"h6"),r(5,"Category"),n(),o(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(a){v(e);let C=c();return I(C.pageData.Filter.CategoryID,a)||(C.pageData.Filter.CategoryID=a),y(a)}),n(),o(7,"autocompleteV3",16),S("modelNameChange",function(a){v(e);let C=c();return I(C.pageData.Filter.ListProductID,a)||(C.pageData.Filter.ListProductID=a),y(a)}),n(),o(8,"h6"),r(9,"From - To"),n(),o(10,"div")(11,"datepicker",17),S("dateChange",function(a){v(e);let C=c();return I(C.pageData.Filter.From,a)||(C.pageData.Filter.From=a),y(a)}),n()(),o(12,"div",18)(13,"datepicker",19),S("dateChange",function(a){v(e);let C=c();return I(C.pageData.Filter.To,a)||(C.pageData.Filter.To=a),y(a)}),n()(),o(14,"h6"),r(15,"Inventory Type"),n(),o(16,"radio-options",20),S("modelChange",function(a){v(e);let C=c();return I(C.pageData.Filter.InventoryType,a)||(C.pageData.Filter.InventoryType=a),y(a)}),n()()}if(t&2){let e=c();i(3),s("showClear",!0),g("selectedOutletGroupID",e.pageData.Filter.OutletGroupID),i(3),g("selectedCategoryID",e.pageData.Filter.CategoryID),s("showClear",!0),i(),g("modelName",e.pageData.Filter.ListProductID),s("placeholder","Search Product")("isShowEmptyMessage",!0)("emptyMessage","No Product found")("tooltipMessage","Search by product name")("label","Product to Analyze")("listDataEndpoint","/api/ac/GetProductSuggestionByCodeNName")("valueField","Name"),i(4),s("isFloatingLabel",!1),g("date",e.pageData.Filter.From),s("hidelClearBtn",!0),i(2),s("isFloatingLabel",!1),g("date",e.pageData.Filter.To),s("hidelClearBtn",!0),i(3),g("model",e.pageData.Filter.InventoryType),s("options",e.pageData.Options.InventoryTypes)}}function It(t,l){t&1&&(o(0,"th",8),r(1,"Code"),n())}function St(t,l){t&1&&(o(0,"th",9)(1,"span",21),r(2," Start "),n()())}function Pt(t,l){t&1&&(o(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function ht(t,l){t&1&&(o(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function Ft(t,l){t&1&&(o(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Et(t,l){t&1&&(o(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function wt(t,l){t&1&&(o(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function Dt(t,l){t&1&&(o(0,"th",9)(1,"span",27),r(2," End "),n()())}function bt(t,l){t&1&&(o(0,"th",9)(1,"span",28),r(2," Now "),n()())}function Bt(t,l){t&1&&(o(0,"th",9)(1,"span",29),r(2," % "),n()())}function Lt(t,l){if(t&1&&(o(0,"td",31),r(1),n()),t&2){let e=c().$implicit;i(),u(" ",e.ProductCode," ")}}function Ot(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Start),i(),u(" ",f(2,2,e.Start)," ")}}function Vt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Bought)," ")}}function kt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Sold)," ")}}function Mt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredIn)," ")}}function Nt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredOut)," ")}}function jt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Adjustment),i(),u(" ",e.Adjustment<0?e.Adjustment*-1:f(2,2,e.Adjustment)," ")}}function qt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;s("colsFontColor",e.End),i(),u(" ",e.End," ")}}function Wt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Now),i(),u(" ",e.Now," ")}}function At(t,l){if(t&1&&(o(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.SellTransferInRate)," ")}}function Gt(t,l){if(t&1&&(o(0,"tr")(1,"td")(2,"a",30),r(3),n()(),o(4,"td")(5,"a",30),r(6),n()(),p(7,Lt,2,1,"td",31),p(8,Ot,3,4,"td",32),p(9,Vt,3,3,"td",33),p(10,kt,3,3,"td",34),p(11,Mt,3,3,"td",33),p(12,Nt,3,3,"td",34),p(13,jt,3,4,"td",32),p(14,qt,2,2,"td",32),p(15,Wt,2,2,"td",32),p(16,At,3,3,"td",31),n()),t&2){let e=l.$implicit,_=c(2);i(2),s("routerLink",b(16,vt))("queryParams",B(17,Ct,e.OutletID)),i(),u(" ",e.OutletName," "),i(2),s("routerLink",b(19,yt))("queryParams",B(20,Ct,e.ProductID)),i(),D(e.ProductName),i(),m(_.column.code.selected?7:-1),i(),m(_.column.start.selected?8:-1),i(),m(_.column.bought.selected?9:-1),i(),m(_.column.sold.selected?10:-1),i(),m(_.column.transferredIn.selected?11:-1),i(),m(_.column.transferredOut.selected?12:-1),i(),m(_.column.adjust.selected?13:-1),i(),m(_.column.end.selected?14:-1),i(),m(_.column.now.selected?15:-1),i(),m(_.column.percent.selected?16:-1)}}function Rt(t,l){if(t&1&&N(0,Gt,17,22,"tr",null,M),t&2){let e=c();j(e.infiniteList)}}function Ht(t,l){t&1&&(o(0,"tr")(1,"td",35),w(2,"app-empty-state"),n()())}function zt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Start"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Start"))," ")}}function Qt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"Bought"))," ")}}function Jt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"Sold"))," ")}}function Kt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"TransferredIn"))," ")}}function Ut(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"TransferredOut"))," ")}}function Xt(t,l){if(t&1&&(o(0,"td",38),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Adjustment"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Adjustment"))," ")}}function Yt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"End"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"End"))," ")}}function Zt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Now"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Now"))," ")}}function $t(t,l){if(t&1&&(o(0,"tfoot")(1,"tr",36)(2,"th",37),r(3," Total: "),n(),p(4,zt,6,12,"td",32),p(5,Qt,4,6,"td",33),p(6,Jt,4,6,"td",34),p(7,Kt,4,6,"td",33),p(8,Ut,4,6,"td",34),p(9,Xt,6,12,"td",38),p(10,Yt,6,12,"td",32),p(11,Zt,6,12,"td",32),n()()),t&2){let e=c();i(2),k("colspan",e.column.code.selected?3:2),i(2),m(e.column.start.selected?4:-1),i(),m(e.column.bought.selected?5:-1),i(),m(e.column.sold.selected?6:-1),i(),m(e.column.transferredIn.selected?7:-1),i(),m(e.column.transferredOut.selected?8:-1),i(),m(e.column.adjust.selected?9:-1),i(),m(e.column.end.selected?10:-1),i(),m(e.column.now.selected?11:-1)}}function te(t,l){if(t&1){let e=P();o(0,"span",45),h("click",function(){v(e);let a=c(2);return y(a.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),o(1,"i",46),r(2,"?"),n()()}}function ee(t,l){if(t&1&&(o(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),D(f(2,1,e.listTotal))}}function ie(t,l){if(t&1){let e=P();o(0,"div",10)(1,"div",39)(2,"div",40),r(3),d(4,"number"),E(5,te,3,0,"span",41)(6,ee,3,3,"span",42),r(7),n()(),o(8,"a",43),h("click",function(){v(e);let a=c();return y(a.NextPage(!0))}),w(9,"i",44),r(10," Next"),n()()}if(t&2){let e=c();i(3),u(" Showing 1 - ",f(4,4,e.infiniteList.length)," of "),i(2),s("ngIf",!e.pageData.HideStoreApiCount),i(),s("ngIf",e.pageData.HideStoreApiCount),i(),u(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var xt=class t extends X{constructor(e,_,a,C,L,F,ne){super(e,_,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=a;this.pageTitle=C;this.converter=L;this.roleService=F;this.matDialog=ne;this.pageTitle.setTitle(this.menuData.T)}column={code:{selected:!0,name:"Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!0,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!1,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open(Z,{data:{title:"Product Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportProductInventoryTraffic",Value:"Default",FileName:"Product Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}static \u0275fac=function(_){return new(_||t)(T(tt),T(Q),T(et),T(R),T(mt),T(J),T(Y))};static \u0275cmp=O({type:t,selectors:[["POS-product-inventory-traffic"]],features:[V],decls:31,vars:19,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","150px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","ProductTypeId",3,"modelChange","model","options"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","12"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"text-end","text-success",3,"colsFontColor"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(_,a){if(_&1){let C=P();o(0,"mainpanel-cmp",1),h("onSubmit",function(){return v(C),y(a.searchFromPageOne())}),S("filterChange",function(F){return v(C),I(a.pageData.Filter,F)||(a.pageData.Filter=F),y(F)}),o(1,"actions"),E(2,Tt,3,0,"button",2),n(),o(3,"filters"),E(4,gt,17,20,"ng-template",null,0,q),n(),o(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),o(14,"th"),r(15,"Product"),n(),p(16,It,2,0,"th",8),p(17,St,3,0,"th",9),p(18,Pt,3,0,"th",9),p(19,ht,3,0,"th",9),p(20,Ft,3,0,"th",9),p(21,Et,3,0,"th",9),p(22,wt,3,0,"th",9),p(23,Dt,3,0,"th",9),p(24,bt,3,0,"th",9),p(25,Bt,3,0,"th",9),n()(),o(26,"tbody"),p(27,Rt,2,0)(28,Ht,3,0,"tr"),n(),p(29,$t,12,9,"tfoot"),n()(),p(30,ie,11,6,"div",10),n()()()}_&2&&(s("pageData",a.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",a.pageData.Filter),s("column",a.column),i(2),s("ngIf",a.roleService.global.Export),i(14),m(a.column.code.selected?16:-1),i(),m(a.column.start.selected?17:-1),i(),m(a.column.bought.selected?18:-1),i(),m(a.column.sold.selected?19:-1),i(),m(a.column.transferredIn.selected?20:-1),i(),m(a.column.transferredOut.selected?21:-1),i(),m(a.column.adjust.selected?22:-1),i(),m(a.column.end.selected?23:-1),i(),m(a.column.now.selected?24:-1),i(),m(a.column.percent.selected?25:-1),i(2),m(a.infiniteList&&a.infiniteList.length>0?27:28),i(2),m(a.infiniteList&&a.infiniteList.length>0?29:-1),i(),m(a.infiniteList&&a.infiniteList.length>0?30:-1))},dependencies:[at,ot,G,W,z,_t,ct,st,nt,H,pt,dt,lt,rt,ut,ft,U,K,A,it,$],encapsulation:2})};export{xt as Product_Inventory_TrafficComponent};
@@ -1 +0,0 @@
1
- import{a as L,c as q}from"./chunk-KKLNFVVN.js";import{F as O,G as W,c as j,h as B,o as H}from"./chunk-RNLSEEMX.js";import{Bc as V,Ca as w,Cb as s,Cc as k,Db as o,Eb as l,Fb as f,Mb as g,Ob as x,Qb as p,Xa as a,Ya as _,db as N,dc as m,ec as S,ee as J,fc as F,fd as M,gc as b,hb as h,ib as D,ic as A,jc as I,kc as T,ma as P,nb as C,od as E,rd as R,ta as u,ua as c,vb as v,xb as y}from"./chunk-JYZTRN6N.js";function K(t,i){if(t&1&&(o(0,"span"),m(1),l()),t&2){let e=p();a(),b(" Showing ",e.pageData.Filter.PageNumber*e.total-e.total+1," - ",e.pageData.Filter.PageNumber*e.total," ")}}function Q(t,i){if(t&1&&(o(0,"span"),m(1),l()),t&2){let e=p();a(),b(" Showing ",e.pageData.Filter.RowCount*e.pageData.Filter.PageNumber-e.pageData.Filter.RowCount+1," - ",e.pageData.Filter.RowCount*e.pageData.Filter.PageNumber-e.pageData.Filter.RowCount+e.total," ")}}function U(t,i){if(t&1){let e=g();o(0,"span",8),x("click",function(){u(e);let r=p();return c(r.StoreRowsCountAPIResult())}),o(1,"i",9),m(2,"?"),l()()}}function X(t,i){if(t&1&&(o(0,"span"),m(1),V(2,"number"),l()),t&2){let e=p();a(),S(k(2,1,e.totalAllData()))}}function Y(t,i){if(t&1){let e=g();m(0," Page "),o(1,"input",10),x("keyup",function(r){u(e);let d=p();return c(d.onJumpToPage(r))}),T("ngModelChange",function(r){u(e);let d=p();return I(d.pageNumber,r)||(d.pageNumber=r),c(r)}),l()}if(t&2){let e=p();a(),A("ngModel",e.pageNumber)}}function Z(t,i){if(t&1&&m(0),t&2){let e=p();F(" ",e.pageNumber," Page ")}}function $(t,i){if(t&1){let e=g();o(0,"a",11),x("click",function(){u(e);let r=p();return c(r.onPreviousPage())}),f(1,"i",12),m(2," Previous"),l()}}function ee(t,i){if(t&1){let e=g();o(0,"a",11),x("click",function(){u(e);let r=p();return c(r.onNextPage())}),f(1,"i",13),m(2," Next"),l()}}var z=class t{constructor(i){this.httpService=i}editPageNumber=!0;pageData;total;api;nextButtonAlwaysVisible=!1;jumpToPage=new _;previousPage=new _;nextPage=new _;set _totalAllData(i){this.totalAllData.set(i)}totalAllData=w(-1);pageNumber=1;showingNumber=this.pageNumber;onJumpToPage(i){i.key==="Enter"&&(this.pageData.Filter.PageNumber=this.pageNumber,this.showingNumber=this.pageNumber,this.jumpToPage.emit())}onPreviousPage(){this.pageData.Filter.PageNumber-=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.previousPage.emit()}onNextPage(){this.pageData.Filter.PageNumber+=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.nextPage.emit()}StoreRowsCountAPIResult(){this.httpService.post("/api/"+this.api,this.pageData.Filter).subscribe(i=>{this.totalAllData.set(i.Count?i.Count:i)})}static \u0275fac=function(e){return new(e||t)(N(J))};static \u0275cmp=h({type:t,selectors:[["POS-complex-pagination"]],inputs:{editPageNumber:"editPageNumber",pageData:"pageData",total:"total",api:"api",nextButtonAlwaysVisible:"nextButtonAlwaysVisible",_totalAllData:[0,"totalAllData","_totalAllData"]},outputs:{jumpToPage:"jumpToPage",previousPage:"previousPage",nextPage:"nextPage"},standalone:!1,decls:15,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],[4,"ngIf"],[1,"me-2"],["style","cursor: pointer",3,"click",4,"ngIf"],[1,"btn-group"],["class","btn btn-outline-secondary btn-sm text-primary",3,"click",4,"ngIf"],[2,"cursor","pointer",3,"click"],[1,"border","p-3"],["type","text","autoNum","",1,"text-end",2,"width","45px",3,"keyup","ngModelChange","ngModel"],[1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-left"],[1,"fa-solid","fa-arrow-right"]],template:function(e,n){e&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),C(3,K,2,2,"span",3)(4,Q,2,2,"span",3),o(5,"span",4),m(6,"of"),l(),C(7,U,3,0,"span",5)(8,X,3,3,"span",3),m(9," records ~ "),v(10,Y,2,1)(11,Z,1,1),l()(),o(12,"div",6),C(13,$,3,0,"a",7)(14,ee,3,0,"a",7),l()()),e&2&&(a(3),s("ngIf",n.pageData.Filter.RowCount==n.total),a(),s("ngIf",n.pageData.Filter.RowCount!=n.total),a(3),s("ngIf",n.totalAllData()==-1),a(),s("ngIf",n.totalAllData()>0),a(2),y(n.editPageNumber?10:11),a(3),s("ngIf",n.pageData.Filter.PageNumber!=1),a(),s("ngIf",n.total>=n.pageData.Filter.RowCount||n.nextButtonAlwaysVisible))},dependencies:[M,j,B,H,q,E],encapsulation:2})},G=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=D({type:t});static \u0275inj=P({imports:[R,O,W,L]})};export{z as a,G as b};
@@ -1 +0,0 @@
1
- import{a as Ce}from"./chunk-PJCGIZLH.js";import{a as ge}from"./chunk-BCUIYEEN.js";import"./chunk-DLNZDHGS.js";import"./chunk-BYXBJQAS.js";import{a as te}from"./chunk-XA4TVPAS.js";import{d as ue,e as _e}from"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import{d as pe,e as me}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as se,b as ce}from"./chunk-I3ABVEQL.js";import{c as de}from"./chunk-EHJXCRPX.js";import{b as ee}from"./chunk-T2H2XAEJ.js";import{a as Z}from"./chunk-LVC4ZU2C.js";import"./chunk-7DCWSNUN.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{e as ae,f as le}from"./chunk-YLLLGS4S.js";import"./chunk-S3K63CGI.js";import"./chunk-JEL3OND6.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-3VKLSTEH.js";import{b as ie}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{F as oe,G as re}from"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{O as ne}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as $}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as Q,c as z,h as K,o as J}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import{d as Y}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{$d as G,Ab as O,Bb as L,Bc as f,Ca as H,Cb as u,Cc as I,Db as t,Dc as w,Eb as i,Fb as N,Hc as U,Mb as P,Ob as h,Qb as d,Xa as a,Zd as q,cc as k,db as M,dc as l,ec as S,ee as X,fc as D,fd as B,hb as T,ic as C,jc as x,kc as y,lb as V,md as R,nb as E,od as A,pa as F,rd as j,ta as s,tc as W,ua as c,uc as v,vb as _,xb as g,yb as b}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var xe=o=>({ID:o}),fe=()=>["/menu/Contacts/Contact/Customers/Info"],Pe=o=>({"text-danger":o});function Se(o,m){if(o&1){let e=P();t(0,"button",15),h("click",function(){s(e);let n=d();return c(n.openExportModal())}),N(1,"i",16),l(2," Export "),i()}}function De(o,m){if(o&1){let e=P();t(0,"h6"),l(1,"User"),i(),t(2,"autocompleteV2",27),y("ngModelChange",function(n){s(e);let p=d(2);return x(p.pageData.Filter.UserID,n)||(p.pageData.Filter.UserID=n),c(n)}),i()}if(o&2){let e=d(2);a(2),C("ngModel",e.pageData.Filter.UserID)}}function he(o,m){if(o&1){let e=P();t(0,"div",17)(1,"h6"),l(2,"Outlets"),i(),t(3,"outlet-selector",18),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.ListOutletID,n)||(p.pageData.Filter.ListOutletID=n),c(n)}),i(),t(4,"h6"),l(5,"Customer"),i(),t(6,"autocompleteV2",19),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.CustomerID,n)||(p.pageData.Filter.CustomerID=n),c(n)}),i(),t(7,"h6"),l(8,"From - To"),i(),t(9,"div",20)(10,"div",21)(11,"datepicker",22),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.From,n)||(p.pageData.Filter.From=n),c(n)}),i()(),t(12,"div",23)(13,"datepicker",24),y("dateChange",function(n){s(e);let p=d();return x(p.pageData.Filter.To,n)||(p.pageData.Filter.To=n),c(n)}),i()()(),t(14,"h6"),l(15,"Printed"),i(),t(16,"radio-options",25),y("modelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.Printed,n)||(p.pageData.Filter.Printed=n),c(n)}),i(),_(17,De,3,1),t(18,"h6"),l(19,"Page Size"),i(),t(20,"div")(21,"input",26),y("ngModelChange",function(n){s(e);let p=d();return x(p.pageData.Filter.RowCount,n)||(p.pageData.Filter.RowCount=n),c(n)}),i()()()}if(o&2){let e=d();a(3),C("ngModel",e.pageData.Filter.ListOutletID),u("multiple",!0),a(3),C("ngModel",e.pageData.Filter.CustomerID),a(5),u("isFloatingLabel",!1),C("date",e.pageData.Filter.From),a(2),u("isFloatingLabel",!1),C("date",e.pageData.Filter.To),a(3),C("model",e.pageData.Filter.Printed),u("options",e.pageData.Options.PrintedOptions),a(),g(e.pageData.Filter.Printed!==0?17:-1),a(4),C("ngModel",e.pageData.Filter.RowCount)}}function we(o,m){o&1&&(t(0,"th",10),l(1,"Print By"),i())}function ve(o,m){o&1&&(t(0,"th",8),l(1,"Print Date"),i())}function Fe(o,m){o&1&&(t(0,"th",11),l(1,"Time"),i())}function Me(o,m){if(o&1&&(t(0,"td"),l(1),i()),o&2){let e=d().$implicit;a(),S(e.CreatorName)}}function Ee(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"dd MMM yyyy")," ")}}function Ie(o,m){if(o&1&&(t(0,"td"),l(1),f(2,"date"),i()),o&2){let e=d().$implicit;a(),D(" ",e.Created==="0001-01-01T00:00:00"?"":w(2,1,e.Created,"HH:mm")," ")}}function He(o,m){if(o&1&&(t(0,"td",32),l(1),f(2,"amountFraction"),i()),o&2){let e=d().$implicit;k(v(5,Pe,e.InvoiceAmount<0)),a(),D(" ",I(2,3,e.InvoiceAmount)," ")}}function Te(o,m){if(o&1){let e=P();t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"a",28),l(5),i()(),t(6,"td")(7,"a",29),l(8),i()(),t(9,"td"),l(10),f(11,"date"),i(),t(12,"td"),l(13),f(14,"date"),i(),_(15,Me,2,1,"td"),_(16,Ee,3,4,"td"),_(17,Ie,3,4,"td"),E(18,He,3,7,"td",30),t(19,"td",31),h("click",function(){let n=s(e).$implicit,p=d();return c(p.onInvoiceCountClick(n))}),l(20),f(21,"number"),i()()}if(o&2){let e=m.$implicit,r=d();a(2),S(e.EntityName),a(2),u("queryParams",v(21,xe,e.InvoiceID)),a(),S(e.Number),a(2),u("routerLink",W(23,fe))("queryParams",v(24,xe,e.CustomerID)),a(),D(" ",e.CustomerName," "),a(2),S(w(11,13,e.InvoiceDate,"dd MMM yyyy")),a(3),S(w(14,16,e.InvoiceDueDate,"dd MMM")),a(2),g(r.isNotUnprintedOnly()?15:-1),a(),g(r.isNotUnprintedOnly()?16:-1),a(),g(r.isNotUnprintedOnly()?17:-1),a(),u("ngIf",r.roleService.sell.PriceVisible),a(2),D(" ",I(21,19,e.Count)," ")}}var ye=class o extends Z{roleService=F(Y);dialog=F($);isNotUnprintedOnly=H(!0);constructor(m,e){super(m,e,"invoice/GetPrintHistoryList","invoiceLoader/GetPrintHistoryList")}openExportModal(){this.pageData.Filter.Export=!0,this.dialog.open(ee,{data:{title:"Print History",exportTypes:[{ID:"invoice/GetPrintHistoryList",Value:"Default",FileName:"Print History"}],filterExport:this.pageData.Filter,pagination:!0}}).afterClosed().subscribe(()=>{this.pageData.Filter.Export=!1})}onSubmit(){let m=this.pageData.Filter.Printed!==0;this.isNotUnprintedOnly.set(m),this.getListData()}onInvoiceCountClick(m){let e=`${ne.InvoicePrintHistory}/${m.InvoiceID}`;this.httpService.get(e).subscribe(r=>{this.dialog.open(Ce,{data:r?.Data})})}static \u0275fac=function(e){return new(e||o)(M(ie),M(X))};static \u0275cmp=T({type:o,selectors:[["app-print-history"]],features:[V],decls:32,vars:10,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-5"],["matSort","",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","130px"],[2,"width","150px"],[2,"width","100px"],[2,"width","90px"],[2,"width","80px"],[2,"width","30px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","30px"],[3,"jumpToPage","previousPage","nextPage","total","totalAllData","pageData"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[3,"ngModelChange","ngModel","multiple"],["name","Key","requestUrl","/API/AC/GetCustomerSuggestion","placeholder","Search Customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],[1,"row"],[1,"col-6","pe-2"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"col-6","ps-2"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"modelChange","model","options"],["type","text","placeholder","Page Size","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["requestUrl","/API/AC/GetUserSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["routerLink","/menu/Orders/Orders/Customer_Invoice/Info",1,"link-primary","cursor-pointer",3,"queryParams"],[1,"link-primary","cursor-pointer",3,"routerLink","queryParams"],["class","text-end",3,"class",4,"ngIf"],[1,"cursor-pointer","text-end","link-primary",3,"click"],[1,"text-end"]],template:function(e,r){if(e&1){let n=P();t(0,"mainpanel-cmp",1),h("onSubmit",function(){return s(n),c(r.onSubmit())}),t(1,"actions"),_(2,Se,3,0,"button",2),i(),t(3,"filters"),E(4,he,22,11,"ng-template",null,0,U),i(),t(6,"content")(7,"div",3)(8,"table",4)(9,"thead",5)(10,"tr")(11,"th",6),l(12,"Outlet"),i(),t(13,"th",7),l(14,"Number"),i(),t(15,"th"),l(16,"Customer"),i(),t(17,"th",8),l(18,"Date"),i(),t(19,"th",9),l(20,"Due"),i(),_(21,we,2,0,"th",10),_(22,ve,2,0,"th",8),_(23,Fe,2,0,"th",11),t(24,"th",12),l(25,"Amount"),i(),t(26,"th",13),l(27,"Count"),i()()(),t(28,"tbody"),O(29,Te,22,26,"tr",null,b),i()(),t(31,"POS-complex-pagination",14),h("jumpToPage",function(){return s(n),c(r.getListData())})("previousPage",function(){return s(n),c(r.getListData())})("nextPage",function(){return s(n),c(r.getListData())}),i()()()()}e&2&&(u("pageData",r.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),a(2),g(r.roleService.global.Export?2:-1),a(19),g(r.isNotUnprintedOnly()?21:-1),a(),g(r.isNotUnprintedOnly()?22:-1),a(),g(r.isNotUnprintedOnly()?23:-1),a(6),L(r.data==null?null:r.data.Data),a(2),u("total",r.data==null||r.data.Data==null?null:r.data.Data.length)("totalAllData",r.data==null?null:r.data.ListTotal)("pageData",r.pageData))},dependencies:[j,B,le,ae,de,Q,z,K,J,_e,ue,ce,se,ge,G,q,re,oe,me,pe,A,R,te],encapsulation:2})};export{ye as PrintHistoryComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-37E4SNZ3.js";import"./chunk-NJIOGT5G.js";import"./chunk-QFWPOP7L.js";import"./chunk-MVUVDYGQ.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-CBSYYTXQ.js";import"./chunk-YLLLGS4S.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-KKLNFVVN.js";import"./chunk-3VKLSTEH.js";import"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as SensitiveFieldComponent};