dealpos 25.48.2 → 25.48.4

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 (319) hide show
  1. package/browser/{chunk-IFOBYW26.js → chunk-25H27N7N.js} +1 -1
  2. package/browser/{chunk-BA3BDB5Y.js → chunk-26YFRPR2.js} +1 -1
  3. package/browser/{chunk-JEL3OND6.js → chunk-2CL5FM3P.js} +1 -1
  4. package/browser/chunk-2MPRVJXH.js +1 -0
  5. package/browser/{chunk-CA6YBQT3.js → chunk-2VE2WNSA.js} +1 -1
  6. package/browser/{chunk-MVUVDYGQ.js → chunk-32QBWLTN.js} +1 -1
  7. package/browser/chunk-335MTOI2.js +1 -0
  8. package/browser/{chunk-HL3ONSX6.js → chunk-363IDTE3.js} +1 -1
  9. package/browser/chunk-36GWLMZX.js +1 -0
  10. package/browser/chunk-3CSCTT6I.js +1 -0
  11. package/browser/{chunk-MFLQHYOR.js → chunk-3DSF6ERB.js} +1 -1
  12. package/browser/chunk-3HZIDGPN.js +1 -0
  13. package/browser/chunk-3R6XTRIS.js +1 -0
  14. package/browser/{chunk-R36QPCUA.js → chunk-443UJP4E.js} +1 -1
  15. package/browser/{chunk-534MIVWD.js → chunk-45E6XCHN.js} +1 -1
  16. package/browser/{chunk-UTAQ3FRE.js → chunk-4BXCIT62.js} +1 -1
  17. package/browser/{chunk-CFU6YCXT.js → chunk-4CPJUJ5L.js} +1 -1
  18. package/browser/{chunk-VP2ZEIJA.js → chunk-4CPRMZL6.js} +1 -1
  19. package/browser/{chunk-YV4LSCS5.js → chunk-4F7IU5IR.js} +1 -1
  20. package/browser/chunk-4HEJOI53.js +1 -0
  21. package/browser/chunk-4IBCJLJE.js +1 -0
  22. package/browser/{chunk-3OHHXDTW.js → chunk-4KGHH5FV.js} +1 -1
  23. package/browser/{chunk-QIJEAKQK.js → chunk-4OEDK7YE.js} +1 -1
  24. package/browser/{chunk-R4OHTTCT.js → chunk-4SRWAPD4.js} +1 -1
  25. package/browser/chunk-4W3WYXI2.js +1 -0
  26. package/browser/chunk-4XJWQAS6.js +1 -0
  27. package/browser/{chunk-SWPKQM2X.js → chunk-4ZITX27A.js} +1 -1
  28. package/browser/chunk-53VS5DA7.js +1 -0
  29. package/browser/chunk-57GKJ4WM.js +1 -0
  30. package/browser/{chunk-OTUYSGSK.js → chunk-5THS2GXN.js} +1 -1
  31. package/browser/{chunk-XACC6EMJ.js → chunk-5USF4MRW.js} +1 -1
  32. package/browser/chunk-5VQTC5KM.js +1 -0
  33. package/browser/{chunk-GN3HVOCN.js → chunk-5ZD6KTDH.js} +1 -1
  34. package/browser/chunk-6BXLBSVS.js +1 -0
  35. package/browser/{chunk-7NOKG3UC.js → chunk-6C2HPRJZ.js} +1 -1
  36. package/browser/chunk-6GBUH4A7.js +1 -0
  37. package/browser/{chunk-M43HNBJQ.js → chunk-6P2ASCNY.js} +1 -1
  38. package/browser/{chunk-LOD3JYZW.js → chunk-6WATOQG3.js} +1 -1
  39. package/browser/{chunk-CSFFF2YO.js → chunk-72RZBOHX.js} +1 -1
  40. package/browser/{chunk-6EJSHQWL.js → chunk-73R34UN3.js} +1 -1
  41. package/browser/chunk-7BQKGIZM.js +1 -0
  42. package/browser/chunk-7BVPHIEF.js +1 -0
  43. package/browser/chunk-7DAPNQYU.js +1 -0
  44. package/browser/{chunk-ZRYRGDGM.js → chunk-7F4QLFQQ.js} +1 -1
  45. package/browser/{chunk-5IAWFOXD.js → chunk-7JULWG2B.js} +1 -1
  46. package/browser/{chunk-NWSIPELM.js → chunk-7P3L3ODB.js} +1 -1
  47. package/browser/{chunk-X57HWGVJ.js → chunk-7YUPYNWQ.js} +1 -1
  48. package/browser/chunk-A2EVMYAR.js +1 -0
  49. package/browser/chunk-A2HQD76V.js +1 -0
  50. package/browser/{chunk-I7FZGSZZ.js → chunk-A2R2SRZS.js} +1 -1
  51. package/browser/{chunk-JCTDWAYQ.js → chunk-A565EUMD.js} +1 -1
  52. package/browser/{chunk-AEXXXOEQ.js → chunk-AQW4VS3Y.js} +1 -1
  53. package/browser/{chunk-4HPBSK4V.js → chunk-ARYZHNFV.js} +1 -1
  54. package/browser/{chunk-HVJHE6PQ.js → chunk-B36P4U32.js} +1 -1
  55. package/browser/{chunk-4HCSE44G.js → chunk-B5IABJO5.js} +1 -1
  56. package/browser/chunk-B7AC4RMR.js +1 -0
  57. package/browser/chunk-BNNKSBQ6.js +1 -0
  58. package/browser/{chunk-IWUWV3MS.js → chunk-BQUL7SGN.js} +1 -1
  59. package/browser/{chunk-RMB6IO7X.js → chunk-BRNU2JXC.js} +1 -1
  60. package/browser/{chunk-JUS6LLVX.js → chunk-BT7NN7PT.js} +1 -1
  61. package/browser/chunk-BYRR2B2X.js +1 -0
  62. package/browser/{chunk-JR5LAUIS.js → chunk-BYTV42NJ.js} +1 -1
  63. package/browser/{chunk-66MCBKC7.js → chunk-C2NCV7VC.js} +1 -1
  64. package/browser/{chunk-RNXOIUIO.js → chunk-C3STDN73.js} +1 -1
  65. package/browser/{chunk-O2LFJOK7.js → chunk-C5N3GKEC.js} +1 -1
  66. package/browser/chunk-CA34NNP2.js +1 -0
  67. package/browser/{chunk-IDOZYC3I.js → chunk-CAYYUGXV.js} +1 -1
  68. package/browser/{chunk-BILYIP7J.js → chunk-CCD6EYWH.js} +1 -1
  69. package/browser/{chunk-C5AIOCPM.js → chunk-CFWHBIM3.js} +1 -1
  70. package/browser/chunk-CKHIFDBW.js +1 -0
  71. package/browser/{chunk-I5W4NCFM.js → chunk-COA4UL2V.js} +1 -1
  72. package/browser/{chunk-ZJDY54VM.js → chunk-COGKLKKE.js} +1 -1
  73. package/browser/{chunk-IVJVUXLS.js → chunk-COHKLV67.js} +1 -1
  74. package/browser/{chunk-NVCUDJUL.js → chunk-CQLZHUT4.js} +1 -1
  75. package/browser/chunk-D45QKGTU.js +1 -0
  76. package/browser/{chunk-KKLNFVVN.js → chunk-D4FCXEV4.js} +1 -1
  77. package/browser/{chunk-YQUQYWX3.js → chunk-D7DUI5NF.js} +1 -1
  78. package/browser/{chunk-KYAKLZR7.js → chunk-DC3TCY6D.js} +1 -1
  79. package/browser/chunk-DF4DHBHG.js +1 -0
  80. package/browser/chunk-DI4JWRN2.js +1 -0
  81. package/browser/chunk-DLRH3QKL.js +1 -0
  82. package/browser/chunk-DOCQN2VL.js +1 -0
  83. package/browser/{chunk-H7XFYY6V.js → chunk-DTVCBHPA.js} +1 -1
  84. package/browser/{chunk-RNLSEEMX.js → chunk-DWZ5JTI2.js} +1 -1
  85. package/browser/chunk-E42VMBXZ.js +1 -0
  86. package/browser/{chunk-XEATJM6B.js → chunk-EHXF34TI.js} +1 -1
  87. package/browser/{chunk-7PN2DG6D.js → chunk-EN2Y56CS.js} +1 -1
  88. package/browser/chunk-EPINMFAX.js +1 -0
  89. package/browser/{chunk-3GPGJFQV.js → chunk-ESDXMFGP.js} +1 -1
  90. package/browser/chunk-F2I7C3M3.js +1 -0
  91. package/browser/{chunk-Q2A4MYK3.js → chunk-FAED643P.js} +1 -1
  92. package/browser/{chunk-ZW5E2GIN.js → chunk-FHB5KLDR.js} +1 -1
  93. package/browser/{chunk-LAZZHDUO.js → chunk-FPRM3L6U.js} +1 -1
  94. package/browser/{chunk-DEGB7PBB.js → chunk-FQZELIHB.js} +1 -1
  95. package/browser/chunk-FSSIO7GL.js +1 -0
  96. package/browser/{chunk-L76WVZW6.js → chunk-FU2ZGMX4.js} +1 -1
  97. package/browser/{chunk-J7YNB6YX.js → chunk-FW4OCSXV.js} +1 -1
  98. package/browser/{chunk-4ISL77CE.js → chunk-FZCOVHS7.js} +1 -1
  99. package/browser/{chunk-RJMVCGIG.js → chunk-GAMK6E3M.js} +1 -1
  100. package/browser/{chunk-BYFPLENU.js → chunk-GC6XKSVW.js} +2 -2
  101. package/browser/{chunk-X3UFVTIQ.js → chunk-GRT6SQUV.js} +1 -1
  102. package/browser/{chunk-3PC6CTVP.js → chunk-GTPQNPNO.js} +1 -1
  103. package/browser/{chunk-QEOGHVXA.js → chunk-GWKBJZYT.js} +1 -1
  104. package/browser/{chunk-WXH4A4T7.js → chunk-HAIP6P4F.js} +1 -1
  105. package/browser/{chunk-23PKMU5D.js → chunk-HGSF7LOB.js} +1 -1
  106. package/browser/chunk-HMEQKB3Z.js +1 -0
  107. package/browser/chunk-HMXHET62.js +1 -0
  108. package/browser/chunk-HNGDEK6A.js +1 -0
  109. package/browser/chunk-HNGOCAAQ.js +1 -0
  110. package/browser/{chunk-VAPCHGLS.js → chunk-HSIXOQO7.js} +1 -1
  111. package/browser/chunk-HSURS7A5.js +1 -0
  112. package/browser/{chunk-MJ2YN4R7.js → chunk-HWPSC7RE.js} +1 -1
  113. package/browser/chunk-IEVGW2RT.js +5 -0
  114. package/browser/{chunk-46GHEHUK.js → chunk-IFIH2CE2.js} +1 -1
  115. package/browser/chunk-IISHJIET.js +1 -0
  116. package/browser/{chunk-VX5HH3BW.js → chunk-IKKPP4JS.js} +1 -1
  117. package/browser/{chunk-GODXDKX5.js → chunk-IZLEZJ6U.js} +1 -1
  118. package/browser/{chunk-4QM23MMO.js → chunk-J6M7UWVR.js} +1 -1
  119. package/browser/{chunk-C4WJKF7R.js → chunk-JBS5UYZC.js} +1 -1
  120. package/browser/{chunk-WQMNK3UX.js → chunk-JQQXPIW7.js} +1 -1
  121. package/browser/{chunk-BJF3WGIP.js → chunk-JSYUX55K.js} +1 -1
  122. package/browser/{chunk-RONQFUCZ.js → chunk-JTZHHVPI.js} +1 -1
  123. package/browser/{chunk-BCUIYEEN.js → chunk-JXXYVM7W.js} +1 -1
  124. package/browser/{chunk-DHY5NYN2.js → chunk-K522UIWE.js} +1 -1
  125. package/browser/chunk-K6UBXXMV.js +2 -0
  126. package/browser/{chunk-OWGJVIYJ.js → chunk-KL7TZ4L3.js} +1 -1
  127. package/browser/chunk-KS4MCBAD.js +1 -0
  128. package/browser/{chunk-4Y2FYXDF.js → chunk-KUG5VVV4.js} +1 -1
  129. package/browser/{chunk-UFBRV4CF.js → chunk-KVMBRL53.js} +1 -1
  130. package/browser/chunk-KVYFWAXC.js +1 -0
  131. package/browser/chunk-KYXB2UQI.js +1 -0
  132. package/browser/{chunk-VYQEM4T2.js → chunk-KZFNI67M.js} +1 -1
  133. package/browser/{chunk-QFON23YX.js → chunk-L6PKNRWO.js} +1 -1
  134. package/browser/{chunk-IDQUQBKL.js → chunk-LGINK7BD.js} +1 -1
  135. package/browser/chunk-LGOSIAUC.js +1 -0
  136. package/browser/{chunk-CBSYYTXQ.js → chunk-LNDHYAFW.js} +1 -1
  137. package/browser/{chunk-3VQBBLWE.js → chunk-LOSZONX5.js} +1 -1
  138. package/browser/chunk-M3DKYPGC.js +1 -0
  139. package/browser/{chunk-LDTRYGRE.js → chunk-M4EQZHIE.js} +1 -1
  140. package/browser/chunk-MBB74QVL.js +1 -0
  141. package/browser/{chunk-2MQDNPCG.js → chunk-MLBTUOHX.js} +1 -1
  142. package/browser/{chunk-SVUUS5JD.js → chunk-MNJSQKLX.js} +1 -1
  143. package/browser/chunk-MSVDVTIV.js +1 -0
  144. package/browser/chunk-MTMXY32O.js +1 -0
  145. package/browser/{chunk-LLHBXZ6B.js → chunk-MU6SCZAC.js} +1 -1
  146. package/browser/chunk-N5UL5CKI.js +1 -0
  147. package/browser/chunk-NGBNFGPJ.js +1 -0
  148. package/browser/{chunk-6PR53KNR.js → chunk-NIA3RUK3.js} +1 -1
  149. package/browser/{chunk-DWNXML7N.js → chunk-NIT4LLPE.js} +1 -1
  150. package/browser/chunk-NL4ASITV.js +1 -0
  151. package/browser/{chunk-2KPICU7I.js → chunk-NM3IQUNN.js} +1 -1
  152. package/browser/{chunk-ZHPBIWMH.js → chunk-NOYC5PIT.js} +1 -1
  153. package/browser/{chunk-AUBQH6JY.js → chunk-O2VVATBW.js} +1 -1
  154. package/browser/chunk-OFSDKSGP.js +1 -0
  155. package/browser/{chunk-2RYEXHZV.js → chunk-OLKDSXBA.js} +1 -1
  156. package/browser/{chunk-76RLGANX.js → chunk-OXWQ7ZZS.js} +1 -1
  157. package/browser/{chunk-5BH2H4V6.js → chunk-OYGBAHVX.js} +1 -1
  158. package/browser/{chunk-DV63TLIP.js → chunk-PFCZZYN7.js} +1 -1
  159. package/browser/{chunk-KHR4NBM3.js → chunk-PHH2AA3W.js} +1 -1
  160. package/browser/{chunk-RAQ5KDLF.js → chunk-PJ3DTEH2.js} +1 -1
  161. package/browser/{chunk-C6YPXBIP.js → chunk-PPVORSJQ.js} +1 -1
  162. package/browser/chunk-PQ6W7KXC.js +1 -0
  163. package/browser/{chunk-5DQ4MJJT.js → chunk-PRVQ3NAP.js} +1 -1
  164. package/browser/chunk-PS7477UG.js +2 -0
  165. package/browser/{chunk-Z6RY34PQ.js → chunk-PXDS3HXW.js} +1 -1
  166. package/browser/chunk-QGWSDMHC.js +1 -0
  167. package/browser/{chunk-KI4BAWII.js → chunk-QI7I46MV.js} +1 -1
  168. package/browser/{chunk-64RUCACD.js → chunk-QJUU75N6.js} +1 -1
  169. package/browser/{chunk-5SFUSWFY.js → chunk-QPAUI5EG.js} +1 -1
  170. package/browser/chunk-QQ2YQAKU.js +1 -0
  171. package/browser/{chunk-F7KTXCW4.js → chunk-QWGF65NY.js} +2 -2
  172. package/browser/chunk-QZ5KTZ5O.js +1 -0
  173. package/browser/{chunk-XA4TVPAS.js → chunk-QZZ2NRA3.js} +1 -1
  174. package/browser/{chunk-CS6HBROS.js → chunk-R2GUMKAU.js} +1 -1
  175. package/browser/{chunk-DXBQR3VL.js → chunk-RACYAEOL.js} +1 -1
  176. package/browser/{chunk-W4W2KCYV.js → chunk-RESN2GAB.js} +1 -1
  177. package/browser/{chunk-7NEKXENA.js → chunk-RF626YRZ.js} +1 -1
  178. package/browser/chunk-RO6RY4AJ.js +5 -0
  179. package/browser/{chunk-BOLUBS5R.js → chunk-ROLD7LRS.js} +2 -2
  180. package/browser/{chunk-AQQHMGYE.js → chunk-RSNEHVIM.js} +1 -1
  181. package/browser/chunk-S27D5MBU.js +1 -0
  182. package/browser/{chunk-G4G5P6ZQ.js → chunk-S7F2VAOO.js} +1 -1
  183. package/browser/{chunk-6SGN7MNX.js → chunk-S7FOJJP2.js} +1 -1
  184. package/browser/{chunk-TGEQUV6Z.js → chunk-SIDUUVNA.js} +1 -1
  185. package/browser/{chunk-FIUZN6JU.js → chunk-SIQZO2WM.js} +1 -1
  186. package/browser/chunk-SLOQCSJQ.js +1 -0
  187. package/browser/{chunk-O5SLP4JK.js → chunk-SLX34TWD.js} +1 -1
  188. package/browser/{chunk-J76F72FK.js → chunk-SZCBZJWT.js} +1 -1
  189. package/browser/chunk-T4MU3R7Y.js +1 -0
  190. package/browser/{chunk-36NP63VM.js → chunk-T6O6272L.js} +2 -2
  191. package/browser/chunk-T7FNDCBZ.js +1 -0
  192. package/browser/{chunk-AFBBEIKR.js → chunk-T7XU5W5A.js} +1 -1
  193. package/browser/{chunk-KCOMWYKA.js → chunk-TCUCRGQD.js} +1 -1
  194. package/browser/{chunk-T25N3EEG.js → chunk-TEGIL5RZ.js} +1 -1
  195. package/browser/{chunk-P7BRWWWC.js → chunk-TFTQPXT2.js} +1 -1
  196. package/browser/{chunk-7TBS7SPQ.js → chunk-THT6CY5E.js} +1 -1
  197. package/browser/chunk-TNW4DJDF.js +1 -0
  198. package/browser/{chunk-HD2QU6GJ.js → chunk-TSH564VU.js} +1 -1
  199. package/browser/chunk-TX4QVA3F.js +1 -0
  200. package/browser/{chunk-B3STLAM7.js → chunk-TXJJUZ26.js} +1 -1
  201. package/browser/{chunk-2B5OZGVM.js → chunk-TYE7PH3R.js} +1 -1
  202. package/browser/{chunk-356KM5DR.js → chunk-U544TRDM.js} +1 -1
  203. package/browser/chunk-UIIVXERD.js +1 -0
  204. package/browser/{chunk-5I5IONRY.js → chunk-USD2ALDX.js} +1 -1
  205. package/browser/chunk-V2R4WJOF.js +1 -0
  206. package/browser/chunk-VFQB2MVW.js +1 -0
  207. package/browser/chunk-VKWSK452.js +1 -0
  208. package/browser/chunk-VM4K4MNV.js +1 -0
  209. package/browser/{chunk-ZEKZLSGA.js → chunk-VVWAYTKN.js} +1 -1
  210. package/browser/{chunk-PJCGIZLH.js → chunk-VVYRPW2Y.js} +1 -1
  211. package/browser/chunk-VXPORXGI.js +1 -0
  212. package/browser/{chunk-P3LNLMNH.js → chunk-VZBXT2TV.js} +1 -1
  213. package/browser/{chunk-K6CUAFH7.js → chunk-W3TN26PX.js} +13 -13
  214. package/browser/{chunk-7ZUYXNKP.js → chunk-WCIAQ44B.js} +2 -2
  215. package/browser/{chunk-6H5P35AP.js → chunk-WKM2QOAU.js} +1 -1
  216. package/browser/chunk-WM2DGNWH.js +1 -0
  217. package/browser/{chunk-QPOOLLKY.js → chunk-WMZLH4YK.js} +1 -1
  218. package/browser/chunk-WUV22SZ4.js +1 -0
  219. package/browser/{chunk-GCP2MGQL.js → chunk-X2JPG7JJ.js} +1 -1
  220. package/browser/chunk-X44CHNHS.js +1 -0
  221. package/browser/{chunk-E7AQSX2U.js → chunk-X7GD2PTG.js} +1 -1
  222. package/browser/{chunk-AAXXZ3RZ.js → chunk-XMZLK7EB.js} +1 -1
  223. package/browser/{chunk-6GLKD66N.js → chunk-XTCEZONP.js} +1 -1
  224. package/browser/chunk-XY3FCZN2.js +1 -0
  225. package/browser/chunk-Y23YZCOK.js +1 -0
  226. package/browser/chunk-Y2EBDHRL.js +1 -0
  227. package/browser/chunk-Y4V2WEIH.js +1 -0
  228. package/browser/chunk-Y54ES5RG.js +1 -0
  229. package/browser/chunk-Y6GA2S36.js +1 -0
  230. package/browser/chunk-YVBGB3JF.js +1 -0
  231. package/browser/chunk-YXVOA736.js +1 -0
  232. package/browser/chunk-Z6X5UYRZ.js +1 -0
  233. package/browser/{chunk-FO5ZTXDH.js → chunk-ZCQ45ILW.js} +1 -1
  234. package/browser/{chunk-SANNYTK4.js → chunk-ZCQDZKFQ.js} +1 -1
  235. package/browser/{chunk-7MD5PKPB.js → chunk-ZH54LQDR.js} +2 -2
  236. package/browser/{chunk-UGCO74DQ.js → chunk-ZKOARDC2.js} +1 -1
  237. package/browser/{chunk-DLNZDHGS.js → chunk-ZMJLTU5O.js} +1 -1
  238. package/browser/{chunk-A45GTZVV.js → chunk-ZTD4APMR.js} +1 -1
  239. package/browser/chunk-ZTU3TIGR.js +1 -0
  240. package/browser/{chunk-G4IW5GPY.js → chunk-ZZBF7AOW.js} +1 -1
  241. package/browser/index.html +2 -2
  242. package/browser/{main-BTMX7TBF.js → main-33B7R4OS.js} +2 -2
  243. package/package.json +1 -1
  244. package/browser/chunk-2LOWEWI4.js +0 -1
  245. package/browser/chunk-2MCEIRJY.js +0 -1
  246. package/browser/chunk-3DAJFE6H.js +0 -1
  247. package/browser/chunk-3ESMPFFS.js +0 -1
  248. package/browser/chunk-3G264AW4.js +0 -1
  249. package/browser/chunk-3KSZCJ6T.js +0 -1
  250. package/browser/chunk-3YHMSAWW.js +0 -1
  251. package/browser/chunk-4NNOZ2BP.js +0 -2
  252. package/browser/chunk-4VSJH5SL.js +0 -1
  253. package/browser/chunk-5K7KFVM3.js +0 -1
  254. package/browser/chunk-5TKXFIDJ.js +0 -1
  255. package/browser/chunk-6ONTAEOO.js +0 -1
  256. package/browser/chunk-6YHYVBRQ.js +0 -1
  257. package/browser/chunk-7HRIPBOK.js +0 -1
  258. package/browser/chunk-7V3SLYOQ.js +0 -1
  259. package/browser/chunk-ABNUBGXO.js +0 -1
  260. package/browser/chunk-AMONIKLC.js +0 -1
  261. package/browser/chunk-ANPUR4EP.js +0 -1
  262. package/browser/chunk-AVTYR2I6.js +0 -1
  263. package/browser/chunk-CLX7PIH6.js +0 -1
  264. package/browser/chunk-DJTAYVZN.js +0 -1
  265. package/browser/chunk-DPGY5YXC.js +0 -1
  266. package/browser/chunk-E55DAXRW.js +0 -1
  267. package/browser/chunk-E5IXDLDT.js +0 -1
  268. package/browser/chunk-E5XIALIA.js +0 -1
  269. package/browser/chunk-EIHC54J5.js +0 -1
  270. package/browser/chunk-EQR3RN5K.js +0 -1
  271. package/browser/chunk-FNH6K4S4.js +0 -1
  272. package/browser/chunk-G2VAG4V3.js +0 -1
  273. package/browser/chunk-HCCADOVL.js +0 -1
  274. package/browser/chunk-I3ABVEQL.js +0 -1
  275. package/browser/chunk-IVVSNJJ3.js +0 -1
  276. package/browser/chunk-JYZTRN6N.js +0 -5
  277. package/browser/chunk-KD24MXAU.js +0 -1
  278. package/browser/chunk-KPHOGUDM.js +0 -1
  279. package/browser/chunk-KRPYY55C.js +0 -1
  280. package/browser/chunk-KZBNUY2K.js +0 -1
  281. package/browser/chunk-LBQRCFLJ.js +0 -1
  282. package/browser/chunk-LELZTT7A.js +0 -2
  283. package/browser/chunk-LS5TMLIT.js +0 -1
  284. package/browser/chunk-MEG3XVPI.js +0 -5
  285. package/browser/chunk-N3L2CE6S.js +0 -1
  286. package/browser/chunk-NJD4GKTM.js +0 -1
  287. package/browser/chunk-NZ4SK6LY.js +0 -1
  288. package/browser/chunk-PIZRVCBM.js +0 -1
  289. package/browser/chunk-PSJRHKCL.js +0 -1
  290. package/browser/chunk-RJJYGGF6.js +0 -1
  291. package/browser/chunk-RLQLFW36.js +0 -1
  292. package/browser/chunk-S7X7547X.js +0 -1
  293. package/browser/chunk-SEOZWGYI.js +0 -1
  294. package/browser/chunk-SLDKONZE.js +0 -1
  295. package/browser/chunk-T2H2XAEJ.js +0 -1
  296. package/browser/chunk-TARA6KGA.js +0 -1
  297. package/browser/chunk-TON7E347.js +0 -1
  298. package/browser/chunk-TT2F5I7H.js +0 -1
  299. package/browser/chunk-U4N5AZIO.js +0 -1
  300. package/browser/chunk-U5LNORQV.js +0 -1
  301. package/browser/chunk-UAQU4IQS.js +0 -1
  302. package/browser/chunk-UCOXEQFM.js +0 -1
  303. package/browser/chunk-UQ5F3YKZ.js +0 -1
  304. package/browser/chunk-USJ6ILEE.js +0 -1
  305. package/browser/chunk-USMW7JHL.js +0 -1
  306. package/browser/chunk-UTTKPBED.js +0 -1
  307. package/browser/chunk-UZKEO2IO.js +0 -1
  308. package/browser/chunk-VNBCF2XF.js +0 -1
  309. package/browser/chunk-VVYOMXKJ.js +0 -1
  310. package/browser/chunk-WBFJWUUR.js +0 -1
  311. package/browser/chunk-WKXWWL55.js +0 -1
  312. package/browser/chunk-WNZKCNMC.js +0 -1
  313. package/browser/chunk-XL7XI3DY.js +0 -1
  314. package/browser/chunk-XSHCTIUH.js +0 -1
  315. package/browser/chunk-YBIA6E5J.js +0 -1
  316. package/browser/chunk-YBVDBTTE.js +0 -1
  317. package/browser/chunk-YQOU4WGG.js +0 -1
  318. package/browser/chunk-YRDGEYIV.js +0 -1
  319. package/browser/chunk-YV6MAUKK.js +0 -1
@@ -0,0 +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-3DSF6ERB.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{e as Oe,f as Pe}from"./chunk-U544TRDM.js";import"./chunk-TFTQPXT2.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-COHKLV67.js";import{a as Te,b as ve}from"./chunk-BYRR2B2X.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-TX4QVA3F.js";import"./chunk-ZCQ45ILW.js";import"./chunk-36GWLMZX.js";import{b as Z}from"./chunk-YVBGB3JF.js";import{a as fe}from"./chunk-WUV22SZ4.js";import"./chunk-JSYUX55K.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-UIIVXERD.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 +1 @@
1
- import{a}from"./chunk-UQ5F3YKZ.js";import{K as o}from"./chunk-JYZTRN6N.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
1
+ import{a}from"./chunk-BYRR2B2X.js";import{K as o}from"./chunk-IEVGW2RT.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
@@ -1 +1 @@
1
- import{a as C}from"./chunk-CS6HBROS.js";import{Ia as r,Ib as s,hb as a,lb as c,va as i}from"./chunk-JYZTRN6N.js";var m=["data-p-icon","times"],f=(()=>{class e extends C{static \u0275fac=(()=>{let t;return function(o){return(t||(t=r(e)))(o||e)}})();static \u0275cmp=a({type:e,selectors:[["","data-p-icon","times"]],features:[c],attrs:m,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){n&1&&(i(),s(0,"path",0))},encapsulation:2})}return e})();export{f as a};
1
+ import{a as C}from"./chunk-R2GUMKAU.js";import{Ia as r,Lb as s,ib as a,mb as c,va as i}from"./chunk-IEVGW2RT.js";var m=["data-p-icon","times"],f=(()=>{class e extends C{static \u0275fac=(()=>{let t;return function(o){return(t||(t=r(e)))(o||e)}})();static \u0275cmp=a({type:e,selectors:[["","data-p-icon","times"]],features:[c],attrs:m,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){n&1&&(i(),s(0,"path",0))},encapsulation:2})}return e})();export{f as a};
@@ -1 +1 @@
1
- import{la as n}from"./chunk-JYZTRN6N.js";var o=(()=>{class e{_listeners=[];notify(t,r){for(let i of this._listeners)i(t,r)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(r=>t!==r)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{o as a};
1
+ import{la as n}from"./chunk-IEVGW2RT.js";var o=(()=>{class e{_listeners=[];notify(t,r){for(let i of this._listeners)i(t,r)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(r=>t!==r)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{o as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-G4G5P6ZQ.js";import{a as t}from"./chunk-SNAKHGZS.js";var i=class extends e{constructor(r,a,o,l,s,p,F){super(r,a,o,l,s,p,F)}preInitLoader(){this.loaderPayload=t({ListIDs:this.reportFilterService.initOutletFilter([])},this.loaderPayload)}preInitList(){this.pageData.Filter.ListIDs=this.loaderPayload.ListIDs,this.pageData.Filter.From=this.reportFilterService.initDateFromFilter(this.pageData?.Filter?.From),this.pageData.Filter.To=this.reportFilterService.initDateToFilter(this.pageData?.Filter?.To)}onFilterOutlets(){this.reportFilterService.setOutletFilter(this.pageData.Filter.ListIDs)}onFilterFromDate(){this.reportFilterService.setDateFromFilter(this.pageData?.Filter?.From)}onFilterToDate(){this.reportFilterService.setDateToFilter(this.pageData?.Filter?.To)}};export{i as a};
1
+ import{a as e}from"./chunk-S7F2VAOO.js";import{a as t}from"./chunk-SNAKHGZS.js";var i=class extends e{constructor(r,a,o,l,s,p,F){super(r,a,o,l,s,p,F)}preInitLoader(){this.loaderPayload=t({ListIDs:this.reportFilterService.initOutletFilter([])},this.loaderPayload)}preInitList(){this.pageData.Filter.ListIDs=this.loaderPayload.ListIDs,this.pageData.Filter.From=this.reportFilterService.initDateFromFilter(this.pageData?.Filter?.From),this.pageData.Filter.To=this.reportFilterService.initDateToFilter(this.pageData?.Filter?.To)}onFilterOutlets(){this.reportFilterService.setOutletFilter(this.pageData.Filter.ListIDs)}onFilterFromDate(){this.reportFilterService.setDateFromFilter(this.pageData?.Filter?.From)}onFilterToDate(){this.reportFilterService.setDateToFilter(this.pageData?.Filter?.To)}};export{i as a};
@@ -1 +1 @@
1
- import{a as h}from"./chunk-USJ6ILEE.js";import{Gb as r,Hb as c,Lc as m,Pc as d,Vc as f,Xa as s,db as a,dc as l,ec as p,hb as o}from"./chunk-JYZTRN6N.js";var y=(()=>{let t=class t{constructor(i){this.cdr=i,this.serials=d([]),this.serialNote="",m(()=>{let e=this.serials();e&&e.length>0&&(this.serialNote=h.generateSerialasNote(e),i.markForCheck())})}};t.\u0275fac=function(e){return new(e||t)(a(f))},t.\u0275cmp=o({type:t,selectors:[["app-serial-note"]],inputs:{serials:[1,"serials"]},decls:2,vars:1,template:function(e,u){e&1&&(r(0,"span"),l(1),c()),e&2&&(s(),p(u.serialNote))},encapsulation:2,changeDetection:0});let n=t;return n})();export{y as a};
1
+ import{a as h}from"./chunk-WUV22SZ4.js";import{Jb as r,Kb as c,Pc as m,Tc as d,Xa as s,Zc as f,eb as a,hc as l,ib as o,ic as p}from"./chunk-IEVGW2RT.js";var y=(()=>{let t=class t{constructor(i){this.cdr=i,this.serials=d([]),this.serialNote="",m(()=>{let e=this.serials();e&&e.length>0&&(this.serialNote=h.generateSerialasNote(e),i.markForCheck())})}};t.\u0275fac=function(e){return new(e||t)(a(f))},t.\u0275cmp=o({type:t,selectors:[["app-serial-note"]],inputs:{serials:[1,"serials"]},decls:2,vars:1,template:function(e,u){e&1&&(r(0,"span"),l(1),c()),e&2&&(s(),p(u.serialNote))},encapsulation:2,changeDetection:0});let n=t;return n})();export{y as a};
@@ -1 +1 @@
1
- import{c as u}from"./chunk-U5LNORQV.js";import{d as s}from"./chunk-USJ6ILEE.js";import{Yd as a,pa as e}from"./chunk-JYZTRN6N.js";var g=(t,c)=>{let r=e(a),i=e(u);if(i.isTokenExpired())return i.returnUrl=c.url,r.navigate(["/"]),!1;let d=e(s),o=t.data?.roles;if(o){let n=t.data?.unauthorizedRedirect;if(!o.some(l=>d.isUserHasRole(l)))return n?r.navigate([n]):r.navigate(["menu/Unauthorized/Main/Unauthorized"]),!1}return!0};export{g as a};
1
+ import{c as u}from"./chunk-TX4QVA3F.js";import{b as s}from"./chunk-YVBGB3JF.js";import{Pd as a,pa as e}from"./chunk-IEVGW2RT.js";var g=(t,c)=>{let r=e(a),i=e(u);if(i.isTokenExpired())return i.returnUrl=c.url,r.navigate(["/"]),!1;let d=e(s),o=t.data?.roles;if(o){let n=t.data?.unauthorizedRedirect;if(!o.some(l=>d.isUserHasRole(l)))return n?r.navigate([n]):r.navigate(["menu/Unauthorized/Main/Unauthorized"]),!1}return!0};export{g as a};
@@ -0,0 +1 @@
1
+ import{w as r}from"./chunk-26YFRPR2.js";import{N as a}from"./chunk-TEGIL5RZ.js";import{F as c}from"./chunk-DWZ5JTI2.js";import{jb as o,ma as t,vd as e}from"./chunk-IEVGW2RT.js";var i=class n{static \u0275fac=function(g){return new(g||n)};static \u0275mod=o({type:n});static \u0275inj=t({imports:[e,r,c,a]})};export{i as a};
@@ -0,0 +1 @@
1
+ import{a as Pe}from"./chunk-K522UIWE.js";import{a as Ce}from"./chunk-T7XU5W5A.js";import{a as _e}from"./chunk-PFCZZYN7.js";import{a as be}from"./chunk-BT7NN7PT.js";import{b as Se,c as Me}from"./chunk-JBS5UYZC.js";import{a as de}from"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-7P3L3ODB.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-DWZ5JTI2.js";import{a as T,c as f}from"./chunk-TX4QVA3F.js";import{a as ve}from"./chunk-ZCQ45ILW.js";import"./chunk-36GWLMZX.js";import{b as I}from"./chunk-YVBGB3JF.js";import{a as M}from"./chunk-WUV22SZ4.js";import{a as pe}from"./chunk-JSYUX55K.js";import{p as ue}from"./chunk-LGOSIAUC.js";import{$ as q,Cb as j,Db as F,E,Eb as V,Fb as h,Fc as ie,Gb as o,Hb as s,Hc as ne,Ib as p,Md as ae,Od as se,Pd as b,Qd as le,Rd as ce,Sa as Y,Sb as C,Sd as G,Ub as Z,Xa as c,d as J,da as D,eb as v,ec as K,gc as $,gd as re,hc as m,ib as W,ic as B,jb as x,jc as z,la as d,ma as y,oa as _,pa as l,tc as X,vd as oe,wb as Q,yc as ee,zc as te}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=(N=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(f);menu=Oe;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof ae),q(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var L=class e{reportService=l(_e);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-FSSIO7GL.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-GAMK6E3M.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-W3TN26PX.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-57GKJ4WM.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-SZCBZJWT.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-NIT4LLPE.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-3R6XTRIS.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-GC6XKSVW.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-E42VMBXZ.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-FZCOVHS7.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-T6O6272L.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-WCIAQ44B.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-ROLD7LRS.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-F2I7C3M3.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-N5UL5CKI.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-ZH54LQDR.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-QWGF65NY.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-RF626YRZ.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-MBB74QVL.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-X7GD2PTG.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-Y54ES5RG.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-GRT6SQUV.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-DF4DHBHG.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-DI4JWRN2.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-JQQXPIW7.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-A2HQD76V.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-HSURS7A5.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
@@ -1 +1 @@
1
- import{a as it}from"./chunk-5I5IONRY.js";import{a as ot}from"./chunk-5TKXFIDJ.js";import{a as nt}from"./chunk-23PKMU5D.js";import{u as Z,v as tt,w as et}from"./chunk-BA3BDB5Y.js";import{b as q,c as H}from"./chunk-C4WJKF7R.js";import{N as P,n as M}from"./chunk-T25N3EEG.js";import{e as J,f as K,g as X,l as Y}from"./chunk-A45GTZVV.js";import{F as $,a as W,c as z,h as G,o as U}from"./chunk-RNLSEEMX.js";import{Ab as N,Bb as A,Bc as h,Cb as d,Db as i,Dc as C,E as I,Eb as r,Fb as m,Mb as v,Ob as g,Qb as a,Xa as l,Ya as S,cd as R,db as c,dc as f,ec as F,fa as w,fc as k,hb as _,ic as E,jc as L,kc as V,pa as y,rd as Q,sc as B,ta as x,ua as D,uc as j,vb as u,xb as p,yb as T}from"./chunk-JYZTRN6N.js";var ut=n=>({selected:n});function pt(n,t){if(n&1){let e=v();i(0,"div",1)(1,"div",4)(2,"span",5),m(3,"i",6),r(),i(4,"input",7),V("ngModelChange",function(s){x(e);let O=a();return L(O.outletQuery,s)||(O.outletQuery=s),D(s)}),r()()()}if(n&2){let e=a();l(4),E("ngModel",e.outletQuery)}}function dt(n,t){if(n&1){let e=v();i(0,"div",9),g("click",function(){x(e);let s=a().$implicit,O=a();return D(O.selectOutlet(s))}),m(1,"i",10),i(2,"h5"),f(3),h(4,"limitTo"),r(),i(5,"div",11),f(6," VACANT "),r()()}if(n&2){let e=a().$implicit,o=a();d("ngClass",j(5,ut,e.ID===o.id)),l(3),F(C(4,2,e.Name,15))}}function mt(n,t){if(n&1&&u(0,dt,7,7,"div",8),n&2){let e=t.$implicit,o=a();p(e.ID!==o.sourceOutletID?0:-1)}}var b=class n{constructor(t,e){this.dialogRef=t;this.data=e;this.config.title=e.dialogTitle,this.config.customWidth="600px",this.config.hideScrollbar=!0,this.config.hideFooter=!0,this.id=e.outletID,this.sourceOutletID=e.sourceOutletID}outletQuery="";config=new Z;name="";id="";sourceOutletID="";outlet;selectOutlet(t){this.outlet=t,this.name=t.Name,this.id=t.ID,this.saveOnSelectOutlet()}saveOnSelectOutlet(){this.dialogRef.close({Name:this.name,ID:Object.prototype.hasOwnProperty.call(this.outlet,"EntityID")?this.outlet.EntityID:this.outlet.ID})}static \u0275fac=function(e){return new(e||n)(c(J),c(K))};static \u0275cmp=_({type:n,selectors:[["POS-modal-select-outlet"]],decls:8,vars:5,consts:[[3,"onClose","config"],[1,"p-0","search-container"],[1,"container","custom-scroll","mt-8"],[1,"row",2,"width","600px"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter","rounded-start-1","rounded-end-0"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0","rounded-1","rounded-start-0",3,"ngModelChange","ngModel"],[1,"col-4","outlet-option","pointer",3,"ngClass"],[1,"col-4","outlet-option","pointer",3,"click","ngClass"],[1,"fa-solid","fa-shop"],[1,"text-center","mt-6",2,"font-size","1.25rem"]],template:function(e,o){e&1&&(i(0,"modal-material",0),g("onClose",function(){return o.dialogRef.close()}),i(1,"content"),u(2,pt,5,1,"div",1),i(3,"div",2)(4,"div",3),N(5,mt,1,1,null,null,T),h(7,"filterByName"),r()()()()),e&2&&(d("config",o.config),l(2),p(o.data.outlets.length>6?2:-1),l(3),A(C(7,2,o.data.outlets,o.outletQuery)))},dependencies:[Q,R,et,tt,$,z,G,U,P,it,M],styles:[".search-container[_ngcontent-%COMP%]{transition:all .3s ease;width:97%}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{position:relative;transition:all .3s ease;height:2.3rem}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover, .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e4d,0 0 8px 4px #89b03e33;border-radius:4px}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]{transition:all .3s ease;border-left:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]:focus{box-shadow:none!important;border-color:#ced4da!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{transition:all .3s ease;background-color:#fff;border-right:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .input-group-text[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .input-group-text[_ngcontent-%COMP%]{background-color:#89b03e1a;border-color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .fa-magnifying-glass[_ngcontent-%COMP%]{transition:all .3s ease}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .fa-magnifying-glass[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .fa-magnifying-glass[_ngcontent-%COMP%]{color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e66,0 0 12px 6px #89b03e40!important}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#89b03e;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7a9e37}.container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:260px;min-height:150px}.row[_ngcontent-%COMP%]{row-gap:20px;column-gap:12px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]{height:110px;width:175px;border:1px solid #B1AAAA;border-radius:5px;padding:0;font-size:14px;position:relative}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:8px;left:10px;color:#fff}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{border-radius:4px;color:#fff;background:#b1aaaa;overflow:hidden;height:30px;width:100%;display:flex;align-items:center;padding-left:38px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover, .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}"]})};function gt(n,t){n&1&&m(0,"i",1)}var lt=class n{constructor(t){this.matDialog=t}sf=y(nt);_isOpenAfterLoad;hideLocationIcon=!1;dialogTitle="Choose an Outlet";limitOutletText=25;sourceOutletID="";set isOpenAfterLoad(t){t!==void 0&&(this._isOpenAfterLoad=t,this._isOpenAfterLoad&&this._outlets?.length>1&&this.openModalSelectOutlet())}_outlets;set outlets(t){if(t)if(this._outlets=t,this._outlets.length==1){let e=this._outlets[0];this.assignOutlet(e.Name,Object.prototype.hasOwnProperty.call(e,"EntityID")?e.EntityID:e.ID)}else this._isOpenAfterLoad&&this.openModalSelectOutlet()}onCloseDialog=new S;outlet={ID:"",Name:"Choose an Outlet"};disabled=!1;onChange=t=>{};onTouched=()=>{};writeValue(t){this.outlet=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}openModalSelectOutlet(){this.disabled||(this.onTouched(),this.matDialog.getDialogById("select-outlet-modal")||this.matDialog.open(b,{id:"select-outlet-modal",data:{outlets:this._outlets,outletID:this.outlet.ID,dialogTitle:this.dialogTitle,sourceOutletID:this.sourceOutletID}}).afterClosed().pipe(I(t=>t),ot("modal select outlet"),w(()=>this.onCloseDialog.emit())).subscribe(t=>{this.assignOutlet(t.Name,t.ID),this.sf.searchFilterNativeEl?.focus()}))}assignOutlet(t,e){this.outlet={ID:e,Name:t},this.onChange(this.outlet)}static \u0275fac=function(e){return new(e||n)(c(X))};static \u0275cmp=_({type:n,selectors:[["POS-select-outlet-form"]],inputs:{hideLocationIcon:"hideLocationIcon",dialogTitle:"dialogTitle",limitOutletText:"limitOutletText",sourceOutletID:"sourceOutletID",isOpenAfterLoad:"isOpenAfterLoad",outlets:"outlets"},outputs:{onCloseDialog:"onCloseDialog"},features:[B([{provide:W,multi:!0,useExisting:n}])],decls:5,vars:6,consts:[["matTooltipPosition","above",1,"outlet-container","d-flex","pointer",3,"click","matTooltip"],[1,"fa-solid","fa-location-dot"],[1,"mb-0"]],template:function(e,o){e&1&&(i(0,"div",0),g("click",function(){return o.openModalSelectOutlet()}),u(1,gt,1,0,"i",1),i(2,"h3",2),f(3),h(4,"limitTo"),r()()),e&2&&(d("matTooltip",o.outlet==null?null:o.outlet.Name),l(),p(o.hideLocationIcon?-1:1),l(2),k(" ",C(4,3,!(o.outlet==null||o.outlet.Name==null)&&o.outlet.Name.length?o.outlet==null?null:o.outlet.Name:"Choose an Outlet",o.limitOutletText)," "))},dependencies:[Y,P,H,q,M],styles:[".outlet-container[_ngcontent-%COMP%] .fa-location-dot[_ngcontent-%COMP%]{color:#fb404b!important;font-size:32px;width:32px}"]})};export{lt as a};
1
+ import{a as it}from"./chunk-USD2ALDX.js";import{a as ot}from"./chunk-DOCQN2VL.js";import{a as nt}from"./chunk-HGSF7LOB.js";import{u as Z,v as tt,w as et}from"./chunk-26YFRPR2.js";import{b as q,c as H}from"./chunk-JBS5UYZC.js";import{N as P,n as M}from"./chunk-TEGIL5RZ.js";import{e as J,f as K,g as X,l as Y}from"./chunk-ZTD4APMR.js";import{F as $,a as W,c as z,h as G,o as U}from"./chunk-DWZ5JTI2.js";import{Ab as p,Bb as T,Db as N,E as I,Eb as A,Fb as d,Fc as h,Gb as i,Hb as r,Hc as C,Ib as m,Pb as v,Sb as g,Ub as a,Xa as l,Ya as S,eb as c,fa as w,gd as R,hc as f,ib as _,ic as F,jc as k,mc as E,nc as L,oc as V,pa as y,ta as x,ua as D,vd as Q,wc as B,yb as u,yc as j}from"./chunk-IEVGW2RT.js";var ut=n=>({selected:n});function pt(n,t){if(n&1){let e=v();i(0,"div",1)(1,"div",4)(2,"span",5),m(3,"i",6),r(),i(4,"input",7),V("ngModelChange",function(s){x(e);let O=a();return L(O.outletQuery,s)||(O.outletQuery=s),D(s)}),r()()()}if(n&2){let e=a();l(4),E("ngModel",e.outletQuery)}}function dt(n,t){if(n&1){let e=v();i(0,"div",9),g("click",function(){x(e);let s=a().$implicit,O=a();return D(O.selectOutlet(s))}),m(1,"i",10),i(2,"h5"),f(3),h(4,"limitTo"),r(),i(5,"div",11),f(6," VACANT "),r()()}if(n&2){let e=a().$implicit,o=a();d("ngClass",j(5,ut,e.ID===o.id)),l(3),F(C(4,2,e.Name,15))}}function mt(n,t){if(n&1&&u(0,dt,7,7,"div",8),n&2){let e=t.$implicit,o=a();p(e.ID!==o.sourceOutletID?0:-1)}}var b=class n{constructor(t,e){this.dialogRef=t;this.data=e;this.config.title=e.dialogTitle,this.config.customWidth="600px",this.config.hideScrollbar=!0,this.config.hideFooter=!0,this.id=e.outletID,this.sourceOutletID=e.sourceOutletID}outletQuery="";config=new Z;name="";id="";sourceOutletID="";outlet;selectOutlet(t){this.outlet=t,this.name=t.Name,this.id=t.ID,this.saveOnSelectOutlet()}saveOnSelectOutlet(){this.dialogRef.close({Name:this.name,ID:Object.prototype.hasOwnProperty.call(this.outlet,"EntityID")?this.outlet.EntityID:this.outlet.ID})}static \u0275fac=function(e){return new(e||n)(c(J),c(K))};static \u0275cmp=_({type:n,selectors:[["POS-modal-select-outlet"]],decls:8,vars:5,consts:[[3,"onClose","config"],[1,"p-0","search-container"],[1,"container","custom-scroll","mt-8"],[1,"row",2,"width","600px"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter","rounded-start-1","rounded-end-0"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0","rounded-1","rounded-start-0",3,"ngModelChange","ngModel"],[1,"col-4","outlet-option","pointer",3,"ngClass"],[1,"col-4","outlet-option","pointer",3,"click","ngClass"],[1,"fa-solid","fa-shop"],[1,"text-center","mt-6",2,"font-size","1.25rem"]],template:function(e,o){e&1&&(i(0,"modal-material",0),g("onClose",function(){return o.dialogRef.close()}),i(1,"content"),u(2,pt,5,1,"div",1),i(3,"div",2)(4,"div",3),N(5,mt,1,1,null,null,T),h(7,"filterByName"),r()()()()),e&2&&(d("config",o.config),l(2),p(o.data.outlets.length>6?2:-1),l(3),A(C(7,2,o.data.outlets,o.outletQuery)))},dependencies:[Q,R,et,tt,$,z,G,U,P,it,M],styles:[".search-container[_ngcontent-%COMP%]{transition:all .3s ease;width:97%}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{position:relative;transition:all .3s ease;height:2.3rem}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover, .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e4d,0 0 8px 4px #89b03e33;border-radius:4px}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]{transition:all .3s ease;border-left:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]:focus{box-shadow:none!important;border-color:#ced4da!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{transition:all .3s ease;background-color:#fff;border-right:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .input-group-text[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .input-group-text[_ngcontent-%COMP%]{background-color:#89b03e1a;border-color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .fa-magnifying-glass[_ngcontent-%COMP%]{transition:all .3s ease}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .fa-magnifying-glass[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .fa-magnifying-glass[_ngcontent-%COMP%]{color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e66,0 0 12px 6px #89b03e40!important}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#89b03e;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7a9e37}.container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:260px;min-height:150px}.row[_ngcontent-%COMP%]{row-gap:20px;column-gap:12px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]{height:110px;width:175px;border:1px solid #B1AAAA;border-radius:5px;padding:0;font-size:14px;position:relative}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:8px;left:10px;color:#fff}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{border-radius:4px;color:#fff;background:#b1aaaa;overflow:hidden;height:30px;width:100%;display:flex;align-items:center;padding-left:38px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover, .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}"]})};function gt(n,t){n&1&&m(0,"i",1)}var lt=class n{constructor(t){this.matDialog=t}sf=y(nt);_isOpenAfterLoad;hideLocationIcon=!1;dialogTitle="Choose an Outlet";limitOutletText=25;sourceOutletID="";set isOpenAfterLoad(t){t!==void 0&&(this._isOpenAfterLoad=t,this._isOpenAfterLoad&&this._outlets?.length>1&&this.openModalSelectOutlet())}_outlets;set outlets(t){if(t)if(this._outlets=t,this._outlets.length==1){let e=this._outlets[0];this.assignOutlet(e.Name,Object.prototype.hasOwnProperty.call(e,"EntityID")?e.EntityID:e.ID)}else this._isOpenAfterLoad&&this.openModalSelectOutlet()}onCloseDialog=new S;outlet={ID:"",Name:"Choose an Outlet"};disabled=!1;onChange=t=>{};onTouched=()=>{};writeValue(t){this.outlet=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}openModalSelectOutlet(){this.disabled||(this.onTouched(),this.matDialog.getDialogById("select-outlet-modal")||this.matDialog.open(b,{id:"select-outlet-modal",data:{outlets:this._outlets,outletID:this.outlet.ID,dialogTitle:this.dialogTitle,sourceOutletID:this.sourceOutletID}}).afterClosed().pipe(I(t=>t),ot("modal select outlet"),w(()=>this.onCloseDialog.emit())).subscribe(t=>{this.assignOutlet(t.Name,t.ID),this.sf.searchFilterNativeEl?.focus()}))}assignOutlet(t,e){this.outlet={ID:e,Name:t},this.onChange(this.outlet)}static \u0275fac=function(e){return new(e||n)(c(X))};static \u0275cmp=_({type:n,selectors:[["POS-select-outlet-form"]],inputs:{hideLocationIcon:"hideLocationIcon",dialogTitle:"dialogTitle",limitOutletText:"limitOutletText",sourceOutletID:"sourceOutletID",isOpenAfterLoad:"isOpenAfterLoad",outlets:"outlets"},outputs:{onCloseDialog:"onCloseDialog"},features:[B([{provide:W,multi:!0,useExisting:n}])],decls:5,vars:6,consts:[["matTooltipPosition","above",1,"outlet-container","d-flex","pointer",3,"click","matTooltip"],[1,"fa-solid","fa-location-dot"],[1,"mb-0"]],template:function(e,o){e&1&&(i(0,"div",0),g("click",function(){return o.openModalSelectOutlet()}),u(1,gt,1,0,"i",1),i(2,"h3",2),f(3),h(4,"limitTo"),r()()),e&2&&(d("matTooltip",o.outlet==null?null:o.outlet.Name),l(),p(o.hideLocationIcon?-1:1),l(2),k(" ",C(4,3,!(o.outlet==null||o.outlet.Name==null)&&o.outlet.Name.length?o.outlet==null?null:o.outlet.Name:"Choose an Outlet",o.limitOutletText)," "))},dependencies:[Y,P,H,q,M],styles:[".outlet-container[_ngcontent-%COMP%] .fa-location-dot[_ngcontent-%COMP%]{color:#fb404b!important;font-size:32px;width:32px}"]})};export{lt as a};
@@ -1,4 +1,4 @@
1
- import{a as kt}from"./chunk-QEOGHVXA.js";import{a as vt,d as wt}from"./chunk-4HCSE44G.js";import{a as bt}from"./chunk-JEL3OND6.js";import{a as gt}from"./chunk-IDQUQBKL.js";import{a as ft}from"./chunk-5SFUSWFY.js";import{a as yt}from"./chunk-534MIVWD.js";import{a as xt}from"./chunk-TGEQUV6Z.js";import{a as mt,d as le}from"./chunk-CS6HBROS.js";import{a as ut,d as ht}from"./chunk-6SGN7MNX.js";import{b as rt,c as lt,f as ct,g as dt,h as pt,k as se,l as _t}from"./chunk-L76WVZW6.js";import{E as ae,N as it,R as we,V as nt,a as z,b as xe,ea as oe,k as Je,l as Xe,la as at,m as re,n as et,oa as ot,p as tt,pa as fe,qa as U,v as q,w as E,xa as st,z as be}from"./chunk-O5SLP4JK.js";import{a as Ge}from"./chunk-RNLSEEMX.js";import{Cb as o,Db as m,Eb as h,Fb as L,Hc as $,Ia as ue,Ib as Oe,Id as qe,Jb as Y,Jd as ie,Kb as H,Kc as Ne,Lb as Z,Ld as J,Mb as I,Md as Ze,Ob as D,Od as ne,Pc as $e,Qb as a,Rb as Ye,Sb as ve,Tb as F,Ub as ye,Vb as V,Wb as P,Xa as c,Xc as S,Ya as A,Yc as G,Za as Ve,_b as He,bc as Ae,cc as y,cd as ze,db as ge,dc as T,ec as N,ed as Ue,fc as j,fd as Ke,gc as Le,hb as _e,ib as Pe,id as We,jd as Qe,ka as Ce,la as Me,lb as he,ma as Se,mb as Ee,na as Ie,nb as _,pa as pe,rd as je,sc as Re,ta as d,tb as C,ua as p,uc as W,va as B,vb as Be,vc as me,xb as Fe}from"./chunk-JYZTRN6N.js";var Pt=["data-p-icon","calendar"],Dt=(()=>{class n extends mt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=ue(n)))(i||n)}})();static \u0275cmp=_e({type:n,selectors:[["","data-p-icon","calendar"]],features:[he],attrs:Pt,decls:1,vars:0,consts:[["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(t,i){t&1&&(B(),Oe(0,"path",0))},encapsulation:2})}return n})();var Tt=`
1
+ import{a as kt}from"./chunk-GWKBJZYT.js";import{a as vt,d as wt}from"./chunk-B5IABJO5.js";import{a as bt}from"./chunk-2CL5FM3P.js";import{a as gt}from"./chunk-LGINK7BD.js";import{a as ft}from"./chunk-QPAUI5EG.js";import{a as yt}from"./chunk-45E6XCHN.js";import{a as xt}from"./chunk-SIDUUVNA.js";import{a as mt,d as le}from"./chunk-R2GUMKAU.js";import{a as ut,d as ht}from"./chunk-S7FOJJP2.js";import{b as rt,c as lt,f as ct,g as dt,h as pt,k as se,l as _t}from"./chunk-FU2ZGMX4.js";import{E as ae,N as it,R as we,V as nt,a as z,b as xe,ea as oe,k as Je,l as Xe,la as at,m as re,n as et,oa as ot,p as tt,pa as fe,qa as U,v as q,w as E,xa as st,z as be}from"./chunk-SLX34TWD.js";import{a as Ge}from"./chunk-DWZ5JTI2.js";import{c as qe,d as ie,f as J,g as Ze,i as ne}from"./chunk-LGOSIAUC.js";import{$c as S,Ab as Fe,Fb as o,Gb as m,Hb as h,Ia as ue,Ib as L,Lb as Oe,Lc as $,Mb as Y,Nb as H,Ob as Z,Oc as Ne,Pb as I,Sb as D,Tc as $e,Ub as a,Vb as Ye,Wb as ve,Xa as c,Xb as F,Ya as A,Yb as ye,Za as Ve,Zb as V,_b as P,ad as G,cc as He,eb as ge,fc as Ae,gc as y,gd as ze,hc as T,ib as _e,ic as N,id as Ue,jb as Pe,jc as j,jd as Ke,ka as Ce,kc as Le,la as Me,ma as Se,mb as he,md as We,na as Ie,nb as Ee,nd as Qe,ob as _,pa as pe,ta as d,ua as p,va as B,vd as je,wb as C,wc as Re,yb as Be,yc as W,zc as me}from"./chunk-IEVGW2RT.js";var Pt=["data-p-icon","calendar"],Dt=(()=>{class n extends mt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=ue(n)))(i||n)}})();static \u0275cmp=_e({type:n,selectors:[["","data-p-icon","calendar"]],features:[he],attrs:Pt,decls:1,vars:0,consts:[["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(t,i){t&1&&(B(),Oe(0,"path",0))},encapsulation:2})}return n})();var Tt=`
2
2
  .p-datepicker {
3
3
  display: inline-flex;
4
4
  max-width: 100%;
@@ -1 +1 @@
1
- import{a as j,b as L}from"./chunk-QIJEAKQK.js";import{c as H,e as Z}from"./chunk-4HCSE44G.js";import{na as F,oa as x}from"./chunk-O5SLP4JK.js";import{F as W,h as E,o as N}from"./chunk-RNLSEEMX.js";import{Cb as h,Db as s,Eb as m,Ha as f,Mb as c,Ob as d,Pc as p,Qb as C,Xa as w,Ya as _,_b as g,cd as P,db as k,hb as T,ic as I,jc as v,kc as D,md as O,nb as y,rd as B,ta as r,tc as S,ua as a,uc as V,vb as b,xb as M}from"./chunk-JYZTRN6N.js";var z=n=>({"full-width w-100":n}),A=()=>({standalone:!0});function G(n,t){if(n&1){let e=c();s(0,"i",3),d("click",function(){r(e),C();let o=g(1);return a(o.showOverlay())}),m()}}function J(n,t){if(n&1){let e=c();s(0,"p-footer")(1,"button",4),d("click",function(){r(e);let o=C();return g(1).hideOverlay(),a(o.onShowCalendar())}),m()()}}var q=class n{constructor(t){this.datePipe=t;this.timeChange=new _}time;timeChange;fullWidth=!1;showCloseBtn=p(!0);showIcon=p(!1);placeholder=p("Select Time");showClear=p(!1);ngOnInit(){}ngOnChanges(t){if(t.time&&t.time.currentValue){let e=new Date,i=t.time.currentValue.split(":");e.setHours(parseInt(i[0],10)),e.setMinutes(parseInt(i[1],10)),this.time=e}}onTimeChange(t){let e=null;t&&(e=this.datePipe.transform(t,"HH:mm")),this.timeChange.emit(e),this.onTimePickerChange()}onShowCalendar(){let t=document.getElementById("dropdown-filter");if(t){var e=new bootstrap.Dropdown(t);e&&(e._config.autoClose="inside")}}onTimePickerChange(){let t=document.getElementById("dropdown-filter");if(t){var e=new bootstrap.Dropdown(t);e&&(e._config.autoClose="outside")}}static \u0275fac=function(e){return new(e||n)(k(O))};static \u0275cmp=T({type:n,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth",showCloseBtn:[1,"showCloseBtn"],showIcon:[1,"showIcon"],placeholder:[1,"placeholder"],showClear:[1,"showClear"]},outputs:{timeChange:"timeChange"},features:[f],decls:4,vars:12,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body","iconDisplay","input",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions","showIcon","placeholder","showClear"],["pTemplate","inputicon"],["aria-hidden","true",1,"fa-regular","pt-1","fa-clock",3,"click"],["pButton","","type","button","label","Close","icon","pi pi-times",3,"click"]],template:function(e,i){if(e&1){let o=c();s(0,"p-datepicker",1,0),D("ngModelChange",function(l){return r(o),v(i.time,l)||(i.time=l),a(l)}),d("ngModelChange",function(l){return r(o),a(i.onTimeChange(l))})("onSelect",function(){return r(o),a(i.onShowCalendar())}),y(2,G,1,0,"ng-template",2),b(3,J,2,0,"p-footer"),m()}e&2&&(h("ngClass",V(9,z,i.fullWidth))("baseZIndex",1e4),I("ngModel",i.time),h("timeOnly",!0)("ngModelOptions",S(11,A))("showIcon",i.showIcon())("placeholder",i.placeholder())("showClear",i.showClear()),w(3),M(i.showCloseBtn()?3:-1))},dependencies:[B,P,L,j,F,x,W,E,N,Z,H],styles:["p-datepicker span.p-datepicker.p-datepicker-timeonly.custom-height{height:44px;width:55px} p-datepicker.full-width span.p-datepicker.p-datepicker-timeonly.custom-height{height:44px;width:100%!important}"]})};export{q as a};
1
+ import{a as j,b as L}from"./chunk-4OEDK7YE.js";import{c as H,e as Z}from"./chunk-B5IABJO5.js";import{na as F,oa as x}from"./chunk-SLX34TWD.js";import{F as W,h as E,o as N}from"./chunk-DWZ5JTI2.js";import{Ab as M,Fb as h,Gb as s,Ha as f,Hb as m,Pb as c,Sb as d,Tc as p,Ub as C,Xa as w,Ya as _,cc as g,eb as k,gd as P,ib as T,mc as I,nc as v,ob as y,oc as D,qd as O,ta as r,ua as a,vd as B,xc as S,yb as b,yc as V}from"./chunk-IEVGW2RT.js";var z=n=>({"full-width w-100":n}),A=()=>({standalone:!0});function G(n,t){if(n&1){let e=c();s(0,"i",3),d("click",function(){r(e),C();let o=g(1);return a(o.showOverlay())}),m()}}function J(n,t){if(n&1){let e=c();s(0,"p-footer")(1,"button",4),d("click",function(){r(e);let o=C();return g(1).hideOverlay(),a(o.onShowCalendar())}),m()()}}var q=class n{constructor(t){this.datePipe=t;this.timeChange=new _}time;timeChange;fullWidth=!1;showCloseBtn=p(!0);showIcon=p(!1);placeholder=p("Select Time");showClear=p(!1);ngOnInit(){}ngOnChanges(t){if(t.time&&t.time.currentValue){let e=new Date,i=t.time.currentValue.split(":");e.setHours(parseInt(i[0],10)),e.setMinutes(parseInt(i[1],10)),this.time=e}}onTimeChange(t){let e=null;t&&(e=this.datePipe.transform(t,"HH:mm")),this.timeChange.emit(e),this.onTimePickerChange()}onShowCalendar(){let t=document.getElementById("dropdown-filter");if(t){var e=new bootstrap.Dropdown(t);e&&(e._config.autoClose="inside")}}onTimePickerChange(){let t=document.getElementById("dropdown-filter");if(t){var e=new bootstrap.Dropdown(t);e&&(e._config.autoClose="outside")}}static \u0275fac=function(e){return new(e||n)(k(O))};static \u0275cmp=T({type:n,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth",showCloseBtn:[1,"showCloseBtn"],showIcon:[1,"showIcon"],placeholder:[1,"placeholder"],showClear:[1,"showClear"]},outputs:{timeChange:"timeChange"},features:[f],decls:4,vars:12,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body","iconDisplay","input",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions","showIcon","placeholder","showClear"],["pTemplate","inputicon"],["aria-hidden","true",1,"fa-regular","pt-1","fa-clock",3,"click"],["pButton","","type","button","label","Close","icon","pi pi-times",3,"click"]],template:function(e,i){if(e&1){let o=c();s(0,"p-datepicker",1,0),D("ngModelChange",function(l){return r(o),v(i.time,l)||(i.time=l),a(l)}),d("ngModelChange",function(l){return r(o),a(i.onTimeChange(l))})("onSelect",function(){return r(o),a(i.onShowCalendar())}),y(2,G,1,0,"ng-template",2),b(3,J,2,0,"p-footer"),m()}e&2&&(h("ngClass",V(9,z,i.fullWidth))("baseZIndex",1e4),I("ngModel",i.time),h("timeOnly",!0)("ngModelOptions",S(11,A))("showIcon",i.showIcon())("placeholder",i.placeholder())("showClear",i.showClear()),w(3),M(i.showCloseBtn()?3:-1))},dependencies:[B,P,L,j,F,x,W,E,N,Z,H],styles:["p-datepicker span.p-datepicker.p-datepicker-timeonly.custom-height{height:44px;width:55px} p-datepicker.full-width span.p-datepicker.p-datepicker-timeonly.custom-height{height:44px;width:100%!important}"]})};export{q as a};
@@ -0,0 +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};
@@ -0,0 +1 @@
1
+ import{a as Ne}from"./chunk-25H27N7N.js";import{d as Se,e as xe}from"./chunk-WMZLH4YK.js";import{B as V,D as L,u as Me,v as ye,w as ve}from"./chunk-26YFRPR2.js";import{N as we,O as q}from"./chunk-TEGIL5RZ.js";import{d as R}from"./chunk-THT6CY5E.js";import{e as be,f as he}from"./chunk-ZTD4APMR.js";import{A as pe,B as ge,F as Ce,G as fe,c as re,h as ae,i as le,k as de,o as se,p as ce,x as me,y as ue}from"./chunk-DWZ5JTI2.js";import{a as ne}from"./chunk-WUV22SZ4.js";import{p as oe,s as _e}from"./chunk-LGOSIAUC.js";import{$ as K,A as k,Ab as f,Ca as J,Cb as Y,D as U,Db as Z,Eb as $,Fb as c,Gb as d,Hb as l,Ib as ee,Pb as v,Sb as O,Ub as g,Xa as a,cc as M,e as j,eb as P,gd as te,hc as m,ib as Q,jb as X,jc as x,la as E,ma as z,mc as _,nc as b,oa as S,oc as h,q as A,t as w,ta as u,tc as B,u as H,ua as p,vd as ie,yb as C,yc as y}from"./chunk-IEVGW2RT.js";var F=class i{constructor(n,e){this.localDataService=n;this.toastr=e;this.initLocalDataConfig()}localConfig=new V;_offlineConfigSubject=new j(this.localConfig);offlineConfig$=this._offlineConfigSubject.asObservable();online$=U(k(window,"offline").pipe(w(()=>!1)),k(window,"online").pipe(w(()=>!0))).pipe(K(navigator.onLine));get isOnline(){return navigator.onLine}initLocalDataConfig(){this.localDataService.getOfflineConfig().subscribe({next:n=>{let e=new V(n.configUsingLocal,n.productUsingLocal,n.orderUsingLocal);this.pushNewValue(e),this.localConfig=e,this.updateOfflineConfigDB(n)},error:n=>{this.onErrorInitConfig()}})}onErrorInitConfig(){let n=new V;this.pushNewValue(n),this.localConfig=n,this.updateOfflineConfigDB(n)}getOnlineStatus$(){return H([this.offlineConfig$.pipe(w(n=>n.configUsingLocal)),this.online$]).pipe(w(n=>{let e=n[0],t=n[1],r;return e===!0?r=!1:r=t&&this.isOnline,r}))}pushNewValue(n){this._offlineConfigSubject.next(n)}updateOfflineConfigDB(n){this.localDataService.updateOfflineConfig(n).subscribe({next:e=>{this.pushNewValue(n)}})}static \u0275fac=function(e){return new(e||i)(S(L),S(oe))};static \u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})};var W=class i{constructor(n,e,t){this.httpService=n;this.LocalData=e;this._onlineStatusService=t}Data=new Ne;addCustomer(n,e){let t=[];n.Group&&t.push(n.Group),e&&(n.DebtLimit=e);let r={contact:n,groups:t};if(this._onlineStatusService.isOnline)return A(this.httpService.post("/API/Contact/Customer/Create",r)).catch(s=>Promise.reject(s))}findCustomerByCode(n){let e={Code:n};return this.httpService.post("/API/Contact/GetByCode",e)}GetPrivilegeByID(n,e){return this.httpService.get(q.GetCustomerPrivilegeByID,[{key:"ID",value:n},{key:"EntityID",value:e}],!0)}getCustomerSuggestionCode(){return this.httpService.get(q.GetCustomerSuggestionCode).pipe(w(n=>n.Code))}static \u0275fac=function(e){return new(e||i)(S(_e),S(L),S(F))};static \u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})};var T=i=>({selected:i}),Ve=i=>({"border border-danger":i}),I=i=>({"is-invalid":i}),Le=i=>({"is-invalid border border-danger":i}),Fe=i=>({"has-error":i});function We(i,n){if(i&1){let e=v();d(0,"a",12),O("click",function(){u(e);let r=g();return p(r.chooiceDetail("id"))}),m(1," ID "),l()}if(i&2){let e=g();c("ngClass",y(1,T,e.tabState=="id"))}}function ke(i,n){if(i&1&&ee(0,"option",21),i&2){let e=n.$implicit;c("value",e.Name)}}function Be(i,n){if(i&1&&(d(0,"div",24)(1,"i",47),m(2," Name is mandatory."),l()()),i&2){g();let e=M(26);c("ngClass",y(1,Fe,e.touched&&e.invalid))}}function Re(i,n){i&1&&(d(0,"div",40),m(1," Mobile Phone is mandatory "),l())}function qe(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){g(2);let e=M(38);a(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}function Ge(i,n){if(i&1&&(C(0,Re,2,0,"div",40),C(1,qe,2,1,"div",40)),i&2){g();let e=M(38);f(e.getError("required")&&!e.getError("minLength")?0:-1),a(),f(e.getError("minLength")?1:-1)}}function je(i,n){i&1&&(d(0,"div",40),m(1," Email must be a valid email address "),l())}function Ae(i,n){i&1&&(d(0,"div",40),m(1,"Email is mandatory"),l())}function He(i,n){if(i&1&&(C(0,je,2,0,"div",40),C(1,Ae,2,0,"div",40)),i&2){g();let e=M(45);f(e.errors!=null&&e.errors.email?0:-1),a(),f(e.errors!=null&&e.errors.required?1:-1)}}function Ue(i,n){i&1&&(d(0,"div",40),m(1,"Birthdate is mandatory"),l())}function Ke(i,n){if(i&1&&C(0,Ue,2,0,"div",40),i&2){g();let e=M(3);f(e.invalid?0:-1)}}function ze(i,n){if(i&1){let e=v();d(0,"div",33)(1,"div",17)(2,"datepicker",48,6),h("ngModelChange",function(r){u(e);let s=g();return b(s.customer.Birthdate,r)||(s.customer.Birthdate=r),p(r)}),l(),C(4,Ke,1,1),l()()}if(i&2){let e=M(3),t=g();a(2),_("ngModel",t.customer.Birthdate),c("required",t.requiredField().Birthdate)("ngClass",y(4,I,e.invalid&&(e.dirty||e.touched))),a(2),f(e.dirty||e.touched?4:-1)}}function Je(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){let e=g(2);a(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Qe(i,n){if(i&1){let e=v();d(0,"div",33)(1,"div",17)(2,"input",49,7),h("ngModelChange",function(r){u(e);let s=g();return b(s.customer.Code,r)||(s.customer.Code=r),p(r)}),l(),C(4,Je,2,1,"div",40),d(5,"label",50),m(6),l()()()}if(i&2){let e=M(3),t=g();a(2),c("placeholder",B("",t.type=="supplier"?"Supplier":"Member"," code")),_("ngModel",t.customer.Code),c("required",t.requiredField().Code)("ngClass",y(7,I,e.invalid&&(e.dirty||e.touched))),a(2),f(e.invalid&&(e.dirty||e.touched)?4:-1),a(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Xe(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){let e=g(2);a(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Ye(i,n){if(i&1){let e=v();d(0,"div",36)(1,"div",17)(2,"input",49,7),h("ngModelChange",function(r){u(e);let s=g();return b(s.customer.Code,r)||(s.customer.Code=r),p(r)}),l(),C(4,Xe,2,1,"div",40),d(5,"label",50),m(6),l()()()}if(i&2){let e=M(3),t=g();a(2),c("placeholder",B("",t.type=="supplier"?"Supplier":"Member"," code")),_("ngModel",t.customer.Code),c("required",t.requiredField().Code)("ngClass",y(7,I,e.invalid&&(e.dirty||e.touched))),a(2),f(e.invalid&&(e.dirty||e.touched)?4:-1),a(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Ze(i,n){if(i&1){let e=v();d(0,"div",36)(1,"div",51)(2,"ng-select",52),h("ngModelChange",function(r){u(e);let s=g();return b(s.customer.Group,r)||(s.customer.Group=r),p(r)}),l(),d(3,"label",53),m(4,"Group"),l()()()}if(i&2){let e=g();a(),c("ngClass",y(3,T,e.isNotEmpty(e.customer.Group))),a(),_("ngModel",e.customer.Group),c("items",e.options==null?null:e.options.Groups)}}function $e(i,n){if(i&1){let e=v();d(0,"div",36)(1,"div",51)(2,"ng-select",54),h("ngModelChange",function(r){u(e);let s=g();return b(s.customer.City,r)||(s.customer.City=r),p(r)}),l(),d(3,"label",55),m(4,"City"),l()()()}if(i&2){let e=g();a(),c("ngClass",y(3,T,e.isNotEmpty(e.customer.City))),a(),_("ngModel",e.customer.City),c("items",e.options==null?null:e.options.Cities)}}function et(i,n){i&1&&(d(0,"div",40),m(1,"Address is mandatory."),l())}function tt(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){g();let e=M(68);a(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}var Ie=class i{constructor(n,e,t){this.dialogRef=n;this.data=e;this._CustomerHttpService=t;this.modalConfig=new Me,this.modalConfig.title=this.data.title,this.modalConfig.customWidth="650px",this.options=this.data.options,this.options?.Genders||(this.options.Genders=[{Key:0,Value:"Male"},{Key:1,Value:"Female"}]),this.config=this.data.config,this.type=this.data.type}customer;options;type;config;more;modalConfig;detailVisible;tabState="general";requiredField=J({Mobile:!1,Email:!1,Code:!1,Address:!1,SignUpOutlet:!1,Birthdate:!1});ngOnInit(){this.customer=new G,this.initFirstName(),this.customer.Gender=this.config.DefaultValue.Gender,this.more=!1,this.initRequiredField()}initRequiredField(){let n=this.config.Advance?.RequiredFields;n&&this.type!="supplier"&&n.forEach(e=>{this.requiredField.update(t=>(t[e]=!0,t))})}initFirstName(){this.data&&this.data.inputTextName&&(this.customer.FirstName=this.data.inputTextName)}onOk(n){if(n.form?.markAllAsTouched(),n.form.invalid)return;let e=this.customer.Title?this.customer.Title:"";e+=" "+this.customer.FirstName,e+=" "+(this.customer.LastName?this.customer.LastName:""),e=e.trim(),this.customer.Name=e,this.type=="customer"?this._CustomerHttpService.addCustomer(this.customer).then(t=>{this.dialogRef.close({ContactName:e,CustomerID:t.ID})}).catch(t=>{this.dialogRef.close({Error:t})}):this.type=="supplier"&&this.dialogRef.close({supplier:this.customer})}chooiceDetail(n){this.tabState=n}isNotEmpty(n){return ne.IsNotEmpty(n)||n==0}static \u0275fac=function(e){return new(e||i)(P(be),P(he),P(W))};static \u0275cmp=Q({type:i,selectors:[["POS-modal-customer"]],standalone:!1,decls:81,vars:55,consts:[["f","ngForm"],["FirstName","ngModel"],["phoneNumber","ngModel"],["Email","ngModel"],["addressCtrl","ngModel"],["nationalId","ngModel"],["birthdateCtrl","ngModel"],["codeCtrl","ngModel"],[3,"onOk","onCancel","onClose","config"],[1,"container",2,"height","270px"],["name","form"],[1,"row","align-items-center","border-bottom"],[1,"btn","btn-link",3,"click","ngClass"],[1,"btn","btn-link",3,"ngClass"],[1,"mt-6"],[1,"row","g-4",3,"hidden"],[1,"col-md-2","mt-4"],[1,"form-floating-outline"],["list","cust-title","id","Title","name","Title","placeholder","Title",1,"form-control",3,"ngModelChange","ngModel"],["for","Title"],["id","cust-title"],[3,"value"],[1,"col-md-5","mt-4"],["type","text","id","FirstName","name","FirstName","placeholder","First Name",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],[3,"ngClass"],["for","FirstName"],["type","text","id","LastName","name","LastName","placeholder","Last Name",1,"form-control",3,"ngModelChange","ngModel"],["for","LastName"],[1,"col-md-6","mt-4"],["type","text","name","Phone","placeholder","Mobile",1,"form-control",3,"ngModelChange","ngModel","required","ngClass"],["for","Phone"],["type","email","name","Email","placeholder","Email","email","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],["for","email"],[1,"col-6","mt-4"],["name","gender","bindLabel","Value","bindValue","Key","placeholder","Gender","dropdownPosition","buttom",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"row","g-4","mt-2",3,"hidden"],[1,"col-4","mt-4"],[1,"col-md-12","mt-4"],["id","address","name","address","placeholder","Address",1,"form-control","h-100",3,"ngModelChange","rows","ngModel","required","ngClass"],["for","address"],[1,"invalid-feedback"],["type","text","id","Identification","name","Identification","placeholder","NationalID","numericInputOnly","nationalId",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","Identification"],["type","text","id","TaxId","name","TaxId","placeholder","TaxID",1,"form-control",3,"ngModelChange","ngModel"],["for","TaxId"],["name","NationalityID","bindLabel","Name","bindValue","ID","placeholder","Nationality","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],["name","race","bindLabel","Name","bindValue","ID","placeholder","Race","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"control-label","text-danger"],["placeholder","Birthdate","name","birthDate",3,"ngModelChange","ngModel","required","ngClass"],["type","text","name","code","id","code",1,"form-control",3,"ngModelChange","ngModel","placeholder","required","ngClass"],["for","code"],[1,"form-floating-outline","flexRow",3,"ngClass"],["id","customerGroup","bindLabel","Name","bindValue","ID","name","customerGroup","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","customerGroup",1,"ng-select"],["id","city","bindLabel","Name","bindValue","ID","name","city","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","city",1,"ng-select"]],template:function(e,t){if(e&1){let r=v();d(0,"modal-material",8),O("onOk",function(){u(r);let o=M(4);return p(t.onOk(o))})("onCancel",function(){return u(r),p(t.dialogRef.close())})("onClose",function(){return u(r),p(t.dialogRef.close())}),d(1,"content")(2,"div",9)(3,"form",10,0)(5,"div",11)(6,"div")(7,"a",12),O("click",function(){return u(r),p(t.chooiceDetail("general"))}),m(8," General "),l(),d(9,"a",12),O("click",function(){return u(r),p(t.chooiceDetail("detail"))}),m(10," Detail "),l(),C(11,We,2,3,"a",13),l()(),d(12,"div")(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"input",18),h("ngModelChange",function(o){return u(r),b(t.customer.Title,o)||(t.customer.Title=o),p(o)}),l(),d(18,"label",19),m(19,"Title"),l(),d(20,"datalist",20),Z(21,ke,1,1,"option",21,Y),l()()(),d(23,"div",22)(24,"div",17)(25,"input",23,1),h("ngModelChange",function(o){return u(r),b(t.customer.FirstName,o)||(t.customer.FirstName=o),p(o)}),l(),C(27,Be,3,3,"div",24),d(28,"label",25),m(29,"First Name"),l()()(),d(30,"div",22)(31,"div",17)(32,"input",26),h("ngModelChange",function(o){return u(r),b(t.customer.LastName,o)||(t.customer.LastName=o),p(o)}),l(),d(33,"label",27),m(34,"Last Name"),l()()(),d(35,"div",28)(36,"div",17)(37,"input",29,2),h("ngModelChange",function(o){return u(r),b(t.customer.Mobile,o)||(t.customer.Mobile=o),p(o)}),l(),C(39,Ge,2,2),d(40,"label",30),m(41,"Mobile"),l()()(),d(42,"div",28)(43,"div",17)(44,"input",31,3),h("ngModelChange",function(o){return u(r),b(t.customer.Email,o)||(t.customer.Email=o),p(o)}),l(),C(46,He,2,2),d(47,"label",32),m(48,"Email"),l()()(),C(49,ze,5,6,"div",33),C(50,Qe,7,9,"div",33),d(51,"div",28)(52,"ng-select",34),h("ngModelChange",function(o){return u(r),b(t.customer.Gender,o)||(t.customer.Gender=o),p(o)}),l()()(),d(53,"div",35),C(54,Ye,7,9,"div",36),C(55,Ze,5,5,"div",36),C(56,$e,5,5,"div",36),d(57,"div",37)(58,"div",17)(59,"textarea",38,4),h("ngModelChange",function(o){return u(r),b(t.customer.Address,o)||(t.customer.Address=o),p(o)}),l(),d(61,"label",39),m(62,"Address"),l(),C(63,et,2,0,"div",40),l()()(),d(64,"div",35)(65,"div",28)(66,"div",17)(67,"input",41,5),h("ngModelChange",function(o){return u(r),b(t.customer.NationalIDNumber,o)||(t.customer.NationalIDNumber=o),p(o)}),l(),C(69,tt,2,1,"div",40),d(70,"label",42),m(71,"National ID"),l()()(),d(72,"div",28)(73,"div",17)(74,"input",43),h("ngModelChange",function(o){return u(r),b(t.customer.TaxIDNumber,o)||(t.customer.TaxIDNumber=o),p(o)}),l(),d(75,"label",44),m(76,"Tax ID"),l()()(),d(77,"div",28)(78,"ng-select",45),h("ngModelChange",function(o){return u(r),b(t.customer.NationalityID,o)||(t.customer.NationalityID=o),p(o)}),l()(),d(79,"div",33)(80,"ng-select",46),h("ngModelChange",function(o){return u(r),b(t.customer.RaceID,o)||(t.customer.RaceID=o),p(o)}),l()()()()()()()()()}if(e&2){let r=M(26),s=M(38),o=M(45),N=M(60),D=M(68);c("config",t.modalConfig),a(7),c("ngClass",y(41,T,t.tabState=="general")),a(2),c("ngClass",y(43,T,t.tabState=="detail")),a(2),f(t.type!="supplier"?11:-1),a(3),c("hidden",t.tabState!="general"),a(3),_("ngModel",t.customer.Title),a(4),$(t.options==null?null:t.options.Titles),a(4),c("ngClass",y(45,Ve,r.touched&&r.invalid)),_("ngModel",t.customer.FirstName),c("required",!0),a(2),f(r.touched&&r.invalid?27:-1),a(5),_("ngModel",t.customer.LastName),a(5),_("ngModel",t.customer.Mobile),c("required",t.requiredField().Mobile)("ngClass",y(47,I,s.invalid&&(s.dirty||s.touched))),a(2),f(s.invalid&&(s.dirty||s.touched)?39:-1),a(5),c("ngClass",y(49,Le,o.invalid&&(o.dirty||o.touched))),_("ngModel",t.customer.Email),c("required",t.requiredField().Email),a(2),f(o.invalid&&(o.dirty||o.touched)?46:-1),a(3),f(t.type!="supplier"?49:-1),a(),f(t.type=="supplier"?50:-1),a(2),_("ngModel",t.customer.Gender),c("items",t.options==null?null:t.options.Genders),a(),c("hidden",t.tabState!="detail"),a(),f(t.type!="supplier"?54:-1),a(),f(t.type!="supplier"?55:-1),a(),f(t.type!="supplier"?56:-1),a(3),c("rows",t.type!="supplier"?6:9),_("ngModel",t.customer.Address),c("required",t.requiredField().Address)("ngClass",y(51,I,N.invalid&&(N.dirty||N.touched))),a(4),f(N.invalid&&(N.dirty||N.touched)?63:-1),a(),c("hidden",t.tabState!="id"),a(3),_("ngModel",t.customer.NationalIDNumber),c("ngClass",y(53,I,D.invalid&&(D.dirty||D.touched))),a(2),f(D.invalid&&(D.dirty||D.touched)?69:-1),a(5),_("ngModel",t.customer.TaxIDNumber),a(4),_("ngModel",t.customer.NationalityID),c("items",t.options==null?null:t.options.Nationalities),a(2),_("ngModel",t.customer.RaceID),c("items",t.options==null?null:t.options.Races)}},dependencies:()=>[te,ye,ce,me,ue,re,ae,le,pe,ge,se,de,Se,R],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.btn-link[_ngcontent-%COMP%]{padding-top:0;color:#868686;padding-bottom:8px;border-radius:unset;font-family:Roboto Slab,serif}.btn-link.selected[_ngcontent-%COMP%]{color:#3b3b3b;border-bottom:2px solid #07a519}.form-floating-outline[_ngcontent-%COMP%]{margin-bottom:.2rem!important}"]})},Oe=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=X({type:i});static \u0275inj=z({imports:[ie,we,ve,Ce,fe,xe,R]})},G=class{Title;FirstName;LastName;Name;Gender;Mobile;Email;TaxIDNumber;TaxID;Group;Code;City;Address;Birthdate;MemberIdentification;NationalIDNumber;NationalityID;RaceID;CreatorEntityID};export{F as a,W as b,Ie as c,Oe as d,G as e};
@@ -1,2 +1,2 @@
1
- import{c as Q,e as U}from"./chunk-QPOOLLKY.js";import{b as K}from"./chunk-CSFFF2YO.js";import{a as J}from"./chunk-WNZKCNMC.js";import{a as R,b as S,c as A,h as I,i as L,j as N,k as O,l as j,m as H,n as z,o as q,p as M,q as G}from"./chunk-LOD3JYZW.js";import{c as V,d as F}from"./chunk-6GLKD66N.js";import{j as P,m as B}from"./chunk-BA3BDB5Y.js";import{F as b}from"./chunk-RNLSEEMX.js";import{$b as x,Cb as c,Db as l,Eb as d,Fb as y,Mb as g,Ob as s,Qb as Y,Xa as p,Ya as h,_b as f,dc as D,hb as _,ib as k,ma as C,rd as E,sc as T,ta as o,ua as m,vb as w,xb as v}from"./chunk-JYZTRN6N.js";function Z(n,t){if(n&1){let e=g();l(0,"mat-date-range-picker-actions")(1,"button",6),D(2,"Cancel"),d(),l(3,"button",7),s("click",function(){o(e);let i=Y();return m(i.onSelectDate())}),D(4,"Search"),d()()}}var $={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},W=class n{placeholder;displayToggle;minDate;maxDate;showButtonConfirm=!1;width;dateChange=new h;from;to;fromDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.from=e}}toDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.to=e,this.showButtonConfirm||this.emitDateChange()}}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=_({type:n,selectors:[["app-datepicker-range"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",minDate:"minDate",maxDate:"maxDate",showButtonConfirm:"showButtonConfirm",width:"width",from:"from",to:"to"},outputs:{dateChange:"dateChange"},standalone:!1,features:[T([{provide:S,useClass:Q,deps:[R]},{provide:A,useValue:$}])],decls:8,vars:9,consts:[["picker",""],["appearance","outline",1,"p-0","date-range"],["id","dates",3,"min","max","rangePicker"],["matStartDate","","placeholder","Start date",3,"dateChange","click","value"],["matEndDate","","placeholder","End date",3,"dateChange","click","value"],["matSuffix","",3,"for"],["mat-button","","matDateRangePickerCancel",""],["mat-raised-button","","color","primary","matDateRangePickerApply","",3,"click"]],template:function(e,a){if(e&1){let i=g();l(0,"mat-form-field",1)(1,"mat-date-range-input",2)(2,"input",3),s("dateChange",function(r){return o(i),m(a.fromDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),d(),l(3,"input",4),s("dateChange",function(r){return o(i),m(a.toDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),d()(),y(4,"mat-datepicker-toggle",5),l(5,"mat-date-range-picker",null,0),w(7,Z,5,0,"mat-date-range-picker-actions"),d()()}if(e&2){let i=f(6);x("width",a.width||100,"%"),p(),c("min",a.minDate)("max",a.maxDate)("rangePicker",i),p(),c("value",a.from),p(),c("value",a.to),p(),c("for",i),p(3),v(a.showButtonConfirm?7:-1)}},dependencies:[I,L,N,O,j,q,z,H,B,P,V],styles:[`mat-form-field.date-range>div.mat-mdc-form-field-wrapper{padding-bottom:0!important}mat-form-field.date-range .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:14px!important}mat-form-field.date-range .mat-mdc-form-field-icon-prefix{padding:0!important}mat-form-field.date-range .mat-date-range-input-container{margin-top:6px;font-size:11px}mat-form-field.date-range .mat-mdc-form-field-icon-suffix{padding:0!important}
1
+ import{c as Q,e as U}from"./chunk-WMZLH4YK.js";import{b as K}from"./chunk-72RZBOHX.js";import{a as J}from"./chunk-M3DKYPGC.js";import{a as R,b as S,c as A,h as I,i as L,j as N,k as O,l as j,m as H,n as z,o as q,p as M,q as G}from"./chunk-6WATOQG3.js";import{c as V,d as F}from"./chunk-XTCEZONP.js";import{j as P,m as B}from"./chunk-26YFRPR2.js";import{F as b}from"./chunk-DWZ5JTI2.js";import{Ab as v,Fb as c,Gb as l,Hb as d,Ib as y,Pb as g,Sb as s,Ub as Y,Xa as p,Ya as h,cc as f,dc as x,hc as D,ib as _,jb as k,ma as C,ta as o,ua as m,vd as E,wc as T,yb as w}from"./chunk-IEVGW2RT.js";function Z(n,t){if(n&1){let e=g();l(0,"mat-date-range-picker-actions")(1,"button",6),D(2,"Cancel"),d(),l(3,"button",7),s("click",function(){o(e);let i=Y();return m(i.onSelectDate())}),D(4,"Search"),d()()}}var $={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},W=class n{placeholder;displayToggle;minDate;maxDate;showButtonConfirm=!1;width;dateChange=new h;from;to;fromDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.from=e}}toDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.to=e,this.showButtonConfirm||this.emitDateChange()}}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=_({type:n,selectors:[["app-datepicker-range"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",minDate:"minDate",maxDate:"maxDate",showButtonConfirm:"showButtonConfirm",width:"width",from:"from",to:"to"},outputs:{dateChange:"dateChange"},standalone:!1,features:[T([{provide:S,useClass:Q,deps:[R]},{provide:A,useValue:$}])],decls:8,vars:9,consts:[["picker",""],["appearance","outline",1,"p-0","date-range"],["id","dates",3,"min","max","rangePicker"],["matStartDate","","placeholder","Start date",3,"dateChange","click","value"],["matEndDate","","placeholder","End date",3,"dateChange","click","value"],["matSuffix","",3,"for"],["mat-button","","matDateRangePickerCancel",""],["mat-raised-button","","color","primary","matDateRangePickerApply","",3,"click"]],template:function(e,a){if(e&1){let i=g();l(0,"mat-form-field",1)(1,"mat-date-range-input",2)(2,"input",3),s("dateChange",function(r){return o(i),m(a.fromDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),d(),l(3,"input",4),s("dateChange",function(r){return o(i),m(a.toDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),d()(),y(4,"mat-datepicker-toggle",5),l(5,"mat-date-range-picker",null,0),w(7,Z,5,0,"mat-date-range-picker-actions"),d()()}if(e&2){let i=f(6);x("width",a.width||100,"%"),p(),c("min",a.minDate)("max",a.maxDate)("rangePicker",i),p(),c("value",a.from),p(),c("value",a.to),p(),c("for",i),p(3),v(a.showButtonConfirm?7:-1)}},dependencies:[I,L,N,O,j,q,z,H,B,P,V],styles:[`mat-form-field.date-range>div.mat-mdc-form-field-wrapper{padding-bottom:0!important}mat-form-field.date-range .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:14px!important}mat-form-field.date-range .mat-mdc-form-field-icon-prefix{padding:0!important}mat-form-field.date-range .mat-date-range-input-container{margin-top:6px;font-size:11px}mat-form-field.date-range .mat-mdc-form-field-icon-suffix{padding:0!important}
2
2
  `],encapsulation:2})},X=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=k({type:n});static \u0275inj=C({providers:[M],imports:[E,G,M,J,U,K,b,F]})};export{W as a,X as b};
@@ -0,0 +1 @@
1
+ import{a as ne}from"./chunk-D4FCXEV4.js";import{u as re,v as ae,w as se}from"./chunk-26YFRPR2.js";import{O as le}from"./chunk-TEGIL5RZ.js";import{a as J,c as z}from"./chunk-EQLHPWVB.js";import{e as oe}from"./chunk-ZTD4APMR.js";import{a as g}from"./chunk-2FWFPV5I.js";import{E as ee,G as te,c as Q,e as v,h as X,i as Y,t as Z,w as $}from"./chunk-DWZ5JTI2.js";import{a as M}from"./chunk-WUV22SZ4.js";import{p as K,s as ie}from"./chunk-LGOSIAUC.js";import{Ab as u,E as S,Fb as d,Fd as A,Gb as r,H as G,Hb as a,I as B,Ib as E,Sb as w,T as L,Ub as F,W as I,Xa as s,Y as N,Ya as T,aa as U,e as h,eb as P,fa as H,gd as W,hc as m,ib as q,la as V,n as k,na as j,o as R,p as x,pa as f,t as y,v as D,yb as p,yc as O}from"./chunk-IEVGW2RT.js";import{k as C}from"./chunk-SNAKHGZS.js";var b=class{};var Ge=new j("baseURL"),_=class o extends b{connection;_cache=new Map;_Data=new h({});Data=this._Data.asObservable();previousCountByEpc={};httpService=f(ie);toastService=f(K);_isConnected=new h(!1);isConnected=this._isConnected.asObservable();_bufferTime=new h(100);set bufferTime(i){this._bufferTime.next(i)}get bufferTime(){return this._bufferTime.getValue()}intializeWebSocket(i="/"){return C(this,null,function*(){if(i.length<=0){this.toastService.error("RFID URL cannot be empty",g.Error);return}this.connection=new z().withUrl(i).configureLogging(J.Information).build();try{yield this.connection.start(),yield this.initiateGroupSubscription(),this.onWebSocketMessageReceived(),this._isConnected.next(!0),this.toastService.success("RFID Connected",g.Success)}catch(t){throw this._isConnected.next(!1),this.toastService.error(JSON.stringify(t),g.Error),setTimeout(()=>this.intializeWebSocket(),5e3),new Error(JSON.stringify(t))}})}initiateGroupSubscription(){return C(this,null,function*(){try{yield this.connection.invoke("SubscribeGroup",{CurrentID:"TransferOrder"})}catch(i){throw this.toastService.error(JSON.stringify(i),g.Error),new Error(JSON.stringify(i))}})}onWebSocketMessageReceived(){try{this.connection.on("ReceiveSignal",i=>{this._Data.next(i)})}catch(i){throw new Error(JSON.stringify(i))}}getVariantByCode(i,t=M.GuidEmpty){let e=[{key:"Code",value:i},{key:"EntityID",value:t}];return this.httpService.get(le.GetVariantByCode,e).pipe(B(n=>n instanceof A?R(null):x(()=>new Error(n.message))))}processGroupedData(i=M.GuidEmpty){return this._Data.pipe(S(t=>t!==null&&t&&Object.keys(t).length>0),G(this._bufferTime.getValue()),D(t=>k(t)),L(t=>t.epc),D(t=>t.pipe(I((e,n)=>[...e,n],[]),U(e=>{let n=t.key;if(this._cache.has(n))return this._cache.get(n).pipe(y(l=>({epc:n,items:e,response:l})));{let l=this.getVariantByCode(n,i).pipe(S(c=>c),H(c=>this._cache.set(n,R(c))));return this._cache.set(n,l),l.pipe(y(c=>({epc:n,items:e,response:c})))}}))),I((t,e)=>{let n=this.previousCountByEpc&&this.previousCountByEpc[e.epc]||0,l=e.items.length,c=l-n;return t[e.epc]={data:e.items,count:c,variant:e.response},this.previousCountByEpc[e.epc]=l,t},{}),N({bufferSize:1,refCount:!0}))}constructor(){super()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=V({token:o,factory:o.\u0275fac,providedIn:"root"})};var ce=o=>({"is-invalid":o});function pe(o,i){o&1&&(r(0,"span"),m(1,"Host URL is required."),a())}function ue(o,i){if(o&1&&(r(0,"div",6),p(1,pe,2,0,"span"),E(2,"span"),a()),o&2){let t,e=F();s(),u((t=e.form.get("hostURL").errors)!=null&&t.required?1:-1)}}function de(o,i){o&1&&(r(0,"span"),m(1,"Host URL is required."),a())}function Ce(o,i){o&1&&(r(0,"span"),m(1,"BufferTime must be at least 100"),a())}function ge(o,i){if(o&1&&(r(0,"div",6),p(1,de,2,0,"span"),p(2,Ce,2,0,"span"),a()),o&2){let t,e,n=F();s(),u((t=n.form.get("bufferTime").errors)!=null&&t.required?1:-1),s(),u((e=n.form.get("bufferTime").errors)!=null&&e.min?2:-1)}}var me=class o{constructor(i){this.dialogRef=i;this.form=this.fb.group({hostURL:["https://localhost:5001/rfidhub",[v.required]],bufferTime:["100",[v.required,v.min(100)]]},{updateOn:"change"}),this.config.title="Connect RFID",this.config.customWidth="400px"}config=new re;isConnect=new T(!1);RFIDConnectionService=f(_);fb=f(ee);onOK=new T;form;ok(){return C(this,null,function*(){this.onOK.emit(this.form.value),this.dialogRef.close("void")})}close(){this.dialogRef.close()}onBlur(i){this.form.patchValue({bufferTime:Number(i.value)})}static \u0275fac=function(t){return new(t||o)(P(oe))};static \u0275cmp=q({type:o,selectors:[["POS-dialog-connect-rfid"]],outputs:{onOK:"onOK"},decls:15,vars:12,consts:[[3,"onCancel","onClose","onOk","dynamicValidated","config"],[1,"d-flex","flex-column",2,"row-gap","1rem"],[1,"fw-normal"],[1,"form-floating-outline",3,"formGroup"],["formControlName","hostURL","id","floatingInput","placeholder","https://localhost:5030/rfidhub","type","text",1,"form-control",3,"ngClass"],["for","floatingInput"],["id","",1,"invalid-feedback"],["formControlName","bufferTime","id","floatingInput","placeholder","100","type","text",1,"form-control",3,"blur","ngClass"]],template:function(t,e){t&1&&(r(0,"modal-material",0),w("onCancel",function(){return e.close()})("onClose",function(){return e.close()})("onOk",function(){return e.ok()}),r(1,"content")(2,"div",1)(3,"h4",2),m(4,"Please input the RFID Host URL:"),a(),r(5,"div",3),E(6,"input",4),r(7,"label",5),m(8,"Host URL"),a(),p(9,ue,3,1,"div",6),a(),r(10,"div",3)(11,"input",7),w("blur",function(){return e.onBlur(e.form.get("bufferTime"))}),a(),r(12,"label",5),m(13,"Buffer Time (ms)"),a(),p(14,ge,3,2,"div",6),a()()()()),t&2&&(d("dynamicValidated",e.form.valid)("config",e.config),s(5),d("formGroup",e.form),s(),d("ngClass",O(8,ce,e.form.invalid&&e.form.touched)),s(3),u(e.form.get("hostURL").invalid&&e.form.get("hostURL").touched?9:-1),s(),d("formGroup",e.form),s(),d("ngClass",O(10,ce,e.form.invalid&&e.form.touched)),s(3),u(e.form.get("bufferTime").invalid&&e.form.get("bufferTime").touched?14:-1))},dependencies:[se,ae,ne,te,Q,X,Y,Z,$,W],styles:[".form-control.is-invalid[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})};export{b as a,_ as b,me as c};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-Y6GA2S36.js";import"./chunk-B36P4U32.js";import"./chunk-D7DUI5NF.js";import"./chunk-TXJJUZ26.js";import"./chunk-BNNKSBQ6.js";import"./chunk-6C2HPRJZ.js";import"./chunk-4CPRMZL6.js";import"./chunk-363IDTE3.js";import"./chunk-QZZ2NRA3.js";import"./chunk-TEGIL5RZ.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-LGOSIAUC.js";import"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as PrintModule};