dealpos 25.50.4 → 25.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/browser/{chunk-TZGHU6I5.js → chunk-243EB36Y.js} +2 -2
  2. package/browser/{chunk-HGSF7LOB.js → chunk-27OXTS7Y.js} +1 -1
  3. package/browser/{chunk-BRNU2JXC.js → chunk-2MAOKHWO.js} +1 -1
  4. package/browser/{chunk-KVMBRL53.js → chunk-2WSP3Y6V.js} +1 -1
  5. package/browser/{chunk-HWPSC7RE.js → chunk-3DL5OLEL.js} +1 -1
  6. package/browser/{chunk-CFWHBIM3.js → chunk-3DUSH3ND.js} +1 -1
  7. package/browser/{chunk-NOYC5PIT.js → chunk-3FS7DBBR.js} +1 -1
  8. package/browser/{chunk-2BO3IFU3.js → chunk-3K2A4Z67.js} +1 -1
  9. package/browser/chunk-3M5FKEPW.js +1 -0
  10. package/browser/{chunk-O2VVATBW.js → chunk-3MAZIRSX.js} +1 -1
  11. package/browser/{chunk-PHH2AA3W.js → chunk-3Q5WV3VF.js} +1 -1
  12. package/browser/{chunk-ZMJLTU5O.js → chunk-3XH2STFE.js} +1 -1
  13. package/browser/{chunk-26YFRPR2.js → chunk-3ZH3XK5V.js} +1 -1
  14. package/browser/{chunk-MLBTUOHX.js → chunk-4467AQLM.js} +1 -1
  15. package/browser/{chunk-2MPRVJXH.js → chunk-4HJHXVYF.js} +1 -1
  16. package/browser/{chunk-S7FOJJP2.js → chunk-4HLKKTIV.js} +1 -1
  17. package/browser/{chunk-MNJSQKLX.js → chunk-4L4MSVOU.js} +1 -1
  18. package/browser/{chunk-NFOJONR6.js → chunk-4OP4E5Q4.js} +1 -1
  19. package/browser/{chunk-OP66LK4H.js → chunk-4PDGY62B.js} +1 -1
  20. package/browser/chunk-54SK3PVO.js +1 -0
  21. package/browser/{chunk-3NPCLTJT.js → chunk-55Z32OLJ.js} +1 -1
  22. package/browser/{chunk-TXJJUZ26.js → chunk-5PDQ5UNO.js} +1 -1
  23. package/browser/{chunk-FW4OCSXV.js → chunk-5RFSSCAR.js} +1 -1
  24. package/browser/{chunk-36GWLMZX.js → chunk-5RYL4EJ2.js} +1 -1
  25. package/browser/{chunk-B36P4U32.js → chunk-5VYU6SHE.js} +1 -1
  26. package/browser/{chunk-KZG64H5Q.js → chunk-5XTMPVSF.js} +1 -1
  27. package/browser/chunk-5YBSS4EL.js +21 -0
  28. package/browser/{chunk-DC3TCY6D.js → chunk-6G7LPAEQ.js} +1 -1
  29. package/browser/{chunk-7F4QLFQQ.js → chunk-6I2YT4SH.js} +1 -1
  30. package/browser/{chunk-RQFU4YVM.js → chunk-6OULAYGH.js} +1 -1
  31. package/browser/{chunk-QMOYHBVM.js → chunk-6VYP636I.js} +1 -1
  32. package/browser/{chunk-OXWQ7ZZS.js → chunk-6WMEGLEF.js} +1 -1
  33. package/browser/{chunk-D7DUI5NF.js → chunk-6XNP4ZXB.js} +1 -1
  34. package/browser/{chunk-YSRJI33K.js → chunk-7264OPXA.js} +1 -1
  35. package/browser/chunk-735YXRQB.js +1 -0
  36. package/browser/{chunk-OYGBAHVX.js → chunk-73ADHCC2.js} +1 -1
  37. package/browser/{chunk-QZZ2NRA3.js → chunk-75FYOZH7.js} +1 -1
  38. package/browser/{chunk-CCD6EYWH.js → chunk-76CUXDTU.js} +1 -1
  39. package/browser/{chunk-DWZ5JTI2.js → chunk-7MRUPBXU.js} +1 -1
  40. package/browser/{chunk-QVKXQ4BK.js → chunk-7OQXKVTC.js} +16 -16
  41. package/browser/{chunk-KZFNI67M.js → chunk-7YYWBCWJ.js} +1 -1
  42. package/browser/{chunk-QI7I46MV.js → chunk-A7C35XPM.js} +1 -1
  43. package/browser/{chunk-W3PBP3KZ.js → chunk-AB7O2ERM.js} +1 -1
  44. package/browser/{chunk-ILTEBIEO.js → chunk-ABOSNV75.js} +1 -1
  45. package/browser/{chunk-AQW4VS3Y.js → chunk-ACXQ2FOW.js} +1 -1
  46. package/browser/{chunk-WMZLH4YK.js → chunk-AHTR7XKG.js} +1 -1
  47. package/browser/{chunk-XTCEZONP.js → chunk-AJAUI7BA.js} +1 -1
  48. package/browser/{chunk-6C2HPRJZ.js → chunk-AQKJ3LSN.js} +1 -1
  49. package/browser/{chunk-RESN2GAB.js → chunk-ARAUAPQU.js} +1 -1
  50. package/browser/{chunk-3HZIDGPN.js → chunk-AXCTEREY.js} +1 -1
  51. package/browser/{chunk-SIQZO2WM.js → chunk-B4TZQBTN.js} +1 -1
  52. package/browser/{chunk-BT7NN7PT.js → chunk-BAXZ74LK.js} +1 -1
  53. package/browser/{chunk-AKRUT4XG.js → chunk-BCGNQKO5.js} +2 -2
  54. package/browser/{chunk-KB4247J2.js → chunk-BHQZXJKQ.js} +1 -1
  55. package/browser/{chunk-MHD5SGI2.js → chunk-BRQVQGLJ.js} +1 -1
  56. package/browser/{chunk-IBGFKSEC.js → chunk-BWVEZ3MZ.js} +1 -1
  57. package/browser/{chunk-RSNEHVIM.js → chunk-C22G4JGX.js} +1 -1
  58. package/browser/{chunk-WWWSD2MX.js → chunk-CAGFIP4G.js} +1 -1
  59. package/browser/{chunk-4BXCIT62.js → chunk-CCIHCGP5.js} +1 -1
  60. package/browser/{chunk-FQZELIHB.js → chunk-CERE2LBX.js} +1 -1
  61. package/browser/{chunk-MLEUJB3A.js → chunk-CJ4ET4PG.js} +1 -1
  62. package/browser/{chunk-O4RWYZYV.js → chunk-CR5CHTI7.js} +1 -1
  63. package/browser/{chunk-FAED643P.js → chunk-CVN6ZXXJ.js} +1 -1
  64. package/browser/{chunk-BYTV42NJ.js → chunk-D6HBPIFD.js} +1 -1
  65. package/browser/chunk-DAH4EEQV.js +149 -0
  66. package/browser/{chunk-E4VY3BC3.js → chunk-DBRZ7F2Z.js} +1 -1
  67. package/browser/{chunk-TYE7PH3R.js → chunk-DIWYKKLA.js} +1 -1
  68. package/browser/{chunk-2LKYW2KM.js → chunk-DNY4JYTC.js} +1 -1
  69. package/browser/{chunk-GWKBJZYT.js → chunk-DODZXMH2.js} +1 -1
  70. package/browser/{chunk-GTPQNPNO.js → chunk-DSXOFWO7.js} +1 -1
  71. package/browser/{chunk-VVYRPW2Y.js → chunk-E4AXPU4U.js} +1 -1
  72. package/browser/{chunk-Y7QIF2WS.js → chunk-E5TUY2II.js} +1 -1
  73. package/browser/{chunk-R2GUMKAU.js → chunk-E634BI4W.js} +1 -1
  74. package/browser/{chunk-DDWKAORH.js → chunk-EFDMYOLZ.js} +2 -2
  75. package/browser/{chunk-C2NCV7VC.js → chunk-EMH25BNO.js} +1 -1
  76. package/browser/{chunk-NVOIIOWN.js → chunk-EMHEIQNS.js} +1 -1
  77. package/browser/{chunk-TCUCRGQD.js → chunk-EXFA6B6P.js} +1 -1
  78. package/browser/{chunk-B5IABJO5.js → chunk-EZNBK62W.js} +3 -3
  79. package/browser/chunk-F3HDP5CA.js +1 -0
  80. package/browser/{chunk-IFIH2CE2.js → chunk-F6LSMAF4.js} +1 -1
  81. package/browser/{chunk-BKTC6IB2.js → chunk-FEHMPX43.js} +1 -1
  82. package/browser/{chunk-ESDXMFGP.js → chunk-FINTUPRM.js} +1 -1
  83. package/browser/{chunk-D4FCXEV4.js → chunk-FM7BHGBW.js} +1 -1
  84. package/browser/{chunk-VZUPDSBH.js → chunk-FMEMQRBJ.js} +1 -1
  85. package/browser/chunk-FVFTYYCC.js +4 -0
  86. package/browser/{chunk-A565EUMD.js → chunk-FVNQ7SQY.js} +1 -1
  87. package/browser/{chunk-X44CHNHS.js → chunk-FZQE7J2C.js} +1 -1
  88. package/browser/{chunk-HSIXOQO7.js → chunk-G7L6AVIG.js} +1 -1
  89. package/browser/{chunk-23VPQAH7.js → chunk-GE5I6JYL.js} +1 -1
  90. package/browser/{chunk-DTVCBHPA.js → chunk-GFSJZHCB.js} +1 -1
  91. package/browser/{chunk-QPAUI5EG.js → chunk-GXAF3JUO.js} +1 -1
  92. package/browser/chunk-GZ6OVEDL.js +380 -0
  93. package/browser/{chunk-7AZJVR4Y.js → chunk-H6RHVRGW.js} +1 -1
  94. package/browser/{chunk-4XJWQAS6.js → chunk-HAXEFEKW.js} +1 -1
  95. package/browser/{chunk-7Q672H4P.js → chunk-HLCZLXPS.js} +1 -1
  96. package/browser/{chunk-FPRM3L6U.js → chunk-HYCKETL4.js} +1 -1
  97. package/browser/{chunk-4OEDK7YE.js → chunk-IDJEXQ5I.js} +1 -1
  98. package/browser/{chunk-XMZLK7EB.js → chunk-IDOUPEKS.js} +1 -1
  99. package/browser/{chunk-H74MLHRV.js → chunk-IET73YWA.js} +1 -1
  100. package/browser/{chunk-VKWSK452.js → chunk-IEX7S7T7.js} +1 -1
  101. package/browser/{chunk-AXUSK4R7.js → chunk-IF6EZMOM.js} +3 -3
  102. package/browser/chunk-IKSROKD5.css +1 -0
  103. package/browser/chunk-ISZRZRCT.js +3 -0
  104. package/browser/{chunk-WM2DGNWH.js → chunk-ITTFNOLB.js} +1 -1
  105. package/browser/{chunk-JXXYVM7W.js → chunk-IZF7S2RF.js} +1 -1
  106. package/browser/{chunk-C3STDN73.js → chunk-JEZMYDZR.js} +1 -1
  107. package/browser/{chunk-QHXZVGLB.js → chunk-JHBK7LOJ.js} +7 -7
  108. package/browser/{chunk-T4MU3R7Y.js → chunk-JIRDK6TJ.js} +1 -1
  109. package/browser/chunk-JOLAOKHD.js +21 -0
  110. package/browser/{chunk-6WATOQG3.js → chunk-JQDS4BXR.js} +1 -1
  111. package/browser/{chunk-J6M7UWVR.js → chunk-JT4M6AIA.js} +1 -1
  112. package/browser/{chunk-USD2ALDX.js → chunk-K355XAWO.js} +1 -1
  113. package/browser/{chunk-WFQIMZGL.js → chunk-KBLVOO4J.js} +1 -1
  114. package/browser/{chunk-VDZXLRMK.js → chunk-KDISSQKT.js} +1 -1
  115. package/browser/{chunk-XFGPCEKV.js → chunk-KFC3V2GW.js} +1 -1
  116. package/browser/{chunk-FHB5KLDR.js → chunk-KFOEUAQT.js} +1 -1
  117. package/browser/{chunk-3TWVKV7J.js → chunk-KHB5Q7IN.js} +1 -1
  118. package/browser/{chunk-W2HVYAUB.js → chunk-KIYO2YC2.js} +1 -1
  119. package/browser/{chunk-VX7AVGUY.js → chunk-KKM7I2BT.js} +1 -1
  120. package/browser/chunk-KOZYTEZI.js +1 -0
  121. package/browser/{chunk-KUG5VVV4.js → chunk-KRBFME4B.js} +1 -1
  122. package/browser/chunk-L3U6V3BF.js +5 -0
  123. package/browser/{chunk-45E6XCHN.js → chunk-LB5UXGDG.js} +1 -1
  124. package/browser/{chunk-NM3IQUNN.js → chunk-LGD5WUG2.js} +1 -1
  125. package/browser/{chunk-X5XDXZ47.js → chunk-LHTHIOAY.js} +1 -1
  126. package/browser/{chunk-M4EQZHIE.js → chunk-LKVUZZ5J.js} +1 -1
  127. package/browser/{chunk-4ZITX27A.js → chunk-LMUFX64W.js} +1 -1
  128. package/browser/{chunk-DWYMJ5NO.js → chunk-M4FNFZNJ.js} +1 -1
  129. package/browser/{chunk-D55YCZRM.js → chunk-MEL6Z4NI.js} +1 -1
  130. package/browser/{chunk-IA5RDP6C.js → chunk-MHPLYS7O.js} +1 -1
  131. package/browser/{chunk-45Z7RKI2.js → chunk-MJCLLJBB.js} +2 -2
  132. package/browser/{chunk-53VS5DA7.js → chunk-MM4IJDHI.js} +1 -1
  133. package/browser/{chunk-LNDHYAFW.js → chunk-MWGICBEB.js} +1 -1
  134. package/browser/{chunk-UEN2SKB2.js → chunk-MZDVGN2B.js} +1 -1
  135. package/browser/{chunk-ZTD4APMR.js → chunk-N5RDRDT7.js} +1 -1
  136. package/browser/{chunk-7P3L3ODB.js → chunk-N7OS7SFI.js} +1 -1
  137. package/browser/{chunk-RACYAEOL.js → chunk-NFWYR26Q.js} +1 -1
  138. package/browser/{chunk-S27D5MBU.js → chunk-NJ4KEQKH.js} +1 -1
  139. package/browser/{chunk-72RZBOHX.js → chunk-NS6IC2PT.js} +1 -1
  140. package/browser/{chunk-QIQOKWUA.js → chunk-NYMHQHNP.js} +1 -1
  141. package/browser/{chunk-BNNKSBQ6.js → chunk-O22HDFH6.js} +1 -1
  142. package/browser/{chunk-L7NMU3EE.js → chunk-O7SYLGUB.js} +2 -2
  143. package/browser/{chunk-7YUPYNWQ.js → chunk-OB6KFXD6.js} +2 -2
  144. package/browser/{chunk-5ZD6KTDH.js → chunk-ODYEJFNJ.js} +1 -1
  145. package/browser/{chunk-EHXF34TI.js → chunk-OEOAWKXA.js} +1 -1
  146. package/browser/chunk-OF3BZHBQ.js +1 -0
  147. package/browser/{chunk-VGTN2T5K.js → chunk-OFWJY5WB.js} +1 -1
  148. package/browser/{chunk-SXYJ7APZ.js → chunk-ORTAUDOX.js} +1 -1
  149. package/browser/{chunk-TSH564VU.js → chunk-OUJXEQKL.js} +1 -1
  150. package/browser/{chunk-PRVQ3NAP.js → chunk-P3TFDLWR.js} +2 -2
  151. package/browser/{chunk-COA4UL2V.js → chunk-P7KMHPVN.js} +1 -1
  152. package/browser/{chunk-7JULWG2B.js → chunk-PCRUTQ3T.js} +1 -1
  153. package/browser/{chunk-T7XU5W5A.js → chunk-PNFJVQUF.js} +1 -1
  154. package/browser/{chunk-WKM2QOAU.js → chunk-PSFQWURP.js} +1 -1
  155. package/browser/{chunk-Q6APDC4Z.js → chunk-PSLGWGNP.js} +1 -1
  156. package/browser/{chunk-ERE6AE7H.js → chunk-Q22HR52N.js} +1 -1
  157. package/browser/{chunk-WJXKZZS2.js → chunk-QEL7CGCP.js} +1 -1
  158. package/browser/{chunk-M5R2CYXH.js → chunk-QHGZQ2IG.js} +1 -1
  159. package/browser/{chunk-2CL5FM3P.js → chunk-QJ3CWKQT.js} +1 -1
  160. package/browser/{chunk-PS7477UG.js → chunk-QLSGGWTW.js} +1 -1
  161. package/browser/{chunk-TEGIL5RZ.js → chunk-QWLNF7VL.js} +1 -1
  162. package/browser/chunk-R3HIQ5AX.js +1 -0
  163. package/browser/chunk-R6DRKF4V.js +136 -0
  164. package/browser/{chunk-TOPX3JFU.js → chunk-RDASAJA5.js} +1 -1
  165. package/browser/{chunk-FU2ZGMX4.js → chunk-RIZ4YVMH.js} +1 -1
  166. package/browser/chunk-RJYFOAYX.js +1 -0
  167. package/browser/{chunk-QR7VN5GL.js → chunk-RPBIQ4ME.js} +1 -1
  168. package/browser/{chunk-PWTUEIUR.js → chunk-RT7OZJYZ.js} +1 -1
  169. package/browser/{chunk-EQ4O2B6P.js → chunk-RWW55Z7V.js} +1 -1
  170. package/browser/{chunk-ZNBXH3TQ.js → chunk-RWZGTR3S.js} +1 -1
  171. package/browser/{chunk-IZLEZJ6U.js → chunk-SCAKRK4B.js} +1 -1
  172. package/browser/{chunk-THT6CY5E.js → chunk-SCGKVOSE.js} +1 -1
  173. package/browser/chunk-SMEVWRVE.js +1 -0
  174. package/browser/{chunk-RTQ4SJP2.js → chunk-SQAFHZEO.js} +1 -1
  175. package/browser/{chunk-IKKPP4JS.js → chunk-SWF6XISV.js} +1 -1
  176. package/browser/{chunk-VVWAYTKN.js → chunk-SWVQK6HM.js} +1 -1
  177. package/browser/{chunk-7DAPNQYU.js → chunk-SXRKKO75.js} +1 -1
  178. package/browser/{chunk-WBWMUDOK.js → chunk-T43ISYOP.js} +1 -1
  179. package/browser/{chunk-LGOSIAUC.js → chunk-TANYEHMZ.js} +1 -1
  180. package/browser/{chunk-PQ6W7KXC.js → chunk-TDHDQRJN.js} +1 -1
  181. package/browser/{chunk-YWOH2LVD.js → chunk-TKHSLAZH.js} +14 -14
  182. package/browser/{chunk-6P2ASCNY.js → chunk-TP6ZUC53.js} +1 -1
  183. package/browser/{chunk-ZKOARDC2.js → chunk-TPJWIEYA.js} +1 -1
  184. package/browser/{chunk-L6PKNRWO.js → chunk-TRK4LJDS.js} +1 -1
  185. package/browser/{chunk-QTAF2OHJ.js → chunk-TYVVSM36.js} +1 -1
  186. package/browser/{chunk-32QBWLTN.js → chunk-U4MC22BG.js} +1 -1
  187. package/browser/{chunk-QJUU75N6.js → chunk-U56LRRCE.js} +1 -1
  188. package/browser/{chunk-BAEWHHDC.js → chunk-U6FO6TSU.js} +1 -1
  189. package/browser/{chunk-7NZLZJYF.js → chunk-UFVN6MTY.js} +1 -1
  190. package/browser/{chunk-HXXX3USD.js → chunk-UI6U53UY.js} +9 -9
  191. package/browser/{chunk-B7AC4RMR.js → chunk-UIVJ2JQT.js} +1 -1
  192. package/browser/chunk-UMFN4AJF.js +1 -0
  193. package/browser/{chunk-QG4B6W6L.js → chunk-UPV6ZIB5.js} +1 -1
  194. package/browser/{chunk-ZTU3TIGR.js → chunk-UPZZHMG6.js} +1 -1
  195. package/browser/{chunk-MZITJQAC.js → chunk-UX4QS4XQ.js} +1 -1
  196. package/browser/{chunk-PPVORSJQ.js → chunk-V4LDEQZZ.js} +1 -1
  197. package/browser/chunk-V4V55JMO.js +1 -0
  198. package/browser/{chunk-JBS5UYZC.js → chunk-V6D6TV7B.js} +1 -1
  199. package/browser/{chunk-KYXB2UQI.js → chunk-VEQJR5VL.js} +1 -1
  200. package/browser/{chunk-S2B6A2P3.js → chunk-VG3B7TDX.js} +1 -1
  201. package/browser/{chunk-5USF4MRW.js → chunk-VGHEGWAM.js} +1 -1
  202. package/browser/{chunk-7BQKGIZM.js → chunk-VL7THV5U.js} +1 -1
  203. package/browser/chunk-VRKJC53Z.js +10 -0
  204. package/browser/{chunk-EJWFW6Y5.js → chunk-VS6CGXUJ.js} +1 -1
  205. package/browser/{chunk-54UGZEAQ.js → chunk-WDUPZI6X.js} +1 -1
  206. package/browser/{chunk-4CPRMZL6.js → chunk-WFVMID6Q.js} +1 -1
  207. package/browser/{chunk-Z6X5UYRZ.js → chunk-WFWUOLEG.js} +1 -1
  208. package/browser/{chunk-ARYZHNFV.js → chunk-WGOUSPMF.js} +1 -1
  209. package/browser/{chunk-3CSCTT6I.js → chunk-WOAKN4QZ.js} +1 -1
  210. package/browser/{chunk-GDNVMJOU.js → chunk-WSFSSHIX.js} +1 -1
  211. package/browser/{chunk-ZZBF7AOW.js → chunk-WSWTWRKJ.js} +1 -1
  212. package/browser/chunk-WTIIZBRC.js +22 -0
  213. package/browser/{chunk-5UMDVS4U.js → chunk-XCSDEGWL.js} +1 -1
  214. package/browser/{chunk-FIOEXMKH.js → chunk-XDFUPYND.js} +1 -1
  215. package/browser/{chunk-COGKLKKE.js → chunk-XEPEGKS2.js} +1 -1
  216. package/browser/{chunk-VBIZF245.js → chunk-XFU3EMCG.js} +1 -1
  217. package/browser/{chunk-3NPP3FHR.js → chunk-XGXXFTMA.js} +1 -1
  218. package/browser/{chunk-EHEOIROM.js → chunk-XMPWQ5UV.js} +1 -1
  219. package/browser/chunk-XPM7J5AN.js +1 -0
  220. package/browser/{chunk-RL24GQSJ.js → chunk-XW7VJLDW.js} +1 -1
  221. package/browser/{chunk-4W3WYXI2.js → chunk-XWYCNPUZ.js} +1 -1
  222. package/browser/{chunk-PJ3DTEH2.js → chunk-Y4MERAVA.js} +1 -1
  223. package/browser/chunk-Y6SAXN2J.js +1 -0
  224. package/browser/{chunk-363IDTE3.js → chunk-Y7ZKGM5U.js} +1 -1
  225. package/browser/{chunk-SIDUUVNA.js → chunk-YDL2MTWE.js} +1 -1
  226. package/browser/{chunk-LOWQOYUL.js → chunk-YLXBICIW.js} +1 -1
  227. package/browser/{chunk-JTZHHVPI.js → chunk-YMKZUNJH.js} +1 -1
  228. package/browser/{chunk-VXPORXGI.js → chunk-YQ5PAXUW.js} +1 -1
  229. package/browser/{chunk-C5N3GKEC.js → chunk-Z4WEJMVU.js} +1 -1
  230. package/browser/{chunk-IISHJIET.js → chunk-Z5BFBI3D.js} +1 -1
  231. package/browser/chunk-Z5HEFUTD.js +1 -0
  232. package/browser/{chunk-SLX34TWD.js → chunk-Z76C52NM.js} +1 -1
  233. package/browser/{chunk-A2EVMYAR.js → chunk-ZBHPM2JC.js} +1 -1
  234. package/browser/{chunk-LGINK7BD.js → chunk-ZOYWCF3Q.js} +1 -1
  235. package/browser/{chunk-VZBXT2TV.js → chunk-ZRC22L45.js} +1 -1
  236. package/browser/{chunk-LUKLFBAY.js → chunk-ZRJU5XBX.js} +1 -1
  237. package/browser/{chunk-BQUL7SGN.js → chunk-ZV4K4PP6.js} +3 -3
  238. package/browser/chunk-ZVWC6CBP.js +1 -0
  239. package/browser/index.html +2 -2
  240. package/browser/main-4BFS7RVV.css +1 -0
  241. package/browser/main-6NLSRECT.js +3 -0
  242. package/browser/{styles-URIEURGQ.css → styles-LFDMQGKE.css} +1 -1
  243. package/package.json +1 -1
  244. package/browser/chunk-2VE2WNSA.js +0 -21
  245. package/browser/chunk-4HEJOI53.js +0 -1
  246. package/browser/chunk-4SRWAPD4.js +0 -1
  247. package/browser/chunk-65JSM2XC.js +0 -1
  248. package/browser/chunk-7SRLQQ53.js +0 -22
  249. package/browser/chunk-CQLZHUT4.js +0 -9
  250. package/browser/chunk-DI2O7SU5.js +0 -4
  251. package/browser/chunk-DOCQN2VL.js +0 -1
  252. package/browser/chunk-DSNA2CBA.js +0 -1
  253. package/browser/chunk-DTX2BFBV.js +0 -1
  254. package/browser/chunk-FBNETY2W.js +0 -1
  255. package/browser/chunk-GRGZQFG6.js +0 -380
  256. package/browser/chunk-IEVGW2RT.js +0 -5
  257. package/browser/chunk-JB7Y2263.js +0 -1
  258. package/browser/chunk-KWWIO4GT.js +0 -1
  259. package/browser/chunk-M3DKYPGC.js +0 -1
  260. package/browser/chunk-NBMH5YL2.css +0 -1
  261. package/browser/chunk-NIDHEU4E.js +0 -3
  262. package/browser/chunk-Q7YUJXQP.js +0 -1
  263. package/browser/chunk-SLYXMED6.js +0 -1
  264. package/browser/chunk-SVVH6PSD.js +0 -137
  265. package/browser/chunk-V432I4ZE.js +0 -21
  266. package/browser/chunk-VLISY5AT.js +0 -149
  267. package/browser/chunk-VM4K4MNV.js +0 -1
  268. package/browser/chunk-XY3FCZN2.js +0 -1
  269. package/browser/chunk-ZCQDZKFQ.js +0 -1
  270. package/browser/main-4WYCY6M5.js +0 -3
  271. package/browser/main-WPNH2WGQ.css +0 -1
@@ -1 +1 @@
1
- import{c as W,d as X}from"./chunk-GRGZQFG6.js";import{a as Y,b as Z}from"./chunk-L6PKNRWO.js";import{b as Q,c as U}from"./chunk-JBS5UYZC.js";import{a as B}from"./chunk-B7AC4RMR.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as J,h as q,o as G}from"./chunk-DWZ5JTI2.js";import{a as d}from"./chunk-WUV22SZ4.js";import{s as C}from"./chunk-LGOSIAUC.js";import{Ab as V,Fb as l,Fc as k,Gb as c,Gc as F,Hb as m,Lc as N,Ob as L,Pb as j,Sb as E,Ub as n,Xa as _,Y as f,Ya as M,ca as S,cc as I,d as x,eb as b,fa as T,ga as u,hc as v,ib as $,jc as R,la as w,nd as P,o as h,oa as O,ob as a,od as z,pa as D,ta as p,ua as g,vd as A,yb as H}from"./chunk-IEVGW2RT.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};
1
+ import{c as W,d as X}from"./chunk-GZ6OVEDL.js";import{a as Y,b as Z}from"./chunk-TRK4LJDS.js";import{b as Q,c as U}from"./chunk-V6D6TV7B.js";import{a as B}from"./chunk-UIVJ2JQT.js";import{oa as K}from"./chunk-Z76C52NM.js";import{F as J,h as q,o as G}from"./chunk-7MRUPBXU.js";import{a as d}from"./chunk-WUV22SZ4.js";import{s as C}from"./chunk-TANYEHMZ.js";import{Ab as H,Cb as V,Hb as l,Hc as k,Ib as c,Ic as F,Jb as m,Nc as N,Qb as L,Rb as j,Ub as E,Wb as n,Xa as _,Y as f,Ya as M,ca as S,d as x,eb as b,ec as I,fa as T,ga as u,ib as $,jc as v,la as w,lc as R,o as h,oa as O,ob as a,pa as D,pd as P,qd as z,ta as p,ua as g,xd as A}from"./chunk-L3U6V3BF.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};
@@ -0,0 +1 @@
1
+ import{e as re,f as oe,g as ie}from"./chunk-N5RDRDT7.js";import{a as i,b as I}from"./chunk-KBLVOO4J.js";import{a as Z}from"./chunk-WUV22SZ4.js";import{a as ee}from"./chunk-H6RHVRGW.js";import{s as te}from"./chunk-TANYEHMZ.js";import{Ab as R,Cb as C,Eb as G,Fb as w,Gb as j,I as $,Lb as s,Ld as X,Mb as g,Nb as f,Sa as O,Sb as M,Vb as z,Wb as v,Xa as l,aa as K,eb as H,fa as h,ib as Y,jc as S,k as q,kc as J,la as c,lc as W,o as L,oa as _,pa as T,t as E,wb as V}from"./chunk-L3U6V3BF.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(r,e){if(r&1&&f(0,"button",11),r&2){let t=v().$index;V("data-bs-slide-to",t)}}function Ne(r,e){if(r&1&&R(0,Ie,1,1,"button",11),r&2){let t=e.$index;C(t!=0?0:-1)}}function De(r,e){if(r&1&&(s(0,"div",3),f(1,"button",10),w(2,Ne,1,1,null,null,G),g()),r&2){let t=v();l(),V("data-bs-slide-to",0),l(),j(t.changelogs)}}function Fe(r,e){if(r&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()()()),r&2){let t=v().$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(r,e){if(r&1&&R(0,Fe,8,4,"div",12),r&2){let t=e.$index;C(t!=0?0:-1)}}var N=class r{constructor(e,t){this.dialogRef=t;this.changelogs=e}changelogs=[];close(){this.dialogRef.close()}static \u0275fac=function(t){return new(t||r)(H(oe),H(re))};static \u0275cmp=Y({type:r,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()()(),w(14,Ae,1,1,null,null,G),g()()()),t&2&&(l(4),C(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"}]},Ee={headerTitle:"History",menu:[{label:"Variant Adjustment",routerLink:"Adjustment/History/Variant",pageTitle:"Variant Adjustment History"}]},ne=[Be,xe,Ue,Ee];var He={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/V1",pageTitle:"Import Supplier",isNotTabOrSideMenu:!0},{label:"Import Supplier V2",routerLink:"Contacts/Contact/Suppliers/Import",pageTitle:"Import Supplier V2",isNotTabOrSideMenu:!0},{label:"Supplier Info",routerLink:"Contacts/Contact/Suppliers/Info",pageTitle:"Supplier Info",isNotTabOrSideMenu:!0},{label:"Supplier Info",routerLink:"Contacts/Contact/Suppliers/Info/V2",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:"Import Sales Person",routerLink:"Contacts/Contact/Sales_Person/Import/V2",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"}]},Ve={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"}]},Ge={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"}]},we={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=[He,Ve,Ge,we,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:i.orders.Invoice},{label:"Customer Invoice",routerLink:"Orders/Orders/Customer_Invoice/Info",pageTitle:"Customer Invoice Info",isNotTabOrSideMenu:!0},{label:"Import Invoice",routerLink:"Orders/Orders/Customer_Invoice/Import",pageTitle:"Import Invoice",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:i.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 Supplier Bill",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:i.estimate.Create},{label:"Estimate Info",routerLink:"Orders/Orders/Estimate/Info",pageTitle:"Estimate Info",isNotTabOrSideMenu:!0,role:i.estimate.Create},{label:"Import Estimate",routerLink:"Orders/Orders/Estimate/Import",pageTitle:"Import Estimate",isNotTabOrSideMenu:!0,role:i.estimate.Create},{label:"Import Estimate",routerLink:"Orders/Orders/Estimate/Import/V2",pageTitle:"Import Estimate",isNotTabOrSideMenu:!0,role:i.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"}]}]},Ct={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,Ct];var vt={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=[vt,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 r{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:[i.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:[i.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:[i.report.View]},{label:"Summary",routerLink:"Reports/Sales_Report/Standard/Summary",pageTitle:"Sales Summary",requiredRoles:[i.report.View]},{label:"Customers",routerLink:"Reports/Sales_Report/Standard/Top_Customers",pageTitle:"Top Customers",requiredRoles:[i.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:[i.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:[i.report.Advanced]},{label:"Tag",routerLink:"Reports/Sales_Report/Standard/Sales_Order_Tag",pageTitle:"Group By Sales Order Tag",requiredRoles:[i.report.Advanced]},{label:"Person",routerLink:"Reports/Sales_Report/Standard/Person",pageTitle:"Sales Person",requiredRoles:[i.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:[i.report.Advanced]},{label:"Price",routerLink:"Reports/Sales_Report/Standard/Price_Analysis",pageTitle:"Price Analysis",requiredRoles:[i.report.Advanced]},{label:"Brand",routerLink:"Reports/Sales_Report/Standard/Top_Brand",pageTitle:"Top Brand",requiredRoles:[i.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:[i.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:[i.report.Periodic]},{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:[i.report.Periodic]},{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:[i.report.Periodic]},{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||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};var A=class r{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||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};var B=class r{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(o=>o.headerTitle==a)[0];d?.children!=null&&(d=d.children.filter(o=>o.headerTitle==u)[0]);let y=[];m.forEach(o=>{o.children==null?o.headerTitle!=a&&(y=y.concat(o)):y=y.concat(k(P({},o),{headerTitle:o.headerTitle,children:o.children.filter(n=>n.headerTitle!=u)}))});let Me=d.menu?.map(o=>k(P({},o),{T:o.label,U:o.routerLink,isNotTabOrSideMenu:o.isNotTabOrSideMenu,role:o.role})).filter(o=>!o.isNotTabOrSideMenu).filter(o=>!o.requiredRoles||o.requiredRoles.length===0?!0:o.requiredRoles.every(n=>this.role.isUserHasRole(n))),he=y.map(o=>o.children==null?{T:o.headerTitle,SI:o.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:o.headerTitle,SI:o.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(o=>o.routerLink==x)[0]?.pageTitle;d.children!=null&&(U=d.children.filter(o=>o.routerLink==x)[0]?.pageTitle);let Ce=Re+U;return L({H:U,ST:u,N:{TM:Me,SM:he},T:Ce,R:x,U:[]})}}static \u0275fac=function(t){return new(t||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};var fe=class r{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)),E(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(E(()=>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||r)(_(te),_(ie),_(X),_(B))};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};export{ae as a,fe as b};
@@ -1 +1 @@
1
- import{a as de}from"./chunk-WWWSD2MX.js";import{e as le,f as se}from"./chunk-UEN2SKB2.js";import"./chunk-EQ4O2B6P.js";import{b as re}from"./chunk-SLYXMED6.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import{u as oe,v as ae,w as ne}from"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import{e as ee,f as te,g as ie}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import{a as $}from"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{A as J,E as Q,F as X,c as q,h as G,o as z}from"./chunk-DWZ5JTI2.js";import"./chunk-ILTEBIEO.js";import"./chunk-PWTUEIUR.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as H}from"./chunk-WUV22SZ4.js";import"./chunk-7AZJVR4Y.js";import{p as W,s as Z}from"./chunk-LGOSIAUC.js";import{Ab as S,Ca as E,Cb as A,Db as Y,E as P,Eb as L,Fb as _,Fc as k,Gb as o,Gc as F,Hb as a,Ib as g,Nd as K,Pb as w,Sb as f,Ub as p,Xa as d,cc as h,eb as C,gd as B,hc as r,ib as b,ic as N,jc as I,mb as V,mc as O,nc as R,oc as x,sd as U,ta as m,ua as c,vd as j,yb as T,yc as y}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var D=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(D||{});function Ce(n,l){if(n&1&&(o(0,"div",3)(1,"div",4)(2,"div",16),g(3,"i",17),o(4,"span"),r(5),a()()()()),n&2){let i=p();d(5),I(" ",i.selectedClearData.message," ")}}function fe(n,l){n&1&&(o(0,"small",8),r(1," *Subdomain is required "),a())}function _e(n,l){n&1&&(o(0,"small",8),r(1," *Password is required "),a())}function Te(n,l){n&1&&g(0,"i",14)}function Se(n,l){n&1&&g(0,"i",15)}var v=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new oe;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=E(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(C(te),C(ee),C(Q))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"control-label","text-danger"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"]],template:function(i,t){if(i&1){let e=w();o(0,"modal-material",2),f("onOk",function(){return m(e),c(t.onSubmit())})("onClose",function(){return m(e),c(t.dialogRef.close())})("onCancel",function(){return m(e),c(t.dialogRef.close())}),o(1,"content"),T(2,Ce,6,1,"div",3),o(3,"div",3)(4,"div",4)(5,"strong"),r(6),a(),o(7,"div",5)(8,"input",6,0),x("ngModelChange",function(s){return m(e),R(t.subdomain,s)||(t.subdomain=s),c(s)}),a(),o(10,"label",7),r(11,"Subdomain"),a(),T(12,fe,2,0,"small",8),a()(),o(13,"div",4)(14,"div",9)(15,"input",10,1),x("ngModelChange",function(s){return m(e),R(t.password,s)||(t.password=s),c(s)}),a(),o(17,"label",11),r(18,"Password"),a(),T(19,_e,2,0,"small",8),o(20,"div",12)(21,"button",13),f("click",function(){return m(e),c(t.passwordVisibility.set(!t.passwordVisibility()))}),T(22,Te,1,0,"i",14)(23,Se,1,0,"i",15),a()()()()()()()}if(i&2){let e=h(9),u=h(16);_("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),d(2),S(t.selectedClearData.message?2:-1),d(4),I("Enter the following subdomain to confirm: ",t.subdomainPlaceholder),d(2),O("ngModel",t.subdomain),d(4),S(e.invalid&&(e.dirty||e.touched)?12:-1),d(3),_("type",t.passwordVisibility()?"text":"password"),O("ngModel",t.password),d(4),S(u.invalid&&(u.dirty||u.touched)?19:-1),d(3),S(t.passwordVisibility()?22:23)}},dependencies:[ne,ae,X,q,G,J,z],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var M=n=>({"border border-0":n});function be(n,l){if(n&1&&(o(0,"tr",21)(1,"td",21),r(2),a(),o(3,"td",22),r(4),k(5,"number"),a()()),n&2){let i=l.$implicit,t=l.$index,e=p(2);_("ngClass",y(7,M,t==e.data.Data.length-1)),d(),_("ngClass",y(9,M,t==e.data.Data.length-1)),d(),N(i.Key),d(),_("ngClass",y(11,M,t==e.data.Data.length-1)),d(),N(F(5,5,i.Value))}}function ge(n,l){if(n&1){let i=w();o(0,"mainpanel-cmp",0)(1,"actions")(2,"div",1)(3,"div",2)(4,"button",3),r(5," Format Data "),a(),o(6,"ul",4)(7,"li")(8,"a",5),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",6),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",7),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",8),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",9),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",10),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",11)(27,"div",12)(28,"div",13)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",14)(34,"div",15)(35,"div",16)(36,"table",17)(37,"thead",18)(38,"tr",19)(39,"th"),r(40,"Table"),a(),o(41,"th",20),r(42,"Rows"),a()()(),o(43,"tbody"),Y(44,be,6,13,"tr",21,A),a()()()()()()()()()}if(n&2){let i=p();_("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),d(44),L(i.data.Data)}}var me=class n extends de{constructor(i,t,e,u,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=u;this.dialog=s}clearDataType=D;onClearRecord(i){this.dialog.open(v,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(P(t=>H.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,$.Success)}static \u0275fac=function(t){return new(t||n)(C(re),C(Z),C(K),C(W),C(ie))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[V],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&T(0,ge,46,3,"mainpanel-cmp",0),t&2&&S(e.formData?0:-1)},dependencies:[j,B,se,le,U],encapsulation:2})};export{me as FormatDataComponent};
1
+ import{a as de}from"./chunk-CAGFIP4G.js";import{e as le,f as se}from"./chunk-MZDVGN2B.js";import"./chunk-RWW55Z7V.js";import{b as re}from"./chunk-XPM7J5AN.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import{u as oe,v as ae,w as ne}from"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import"./chunk-QWLNF7VL.js";import{e as ee,f as te,g as ie}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-RIZ4YVMH.js";import{a as $}from"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{A as J,E as Q,F as X,c as q,h as G,o as z}from"./chunk-7MRUPBXU.js";import"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import"./chunk-KBLVOO4J.js";import{a as H}from"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import{p as W,s as Z}from"./chunk-TANYEHMZ.js";import{Ab as T,Ac as y,Ca as E,Cb as S,E as P,Eb as A,Fb as Y,Gb as L,Hb as _,Hc as k,Ib as o,Ic as F,Jb as a,Kb as g,Pd as K,Rb as w,Ub as f,Wb as p,Xa as d,eb as C,ec as h,ib as b,id as B,jc as r,kc as N,lc as I,mb as V,oc as O,pc as R,qc as x,ta as m,ua as c,ud as U,xd as j}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var D=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(D||{});function Ce(n,l){if(n&1&&(o(0,"div",3)(1,"div",4)(2,"div",16),g(3,"i",17),o(4,"span"),r(5),a()()()()),n&2){let i=p();d(5),I(" ",i.selectedClearData.message," ")}}function fe(n,l){n&1&&(o(0,"small",8),r(1," *Subdomain is required "),a())}function _e(n,l){n&1&&(o(0,"small",8),r(1," *Password is required "),a())}function Te(n,l){n&1&&g(0,"i",14)}function Se(n,l){n&1&&g(0,"i",15)}var v=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new oe;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=E(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(C(te),C(ee),C(Q))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"control-label","text-danger"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"]],template:function(i,t){if(i&1){let e=w();o(0,"modal-material",2),f("onOk",function(){return m(e),c(t.onSubmit())})("onClose",function(){return m(e),c(t.dialogRef.close())})("onCancel",function(){return m(e),c(t.dialogRef.close())}),o(1,"content"),T(2,Ce,6,1,"div",3),o(3,"div",3)(4,"div",4)(5,"strong"),r(6),a(),o(7,"div",5)(8,"input",6,0),x("ngModelChange",function(s){return m(e),R(t.subdomain,s)||(t.subdomain=s),c(s)}),a(),o(10,"label",7),r(11,"Subdomain"),a(),T(12,fe,2,0,"small",8),a()(),o(13,"div",4)(14,"div",9)(15,"input",10,1),x("ngModelChange",function(s){return m(e),R(t.password,s)||(t.password=s),c(s)}),a(),o(17,"label",11),r(18,"Password"),a(),T(19,_e,2,0,"small",8),o(20,"div",12)(21,"button",13),f("click",function(){return m(e),c(t.passwordVisibility.set(!t.passwordVisibility()))}),T(22,Te,1,0,"i",14)(23,Se,1,0,"i",15),a()()()()()()()}if(i&2){let e=h(9),u=h(16);_("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),d(2),S(t.selectedClearData.message?2:-1),d(4),I("Enter the following subdomain to confirm: ",t.subdomainPlaceholder),d(2),O("ngModel",t.subdomain),d(4),S(e.invalid&&(e.dirty||e.touched)?12:-1),d(3),_("type",t.passwordVisibility()?"text":"password"),O("ngModel",t.password),d(4),S(u.invalid&&(u.dirty||u.touched)?19:-1),d(3),S(t.passwordVisibility()?22:23)}},dependencies:[ne,ae,X,q,G,J,z],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var M=n=>({"border border-0":n});function be(n,l){if(n&1&&(o(0,"tr",21)(1,"td",21),r(2),a(),o(3,"td",22),r(4),k(5,"number"),a()()),n&2){let i=l.$implicit,t=l.$index,e=p(2);_("ngClass",y(7,M,t==e.data.Data.length-1)),d(),_("ngClass",y(9,M,t==e.data.Data.length-1)),d(),N(i.Key),d(),_("ngClass",y(11,M,t==e.data.Data.length-1)),d(),N(F(5,5,i.Value))}}function ge(n,l){if(n&1){let i=w();o(0,"mainpanel-cmp",0)(1,"actions")(2,"div",1)(3,"div",2)(4,"button",3),r(5," Format Data "),a(),o(6,"ul",4)(7,"li")(8,"a",5),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",6),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",7),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",8),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",9),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",10),f("click",function(){m(i);let e=p();return c(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",11)(27,"div",12)(28,"div",13)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",14)(34,"div",15)(35,"div",16)(36,"table",17)(37,"thead",18)(38,"tr",19)(39,"th"),r(40,"Table"),a(),o(41,"th",20),r(42,"Rows"),a()()(),o(43,"tbody"),Y(44,be,6,13,"tr",21,A),a()()()()()()()()()}if(n&2){let i=p();_("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),d(44),L(i.data.Data)}}var me=class n extends de{constructor(i,t,e,u,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=u;this.dialog=s}clearDataType=D;onClearRecord(i){this.dialog.open(v,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(P(t=>H.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,$.Success)}static \u0275fac=function(t){return new(t||n)(C(re),C(Z),C(K),C(W),C(ie))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[V],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&T(0,ge,46,3,"mainpanel-cmp",0),t&2&&S(e.formData?0:-1)},dependencies:[j,B,se,le,U],encapsulation:2})};export{me as FormatDataComponent};
@@ -1 +1 @@
1
- import{a as L,c as q}from"./chunk-D4FCXEV4.js";import{F as O,G as W,c as j,h as B,o as H}from"./chunk-DWZ5JTI2.js";import{s as J}from"./chunk-LGOSIAUC.js";import{Ab as y,Ca as w,Fb as s,Fc as V,Gb as o,Gc as k,Hb as l,Ib as f,Pb as g,Sb as x,Ub as p,Xa as a,Ya as _,eb as N,hc as m,ib as h,ic as S,jb as D,jc as F,jd as M,kc as b,ma as P,mc as A,nc as I,ob as C,oc as T,sd as E,ta as u,ua as c,vd as R,yb as v}from"./chunk-IEVGW2RT.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
+ import{a as L,c as q}from"./chunk-FM7BHGBW.js";import{F as O,G as W,c as j,h as B,o as H}from"./chunk-7MRUPBXU.js";import{s as J}from"./chunk-TANYEHMZ.js";import{Ab as v,Ca as w,Cb as y,Hb as s,Hc as V,Ib as o,Ic as k,Jb as l,Kb as f,Rb as g,Ub as x,Wb as p,Xa as a,Ya as _,eb as N,ib as h,jb as D,jc as m,kc as S,lc as F,ld as M,ma as P,mc as b,ob as C,oc as A,pc as I,qc as T,ta as u,ua as c,ud as E,xd as R}from"./chunk-L3U6V3BF.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 +1 @@
1
- import{u as T,v as M}from"./chunk-26YFRPR2.js";import{e as g,f as u}from"./chunk-ZTD4APMR.js";import{a as C}from"./chunk-2FWFPV5I.js";import{Fb as t,Gb as l,Hb as c,Ib as f,Qa as m,Sb as d,Xa as s,eb as i,ib as p}from"./chunk-IEVGW2RT.js";var _=class a{constructor(e,o){this.data=e;this.dialogRef=o;this.message=e.message,this.modalConfig=new T,this.modalConfig.title=e.title,this.modalConfig.okText=e.okText?e.okText:"Yes",this.modalConfig.cancelText=e.cancelText?e.cancelText:"No",this.modalConfig.headerType=e.headerType?e.headerType:C.Success}modalConfig;message;headerType;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(o){return new(o||a)(i(u),i(g))};static \u0275cmp=p({type:a,selectors:[["app-modal-confirm"]],standalone:!1,decls:3,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"fs-4","mb-0",3,"innerHTML"]],template:function(o,n){o&1&&(l(0,"modal-material",0),d("onOk",function(){return n.onOk()})("onCancel",function(){return n.onClose()})("onClose",function(){return n.onClose()}),l(1,"content"),f(2,"div",1),c()()),o&2&&(t("config",n.modalConfig),s(2),t("innerHTML",n.message,m))},dependencies:[M],encapsulation:2})};export{_ as a};
1
+ import{u as T,v as M}from"./chunk-3ZH3XK5V.js";import{e as g,f as u}from"./chunk-N5RDRDT7.js";import{a as C}from"./chunk-2FWFPV5I.js";import{Hb as t,Ib as l,Jb as c,Kb as f,Qa as m,Ub as d,Xa as s,eb as i,ib as p}from"./chunk-L3U6V3BF.js";var _=class a{constructor(e,o){this.data=e;this.dialogRef=o;this.message=e.message,this.modalConfig=new T,this.modalConfig.title=e.title,this.modalConfig.okText=e.okText?e.okText:"Yes",this.modalConfig.cancelText=e.cancelText?e.cancelText:"No",this.modalConfig.headerType=e.headerType?e.headerType:C.Success}modalConfig;message;headerType;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(o){return new(o||a)(i(u),i(g))};static \u0275cmp=p({type:a,selectors:[["app-modal-confirm"]],standalone:!1,decls:3,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"fs-4","mb-0",3,"innerHTML"]],template:function(o,n){o&1&&(l(0,"modal-material",0),d("onOk",function(){return n.onOk()})("onCancel",function(){return n.onClose()})("onClose",function(){return n.onClose()}),l(1,"content"),f(2,"div",1),c()()),o&2&&(t("config",n.modalConfig),s(2),t("innerHTML",n.message,m))},dependencies:[M],encapsulation:2})};export{_ as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-OFWJY5WB.js";import"./chunk-NJIOGT5G.js";import"./chunk-CAGFIP4G.js";import"./chunk-U4MC22BG.js";import"./chunk-3RK6DDJD.js";import"./chunk-SMEVWRVE.js";import"./chunk-MWGICBEB.js";import"./chunk-MZDVGN2B.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-RWW55Z7V.js";import"./chunk-XPM7J5AN.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import"./chunk-QWLNF7VL.js";import"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import"./chunk-7MRUPBXU.js";import"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import"./chunk-TANYEHMZ.js";import"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as SensitiveFieldComponent};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-36GWLMZX.js";import{eb as r,lb as e,sd as n}from"./chunk-IEVGW2RT.js";var m=class a{constructor(t,i){this.fractionData=t;this.decimalPipe=i}transform(t){let i="1."+this.fractionData.quantity.minimumFraction+"-"+this.fractionData.quantity.maximumFraction;return this.decimalPipe.transform(t,i)}static \u0275fac=function(i){return new(i||a)(r(o,16),r(n,16))};static \u0275pipe=e({name:"quantityFraction",type:a,pure:!0})};export{m as a};
1
+ import{a as o}from"./chunk-5RYL4EJ2.js";import{eb as r,lb as e,ud as n}from"./chunk-L3U6V3BF.js";var m=class a{constructor(t,i){this.fractionData=t;this.decimalPipe=i}transform(t){let i="1."+this.fractionData.quantity.minimumFraction+"-"+this.fractionData.quantity.maximumFraction;return this.decimalPipe.transform(t,i)}static \u0275fac=function(i){return new(i||a)(r(o,16),r(n,16))};static \u0275pipe=e({name:"quantityFraction",type:a,pure:!0})};export{m as a};
@@ -1,4 +1,4 @@
1
- import{d as M}from"./chunk-FU2ZGMX4.js";import{B as a,G as w,H as b,J as l,O as I,b as k,d as r,m as D,xa as L}from"./chunk-SLX34TWD.js";import{Ia as c,Pc as y,Za as m,jb as f,kb as h,la as p,ma as d,mb as u,pa as o,wc as g,wd as v}from"./chunk-IEVGW2RT.js";var x=`
1
+ import{d as M}from"./chunk-RIZ4YVMH.js";import{B as a,G as w,H as b,J as l,O as I,b as k,d as r,m as D,xa as L}from"./chunk-Z76C52NM.js";import{Ia as c,Rc as y,Za as m,jb as f,kb as h,la as p,ma as d,mb as u,pa as o,yc as g,yd as v}from"./chunk-L3U6V3BF.js";var x=`
2
2
  .p-ink {
3
3
  display: block;
4
4
  position: absolute;
@@ -1 +1 @@
1
- import{a as O,b as Ve}from"./chunk-PS7477UG.js";import"./chunk-GDRHD33K.js";import{c as Fe}from"./chunk-NSNUUKNK.js";import{c as Ee}from"./chunk-W3PBP3KZ.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{e as Oe,f as Pe}from"./chunk-UEN2SKB2.js";import"./chunk-45Z7RKI2.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-EQ4O2B6P.js";import{a as Te,b as ve}from"./chunk-SLYXMED6.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as ye,c as Se}from"./chunk-JBS5UYZC.js";import{N as we}from"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as xe,h as De,o as be}from"./chunk-DWZ5JTI2.js";import"./chunk-ILTEBIEO.js";import"./chunk-PWTUEIUR.js";import"./chunk-36GWLMZX.js";import{b as Z}from"./chunk-WFQIMZGL.js";import{a as fe}from"./chunk-WUV22SZ4.js";import"./chunk-7AZJVR4Y.js";import"./chunk-LGOSIAUC.js";import{$ as Y,Ab as u,Ac as he,Cb as de,Db as pe,Eb as ce,Fb as p,Fc as c,Gb as o,Gc as v,Ha as re,Hb as r,Hc as _,Ib as y,Lc as w,Ob as B,Pb as T,Qd as Ce,Sb as V,Sd as ge,Tc as ue,Ub as d,Xa as l,Y as P,Ya as le,aa as E,cc as g,eb as F,gd as j,hc as s,ib as A,ic as W,jc as C,kc as me,mb as se,mc as Q,nc as X,nd as L,ob as S,oc as ee,od as M,pb as k,qd as _e,sd as G,t as D,ta as b,tb as R,ua as x,ub as N,vd as $,wc as U,xc as f,yb as h,yc as I,zc as te}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import{a as ne,b as oe}from"./chunk-SNAKHGZS.js";var H=class{Cost;Profit;Sales;SalesWithTax;Tax;Count;TopOutlet};var ae=t=>({"border-bottom":t}),ie=()=>["/menu/Reports/Sales_Report/Standard/Summary"],Be=(t,a,e)=>({From:t,To:a,ListIDs:e}),Le=t=>({today:t}),We=(t,a)=>({From:t,To:a});function $e(t,a){if(t&1){let e=T();o(0,"div",6)(1,"a",15),s(2),r(),o(3,"ul",16)(4,"li")(5,"a",17),V("click",function(){b(e);let n=d();return n.isTodayFilter=!n.isTodayFilter,x(n.onChangeFilterPeriod())}),s(6),r()()()()}if(t&2){let e=d();l(2),C(" ",e.isTodayFilter?"Today":"Last 7 Days"," "),l(),p("ngClass",I(3,Le,!e.isTodayFilter)),l(3),C(" ",e.isTodayFilter?"Last 7 Days":"Today"," ")}}function He(t,a){t&1&&(o(0,"span",7),s(1,"Today"),r())}function Ye(t,a){if(t&1&&(o(0,"div",18)(1,"a",9),c(2,"date"),c(3,"date"),o(4,"div",10),s(5,"Tax"),r(),o(6,"div",19)(7,"small",20),s(8),r(),o(9,"h2",11),s(10),c(11,"number"),r()()()(),o(12,"div",8)(13,"a",9),c(14,"date"),c(15,"date"),o(16,"div",10),s(17,"Sales + Tax"),r(),o(18,"div",19)(19,"small",20),s(20),r(),o(21,"h2",11),s(22),c(23,"number"),r()()()()),t&2){let e=d();l(),p("routerLink",f(27,ie))("queryParams",te(28,We,_(2,9,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(3,12,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(11,15,e.salesData==null?null:e.salesData.Tax,"1.0-0")," "),l(2),p("ngClass",I(31,ae,e.role.product.Cost)),l(),p("routerLink",f(33,ie))("queryParams",te(34,We,_(14,18,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(15,21,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(23,24,e.salesData==null?null:e.salesData.SalesWithTax,"1.0-0")," ")}}function Ue(t,a){if(t&1&&(o(0,"div",8)(1,"div")(2,"div",21),s(3,"Cost"),r(),o(4,"div",19)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),c(9,"number"),r()()()()),t&2){let e=d();p("ngClass",I(6,ae,e.role.report.Profit)),l(6),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Cost,"1.0-0")," ")}}function je(t,a){if(t&1&&(o(0,"div",12)(1,"div")(2,"div",22),s(3),r(),o(4,"div",23)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),c(9,"number"),r()()()()),t&2){let e=d();l(3),C(" ",e.includeTax?"Gross Profit":"Profit"," "),l(3),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Profit,"1.0-0")," ")}}var K=class t{constructor(a,e){this.dashboardService=a;this.role=e;this.chartConfig=this.dashboardService.getLineChartConfig()}chartData;salesData;dashboardConfig;filterSalesWidget=new le;chartConfig;todaySalesData;weeklySalesData;isTodayFilter=!0;showPeriodFilter;includeTax;today=new Date;dateTo;filterByOutletIds=ue([]);ngOnChanges(a){if(a.chartData&&a.chartData.currentValue){this.initSalesData();let e=a?.chartData?.currentValue?.Series;e=this.setChartLineColor(e),e=this.setSalesTaxLegend(e),this.chartConfig=oe(ne({},this.chartConfig),{series:e}),this.chartConfig=this.dashboardService.setSeriesPointStart(this.chartData.From,this.chartConfig),this.initPeriodFilter(e),this.getDateTo()}}initPeriodFilter(a){this.showPeriodFilter=a[0]?.data?.length>=7}initSalesData(){this.salesData=new H,this.includeTax=this.isIncludeTax(),this.salesData.Sales=this.dashboardService.getTotalData("Sales",this.chartData.Series,1),this.salesData.SalesWithTax=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,1),this.salesData.Cost=this.dashboardService.getTotalData("Cost",this.chartData.Series,1),this.salesData.Tax=this.salesData.SalesWithTax-this.salesData.Sales,this.salesData.Profit=(this.includeTax?this.salesData.SalesWithTax:this.salesData.Sales)-this.salesData.Cost,this.salesData.Count=this.dashboardService.getTotalData("Count",this.chartData.Series,1),this.todaySalesData=Fe(H,this.salesData)}setChartLineColor(a=[]){return a?.map(e=>(e.name=="Sales"&&(e.color="rgb(44, 175, 254)",e.fillColor=this.dashboardService.getLinierGradient("rgb(44, 175, 254)")),e.name=="Cost"&&(e.color="#fb404b",e.fillColor=this.dashboardService.getLinierGradient("#fb404b")),e.name=="Sales + Tax"&&(e.color="#2ECC71",e.fillColor=this.dashboardService.getLinierGradient("#2ECC71")),e))}onChangeFilterPeriod(){this.isTodayFilter?this.salesData=this.todaySalesData:(this.generateWeeklySalesData(),this.salesData=this.weeklySalesData),this.filterSalesWidget.emit({period:this.isTodayFilter?"TODAY":"WEEKLY"})}getDateTo(){let a=new Date,e=new Date(this.chartData.From);a.setDate(e.getDate()+7),this.dateTo=a}generateWeeklySalesData(){if(fe.IsEmpty(this.weeklySalesData)){let a=this.dashboardService.getTotalData("Sales",this.chartData.Series,7),e=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,7),i=this.dashboardService.getTotalData("Cost",this.chartData.Series,7),n=this.dashboardService.getTotalData("Count",this.chartData.Series,7),m=e-a,z=(this.includeTax?e:a)-i;this.weeklySalesData=this.weeklySalesData?this.weeklySalesData:new H,this.weeklySalesData.Sales=a,this.weeklySalesData.SalesWithTax=e,this.weeklySalesData.Cost=i,this.weeklySalesData.Profit=z,this.weeklySalesData.Tax=m,this.weeklySalesData.Count=n}}isIncludeTax(){let a=this.chartData.Series;return this.dashboardService.filterSeriesByName("Sales + Tax",a).visible}setSalesTaxLegend(a){return a=a.map(e=>(e.name=="Sales + Tax"&&(e.showInLegend=this.salesData.Tax>0),e)),a}static \u0275fac=function(e){return new(e||t)(F(O),F(Z))};static \u0275cmp=A({type:t,selectors:[["app-sales-widget"]],inputs:{chartData:"chartData",dashboardConfig:"dashboardConfig",filterByOutletIds:[1,"filterByOutletIds"]},outputs:{filterSalesWidget:"onFilter"},features:[U([O]),re],decls:25,vars:30,consts:[[1,"d-flex","flex-row","flex-wrap","mt-8","justify-content-between"],[1,"chart-widget"],["containerId","salesChart",3,"config"],[1,"sales-card-widget"],[1,"border","rounded","rounded-bottom-0","px-8","py-4","w-100","h-auto"],[1,"border-bottom","d-flex","align-items-center","justify-content-end",2,"height","42px"],[1,"btn-group"],[1,"link-dark","fs-2","headings-font-family"],[1,"text-end","card-row","d-flex","align-items-center","justify-content-end",3,"ngClass"],["target","_blank",1,"link-dark",3,"routerLink","queryParams"],[1,"fs-5"],[1,"fw-normal"],[1,"text-end","d-flex","align-items-center","justify-content-end","card-row"],[1,"card-footer","border","rounded-bottom","border-top-0","text-end","p-3"],["routerLink","/menu/Setup/Configuration/Application"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"dropdown-toggle","link-dark","fs-2","headings-font-family"],[1,"dropdown-menu","p-0",2,"position","absolute","right","20px !important",3,"ngClass"],["role","button",1,"dropdown-item","fs-4",3,"click"],[1,"text-end","border-bottom","card-row","d-flex","align-items-center","justify-content-end"],[1,"d-flex","align-items-center","justify-content-end"],[1,"me-2"],[1,"fs-5","text-danger"],[1,"fs-5","text-success"],[1,"d-flex","align-items-center"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1),y(2,"app-chart-container",2),r(),o(3,"div",3)(4,"div",4)(5,"div",5),h(6,$e,7,5,"div",6)(7,He,2,0,"span",7),r(),o(8,"div",8)(9,"a",9),c(10,"date"),c(11,"date"),o(12,"div",10),s(13,"Order"),r(),o(14,"h2",11),s(15),c(16,"number"),r()()(),h(17,Ye,24,37),h(18,Ue,10,8,"div",8),h(19,je,10,6,"div",12),r(),o(20,"div",13)(21,"a",14)(22,"small"),s(23),c(24,"date"),r()()()()()),e&2&&(l(2),p("config",i.chartConfig),l(4),u(!(i.role==null||i.role.dashboard==null)&&i.role.dashboard.View&&i.showPeriodFilter?6:7),l(2),p("ngClass",I(23,ae,(i.salesData==null?null:i.salesData.Tax)||i.role.product.Cost)),l(),p("routerLink",f(25,ie))("queryParams",he(26,Be,_(10,11,i.isTodayFilter?i.today:i.chartData==null?null:i.chartData.From,"yyyy-MM-dd"),_(11,14,i.isTodayFilter?i.today:i.dateTo,"yyyy-MM-dd"),i.filterByOutletIds())),l(6),W(_(16,17,i.salesData==null?null:i.salesData.Count,"1.0-0")),l(2),u((i.salesData==null?null:i.salesData.Tax)>0?17:-1),l(),u(i.role.product.Cost?18:-1),l(),u(i.role.report.Profit&&i.role.product.Cost?19:-1),l(4),me("",_(24,20,i.dashboardConfig==null?null:i.dashboardConfig.SpanConfigTime,"dd MMM HH:mm")," ",i.dashboardConfig==null?null:i.dashboardConfig.SmallTimeZone))},dependencies:[$,j,Ve,ge,Ce,we,G,_e],styles:[".chart-widget[_ngcontent-%COMP%]{width:80%}.link-dark[_ngcontent-%COMP%]{color:#333!important}.dropdown-menu.show.today[_ngcontent-%COMP%]{inset:0 auto auto -34px!important}.sales-card-widget[_ngcontent-%COMP%]{width:19%}.sales-card-widget[_ngcontent-%COMP%] .card-row[_ngcontent-%COMP%]{height:64px}@media only screen and (max-width: 767px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}@media only screen and (min-width: 768px) and (max-width: 991px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}"]})};var Ge=t=>({active:t});function Ze(t,a){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"div",2)(3,"small",3),s(4),r(),o(5,"h2",4),s(6),r()()),t&2){let e=d();l(),W(e.title),l(3),W(e.currencySymbol),l(2),W(e.value)}}function Ke(t,a){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"h2",4),s(3,"-"),r()),t&2){let e=d();l(),W(e.title)}}var q=class t{title;isActive;currencySymbol;value;showValue;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["app-card-widget"]],inputs:{title:"title",isActive:"isActive",currencySymbol:"currencySymbol",value:"value",showValue:"showValue"},decls:3,vars:4,consts:[[1,"card-widget","pe-0",3,"ngClass"],[1,"fs-4","headings-font-family"],[1,"d-flex","justify-content-start","align-items-center"],[1,"fw-normal","me-2"],[1,"fw-normal"]],template:function(e,i){e&1&&(o(0,"div",0),h(1,Ze,7,3)(2,Ke,4,1),r()),e&2&&(p("ngClass",I(2,Ge,i.isActive)),l(),u(i.showValue?1:2))},dependencies:[$,j],styles:[".card-widget[_ngcontent-%COMP%]{padding:20px;border-radius:6px;min-height:95px;border:.5px solid #e4e4e4;width:100%}.active[_ngcontent-%COMP%]{background-color:#f0f0f0}@media only screen and (max-width: 767px){.card-widget[_ngcontent-%COMP%]{width:200px}}@media only screen and (min-width: 768px) and (max-width: 991px){.card-widget[_ngcontent-%COMP%]{width:200px}}"]})};var qe=()=>[L,import("./chunk-VZUPDSBH.js").then(t=>t.PaymentWidgetComponent),M],ze=()=>[L,import("./chunk-3CSCTT6I.js").then(t=>t.PurchaseWidgetComponent),M],Je=()=>[L,import("./chunk-PQ6W7KXC.js").then(t=>t.DebtWidgetComponent),M],Qe=()=>[L,import("./chunk-2MPRVJXH.js").then(t=>t.ProductWidgetComponent),M],Xe=()=>[L,import("./chunk-WM2DGNWH.js").then(t=>t.InventoryWidgetComponent),M],et=()=>({role:"Payment View Role"}),tt=()=>({role:"Buy Report Role"}),it=()=>({role:"Debt View Role"}),at=()=>({role:"Report View Role"}),nt=()=>({role:"Inventory View Role"});function ot(t,a){if(t&1){let e=T();o(0,"div",13)(1,"h6"),s(2,"Outlet"),r(),o(3,"outlet-selector",14),ee("ngModelChange",function(n){b(e);let m=d();return X(m.dashboardFilter.Outlets,n)||(m.dashboardFilter.Outlets=n),x(n)}),r()()}if(t&2){let e=d();l(3),p("multiple",!0)("accessType",e.outletAccess),Q("ngModel",e.dashboardFilter.Outlets)}}function rt(t,a){if(t&1){let e=T();o(0,"div",19),V("click",function(){let n=b(e).$implicit,m=d(2);return x(m.onClickCardWidget(n))}),y(1,"app-card-widget",20),c(2,"number"),r()}if(t&2){let e=a.$implicit,i=d(),n=d();l(),p("title",e.title)("matTooltip",e.tooltip)("currencySymbol",i==null||i.ConfigData==null?null:i.ConfigData.CurrencySymbol)("value",e.value==null?"-":_(2,6,e.value,"1.0-0"))("showValue",e.showValue)("isActive",e.id==n.activeTab)}}function lt(t,a){if(t&1){let e=T();o(0,"app-sales-widget",21),V("onFilter",function(n){b(e);let m=d(2);return x(m.onFilterSalesWidget(n))}),r()}if(t&2){let e=d(),i=d();p("dashboardConfig",e==null?null:e.ConfigData)("chartData",e==null?null:e.HighChartData)("filterByOutletIds",i.dashboardFilter.Outlets)}}function st(t,a){t&1&&B(0)}function dt(t,a){if(t&1){let e=T();o(0,"app-payment-widget",23),c(1,"async"),V("onFilter",function(n){b(e);let m=d(4);return x(m.onFilterPaymentWidget(n))}),r()}if(t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("chartData",(e=v(1,2,n.paymentData$))==null?null:e.Data)}}function pt(t,a){if(t&1&&S(0,st,1,0,"ng-container",22)(1,dt,2,4,"ng-template",null,2,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.payment.View?e:n)("ngTemplateOutletContext",f(2,et))}}function ct(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function mt(t,a){t&1&&(k(0,pt,3,3)(1,ct,2,0),R(2,0,qe,null,1),N(0,-1))}function ht(t,a){t&1&&B(0)}function ut(t,a){if(t&1&&(y(0,"app-purchase-widget",18),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("chartData",(e=v(1,3,n.purchaseData$))==null?null:e.HighChartData)("filterByOutletIds",n.dashboardFilter.Outlets)}}function _t(t,a){if(t&1&&S(0,ht,1,0,"ng-container",22)(1,ut,2,5,"ng-template",null,3,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.buy.Report?e:n)("ngTemplateOutletContext",f(2,tt))}}function Ct(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function gt(t,a){t&1&&(k(0,_t,3,3)(1,Ct,2,0),R(2,0,ze,null,1),N(0,-1))}function ft(t,a){t&1&&B(0)}function Dt(t,a){if(t&1&&(y(0,"app-debt-widget",25),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("debtData",(e=v(1,2,n.debtData$))==null?null:e.PageData)}}function bt(t,a){if(t&1&&S(0,ft,1,0,"ng-container",22)(1,Dt,2,4,"ng-template",null,4,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.debt.View?e:n)("ngTemplateOutletContext",f(2,it))}}function xt(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function yt(t,a){t&1&&(k(0,bt,3,3)(1,xt,2,0),R(2,0,Je,null,1),N(0,-1))}function St(t,a){t&1&&B(0)}function Tt(t,a){if(t&1&&(y(0,"app-product-widget",26),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("productData",(e=v(1,2,n.productData$))==null?null:e.PageData)}}function vt(t,a){if(t&1&&S(0,St,1,0,"ng-container",22)(1,Tt,2,4,"ng-template",null,5,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.report.View?e:n)("ngTemplateOutletContext",f(2,at))}}function wt(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Ot(t,a){t&1&&(k(0,vt,3,3)(1,wt,2,0),R(2,0,Qe,null,1),N(0,-1))}function Pt(t,a){t&1&&B(0)}function Et(t,a){if(t&1&&(y(0,"app-inventory-widget",27),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("inventoryData",(e=v(1,2,n.inventoryData$))==null?null:e.PageData)}}function Ft(t,a){if(t&1&&S(0,Pt,1,0,"ng-container",22)(1,Et,2,4,"ng-template",null,6,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.inventory.View?e:n)("ngTemplateOutletContext",f(2,nt))}}function Vt(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Wt(t,a){t&1&&(k(0,Ft,3,3)(1,Vt,2,0),R(2,0,Xe,null,1),N(0,-1))}function It(t,a){if(t&1&&(o(0,"div",12)(1,"div",15)(2,"div",16),pe(3,rt,3,9,"div",17,de),c(5,"async"),r(),h(6,lt,1,3,"app-sales-widget",18),h(7,mt,4,0),h(8,gt,4,0),h(9,yt,4,0),h(10,Ot,4,0),h(11,Wt,4,0),r()()),t&2){let e=d();l(3),ce(v(5,6,e.cardWidget$)),l(3),u(e.activeTab=="SALES"?6:-1),l(),u(e.activeTab=="PAYMENT"?7:-1),l(),u(e.activeTab=="PURCHASE"?8:-1),l(),u(e.activeTab=="DEBT"?9:-1),l(),u(e.activeTab=="PRODUCT"?10:-1),l(),u(e.activeTab=="INVENTORY"?11:-1)}}function Mt(t,a){if(t&1&&(o(0,"div",24)(1,"div",28)(2,"div"),y(3,"img",29),r(),o(4,"h1",30),s(5,"You are not authorized"),r(),o(6,"p"),s(7," This page requires role "),o(8,"span",31),s(9),r(),s(10," to be accessed. Please contact your Administrator to gain access! "),r()()()),t&2){let e=a.role;l(9),C("[",e,"]")}}var ke=class t extends Te{constructor(e,i,n){super(e);this.dashboardService=i;this.role=n;this.menuData$.subscribe(),this.initSalesData(),this.initCardWidget(),this.initPaymentData(),this.initPurchaseData(),this.initInventoryData(),this.initDebtData(),this.initProductData()}cardWidget$;outletAccess=2;dashboardFilter={Outlets:[]};salesData$;paymentData$;purchaseData$;debtData$;productData$;inventoryData$;activeTab="SALES";initSalesData(){this.salesData$=this.dashboardService.getDashboardSales(this.dashboardFilter).pipe(P(1))}initPaymentData(){this.paymentData$=this.dashboardService.getDashboardPayment(this.dashboardFilter).pipe(P(1))}initPurchaseData(){this.purchaseData$=this.dashboardService.getDashboardPurchase(this.dashboardFilter).pipe(P(1))}initDebtData(){this.debtData$=this.dashboardService.getDashboardDebt(this.dashboardFilter).pipe(P(1))}initProductData(){this.productData$=this.dashboardService.getDashboardProduct(this.dashboardFilter).pipe(P(1))}initInventoryData(){this.inventoryData$=this.dashboardService.getDashboardInventory(this.dashboardFilter).pipe(P(1))}initCardWidget(){switch(this.activeTab){case"SALES":this.cardWidget$=this.salesData$.pipe(D(e=>this.dashboardService.getTotalData("Sales",e.HighChartData.Series,1)),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break;case"PAYMENT":this.cardWidget$=this.paymentData$.pipe(D(e=>this.dashboardService.getTotalData("All",e.Data.Series,1)),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break;case"PURCHASE":this.cardWidget$=this.purchaseData$.pipe(D(e=>this.dashboardService.getTotalData("Purchase",e.HighChartData.Series,1)),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break;case"DEBT":this.cardWidget$=this.debtData$.pipe(D(e=>e.PageData.Receivable),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break}}onFilterByOutlet(){switch(this.activeTab){case"SALES":this.initSalesData(),this.initCardWidget();break;case"PURCHASE":this.initPurchaseData(),this.initCardWidget();break;case"DEBT":this.initDebtData(),this.initCardWidget();break;case"PRODUCT":this.initProductData();break;case"INVENTORY":this.initInventoryData();break;case"PAYMENT":this.initPaymentData();break}}onClickCardWidget(e){this.activeTab=e.id,this.initCardWidget()}onFilterSalesWidget(e){this.cardWidget$=this.salesData$.pipe(D(i=>e.period=="WEEKLY"?this.dashboardService.getTotalData("Sales",i.HighChartData.Series,7):this.dashboardService.getTotalData("Sales",i.HighChartData.Series,1)),E(i=>(this.dashboardService.setWidgetData(i,"SALES"),this.dashboardService.widgets$)),D(i=>i.map(n=>(n.id=="SALES"&&(n.tooltip=e.period=="TODAY"?"Total Sales Today":"Total Sales last 7 days"),n))))}onFilterPaymentWidget(e){this.cardWidget$=this.paymentData$.pipe(D(i=>e.period=="WEEKLY"?this.dashboardService.getTotalData("All",i.Data.Series,7):this.dashboardService.getTotalData("All",i.Data.Series,1)),E(i=>(this.dashboardService.setWidgetData(i,"PAYMENT"),this.dashboardService.widgets$)),D(i=>i.map(n=>(n.id=="PAYMENT"&&(n.tooltip=e.period=="TODAY"?"Total Payment Today":"Total Payment last 7 days"),n))))}static \u0275fac=function(i){return new(i||t)(F(ve),F(O),F(Z))};static \u0275cmp=A({type:t,selectors:[["POS-dashboard-v2"]],features:[U([O]),se],decls:13,vars:7,consts:[["pageFilterTemplate",""],["NOT_AUTHORIZED",""],["PAYMENT",""],["BUY",""],["DEBT",""],["PRODUCT",""],["INVENTORY",""],[3,"onSubmit","filterChange","hideSearchBox","pageData","isFilterOnDropdown","filter"],[1,"content"],[1,"container-fluid","bg-light-gray","p-8"],[1,"row"],[1,"col-12"],[1,"card","mb-0"],[1,"dialog-filter"],["appendTo","body","placeholder","Select Outlets",3,"ngModelChange","multiple","accessType","ngModel"],[1,"card-body"],[1,"d-flex","flex-row","flex-nowrap","justify-content-between","align-items-center","overflow-auto",2,"column-gap","18px"],[1,"cursor-pointer","card-widget-tab"],[3,"dashboardConfig","chartData","filterByOutletIds"],[1,"cursor-pointer","card-widget-tab",3,"click"],["matTooltipPosition","above",3,"title","matTooltip","currencySymbol","value","showValue","isActive"],[3,"onFilter","dashboardConfig","chartData","filterByOutletIds"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"onFilter","dashboardConfig","chartData"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[3,"dashboardConfig","debtData"],[3,"dashboardConfig","productData"],[3,"dashboardConfig","inventoryData"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","160px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(i,n){if(i&1){let m=T();o(0,"mainpanel-cmp",7),V("onSubmit",function(){return b(m),x(n.onFilterByOutlet())}),ee("filterChange",function(J){return b(m),X(n.dashboardFilter,J)||(n.dashboardFilter=J),x(J)}),o(1,"filters"),S(2,ot,4,3,"ng-template",null,0,w),r(),o(4,"content")(5,"div",8)(6,"div",9)(7,"div",10)(8,"div",11),h(9,It,12,8,"div",12),c(10,"async"),r()()()()()(),S(11,Mt,11,1,"ng-template",null,1,w)}if(i&2){let m;p("hideSearchBox",!0)("pageData",n.menuData)("isFilterOnDropdown",!1),Q("filter",n.dashboardFilter),l(9),u((m=v(10,5,n.salesData$))?9:-1,m)}},dependencies:[$,Pe,Oe,xe,De,be,K,q,Ee,Se,ye,M,G],styles:[".card-widget-tab[_ngcontent-%COMP%]{flex:1 1 0px}@media only screen and (max-width: 767px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}@media only screen and (min-width: 768px) and (max-width: 991px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}"]})};export{ke as DashboardV2Component};
1
+ import{a as O,b as Ve}from"./chunk-QLSGGWTW.js";import"./chunk-GDRHD33K.js";import{c as Fe}from"./chunk-NSNUUKNK.js";import{c as Ee}from"./chunk-AB7O2ERM.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{e as Oe,f as Pe}from"./chunk-MZDVGN2B.js";import"./chunk-MJCLLJBB.js";import"./chunk-OB6KFXD6.js";import"./chunk-QJ3CWKQT.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-RWW55Z7V.js";import{a as Te,b as ve}from"./chunk-XPM7J5AN.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import"./chunk-3ZH3XK5V.js";import{b as ye,c as Se}from"./chunk-V6D6TV7B.js";import{N as we}from"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{F as xe,h as De,o as be}from"./chunk-7MRUPBXU.js";import"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import{b as Z}from"./chunk-KBLVOO4J.js";import{a as fe}from"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import"./chunk-TANYEHMZ.js";import{$ as Y,Ab as h,Ac as I,Bc as te,Cb as u,Cc as he,Eb as de,Fb as pe,Gb as ce,Ha as re,Hb as p,Hc as c,Ib as o,Ic as v,Jb as r,Jc as _,Kb as y,Nc as w,Qb as B,Rb as T,Sd as Ce,Ub as V,Ud as ge,Vc as ue,Wb as d,Xa as l,Y as P,Ya as le,aa as E,eb as F,ec as g,ib as A,id as j,jc as s,kc as W,lc as C,mb as se,mc as me,ob as S,oc as Q,pb as k,pc as X,pd as L,qc as ee,qd as M,sd as _e,t as D,ta as b,tb as R,ua as x,ub as N,ud as G,xd as $,yc as U,zc as f}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import{a as ne,b as oe}from"./chunk-SNAKHGZS.js";var H=class{Cost;Profit;Sales;SalesWithTax;Tax;Count;TopOutlet};var ae=t=>({"border-bottom":t}),ie=()=>["/menu/Reports/Sales_Report/Standard/Summary"],Be=(t,a,e)=>({From:t,To:a,ListIDs:e}),Le=t=>({today:t}),We=(t,a)=>({From:t,To:a});function $e(t,a){if(t&1){let e=T();o(0,"div",6)(1,"a",15),s(2),r(),o(3,"ul",16)(4,"li")(5,"a",17),V("click",function(){b(e);let n=d();return n.isTodayFilter=!n.isTodayFilter,x(n.onChangeFilterPeriod())}),s(6),r()()()()}if(t&2){let e=d();l(2),C(" ",e.isTodayFilter?"Today":"Last 7 Days"," "),l(),p("ngClass",I(3,Le,!e.isTodayFilter)),l(3),C(" ",e.isTodayFilter?"Last 7 Days":"Today"," ")}}function He(t,a){t&1&&(o(0,"span",7),s(1,"Today"),r())}function Ye(t,a){if(t&1&&(o(0,"div",18)(1,"a",9),c(2,"date"),c(3,"date"),o(4,"div",10),s(5,"Tax"),r(),o(6,"div",19)(7,"small",20),s(8),r(),o(9,"h2",11),s(10),c(11,"number"),r()()()(),o(12,"div",8)(13,"a",9),c(14,"date"),c(15,"date"),o(16,"div",10),s(17,"Sales + Tax"),r(),o(18,"div",19)(19,"small",20),s(20),r(),o(21,"h2",11),s(22),c(23,"number"),r()()()()),t&2){let e=d();l(),p("routerLink",f(27,ie))("queryParams",te(28,We,_(2,9,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(3,12,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(11,15,e.salesData==null?null:e.salesData.Tax,"1.0-0")," "),l(2),p("ngClass",I(31,ae,e.role.product.Cost)),l(),p("routerLink",f(33,ie))("queryParams",te(34,We,_(14,18,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(15,21,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(23,24,e.salesData==null?null:e.salesData.SalesWithTax,"1.0-0")," ")}}function Ue(t,a){if(t&1&&(o(0,"div",8)(1,"div")(2,"div",21),s(3,"Cost"),r(),o(4,"div",19)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),c(9,"number"),r()()()()),t&2){let e=d();p("ngClass",I(6,ae,e.role.report.Profit)),l(6),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Cost,"1.0-0")," ")}}function je(t,a){if(t&1&&(o(0,"div",12)(1,"div")(2,"div",22),s(3),r(),o(4,"div",23)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),c(9,"number"),r()()()()),t&2){let e=d();l(3),C(" ",e.includeTax?"Gross Profit":"Profit"," "),l(3),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Profit,"1.0-0")," ")}}var K=class t{constructor(a,e){this.dashboardService=a;this.role=e;this.chartConfig=this.dashboardService.getLineChartConfig()}chartData;salesData;dashboardConfig;filterSalesWidget=new le;chartConfig;todaySalesData;weeklySalesData;isTodayFilter=!0;showPeriodFilter;includeTax;today=new Date;dateTo;filterByOutletIds=ue([]);ngOnChanges(a){if(a.chartData&&a.chartData.currentValue){this.initSalesData();let e=a?.chartData?.currentValue?.Series;e=this.setChartLineColor(e),e=this.setSalesTaxLegend(e),this.chartConfig=oe(ne({},this.chartConfig),{series:e}),this.chartConfig=this.dashboardService.setSeriesPointStart(this.chartData.From,this.chartConfig),this.initPeriodFilter(e),this.getDateTo()}}initPeriodFilter(a){this.showPeriodFilter=a[0]?.data?.length>=7}initSalesData(){this.salesData=new H,this.includeTax=this.isIncludeTax(),this.salesData.Sales=this.dashboardService.getTotalData("Sales",this.chartData.Series,1),this.salesData.SalesWithTax=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,1),this.salesData.Cost=this.dashboardService.getTotalData("Cost",this.chartData.Series,1),this.salesData.Tax=this.salesData.SalesWithTax-this.salesData.Sales,this.salesData.Profit=(this.includeTax?this.salesData.SalesWithTax:this.salesData.Sales)-this.salesData.Cost,this.salesData.Count=this.dashboardService.getTotalData("Count",this.chartData.Series,1),this.todaySalesData=Fe(H,this.salesData)}setChartLineColor(a=[]){return a?.map(e=>(e.name=="Sales"&&(e.color="rgb(44, 175, 254)",e.fillColor=this.dashboardService.getLinierGradient("rgb(44, 175, 254)")),e.name=="Cost"&&(e.color="#fb404b",e.fillColor=this.dashboardService.getLinierGradient("#fb404b")),e.name=="Sales + Tax"&&(e.color="#2ECC71",e.fillColor=this.dashboardService.getLinierGradient("#2ECC71")),e))}onChangeFilterPeriod(){this.isTodayFilter?this.salesData=this.todaySalesData:(this.generateWeeklySalesData(),this.salesData=this.weeklySalesData),this.filterSalesWidget.emit({period:this.isTodayFilter?"TODAY":"WEEKLY"})}getDateTo(){let a=new Date,e=new Date(this.chartData.From);a.setDate(e.getDate()+7),this.dateTo=a}generateWeeklySalesData(){if(fe.IsEmpty(this.weeklySalesData)){let a=this.dashboardService.getTotalData("Sales",this.chartData.Series,7),e=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,7),i=this.dashboardService.getTotalData("Cost",this.chartData.Series,7),n=this.dashboardService.getTotalData("Count",this.chartData.Series,7),m=e-a,z=(this.includeTax?e:a)-i;this.weeklySalesData=this.weeklySalesData?this.weeklySalesData:new H,this.weeklySalesData.Sales=a,this.weeklySalesData.SalesWithTax=e,this.weeklySalesData.Cost=i,this.weeklySalesData.Profit=z,this.weeklySalesData.Tax=m,this.weeklySalesData.Count=n}}isIncludeTax(){let a=this.chartData.Series;return this.dashboardService.filterSeriesByName("Sales + Tax",a).visible}setSalesTaxLegend(a){return a=a.map(e=>(e.name=="Sales + Tax"&&(e.showInLegend=this.salesData.Tax>0),e)),a}static \u0275fac=function(e){return new(e||t)(F(O),F(Z))};static \u0275cmp=A({type:t,selectors:[["app-sales-widget"]],inputs:{chartData:"chartData",dashboardConfig:"dashboardConfig",filterByOutletIds:[1,"filterByOutletIds"]},outputs:{filterSalesWidget:"onFilter"},features:[U([O]),re],decls:25,vars:30,consts:[[1,"d-flex","flex-row","flex-wrap","mt-8","justify-content-between"],[1,"chart-widget"],["containerId","salesChart",3,"config"],[1,"sales-card-widget"],[1,"border","rounded","rounded-bottom-0","px-8","py-4","w-100","h-auto"],[1,"border-bottom","d-flex","align-items-center","justify-content-end",2,"height","42px"],[1,"btn-group"],[1,"link-dark","fs-2","headings-font-family"],[1,"text-end","card-row","d-flex","align-items-center","justify-content-end",3,"ngClass"],["target","_blank",1,"link-dark",3,"routerLink","queryParams"],[1,"fs-5"],[1,"fw-normal"],[1,"text-end","d-flex","align-items-center","justify-content-end","card-row"],[1,"card-footer","border","rounded-bottom","border-top-0","text-end","p-3"],["routerLink","/menu/Setup/Configuration/Application"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"dropdown-toggle","link-dark","fs-2","headings-font-family"],[1,"dropdown-menu","p-0",2,"position","absolute","right","20px !important",3,"ngClass"],["role","button",1,"dropdown-item","fs-4",3,"click"],[1,"text-end","border-bottom","card-row","d-flex","align-items-center","justify-content-end"],[1,"d-flex","align-items-center","justify-content-end"],[1,"me-2"],[1,"fs-5","text-danger"],[1,"fs-5","text-success"],[1,"d-flex","align-items-center"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1),y(2,"app-chart-container",2),r(),o(3,"div",3)(4,"div",4)(5,"div",5),h(6,$e,7,5,"div",6)(7,He,2,0,"span",7),r(),o(8,"div",8)(9,"a",9),c(10,"date"),c(11,"date"),o(12,"div",10),s(13,"Order"),r(),o(14,"h2",11),s(15),c(16,"number"),r()()(),h(17,Ye,24,37),h(18,Ue,10,8,"div",8),h(19,je,10,6,"div",12),r(),o(20,"div",13)(21,"a",14)(22,"small"),s(23),c(24,"date"),r()()()()()),e&2&&(l(2),p("config",i.chartConfig),l(4),u(!(i.role==null||i.role.dashboard==null)&&i.role.dashboard.View&&i.showPeriodFilter?6:7),l(2),p("ngClass",I(23,ae,(i.salesData==null?null:i.salesData.Tax)||i.role.product.Cost)),l(),p("routerLink",f(25,ie))("queryParams",he(26,Be,_(10,11,i.isTodayFilter?i.today:i.chartData==null?null:i.chartData.From,"yyyy-MM-dd"),_(11,14,i.isTodayFilter?i.today:i.dateTo,"yyyy-MM-dd"),i.filterByOutletIds())),l(6),W(_(16,17,i.salesData==null?null:i.salesData.Count,"1.0-0")),l(2),u((i.salesData==null?null:i.salesData.Tax)>0?17:-1),l(),u(i.role.product.Cost?18:-1),l(),u(i.role.report.Profit&&i.role.product.Cost?19:-1),l(4),me("",_(24,20,i.dashboardConfig==null?null:i.dashboardConfig.SpanConfigTime,"dd MMM HH:mm")," ",i.dashboardConfig==null?null:i.dashboardConfig.SmallTimeZone))},dependencies:[$,j,Ve,ge,Ce,we,G,_e],styles:[".chart-widget[_ngcontent-%COMP%]{width:80%}.link-dark[_ngcontent-%COMP%]{color:#333!important}.dropdown-menu.show.today[_ngcontent-%COMP%]{inset:0 auto auto -34px!important}.sales-card-widget[_ngcontent-%COMP%]{width:19%}.sales-card-widget[_ngcontent-%COMP%] .card-row[_ngcontent-%COMP%]{height:64px}@media only screen and (max-width: 767px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}@media only screen and (min-width: 768px) and (max-width: 991px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}"]})};var Ge=t=>({active:t});function Ze(t,a){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"div",2)(3,"small",3),s(4),r(),o(5,"h2",4),s(6),r()()),t&2){let e=d();l(),W(e.title),l(3),W(e.currencySymbol),l(2),W(e.value)}}function Ke(t,a){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"h2",4),s(3,"-"),r()),t&2){let e=d();l(),W(e.title)}}var q=class t{title;isActive;currencySymbol;value;showValue;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["app-card-widget"]],inputs:{title:"title",isActive:"isActive",currencySymbol:"currencySymbol",value:"value",showValue:"showValue"},decls:3,vars:4,consts:[[1,"card-widget","pe-0",3,"ngClass"],[1,"fs-4","headings-font-family"],[1,"d-flex","justify-content-start","align-items-center"],[1,"fw-normal","me-2"],[1,"fw-normal"]],template:function(e,i){e&1&&(o(0,"div",0),h(1,Ze,7,3)(2,Ke,4,1),r()),e&2&&(p("ngClass",I(2,Ge,i.isActive)),l(),u(i.showValue?1:2))},dependencies:[$,j],styles:[".card-widget[_ngcontent-%COMP%]{padding:20px;border-radius:6px;min-height:95px;border:.5px solid #e4e4e4;width:100%}.active[_ngcontent-%COMP%]{background-color:#f0f0f0}@media only screen and (max-width: 767px){.card-widget[_ngcontent-%COMP%]{width:200px}}@media only screen and (min-width: 768px) and (max-width: 991px){.card-widget[_ngcontent-%COMP%]{width:200px}}"]})};var qe=()=>[L,import("./chunk-FMEMQRBJ.js").then(t=>t.PaymentWidgetComponent),M],ze=()=>[L,import("./chunk-WOAKN4QZ.js").then(t=>t.PurchaseWidgetComponent),M],Je=()=>[L,import("./chunk-TDHDQRJN.js").then(t=>t.DebtWidgetComponent),M],Qe=()=>[L,import("./chunk-4HJHXVYF.js").then(t=>t.ProductWidgetComponent),M],Xe=()=>[L,import("./chunk-ITTFNOLB.js").then(t=>t.InventoryWidgetComponent),M],et=()=>({role:"Payment View Role"}),tt=()=>({role:"Buy Report Role"}),it=()=>({role:"Debt View Role"}),at=()=>({role:"Report View Role"}),nt=()=>({role:"Inventory View Role"});function ot(t,a){if(t&1){let e=T();o(0,"div",13)(1,"h6"),s(2,"Outlet"),r(),o(3,"outlet-selector",14),ee("ngModelChange",function(n){b(e);let m=d();return X(m.dashboardFilter.Outlets,n)||(m.dashboardFilter.Outlets=n),x(n)}),r()()}if(t&2){let e=d();l(3),p("multiple",!0)("accessType",e.outletAccess),Q("ngModel",e.dashboardFilter.Outlets)}}function rt(t,a){if(t&1){let e=T();o(0,"div",19),V("click",function(){let n=b(e).$implicit,m=d(2);return x(m.onClickCardWidget(n))}),y(1,"app-card-widget",20),c(2,"number"),r()}if(t&2){let e=a.$implicit,i=d(),n=d();l(),p("title",e.title)("matTooltip",e.tooltip)("currencySymbol",i==null||i.ConfigData==null?null:i.ConfigData.CurrencySymbol)("value",e.value==null?"-":_(2,6,e.value,"1.0-0"))("showValue",e.showValue)("isActive",e.id==n.activeTab)}}function lt(t,a){if(t&1){let e=T();o(0,"app-sales-widget",21),V("onFilter",function(n){b(e);let m=d(2);return x(m.onFilterSalesWidget(n))}),r()}if(t&2){let e=d(),i=d();p("dashboardConfig",e==null?null:e.ConfigData)("chartData",e==null?null:e.HighChartData)("filterByOutletIds",i.dashboardFilter.Outlets)}}function st(t,a){t&1&&B(0)}function dt(t,a){if(t&1){let e=T();o(0,"app-payment-widget",23),c(1,"async"),V("onFilter",function(n){b(e);let m=d(4);return x(m.onFilterPaymentWidget(n))}),r()}if(t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("chartData",(e=v(1,2,n.paymentData$))==null?null:e.Data)}}function pt(t,a){if(t&1&&S(0,st,1,0,"ng-container",22)(1,dt,2,4,"ng-template",null,2,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.payment.View?e:n)("ngTemplateOutletContext",f(2,et))}}function ct(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function mt(t,a){t&1&&(k(0,pt,3,3)(1,ct,2,0),R(2,0,qe,null,1),N(0,-1))}function ht(t,a){t&1&&B(0)}function ut(t,a){if(t&1&&(y(0,"app-purchase-widget",18),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("chartData",(e=v(1,3,n.purchaseData$))==null?null:e.HighChartData)("filterByOutletIds",n.dashboardFilter.Outlets)}}function _t(t,a){if(t&1&&S(0,ht,1,0,"ng-container",22)(1,ut,2,5,"ng-template",null,3,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.buy.Report?e:n)("ngTemplateOutletContext",f(2,tt))}}function Ct(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function gt(t,a){t&1&&(k(0,_t,3,3)(1,Ct,2,0),R(2,0,ze,null,1),N(0,-1))}function ft(t,a){t&1&&B(0)}function Dt(t,a){if(t&1&&(y(0,"app-debt-widget",25),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("debtData",(e=v(1,2,n.debtData$))==null?null:e.PageData)}}function bt(t,a){if(t&1&&S(0,ft,1,0,"ng-container",22)(1,Dt,2,4,"ng-template",null,4,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.debt.View?e:n)("ngTemplateOutletContext",f(2,it))}}function xt(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function yt(t,a){t&1&&(k(0,bt,3,3)(1,xt,2,0),R(2,0,Je,null,1),N(0,-1))}function St(t,a){t&1&&B(0)}function Tt(t,a){if(t&1&&(y(0,"app-product-widget",26),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("productData",(e=v(1,2,n.productData$))==null?null:e.PageData)}}function vt(t,a){if(t&1&&S(0,St,1,0,"ng-container",22)(1,Tt,2,4,"ng-template",null,5,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.report.View?e:n)("ngTemplateOutletContext",f(2,at))}}function wt(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Ot(t,a){t&1&&(k(0,vt,3,3)(1,wt,2,0),R(2,0,Qe,null,1),N(0,-1))}function Pt(t,a){t&1&&B(0)}function Et(t,a){if(t&1&&(y(0,"app-inventory-widget",27),c(1,"async")),t&2){let e,i=d(3),n=d();p("dashboardConfig",i==null?null:i.ConfigData)("inventoryData",(e=v(1,2,n.inventoryData$))==null?null:e.PageData)}}function Ft(t,a){if(t&1&&S(0,Pt,1,0,"ng-container",22)(1,Et,2,4,"ng-template",null,6,w),t&2){let e=g(2),i=d(3),n=g(12);p("ngTemplateOutlet",i.role.inventory.View?e:n)("ngTemplateOutletContext",f(2,nt))}}function Vt(t,a){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Wt(t,a){t&1&&(k(0,Ft,3,3)(1,Vt,2,0),R(2,0,Xe,null,1),N(0,-1))}function It(t,a){if(t&1&&(o(0,"div",12)(1,"div",15)(2,"div",16),pe(3,rt,3,9,"div",17,de),c(5,"async"),r(),h(6,lt,1,3,"app-sales-widget",18),h(7,mt,4,0),h(8,gt,4,0),h(9,yt,4,0),h(10,Ot,4,0),h(11,Wt,4,0),r()()),t&2){let e=d();l(3),ce(v(5,6,e.cardWidget$)),l(3),u(e.activeTab=="SALES"?6:-1),l(),u(e.activeTab=="PAYMENT"?7:-1),l(),u(e.activeTab=="PURCHASE"?8:-1),l(),u(e.activeTab=="DEBT"?9:-1),l(),u(e.activeTab=="PRODUCT"?10:-1),l(),u(e.activeTab=="INVENTORY"?11:-1)}}function Mt(t,a){if(t&1&&(o(0,"div",24)(1,"div",28)(2,"div"),y(3,"img",29),r(),o(4,"h1",30),s(5,"You are not authorized"),r(),o(6,"p"),s(7," This page requires role "),o(8,"span",31),s(9),r(),s(10," to be accessed. Please contact your Administrator to gain access! "),r()()()),t&2){let e=a.role;l(9),C("[",e,"]")}}var ke=class t extends Te{constructor(e,i,n){super(e);this.dashboardService=i;this.role=n;this.menuData$.subscribe(),this.initSalesData(),this.initCardWidget(),this.initPaymentData(),this.initPurchaseData(),this.initInventoryData(),this.initDebtData(),this.initProductData()}cardWidget$;outletAccess=2;dashboardFilter={Outlets:[]};salesData$;paymentData$;purchaseData$;debtData$;productData$;inventoryData$;activeTab="SALES";initSalesData(){this.salesData$=this.dashboardService.getDashboardSales(this.dashboardFilter).pipe(P(1))}initPaymentData(){this.paymentData$=this.dashboardService.getDashboardPayment(this.dashboardFilter).pipe(P(1))}initPurchaseData(){this.purchaseData$=this.dashboardService.getDashboardPurchase(this.dashboardFilter).pipe(P(1))}initDebtData(){this.debtData$=this.dashboardService.getDashboardDebt(this.dashboardFilter).pipe(P(1))}initProductData(){this.productData$=this.dashboardService.getDashboardProduct(this.dashboardFilter).pipe(P(1))}initInventoryData(){this.inventoryData$=this.dashboardService.getDashboardInventory(this.dashboardFilter).pipe(P(1))}initCardWidget(){switch(this.activeTab){case"SALES":this.cardWidget$=this.salesData$.pipe(D(e=>this.dashboardService.getTotalData("Sales",e.HighChartData.Series,1)),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break;case"PAYMENT":this.cardWidget$=this.paymentData$.pipe(D(e=>this.dashboardService.getTotalData("All",e.Data.Series,1)),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break;case"PURCHASE":this.cardWidget$=this.purchaseData$.pipe(D(e=>this.dashboardService.getTotalData("Purchase",e.HighChartData.Series,1)),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break;case"DEBT":this.cardWidget$=this.debtData$.pipe(D(e=>e.PageData.Receivable),Y(0),E(e=>this.dashboardService.setWidgetData(e,this.activeTab)));break}}onFilterByOutlet(){switch(this.activeTab){case"SALES":this.initSalesData(),this.initCardWidget();break;case"PURCHASE":this.initPurchaseData(),this.initCardWidget();break;case"DEBT":this.initDebtData(),this.initCardWidget();break;case"PRODUCT":this.initProductData();break;case"INVENTORY":this.initInventoryData();break;case"PAYMENT":this.initPaymentData();break}}onClickCardWidget(e){this.activeTab=e.id,this.initCardWidget()}onFilterSalesWidget(e){this.cardWidget$=this.salesData$.pipe(D(i=>e.period=="WEEKLY"?this.dashboardService.getTotalData("Sales",i.HighChartData.Series,7):this.dashboardService.getTotalData("Sales",i.HighChartData.Series,1)),E(i=>(this.dashboardService.setWidgetData(i,"SALES"),this.dashboardService.widgets$)),D(i=>i.map(n=>(n.id=="SALES"&&(n.tooltip=e.period=="TODAY"?"Total Sales Today":"Total Sales last 7 days"),n))))}onFilterPaymentWidget(e){this.cardWidget$=this.paymentData$.pipe(D(i=>e.period=="WEEKLY"?this.dashboardService.getTotalData("All",i.Data.Series,7):this.dashboardService.getTotalData("All",i.Data.Series,1)),E(i=>(this.dashboardService.setWidgetData(i,"PAYMENT"),this.dashboardService.widgets$)),D(i=>i.map(n=>(n.id=="PAYMENT"&&(n.tooltip=e.period=="TODAY"?"Total Payment Today":"Total Payment last 7 days"),n))))}static \u0275fac=function(i){return new(i||t)(F(ve),F(O),F(Z))};static \u0275cmp=A({type:t,selectors:[["POS-dashboard-v2"]],features:[U([O]),se],decls:13,vars:7,consts:[["pageFilterTemplate",""],["NOT_AUTHORIZED",""],["PAYMENT",""],["BUY",""],["DEBT",""],["PRODUCT",""],["INVENTORY",""],[3,"onSubmit","filterChange","hideSearchBox","pageData","isFilterOnDropdown","filter"],[1,"content"],[1,"container-fluid","bg-light-gray","p-8"],[1,"row"],[1,"col-12"],[1,"card","mb-0"],[1,"dialog-filter"],["appendTo","body","placeholder","Select Outlets",3,"ngModelChange","multiple","accessType","ngModel"],[1,"card-body"],[1,"d-flex","flex-row","flex-nowrap","justify-content-between","align-items-center","overflow-auto",2,"column-gap","18px"],[1,"cursor-pointer","card-widget-tab"],[3,"dashboardConfig","chartData","filterByOutletIds"],[1,"cursor-pointer","card-widget-tab",3,"click"],["matTooltipPosition","above",3,"title","matTooltip","currencySymbol","value","showValue","isActive"],[3,"onFilter","dashboardConfig","chartData","filterByOutletIds"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"onFilter","dashboardConfig","chartData"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[3,"dashboardConfig","debtData"],[3,"dashboardConfig","productData"],[3,"dashboardConfig","inventoryData"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","160px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(i,n){if(i&1){let m=T();o(0,"mainpanel-cmp",7),V("onSubmit",function(){return b(m),x(n.onFilterByOutlet())}),ee("filterChange",function(J){return b(m),X(n.dashboardFilter,J)||(n.dashboardFilter=J),x(J)}),o(1,"filters"),S(2,ot,4,3,"ng-template",null,0,w),r(),o(4,"content")(5,"div",8)(6,"div",9)(7,"div",10)(8,"div",11),h(9,It,12,8,"div",12),c(10,"async"),r()()()()()(),S(11,Mt,11,1,"ng-template",null,1,w)}if(i&2){let m;p("hideSearchBox",!0)("pageData",n.menuData)("isFilterOnDropdown",!1),Q("filter",n.dashboardFilter),l(9),u((m=v(10,5,n.salesData$))?9:-1,m)}},dependencies:[$,Pe,Oe,xe,De,be,K,q,Ee,Se,ye,M,G],styles:[".card-widget-tab[_ngcontent-%COMP%]{flex:1 1 0px}@media only screen and (max-width: 767px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}@media only screen and (min-width: 768px) and (max-width: 991px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}"]})};export{ke as DashboardV2Component};
@@ -1 +1 @@
1
- import{Ab as p,Bb as f,Ca as I,Db as g,Eb as h,Jb as l,Kb as c,Lb as w,Pb as v,Qb as b,Tb as y,Ub as o,Xa as r,ec as P,gc as T,hc as s,ib as E,jc as _,kc as A,ta as u,ua as C,wb as S,yb as m}from"./chunk-IEVGW2RT.js";function M(n,e){if(n&1&&s(0),n&2){let t=o().$implicit,i=o(3);_(" x",i.items[0][t]," ")}}function O(n,e){if(n&1&&s(0),n&2){let t=o().$implicit,i=o(3);_(" ",i.items[0][t]," ")}}function F(n,e){if(n&1&&m(0,M,1,1)(1,O,1,1),n&2){let t=e.$implicit,i=o(3);p(i.isQuantityProperty(t)&&i.items[0][t]>1?0:i.isQuantityProperty(t)?-1:1)}}function $(n,e){if(n&1&&g(0,F,2,1,null,null,f),n&2){let t=o(2);h(t.columnShow)}}function V(n,e){if(n&1&&s(0),n&2){let t=o(2);_(" ",t.items[0]," ")}}function L(n,e){if(n&1&&(l(0,"span",7),s(1),c()),n&2){let t=o(2);r(),A("",t.items.length," ",`${t.badgeLabel}`)}}function j(n,e){if(n&1){let t=v();l(0,"button",13),y("click",function(){u(t);let a=o(2);return C(a.initializeFiltered(a.items))}),c()}if(n&2){let t=o(2);S("data-bs-target","#panelCollapse-"+t.index)("aria-controls","panelCollapse-"+t.index)}}function Q(n,e){if(n&1){let t=v();l(0,"div",11),w(1,"i",14),l(2,"input",15,0),y("input",function(a){u(t);let d=o(2);return C(d.onSearchItems(a,d.items))})("keyup.enter",function(a){u(t);let d=o(2);return C(d.onSearchItems(a,d.items))}),c()()}if(n&2){let t=o(2);r(2),b("placeholder",`${"Search "+t.label+"..."}`)}}function z(n,e){if(n&1&&(l(0,"div",12)(1,"p",16),s(2),c()()),n&2){let t=o(2);r(2),_(" No ",t.label," found ")}}function D(n,e){if(n&1&&s(0),n&2){let t=o(2).$implicit,i=o(2).$implicit;_(" x",i.value[t]," ")}}function N(n,e){if(n&1&&s(0),n&2){let t=o(2).$implicit,i=o(2).$implicit;_(" ",i.value[t]," ")}}function B(n,e){if(n&1&&(l(0,"div",22),m(1,D,1,1)(2,N,1,1),c()),n&2){let t=o(),i=t.$implicit,a=t.$index,d=o(2).$implicit,x=o(3);P("text-end",a>0),r(),p(x.isQuantityProperty(i)&&d.value[i]>1?1:x.isQuantityProperty(i)?-1:2)}}function W(n,e){if(n&1&&m(0,B,3,3,"div",21),n&2){let t=e.$implicit,i=o(2).$implicit,a=o(3);p(a.isQuantityProperty(t)&&i.value[t]<=1?-1:0)}}function q(n,e){if(n&1&&(l(0,"div",18),g(1,W,1,1,null,null,f),c()),n&2){let t=o(4);r(),h(t.columnShow)}}function Y(n,e){if(n&1&&s(0),n&2){let t=o().$implicit;_(" ",t.value," ")}}function G(n,e){if(n&1&&(l(0,"div",17)(1,"div",18)(2,"div",19),s(3),c(),l(4,"div",20),m(5,q,3,0,"div",18)(6,Y,1,1),c()()()),n&2){let t=e.$implicit,i=o(3);r(3),_(" ",t.index," "),r(2),p(i.columnShow&&i.columnShow.length>0&&typeof t.value=="object"?5:6)}}function H(n,e){if(n&1&&g(0,G,7,2,"div",17,f),n&2){let t=o(2);h(t.filteredItems())}}function J(n,e){if(n&1&&(l(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"span"),w(5,"i",5),c(),l(6,"span",6),s(7),m(8,$,2,0)(9,V,1,1),c(),m(10,L,2,2,"span",7),c(),m(11,j,1,2,"button",8),c(),l(12,"div",9)(13,"div",10),m(14,Q,4,1,"div",11),m(15,z,3,1,"div",12)(16,H,2,0),c()()()()),n&2){let t=o();b("id","accordion-"+t.index),r(5),T(t.icon),r(2),_("",t.label,": "),r(),p(t.columnShow&&t.columnShow.length>0&&typeof t.items[0]=="object"?8:9),r(2),p(t.items.length>1?10:-1),r(),p(t.items.length>1?11:-1),r(),b("id","panelCollapse-"+t.index),r(2),p(t.items.length>10?14:-1),r(),p(t.filteredItems().length==0?15:16)}}var k=class n{items;label;badgeLabel;keyValue;index;fullWidth=!1;columnShow=[];icon;filteredItems=I([]);ngOnInit(){if(this.items&&this.items.length>0){if(this.columnShow&&this.columnShow.length>0){this.items=this.items;return}if(typeof this.items[0]=="object"&&this.keyValue){this.items=this.items.map(e=>e[this.keyValue]);return}this.items=this.items}}initializeFiltered(e){this.filteredItems.set(e.map((t,i)=>({index:i+1,value:t})))}onSearchItems(e,t){let i=e.target.value.toString().toLowerCase();if(!i){this.filteredItems.set(t.map((a,d)=>({index:d+1,value:a})));return}this.filteredItems.set(t.map((a,d)=>({index:d+1,value:a})).filter(a=>typeof a.value=="object"&&this.columnShow&&this.columnShow.length>0?this.columnShow.some(d=>{let x=a.value[d];return x&&x.toString().toLowerCase().includes(i)}):a.value.toString().toLowerCase().includes(i)))}isShowColumn(e){if(this.columnShow&&this.columnShow.length>0)return this.columnShow.includes(e)}isQuantityProperty(e){if(!e)return!1;let t=e.toLowerCase();return t.includes("quantity")||t.includes("qty")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=E({type:n,selectors:[["POS-item-accordion"]],inputs:{items:"items",label:"label",badgeLabel:"badgeLabel",keyValue:"keyValue",index:"index",fullWidth:"fullWidth",columnShow:"columnShow",icon:"icon"},decls:1,vars:1,consts:[["searchInput",""],[1,"accordion","accordion-wrapper",3,"id"],[1,"accordion-item","accordion-item-wrapper"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","gap-4","align-items-center"],["aria-hidden","true"],[1,"text-muted"],[1,"ms-2","badge","total-badge","text-dark","rounded-pill"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"accordion-button","d-flex","justify-content-center","align-items-center","accordion-button-wrapper","collapsed"],[1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body","accordion-body-wrapper"],[1,"input-wrapper"],[1,"no-data-wrapper"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"accordion-button","d-flex","justify-content-center","align-items-center","accordion-button-wrapper","collapsed",3,"click"],[1,"fa","fa-search","search-icon"],["type","text",3,"input","keyup.enter","placeholder"],[1,"text-center","fst-italic","text-muted",2,"margin-top","18px"],[1,"accordion-body-item"],[1,"row"],[1,"col-2","number-wrapper"],[1,"col-10"],[1,"col",2,"padding","0","padding-right","16px",3,"text-end"],[1,"col",2,"padding","0","padding-right","16px"]],template:function(t,i){t&1&&m(0,J,17,10,"div",1),t&2&&p(i.items&&i.items.length>0?0:-1)},styles:[".accordion-wrapper[_ngcontent-%COMP%]{border:0px!important}.accordion-item-wrapper[_ngcontent-%COMP%]{border:none!important;padding:0}.accordion-button-wrapper[_ngcontent-%COMP%]{padding:0;margin-left:10px;width:20px;height:20px;box-shadow:none!important;border:1px solid #d4d8db!important;border-radius:100%;min-height:auto;position:relative;background-color:#ddd;transition:all .3s ease}.accordion-button-wrapper[_ngcontent-%COMP%]:after{filter:brightness(0)!important}.accordion-button-wrapper[_ngcontent-%COMP%]:hover{background-color:#6c757d;scale:1.1}.accordion-button-wrapper[_ngcontent-%COMP%]:hover:after{filter:brightness(0) invert(1)!important}.accordion-body-wrapper[_ngcontent-%COMP%]{border-left:3px solid #6c757d!important;background-color:#f8f9fa!important;padding:12px;margin-top:10px;border-radius:10px}.accordion-button[_ngcontent-%COMP%]:after{display:flex;align-items:center!important;justify-content:center!important;position:static!important;margin:0!important;width:.8rem!important;height:.8rem!important;background-size:.8rem!important;color:#000!important}.total-badge[_ngcontent-%COMP%]{background-color:#d7dade;height:fit-content}.accordion-body-item[_ngcontent-%COMP%]{padding:8px;border:1px solid #dee2e6;border-radius:5px;background-color:#fff;margin-bottom:4px;transition:all .2s ease-in-out}.accordion-body-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000001a;border:1px solid #6c757d}.input-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;margin-bottom:12px}.input-wrapper[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding-left:32px;height:40px;border:1px solid #ced4da;border-radius:6px;outline:none}.search-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:12px;color:#6c757d}.number-wrapper[_ngcontent-%COMP%]{padding-right:0;padding-left:16px;text-wrap:nowrap}"]})};export{k as a};
1
+ import{Ab as m,Ca as I,Cb as p,Db as f,Fb as g,Gb as h,Lb as l,Mb as c,Nb as w,Rb as v,Sb as b,Vb as y,Wb as o,Xa as r,gc as P,ib as E,ic as T,jc as s,lc as _,mc as A,ta as u,ua as C,wb as S}from"./chunk-L3U6V3BF.js";function M(n,e){if(n&1&&s(0),n&2){let t=o().$implicit,i=o(3);_(" x",i.items[0][t]," ")}}function O(n,e){if(n&1&&s(0),n&2){let t=o().$implicit,i=o(3);_(" ",i.items[0][t]," ")}}function F(n,e){if(n&1&&m(0,M,1,1)(1,O,1,1),n&2){let t=e.$implicit,i=o(3);p(i.isQuantityProperty(t)&&i.items[0][t]>1?0:i.isQuantityProperty(t)?-1:1)}}function $(n,e){if(n&1&&g(0,F,2,1,null,null,f),n&2){let t=o(2);h(t.columnShow)}}function V(n,e){if(n&1&&s(0),n&2){let t=o(2);_(" ",t.items[0]," ")}}function L(n,e){if(n&1&&(l(0,"span",7),s(1),c()),n&2){let t=o(2);r(),A("",t.items.length," ",`${t.badgeLabel}`)}}function j(n,e){if(n&1){let t=v();l(0,"button",13),y("click",function(){u(t);let a=o(2);return C(a.initializeFiltered(a.items))}),c()}if(n&2){let t=o(2);S("data-bs-target","#panelCollapse-"+t.index)("aria-controls","panelCollapse-"+t.index)}}function Q(n,e){if(n&1){let t=v();l(0,"div",11),w(1,"i",14),l(2,"input",15,0),y("input",function(a){u(t);let d=o(2);return C(d.onSearchItems(a,d.items))})("keyup.enter",function(a){u(t);let d=o(2);return C(d.onSearchItems(a,d.items))}),c()()}if(n&2){let t=o(2);r(2),b("placeholder",`${"Search "+t.label+"..."}`)}}function z(n,e){if(n&1&&(l(0,"div",12)(1,"p",16),s(2),c()()),n&2){let t=o(2);r(2),_(" No ",t.label," found ")}}function D(n,e){if(n&1&&s(0),n&2){let t=o(2).$implicit,i=o(2).$implicit;_(" x",i.value[t]," ")}}function N(n,e){if(n&1&&s(0),n&2){let t=o(2).$implicit,i=o(2).$implicit;_(" ",i.value[t]," ")}}function B(n,e){if(n&1&&(l(0,"div",22),m(1,D,1,1)(2,N,1,1),c()),n&2){let t=o(),i=t.$implicit,a=t.$index,d=o(2).$implicit,x=o(3);P("text-end",a>0),r(),p(x.isQuantityProperty(i)&&d.value[i]>1?1:x.isQuantityProperty(i)?-1:2)}}function W(n,e){if(n&1&&m(0,B,3,3,"div",21),n&2){let t=e.$implicit,i=o(2).$implicit,a=o(3);p(a.isQuantityProperty(t)&&i.value[t]<=1?-1:0)}}function q(n,e){if(n&1&&(l(0,"div",18),g(1,W,1,1,null,null,f),c()),n&2){let t=o(4);r(),h(t.columnShow)}}function Y(n,e){if(n&1&&s(0),n&2){let t=o().$implicit;_(" ",t.value," ")}}function G(n,e){if(n&1&&(l(0,"div",17)(1,"div",18)(2,"div",19),s(3),c(),l(4,"div",20),m(5,q,3,0,"div",18)(6,Y,1,1),c()()()),n&2){let t=e.$implicit,i=o(3);r(3),_(" ",t.index," "),r(2),p(i.columnShow&&i.columnShow.length>0&&typeof t.value=="object"?5:6)}}function H(n,e){if(n&1&&g(0,G,7,2,"div",17,f),n&2){let t=o(2);h(t.filteredItems())}}function J(n,e){if(n&1&&(l(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"span"),w(5,"i",5),c(),l(6,"span",6),s(7),m(8,$,2,0)(9,V,1,1),c(),m(10,L,2,2,"span",7),c(),m(11,j,1,2,"button",8),c(),l(12,"div",9)(13,"div",10),m(14,Q,4,1,"div",11),m(15,z,3,1,"div",12)(16,H,2,0),c()()()()),n&2){let t=o();b("id","accordion-"+t.index),r(5),T(t.icon),r(2),_("",t.label,": "),r(),p(t.columnShow&&t.columnShow.length>0&&typeof t.items[0]=="object"?8:9),r(2),p(t.items.length>1?10:-1),r(),p(t.items.length>1?11:-1),r(),b("id","panelCollapse-"+t.index),r(2),p(t.items.length>10?14:-1),r(),p(t.filteredItems().length==0?15:16)}}var k=class n{items;label;badgeLabel;keyValue;index;fullWidth=!1;columnShow=[];icon;filteredItems=I([]);ngOnInit(){if(this.items&&this.items.length>0){if(this.columnShow&&this.columnShow.length>0){this.items=this.items;return}if(typeof this.items[0]=="object"&&this.keyValue){this.items=this.items.map(e=>e[this.keyValue]);return}this.items=this.items}}initializeFiltered(e){this.filteredItems.set(e.map((t,i)=>({index:i+1,value:t})))}onSearchItems(e,t){let i=e.target.value.toString().toLowerCase();if(!i){this.filteredItems.set(t.map((a,d)=>({index:d+1,value:a})));return}this.filteredItems.set(t.map((a,d)=>({index:d+1,value:a})).filter(a=>typeof a.value=="object"&&this.columnShow&&this.columnShow.length>0?this.columnShow.some(d=>{let x=a.value[d];return x&&x.toString().toLowerCase().includes(i)}):a.value.toString().toLowerCase().includes(i)))}isShowColumn(e){if(this.columnShow&&this.columnShow.length>0)return this.columnShow.includes(e)}isQuantityProperty(e){if(!e)return!1;let t=e.toLowerCase();return t.includes("quantity")||t.includes("qty")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=E({type:n,selectors:[["POS-item-accordion"]],inputs:{items:"items",label:"label",badgeLabel:"badgeLabel",keyValue:"keyValue",index:"index",fullWidth:"fullWidth",columnShow:"columnShow",icon:"icon"},decls:1,vars:1,consts:[["searchInput",""],[1,"accordion","accordion-wrapper",3,"id"],[1,"accordion-item","accordion-item-wrapper"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","gap-4","align-items-center"],["aria-hidden","true"],[1,"text-muted"],[1,"ms-2","badge","total-badge","text-dark","rounded-pill"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"accordion-button","d-flex","justify-content-center","align-items-center","accordion-button-wrapper","collapsed"],[1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body","accordion-body-wrapper"],[1,"input-wrapper"],[1,"no-data-wrapper"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"accordion-button","d-flex","justify-content-center","align-items-center","accordion-button-wrapper","collapsed",3,"click"],[1,"fa","fa-search","search-icon"],["type","text",3,"input","keyup.enter","placeholder"],[1,"text-center","fst-italic","text-muted",2,"margin-top","18px"],[1,"accordion-body-item"],[1,"row"],[1,"col-2","number-wrapper"],[1,"col-10"],[1,"col",2,"padding","0","padding-right","16px",3,"text-end"],[1,"col",2,"padding","0","padding-right","16px"]],template:function(t,i){t&1&&m(0,J,17,10,"div",1),t&2&&p(i.items&&i.items.length>0?0:-1)},styles:[".accordion-wrapper[_ngcontent-%COMP%]{border:0px!important}.accordion-item-wrapper[_ngcontent-%COMP%]{border:none!important;padding:0}.accordion-button-wrapper[_ngcontent-%COMP%]{padding:0;margin-left:10px;width:20px;height:20px;box-shadow:none!important;border:1px solid #d4d8db!important;border-radius:100%;min-height:auto;position:relative;background-color:#ddd;transition:all .3s ease}.accordion-button-wrapper[_ngcontent-%COMP%]:after{filter:brightness(0)!important}.accordion-button-wrapper[_ngcontent-%COMP%]:hover{background-color:#6c757d;scale:1.1}.accordion-button-wrapper[_ngcontent-%COMP%]:hover:after{filter:brightness(0) invert(1)!important}.accordion-body-wrapper[_ngcontent-%COMP%]{border-left:3px solid #6c757d!important;background-color:#f8f9fa!important;padding:12px;margin-top:10px;border-radius:10px}.accordion-button[_ngcontent-%COMP%]:after{display:flex;align-items:center!important;justify-content:center!important;position:static!important;margin:0!important;width:.8rem!important;height:.8rem!important;background-size:.8rem!important;color:#000!important}.total-badge[_ngcontent-%COMP%]{background-color:#d7dade;height:fit-content}.accordion-body-item[_ngcontent-%COMP%]{padding:8px;border:1px solid #dee2e6;border-radius:5px;background-color:#fff;margin-bottom:4px;transition:all .2s ease-in-out}.accordion-body-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000001a;border:1px solid #6c757d}.input-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;margin-bottom:12px}.input-wrapper[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding-left:32px;height:40px;border:1px solid #ced4da;border-radius:6px;outline:none}.search-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:12px;color:#6c757d}.number-wrapper[_ngcontent-%COMP%]{padding-right:0;padding-left:16px;text-wrap:nowrap}"]})};export{k as a};