dealpos 25.46.0 → 25.46.2

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 (270) hide show
  1. package/browser/{chunk-ID2BNJTV.js → chunk-23PKMU5D.js} +1 -1
  2. package/browser/{chunk-5A3WAD32.js → chunk-27Y3MQJV.js} +1 -1
  3. package/browser/chunk-2E4N3RZU.js +1 -0
  4. package/browser/{chunk-6SLXFBWF.js → chunk-2HOSLZ77.js} +1 -1
  5. package/browser/{chunk-GB6NLAAI.js → chunk-2KPICU7I.js} +1 -1
  6. package/browser/{chunk-WMTI6O7I.js → chunk-2LOWEWI4.js} +1 -1
  7. package/browser/{chunk-3F4KI5PR.js → chunk-2MQDNPCG.js} +1 -1
  8. package/browser/{chunk-JBMBXZHF.js → chunk-2RERZJD4.js} +1 -1
  9. package/browser/chunk-374PEHK3.js +1 -0
  10. package/browser/{chunk-2G2N3QIY.js → chunk-3BRM3TED.js} +1 -1
  11. package/browser/chunk-3GPGJFQV.js +1 -0
  12. package/browser/{chunk-QVN7DETM.js → chunk-3JKK7ROI.js} +1 -1
  13. package/browser/chunk-3KSZCJ6T.js +1 -0
  14. package/browser/{chunk-GF6UUBXR.js → chunk-3PC6CTVP.js} +1 -1
  15. package/browser/{chunk-QIYEPDZF.js → chunk-3XKRDZSE.js} +1 -1
  16. package/browser/{chunk-52X5HGTB.js → chunk-3YKXHA6Q.js} +1 -1
  17. package/browser/{chunk-BQ7W6HVM.js → chunk-46GHEHUK.js} +1 -1
  18. package/browser/chunk-475JSTPA.js +1 -0
  19. package/browser/{chunk-TKOHX2XL.js → chunk-4HCSE44G.js} +1 -1
  20. package/browser/{chunk-SNGOVACV.js → chunk-4HPBSK4V.js} +1 -1
  21. package/browser/{chunk-ANWIC3AL.js → chunk-4QM23MMO.js} +1 -1
  22. package/browser/{chunk-FVSWTMXM.js → chunk-4ZWIQZYV.js} +9 -9
  23. package/browser/{chunk-TJXA75FB.js → chunk-534MIVWD.js} +1 -1
  24. package/browser/{chunk-4BPD7IPB.js → chunk-56D7QEFP.js} +1 -1
  25. package/browser/{chunk-I46YKGKC.js → chunk-5I5IONRY.js} +1 -1
  26. package/browser/{chunk-5SJZZU5V.js → chunk-5IAWFOXD.js} +1 -1
  27. package/browser/{chunk-GFBFG6KV.js → chunk-5L54U63F.js} +1 -1
  28. package/browser/{chunk-E7CKHP2W.js → chunk-5SFUSWFY.js} +1 -1
  29. package/browser/chunk-5TKXFIDJ.js +1 -0
  30. package/browser/chunk-5TOXPQJI.js +16 -0
  31. package/browser/chunk-66MCBKC7.js +1 -0
  32. package/browser/{chunk-6KAJXZU4.js → chunk-6FM7DAHK.js} +1 -1
  33. package/browser/{chunk-EPSJXHC6.js → chunk-6H5P35AP.js} +1 -1
  34. package/browser/{chunk-P5NZWQQQ.js → chunk-6SGN7MNX.js} +1 -1
  35. package/browser/{chunk-U2AHHKPZ.js → chunk-6WEGHV7F.js} +1 -1
  36. package/browser/{chunk-TFNPU76N.js → chunk-76RLGANX.js} +1 -1
  37. package/browser/{chunk-2RA23GAL.js → chunk-7EQG6N5Y.js} +1 -1
  38. package/browser/{chunk-RV3HEIY6.js → chunk-7NOKG3UC.js} +1 -1
  39. package/browser/{chunk-ITL6HDN2.js → chunk-7PN2DG6D.js} +1 -1
  40. package/browser/chunk-7QGORD2Z.js +2 -0
  41. package/browser/{chunk-VSS454NR.js → chunk-7TBS7SPQ.js} +1 -1
  42. package/browser/{chunk-HS26VQGJ.js → chunk-A45GTZVV.js} +1 -1
  43. package/browser/{chunk-EHLQZKY6.js → chunk-AAXXZ3RZ.js} +1 -1
  44. package/browser/{chunk-U2WIPEWI.js → chunk-ABO3BJKM.js} +1 -1
  45. package/browser/{chunk-WXF6PTWZ.js → chunk-AFBBEIKR.js} +1 -1
  46. package/browser/{chunk-VNV7VWNA.js → chunk-APOV2ZYY.js} +1 -1
  47. package/browser/{chunk-LWTHIG4U.js → chunk-AQQHMGYE.js} +1 -1
  48. package/browser/{chunk-QJIVDQKL.js → chunk-B3JWFPWO.js} +1 -1
  49. package/browser/{chunk-CRXFERRX.js → chunk-BILYIP7J.js} +1 -1
  50. package/browser/{chunk-47TATTXM.js → chunk-BKBSPC2U.js} +1 -1
  51. package/browser/chunk-BLG3XERH.js +1 -0
  52. package/browser/{chunk-VIIDAPDU.js → chunk-BR3Y2C2F.js} +1 -1
  53. package/browser/{chunk-42IETN73.js → chunk-BY57IAJ7.js} +1 -1
  54. package/browser/{chunk-WILA4FS3.js → chunk-BYO7FJ4O.js} +1 -1
  55. package/browser/{chunk-KRTNI2QB.js → chunk-C4WJKF7R.js} +1 -1
  56. package/browser/{chunk-OFXB2JPC.js → chunk-C56YPV2G.js} +2 -2
  57. package/browser/{chunk-EV4Q6ALX.js → chunk-C5AIOCPM.js} +1 -1
  58. package/browser/{chunk-T4EAHLQ4.js → chunk-CBSYYTXQ.js} +1 -1
  59. package/browser/{chunk-3G2IUR3X.js → chunk-CGISR53W.js} +1 -1
  60. package/browser/chunk-CLJWABT2.js +4 -0
  61. package/browser/{chunk-PS6E5OMN.js → chunk-CM7Z6YFA.js} +1 -1
  62. package/browser/{chunk-YJJAQOYJ.js → chunk-CS6HBROS.js} +1 -1
  63. package/browser/{chunk-O44PCSTB.js → chunk-DC426G2P.js} +1 -1
  64. package/browser/{chunk-FV4VN5TM.js → chunk-DGXQDOCM.js} +1 -1
  65. package/browser/{chunk-VCSTNDEY.js → chunk-DJAISUEF.js} +1 -1
  66. package/browser/{chunk-KOF4TIVO.js → chunk-DJTAYVZN.js} +1 -1
  67. package/browser/chunk-DLNZDHGS.js +1 -0
  68. package/browser/{chunk-XGM7LWRY.js → chunk-DWZLJMWC.js} +1 -1
  69. package/browser/{chunk-HENPJSI6.js → chunk-DXBQR3VL.js} +1 -1
  70. package/browser/{chunk-XVOXL7EV.js → chunk-E2DUJTA4.js} +1 -1
  71. package/browser/{chunk-S5MGRIMQ.js → chunk-ED4WZKA6.js} +1 -1
  72. package/browser/{chunk-QLGCMRTS.js → chunk-EMJ7V5XH.js} +2 -2
  73. package/browser/{chunk-B2ZKTHHK.js → chunk-EX4TE4E5.js} +1 -1
  74. package/browser/{chunk-MBWD4S2P.js → chunk-F53OD5V2.js} +1 -1
  75. package/browser/{chunk-QNQXO4YS.js → chunk-FIUZN6JU.js} +1 -1
  76. package/browser/{chunk-UFZBFEHP.js → chunk-FNQCKGUC.js} +1 -1
  77. package/browser/{chunk-WJL7IGC6.js → chunk-FX72NG5O.js} +1 -1
  78. package/browser/{chunk-LLD4JAZJ.js → chunk-FY2ZQK3Q.js} +1 -1
  79. package/browser/{chunk-FO57E5BU.js → chunk-G4IW5GPY.js} +1 -1
  80. package/browser/{chunk-FHVQSZV4.js → chunk-G5QWJMKY.js} +1 -1
  81. package/browser/{chunk-54PTN6TM.js → chunk-GDS3XQ5F.js} +1 -1
  82. package/browser/{chunk-MMT7GFHE.js → chunk-GI7KMXBX.js} +1 -1
  83. package/browser/{chunk-XMPP4Y4Z.js → chunk-GM6P3WGI.js} +1 -1
  84. package/browser/{chunk-XSPT7GLC.js → chunk-GMPJ72LI.js} +1 -1
  85. package/browser/{chunk-YGOSFZQM.js → chunk-GNODCFOP.js} +1 -1
  86. package/browser/{chunk-7WAZVWJ7.js → chunk-GODXDKX5.js} +1 -1
  87. package/browser/chunk-GSFXKVGZ.js +1 -0
  88. package/browser/{chunk-D7PYJVQX.js → chunk-H7XFYY6V.js} +1 -1
  89. package/browser/chunk-HI65LAJQ.js +1 -0
  90. package/browser/{chunk-LOHDNRJM.js → chunk-HIOIFMAE.js} +1 -1
  91. package/browser/{chunk-LHXDS2UV.js → chunk-HL3ONSX6.js} +1 -1
  92. package/browser/{chunk-XUEGGJ25.js → chunk-HLNB2PE4.js} +1 -1
  93. package/browser/chunk-HOBU2OAG.js +1 -0
  94. package/browser/{chunk-X5OTMPQN.js → chunk-HQ4NLUV6.js} +1 -1
  95. package/browser/{chunk-GA5UNKLN.js → chunk-HYCJCA6A.js} +1 -1
  96. package/browser/{chunk-6AY5BHS7.js → chunk-HYCSLDMX.js} +1 -1
  97. package/browser/{chunk-WPPCNK6N.js → chunk-I3ABVEQL.js} +1 -1
  98. package/browser/{chunk-RWMRVY4Q.js → chunk-IDQUQBKL.js} +1 -1
  99. package/browser/chunk-IFOBYW26.js +1 -0
  100. package/browser/chunk-IGKZJP6R.js +1 -0
  101. package/browser/{chunk-OQW54TBN.js → chunk-IGNVHAO2.js} +1 -1
  102. package/browser/{chunk-BCNA556P.js → chunk-IKA5TDNG.js} +1 -1
  103. package/browser/{chunk-GG2JYIHB.js → chunk-ILIZ5NZH.js} +3 -3
  104. package/browser/{chunk-BWBWSNUR.js → chunk-IMST27WS.js} +1 -1
  105. package/browser/{chunk-XABTH5K3.js → chunk-INHUUGSI.js} +1 -1
  106. package/browser/{chunk-XFQZ7QQD.js → chunk-IRDKCXB2.js} +1 -1
  107. package/browser/{chunk-BOKRBOOE.js → chunk-IWUWV3MS.js} +1 -1
  108. package/browser/{chunk-REYWUYK5.js → chunk-J7YNB6YX.js} +1 -1
  109. package/browser/{chunk-6CM3LOP5.js → chunk-JCTDWAYQ.js} +1 -1
  110. package/browser/{chunk-CDXAKDVU.js → chunk-JEL3OND6.js} +1 -1
  111. package/browser/{chunk-2S4MUH4L.js → chunk-JT3HOWQH.js} +10 -10
  112. package/browser/{chunk-NQ3TLVWW.js → chunk-JUS6LLVX.js} +1 -1
  113. package/browser/{chunk-HG5EY2AA.js → chunk-JVFZL3LP.js} +1 -1
  114. package/browser/{chunk-D4VXNK25.js → chunk-JYZTRN6N.js} +3 -3
  115. package/browser/{chunk-NKSKEAZY.js → chunk-K4LLK7O5.js} +1 -1
  116. package/browser/{chunk-DSGMEORC.js → chunk-KA4G654J.js} +1 -1
  117. package/browser/{chunk-FE7XNXYT.js → chunk-KCOMWYKA.js} +1 -1
  118. package/browser/{chunk-RN6J3XFI.js → chunk-KD7WBOUR.js} +1 -1
  119. package/browser/{chunk-W4S7Q6CB.js → chunk-KEAT6AT3.js} +1 -1
  120. package/browser/{chunk-5X6HJLPO.js → chunk-KHR4NBM3.js} +1 -1
  121. package/browser/{chunk-TU6PG43Y.js → chunk-KI4BAWII.js} +1 -1
  122. package/browser/{chunk-XEAD3GDE.js → chunk-KJLTTTEY.js} +1 -1
  123. package/browser/{chunk-PIZCEKMP.js → chunk-KKLNFVVN.js} +1 -1
  124. package/browser/{chunk-TRI5DSKF.js → chunk-KP7OGAMJ.js} +1 -1
  125. package/browser/chunk-KPVGNOMG.js +1 -0
  126. package/browser/{chunk-Z2VRH2HR.js → chunk-KTPMM54V.js} +1 -1
  127. package/browser/{chunk-KPNDJV2U.js → chunk-KYAKLZR7.js} +1 -1
  128. package/browser/chunk-L424UWKA.js +3 -0
  129. package/browser/{chunk-ZVQF3NH4.js → chunk-L5GSB3ZX.js} +1 -1
  130. package/browser/{chunk-QDM4BBTH.js → chunk-L5ZIS7CJ.js} +1 -1
  131. package/browser/{chunk-XU5W6MOV.js → chunk-L76WVZW6.js} +1 -1
  132. package/browser/{chunk-2PFGIE43.js → chunk-LAZZHDUO.js} +1 -1
  133. package/browser/{chunk-CSSCB5H5.js → chunk-LBQRCFLJ.js} +1 -1
  134. package/browser/{chunk-JCTDORER.js → chunk-LBXJVRAT.js} +1 -1
  135. package/browser/{chunk-HPPVU3Z2.js → chunk-LK7UQBXO.js} +1 -1
  136. package/browser/{chunk-JQFQEYSX.js → chunk-LLEPB2B6.js} +1 -1
  137. package/browser/{chunk-KVJIA6ZU.js → chunk-LUWTRLMM.js} +1 -1
  138. package/browser/{chunk-DBEYMOMT.js → chunk-M43HNBJQ.js} +1 -1
  139. package/browser/{chunk-XZGY4EZF.js → chunk-MD6WWBSZ.js} +1 -1
  140. package/browser/{chunk-SN3QC2AI.js → chunk-MEG3XVPI.js} +1 -1
  141. package/browser/{chunk-UV57OGWO.js → chunk-MFBHQLLO.js} +1 -1
  142. package/browser/{chunk-IXBA7EIJ.js → chunk-MIENCGCQ.js} +1 -1
  143. package/browser/{chunk-H6DX2XWJ.js → chunk-MJ2YN4R7.js} +1 -1
  144. package/browser/{chunk-JSKJOCYV.js → chunk-MJIPNN7A.js} +1 -1
  145. package/browser/chunk-MMP7HKXF.js +1 -0
  146. package/browser/{chunk-GNTFQRQT.js → chunk-MPAFCKH7.js} +1 -1
  147. package/browser/{chunk-6JM2R43J.js → chunk-MPE7Q4VX.js} +1 -1
  148. package/browser/{chunk-2P6YEJWK.js → chunk-N6ZNENQU.js} +2 -2
  149. package/browser/{chunk-V2IOC2AJ.js → chunk-NFFC4KSY.js} +1 -1
  150. package/browser/{chunk-5WD2XGU7.js → chunk-NMOQIXVY.js} +1 -1
  151. package/browser/{chunk-6KD2XLEU.js → chunk-NQ3LNNVL.js} +1 -1
  152. package/browser/{chunk-CKUZYWD3.js → chunk-NRF37QSD.js} +1 -1
  153. package/browser/{chunk-OWKXU5ZC.js → chunk-NWSIPELM.js} +1 -1
  154. package/browser/{chunk-GFNPL4DE.js → chunk-NX6ACGTN.js} +1 -1
  155. package/browser/{chunk-CH2CJQUF.js → chunk-NZYZO47Z.js} +1 -1
  156. package/browser/{chunk-4GH7NXPQ.js → chunk-O2K56L4P.js} +1 -1
  157. package/browser/{chunk-ZJFXRNBM.js → chunk-O4AM5O5P.js} +16 -16
  158. package/browser/{chunk-7YBH2SXZ.js → chunk-O5SLP4JK.js} +1 -1
  159. package/browser/chunk-ON47ICI3.js +1 -0
  160. package/browser/{chunk-2T2LYQDD.js → chunk-OQI66KFN.js} +2 -2
  161. package/browser/{chunk-LY6VOK2B.js → chunk-OR7B4MQC.js} +1 -1
  162. package/browser/chunk-P5CBDXUP.js +1 -0
  163. package/browser/{chunk-5KVP2F7F.js → chunk-P6NP3EAO.js} +1 -1
  164. package/browser/{chunk-PMYMVWKR.js → chunk-PECGNYTX.js} +1 -1
  165. package/browser/{chunk-BZ2MTKI3.js → chunk-PKIK7U7Z.js} +1 -1
  166. package/browser/{chunk-4BMVHD44.js → chunk-PLWCVGTF.js} +1 -1
  167. package/browser/{chunk-LKDUSJDE.js → chunk-PO6OVC5B.js} +1 -1
  168. package/browser/{chunk-5V62CV7A.js → chunk-POJQGU7L.js} +1 -1
  169. package/browser/{chunk-XCII6WYI.js → chunk-Q2A4MYK3.js} +1 -1
  170. package/browser/chunk-QAQYVKMI.js +24 -0
  171. package/browser/{chunk-AM63STD6.js → chunk-QDE5Y76C.js} +1 -1
  172. package/browser/{chunk-YV457DYY.js → chunk-QEOGHVXA.js} +1 -1
  173. package/browser/{chunk-IYQKU2EL.js → chunk-QFON23YX.js} +1 -1
  174. package/browser/{chunk-TTUXWXNN.js → chunk-QIJEAKQK.js} +1 -1
  175. package/browser/{chunk-LFJYPPPQ.js → chunk-QPN54ILN.js} +1 -1
  176. package/browser/{chunk-5O5D7WMM.js → chunk-QZK5TM5O.js} +1 -1
  177. package/browser/{chunk-TO24XJZI.js → chunk-QZMZBCE7.js} +1 -1
  178. package/browser/{chunk-4WDKKRLY.js → chunk-R4OHTTCT.js} +1 -1
  179. package/browser/{chunk-L245BNIA.js → chunk-RF5WGONA.js} +1 -1
  180. package/browser/{chunk-FJDNER3H.js → chunk-RLQLFW36.js} +1 -1
  181. package/browser/{chunk-EEJEVJEF.js → chunk-RNLSEEMX.js} +1 -1
  182. package/browser/{chunk-VPNGMBCE.js → chunk-RNXOIUIO.js} +1 -1
  183. package/browser/{chunk-N5J3AS3T.js → chunk-S7N22G4D.js} +1 -1
  184. package/browser/{chunk-XUAUPVAM.js → chunk-SANNYTK4.js} +1 -1
  185. package/browser/chunk-SARJJ3AZ.js +1 -0
  186. package/browser/chunk-SEOZWGYI.js +1 -0
  187. package/browser/{chunk-VNNCIA5L.js → chunk-SFQX5FUP.js} +1 -1
  188. package/browser/{chunk-BG4XRSKY.js → chunk-SO4GMA3Y.js} +1 -1
  189. package/browser/chunk-SVAXS2TA.js +1 -0
  190. package/browser/chunk-TDZ2L7GX.js +1 -0
  191. package/browser/{chunk-D5IRUIA5.js → chunk-TGEQUV6Z.js} +1 -1
  192. package/browser/{chunk-6PPAAIAS.js → chunk-TH6BQXNM.js} +1 -1
  193. package/browser/{chunk-3ZFDZRWQ.js → chunk-TVWGXKBN.js} +1 -1
  194. package/browser/{chunk-5YVJIGMT.js → chunk-TVZ622KQ.js} +1 -1
  195. package/browser/{chunk-PNLYN7MQ.js → chunk-U3B2DTPX.js} +1 -1
  196. package/browser/{chunk-DNBHVVDZ.js → chunk-UDWVWF7E.js} +1 -1
  197. package/browser/{chunk-DFHK3QA3.js → chunk-UE2HBW5H.js} +1 -1
  198. package/browser/{chunk-ARGOJ7DE.js → chunk-UFBRV4CF.js} +1 -1
  199. package/browser/{chunk-4CLAEU7U.js → chunk-ULYBLEXA.js} +1 -1
  200. package/browser/chunk-UPV6MUOR.js +1 -0
  201. package/browser/{chunk-5ACAEXN7.js → chunk-USJ6ILEE.js} +1 -1
  202. package/browser/{chunk-VWL5FKU2.js → chunk-UTAQ3FRE.js} +1 -1
  203. package/browser/chunk-UWWB4ON7.js +1 -0
  204. package/browser/{chunk-B6RBXYBH.js → chunk-VP2ZEIJA.js} +1 -1
  205. package/browser/chunk-VWOX66SZ.js +3 -0
  206. package/browser/{chunk-B7BEECTQ.js → chunk-VYQEM4T2.js} +1 -1
  207. package/browser/chunk-WBMSB25X.js +1 -0
  208. package/browser/{chunk-BQZPNTN2.js → chunk-WH2BY5K4.js} +1 -1
  209. package/browser/{chunk-45LBXHFM.js → chunk-WMUZZ5XX.js} +1 -1
  210. package/browser/{chunk-FAUBVY2Z.js → chunk-WOAUMRNS.js} +2 -2
  211. package/browser/{chunk-HKYIKSF6.js → chunk-WRVMZNGD.js} +1 -1
  212. package/browser/{chunk-VBBYHB7E.js → chunk-X57HWGVJ.js} +1 -1
  213. package/browser/{chunk-HTUZHZ2W.js → chunk-XA4TVPAS.js} +1 -1
  214. package/browser/{chunk-T6TESUGU.js → chunk-XACC6EMJ.js} +1 -1
  215. package/browser/{chunk-RA4OB2YA.js → chunk-XEATJM6B.js} +1 -1
  216. package/browser/{chunk-NFZ2TD3A.js → chunk-XIXDLSA2.js} +1 -1
  217. package/browser/chunk-YEV6AJC2.js +1 -0
  218. package/browser/{chunk-MPPCTVQF.js → chunk-YRGHPSPV.js} +1 -1
  219. package/browser/chunk-YV6MAUKK.js +1 -0
  220. package/browser/chunk-Z6RY34PQ.js +1 -0
  221. package/browser/{chunk-QNPEMG6D.js → chunk-Z7IU5JLK.js} +1 -1
  222. package/browser/{chunk-YJJEYBW2.js → chunk-ZEKZLSGA.js} +1 -1
  223. package/browser/{chunk-QYQO4PJF.js → chunk-ZHPBIWMH.js} +1 -1
  224. package/browser/{chunk-2T52WAWX.js → chunk-ZK32OWP6.js} +2 -2
  225. package/browser/{chunk-7EN4VWQC.js → chunk-ZRYRGDGM.js} +1 -1
  226. package/browser/{chunk-5JDNG4HM.js → chunk-ZVBZGOUU.js} +1 -1
  227. package/browser/{chunk-IKX6MZV7.js → chunk-ZW5E2GIN.js} +1 -1
  228. package/browser/{chunk-KCYEWNYP.js → chunk-ZXSVZL53.js} +1 -1
  229. package/browser/index.html +2 -2
  230. package/browser/main-ICSDESMZ.js +3 -0
  231. package/package.json +1 -1
  232. package/browser/chunk-2BGWWBHC.js +0 -3
  233. package/browser/chunk-2UJUXPQL.js +0 -1
  234. package/browser/chunk-44MS566M.js +0 -4
  235. package/browser/chunk-45DQRELI.js +0 -24
  236. package/browser/chunk-5A4BI6R4.js +0 -1
  237. package/browser/chunk-67JWJEWL.js +0 -1
  238. package/browser/chunk-6VWCIQNT.js +0 -1
  239. package/browser/chunk-AD5QTGBG.js +0 -1
  240. package/browser/chunk-ADRSDODY.js +0 -1
  241. package/browser/chunk-AL37NTTS.js +0 -1
  242. package/browser/chunk-BWL4WXAD.js +0 -1
  243. package/browser/chunk-DWWQ27MN.js +0 -16
  244. package/browser/chunk-DZSOQO6Z.js +0 -1
  245. package/browser/chunk-G36EBMA4.js +0 -1
  246. package/browser/chunk-GQGYP4YJ.js +0 -1
  247. package/browser/chunk-HE2B5Q63.js +0 -1
  248. package/browser/chunk-II43RP2H.js +0 -1
  249. package/browser/chunk-JM73PAXO.js +0 -1
  250. package/browser/chunk-KY4GSSBW.js +0 -1
  251. package/browser/chunk-LFUE4ZL6.js +0 -2
  252. package/browser/chunk-LJ6YD225.js +0 -1
  253. package/browser/chunk-NJ67KPDC.js +0 -3
  254. package/browser/chunk-O2H3P76C.js +0 -1
  255. package/browser/chunk-OHYERAR6.js +0 -1
  256. package/browser/chunk-P4NX6EKZ.js +0 -1
  257. package/browser/chunk-PF2YFOXS.js +0 -1
  258. package/browser/chunk-QXANNR7D.js +0 -1
  259. package/browser/chunk-RLNFPJPE.js +0 -1
  260. package/browser/chunk-RRHPX65K.js +0 -1
  261. package/browser/chunk-SZHE2X7K.js +0 -1
  262. package/browser/chunk-TTR5FF2O.js +0 -1
  263. package/browser/chunk-UWBVPKV4.js +0 -1
  264. package/browser/chunk-Y2T5WNHG.js +0 -1
  265. package/browser/chunk-Y5JYDZ3E.js +0 -1
  266. package/browser/chunk-YGHK5XUL.js +0 -1
  267. package/browser/chunk-YZSVWK3T.js +0 -1
  268. package/browser/chunk-ZIWCCS4F.js +0 -1
  269. package/browser/chunk-ZJDFNACB.js +0 -1
  270. package/browser/main-K2ATSNT2.js +0 -3
@@ -1,4 +1,4 @@
1
- import{a as V,c as F}from"./chunk-PIZCEKMP.js";import{F as z,c as A,h as L,o as k}from"./chunk-EEJEVJEF.js";import{a as j,d as R}from"./chunk-5ACAEXN7.js";import{Bc as d,Ca as u,Cb as b,Cc as p,Db as o,Eb as n,Kc as N,Lc as S,Mb as w,Ob as g,Oc as _,Pc as h,Qb as v,Qc as $,Xa as r,Yb as I,Zb as Q,dc as l,ec as m,fc as T,hb as q,la as P,od as x,pa as C,rd as B,ta as D,ua as E,vb as y,xb as f}from"./chunk-D4VXNK25.js";var M=class s{decimalPipe=C(x);_priceNote=u("");_qtyNote=u("");_discountNote=u("");priceNote=this._priceNote.asReadonly();qtyNote=this._qtyNote.asReadonly();discountNote=this._discountNote.asReadonly();calculateItemPrice(e){let t=this.calculatePrice(e);return this.setPriceNote(e),t}setPriceNote(e){if(this.calculatePrice(e)===0){this._priceNote.set("");return}this._priceNote.set(`Price = ${e.map(i=>this.decimalPipe.transform(i)).join(" * ")}`)}calculatePrice(e=[]){return e=e.length===1?[e[0],0]:e,e.reduce((i,a)=>i*a,1)}calculateQty(e){let t=this.calculateQuantity(e);return this.setQtyNote(e),t}setQtyNote(e){if(this.calculateQuantity(e)===0){this._qtyNote.set("");return}this._qtyNote.set(`Quantity = ${e.map(i=>this.decimalPipe.transform(i)).join(" * ")}`)}calculateQuantity(e=[]){return e=e.length===1?[e[0],0]:e,e.reduce((i,a)=>i*a,1)}calculateDiscount(e){this.setDiscountNote(e);let t=100,i=0;e.forEach(c=>{t=t*(100-c)/100}),i=100-t;let a=this.decimalPipe.transform(i,"1.0-2");return a&&(i=parseFloat(a)),i}setDiscountNote(e){if(e.reduce((i,a)=>i+a,0)===0){this._discountNote.set("");return}this._discountNote.set(`Discount = ${e.map(i=>i).join(" + ")}`)}resetCalculator(){this._priceNote.set(""),this._qtyNote.set(""),this._discountNote.set("")}static \u0275fac=function(t){return new(t||s)};static \u0275prov=P({token:s,factory:s.\u0275fac,providedIn:"root"})};var U=["priceInput"];function G(s,e){if(s&1){let t=w();o(0,"div",12)(1,"div",4)(2,"div",5)(3,"label",6),l(4),n()(),o(5,"div",7)(6,"input",18,0),g("ngModelChange",function(a){D(t);let c=v();return E(c.onPriceChanges(0,a))}),n(),o(8,"span",9),l(9,"x"),n(),o(10,"input",19),g("ngModelChange",function(a){D(t);let c=v();return E(c.onPriceChanges(1,a))}),n(),o(11,"span",9),l(12,"="),n(),o(13,"span",11),l(14),d(15,"number"),n()()()()}if(s&2){let t=v();r(4),m(t.priceLabel()),r(2),b("ngModel",t.prices()[0])("disabled",!t.role.sell.UnitPriceEditor),r(4),b("ngModel",t.prices()[1])("disabled",!t.role.sell.UnitPriceEditor),r(4),m(p(15,6,t.priceTotal()))}}function J(s,e){if(s&1&&(o(0,"div",26)(1,"h5",33),l(2),d(3,"number"),n()()),s&2){let t=v(2);r(2),T("",p(3,1,t.discountTotal()),"%")}}function K(s,e){if(s&1&&(o(0,"h5",29),l(1),d(2,"number"),n()),s&2){let t=v(2);r(),T(" -",p(2,1,t.grossTotal()*(t.discountTotal()/100))," ")}}function W(s,e){if(s&1&&(o(0,"div",17)(1,"div",20)(2,"h4"),l(3,"Calculator Simulation"),n(),o(4,"h4",21),l(5),n()(),o(6,"div",22)(7,"div",23)(8,"div",24)(9,"h5"),l(10),d(11,"number"),n(),o(12,"span",25),l(13,"x"),n(),o(14,"h5"),l(15),d(16,"number"),n()(),y(17,J,4,3,"div",26),n(),o(18,"div",23)(19,"div",27)(20,"h5"),l(21),d(22,"number"),n()(),o(23,"div",28),y(24,K,3,3,"h5",29),n()()(),o(25,"div",30)(26,"div",31)(27,"h5"),l(28,"Grand Total"),n()(),o(29,"div",32)(30,"h5"),l(31),d(32,"number"),n()()()()),s&2){let t=v();r(5),T(" ",t.variantName()," "),r(5),m(p(11,7,t.qtyTotal())),r(5),m(p(16,9,t.priceTotal())),r(2),f(t.discountTotal()>0?17:-1),r(4),m(p(22,11,t.grossTotal())),r(3),f(t.discountTotal()?24:-1),r(7),m(p(32,13,t.totalAmount()))}}var O=class s{priceInput=$("priceInput");priceInputNativeElement;role=C(R);itemCalculatorService=C(M);priceLabel=h("Price");notes=h();variantName=h(null);disabledQty=h(!1);price=h();quantity=h();discount=h();_discountTotal=_({alias:"discountTotal"});_priceTotal=_({alias:"priceTotal"});_qtyTotal=_({alias:"qtyTotal"});noteChanges=_();discounts=u([]);prices=u([]);quantities=u([]);priceTotal=u(0);qtyTotal=u(0);discountTotal=u(0);grossTotal=N(()=>this.priceTotal()*this.qtyTotal());discountPercentAmount=N(()=>{let e=0;return this.discountTotal()>0&&(e=this.grossTotal()*this.discountTotal()/100),e});totalAmount=N(()=>this.grossTotal()-this.discountPercentAmount());constructor(){this.initCalculator(),S(()=>{this.priceInput()&&(this.priceInputNativeElement=this.priceInput().nativeElement)})}initCalculator(e=!0){S(()=>{this.initPrices(e),this.initQuantities(e),this.initDiscounts(e),e=!1})}initPrices(e){this.price()!==this.priceTotal()&&(this.prices.update(()=>[this.price(),1]),this.calculatePrice(!1),this.clearNotes(e))}initQuantities(e){this.quantity()!==this.qtyTotal()&&(this.quantities.update(()=>[this.quantity(),1]),this.calculateQty(!1),this.clearNotes(e))}initDiscounts(e){this.discount()!==this.discountTotal()&&(this.discounts.update(()=>[this.discount(),0,0]),this.calculateDiscount(!1),this.clearNotes(e))}onPriceChanges(e,t){this.prices.update(i=>{let a=[...i];return a[e]=t,a}),this.calculatePrice(),this.emitNoteChanges()}calculatePrice(e=!0){let t=this.itemCalculatorService.calculateItemPrice(this.prices());this.priceTotal.set(t),e&&this._priceTotal.emit(t)}onQuantityChanges(e,t){this.quantities.update(i=>{let a=[...i];return a[e]=t,a}),this.calculateQty(),this.emitNoteChanges()}calculateQty(e=!0){let t=this.itemCalculatorService.calculateQty(this.quantities());this.qtyTotal.set(t),e&&this._qtyTotal.emit(t)}onDiscountChanges(e,t){this.discounts.update(i=>{let a=[...i];return a[e]=t,a}),this.calculateDiscount(),this.emitNoteChanges()}calculateDiscount(e=!0){let t=this.itemCalculatorService.calculateDiscount(this.discounts());this.discountTotal.set(t),e&&this._discountTotal.emit(t)}emitNoteChanges(){let e=this.itemCalculatorService.priceNote(),t=this.itemCalculatorService.qtyNote(),i=this.itemCalculatorService.discountNote(),a=`
1
+ import{a as V,c as F}from"./chunk-KKLNFVVN.js";import{F as z,c as A,h as L,o as k}from"./chunk-RNLSEEMX.js";import{a as j,d as R}from"./chunk-USJ6ILEE.js";import{Bc as d,Ca as u,Cb as b,Cc as p,Db as o,Eb as n,Kc as N,Lc as S,Mb as w,Ob as g,Oc as _,Pc as h,Qb as v,Qc as $,Xa as r,Yb as I,Zb as Q,dc as l,ec as m,fc as T,hb as q,la as P,od as x,pa as C,rd as B,ta as D,ua as E,vb as y,xb as f}from"./chunk-JYZTRN6N.js";var M=class s{decimalPipe=C(x);_priceNote=u("");_qtyNote=u("");_discountNote=u("");priceNote=this._priceNote.asReadonly();qtyNote=this._qtyNote.asReadonly();discountNote=this._discountNote.asReadonly();calculateItemPrice(e){let t=this.calculatePrice(e);return this.setPriceNote(e),t}setPriceNote(e){if(this.calculatePrice(e)===0){this._priceNote.set("");return}this._priceNote.set(`Price = ${e.map(i=>this.decimalPipe.transform(i)).join(" * ")}`)}calculatePrice(e=[]){return e=e.length===1?[e[0],0]:e,e.reduce((i,a)=>i*a,1)}calculateQty(e){let t=this.calculateQuantity(e);return this.setQtyNote(e),t}setQtyNote(e){if(this.calculateQuantity(e)===0){this._qtyNote.set("");return}this._qtyNote.set(`Quantity = ${e.map(i=>this.decimalPipe.transform(i)).join(" * ")}`)}calculateQuantity(e=[]){return e=e.length===1?[e[0],0]:e,e.reduce((i,a)=>i*a,1)}calculateDiscount(e){this.setDiscountNote(e);let t=100,i=0;e.forEach(c=>{t=t*(100-c)/100}),i=100-t;let a=this.decimalPipe.transform(i,"1.0-2");return a&&(i=parseFloat(a)),i}setDiscountNote(e){if(e.reduce((i,a)=>i+a,0)===0){this._discountNote.set("");return}this._discountNote.set(`Discount = ${e.map(i=>i).join(" + ")}`)}resetCalculator(){this._priceNote.set(""),this._qtyNote.set(""),this._discountNote.set("")}static \u0275fac=function(t){return new(t||s)};static \u0275prov=P({token:s,factory:s.\u0275fac,providedIn:"root"})};var U=["priceInput"];function G(s,e){if(s&1){let t=w();o(0,"div",12)(1,"div",4)(2,"div",5)(3,"label",6),l(4),n()(),o(5,"div",7)(6,"input",18,0),g("ngModelChange",function(a){D(t);let c=v();return E(c.onPriceChanges(0,a))}),n(),o(8,"span",9),l(9,"x"),n(),o(10,"input",19),g("ngModelChange",function(a){D(t);let c=v();return E(c.onPriceChanges(1,a))}),n(),o(11,"span",9),l(12,"="),n(),o(13,"span",11),l(14),d(15,"number"),n()()()()}if(s&2){let t=v();r(4),m(t.priceLabel()),r(2),b("ngModel",t.prices()[0])("disabled",!t.role.sell.UnitPriceEditor),r(4),b("ngModel",t.prices()[1])("disabled",!t.role.sell.UnitPriceEditor),r(4),m(p(15,6,t.priceTotal()))}}function J(s,e){if(s&1&&(o(0,"div",26)(1,"h5",33),l(2),d(3,"number"),n()()),s&2){let t=v(2);r(2),T("",p(3,1,t.discountTotal()),"%")}}function K(s,e){if(s&1&&(o(0,"h5",29),l(1),d(2,"number"),n()),s&2){let t=v(2);r(),T(" -",p(2,1,t.grossTotal()*(t.discountTotal()/100))," ")}}function W(s,e){if(s&1&&(o(0,"div",17)(1,"div",20)(2,"h4"),l(3,"Calculator Simulation"),n(),o(4,"h4",21),l(5),n()(),o(6,"div",22)(7,"div",23)(8,"div",24)(9,"h5"),l(10),d(11,"number"),n(),o(12,"span",25),l(13,"x"),n(),o(14,"h5"),l(15),d(16,"number"),n()(),y(17,J,4,3,"div",26),n(),o(18,"div",23)(19,"div",27)(20,"h5"),l(21),d(22,"number"),n()(),o(23,"div",28),y(24,K,3,3,"h5",29),n()()(),o(25,"div",30)(26,"div",31)(27,"h5"),l(28,"Grand Total"),n()(),o(29,"div",32)(30,"h5"),l(31),d(32,"number"),n()()()()),s&2){let t=v();r(5),T(" ",t.variantName()," "),r(5),m(p(11,7,t.qtyTotal())),r(5),m(p(16,9,t.priceTotal())),r(2),f(t.discountTotal()>0?17:-1),r(4),m(p(22,11,t.grossTotal())),r(3),f(t.discountTotal()?24:-1),r(7),m(p(32,13,t.totalAmount()))}}var O=class s{priceInput=$("priceInput");priceInputNativeElement;role=C(R);itemCalculatorService=C(M);priceLabel=h("Price");notes=h();variantName=h(null);disabledQty=h(!1);price=h();quantity=h();discount=h();_discountTotal=_({alias:"discountTotal"});_priceTotal=_({alias:"priceTotal"});_qtyTotal=_({alias:"qtyTotal"});noteChanges=_();discounts=u([]);prices=u([]);quantities=u([]);priceTotal=u(0);qtyTotal=u(0);discountTotal=u(0);grossTotal=N(()=>this.priceTotal()*this.qtyTotal());discountPercentAmount=N(()=>{let e=0;return this.discountTotal()>0&&(e=this.grossTotal()*this.discountTotal()/100),e});totalAmount=N(()=>this.grossTotal()-this.discountPercentAmount());constructor(){this.initCalculator(),S(()=>{this.priceInput()&&(this.priceInputNativeElement=this.priceInput().nativeElement)})}initCalculator(e=!0){S(()=>{this.initPrices(e),this.initQuantities(e),this.initDiscounts(e),e=!1})}initPrices(e){this.price()!==this.priceTotal()&&(this.prices.update(()=>[this.price(),1]),this.calculatePrice(!1),this.clearNotes(e))}initQuantities(e){this.quantity()!==this.qtyTotal()&&(this.quantities.update(()=>[this.quantity(),1]),this.calculateQty(!1),this.clearNotes(e))}initDiscounts(e){this.discount()!==this.discountTotal()&&(this.discounts.update(()=>[this.discount(),0,0]),this.calculateDiscount(!1),this.clearNotes(e))}onPriceChanges(e,t){this.prices.update(i=>{let a=[...i];return a[e]=t,a}),this.calculatePrice(),this.emitNoteChanges()}calculatePrice(e=!0){let t=this.itemCalculatorService.calculateItemPrice(this.prices());this.priceTotal.set(t),e&&this._priceTotal.emit(t)}onQuantityChanges(e,t){this.quantities.update(i=>{let a=[...i];return a[e]=t,a}),this.calculateQty(),this.emitNoteChanges()}calculateQty(e=!0){let t=this.itemCalculatorService.calculateQty(this.quantities());this.qtyTotal.set(t),e&&this._qtyTotal.emit(t)}onDiscountChanges(e,t){this.discounts.update(i=>{let a=[...i];return a[e]=t,a}),this.calculateDiscount(),this.emitNoteChanges()}calculateDiscount(e=!0){let t=this.itemCalculatorService.calculateDiscount(this.discounts());this.discountTotal.set(t),e&&this._discountTotal.emit(t)}emitNoteChanges(){let e=this.itemCalculatorService.priceNote(),t=this.itemCalculatorService.qtyNote(),i=this.itemCalculatorService.discountNote(),a=`
2
2
  ${t?`<div>${t}</div>`:""}
3
3
  ${e?`<div>${e}</div>`:""}
4
4
  ${i?`<div>${i}</div>`:""}
@@ -1 +1 @@
1
- import{a as ae,b as le}from"./chunk-W4S7Q6CB.js";import"./chunk-BQZPNTN2.js";import{a as ie}from"./chunk-2PFGIE43.js";import"./chunk-O2H3P76C.js";import"./chunk-WILA4FS3.js";import"./chunk-T4EAHLQ4.js";import{e as de,f as ce}from"./chunk-3G2IUR3X.js";import"./chunk-B7BEECTQ.js";import"./chunk-VWL5FKU2.js";import"./chunk-6KAJXZU4.js";import{a as pe,b as me}from"./chunk-FV4VN5TM.js";import"./chunk-YJJAQOYJ.js";import"./chunk-NQ3TLVWW.js";import"./chunk-TO24XJZI.js";import"./chunk-KRTNI2QB.js";import{O as H}from"./chunk-CH2CJQUF.js";import{d as ue,e as se}from"./chunk-VSS454NR.js";import{a as re}from"./chunk-HS26VQGJ.js";import"./chunk-OWKXU5ZC.js";import"./chunk-XU5W6MOV.js";import"./chunk-2FWFPV5I.js";import"./chunk-7YBH2SXZ.js";import{F as te,c as Y,h as Z,o as ee}from"./chunk-EEJEVJEF.js";import"./chunk-HG5EY2AA.js";import"./chunk-5YVJIGMT.js";import{a as h,d as oe}from"./chunk-5ACAEXN7.js";import"./chunk-44MS566M.js";import{$d as X,Ab as V,Bb as k,Bc as d,Ca as D,Cb as s,Cc as f,Db as o,Dc as A,Eb as r,Fb as O,Hc as j,Mb as w,Ob as G,Qa as L,Qb as u,Wd as K,Xa as l,Y as b,Zd as Q,db as M,dc as p,ec as g,ee as ne,fa as R,hb as U,ic as P,jc as I,kc as E,kd as q,lb as B,lc as N,md as z,nb as F,pa as v,rd as J,ta as c,tc as W,ua as _,uc as $,vb as y,xb as C,zb as T}from"./chunk-D4VXNK25.js";import"./chunk-WFMAM73Y.js";import{a as x,b as S}from"./chunk-SNAKHGZS.js";var ge=()=>["/menu/Users/User/Groups/Info"],fe=i=>({ID:i});function he(i,m){if(i&1){let e=w();o(0,"div",9)(1,"h6"),p(2,"Group"),r(),o(3,"ng-select",10),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().GroupID,t)||(a.filter().GroupID=t),_(t)}),r(),o(4,"h6"),p(5,"Row Count"),r(),o(6,"input",11),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().RowCount,t)||(a.filter().RowCount=t),_(t)}),r()()}if(i&2){let e=u(2);l(3),s("items",e.options().Groups),P("ngModel",e.filter().GroupID),l(3),s("max",1e4),P("ngModel",e.filter().RowCount)}}function ye(i,m){if(i&1&&(o(0,"a",12),p(1),r()),i&2){let e=u().$implicit;s("routerLink",W(3,ge))("queryParams",$(4,fe,e._source==null||e._source.Log==null?null:e._source.Log.id)),l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function Ce(i,m){if(i&1&&(o(0,"span"),p(1),r()),i&2){let e=u().$implicit;l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function xe(i,m){if(i&1&&(o(0,"tr",7)(1,"td"),y(2,ye,2,6,"a",12),y(3,Ce,2,1,"span"),r(),o(4,"td"),p(5),d(6,"date"),r(),o(7,"td"),p(8),r(),O(9,"td",13),d(10,"newlines"),r()),i&2){let e=m.$implicit,n=u(2);l(2),C(n.role.users.Edit?2:-1),l(),C(n.role.users.Edit?-1:3),l(2),g(A(6,5,e._source["@timestamp"],"dd MMM yyyy HH:mm")),l(3),g(e._source==null||e._source.Log==null?null:e._source.Log.creator),l(),s("innerHtml",f(10,8,e._source==null||e._source.Log==null?null:e._source.Log.note),L)}}function Se(i,m){if(i&1){let e=w();o(0,"mainpanel-cmp",2),G("onSubmit",function(){c(e);let t=u();return _(t.initData())}),o(1,"filters"),F(2,he,7,4,"ng-template",null,0,j),r(),o(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th"),p(11,"Group"),r(),o(12,"th"),p(13,"Modified"),r(),o(14,"th"),p(15,"Modify By"),r(),o(16,"th"),p(17,"Note"),r()()(),o(18,"tbody"),V(19,xe,11,10,"tr",7,T),d(21,"async"),r()(),o(22,"div"),N(23),d(24,"async"),o(25,"mat-paginator",8),G("page",function(t){c(e);let a=u();return _(a.onPaginationChange(t))}),r()()()()()()}if(i&2){let e,n,t=u();s("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),l(19),k((e=f(21,6,t.data$))==null||e.Data==null?null:e.Data.hits);let a=(n=f(24,8,t.data$))==null||n.Data==null||n.Data.hits==null?null:n.Data.hits.length;l(6),s("length",a)("pageSize",t.filter().RowCount)("pageIndex",t.filter().PageNumber==0?0:t.filter().PageNumber-1)}}var _e=class i extends pe{constructor(e,n){super(e);this.role=n;this.menuData$.pipe(re()).subscribe();let t=this.routeSnapshot.snapshot?.queryParams?.ID;h.IsNotEmpty(t)&&(this.filter.update(a=>S(x({},a),{GroupID:t})),this.initData())}httpService=v(ne);routeSnapshot=v(K);filter=D({PageNumber:1,RowCount:20,GroupID:h.GuidEmpty});options=D({Groups:[]});loader$=this.httpService.get(H.GroupHistoryLoader).pipe(R(e=>{this.options.set(e.Options),this.initData()}),b(1));data$;initData(){let e=h.IsNotEmpty(this.filter().GroupID)?this.filter().GroupID:h.GuidEmpty;this.data$=this.httpService.get(H.GroupHistoryData,[{key:"PageNumber",value:this.filter().PageNumber},{key:"RowCount",value:this.filter().RowCount},{key:"GroupID",value:e}]).pipe(b(1))}onPaginationChange(e){this.filter.update(n=>S(x({},n),{PageNumber:e.pageIndex+1})),this.initData()}static \u0275fac=function(n){return new(n||i)(M(me),M(oe))};static \u0275cmp=U({type:i,selectors:[["app-group-update-history"]],features:[B],decls:3,vars:3,consts:[["pageFilterTemplate",""],["searchBoxPlaceholder","Search Note...",3,"pageData","isFilterOnDropdown","hideSearchBox"],["searchBoxPlaceholder","Search Note...",3,"onSubmit","pageData","isFilterOnDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"border-bottom"],[3,"page","length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Name","bindValue","ID","placeholder","Choose a group","appendTo","body",3,"ngModelChange","items","ngModel"],["type","text","autoNum","",1,"input-left","w-100","form-control","input-filter",3,"ngModelChange","max","ngModel"],[3,"routerLink","queryParams"],[3,"innerHtml"]],template:function(n,t){if(n&1&&(N(0),d(1,"async"),y(2,Se,26,10,"mainpanel-cmp",1)),n&2){let a=f(1,1,t.loader$);l(2),C(a?2:-1)}},dependencies:[J,ce,de,le,ae,X,Q,te,Y,Z,ee,se,ue,q,z,ie],encapsulation:2})};export{_e as GroupUpdateHistoryComponent};
1
+ import{a as ae,b as le}from"./chunk-KEAT6AT3.js";import"./chunk-WH2BY5K4.js";import{a as ie}from"./chunk-LAZZHDUO.js";import"./chunk-SARJJ3AZ.js";import"./chunk-BYO7FJ4O.js";import"./chunk-CBSYYTXQ.js";import{e as de,f as ce}from"./chunk-CGISR53W.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-6FM7DAHK.js";import{a as pe,b as me}from"./chunk-DGXQDOCM.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-QZMZBCE7.js";import"./chunk-C4WJKF7R.js";import{O as H}from"./chunk-NZYZO47Z.js";import{d as ue,e as se}from"./chunk-7TBS7SPQ.js";import{a as re}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as te,c as Y,h as Z,o as ee}from"./chunk-RNLSEEMX.js";import"./chunk-JVFZL3LP.js";import"./chunk-TVZ622KQ.js";import{a as h,d as oe}from"./chunk-USJ6ILEE.js";import"./chunk-CLJWABT2.js";import{$d as X,Ab as V,Bb as k,Bc as d,Ca as D,Cb as s,Cc as f,Db as o,Dc as A,Eb as r,Fb as O,Hc as j,Mb as w,Ob as G,Qa as L,Qb as u,Wd as K,Xa as l,Y as b,Zd as Q,db as M,dc as p,ec as g,ee as ne,fa as R,hb as U,ic as P,jc as I,kc as E,kd as q,lb as B,lc as N,md as z,nb as F,pa as v,rd as J,ta as c,tc as W,ua as _,uc as $,vb as y,xb as C,zb as T}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as x,b as S}from"./chunk-SNAKHGZS.js";var ge=()=>["/menu/Users/User/Groups/Info"],fe=i=>({ID:i});function he(i,m){if(i&1){let e=w();o(0,"div",9)(1,"h6"),p(2,"Group"),r(),o(3,"ng-select",10),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().GroupID,t)||(a.filter().GroupID=t),_(t)}),r(),o(4,"h6"),p(5,"Row Count"),r(),o(6,"input",11),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().RowCount,t)||(a.filter().RowCount=t),_(t)}),r()()}if(i&2){let e=u(2);l(3),s("items",e.options().Groups),P("ngModel",e.filter().GroupID),l(3),s("max",1e4),P("ngModel",e.filter().RowCount)}}function ye(i,m){if(i&1&&(o(0,"a",12),p(1),r()),i&2){let e=u().$implicit;s("routerLink",W(3,ge))("queryParams",$(4,fe,e._source==null||e._source.Log==null?null:e._source.Log.id)),l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function Ce(i,m){if(i&1&&(o(0,"span"),p(1),r()),i&2){let e=u().$implicit;l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function xe(i,m){if(i&1&&(o(0,"tr",7)(1,"td"),y(2,ye,2,6,"a",12),y(3,Ce,2,1,"span"),r(),o(4,"td"),p(5),d(6,"date"),r(),o(7,"td"),p(8),r(),O(9,"td",13),d(10,"newlines"),r()),i&2){let e=m.$implicit,n=u(2);l(2),C(n.role.users.Edit?2:-1),l(),C(n.role.users.Edit?-1:3),l(2),g(A(6,5,e._source["@timestamp"],"dd MMM yyyy HH:mm")),l(3),g(e._source==null||e._source.Log==null?null:e._source.Log.creator),l(),s("innerHtml",f(10,8,e._source==null||e._source.Log==null?null:e._source.Log.note),L)}}function Se(i,m){if(i&1){let e=w();o(0,"mainpanel-cmp",2),G("onSubmit",function(){c(e);let t=u();return _(t.initData())}),o(1,"filters"),F(2,he,7,4,"ng-template",null,0,j),r(),o(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th"),p(11,"Group"),r(),o(12,"th"),p(13,"Modified"),r(),o(14,"th"),p(15,"Modify By"),r(),o(16,"th"),p(17,"Note"),r()()(),o(18,"tbody"),V(19,xe,11,10,"tr",7,T),d(21,"async"),r()(),o(22,"div"),N(23),d(24,"async"),o(25,"mat-paginator",8),G("page",function(t){c(e);let a=u();return _(a.onPaginationChange(t))}),r()()()()()()}if(i&2){let e,n,t=u();s("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),l(19),k((e=f(21,6,t.data$))==null||e.Data==null?null:e.Data.hits);let a=(n=f(24,8,t.data$))==null||n.Data==null||n.Data.hits==null?null:n.Data.hits.length;l(6),s("length",a)("pageSize",t.filter().RowCount)("pageIndex",t.filter().PageNumber==0?0:t.filter().PageNumber-1)}}var _e=class i extends pe{constructor(e,n){super(e);this.role=n;this.menuData$.pipe(re()).subscribe();let t=this.routeSnapshot.snapshot?.queryParams?.ID;h.IsNotEmpty(t)&&(this.filter.update(a=>S(x({},a),{GroupID:t})),this.initData())}httpService=v(ne);routeSnapshot=v(K);filter=D({PageNumber:1,RowCount:20,GroupID:h.GuidEmpty});options=D({Groups:[]});loader$=this.httpService.get(H.GroupHistoryLoader).pipe(R(e=>{this.options.set(e.Options),this.initData()}),b(1));data$;initData(){let e=h.IsNotEmpty(this.filter().GroupID)?this.filter().GroupID:h.GuidEmpty;this.data$=this.httpService.get(H.GroupHistoryData,[{key:"PageNumber",value:this.filter().PageNumber},{key:"RowCount",value:this.filter().RowCount},{key:"GroupID",value:e}]).pipe(b(1))}onPaginationChange(e){this.filter.update(n=>S(x({},n),{PageNumber:e.pageIndex+1})),this.initData()}static \u0275fac=function(n){return new(n||i)(M(me),M(oe))};static \u0275cmp=U({type:i,selectors:[["app-group-update-history"]],features:[B],decls:3,vars:3,consts:[["pageFilterTemplate",""],["searchBoxPlaceholder","Search Note...",3,"pageData","isFilterOnDropdown","hideSearchBox"],["searchBoxPlaceholder","Search Note...",3,"onSubmit","pageData","isFilterOnDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"border-bottom"],[3,"page","length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Name","bindValue","ID","placeholder","Choose a group","appendTo","body",3,"ngModelChange","items","ngModel"],["type","text","autoNum","",1,"input-left","w-100","form-control","input-filter",3,"ngModelChange","max","ngModel"],[3,"routerLink","queryParams"],[3,"innerHtml"]],template:function(n,t){if(n&1&&(N(0),d(1,"async"),y(2,Se,26,10,"mainpanel-cmp",1)),n&2){let a=f(1,1,t.loader$);l(2),C(a?2:-1)}},dependencies:[J,ce,de,le,ae,X,Q,te,Y,Z,ee,se,ue,q,z,ie],encapsulation:2})};export{_e as GroupUpdateHistoryComponent};
@@ -1 +1 @@
1
- import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-XEAD3GDE.js";import"./chunk-5X6HJLPO.js";import"./chunk-4GH7NXPQ.js";import"./chunk-D7PYJVQX.js";import"./chunk-T6TESUGU.js";import{a as te}from"./chunk-LHXDS2UV.js";import{a as ee}from"./chunk-HTUZHZ2W.js";import"./chunk-XCII6WYI.js";import{e as me}from"./chunk-BG4XRSKY.js";import"./chunk-PMYMVWKR.js";import"./chunk-3RK6DDJD.js";import"./chunk-O2H3P76C.js";import"./chunk-O44PCSTB.js";import"./chunk-TTR5FF2O.js";import"./chunk-WILA4FS3.js";import"./chunk-T4EAHLQ4.js";import{d as re,e as le}from"./chunk-U2AHHKPZ.js";import"./chunk-FO57E5BU.js";import{c as pe}from"./chunk-HKYIKSF6.js";import{b as $}from"./chunk-RN6J3XFI.js";import{a as Y}from"./chunk-HPPVU3Z2.js";import"./chunk-VIIDAPDU.js";import"./chunk-IYQKU2EL.js";import"./chunk-QNQXO4YS.js";import{a as ie}from"./chunk-ANWIC3AL.js";import{e as oe,f as ae}from"./chunk-3G2IUR3X.js";import"./chunk-PNLYN7MQ.js";import"./chunk-CDXAKDVU.js";import"./chunk-RWMRVY4Q.js";import"./chunk-MPPCTVQF.js";import"./chunk-B7BEECTQ.js";import"./chunk-VWL5FKU2.js";import"./chunk-DBEYMOMT.js";import"./chunk-PIZCEKMP.js";import"./chunk-VBBYHB7E.js";import"./chunk-E7CKHP2W.js";import"./chunk-TJXA75FB.js";import"./chunk-D5IRUIA5.js";import"./chunk-6KAJXZU4.js";import{b as ne}from"./chunk-FV4VN5TM.js";import"./chunk-YJJAQOYJ.js";import"./chunk-NQ3TLVWW.js";import"./chunk-TO24XJZI.js";import{b as U,c as X}from"./chunk-KRTNI2QB.js";import"./chunk-CH2CJQUF.js";import"./chunk-VSS454NR.js";import"./chunk-FJDNER3H.js";import"./chunk-EQLHPWVB.js";import{g as Z}from"./chunk-HS26VQGJ.js";import"./chunk-OWKXU5ZC.js";import"./chunk-P5NZWQQQ.js";import"./chunk-XU5W6MOV.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-7YBH2SXZ.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-EEJEVJEF.js";import"./chunk-HG5EY2AA.js";import"./chunk-5YVJIGMT.js";import{d as J}from"./chunk-5ACAEXN7.js";import"./chunk-44MS566M.js";import{$d as N,Bc as _,Cb as p,Cc as s,Db as o,Dc as D,Eb as i,Ed as W,Fb as f,Hc as O,Mb as I,Ob as h,Qb as m,Xa as a,Zd as A,db as C,dc as l,ec as M,ee as z,fc as g,fd as L,hb as B,ic as v,jc as S,kc as b,lb as F,nb as x,oc as V,od as R,rd as H,ta as u,tc as T,ua as y,uc as w,vb as P,xb as E}from"./chunk-D4VXNK25.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{fe as InventoryByCategoryComponent};
1
+ import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-KJLTTTEY.js";import"./chunk-KHR4NBM3.js";import"./chunk-O2K56L4P.js";import"./chunk-H7XFYY6V.js";import"./chunk-XACC6EMJ.js";import{a as te}from"./chunk-HL3ONSX6.js";import{a as ee}from"./chunk-XA4TVPAS.js";import"./chunk-Q2A4MYK3.js";import{e as me}from"./chunk-SO4GMA3Y.js";import"./chunk-PECGNYTX.js";import"./chunk-3RK6DDJD.js";import"./chunk-SARJJ3AZ.js";import"./chunk-DC426G2P.js";import"./chunk-3KSZCJ6T.js";import"./chunk-BYO7FJ4O.js";import"./chunk-CBSYYTXQ.js";import{d as re,e as le}from"./chunk-6WEGHV7F.js";import"./chunk-G4IW5GPY.js";import{c as pe}from"./chunk-WRVMZNGD.js";import{b as $}from"./chunk-KD7WBOUR.js";import{a as Y}from"./chunk-LK7UQBXO.js";import"./chunk-BR3Y2C2F.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{a as ie}from"./chunk-4QM23MMO.js";import{e as oe,f as ae}from"./chunk-CGISR53W.js";import"./chunk-U3B2DTPX.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-YRGHPSPV.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-6FM7DAHK.js";import{b as ne}from"./chunk-DGXQDOCM.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-QZMZBCE7.js";import{b as U,c as X}from"./chunk-C4WJKF7R.js";import"./chunk-NZYZO47Z.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as Z}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-O5SLP4JK.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-RNLSEEMX.js";import"./chunk-JVFZL3LP.js";import"./chunk-TVZ622KQ.js";import{d as J}from"./chunk-USJ6ILEE.js";import"./chunk-CLJWABT2.js";import{$d as N,Bc as _,Cb as p,Cc as s,Db as o,Dc as D,Eb as i,Ed as W,Fb as f,Hc as O,Mb as I,Ob as h,Qb as m,Xa as a,Zd as A,db as C,dc as l,ec as M,ee as z,fc as g,fd as L,hb as B,ic as v,jc as S,kc as b,lb as F,nb as x,oc as V,od as R,rd as H,ta as u,tc as T,ua as y,uc as w,vb as P,xb as E}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{fe as InventoryByCategoryComponent};
@@ -1 +1 @@
1
- import{c as Y}from"./chunk-HS26VQGJ.js";import{$b as i,B as _,Cb as c,D as w,Db as $,Eb as U,F,Fb as g,Gb as C,Hb as m,Ia as u,Ib as k,L as v,Lb as N,Pc as s,Q as I,Qb as l,R as B,Tc as j,Xa as r,aa as P,ac as b,db as O,dd as V,f as y,fa as R,hb as d,id as W,jb as T,la as M,lb as p,nb as H,oa as E,pa as q,uc as L,vb as x,xb as D}from"./chunk-D4VXNK25.js";var X=e=>({"background-color":e});function A(e,a){e&1&&N(0)}function K(e,a){if(e&1&&g(0,"sk-cube-grid",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function Z(e,a){if(e&1&&g(0,"sk-chasing-dots",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function J(e,a){if(e&1&&g(0,"sk-double-bounce",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function Q(e,a){if(e&1&&g(0,"sk-rotating-plane",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function ee(e,a){if(e&1&&g(0,"sk-spinner-pulse",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function te(e,a){if(e&1&&g(0,"sk-three-bounce",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function ne(e,a){if(e&1&&g(0,"sk-wandering-cubes",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function oe(e,a){if(e&1&&g(0,"sk-wave",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function ie(e,a){if(e&1&&($(0,"div",1),H(1,A,1,0,"ng-container",2),x(2,K,1,1,"sk-cube-grid",3)(3,Z,1,1,"sk-chasing-dots",3)(4,J,1,1,"sk-double-bounce",3)(5,Q,1,1,"sk-rotating-plane",3)(6,ee,1,1,"sk-spinner-pulse",3)(7,te,1,1,"sk-three-bounce",3)(8,ne,1,1,"sk-wandering-cubes",3)(9,oe,1,1,"sk-wave",3),U()),e&2){let t,n=l();i("opacity",n.opacity()),b("backdrop",n.backdrop()),c("ngStyle",L(7,X,n.backdrop()?n.backdropBackgroundColor():"transparent")),r(),c("ngComponentOutlet",n.entryComponent()),r(),D((t=n.spinner())===n.spinkit.skCubeGrid?2:t===n.spinkit.skChasingDots?3:t===n.spinkit.skDoubleBounce?4:t===n.spinkit.skRotatingPlane?5:t===n.spinkit.skSpinnerPulse?6:t===n.spinkit.skThreeBounce?7:t===n.spinkit.skWanderingCubes?8:t===n.spinkit.skWave?9:-1)}}var f=(()=>{class e{backgroundColor=s();static \u0275fac=function(n){return new(n||e)};static \u0275dir=T({type:e,inputs:{backgroundColor:[1,"backgroundColor"]}})}return e})(),re=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-chasing-dots"]],features:[p],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return e})(),se=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-cube-grid"]],features:[p],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]})}return e})(),ae=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-double-bounce"]],features:[p],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return e})(),ce=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-rotating-plane"]],features:[p],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(n,o){n&1&&k(0,"div",0),n&2&&i("background-color",o.backgroundColor())},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]})}return e})(),de=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-spinner-pulse"]],features:[p],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(n,o){n&1&&k(0,"div",0),n&2&&i("background-color",o.backgroundColor())},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]})}return e})(),le=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-three-bounce"]],features:[p],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2)(3,"div",3),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]})}return e})(),ue=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-wandering-cubes"]],features:[p],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]})}return e})(),pe=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-wave"]],features:[p],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]})}return e})(),G={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var S=(()=>{class e{_pendingRequests=0;_pendingRequestsStatus$=new y(1);_filteredUrlPatterns=[];_filteredMethods=[];_filteredHeaders=[];_forceByPass=!1;get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequestsStatusSubject$(){return this._pendingRequestsStatus$}get pendingRequests(){return this._pendingRequests}set pendingRequests(t){this._pendingRequests=t}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ge=(()=>{class e{pendingRequestsInterceptorConfigurer;_visibility$=new y(1);constructor(t){this.pendingRequestsInterceptorConfigurer=t}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptorConfigurer.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptorConfigurer.forceByPass=!1}static \u0275fac=function(n){return new(n||e)(E(S))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pe=(()=>{class e{pendingRequestsInterceptorConfigurer;spinnerVisibility;spinkit=G;isVisible$;isVisible;visibleUntil=Date.now();backdrop=s(!0);backgroundColor=s();debounceDelay=s(0);entryComponent=s(null);extraDuration=s(0);filteredHeaders=s([]);filteredMethods=s([]);filteredUrlPatterns=s([]);minDuration=s(0);opacity=s(".7");backdropBackgroundColor=s("#f1f1f1");spinner=j(G.skWave);constructor(t,n){this.pendingRequestsInterceptorConfigurer=t,this.spinnerVisibility=n;let[o,z]=F(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$,h=>h);this.isVisible$=w(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$.pipe(P(()=>o.pipe(v(()=>_(this.debounceDelay()))))),o.pipe(P(()=>z.pipe(v(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(I(),R(h=>this.updateExpirationDelay(h))),this.isVisible=Y(this.isVisible$)}ngOnInit(){this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent()&&this.spinner.update(()=>null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns().length&&this.filteredUrlPatterns().forEach(t=>this.pendingRequestsInterceptorConfigurer.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptorConfigurer.filteredMethods=this.filteredMethods()}initFilteredHeaders(){this.pendingRequestsInterceptorConfigurer.filteredHeaders=this.filteredHeaders()}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration())}getVisibilityTimer$(){return _(Math.max(this.extraDuration(),this.visibleUntil-Date.now()))}static \u0275fac=function(n){return new(n||e)(O(S),O(ge))};static \u0275cmp=d({type:e,selectors:[["ng-http-loader"]],inputs:{backdrop:[1,"backdrop"],backgroundColor:[1,"backgroundColor"],debounceDelay:[1,"debounceDelay"],entryComponent:[1,"entryComponent"],extraDuration:[1,"extraDuration"],filteredHeaders:[1,"filteredHeaders"],filteredMethods:[1,"filteredMethods"],filteredUrlPatterns:[1,"filteredUrlPatterns"],minDuration:[1,"minDuration"],opacity:[1,"opacity"],backdropBackgroundColor:[1,"backdropBackgroundColor"],spinner:[1,"spinner"]},outputs:{spinner:"spinnerChange"},decls:1,vars:1,consts:[["id","spinner",3,"backdrop","opacity","ngStyle"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor"]],template:function(n,o){n&1&&x(0,ie,10,9,"div",0),n&2&&D(o.isVisible()?0:-1)},dependencies:[se,re,ae,ce,de,le,ue,pe,W,V],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]})}return e})();function Me(e,a){let t=q(S),n=t.shouldBypass(e);return n||(t.pendingRequests++,t.pendingRequests===1&&t.pendingRequestsStatusSubject$.next(!0)),a(e).pipe(B(()=>{n||(t.pendingRequests--,t.pendingRequests===0&&t.pendingRequestsStatusSubject$.next(!1))}))}export{ge as a,Pe as b,Me as c};
1
+ import{c as Y}from"./chunk-A45GTZVV.js";import{$b as i,B as _,Cb as c,D as w,Db as $,Eb as U,F,Fb as g,Gb as C,Hb as m,Ia as u,Ib as k,L as v,Lb as N,Pc as s,Q as I,Qb as l,R as B,Tc as j,Xa as r,aa as P,ac as b,db as O,dd as V,f as y,fa as R,hb as d,id as W,jb as T,la as M,lb as p,nb as H,oa as E,pa as q,uc as L,vb as x,xb as D}from"./chunk-JYZTRN6N.js";var X=e=>({"background-color":e});function A(e,a){e&1&&N(0)}function K(e,a){if(e&1&&g(0,"sk-cube-grid",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function Z(e,a){if(e&1&&g(0,"sk-chasing-dots",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function J(e,a){if(e&1&&g(0,"sk-double-bounce",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function Q(e,a){if(e&1&&g(0,"sk-rotating-plane",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function ee(e,a){if(e&1&&g(0,"sk-spinner-pulse",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function te(e,a){if(e&1&&g(0,"sk-three-bounce",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function ne(e,a){if(e&1&&g(0,"sk-wandering-cubes",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function oe(e,a){if(e&1&&g(0,"sk-wave",3),e&2){let t=l(2);c("backgroundColor",t.backgroundColor())}}function ie(e,a){if(e&1&&($(0,"div",1),H(1,A,1,0,"ng-container",2),x(2,K,1,1,"sk-cube-grid",3)(3,Z,1,1,"sk-chasing-dots",3)(4,J,1,1,"sk-double-bounce",3)(5,Q,1,1,"sk-rotating-plane",3)(6,ee,1,1,"sk-spinner-pulse",3)(7,te,1,1,"sk-three-bounce",3)(8,ne,1,1,"sk-wandering-cubes",3)(9,oe,1,1,"sk-wave",3),U()),e&2){let t,n=l();i("opacity",n.opacity()),b("backdrop",n.backdrop()),c("ngStyle",L(7,X,n.backdrop()?n.backdropBackgroundColor():"transparent")),r(),c("ngComponentOutlet",n.entryComponent()),r(),D((t=n.spinner())===n.spinkit.skCubeGrid?2:t===n.spinkit.skChasingDots?3:t===n.spinkit.skDoubleBounce?4:t===n.spinkit.skRotatingPlane?5:t===n.spinkit.skSpinnerPulse?6:t===n.spinkit.skThreeBounce?7:t===n.spinkit.skWanderingCubes?8:t===n.spinkit.skWave?9:-1)}}var f=(()=>{class e{backgroundColor=s();static \u0275fac=function(n){return new(n||e)};static \u0275dir=T({type:e,inputs:{backgroundColor:[1,"backgroundColor"]}})}return e})(),re=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-chasing-dots"]],features:[p],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return e})(),se=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-cube-grid"]],features:[p],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]})}return e})(),ae=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-double-bounce"]],features:[p],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return e})(),ce=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-rotating-plane"]],features:[p],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(n,o){n&1&&k(0,"div",0),n&2&&i("background-color",o.backgroundColor())},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]})}return e})(),de=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-spinner-pulse"]],features:[p],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(n,o){n&1&&k(0,"div",0),n&2&&i("background-color",o.backgroundColor())},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]})}return e})(),le=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-three-bounce"]],features:[p],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2)(3,"div",3),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]})}return e})(),ue=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-wandering-cubes"]],features:[p],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]})}return e})(),pe=(()=>{class e extends f{static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["sk-wave"]],features:[p],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(n,o){n&1&&(C(0,"div",0),k(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),m()),n&2&&(b("colored",!o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()),r(),i("background-color",o.backgroundColor()))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]})}return e})(),G={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var S=(()=>{class e{_pendingRequests=0;_pendingRequestsStatus$=new y(1);_filteredUrlPatterns=[];_filteredMethods=[];_filteredHeaders=[];_forceByPass=!1;get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequestsStatusSubject$(){return this._pendingRequestsStatus$}get pendingRequests(){return this._pendingRequests}set pendingRequests(t){this._pendingRequests=t}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ge=(()=>{class e{pendingRequestsInterceptorConfigurer;_visibility$=new y(1);constructor(t){this.pendingRequestsInterceptorConfigurer=t}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptorConfigurer.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptorConfigurer.forceByPass=!1}static \u0275fac=function(n){return new(n||e)(E(S))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pe=(()=>{class e{pendingRequestsInterceptorConfigurer;spinnerVisibility;spinkit=G;isVisible$;isVisible;visibleUntil=Date.now();backdrop=s(!0);backgroundColor=s();debounceDelay=s(0);entryComponent=s(null);extraDuration=s(0);filteredHeaders=s([]);filteredMethods=s([]);filteredUrlPatterns=s([]);minDuration=s(0);opacity=s(".7");backdropBackgroundColor=s("#f1f1f1");spinner=j(G.skWave);constructor(t,n){this.pendingRequestsInterceptorConfigurer=t,this.spinnerVisibility=n;let[o,z]=F(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$,h=>h);this.isVisible$=w(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$.pipe(P(()=>o.pipe(v(()=>_(this.debounceDelay()))))),o.pipe(P(()=>z.pipe(v(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(I(),R(h=>this.updateExpirationDelay(h))),this.isVisible=Y(this.isVisible$)}ngOnInit(){this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent()&&this.spinner.update(()=>null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns().length&&this.filteredUrlPatterns().forEach(t=>this.pendingRequestsInterceptorConfigurer.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptorConfigurer.filteredMethods=this.filteredMethods()}initFilteredHeaders(){this.pendingRequestsInterceptorConfigurer.filteredHeaders=this.filteredHeaders()}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration())}getVisibilityTimer$(){return _(Math.max(this.extraDuration(),this.visibleUntil-Date.now()))}static \u0275fac=function(n){return new(n||e)(O(S),O(ge))};static \u0275cmp=d({type:e,selectors:[["ng-http-loader"]],inputs:{backdrop:[1,"backdrop"],backgroundColor:[1,"backgroundColor"],debounceDelay:[1,"debounceDelay"],entryComponent:[1,"entryComponent"],extraDuration:[1,"extraDuration"],filteredHeaders:[1,"filteredHeaders"],filteredMethods:[1,"filteredMethods"],filteredUrlPatterns:[1,"filteredUrlPatterns"],minDuration:[1,"minDuration"],opacity:[1,"opacity"],backdropBackgroundColor:[1,"backdropBackgroundColor"],spinner:[1,"spinner"]},outputs:{spinner:"spinnerChange"},decls:1,vars:1,consts:[["id","spinner",3,"backdrop","opacity","ngStyle"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor"]],template:function(n,o){n&1&&x(0,ie,10,9,"div",0),n&2&&D(o.isVisible()?0:-1)},dependencies:[se,re,ae,ce,de,le,ue,pe,W,V],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]})}return e})();function Me(e,a){let t=q(S),n=t.shouldBypass(e);return n||(t.pendingRequests++,t.pendingRequests===1&&t.pendingRequestsStatusSubject$.next(!0)),a(e).pipe(B(()=>{n||(t.pendingRequests--,t.pendingRequests===0&&t.pendingRequestsStatusSubject$.next(!1))}))}export{ge as a,Pe as b,Me as c};
@@ -1 +1 @@
1
- import{a as ft,b as xt}from"./chunk-VNNCIA5L.js";import{a as st}from"./chunk-BOKRBOOE.js";import{a as ut}from"./chunk-5O5D7WMM.js";import{a as Ct}from"./chunk-II43RP2H.js";import"./chunk-L245BNIA.js";import"./chunk-BYXBJQAS.js";import{a as tt}from"./chunk-LHXDS2UV.js";import{d as mt,e as _t}from"./chunk-BG4XRSKY.js";import"./chunk-PMYMVWKR.js";import"./chunk-3RK6DDJD.js";import"./chunk-O2H3P76C.js";import"./chunk-O44PCSTB.js";import"./chunk-TTR5FF2O.js";import"./chunk-WILA4FS3.js";import"./chunk-T4EAHLQ4.js";import{d as lt,e as ct}from"./chunk-U2AHHKPZ.js";import"./chunk-FO57E5BU.js";import{a as Y}from"./chunk-6PPAAIAS.js";import{b as pt}from"./chunk-WPPCNK6N.js";import{f as dt}from"./chunk-2T52WAWX.js";import{b as $}from"./chunk-RN6J3XFI.js";import"./chunk-HPPVU3Z2.js";import"./chunk-VIIDAPDU.js";import"./chunk-IYQKU2EL.js";import"./chunk-QNQXO4YS.js";import{a as it}from"./chunk-ANWIC3AL.js";import{e as at,f as rt}from"./chunk-3G2IUR3X.js";import"./chunk-CDXAKDVU.js";import"./chunk-RWMRVY4Q.js";import"./chunk-MPPCTVQF.js";import"./chunk-B7BEECTQ.js";import"./chunk-VWL5FKU2.js";import"./chunk-DBEYMOMT.js";import"./chunk-PIZCEKMP.js";import"./chunk-VBBYHB7E.js";import"./chunk-E7CKHP2W.js";import"./chunk-TJXA75FB.js";import"./chunk-D5IRUIA5.js";import"./chunk-6KAJXZU4.js";import{b as et}from"./chunk-FV4VN5TM.js";import"./chunk-YJJAQOYJ.js";import"./chunk-NQ3TLVWW.js";import"./chunk-TO24XJZI.js";import{b as U,c as X}from"./chunk-KRTNI2QB.js";import{N as ot,g as nt}from"./chunk-CH2CJQUF.js";import"./chunk-VSS454NR.js";import"./chunk-FJDNER3H.js";import"./chunk-EQLHPWVB.js";import{g as Z}from"./chunk-HS26VQGJ.js";import"./chunk-OWKXU5ZC.js";import"./chunk-P5NZWQQQ.js";import"./chunk-XU5W6MOV.js";import"./chunk-2FWFPV5I.js";import"./chunk-7YBH2SXZ.js";import{F as K}from"./chunk-EEJEVJEF.js";import"./chunk-HG5EY2AA.js";import"./chunk-5YVJIGMT.js";import{d as J}from"./chunk-5ACAEXN7.js";import"./chunk-44MS566M.js";import{Ab as W,Bb as q,Bc as m,Cb as u,Cc as C,Db as a,Dc as v,Eb as n,Ed as H,Fb as w,Hc as j,Mb as h,Ob as V,Qb as c,Xa as i,Zd as z,db as S,dc as r,ec as b,ee as Q,fc as f,fd as A,hb as M,ic as T,jc as g,kc as I,lb as O,nb as D,od as G,rd as R,ta as x,tb as k,tc as E,ua as y,uc as P,vb as d,xb as p,yb as N}from"./chunk-D4VXNK25.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],B=e=>({ID:e}),Tt=()=>["/menu/Products/Catalog/Products/Info"],gt=()=>["/menu/Products/Catalog/Variants/Info"];function It(e,l){if(e&1){let t=h();a(0,"button",13),V("click",function(){x(t);let o=c();return y(o.openExportModal())}),w(1,"i",14),r(2," Export "),n()}}function St(e,l){if(e&1){let t=h();a(0,"div",15)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",16),I("selectedOutletGroupIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",17),I("selectedCategoryIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"h6"),r(8,"Search Type"),n(),a(9,"radio-options",18),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.ProductVariantSearchMode,o)||(s.pageData.Filter.ProductVariantSearchMode=o),y(o)}),V("modelChange",function(o){x(t);let s=c();return y(s.onChangeSearchType(o))}),n(),a(10,"autocompleteV3",19),I("modelNameChange",function(o){x(t);let s=c();return g(s.productVariantModel,o)||(s.productVariantModel=o),y(o)}),n(),a(11,"h6"),r(12,"From - To"),n(),a(13,"div")(14,"datepicker",20),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(15,"div",21)(16,"datepicker",22),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(17,"h6"),r(18,"Inventory Type"),n(),a(19,"radio-options",23),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),n()()}if(e&2){let t=c();i(3),u("showClear",!0),T("selectedOutletGroupID",t.pageData.Filter.OutletGroupID),i(3),T("selectedCategoryID",t.pageData.Filter.CategoryID),u("showClear",!0),i(3),T("model",t.pageData.Filter.ProductVariantSearchMode),u("options",t.pageData.Options.ProductVariantSearchModes),i(),T("modelName",t.productVariantModel),u("placeholder",t.pageData.Filter.ProductVariantSearchMode===0?"Search Product":"Search Variant")("isShowEmptyMessage",!0)("emptyMessage",t.pageData.Filter.ProductVariantSearchMode===0?"No Product found":"No Variant found")("tooltipMessage",t.pageData.Filter.ProductVariantSearchMode===0?"Search by product name":"Search by variant name")("label",t.pageData.Filter.ProductVariantSearchMode===0?"Product to Analyze":"Variant to Analyze")("listDataEndpoint",t.pageData.Filter.ProductVariantSearchMode===0?"/api/ac/GetProductSuggestionByCodeNName":"/API/AC/GetVariantSuggestionByCodeNName")("valueField","Key"),i(4),u("isFloatingLabel",!1),T("date",t.pageData.Filter.From),u("hidelClearBtn",!0),i(2),u("isFloatingLabel",!1),T("date",t.pageData.Filter.To),u("hidelClearBtn",!0),i(3),T("model",t.pageData.Filter.InventoryType),u("options",t.pageData.Options.InventoryTypes)}}function ht(e,l){e&1&&(a(0,"th",9)(1,"span",24),r(2," P.Code "),n()())}function Vt(e,l){e&1&&(a(0,"th",10),r(1,"Code"),n())}function Ft(e,l){e&1&&(a(0,"th",11)(1,"span",25),r(2," Start "),n()())}function Dt(e,l){e&1&&(a(0,"th",11)(1,"span",26),r(2," Bought "),n()())}function wt(e,l){e&1&&(a(0,"th",11)(1,"span",27),r(2," Sold "),n()())}function Et(e,l){e&1&&(a(0,"th",11)(1,"span",28),r(2," T.In "),n()())}function Pt(e,l){e&1&&(a(0,"th",11)(1,"span",29),r(2," T.Out "),n()())}function bt(e,l){e&1&&(a(0,"th",11)(1,"span",30),r(2," Adjust "),n()())}function Bt(e,l){e&1&&(a(0,"th",11)(1,"span",31),r(2," End "),n()())}function Lt(e,l){e&1&&(a(0,"th",11)(1,"span",32),r(2," Now "),n()())}function Mt(e,l){e&1&&(a(0,"th",11)(1,"span",33),r(2," % "),n()())}function Ot(e,l){if(e&1&&(a(0,"td"),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.ProductCode," ")}}function kt(e,l){if(e&1&&(a(0,"td",35),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.VariantCode," ")}}function Nt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Start),i(),f(" ",C(2,2,t.Start)," ")}}function Wt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Bought)," ")}}function qt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Sold)," ")}}function jt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredIn)," ")}}function At(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredOut)," ")}}function Gt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Adjustment),i(),f(" ",t.Adjustment<0?t.Adjustment*-1:C(2,2,t.Adjustment)," ")}}function Rt(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.End),i(),f(" ",t.End," ")}}function Ht(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Now),i(),f(" ",t.Now," ")}}function zt(e,l){if(e&1&&(a(0,"td",35),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.SellTransferInRate)," ")}}function Kt(e,l){if(e&1&&(a(0,"tr")(1,"td")(2,"a",34),r(3),n()(),a(4,"td")(5,"a",34),r(6),n()(),d(7,Ot,2,1,"td"),a(8,"td")(9,"a",34),r(10),n()(),d(11,kt,2,1,"td",35),d(12,Nt,3,4,"td",36),d(13,Wt,3,3,"td",37),d(14,qt,3,3,"td",38),d(15,jt,3,3,"td",37),d(16,At,3,3,"td",38),d(17,Gt,3,4,"td",36),d(18,Rt,2,2,"td",36),d(19,Ht,2,2,"td",36),d(20,zt,3,3,"td",35),n()),e&2){let t=l.$implicit,_=c(2);i(2),u("routerLink",E(20,vt))("queryParams",P(21,B,t.OutletID)),i(),f(" ",t.OutletName," "),i(2),u("routerLink",E(23,Tt))("queryParams",P(24,B,t.ProductID)),i(),f(" ",t.ProductName," "),i(),p(_.column.productcode.selected?7:-1),i(2),u("routerLink",E(26,gt))("queryParams",P(27,B,t.VariantID)),i(),b(t.VariantName),i(),p(_.column.code.selected?11:-1),i(),p(_.column.start.selected?12:-1),i(),p(_.column.bought.selected?13:-1),i(),p(_.column.sold.selected?14:-1),i(),p(_.column.transferredIn.selected?15:-1),i(),p(_.column.transferredOut.selected?16:-1),i(),p(_.column.adjust.selected?17:-1),i(),p(_.column.end.selected?18:-1),i(),p(_.column.now.selected?19:-1),i(),p(_.column.percent.selected?20:-1)}}function Qt(e,l){if(e&1&&W(0,Kt,21,29,"tr",null,N),e&2){let t=c();q(t.infiniteList)}}function Jt(e,l){e&1&&(a(0,"tr")(1,"td",39),w(2,"app-empty-state"),n()())}function Ut(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Start"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Start"))," ")}}function Xt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Bought"))," ")}}function Yt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Sold"))," ")}}function Zt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredIn"))," ")}}function $t(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredOut"))," ")}}function te(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Adjustment"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Adjustment"))," ")}}function ee(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"End"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"End"))," ")}}function ie(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Now"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Now"))," ")}}function ne(e,l){if(e&1&&(a(0,"tfoot")(1,"tr",40)(2,"th",41),r(3," Total: "),n(),d(4,Ut,6,12,"td",36),d(5,Xt,4,6,"td",37),d(6,Yt,4,6,"td",38),d(7,Zt,4,6,"td",37),d(8,$t,4,6,"td",38),d(9,te,6,12,"td",36),d(10,ee,6,12,"td",36),d(11,ie,6,12,"td",36),n()()),e&2){let t=c();i(2),k("colspan",t.column.code.selected?4:3),i(2),p(t.column.start.selected?4:-1),i(),p(t.column.bought.selected?5:-1),i(),p(t.column.sold.selected?6:-1),i(),p(t.column.transferredIn.selected?7:-1),i(),p(t.column.transferredOut.selected?8:-1),i(),p(t.column.adjust.selected?9:-1),i(),p(t.column.end.selected?10:-1),i(),p(t.column.now.selected?11:-1)}}function oe(e,l){if(e&1){let t=h();a(0,"span",48),V("click",function(){x(t);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountVariantInventoryTraffic"))}),a(1,"i",49),r(2,"?"),n()()}}function ae(e,l){if(e&1&&(a(0,"span"),r(1),m(2,"number"),n()),e&2){let t=c(2);i(),b(C(2,1,t.listTotal))}}function re(e,l){if(e&1){let t=h();a(0,"div",12)(1,"div",42)(2,"div",43),r(3),m(4,"number"),D(5,oe,3,0,"span",44)(6,ae,3,3,"span",45),r(7),n()(),a(8,"a",46),V("click",function(){x(t);let o=c();return y(o.NextPage(!0))}),w(9,"i",47),r(10," Next"),n()()}if(e&2){let t=c();i(3),f(" Showing 1 - ",C(4,4,t.infiniteList.length)," of "),i(2),u("ngIf",!t.pageData.HideStoreApiCount),i(),u("ngIf",t.pageData.HideStoreApiCount),i(),f(" records ~ ",t.pageData.Filter.PageNumber," Page ")}}var yt=class e extends Y{constructor(t,_,o,s,L,F,le){super(t,_,"inventory/GetVariantInventoryTraffic","inventoryloader/GetVariantInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=o;this.pageTitle=s;this.converter=L;this.roleService=F;this.matDialog=le;this.pageTitle.setTitle(this.menuData.T)}column={productcode:{selected:!1,name:"Product Code"},code:{selected:!0,name:"Variant Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!0,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!1,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open($,{data:{title:"Variant Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportVariantInventoryTraffic",Value:"Default",FileName:"Variant Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}onChangeSearchType(t){this.pageData.Filter.ListProductID=[],this.pageData.Filter.ListVariantID=[]}get productVariantModel(){return this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID:this.pageData.Filter.ListVariantID}set productVariantModel(t){this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID=t:this.pageData.Filter.ListVariantID=t}static \u0275fac=function(_){return new(_||e)(S(et),S(Q),S(it),S(H),S(st),S(J),S(Z))};static \u0275cmp=M({type:e,selectors:[["POS-variant-inventory-traffic"]],features:[O],decls:34,vars:20,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","180px"],[2,"width","150px"],[2,"width","80px"],[1,"text-end",2,"width","130px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","SearchType",3,"modelChange","model","options"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","InventoryType",3,"modelChange","model","options"],["matTooltip","Product Code","matTooltipPosition","above"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","13"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(_,o){if(_&1){let s=h();a(0,"mainpanel-cmp",1),V("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),I("filterChange",function(F){return x(s),g(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),D(2,It,3,0,"button",2),n(),a(3,"filters"),D(4,St,20,22,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th",8),r(15,"Product"),n(),d(16,ht,3,0,"th",9),a(17,"th"),r(18,"Variant"),n(),d(19,Vt,2,0,"th",10),d(20,Ft,3,0,"th",11),d(21,Dt,3,0,"th",11),d(22,wt,3,0,"th",11),d(23,Et,3,0,"th",11),d(24,Pt,3,0,"th",11),d(25,bt,3,0,"th",11),d(26,Bt,3,0,"th",11),d(27,Lt,3,0,"th",11),d(28,Mt,3,0,"th",11),n()(),a(29,"tbody"),d(30,Qt,2,0)(31,Jt,3,0,"tr"),n(),d(32,ne,12,9,"tfoot"),n()(),d(33,re,11,6,"div",12),n()()()}_&2&&(u("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),T("filter",o.pageData.Filter),u("column",o.column),i(2),u("ngIf",o.roleService.global.Export),i(14),p(o.column.productcode.selected?16:-1),i(3),p(o.column.code.selected?19:-1),i(),p(o.column.start.selected?20:-1),i(),p(o.column.bought.selected?21:-1),i(),p(o.column.sold.selected?22:-1),i(),p(o.column.transferredIn.selected?23:-1),i(),p(o.column.transferredOut.selected?24:-1),i(),p(o.column.adjust.selected?25:-1),i(),p(o.column.end.selected?26:-1),i(),p(o.column.now.selected?27:-1),i(),p(o.column.percent.selected?28:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?30:31),i(2),p(o.infiniteList&&o.infiniteList.length>0?32:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?33:-1))},dependencies:[rt,at,R,A,K,ut,dt,ft,ot,z,_t,mt,ct,lt,Ct,pt,xt,X,U,G,nt,tt],encapsulation:2})};export{yt as Variant_Inventory_TrafficComponent};
1
+ import{a as ft,b as xt}from"./chunk-SFQX5FUP.js";import{a as st}from"./chunk-IWUWV3MS.js";import{a as ut}from"./chunk-QZK5TM5O.js";import{a as Ct}from"./chunk-DLNZDHGS.js";import"./chunk-RF5WGONA.js";import"./chunk-BYXBJQAS.js";import{a as tt}from"./chunk-HL3ONSX6.js";import{d as mt,e as _t}from"./chunk-SO4GMA3Y.js";import"./chunk-PECGNYTX.js";import"./chunk-3RK6DDJD.js";import"./chunk-SARJJ3AZ.js";import"./chunk-DC426G2P.js";import"./chunk-3KSZCJ6T.js";import"./chunk-BYO7FJ4O.js";import"./chunk-CBSYYTXQ.js";import{d as lt,e as ct}from"./chunk-6WEGHV7F.js";import"./chunk-G4IW5GPY.js";import{a as Y}from"./chunk-TH6BQXNM.js";import{b as pt}from"./chunk-I3ABVEQL.js";import{f as dt}from"./chunk-ZK32OWP6.js";import{b as $}from"./chunk-KD7WBOUR.js";import"./chunk-LK7UQBXO.js";import"./chunk-BR3Y2C2F.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{a as it}from"./chunk-4QM23MMO.js";import{e as at,f as rt}from"./chunk-CGISR53W.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-YRGHPSPV.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-6FM7DAHK.js";import{b as et}from"./chunk-DGXQDOCM.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-QZMZBCE7.js";import{b as U,c as X}from"./chunk-C4WJKF7R.js";import{N as ot,g as nt}from"./chunk-NZYZO47Z.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as Z}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as K}from"./chunk-RNLSEEMX.js";import"./chunk-JVFZL3LP.js";import"./chunk-TVZ622KQ.js";import{d as J}from"./chunk-USJ6ILEE.js";import"./chunk-CLJWABT2.js";import{Ab as W,Bb as q,Bc as m,Cb as u,Cc as C,Db as a,Dc as v,Eb as n,Ed as H,Fb as w,Hc as j,Mb as h,Ob as V,Qb as c,Xa as i,Zd as z,db as S,dc as r,ec as b,ee as Q,fc as f,fd as A,hb as M,ic as T,jc as g,kc as I,lb as O,nb as D,od as G,rd as R,ta as x,tb as k,tc as E,ua as y,uc as P,vb as d,xb as p,yb as N}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],B=e=>({ID:e}),Tt=()=>["/menu/Products/Catalog/Products/Info"],gt=()=>["/menu/Products/Catalog/Variants/Info"];function It(e,l){if(e&1){let t=h();a(0,"button",13),V("click",function(){x(t);let o=c();return y(o.openExportModal())}),w(1,"i",14),r(2," Export "),n()}}function St(e,l){if(e&1){let t=h();a(0,"div",15)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",16),I("selectedOutletGroupIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",17),I("selectedCategoryIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"h6"),r(8,"Search Type"),n(),a(9,"radio-options",18),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.ProductVariantSearchMode,o)||(s.pageData.Filter.ProductVariantSearchMode=o),y(o)}),V("modelChange",function(o){x(t);let s=c();return y(s.onChangeSearchType(o))}),n(),a(10,"autocompleteV3",19),I("modelNameChange",function(o){x(t);let s=c();return g(s.productVariantModel,o)||(s.productVariantModel=o),y(o)}),n(),a(11,"h6"),r(12,"From - To"),n(),a(13,"div")(14,"datepicker",20),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(15,"div",21)(16,"datepicker",22),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(17,"h6"),r(18,"Inventory Type"),n(),a(19,"radio-options",23),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),n()()}if(e&2){let t=c();i(3),u("showClear",!0),T("selectedOutletGroupID",t.pageData.Filter.OutletGroupID),i(3),T("selectedCategoryID",t.pageData.Filter.CategoryID),u("showClear",!0),i(3),T("model",t.pageData.Filter.ProductVariantSearchMode),u("options",t.pageData.Options.ProductVariantSearchModes),i(),T("modelName",t.productVariantModel),u("placeholder",t.pageData.Filter.ProductVariantSearchMode===0?"Search Product":"Search Variant")("isShowEmptyMessage",!0)("emptyMessage",t.pageData.Filter.ProductVariantSearchMode===0?"No Product found":"No Variant found")("tooltipMessage",t.pageData.Filter.ProductVariantSearchMode===0?"Search by product name":"Search by variant name")("label",t.pageData.Filter.ProductVariantSearchMode===0?"Product to Analyze":"Variant to Analyze")("listDataEndpoint",t.pageData.Filter.ProductVariantSearchMode===0?"/api/ac/GetProductSuggestionByCodeNName":"/API/AC/GetVariantSuggestionByCodeNName")("valueField","Key"),i(4),u("isFloatingLabel",!1),T("date",t.pageData.Filter.From),u("hidelClearBtn",!0),i(2),u("isFloatingLabel",!1),T("date",t.pageData.Filter.To),u("hidelClearBtn",!0),i(3),T("model",t.pageData.Filter.InventoryType),u("options",t.pageData.Options.InventoryTypes)}}function ht(e,l){e&1&&(a(0,"th",9)(1,"span",24),r(2," P.Code "),n()())}function Vt(e,l){e&1&&(a(0,"th",10),r(1,"Code"),n())}function Ft(e,l){e&1&&(a(0,"th",11)(1,"span",25),r(2," Start "),n()())}function Dt(e,l){e&1&&(a(0,"th",11)(1,"span",26),r(2," Bought "),n()())}function wt(e,l){e&1&&(a(0,"th",11)(1,"span",27),r(2," Sold "),n()())}function Et(e,l){e&1&&(a(0,"th",11)(1,"span",28),r(2," T.In "),n()())}function Pt(e,l){e&1&&(a(0,"th",11)(1,"span",29),r(2," T.Out "),n()())}function bt(e,l){e&1&&(a(0,"th",11)(1,"span",30),r(2," Adjust "),n()())}function Bt(e,l){e&1&&(a(0,"th",11)(1,"span",31),r(2," End "),n()())}function Lt(e,l){e&1&&(a(0,"th",11)(1,"span",32),r(2," Now "),n()())}function Mt(e,l){e&1&&(a(0,"th",11)(1,"span",33),r(2," % "),n()())}function Ot(e,l){if(e&1&&(a(0,"td"),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.ProductCode," ")}}function kt(e,l){if(e&1&&(a(0,"td",35),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.VariantCode," ")}}function Nt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Start),i(),f(" ",C(2,2,t.Start)," ")}}function Wt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Bought)," ")}}function qt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Sold)," ")}}function jt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredIn)," ")}}function At(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredOut)," ")}}function Gt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Adjustment),i(),f(" ",t.Adjustment<0?t.Adjustment*-1:C(2,2,t.Adjustment)," ")}}function Rt(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.End),i(),f(" ",t.End," ")}}function Ht(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Now),i(),f(" ",t.Now," ")}}function zt(e,l){if(e&1&&(a(0,"td",35),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.SellTransferInRate)," ")}}function Kt(e,l){if(e&1&&(a(0,"tr")(1,"td")(2,"a",34),r(3),n()(),a(4,"td")(5,"a",34),r(6),n()(),d(7,Ot,2,1,"td"),a(8,"td")(9,"a",34),r(10),n()(),d(11,kt,2,1,"td",35),d(12,Nt,3,4,"td",36),d(13,Wt,3,3,"td",37),d(14,qt,3,3,"td",38),d(15,jt,3,3,"td",37),d(16,At,3,3,"td",38),d(17,Gt,3,4,"td",36),d(18,Rt,2,2,"td",36),d(19,Ht,2,2,"td",36),d(20,zt,3,3,"td",35),n()),e&2){let t=l.$implicit,_=c(2);i(2),u("routerLink",E(20,vt))("queryParams",P(21,B,t.OutletID)),i(),f(" ",t.OutletName," "),i(2),u("routerLink",E(23,Tt))("queryParams",P(24,B,t.ProductID)),i(),f(" ",t.ProductName," "),i(),p(_.column.productcode.selected?7:-1),i(2),u("routerLink",E(26,gt))("queryParams",P(27,B,t.VariantID)),i(),b(t.VariantName),i(),p(_.column.code.selected?11:-1),i(),p(_.column.start.selected?12:-1),i(),p(_.column.bought.selected?13:-1),i(),p(_.column.sold.selected?14:-1),i(),p(_.column.transferredIn.selected?15:-1),i(),p(_.column.transferredOut.selected?16:-1),i(),p(_.column.adjust.selected?17:-1),i(),p(_.column.end.selected?18:-1),i(),p(_.column.now.selected?19:-1),i(),p(_.column.percent.selected?20:-1)}}function Qt(e,l){if(e&1&&W(0,Kt,21,29,"tr",null,N),e&2){let t=c();q(t.infiniteList)}}function Jt(e,l){e&1&&(a(0,"tr")(1,"td",39),w(2,"app-empty-state"),n()())}function Ut(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Start"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Start"))," ")}}function Xt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Bought"))," ")}}function Yt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Sold"))," ")}}function Zt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredIn"))," ")}}function $t(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredOut"))," ")}}function te(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Adjustment"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Adjustment"))," ")}}function ee(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"End"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"End"))," ")}}function ie(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Now"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Now"))," ")}}function ne(e,l){if(e&1&&(a(0,"tfoot")(1,"tr",40)(2,"th",41),r(3," Total: "),n(),d(4,Ut,6,12,"td",36),d(5,Xt,4,6,"td",37),d(6,Yt,4,6,"td",38),d(7,Zt,4,6,"td",37),d(8,$t,4,6,"td",38),d(9,te,6,12,"td",36),d(10,ee,6,12,"td",36),d(11,ie,6,12,"td",36),n()()),e&2){let t=c();i(2),k("colspan",t.column.code.selected?4:3),i(2),p(t.column.start.selected?4:-1),i(),p(t.column.bought.selected?5:-1),i(),p(t.column.sold.selected?6:-1),i(),p(t.column.transferredIn.selected?7:-1),i(),p(t.column.transferredOut.selected?8:-1),i(),p(t.column.adjust.selected?9:-1),i(),p(t.column.end.selected?10:-1),i(),p(t.column.now.selected?11:-1)}}function oe(e,l){if(e&1){let t=h();a(0,"span",48),V("click",function(){x(t);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountVariantInventoryTraffic"))}),a(1,"i",49),r(2,"?"),n()()}}function ae(e,l){if(e&1&&(a(0,"span"),r(1),m(2,"number"),n()),e&2){let t=c(2);i(),b(C(2,1,t.listTotal))}}function re(e,l){if(e&1){let t=h();a(0,"div",12)(1,"div",42)(2,"div",43),r(3),m(4,"number"),D(5,oe,3,0,"span",44)(6,ae,3,3,"span",45),r(7),n()(),a(8,"a",46),V("click",function(){x(t);let o=c();return y(o.NextPage(!0))}),w(9,"i",47),r(10," Next"),n()()}if(e&2){let t=c();i(3),f(" Showing 1 - ",C(4,4,t.infiniteList.length)," of "),i(2),u("ngIf",!t.pageData.HideStoreApiCount),i(),u("ngIf",t.pageData.HideStoreApiCount),i(),f(" records ~ ",t.pageData.Filter.PageNumber," Page ")}}var yt=class e extends Y{constructor(t,_,o,s,L,F,le){super(t,_,"inventory/GetVariantInventoryTraffic","inventoryloader/GetVariantInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=o;this.pageTitle=s;this.converter=L;this.roleService=F;this.matDialog=le;this.pageTitle.setTitle(this.menuData.T)}column={productcode:{selected:!1,name:"Product Code"},code:{selected:!0,name:"Variant Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!1,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!0,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open($,{data:{title:"Variant Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportVariantInventoryTraffic",Value:"Default",FileName:"Variant Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}onChangeSearchType(t){this.pageData.Filter.ListProductID=[],this.pageData.Filter.ListVariantID=[]}get productVariantModel(){return this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID:this.pageData.Filter.ListVariantID}set productVariantModel(t){this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID=t:this.pageData.Filter.ListVariantID=t}static \u0275fac=function(_){return new(_||e)(S(et),S(Q),S(it),S(H),S(st),S(J),S(Z))};static \u0275cmp=M({type:e,selectors:[["POS-variant-inventory-traffic"]],features:[O],decls:34,vars:20,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","180px"],[2,"width","150px"],[2,"width","80px"],[1,"text-end",2,"width","130px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","SearchType",3,"modelChange","model","options"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","InventoryType",3,"modelChange","model","options"],["matTooltip","Product Code","matTooltipPosition","above"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","13"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(_,o){if(_&1){let s=h();a(0,"mainpanel-cmp",1),V("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),I("filterChange",function(F){return x(s),g(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),D(2,It,3,0,"button",2),n(),a(3,"filters"),D(4,St,20,22,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th",8),r(15,"Product"),n(),d(16,ht,3,0,"th",9),a(17,"th"),r(18,"Variant"),n(),d(19,Vt,2,0,"th",10),d(20,Ft,3,0,"th",11),d(21,Dt,3,0,"th",11),d(22,wt,3,0,"th",11),d(23,Et,3,0,"th",11),d(24,Pt,3,0,"th",11),d(25,bt,3,0,"th",11),d(26,Bt,3,0,"th",11),d(27,Lt,3,0,"th",11),d(28,Mt,3,0,"th",11),n()(),a(29,"tbody"),d(30,Qt,2,0)(31,Jt,3,0,"tr"),n(),d(32,ne,12,9,"tfoot"),n()(),d(33,re,11,6,"div",12),n()()()}_&2&&(u("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),T("filter",o.pageData.Filter),u("column",o.column),i(2),u("ngIf",o.roleService.global.Export),i(14),p(o.column.productcode.selected?16:-1),i(3),p(o.column.code.selected?19:-1),i(),p(o.column.start.selected?20:-1),i(),p(o.column.bought.selected?21:-1),i(),p(o.column.sold.selected?22:-1),i(),p(o.column.transferredIn.selected?23:-1),i(),p(o.column.transferredOut.selected?24:-1),i(),p(o.column.adjust.selected?25:-1),i(),p(o.column.end.selected?26:-1),i(),p(o.column.now.selected?27:-1),i(),p(o.column.percent.selected?28:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?30:31),i(2),p(o.infiniteList&&o.infiniteList.length>0?32:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?33:-1))},dependencies:[rt,at,R,A,K,ut,dt,ft,ot,z,_t,mt,ct,lt,Ct,pt,xt,X,U,G,nt,tt],encapsulation:2})};export{yt as Variant_Inventory_TrafficComponent};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-NX6ACGTN.js";import"./chunk-27Y3MQJV.js";import"./chunk-3XKRDZSE.js";import"./chunk-QDE5Y76C.js";import"./chunk-ULYBLEXA.js";import"./chunk-7NOKG3UC.js";import"./chunk-VP2ZEIJA.js";import"./chunk-HL3ONSX6.js";import"./chunk-XA4TVPAS.js";import"./chunk-NZYZO47Z.js";import"./chunk-USJ6ILEE.js";import"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as PrintModule};
@@ -1 +1 @@
1
- import{u as _,v as u,w as h}from"./chunk-TO24XJZI.js";import{e as C,f as g,l as M}from"./chunk-HS26VQGJ.js";import{Cb as t,Db as a,Eb as f,Fb as p,Ob as c,Qa as r,Xa as d,db as i,hb as s}from"./chunk-D4VXNK25.js";var T=class l{constructor(o,n){this.data=o;this.dialogRef=n;this.modalConfig=new _,this.modalConfig.title=o.title,this.modalConfig.headerType=o.headerType,this.modalConfig.okText=o.okText?o.okText:"OK",this.modalConfig.hideFooter=o.hideFooter?o.hideFooter:!1}modalConfig;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(n){return new(n||l)(i(g),i(C))};static \u0275cmp=s({type:l,selectors:[["app-confirmation-modal"]],decls:4,vars:2,consts:[[3,"onClose","onCancel","onOk","config"],[1,"container-fluid","modal-info"],[3,"innerHTML"]],template:function(n,e){n&1&&(a(0,"modal-material",0),c("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onOk()}),a(1,"content")(2,"div",1),p(3,"div",2),f()()()),n&2&&(t("config",e.modalConfig),d(3),t("innerHTML",e.data==null?null:e.data.message,r))},dependencies:[M,h,u],styles:[".modal-info[_ngcontent-%COMP%] .empty-state-img[_ngcontent-%COMP%]{width:100px}.modal-info[_ngcontent-%COMP%] .img-1x[_ngcontent-%COMP%]{width:12rem}.modal-info[_ngcontent-%COMP%] .img-2x[_ngcontent-%COMP%]{width:10rem}.modal-info[_ngcontent-%COMP%] .img-3x[_ngcontent-%COMP%]{width:8rem}"]})};export{T as a};
1
+ import{u as _,v as u,w as h}from"./chunk-QZMZBCE7.js";import{e as C,f as g,l as M}from"./chunk-A45GTZVV.js";import{Cb as t,Db as a,Eb as f,Fb as p,Ob as c,Qa as r,Xa as d,db as i,hb as s}from"./chunk-JYZTRN6N.js";var T=class l{constructor(o,n){this.data=o;this.dialogRef=n;this.modalConfig=new _,this.modalConfig.title=o.title,this.modalConfig.headerType=o.headerType,this.modalConfig.okText=o.okText?o.okText:"OK",this.modalConfig.hideFooter=o.hideFooter?o.hideFooter:!1}modalConfig;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(n){return new(n||l)(i(g),i(C))};static \u0275cmp=s({type:l,selectors:[["app-confirmation-modal"]],decls:4,vars:2,consts:[[3,"onClose","onCancel","onOk","config"],[1,"container-fluid","modal-info"],[3,"innerHTML"]],template:function(n,e){n&1&&(a(0,"modal-material",0),c("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onOk()}),a(1,"content")(2,"div",1),p(3,"div",2),f()()()),n&2&&(t("config",e.modalConfig),d(3),t("innerHTML",e.data==null?null:e.data.message,r))},dependencies:[M,h,u],styles:[".modal-info[_ngcontent-%COMP%] .empty-state-img[_ngcontent-%COMP%]{width:100px}.modal-info[_ngcontent-%COMP%] .img-1x[_ngcontent-%COMP%]{width:12rem}.modal-info[_ngcontent-%COMP%] .img-2x[_ngcontent-%COMP%]{width:10rem}.modal-info[_ngcontent-%COMP%] .img-3x[_ngcontent-%COMP%]{width:8rem}"]})};export{T as a};
@@ -1 +1 @@
1
- import{O as c}from"./chunk-CH2CJQUF.js";import{I as s,be as a,ee as m,fa as p,la as n,oa as o}from"./chunk-D4VXNK25.js";var g=class i{constructor(t,e){this.httpService=t;this.toastr=e}_ignoreWarning=!1;_importResponse;get ignoreWarning(){return this._ignoreWarning}get importResponse(){return this._importResponse}generateFormData(t,e){let r=new FormData;return e&&r.append("Data",e),r.append("File",t),r}onSubmitForm(t,e){return this.httpService.postFormData(`/api/${t}`,e).pipe(p(r=>{this._importResponse=r,this.importResponseHandling(r)}),s(r=>(this._importResponse=r.error,this._ignoreWarning=!1,r)))}import(t){return this.httpService.post(c.ImportProduct,t)}previewImport(t,e){return this.httpService.postFormData(t,e)}importResponseHandling(t){t.Issues?(this.toastr.warning(t.Message,"Warning!"),this._ignoreWarning=!0):(this.toastr.success(t.Message,"Success"),this.importResponse.Issues=[],this._ignoreWarning=!1)}static \u0275fac=function(e){return new(e||i)(o(m),o(a))};static \u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})};export{g as a};
1
+ import{O as c}from"./chunk-NZYZO47Z.js";import{I as s,be as a,ee as m,fa as p,la as n,oa as o}from"./chunk-JYZTRN6N.js";var g=class i{constructor(t,e){this.httpService=t;this.toastr=e}_ignoreWarning=!1;_importResponse;get ignoreWarning(){return this._ignoreWarning}get importResponse(){return this._importResponse}generateFormData(t,e){let r=new FormData;return e&&r.append("Data",e),r.append("File",t),r}onSubmitForm(t,e){return this.httpService.postFormData(`/api/${t}`,e).pipe(p(r=>{this._importResponse=r,this.importResponseHandling(r)}),s(r=>(this._importResponse=r.error,this._ignoreWarning=!1,r)))}import(t){return this.httpService.post(c.ImportProduct,t)}previewImport(t,e){return this.httpService.postFormData(t,e)}importResponseHandling(t){t.Issues?(this.toastr.warning(t.Message,"Warning!"),this._ignoreWarning=!0):(this.toastr.success(t.Message,"Success"),this.importResponse.Issues=[],this._ignoreWarning=!1)}static \u0275fac=function(e){return new(e||i)(o(m),o(a))};static \u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})};export{g as a};