marketplacepos 5.48.6 → 5.50.0

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 (286) hide show
  1. package/Marketplace/3rdpartylicenses.txt +214 -214
  2. package/Marketplace/{chunk-SHUYFOQI.js → chunk-24KZDZKS.js} +1 -1
  3. package/Marketplace/{chunk-7JQEF4XX.js → chunk-27DIE2YS.js} +1 -1
  4. package/Marketplace/chunk-2AXBEVQ7.js +4 -0
  5. package/Marketplace/chunk-2K5AP6IZ.js +1 -0
  6. package/Marketplace/{chunk-4RG5YR7N.js → chunk-2NRHX6CZ.js} +2 -2
  7. package/Marketplace/{chunk-ZTHO6JJM.js → chunk-2ST3DMR6.js} +1 -1
  8. package/Marketplace/chunk-34ZZ4GCS.js +1 -0
  9. package/Marketplace/chunk-35N7HHLQ.js +1 -0
  10. package/Marketplace/{chunk-5X2E3W32.js → chunk-3HME327V.js} +1 -1
  11. package/Marketplace/chunk-3NAMEVOB.js +1 -0
  12. package/Marketplace/{chunk-AFIF6VRM.js → chunk-3SCX7IMW.js} +1 -1
  13. package/Marketplace/chunk-47JP6ZSE.js +1 -0
  14. package/Marketplace/chunk-47Q5JJIA.js +1 -0
  15. package/Marketplace/chunk-4KGXKQPG.js +1 -0
  16. package/Marketplace/chunk-4ORO4H6Z.js +266 -0
  17. package/Marketplace/chunk-4PG2EBJQ.js +1 -0
  18. package/Marketplace/chunk-4Q4I4JG4.js +5 -0
  19. package/Marketplace/{chunk-QFSA7CU4.js → chunk-4S4BOPUV.js} +2 -2
  20. package/Marketplace/{chunk-KTLMPVSK.js → chunk-4XENFCCZ.js} +1 -1
  21. package/Marketplace/chunk-52YCKO3Z.js +1 -0
  22. package/Marketplace/chunk-55E6VHIU.js +2 -0
  23. package/Marketplace/{chunk-5BSPSA4O.js → chunk-5C24BA5F.js} +1 -1
  24. package/Marketplace/{chunk-PMVDQ2OP.js → chunk-5QDH4ZNS.js} +1 -1
  25. package/Marketplace/{chunk-ZETUYNFJ.js → chunk-5UFP37GQ.js} +1 -1
  26. package/Marketplace/{chunk-PDCVMSLL.js → chunk-5WQ3LCWP.js} +1 -1
  27. package/Marketplace/chunk-5WT456T7.js +3 -0
  28. package/Marketplace/chunk-5ZS5MEG7.js +1 -0
  29. package/Marketplace/chunk-654AVLKM.js +1 -0
  30. package/Marketplace/chunk-6C4UBIZK.js +10 -0
  31. package/Marketplace/{chunk-ZKIO2ZQ6.js → chunk-6F62N7RZ.js} +2 -2
  32. package/Marketplace/chunk-6NS3D6KQ.js +5 -0
  33. package/Marketplace/chunk-7E53IHXI.js +1 -0
  34. package/Marketplace/{chunk-RQQWNLDZ.js → chunk-7HRL6MHY.js} +1 -1
  35. package/Marketplace/{chunk-LEUBNBGC.js → chunk-7IOQ6VVF.js} +1 -1
  36. package/Marketplace/chunk-7QP3VZ6H.js +1 -0
  37. package/Marketplace/chunk-7R2D2JZ6.js +3 -0
  38. package/Marketplace/{chunk-5MV3UFJQ.js → chunk-7X4B2T6C.js} +2 -2
  39. package/Marketplace/chunk-A2RTZANN.js +1 -0
  40. package/Marketplace/chunk-A53NYS6S.js +1 -0
  41. package/Marketplace/chunk-AHMFSCTX.js +2 -0
  42. package/Marketplace/chunk-ALLZQ6Y3.js +1 -0
  43. package/Marketplace/chunk-AQVMOA6Z.js +1 -0
  44. package/Marketplace/chunk-AUEWKPWQ.js +1 -0
  45. package/Marketplace/chunk-B5ZK5TGW.js +1 -0
  46. package/Marketplace/chunk-BAW6PICI.js +2 -0
  47. package/Marketplace/{chunk-DTAHV4GM.js → chunk-BC6LHZWP.js} +1 -1
  48. package/Marketplace/chunk-BKZIKCX7.js +1 -0
  49. package/Marketplace/chunk-BL6MPO6D.js +2 -0
  50. package/Marketplace/{chunk-GPHNPV7O.js → chunk-BMOMTOEW.js} +2 -2
  51. package/Marketplace/chunk-BUMWMFHU.js +2 -0
  52. package/Marketplace/chunk-BYL4N2KB.js +1 -0
  53. package/Marketplace/chunk-BYX6HZW7.js +1 -0
  54. package/Marketplace/{chunk-6KWG6O5L.js → chunk-C2LAQOUW.js} +1 -1
  55. package/Marketplace/chunk-CC7KUBNZ.js +1 -0
  56. package/Marketplace/chunk-CZWUOW55.js +1 -0
  57. package/Marketplace/{chunk-L7WZ6U4T.js → chunk-DDFP4CNP.js} +1 -1
  58. package/Marketplace/chunk-DI2VKA4Z.js +1 -0
  59. package/Marketplace/{chunk-6OJQRHIZ.js → chunk-DLHIDOS3.js} +1 -1
  60. package/Marketplace/chunk-DPB2343S.js +1 -0
  61. package/Marketplace/chunk-EBXGQWOL.js +1 -0
  62. package/Marketplace/{chunk-IM5M2CAI.js → chunk-EH3PIGLJ.js} +1 -1
  63. package/Marketplace/chunk-EHND5PFE.js +1 -0
  64. package/Marketplace/{chunk-2J7P6ENI.js → chunk-F26O6FCO.js} +1 -1
  65. package/Marketplace/chunk-FEQXCPQI.js +2 -0
  66. package/Marketplace/chunk-FFJXYPVA.js +1 -0
  67. package/Marketplace/chunk-FJU2CZTJ.js +1 -0
  68. package/Marketplace/chunk-FLNIURLD.js +1 -0
  69. package/Marketplace/{chunk-4ILDFTIG.js → chunk-FOKLBUX6.js} +1 -1
  70. package/Marketplace/chunk-FTIUJUXI.js +1 -0
  71. package/Marketplace/{chunk-WNUTNP6I.js → chunk-G3B6ETBU.js} +5 -5
  72. package/Marketplace/{chunk-VWX2IX64.js → chunk-G4T4VM5E.js} +1 -1
  73. package/Marketplace/{chunk-OQM7K2EA.js → chunk-G6O6VFLS.js} +1 -1
  74. package/Marketplace/chunk-GG3X4R7G.js +1 -0
  75. package/Marketplace/chunk-GVJLKDIO.js +1 -0
  76. package/Marketplace/chunk-HFGQAVIU.js +1 -0
  77. package/Marketplace/{chunk-N5AE5WMQ.js → chunk-HO2TMGLM.js} +1 -1
  78. package/Marketplace/chunk-HORS2MKK.js +1 -0
  79. package/Marketplace/chunk-IBE5KBZU.js +1 -0
  80. package/Marketplace/chunk-IDGK6BMG.js +1 -0
  81. package/Marketplace/chunk-IF7EJSQG.js +1 -0
  82. package/Marketplace/chunk-IKC5WEP5.js +1 -0
  83. package/Marketplace/{chunk-3L7Y6LG6.js → chunk-IM7YH54S.js} +1 -1
  84. package/Marketplace/{chunk-63I3I3MX.js → chunk-IVKFEOCB.js} +1 -1
  85. package/Marketplace/chunk-J3QDFXZ7.js +1 -0
  86. package/Marketplace/chunk-J6HA4ZHH.js +1 -0
  87. package/Marketplace/chunk-JM3NLPH4.js +9 -0
  88. package/Marketplace/chunk-JNRCB7N3.js +2 -0
  89. package/Marketplace/chunk-JSQ7SYYK.js +1 -0
  90. package/Marketplace/chunk-JV4F6ZYF.js +1 -0
  91. package/Marketplace/chunk-JWDQVXQP.js +1 -0
  92. package/Marketplace/chunk-JYSOUJ42.js +1 -0
  93. package/Marketplace/chunk-JZ3E5MLG.js +1 -0
  94. package/Marketplace/chunk-K5WSFDNA.js +1 -0
  95. package/Marketplace/chunk-KDIXLH2S.js +1 -0
  96. package/Marketplace/chunk-KR6UNAIL.js +3 -0
  97. package/Marketplace/chunk-KSRL7Y2J.js +2 -0
  98. package/Marketplace/{chunk-3664K4KH.js → chunk-LAMGWNDE.js} +19 -19
  99. package/Marketplace/chunk-LKJCOEGO.js +1 -0
  100. package/Marketplace/chunk-LQPY6AYJ.js +1 -0
  101. package/Marketplace/{chunk-FULVA6QB.js → chunk-LR2YCE6M.js} +1 -1
  102. package/Marketplace/{chunk-DXYMG6QK.js → chunk-LUJ3SHSP.js} +1 -1
  103. package/Marketplace/{chunk-J6CZKQ53.js → chunk-M3DUXHYE.js} +4 -4
  104. package/Marketplace/{chunk-6PW6S7MI.js → chunk-MAQQQB3T.js} +1 -1
  105. package/Marketplace/chunk-MM7SAZOU.js +1 -0
  106. package/Marketplace/{chunk-CM3B2UZ7.js → chunk-MPFJ7FBJ.js} +1 -1
  107. package/Marketplace/{chunk-SJ5MC42H.js → chunk-MT3CWRVG.js} +2 -2
  108. package/Marketplace/chunk-MTVUPPAN.js +149 -0
  109. package/Marketplace/{chunk-WHHW4IZT.js → chunk-N3E43QWK.js} +2 -2
  110. package/Marketplace/{chunk-AFDI4TD4.js → chunk-NIJCYMZM.js} +3 -3
  111. package/Marketplace/chunk-NMFPLAWN.js +1 -0
  112. package/Marketplace/chunk-NQLMPUSB.js +1 -0
  113. package/Marketplace/chunk-NQVNAQCL.js +1 -0
  114. package/Marketplace/{chunk-DUXKDRDP.js → chunk-NRSDIDOP.js} +1 -1
  115. package/Marketplace/{chunk-3JRUKSV3.js → chunk-NVPT5BF2.js} +2 -2
  116. package/Marketplace/chunk-NY2YBW66.js +1 -0
  117. package/Marketplace/chunk-O4D64GHO.js +2 -0
  118. package/Marketplace/{chunk-UH5C5HXK.js → chunk-O4U34AC7.js} +1 -1
  119. package/Marketplace/chunk-OCXIDX74.js +1 -0
  120. package/Marketplace/chunk-OGF4VFSK.js +1 -0
  121. package/Marketplace/chunk-OHGMB7HJ.js +4 -0
  122. package/Marketplace/chunk-OIWQSDTS.js +1 -0
  123. package/Marketplace/chunk-OSGPJXJZ.js +1 -0
  124. package/Marketplace/chunk-P3XVM6DH.js +1 -0
  125. package/Marketplace/{chunk-ODLI42YV.js → chunk-P6RAMHDB.js} +1 -1
  126. package/Marketplace/chunk-PBAFAOKJ.js +1 -0
  127. package/Marketplace/chunk-PGX5ZJ6P.js +1 -0
  128. package/Marketplace/{chunk-IGKMJFKP.js → chunk-PN3KM4M4.js} +2 -2
  129. package/Marketplace/chunk-PSJVP2XO.js +1 -0
  130. package/Marketplace/chunk-PUCIZX6E.js +1 -0
  131. package/Marketplace/chunk-PWCN6GJX.js +5 -0
  132. package/Marketplace/{chunk-L76NLJD7.js → chunk-PWOKOWVV.js} +2 -2
  133. package/Marketplace/chunk-QJ55WDGL.js +1 -0
  134. package/Marketplace/chunk-QJCYEP2A.js +1 -0
  135. package/Marketplace/{chunk-4RLWHMI6.js → chunk-QMHG3QTI.js} +1 -1
  136. package/Marketplace/chunk-QMIL5QUX.js +1 -0
  137. package/Marketplace/chunk-QMQCIH3X.js +7 -0
  138. package/Marketplace/chunk-QQF5ZMGS.js +2 -0
  139. package/Marketplace/{chunk-6XDT56RT.js → chunk-R3WIWDSP.js} +2 -2
  140. package/Marketplace/{chunk-LOWGZOML.js → chunk-RBZU7OVM.js} +1 -1
  141. package/Marketplace/chunk-RM6ZXD3O.js +1 -0
  142. package/Marketplace/chunk-RN5CI3LE.js +1 -0
  143. package/Marketplace/chunk-ROS2QMKF.js +1 -0
  144. package/Marketplace/{chunk-YTHY4IFS.js → chunk-RQUCYFCB.js} +1 -1
  145. package/Marketplace/chunk-RTLTTFZ7.js +1 -0
  146. package/Marketplace/chunk-RUYX7KTP.js +1 -0
  147. package/Marketplace/{chunk-5PMKN6PM.js → chunk-RXC5D64C.js} +2 -2
  148. package/Marketplace/chunk-RZ5N5JLA.js +1 -0
  149. package/Marketplace/chunk-S4JKTHY2.js +1 -0
  150. package/Marketplace/chunk-SABMHH6B.js +1 -0
  151. package/Marketplace/{chunk-TXOZULMZ.js → chunk-SIPZP62B.js} +1 -1
  152. package/Marketplace/{chunk-6CM22SKR.js → chunk-SMZOSLIK.js} +1 -1
  153. package/Marketplace/chunk-SPLGZRGH.js +5 -0
  154. package/Marketplace/chunk-SS6PBSX7.js +1 -0
  155. package/Marketplace/chunk-SZ33XJ4F.js +1 -0
  156. package/Marketplace/chunk-TBVMCNS2.js +1 -0
  157. package/Marketplace/{chunk-3WRXJBHF.js → chunk-TDMNVEUU.js} +3 -3
  158. package/Marketplace/{chunk-RUBV3KX2.js → chunk-TKZ74HJD.js} +1 -1
  159. package/Marketplace/chunk-TOK5EWN4.js +1 -0
  160. package/Marketplace/{chunk-7GY4O2UX.js → chunk-TYQYNICX.js} +3 -3
  161. package/Marketplace/{chunk-VX75I7HA.js → chunk-TZTW72NT.js} +1 -1
  162. package/Marketplace/{chunk-AZOCRKXK.js → chunk-UB62TZOI.js} +1 -1
  163. package/Marketplace/{chunk-L22SKCLL.js → chunk-UE2QO2Y4.js} +1 -1
  164. package/Marketplace/chunk-UE5E7JXK.js +1 -0
  165. package/Marketplace/chunk-UMLV2ZUF.js +1 -0
  166. package/Marketplace/{chunk-JBEKD57G.js → chunk-UPRDDI4K.js} +1 -1
  167. package/Marketplace/{chunk-MDP2SGJI.js → chunk-V6QH3IVL.js} +1 -1
  168. package/Marketplace/chunk-VH7JZJ2B.js +1 -0
  169. package/Marketplace/chunk-VOONKP66.js +1 -0
  170. package/Marketplace/chunk-VP3XO25X.js +2 -0
  171. package/Marketplace/chunk-VVTBM3Z5.js +1 -0
  172. package/Marketplace/chunk-VWMEDVEG.js +1 -0
  173. package/Marketplace/{chunk-NWB7EVME.js → chunk-W33M7S2S.js} +1 -1
  174. package/Marketplace/{chunk-L3W6SG2T.js → chunk-WAXAIL2I.js} +1 -1
  175. package/Marketplace/{chunk-HK5FXZE4.js → chunk-WIRBYT7F.js} +1 -1
  176. package/Marketplace/chunk-WQHFRJZZ.js +1 -0
  177. package/Marketplace/{chunk-KJE5GRQ4.js → chunk-WVA5LYVE.js} +1 -1
  178. package/Marketplace/chunk-X35EOX3B.js +1 -0
  179. package/Marketplace/chunk-X52ZT4MU.js +1 -0
  180. package/Marketplace/chunk-XLQGQESJ.js +2 -0
  181. package/Marketplace/chunk-XPA7U45N.js +1 -0
  182. package/Marketplace/{chunk-6Q6L5NUD.js → chunk-XUDE7VBC.js} +1 -1
  183. package/Marketplace/{chunk-DHPNXR6E.js → chunk-Y3O22N4P.js} +1 -1
  184. package/Marketplace/{chunk-Q2QX5AAJ.js → chunk-YABJCAAL.js} +4 -4
  185. package/Marketplace/{chunk-WFVK32EW.js → chunk-YAWT3CLI.js} +1 -1
  186. package/Marketplace/chunk-YD6BNJ2B.js +1 -0
  187. package/Marketplace/{chunk-FHER4TFY.js → chunk-YKKHSYDW.js} +1 -1
  188. package/Marketplace/chunk-YLQU53ID.js +1 -0
  189. package/Marketplace/chunk-YNL43MLU.js +1 -0
  190. package/Marketplace/chunk-YQZHIZHO.js +6 -0
  191. package/Marketplace/chunk-YX65R6YJ.js +1 -0
  192. package/Marketplace/chunk-YYV4FSYQ.js +1 -0
  193. package/Marketplace/{chunk-EYT2YJGK.js → chunk-Z2XRGVGT.js} +1 -1
  194. package/Marketplace/chunk-Z6LN3X5Q.js +1 -0
  195. package/Marketplace/{chunk-HPINZVE4.js → chunk-ZC526ERX.js} +1 -1
  196. package/Marketplace/{chunk-M4ZE35XK.js → chunk-ZDBFIPDM.js} +1 -1
  197. package/Marketplace/{chunk-RNWHARPK.js → chunk-ZGIYCORM.js} +1 -1
  198. package/Marketplace/chunk-ZMQQVXQU.js +1 -0
  199. package/Marketplace/chunk-ZQHOCT7I.js +1 -0
  200. package/Marketplace/chunk-ZVNZGCYO.js +1 -0
  201. package/Marketplace/{chunk-ITGVXYDV.js → chunk-ZWUYPYHD.js} +1 -1
  202. package/Marketplace/index.html +2 -2
  203. package/Marketplace/main-IQOLSEWV.js +1 -0
  204. package/package.json +1 -1
  205. package/Marketplace/chunk-2B5DXBBJ.js +0 -1
  206. package/Marketplace/chunk-2F4DTZCZ.js +0 -2
  207. package/Marketplace/chunk-2MEVIFIA.js +0 -1
  208. package/Marketplace/chunk-2USFVKEX.js +0 -1
  209. package/Marketplace/chunk-36U7D4LI.js +0 -1
  210. package/Marketplace/chunk-4JDI3AL5.js +0 -1
  211. package/Marketplace/chunk-4LQREJ6J.js +0 -1
  212. package/Marketplace/chunk-4YCSITNV.js +0 -1
  213. package/Marketplace/chunk-5A3P2NB3.js +0 -1
  214. package/Marketplace/chunk-6EORXONU.js +0 -4
  215. package/Marketplace/chunk-6LRZDPE5.js +0 -1
  216. package/Marketplace/chunk-6UOPF4ZP.js +0 -1
  217. package/Marketplace/chunk-7Z5X4HRT.js +0 -1
  218. package/Marketplace/chunk-A7PUMY67.js +0 -1
  219. package/Marketplace/chunk-BQEBDVGB.js +0 -7
  220. package/Marketplace/chunk-BXYXVBXP.js +0 -1
  221. package/Marketplace/chunk-C4VD7LDS.js +0 -266
  222. package/Marketplace/chunk-C6JVY2ER.js +0 -1
  223. package/Marketplace/chunk-C7N6EI73.js +0 -1
  224. package/Marketplace/chunk-CBD25LAJ.js +0 -5
  225. package/Marketplace/chunk-CT6UFONR.js +0 -1
  226. package/Marketplace/chunk-D2J64VUP.js +0 -1
  227. package/Marketplace/chunk-DAUML5UD.js +0 -2
  228. package/Marketplace/chunk-DDV2A3Y2.js +0 -1
  229. package/Marketplace/chunk-E32KODU7.js +0 -1
  230. package/Marketplace/chunk-E3EBAWLJ.js +0 -1
  231. package/Marketplace/chunk-E66QUDQF.js +0 -1
  232. package/Marketplace/chunk-E6AMKEQR.js +0 -149
  233. package/Marketplace/chunk-E6ZWL77N.js +0 -1
  234. package/Marketplace/chunk-EDEZ3JLR.js +0 -4
  235. package/Marketplace/chunk-ESXDXSQ3.js +0 -1
  236. package/Marketplace/chunk-FCEXPGTK.js +0 -5
  237. package/Marketplace/chunk-FKGKMEDE.js +0 -2
  238. package/Marketplace/chunk-FKPDG4AM.js +0 -1
  239. package/Marketplace/chunk-GG3MDS4C.js +0 -1
  240. package/Marketplace/chunk-GURSK3ZV.js +0 -1
  241. package/Marketplace/chunk-HNFW4VQS.js +0 -1
  242. package/Marketplace/chunk-HSQHQZV7.js +0 -1
  243. package/Marketplace/chunk-I3R7CC6J.js +0 -1
  244. package/Marketplace/chunk-I7C6W3RB.js +0 -1
  245. package/Marketplace/chunk-ICE4DSEP.js +0 -1
  246. package/Marketplace/chunk-ILW6ZFFV.js +0 -1
  247. package/Marketplace/chunk-JW7NES7L.js +0 -1
  248. package/Marketplace/chunk-JWK3HR6P.js +0 -1
  249. package/Marketplace/chunk-K2BII75W.js +0 -15
  250. package/Marketplace/chunk-KSR5TQDN.js +0 -1
  251. package/Marketplace/chunk-KUBWQQZK.js +0 -1
  252. package/Marketplace/chunk-KUNITWR6.js +0 -1
  253. package/Marketplace/chunk-KVDREHOE.js +0 -1
  254. package/Marketplace/chunk-LNJUGHOX.js +0 -2
  255. package/Marketplace/chunk-LY32FUZ4.js +0 -2
  256. package/Marketplace/chunk-M2BYW5SR.js +0 -1
  257. package/Marketplace/chunk-MTPSSM64.js +0 -2
  258. package/Marketplace/chunk-N5VHHR26.js +0 -1
  259. package/Marketplace/chunk-NBCUYSP7.js +0 -1
  260. package/Marketplace/chunk-NCKPMA6Q.js +0 -1
  261. package/Marketplace/chunk-NH6QGSVC.js +0 -1
  262. package/Marketplace/chunk-O2YF5VGD.js +0 -2
  263. package/Marketplace/chunk-O4EO3YBL.js +0 -1
  264. package/Marketplace/chunk-OBF4XVU7.js +0 -1
  265. package/Marketplace/chunk-ONPG3DER.js +0 -2
  266. package/Marketplace/chunk-OPXITNRF.js +0 -1
  267. package/Marketplace/chunk-OXWPYJNB.js +0 -1
  268. package/Marketplace/chunk-Q4TAOZ73.js +0 -1
  269. package/Marketplace/chunk-Q56RJPES.js +0 -1
  270. package/Marketplace/chunk-R2XT5M5F.js +0 -3
  271. package/Marketplace/chunk-RI7L4QSY.js +0 -5
  272. package/Marketplace/chunk-RWVVRZJY.js +0 -1
  273. package/Marketplace/chunk-S5R6MCNP.js +0 -5
  274. package/Marketplace/chunk-S7CKRTJV.js +0 -2
  275. package/Marketplace/chunk-STYL7ETF.js +0 -3
  276. package/Marketplace/chunk-T5IUZ6UD.js +0 -1
  277. package/Marketplace/chunk-TAITBX62.js +0 -1
  278. package/Marketplace/chunk-TJYYRHZZ.js +0 -1
  279. package/Marketplace/chunk-TYQY4WPY.js +0 -1
  280. package/Marketplace/chunk-UQK5JNU2.js +0 -1
  281. package/Marketplace/chunk-XLIPGDSC.js +0 -2
  282. package/Marketplace/chunk-ZLBPUHTQ.js +0 -1
  283. package/Marketplace/chunk-ZME22WYI.js +0 -1
  284. package/Marketplace/chunk-ZW2TMVZP.js +0 -10
  285. package/Marketplace/chunk-ZYJ6LAJ3.js +0 -4
  286. package/Marketplace/main-K3MDOIIF.js +0 -1
@@ -1 +0,0 @@
1
- import{a as E}from"./chunk-ZSUWHVKX.js";import{a as K}from"./chunk-6OJQRHIZ.js";import{c as L}from"./chunk-JBEKD57G.js";import{A as j}from"./chunk-L3W6SG2T.js";import{b as A,c as H}from"./chunk-ZETUYNFJ.js";import{v as q,w as J}from"./chunk-STYL7ETF.js";import{c as Z,m as $}from"./chunk-LNJUGHOX.js";import{$b as _,$c as w,Gb as I,Hc as U,Mb as P,Mc as u,Nc as k,Oc as O,ad as N,bc as s,cd as z,dc as B,ec as V,fc as M,gc as d,hc as r,ic as c,jc as p,kd as R,lb as T,nb as i,nc as v,oc as b,qc as f,ra as F,sb as y,td as g,vc as C,xa as x,xc as a,ya as h}from"./chunk-ZYJ6LAJ3.js";var G=(t,e,n,l)=>[t,e,n,l],S=t=>[t],Q=(t,e)=>[t,e],W=t=>({"me-3":t}),X=t=>({"border-bottom pb-2":t});function Y(t,e){if(t&1){let n=f();r(0,"img",17),C("click",function(o){x(n);let m=a();return h(m.openBiggerPicture(o))}),c()}if(t&2){let n=a();d("src",n.image,T)}}function tt(t,e){t&1&&p(0,"img",9)}function nt(t,e){if(t&1&&(r(0,"span",19)(1,"a",20),p(2,"i",21),c()()),t&2){let n=a(2);i(),d("href",n.redirectUrl,T)}}function et(t,e){if(t&1&&(r(0,"div",12),p(1,"i",18),r(2,"span"),u(3),c(),_(4,nt,3,1,"span",19),c()),t&2){let n=a();i(3),k(n.code),i(),s(n.code!=="SKU not assigned"&&n.showRedirectIcon()?4:-1)}}function it(t,e){if(t&1){let n=f();r(0,"div",22),C("click",function(){x(n);let o=a();return h(o.onEventDesc())}),p(1,"i",23),r(2,"span"),u(3),c()()}if(t&2){let n=a();i(3),k(n.description)}}function ot(t,e){if(t&1){let n=f();r(0,"div",24)(1,"input",25),C("change",function(o){x(n);let m=a(2);return h(m.onCheck(o.target.checked))}),c()()}}function at(t,e){if(t&1&&(v(0),_(1,ot,2,0,"div",24),b()),t&2){let n=a();i(),s(n.showCheckBox()?1:-1)}}function rt(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(3);return h(o.onDownload())}),p(1,"i",29),u(2,"Download "),c()}}function ct(t,e){if(t&1&&(v(0),_(1,rt,3,0,"button",27),b()),t&2){let n=a(2);i(),s(n.downloadButton()?1:-1)}}function lt(t,e){}function dt(t,e){if(t&1){let n=f();r(0,"li")(1,"a",36),C("click",function(){x(n);let o=a(6);return h(o.onScan())}),p(2,"i",37),u(3,"Scan "),c()()}}function _t(t,e){if(t&1&&(v(0),_(1,dt,4,0,"li"),b()),t&2){let n=a(5);i(),s(n.scanButton()?1:-1)}}function st(t,e){if(t&1){let n=f();r(0,"li")(1,"a",38),C("click",function(){x(n);let o=a(6);return h(o.onDetach())}),p(2,"i",39),u(3,"Detach "),c()()}}function mt(t,e){if(t&1&&(v(0),_(1,st,4,0,"li"),b()),t&2){let n=a(5);i(),s(n.detachButton()?1:-1)}}function pt(t,e){if(t&1&&(v(0),r(1,"div",33),p(2,"button",34),r(3,"ul",35),P(4,_t,2,1,"ng-container",15)(5,mt,2,1,"ng-container",15),c()(),b()),t&2){let n=a(4);i(4),d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function ut(t,e){if(t&1){let n=f();r(0,"button",31),C("click",function(){x(n);let o=a(3);return h(o.onUpload())}),p(1,"i",32),u(2,"Upload "),c(),P(3,pt,6,6,"ng-container",15)}if(t&2){let n=a(3);i(3),d("ngxPermissionsOnly",N(1,Q,n.productScanRole,n.productDetachRole))}}function Ct(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(5);return h(o.onScan())}),p(1,"i",40),u(2," Scan "),c()}}function gt(t,e){if(t&1&&(v(0),_(1,Ct,3,0,"button",27),b()),t&2){let n=a(4);i(),s(n.scanButton()?1:-1)}}function xt(t,e){if(t&1){let n=f();r(0,"button",42),C("click",function(){x(n);let o=a(5);return h(o.onDetach())}),p(1,"i",39),u(2,"Detach "),c()}}function ht(t,e){if(t&1&&(v(0),_(1,xt,3,0,"button",41),b()),t&2){let n=a(4);i(),s(n.detachButton()?1:-1)}}function ft(t,e){if(t&1&&P(0,gt,2,1,"ng-container",15)(1,ht,2,1,"ng-container",15),t&2){let n=a(3);d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function wt(t,e){if(t&1&&(r(0,"div",26),P(1,lt,0,0,"ng-template",30)(2,ut,4,4,"ng-template",null,0,R)(4,ft,2,6,"ng-template",null,1,R),c()),t&2){let n=U(3),l=U(5),o=a(2);i(),d("ngxPermissionsOnly",w(3,S,o.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",l)}}function vt(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(4);return h(o.onScan())}),p(1,"i",40),u(2," Scan "),c()}}function bt(t,e){if(t&1&&(v(0),_(1,vt,3,0,"button",27),b()),t&2){let n=a(3);i(),s(n.scanButton()?1:-1)}}function Pt(t,e){if(t&1){let n=f();r(0,"button",44),C("click",function(){x(n);let o=a(4);return h(o.onDetach())}),p(1,"i",39),u(2,"Detach "),c()}}function St(t,e){if(t&1&&(v(0),_(1,Pt,3,0,"button",43),b()),t&2){let n=a(3);i(),s(n.detachButton()?1:-1)}}function Tt(t,e){if(t&1&&P(0,bt,2,1,"ng-container",15)(1,St,2,1,"ng-container",15),t&2){let n=a(2);d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function yt(t,e){if(t&1&&(r(0,"a",46),p(1,"img",47),c()),t&2){let n=e.$implicit,l=e.$index,o=a(4);d("href",n==null?null:n.Url,T),i(),d("ngClass",w(4,W,l!=o.channels.length-1))("src",o.getChannelLogo(n),T)("matTooltip",n!=null&&n.Title?n==null?null:n.Title:n.Name)}}function Et(t,e){if(t&1&&V(0,yt,2,6,"a",46,B),t&2){let n=a(3);M(n.channels)}}function kt(t,e){if(t&1&&(r(0,"li")(1,"div",50)(2,"div",51)(3,"a",46),p(4,"img",52),r(5,"span",53),u(6),c()()()()()),t&2){let n=e.$implicit,l=e.$index,o=a(4);i(2),d("ngClass",w(4,X,l!=o.channels.length-1)),i(),d("href",n==null?null:n.Url,T),i(),d("src",o.getChannelLogo(n),T),i(2),k(n==null?null:n.Title)}}function Dt(t,e){if(t&1&&(r(0,"div",45)(1,"button",48),u(2),c(),r(3,"ul",49),V(4,kt,7,6,"li",null,B),c()()),t&2){let n=a(3);i(2),O(" ",n.channels.length," CHANNELS "),i(2),M(n.channels)}}function Bt(t,e){if(t&1&&(r(0,"div"),_(1,Et,2,0)(2,Dt,6,1,"div",45),c()),t&2){let n=a(2);i(),s(n.channels.length<4?1:2)}}function Vt(t,e){if(t&1&&(r(0,"div",16)(1,"div"),P(2,ct,2,1,"ng-container",15),_(3,wt,6,5,"div",26)(4,Tt,2,6),c(),_(5,Bt,3,1,"div"),c()),t&2){let n=a();i(2),d("ngxPermissionsOnly",w(3,S,n.productDownloadRole)),i(),s(n.uploadButton()?3:4),i(2),s(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var Jt=(()=>{let e=class e{constructor(){this.biggerPictureService=F(K),this.productId=g(void 0),this.uploadButton=g(!1),this.scanButton=g(!1),this.showCheckBox=g(!1),this.downloadButton=g(!1),this.showFooter=g(!0),this.detachButton=g(!1),this.title=g(void 0),this.check=g(void 0),this.imageForZoom=g(void 0),this.hasZoom=g(!0),this.showRedirectIcon=g(!0),this.productUploadRole=E.ProductUpload,this.productScanRole=E.ProductScan,this.productDownloadRole=E.ProductDownload,this.productDetachRole=E.ProductDetach,this.onUploadEvent=new y,this.onScanEvent=new y,this.checkBoxChange=new y,this.onDescEvent=new y,this.onDownloadEvent=new y,this.onDetachEvent=new y}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let l=localStorage.getItem("Authorization"),o=JSON.parse(l)?.Host;this.redirectUrl=`https://${o}/menu/Products/Catalog/Products/Info?ID=${this.productId()}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(l){this.checkBoxChange.emit(l)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(l){return L.getChannelLogoByTypeId(l.TypeID)}openBiggerPicture(l){this.biggerPictureService.openBiggerPicture(l,this.imageForZoom())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=I({type:e,selectors:[["app-product-card"]],inputs:{productId:[1,"productId"],uploadButton:[1,"uploadButton"],scanButton:[1,"scanButton"],showCheckBox:[1,"showCheckBox"],downloadButton:[1,"downloadButton"],showFooter:[1,"showFooter"],detachButton:[1,"detachButton"],image:"image",title:[1,"title"],code:"code",description:"description",channels:"channels",check:[1,"check"],imageForZoom:[1,"imageForZoom"],hasZoom:[1,"hasZoom"],showRedirectIcon:[1,"showRedirectIcon"]},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:17,vars:12,consts:[["thenBlock",""],["elseBlock",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"rounded","imgUpload","float-left",3,"src"],["src","https://resc.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],[1,"description","cursor-pointer"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],[1,"rounded","imgUpload","float-left",3,"click","src"],[1,"fa","fa-barcode","me-2"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"dropdown"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(o,m){if(o&1&&(r(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),_(6,Y,1,1,"img",8)(7,tt,1,0,"img",9),c()()(),r(8,"div",10)(9,"h4",11),C("click",function(){return m.onEventDesc()}),u(10),c(),_(11,et,5,2,"div",12),_(12,it,4,1,"div",12),c(),r(13,"div",13)(14,"div",14),P(15,at,2,1,"ng-container",15),c()()()(),_(16,Vt,6,5,"div",16),c()),o&2){let D;i(6),s(m.image?6:7),i(3),d("matTooltip",((D=m.title())==null?null:D.length)>25?m.title():""),i(),O(" ",m.title()," "),i(),s(m.code?11:-1),i(),s(m.description?12:-1),i(3),d("ngxPermissionsOnly",z(7,G,m.productDownloadRole,m.productScanRole,m.productUploadRole,m.productDetachRole)),i(),s(m.showFooter()?16:-1)}},dependencies:[$,Z,j,J,q,H,A],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let t=e;return t})();export{Jt as a};
@@ -1 +0,0 @@
1
- import{a as i}from"./chunk-ZSUWHVKX.js";import{a as u,b as c}from"./chunk-A7PUMY67.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as m,I as p}from"./chunk-LNJUGHOX.js";import{Gb as l,gc as a,hc as s,ic as d,jc as t,nb as n}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var C=(()=>{let e=class e{constructor(){this.tabs=[{Title:"All",Url:"/menu/order/all"},{Title:"To Ship",Url:"/menu/order/to-ship"},{Title:"Awaiting Collection",Url:"/menu/order/awaiting-collection"},{Title:"Shipped",Url:"/menu/order/shipped"},{Title:"Completed",Url:"/menu/order/completed"},{Title:"Cancelled",Url:"/menu/order/cancelled"},{Title:"Download",Url:"/menu/order/download",Permissions:[i.DownloadOrder]},{Title:"Log",Url:"/menu/order/log",Permissions:[i.DownloadOrder]}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=l({type:e,selectors:[["app-orders-v2"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(o,v){o&1&&(s(0,"nav",0)(1,"div",1)(2,"div"),t(3,"nav-tab",2),d()()(),t(4,"router-outlet")),o&2&&(n(3),a("Tabs",v.tabs)("usePermissions",!0))},dependencies:[p,m,c,u],encapsulation:2});let r=e;return r})();export{C as OrdersV2Component};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-NH6QGSVC.js";import{a as C,b as v}from"./chunk-A7PUMY67.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as h,I as o,m as f}from"./chunk-LNJUGHOX.js";import{Gb as l,Hb as c,gc as s,hc as d,ic as u,jc as i,na as p,nb as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var b=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"}]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=l({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,g){n&1&&(d(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),u()()(),i(4,"router-outlet")),n&2&&(m(3),s("Tabs",g.priceTabs))},dependencies:[v,C,o,h],encapsulation:2});let t=e;return t})();var M=[{path:"",component:b,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-RWVVRZJY.js").then(t=>t.PricePosChannelComponent)},canActivate:[r],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-KUNITWR6.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[r],data:{title:"Price Single Channel Comparison"}}]}],F=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=c({type:e}),e.\u0275inj=p({imports:[f,o.forChild(M)]});let t=e;return t})();export{F as PriceRoutingModule};
@@ -1 +0,0 @@
1
- import{f as a}from"./chunk-WHHW4IZT.js";import{O as t,y as i}from"./chunk-XLIPGDSC.js";import{Hb as r,na as e}from"./chunk-ZYJ6LAJ3.js";var g=(()=>{class o{static \u0275fac=function(m){return new(m||o)};static \u0275mod=r({type:o});static \u0275inj=e({imports:[t,i,a,t]})}return o})();export{g as a};
@@ -1 +0,0 @@
1
- import{a as f}from"./chunk-NH6QGSVC.js";import{b as l}from"./chunk-A7PUMY67.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{n as u}from"./chunk-EDEZ3JLR.js";import{A as d}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as c,I as m,m as n}from"./chunk-LNJUGHOX.js";import{Gb as a,Hb as i,jc as s,na as r}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var M=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a({type:t,selectors:[["app-report"]],standalone:!1,decls:1,vars:0,template:function(e,O){e&1&&s(0,"router-outlet")},dependencies:[c],styles:["ul[_ngcontent-%COMP%] > li.dropdown-item[_ngcontent-%COMP%]{font-size:.6875rem!important}"]});let o=t;return o})();var y=[{path:"",component:M,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",loadChildren:()=>import("./chunk-I3R7CC6J.js").then(o=>o.OrderModule),canActivate:[f]}]}],C=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,m.forChild(y)]});let o=t;return o})();var b=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,l,C,d,u,m]});let o=t;return o})();export{b as ReportModule};
@@ -1,4 +0,0 @@
1
- import{a as Ht,b as Zt}from"./chunk-ZME22WYI.js";import{a as Q,b as qt}from"./chunk-VWX2IX64.js";import"./chunk-BKR7YPEW.js";import{c as zt,d as Vt}from"./chunk-FCEXPGTK.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-N5AE5WMQ.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as Nt,n as Lt}from"./chunk-EDEZ3JLR.js";import"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{e as V,f as Bt,g as Dt,h as q,i as wt,l as It,q as Pt,r as Rt,u as Ot,v as jt}from"./chunk-STYL7ETF.js";import{C as Mt,E as Et,M as Ft,N as H,O as Z,h as Tt,x as At}from"./chunk-XLIPGDSC.js";import{D as Ct,G as gt,I as St,i as bt,j as vt,k as kt,l as xt,m as yt}from"./chunk-LNJUGHOX.js";import{$b as b,Ad as _t,Ba as T,Bc as j,Ca as et,Cc as N,Dc as L,Gb as A,Ha as R,Hb as ot,Ib as w,Jc as pt,Kb as rt,Lc as ut,Mb as st,Mc as s,Nc as h,Oc as _,Qa as nt,Z as G,Zb as ct,Zc as ft,aa as J,bc as v,bd as ht,ca as X,cc as lt,ec as dt,f as y,fc as mt,gc as F,hc as o,hd as u,ic as a,id as x,jc as k,jd as z,ma as Y,na as tt,nb as c,pa as P,q as W,qc as I,ra as m,tb as it,ub as O,vb as at,vc as M,xa as B,xc as f,ya as D}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as C}from"./chunk-66YHNWRR.js";function Jt(i,l){if(i&1){let e=I();o(0,"div",1)(1,"button",2),M("click",function(){B(e);let n=f();return D(n.action())}),s(2),a()()}if(i&2){let e=f();c(2),_(" ",e.data.action," ")}}var Xt=["label"];function Yt(i,l){}var te=Math.pow(2,31)-1,E=class{_overlayRef;instance;containerInstance;_afterDismissed=new y;_afterOpened=new y;_onAction=new y;_durationTimeoutId;_dismissedByAction=!1;constructor(l,e){this._overlayRef=e,this.containerInstance=l,l._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(l){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(l,te))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Qt=new P("MatSnackBarData"),g=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},ee=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=w({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),ne=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=w({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),ie=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=w({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),Ut=(()=>{class i{snackBarRef=m(E);data=m(Qt);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=A({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(t,n){t&1&&(o(0,"div",0),s(1),a(),b(2,Jt,3,1,"div",1)),t&2&&(c(),_(" ",n.data.message,`
2
- `),c(),v(n.hasAction?2:-1))},dependencies:[zt,ee,ne,ie],styles:[`.mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}
3
- `],encapsulation:2,changeDetection:0})}return i})(),U="_mat-snack-bar-enter",$="_mat-snack-bar-exit",ae=(()=>{class i extends Dt{_ngZone=m(it);_elementRef=m(nt);_changeDetectorRef=m(_t);_platform=m(Tt);_animationsDisabled=H();snackBarConfig=m(g);_document=m(et);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=m(T);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new y;_onExit=new y;_onEnter=new y;_animationState="void";_live;_label;_role;_liveElementId=m(Et).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),t}attachTemplatePortal(e){this._assertNotAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),t}attachDomPortal=e=>{this._assertNotAttached();let t=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),t};onAnimationEnd(e){e===$?this._completeExit():e===U&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?O(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(U)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(U)},200)))}exit(){return this._destroyed?W(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?O(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd($)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd($),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(d=>e.classList.add(d)):e.classList.add(t)),this._exposeToModals();let n=this._label.nativeElement,r="mdc-snackbar__label";n.classList.toggle(r,!n.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<t.length;n++){let r=t[n],d=r.getAttribute("aria-owns");this._trackedModals.add(r),d?d.indexOf(e)===-1&&r.setAttribute("aria-owns",d+" "+e):r.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let t=e.getAttribute("aria-owns");if(t){let n=t.replace(this._liveElementId,"").trim();n.length>0?e.setAttribute("aria-owns",n):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,t=e.querySelector("[aria-hidden]"),n=e.querySelector("[aria-live]");if(t&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(r=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=A({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,n){if(t&1&&(j(q,7),j(Xt,7)),t&2){let r;N(r=L())&&(n._portalOutlet=r.first),N(r=L())&&(n._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(t,n){t&1&&M("animationend",function(d){return n.onAnimationEnd(d.animationName)})("animationcancel",function(d){return n.onAnimationEnd(d.animationName)}),t&2&&pt("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled)},features:[rt],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2,0)(3,"div",3),st(4,Yt,0,0,"ng-template",4),a(),k(5,"div"),a()()),t&2&&(c(5),ct("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[q],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
4
- `],encapsulation:2})}return i})();function oe(){return new g}var re=new P("mat-snack-bar-default-options",{providedIn:"root",factory:oe}),K=(()=>{class i{_live=m(Mt);_injector=m(T);_breakpointObserver=m(At);_parentSnackBar=m(i,{optional:!0,skipSelf:!0});_defaultConfig=m(re);_animationsDisabled=H();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Ut;snackBarContainerComponent=ae;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",n){let r=C(C({},this._defaultConfig),n);return r.data={message:e,action:t},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=T.create({parent:n||this._injector,providers:[{provide:g,useValue:t}]}),d=new V(this.snackBarContainerComponent,t.viewContainerRef,r),p=e.attach(d);return p.instance.snackBarConfig=t,p.instance}_attach(e,t){let n=C(C(C({},new g),this._defaultConfig),t),r=this._createOverlay(n),d=this._attachSnackBarContainer(r,n),p=new E(d,r);if(e instanceof at){let S=new Bt(e,null,{$implicit:n.data,snackBarRef:p});p.instance=d.attachTemplatePortal(S)}else{let S=this._createInjector(n,p),Kt=new V(e,void 0,S),Wt=d.attachComponentPortal(Kt);p.instance=Wt.instance}return this._breakpointObserver.observe(Ft.HandsetPortrait).pipe(X(r.detachments())).subscribe(S=>{r.overlayElement.classList.toggle(this.handsetCssClass,S.matches)}),n.announcementMessage&&d._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(p,n),this._openedSnackBarRef=p,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let t=new It;t.direction=e.direction;let n=Pt(this._injector),r=e.direction==="rtl",d=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,p=!d&&e.horizontalPosition!=="center";return d?n.left("0"):p?n.right("0"):n.centerHorizontally(),e.verticalPosition==="top"?n.top("0"):n.bottom("0"),t.positionStrategy=n,t.disableAnimations=this._animationsDisabled,Rt(this._injector,t)}_createInjector(e,t){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector;return T.create({parent:n||this._injector,providers:[{provide:E,useValue:t},{provide:Qt,useValue:e.data}]})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Y({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var $t=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ot({type:i});static \u0275inj=tt({providers:[K],imports:[Ot,wt,Vt,Z,Ut,Z]})}return i})();var se=(i,l,e)=>({"text-warning":i,"text-success":l,"text-danger":e});function ce(i,l){i&1&&s(0," In Progress ")}function le(i,l){i&1&&s(0," Completed ")}function de(i,l){i&1&&s(0," Failed ")}function me(i,l){if(i&1&&(o(0,"tr")(1,"th",20)(2,"span"),s(3),a()(),o(4,"td"),s(5),a()()),i&2){let e=l.$implicit;c(3),_(" ",e.Key," "),c(2),h(e.Value)}}function pe(i,l){if(i&1&&(o(0,"table",15)(1,"tbody"),dt(2,me,6,2,"tr",null,lt),a()()),i&2){let e=f();c(2),mt(e.ParsedStatus)}}function ue(i,l){if(i&1){let e=I();o(0,"div",4)(1,"div"),k(2,"i",21),a(),o(3,"div",13)(4,"div",22)(5,"h5",7),s(6,"Performance Log"),a(),o(7,"button",23),u(8,"json"),M("cdkCopyToClipboardCopied",function(){B(e);let n=f(2);return D(n.onCopied())}),k(9,"i",24),s(10," Copy to clipboard "),a()(),o(11,"div")(12,"pre",25),s(13),u(14,"json"),a()()()()}if(i&2){let e=f();c(7),F("cdkCopyToClipboard",x(8,2,e.ParsedPerfLog)),c(6),h(x(14,4,e.ParsedPerfLog))}}function fe(i,l){if(i&1&&(o(0,"div",4)(1,"div"),k(2,"i",26),a(),o(3,"div")(4,"div",6)(5,"h5",7),s(6,"StackTrace"),a()(),o(7,"div")(8,"pre",25),s(9),u(10,"json"),a()()()()),i&2){let e=f();c(9),h(x(10,1,e.ParsedException))}}function he(i,l){if(i&1&&(o(0,"mainpanel",0)(1,"actions")(2,"a",1),s(3,"Back"),a()(),o(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div"),k(9,"i",5),a(),o(10,"div")(11,"div",6)(12,"h5",7),s(13," Job "),o(14,"small",8),s(15),a()()(),o(16,"div",9)(17,"div",10)(18,"span",11),s(19,"Channel Type"),a(),o(20,"span"),s(21),a()(),o(22,"div",10)(23,"span",11),s(24,"Start Time"),a(),o(25,"span"),s(26),u(27,"date"),a()(),o(28,"div",10)(29,"span",11),s(30,"End Time"),a(),o(31,"span"),s(32),u(33,"date"),o(34,"span",8),s(35),a()()(),o(36,"div",10)(37,"span",11),s(38,"User"),a(),o(39,"span"),s(40),a()(),o(41,"div",10)(42,"span",11),s(43,"Status"),a(),o(44,"span"),b(45,ce,1,0)(46,le,1,0)(47,de,1,0),a()()()()(),o(48,"div",4)(49,"div"),k(50,"i",12),a(),o(51,"div")(52,"div",6)(53,"h5",7),s(54,"Product Breakdown"),a()(),o(55,"div",13)(56,"div",14)(57,"table",15)(58,"thead",16)(59,"tr")(60,"th",17),s(61," Count "),a(),o(62,"th",18),s(63," Found "),a(),o(64,"th",19),s(65," NotFound "),a()()(),o(66,"tbody")(67,"tr")(68,"td"),s(69),u(70,"number"),a(),o(71,"td"),s(72),u(73,"number"),a(),o(74,"td"),s(75),u(76,"number"),a()()()(),b(77,pe,4,0,"table",15),a()()()(),b(78,ue,15,6,"div",4),b(79,fe,11,3,"div",4),a()()()()),i&2){let e,t=l,n=f();F("headerTitle",t.ChannelName+" - Job Details")("hideSearchBox",!0)("hideSearchDropdown",!0),c(15),_("(",t.ID,")"),c(6),h(t.Channel),c(5),h(z(27,18,t.Created,"dd MMM yyyy hh:mm:ss a")),c(6),_("",z(33,21,t.EndTime,"dd MMM yyyy hh:mm:ss a")," "),c(3),_("(",t.MillisecondToDisplay,")"),c(5),_(" ",t.LoginID," "),c(4),ut(ht(30,se,t.StateID==n.scanState.InProgress,t.StateID==n.scanState.Completed,t.StateID==n.scanState.Failed)),c(),v((e=t.StateID)===n.scanState.InProgress?45:e===n.scanState.Completed?46:e===n.scanState.Failed?47:-1),c(24),h(x(70,24,t.OriginGetCount)),c(3),h(x(73,26,t.SkuFoundCount)),c(3),h(x(76,28,t.SkuNotFoundCount)),c(2),v(t.ParsedStatus?77:-1),c(),v(t!=null&&t.PerfLog?78:-1),c(),v(t!=null&&t.ParsedException?79:-1)}}var Xe=(()=>{let l=class l{constructor(){this.notificationService=m(Q),this.activatedRoute=m(Ct),this.snackBar=m(K),this.scanState=qt,this.copyToClipboardPerflog=R("Copy log to clipboard"),this.copyToClipboardMessage=R("Copy message to clipboard")}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(J(t=>{let n=t.ID;return this.notificationService.getNotificationDetail(n).pipe(G(1))}))}onCopied(){this.snackBar.open("Copied to clipboard!","",{duration:2e3,horizontalPosition:"center",verticalPosition:"top"})}copyMessageToClipboard(t){let n=this.notificationService.createMessageCopyText(t);navigator.clipboard.writeText(n||"").then(()=>{this.copyToClipboardMessage.set("Message copied!"),setTimeout(()=>{this.copyToClipboardMessage.set("Copy message to clipboard")},5e3)})}copyPerfLogToClipboard(t){navigator.clipboard.writeText(t.PerfLog||"").then(()=>{this.copyToClipboardPerflog.set("PerfLog copied!"),setTimeout(()=>{this.copyToClipboardPerflog.set("Copy log to clipboard")},5e3)})}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=A({type:l,selectors:[["app-detail"]],features:[ft([Q])],decls:2,vars:3,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notificationV2",1,"btn","btn-secondary","btn-fill","btn-lg"],[1,"container-fluid","mt-8"],[1,"ps-8","d-flex","flex-column","gap-8","mt-8"],[1,"mb-4","d-flex","gap-2"],[1,"fa-solid","fa-gear","text-success"],[1,"d-flex","align-items-center","mb-6","gap-2"],[1,"mb-0"],[1,"text-muted"],[1,"d-flex","flex-column","gap-5"],[1,"d-flex"],[1,"text-muted",2,"width","150px"],[1,"fa-solid","fa-box-archive","text-success"],[1,"col-6"],[1,"d-flex","flex-column","gap-5",2,"width","19rem"],[1,"table","table-bordered","table-sm"],[1,"thead-light"],["matTooltip","Total Product in Seller Center","matTooltipPosition","above"],["matTooltip","Total Product Found in Sold in Channel","matTooltipPosition","above"],["matTooltip","Total Product Found in Not in POS","matTooltipPosition","above"],[2,"width","138px","background-color","#f6f6f6"],[1,"fa-solid","fa-code","text-success","pt-4"],[1,"d-flex","align-items-center","justify-content-between","mb-5"],["type","button",1,"btn","btn-sm","btn-outline-success","d-flex","align-items-center","gap-1",3,"cdkCopyToClipboardCopied","cdkCopyToClipboard"],[1,"fa","fa-copy"],[1,"border","p-3","rounded-1"],[1,"fa","fa-triangle-exclamation","text-warning"]],template:function(n,r){if(n&1&&(b(0,he,80,34,"mainpanel",0),u(1,"async")),n&2){let d;v((d=x(1,1,r.notification$))?0:-1,d)}},dependencies:[yt,Lt,Nt,St,gt,jt,Zt,Ht,$t,bt,kt,xt,vt],encapsulation:2});let i=l;return i})();export{Xe as DetailComponent};
@@ -1 +0,0 @@
1
- import{b as de,c as pe}from"./chunk-ILW6ZFFV.js";import{a as ce}from"./chunk-DUXKDRDP.js";import{a as T}from"./chunk-6CM22SKR.js";import{a as se}from"./chunk-S7CKRTJV.js";import{a as ae}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import{a as me}from"./chunk-L22SKCLL.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as le}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as re,n as oe}from"./chunk-EDEZ3JLR.js";import{A as te,c as Y,h as Z,m as $,o as ee}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as ie,w as ne}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as K,j as Q,l as U,m as X}from"./chunk-LNJUGHOX.js";import{$b as y,$c as G,Gb as W,Ha as O,Lc as k,Mc as a,Nc as E,Oc as w,Qc as g,Rc as C,Sc as h,Tc as z,Uc as R,Vc as H,Z as F,Zc as j,_c as q,bc as b,cc as D,ec as I,fc as B,gc as v,hc as t,hd as x,ic as i,id as A,jc as _,jd as J,nb as l,qc as V,ra as N,vc as M,xa as c,xc as f,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var ue=()=>[],_e=r=>({"td-cell-hover":r});function fe(r,m){if(r&1&&_(0,"variants-dropdown",26),r&2){let e=f().$implicit;v("variants",e==null?null:e.Variants)}}function ge(r,m){if(r&1&&_(0,"variant-with-image",27),r&2){let e=f().$implicit;v("variant",e==null?null:e.Variants[0])}}function Ce(r,m){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=f().$implicit;l(),w("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function he(r,m){if(r&1&&(t(0,"tr")(1,"td")(2,"div",23)(3,"div"),_(4,"order-link",24),i(),t(5,"small"),a(6),x(7,"date"),i(),_(8,"br"),t(9,"small"),_(10,"i",25),a(11),i()()(),t(12,"td"),y(13,fe,1,1,"variants-dropdown",26)(14,ge,1,1,"variant-with-image",27),i(),t(15,"td"),a(16),x(17,"number"),i(),t(18,"td")(19,"div",23)(20,"div",28)(21,"span"),a(22),i(),y(23,Ce,2,1,"span"),i(),t(24,"small"),a(25),i()()()()),r&2){let e=m.$implicit;l(4),v("order",e),l(2),w(" ",J(7,10,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),w(" ",e.Customer," "),l(),k(G(15,_e,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?13:14),l(3),E(A(17,13,e.Amount)),l(6),E(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?23:-1),l(2),w(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function Se(r,m){if(r&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Number"),i(),t(6,"th"),a(7,"Items"),i(),t(8,"th",21),a(9,"Amount"),i(),t(10,"th",21),a(11,"Shipping"),i()()(),t(12,"tbody"),I(13,he,26,17,"tr",null,D),i()(),t(15,"app-custom-paginator",22),M("next",function(){c(e);let p=f();return u(p.initAllOrders())})("previous",function(){c(e);let p=f();return u(p.initAllOrders())}),i()()}if(r&2){let e=f(),d=H(0);l(13),B(d),l(2),v("filter",e.filter())("totaldata",d==null?null:d.length)}}function ve(r,m){r&1&&(t(0,"div",16),_(1,"app-empty-state"),i())}var qe=(()=>{let m=class m{constructor(){this.orderService=N(T),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:d=>{this.initFromDate(d)},error:d=>{console.error("Error fetching default date:",d),this.initFromDate(null)}})}initFromDate(d){this.filter.update(p=>L(P({},p),{From:d})),this.initAllOrders()}initAllOrders(){this.allOrders$=this.orderService.getAllOrders(this.filter()).pipe(F(1))}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=W({type:m,selectors:[["app-all"]],features:[j([T])],decls:34,vars:12,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"d-flex","align-items-end","gap-2"]],template:function(p,o){if(p&1){let s=V();z(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return c(s),u(o.initAllOrders())}),h("textChange",function(n){return c(s),C(o.filter().Number,n)||(o.filter().Number=n),u(n)}),t(3,"actions")(4,"a",1),_(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),i(),t(12,"app-channel-options-v2",4),h("ngModelChange",function(n){return c(s),C(o.filter().ListChannelID,n)||(o.filter().ListChannelID=n),u(n)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),h("dateChange",function(n){return c(s),C(o.filter().From,n)||(o.filter().From=n),u(n)}),i()(),t(18,"div")(19,"datepicker",8),h("dateChange",function(n){return c(s),C(o.filter().To,n)||(o.filter().To=n),u(n)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),h("ngModelChange",function(n){return c(s),C(o.filter().PageNumber,n)||(o.filter().PageNumber=n),u(n)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),h("ngModelChange",function(n){return c(s),C(o.filter().PageSize,n)||(o.filter().PageSize=n),u(n)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,Se,16,2,"div",15)(33,ve,2,0,"div",16),i()()()()()}if(p&2){let s=R(A(1,8,o.allOrders$)||q(11,ue));l(2),g("text",o.filter().Number),l(10),v("multiple",!0),g("ngModel",o.filter().ListChannelID),l(5),g("date",o.filter().From),l(2),g("date",o.filter().To),l(4),g("ngModel",o.filter().PageNumber),l(4),g("ngModel",o.filter().PageSize),l(5),b((s==null?null:s.length)>0?32:33)}},dependencies:[X,oe,re,ae,le,te,Y,ee,Z,$,de,pe,se,ne,ie,ce,me,K,U,Q],encapsulation:2});let r=m;return r})();export{qe as AllComponent};
@@ -1 +0,0 @@
1
- import{a as Y}from"./chunk-L22SKCLL.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as H}from"./chunk-AGBJEXIM.js";import{e as F}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as J,n as G}from"./chunk-EDEZ3JLR.js";import{A as j,c as U,h as K,m as R,p as O}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as W,k as D,m as N}from"./chunk-LNJUGHOX.js";import{$b as S,Gb as V,Ha as w,Mc as d,Nc as A,Qc as g,Rc as C,Sc as y,Tc as L,Uc as T,Vc as P,Z as k,bc as x,gc as f,hc as i,hd as b,ic as t,id as B,jc as E,nb as c,qc as M,ra as I,vc as v,xa as m,xc as h,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(n,a){if(n&1){let p=M();i(0,"input",30),y("ngModelChange",function(o){m(p);let e=h();return C(e.sku,o)||(e.sku=o),u(o)}),t()}if(n&2){let p=h();g("ngModel",p.sku)}}function z(n,a){if(n&1){let p=M();i(0,"input",31),y("ngModelChange",function(o){m(p);let e=h();return C(e.itemId,o)||(e.itemId=o),u(o)}),t()}if(n&2){let p=h();g("ngModel",p.itemId)}}function Q(n,a){if(n&1&&(i(0,"pre",28),d(1),b(2,"json"),t()),n&2){h();let p=P(35);c(),A(B(2,1,p))}}function X(n,a){n&1&&(i(0,"p",29),d(1," Your data will be shown here once it's available "),t())}var me=(()=>{let a=class a{constructor(){this.httpService=I(F),this.selectedChannel=w(null),this.sku=w(null),this.itemId=w(null),this.searchBy="sku"}initProductLog(){let l={ChannelID:this.selectedChannel()};this.searchBy==="sku"?l.SKU=this.sku():l.ItemID=this.itemId(),this.productLog$=this.httpService.post(H.GetProductApiLog,l).pipe(k(1))}copyToClipboard(l){if(!l)return;let o=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(o),alert("Copied to clipboard!")}};a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=V({type:a,selectors:[["app-product-api"]],decls:50,vars:14,consts:[["headerTitle","Origin Product Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],[1,"mb-2"],[1,"form-check","form-check-inline"],["type","radio","name","searchBy","id","searchBySku",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchBySku",1,"form-check-label"],["type","radio","name","searchBy","id","searchByItemId",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchByItemId",1,"form-check-label"],["type","text","placeholder","Product Code / SKU",1,"form-control","rounded-1",2,"height","40px",3,"ngModel"],["type","text","placeholder","ItemID is Product id from seller center",1,"form-control","rounded-1",2,"height","40px",3,"ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","productLogText"],[1,"text-center","my-12","text-muted"],["type","text","placeholder","Product Code / SKU",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],["type","text","placeholder","ItemID is Product id from seller center",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"]],template:function(o,e){if(o&1){let s=M();i(0,"mainpanel",0)(1,"actions")(2,"button",1),v("click",function(){return m(s),u(e.initProductLog())}),E(3,"i",2),d(4," Search "),t()(),i(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),d(12,"Channel"),t(),i(13,"p",8),d(14," View logs related to Product API Detail "),t()(),i(15,"div",9)(16,"app-channel-options-v2",10),y("ngModelChange",function(r){return m(s),C(e.selectedChannel,r)||(e.selectedChannel=r),u(r)}),t()()(),i(17,"div",11)(18,"div",7)(19,"h6"),d(20,"Product Code / SKU"),t(),i(21,"p",8),d(22," Product SKU or Code from Channel Product "),t()(),i(23,"div",9)(24,"div",12)(25,"div",13)(26,"input",14),y("ngModelChange",function(r){return m(s),C(e.searchBy,r)||(e.searchBy=r),u(r)}),t(),i(27,"label",15),d(28,"Search by SKU"),t()(),i(29,"div",13)(30,"input",16),y("ngModelChange",function(r){return m(s),C(e.searchBy,r)||(e.searchBy=r),u(r)}),t(),i(31,"label",17),d(32,"Search by ItemID"),t()()(),S(33,q,1,1,"input",18),S(34,z,1,1,"input",19),t()()()(),L(35),b(36,"async"),i(37,"div",20)(38,"div",21)(39,"div",22)(40,"div",23)(41,"h5"),d(42,"Response"),t(),i(43,"button",24),v("click",function(){m(s);let r=P(35);return u(e.copyToClipboard(r))}),d(44," Copy "),t()(),i(45,"div",25)(46,"div",26)(47,"div",27),S(48,Q,3,3,"pre",28)(49,X,2,0,"p",29),t()()()()()()()()()}if(o&2){f("hideSearchBox",!0)("hideSearchDropdown",!0),c(16),g("ngModel",e.selectedChannel),c(10),g("ngModel",e.searchBy),f("value","sku"),c(4),g("ngModel",e.searchBy),f("value","itemid"),c(3),x(e.searchBy==="sku"?33:-1),c(),x(e.searchBy==="itemid"?34:-1),c();let s=T(B(36,11,e.productLog$));c(8),f("disabled",!s),c(5),x(s?48:49)}},dependencies:[N,j,U,O,K,R,G,J,Y,W,D],encapsulation:2});let n=a;return n})();export{me as ProductApiComponent};
@@ -1 +0,0 @@
1
- import{a as Fe,b as Ie}from"./chunk-L76NLJD7.js";import{a as Ee,b as Ve,c as Ae}from"./chunk-ILW6ZFFV.js";import{a as Ne}from"./chunk-DUXKDRDP.js";import{a as j}from"./chunk-6CM22SKR.js";import{a as De}from"./chunk-S7CKRTJV.js";import"./chunk-EYT2YJGK.js";import"./chunk-RNWHARPK.js";import{a as Le}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import"./chunk-6KWG6O5L.js";import{a as Pe}from"./chunk-L22SKCLL.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as Me}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as x}from"./chunk-AGBJEXIM.js";import{b as L,e as z}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as d,c as A}from"./chunk-JBEKD57G.js";import{b as Se,d as we,f as ve,g as ye,h as xe,m as ke,n as Te}from"./chunk-EDEZ3JLR.js";import{A as R,b as ge,c as fe,h as O,m as W,o as Ce}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as _e,w as be}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as ce,j as de,l as ue,m as he}from"./chunk-LNJUGHOX.js";import{$b as k,$c as pe,Bc as te,Cc as ie,Dc as ne,G,Gb as N,Ha as B,Lc as oe,Mc as c,Nc as P,Oc as E,Qc as S,Rc as w,Sc as v,Tc as re,Uc as ae,Vc as F,Z as J,Zc as le,aa as X,bc as T,cc as Z,ec as $,fc as ee,gc as y,hc as o,hd as V,ic as r,id as I,jc as _,jd as se,lb as Y,ma as D,nb as m,od as me,qc as M,ra as C,v as K,vc as b,xa as h,xc as f,ya as g}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as Q,b as q}from"./chunk-66YHNWRR.js";var Oe=(()=>{let l=class l{constructor(){this.http=C(z),this.toastr=C(L)}printTokopediaShippingLabel(e,t=!1){let i={OrderNumber:e,Printed:t};return this.http.post(x.TokopediaPrintShippingLabel,i)}printTiktokShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.TiktokPrintShippingLabel,i)}printShopeeShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.ShopeePrintShippingLabel,i).pipe(K(p=>(p&&(p.Number=e),p)))}printLazadaShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.LazadaPrintShippingLabel,i)}handleShippingLabelResponse(e,t){switch(t){case d.Tokopedia:let u=window.open("about:blank","_blank");u.document.write(e.File),u.document.close();break;case d.Tiktok:e.data!=null?window.open(e.data.doc_url,"_blank"):this.toastr.error("Cannot Print the Shipping Label,The invoice Number is not set to Pickup","Cannot Print");break;case d.Shopee:var i=Uint8Array.from(atob(e.File),s=>s.charCodeAt(0)),p=new Blob([i],{type:"octet/stream"});A.openDownloadFile(p,`${e?.Number}.pdf`);break;case d.Lazada:e?.result?.data!=null?window.open(e?.result?.data?.pdf_url,"_blank"):this.toastr.error(e.message,"Cannot Print");break}}};l.\u0275fac=function(t){return new(t||l)},l.\u0275prov=D({token:l,factory:l.\u0275fac,providedIn:"root"});let a=l;return a})();var We=(()=>{let l=class l{constructor(){this.dialogRef=C(Se),this.tandaiSudahDicetak=!1}onCancel(){this.dialogRef.close()}onPrint(){this.dialogRef.close(this.tandaiSudahDicetak?1:0)}};l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=N({type:l,selectors:[["app-print-tokopedia"]],decls:17,vars:1,consts:[[1,"container-fluid"],[1,"text-center","mb-4","fw-bold","mt-6"],[1,"row"],[1,"col-12"],[1,"fs-5"],[1,"d-flex","align-items-center","text-center","justify-content-center","mb-8"],[1,"me-2",3,"ngModelChange","ngModel"],[1,"fs-5","pt-1"],[1,"d-flex","align-items-center","justify-content-center"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"h2",1),c(2,"Cetak label pesanan"),r(),o(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"p",4),c(7,"Kamu akan mencetak label yang berisi detail pesanan"),r(),o(8,"div",5)(9,"mat-checkbox",6),v("ngModelChange",function(u){return w(i.tandaiSudahDicetak,u)||(i.tandaiSudahDicetak=u),u}),r(),o(10,"span",7),c(11,'Pesanan telah ditandai sebagai "Sudah Dicetak"'),r()()()()(),o(12,"mat-dialog-actions",8)(13,"button",9),b("click",function(){return i.onCancel()}),c(14,"Cancel"),r(),o(15,"button",10),b("click",function(){return i.onPrint()}),c(16,"Cetak Pesanan"),r()()()),t&2&&(m(9),S("ngModel",i.tandaiSudahDicetak))},dependencies:[R,O,W,xe,ye,ve],encapsulation:2});let a=l;return a})();var U=(()=>{let l=class l{constructor(){this.httpService=C(z),this.shippingLabelService=C(Oe),this.toastrService=C(L),this.dialog=C(we)}printShippingLabel(e){switch(e?.MarketType){case d.Shopee:this.shippingLabelService.printShopeeShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Shopee));break;case d.Tiktok:this.shippingLabelService.printTiktokShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Tiktok));break;case d.Tokopedia:this.dialog.open(We).afterClosed().pipe(G(t=>A.IsNotEmpty(t)),X(t=>this.shippingLabelService.printTokopediaShippingLabel(e.Number,t))).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Tokopedia));break;case d.Lazada:this.shippingLabelService.printLazadaShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Lazada));break;case d.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}printMultipleShippingLabel(e){let t=e.map(p=>({OrderNumber:p.Number,ShopID:p.ShopID})),i="";switch(e[0]?.MarketType){case d.Shopee:i=x.ShopeePrintMultipleShippingLabel;break;case d.Tiktok:i=x.TiktokPrintMultipleShippingLabel;break;case d.Lazada:i=x.LazadaPrintMultipleShippingLabel;break}this.httpService.post(i,t).subscribe(p=>{var u=Uint8Array.from(atob(p.File),Re=>Re.charCodeAt(0)),s=new Blob([u],{type:"octet/stream"});A.openDownloadFile(s,`${p?.Name}.pdf`)})}};l.\u0275fac=function(t){return new(t||l)},l.\u0275prov=D({token:l,factory:l.\u0275fac});let a=l;return a})();var Be=["contextMenu"],je=a=>({"td-cell-hover":a});function He(a,l){if(a&1){let n=M();o(0,"button",20),b("click",function(){h(n);let t=f(),i=F(0);return g(t.onDowloadShippingLabel(i))}),_(1,"i",21),o(2,"span"),c(3,"Download Shipping Label"),r()()}}function Ue(a,l){if(a&1){let n=M();o(0,"input",47),v("ngModelChange",function(t){h(n);let i=f().$implicit;return w(i.selected,t)||(i.selected=t),g(t)}),b("ngModelChange",function(){h(n);let t=f(3),i=F(0);return g(t.onSelectOrders(i))}),r()}if(a&2){let n=f().$implicit,e=f(2);S("ngModel",n.selected),y("disabled",e.selectedChannelType()!=null&&e.selectedChannelType()!=n.MarketType)}}function Qe(a,l){if(a&1&&_(0,"variants-dropdown",39),a&2){let n=f().$implicit;y("variants",n==null?null:n.Variants)}}function qe(a,l){if(a&1&&_(0,"variant-with-image",40),a&2){let n=f().$implicit;y("variant",n==null?null:n.Variants[0])}}function Ke(a,l){if(a&1&&(o(0,"span"),c(1),r()),a&2){let n=f().$implicit;m(),E("(",n.LogisticService==null?null:n.LogisticService.Option,")")}}function Ge(a,l){if(a&1){let n=M();o(0,"button",48),b("click",function(){h(n);let t=f().$implicit,i=f(2);return g(i.onPrintShippingLabel(t))}),_(1,"i",49),r()}}function Je(a,l){if(a&1){let n=M();o(0,"tr")(1,"td"),k(2,Ue,1,2,"input",31),r(),o(3,"td")(4,"div",32),_(5,"img",33),V(6,"channelImage"),o(7,"div",34)(8,"div"),c(9),r(),o(10,"small",35)(11,"span"),c(12),r()()()()(),o(13,"td")(14,"div",36)(15,"div"),_(16,"order-link",37),r(),o(17,"small"),c(18),V(19,"date"),r(),_(20,"br"),o(21,"small"),_(22,"i",38),c(23),r()()(),o(24,"td"),k(25,Qe,1,1,"variants-dropdown",39)(26,qe,1,1,"variant-with-image",40),r(),o(27,"td",41),c(28),V(29,"number"),r(),o(30,"td",42),b("mouseenter",function(t){let i=h(n).$implicit,p=f(2);return g(p.onMouseEnter(t,i))}),o(31,"div",43)(32,"div",36)(33,"div",44)(34,"span"),c(35),r(),k(36,Ke,2,1,"span"),r(),o(37,"small"),c(38),r()()()(),o(39,"td",45),k(40,Ge,2,0,"button",46),r()()}if(a&2){let n=l.$implicit,e=f(2);m(2),T((n==null?null:n.MarketType)!=e.channelType.WooCommerce?2:-1),m(3),y("src",I(6,16,n==null?null:n.MarketType),Y)("alt",n==null||n.Variants[0]==null?null:n.Variants[0].Name),m(4),P(n.Outlet),m(3),P(n.ChannelName),m(4),y("order",n),m(2),E(" ",se(19,18,n==null?null:n.Created,"dd/MM/yyyy HH:mm:ss")," "),m(5),E(" ",n.Customer," "),m(),oe(pe(23,je,(n.Variants==null?null:n.Variants.length)>1)),m(),T((n.Variants==null?null:n.Variants.length)>1?25:26),m(3),P(I(29,21,n.Amount)),m(7),P(n.LogisticService!=null&&n.LogisticService.Name?n.LogisticService==null?null:n.LogisticService.Name:"-"),m(),T(n.LogisticService!=null&&n.LogisticService.Option&&(n.LogisticService==null?null:n.LogisticService.Option)!="Default"?36:-1),m(2),E(" ",n.ReferenceNumber?n.ReferenceNumber:"-"," "),m(2),T((n==null?null:n.MarketType)!=e.channelType.WooCommerce?40:-1)}}function Xe(a,l){if(a&1){let n=M();o(0,"div",17)(1,"table",22)(2,"thead",23)(3,"tr",24),_(4,"th",25),o(5,"th",26),c(6,"Outlet"),r(),o(7,"th",26),c(8,"Number"),r(),o(9,"th"),c(10,"Items"),r(),o(11,"th",27),c(12,"Amount"),r(),o(13,"th",28),c(14,"Shipping"),r(),_(15,"th",29),r()(),o(16,"tbody"),$(17,Je,41,25,"tr",null,Z),r()(),o(19,"app-custom-paginator",30),b("next",function(){h(n);let t=f();return g(t.initAwaitingCollection())})("previous",function(){h(n);let t=f();return g(t.initAwaitingCollection())}),r()()}if(a&2){let n=f(),e=F(0);m(17),ee(e),m(2),y("filter",n.filter())("totaldata",e==null?null:e.length)}}function Ye(a,l){a&1&&(o(0,"div",18),_(1,"app-empty-state"),r())}var Yt=(()=>{let l=class l{constructor(){this.printShippingService=C(U),this.orderService=C(j),this.toastr=C(L),this.fulfillmentService=C(Fe),this.channelType=d,this.selectedOrders=B([]),this.selectedChannelType=me(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.filter=B({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"},{id:"fulfillment",label:"Set Fulfillment",icon:"fa-solid fa-truck"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(t=>q(Q({},t),{From:e})),this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.orderService.getAwaitingCollectionOrders(this.filter()).pipe(J(1))}onPrintShippingLabel(e){this.printShippingService.printShippingLabel(e)}onSelectOrders(e){let t=e.filter(i=>i.selected);this.selectedOrders.set(t)}onDowloadShippingLabel(e){e=e.map(t=>(t.selected=!1,t)),this.printShippingService.printMultipleShippingLabel(this.selectedOrders()),this.selectedOrders.set([])}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initAwaitingCollection()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initAwaitingCollection()})}onMouseEnter(e,t){(!t.LogisticService?.Name||!t.ReferenceNumber)&&this.contextMenuEl.show(e,t)}onSelectContextItem(e){e.item?.id==="refresh"?this.refreshShippingAndRefNumber(e.data):this.onSetFulfillment(e.data)}};l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=N({type:l,selectors:[["app-awaiting-collection"]],viewQuery:function(t,i){if(t&1&&te(Be,5),t&2){let p;ie(p=ne())&&(i.contextMenuEl=p.first)}},features:[le([j,U])],decls:37,vars:13,consts:[["contextMenu",""],["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-3"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line","me-3"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","150px"],[2,"width","50px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[3,"mouseenter"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line"]],template:function(t,i){if(t&1){let p=M();re(0),V(1,"async"),o(2,"mainpanel",1),b("onSubmit",function(){return h(p),g(i.initAwaitingCollection())}),v("textChange",function(s){return h(p),w(i.filter().Number,s)||(i.filter().Number=s),g(s)}),o(3,"actions"),k(4,He,4,0,"button",2),o(5,"a",3),_(6,"i",4),o(7,"span"),c(8,"Order Fulfillment Display"),r()()(),o(9,"filters")(10,"div")(11,"label",5),c(12,"Channel"),r(),o(13,"app-channel-options-v2",6),v("ngModelChange",function(s){return h(p),w(i.filter().ListChannelID,s)||(i.filter().ListChannelID=s),g(s)}),r()(),o(14,"div",7)(15,"label",5),c(16,"From/To"),r(),o(17,"div",8)(18,"datepicker",9),v("dateChange",function(s){return h(p),w(i.filter().From,s)||(i.filter().From=s),g(s)}),r()(),o(19,"div")(20,"datepicker",10),v("dateChange",function(s){return h(p),w(i.filter().To,s)||(i.filter().To=s),g(s)}),r()()(),o(21,"div",7)(22,"label",11),c(23,"Page Number"),r(),o(24,"input",12),v("ngModelChange",function(s){return h(p),w(i.filter().PageNumber,s)||(i.filter().PageNumber=s),g(s)}),r()(),o(25,"div",7)(26,"label",11),c(27,"Page Size"),r(),o(28,"input",13),v("ngModelChange",function(s){return h(p),w(i.filter().PageSize,s)||(i.filter().PageSize=s),g(s)}),r()()(),o(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),k(33,Xe,20,2,"div",17)(34,Ye,2,0,"div",18),r()()()()(),o(35,"app-context-menu",19,0),b("onSelectItem",function(s){return h(p),g(i.onSelectContextItem(s))}),r()}if(t&2){let p=ae(I(1,10,i.awaitingCollections$));m(2),S("text",i.filter().Number),m(2),T(i.selectedOrders().length>0?4:-1),m(9),y("multiple",!0),S("ngModel",i.filter().ListChannelID),m(5),S("date",i.filter().From),m(2),S("date",i.filter().To),m(4),S("ngModel",i.filter().PageNumber),m(4),S("ngModel",i.filter().PageSize),m(5),T((p==null?null:p.length)>0?33:34),m(2),y("items",i.contextMenuItems)}},dependencies:[he,Te,ke,Le,Me,R,fe,Ce,ge,O,W,Ve,Ae,De,be,_e,Ne,Ie,Pe,ce,ue,de,Ee],encapsulation:2});let a=l;return a})();export{Yt as AwaitingCollectionComponent};
@@ -1 +0,0 @@
1
- import{b as h,c as L}from"./chunk-ZETUYNFJ.js";import{w as F}from"./chunk-STYL7ETF.js";import{G as D,H as M,I as N,m as P}from"./chunk-LNJUGHOX.js";import{$b as b,Gb as _,Hb as C,Mb as T,Mc as d,Oc as u,bc as g,cc as c,ec as l,fc as p,gc as a,hc as r,ic as s,na as x,nb as o,nc as y,oc as k,td as f,xc as m}from"./chunk-ZYJ6LAJ3.js";function w(e,t){if(e&1&&(y(0),r(1,"li",2)(2,"a",3),d(3),s()(),k()),e&2){let i=m().$implicit;o(2),a("routerLink",i.Url)("title",i.Description?i.Description:""),o(),u(" ",i.Title," ")}}function E(e,t){if(e&1&&T(0,w,4,3,"ng-container",1),e&2){let i=t.$implicit;a("ngxPermissionsOnly",i.Permissions)}}function S(e,t){if(e&1&&l(0,E,1,1,"ng-container",null,c),e&2){let i=m();p(i.Tabs())}}function R(e,t){if(e&1&&(r(0,"li",2)(1,"a",3),d(2),s()()),e&2){let i=t.$implicit;o(),a("routerLink",i.Url)("title",i.Description?i.Description:""),o(),u(" ",i.Title," ")}}function $(e,t){if(e&1&&l(0,R,3,3,"li",2,c),e&2){let i=m();p(i.Tabs())}}var K=(()=>{let t=class t{constructor(){this.Tabs=f(void 0),this.usePermissions=f(!1)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=_({type:t,selectors:[["nav-tab"]],inputs:{Tabs:[1,"Tabs"],usePermissions:[1,"usePermissions"]},standalone:!1,decls:3,vars:1,consts:[[1,"nav","navbar-nav","navbar-left","nav-tab-arrow"],[4,"ngxPermissionsOnly"],["routerLinkActive","active",1,"nav-item","me-6"],[1,"nav-link","nav-link-arrow","mb-0",3,"routerLink","title"]],template:function(n,I){n&1&&(r(0,"ul",0),b(1,S,2,0)(2,$,2,0),s()),n&2&&(o(),g(I.usePermissions()?1:2))},dependencies:[D,M,h],encapsulation:2});let e=t;return e})(),Q=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=C({type:t}),t.\u0275inj=x({imports:[P,N,F,L]});let e=t;return e})();export{K as a,Q as b};
@@ -1,7 +0,0 @@
1
- import{a as x}from"./chunk-QXRG5XYP.js";import{a as Xe,b as ye,c as Ye,d as Qe,e as we,f as et,g as Se,h as tt,i as Q,j as ve,k as R}from"./chunk-RXLMJGUY.js";import{a as ot}from"./chunk-AGBJEXIM.js";import{e as oe}from"./chunk-OXWPYJNB.js";import{b as me,c as F}from"./chunk-JBEKD57G.js";import{b as rt}from"./chunk-YTHY4IFS.js";import{a as nt}from"./chunk-ZETUYNFJ.js";import{F as Ze,n as Ge,o as Je}from"./chunk-LNJUGHOX.js";import{Ca as Ve,F as Le,G as Ue,Ha as ne,Hb as q,La as qe,O as he,S as $e,T as He,Va as z,Z as pe,aa as B,ba as fe,c as m,ea as Y,f as Ne,ga as We,ha as Ke,j as Be,k as Me,ma as T,n as Z,na as K,o as re,p as M,pa as P,q as X,qa as g,ra as O,tb as V,ua as ge,v as j,w as Fe,wa as ze,zd as H}from"./chunk-ZYJ6LAJ3.js";import{b as w}from"./chunk-WFMAM73Y.js";import{a as de,i as k}from"./chunk-66YHNWRR.js";var it={production:!0,version:"5.48.6",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:omni&sort=sortOrder:asc"};var Ct="firebase",Dt="11.10.0";Q(Ct,Dt,"app");var G=new We("ANGULARFIRE2_VERSION");var st=(r,o)=>{let s=o?[o]:tt(),e=[];return s.forEach(t=>{t.container.getProvider(r).instances.forEach(i=>{e.includes(i)||e.push(i)})}),e},ke=(function(r){return r[r.SILENT=0]="SILENT",r[r.WARN=1]="WARN",r[r.VERBOSE=2]="VERBOSE",r})(ke||{}),Lr=H()&&typeof Zone<"u"?ke.WARN:ke.SILENT;var ie=class{zone;delegate;constructor(o,s=Me){this.zone=o,this.delegate=s}now(){return this.delegate.now()}schedule(o,s,e){let t=this.zone,n=function(i){t?t.runGuarded(()=>{o.apply(this,[i])}):o.apply(this,[i])};return this.delegate.schedule(n,s,e)}},Ae=(()=>{class r{outsideAngular;insideAngular;constructor(){let s=O(V);this.outsideAngular=s.runOutsideAngular(()=>new ie(typeof Zone>"u"?void 0:Zone.current)),this.insideAngular=s.run(()=>new ie(typeof Zone>"u"?void 0:Zone.current,Be))}static \u0275fac=function(e){return new(e||r)};static \u0275prov=T({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var xt=new Map,Rt={activated:!1,tokenObservers:[]},_t={initialized:!1,enabled:!1};function _(r){return xt.get(r)||Object.assign({},Rt)}function ut(){return _t}var jt="https://content-firebaseappcheck.googleapis.com/v1";var Ot="exchangeDebugToken",at={OFFSET_DURATION:300*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:960*1e3},Zr=1440*60*1e3;var Ie=class{constructor(o,s,e,t,n){if(this.operation=o,this.retryPolicy=s,this.getWaitDuration=e,this.lowerBound=t,this.upperBound=n,this.pending=null,this.nextErrorWaitInterval=t,t>n)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(o){return k(this,null,function*(){this.stop();try{this.pending=new ye,this.pending.promise.catch(s=>{}),yield Nt(this.getNextRun(o)),this.pending.resolve(),yield this.pending.promise,this.pending=new ye,this.pending.promise.catch(s=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(s){this.retryPolicy(s)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(o){if(o)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let s=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),s}}};function Nt(r){return new Promise(o=>{setTimeout(o,r)})}var Bt={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"},U=new Qe("appCheck","AppCheck",Bt);function dt(r){if(!_(r).activated)throw U.create("use-before-activation",{appName:r.name})}function ht(e,t){return k(this,arguments,function*({url:r,body:o},s){let n={"Content-Type":"application/json"},i=s.getImmediate({optional:!0});if(i){let h=yield i.getHeartbeatsHeader();h&&(n["X-Firebase-Client"]=h)}let a={method:"POST",body:JSON.stringify(o),headers:n},l;try{l=yield fetch(r,a)}catch(h){throw U.create("fetch-network-error",{originalErrorMessage:h?.message})}if(l.status!==200)throw U.create("fetch-status-error",{httpStatus:l.status});let c;try{c=yield l.json()}catch(h){throw U.create("fetch-parse-error",{originalErrorMessage:h?.message})}let u=c.ttl.match(/^([\d.]+)(s)$/);if(!u||!u[2]||isNaN(Number(u[1])))throw U.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${c.ttl}`});let f=Number(u[1])*1e3,d=Date.now();return{token:c.token,expireTimeMillis:d+f,issuedAtTimeMillis:d}})}function pt(r,o){let{projectId:s,appId:e,apiKey:t}=r.options;return{url:`${jt}/projects/${s}/apps/${e}:${Ot}?key=${t}`,body:{debug_token:o}}}var Mt="firebase-app-check-database",Ft=1,Te="firebase-app-check-store";var se=null;function Lt(){return se||(se=new Promise((r,o)=>{try{let s=indexedDB.open(Mt,Ft);s.onsuccess=e=>{r(e.target.result)},s.onerror=e=>{var t;o(U.create("storage-open",{originalErrorMessage:(t=e.target.error)===null||t===void 0?void 0:t.message}))},s.onupgradeneeded=e=>{let t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore(Te,{keyPath:"compositeKey"})}}}catch(s){o(U.create("storage-open",{originalErrorMessage:s?.message}))}}),se)}function Ut(r,o){return $t(Ht(r),o)}function $t(r,o){return k(this,null,function*(){let e=(yield Lt()).transaction(Te,"readwrite"),n=e.objectStore(Te).put({compositeKey:r,value:o});return new Promise((i,a)=>{n.onsuccess=l=>{i()},e.onerror=l=>{var c;a(U.create("storage-set",{originalErrorMessage:(c=l.target.error)===null||c===void 0?void 0:c.message}))}})})}function Ht(r){return`${r.options.appId}-${r.name}`}var ee=new et("@firebase/app-check");function be(r,o){return Ye()?Ut(r,o).catch(s=>{ee.warn(`Failed to write token to IndexedDB. Error: ${s}`)}):Promise.resolve()}function ft(){return ut().enabled}function gt(){return k(this,null,function*(){let r=ut();if(r.enabled&&r.token)return r.token.promise;throw Error(`
2
- Can't get debug token in production mode.
3
- `)})}var Wt={error:"UNKNOWN_ERROR"};function Kt(r){return Xe.encodeString(JSON.stringify(r),!1)}function Ce(r,o=!1,s=!1){return k(this,null,function*(){let e=r.app;dt(e);let t=_(e),n=t.token,i;if(n&&!te(n)&&(t.token=void 0,n=void 0),!n){let c=yield t.cachedTokenPromise;c&&(te(c)?n=c:yield be(e,void 0))}if(!o&&n&&te(n))return{token:n.token};let a=!1;if(ft())try{t.exchangeTokenPromise||(t.exchangeTokenPromise=ht(pt(e,yield gt()),r.heartbeatServiceProvider).finally(()=>{t.exchangeTokenPromise=void 0}),a=!0);let c=yield t.exchangeTokenPromise;return yield be(e,c),t.token=c,{token:c.token}}catch(c){return c.code==="appCheck/throttled"||c.code==="appCheck/initial-throttle"?ee.warn(c.message):s&&ee.error(c),Ee(c)}try{t.exchangeTokenPromise||(t.exchangeTokenPromise=t.provider.getToken().finally(()=>{t.exchangeTokenPromise=void 0}),a=!0),n=yield _(e).exchangeTokenPromise}catch(c){c.code==="appCheck/throttled"||c.code==="appCheck/initial-throttle"?ee.warn(c.message):s&&ee.error(c),i=c}let l;return n?i?te(n)?l={token:n.token,internalError:i}:l=Ee(i):(l={token:n.token},t.token=n,yield be(e,n)):l=Ee(i),a&&Gt(e,l),l})}function zt(r){return k(this,null,function*(){let o=r.app;dt(o);let{provider:s}=_(o);if(ft()){let e=yield gt(),{token:t}=yield ht(pt(o,e),r.heartbeatServiceProvider);return{token:t}}else{let{token:e}=yield s.getToken();return{token:e}}})}function Vt(r,o,s,e){let{app:t}=r,n=_(t),i={next:s,error:e,type:o};if(n.tokenObservers=[...n.tokenObservers,i],n.token&&te(n.token)){let a=n.token;Promise.resolve().then(()=>{s({token:a.token}),ct(r)}).catch(()=>{})}n.cachedTokenPromise.then(()=>ct(r))}function mt(r,o){let s=_(r),e=s.tokenObservers.filter(t=>t.next!==o);e.length===0&&s.tokenRefresher&&s.tokenRefresher.isRunning()&&s.tokenRefresher.stop(),s.tokenObservers=e}function ct(r){let{app:o}=r,s=_(o),e=s.tokenRefresher;e||(e=qt(r),s.tokenRefresher=e),!e.isRunning()&&s.isTokenAutoRefreshEnabled&&e.start()}function qt(r){let{app:o}=r;return new Ie(()=>k(null,null,function*(){let s=_(o),e;if(s.token?e=yield Ce(r,!0):e=yield Ce(r),e.error)throw e.error;if(e.internalError)throw e.internalError}),()=>!0,()=>{let s=_(o);if(s.token){let e=s.token.issuedAtTimeMillis+(s.token.expireTimeMillis-s.token.issuedAtTimeMillis)*.5+3e5,t=s.token.expireTimeMillis-300*1e3;return e=Math.min(e,t),Math.max(0,e-Date.now())}else return 0},at.RETRIAL_MIN_WAIT,at.RETRIAL_MAX_WAIT)}function Gt(r,o){let s=_(r).tokenObservers;for(let e of s)try{e.type==="EXTERNAL"&&o.error!=null?e.error(o.error):e.next(o)}catch{}}function te(r){return r.expireTimeMillis-Date.now()>0}function Ee(r){return{token:Kt(Wt),error:r}}var De=class{constructor(o,s){this.app=o,this.heartbeatServiceProvider=s}_delete(){let{tokenObservers:o}=_(this.app);for(let s of o)mt(this.app,s.next);return Promise.resolve()}};function Jt(r,o){return new De(r,o)}function Zt(r){return{getToken:o=>Ce(r,o),getLimitedUseToken:()=>zt(r),addTokenListener:o=>Vt(r,"INTERNAL",o),removeTokenListener:o=>mt(r.app,o)}}var Xt="@firebase/app-check",Yt="0.10.1";var Qt="app-check",lt="app-check-internal";function er(){Se(new we(Qt,r=>{let o=r.getProvider("app").getImmediate(),s=r.getProvider("heartbeat");return Jt(o,s)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((r,o,s)=>{r.getProvider(lt).initialize()})),Se(new we(lt,r=>{let o=r.getProvider("app-check").getImmediate();return Zt(o)},"PUBLIC").setInstantiationMode("EXPLICIT")),Q(Xt,Yt)}er();var tr="app-check";var ae=class{constructor(){return st(tr)}};var rr=["localhost","0.0.0.0","127.0.0.1"],hn=typeof window<"u"&&rr.includes(window.location.hostname);var yt=(()=>{let o=class o{constructor(){}getParseToken(){let e=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(e.Token.access_token)}GetRoles(){let t=this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return typeof t=="string"&&(t=[t]),t||[]}ParseToken(e){try{let n=e.split(".")[0].replace("-","+").replace("_","/"),i=JSON.parse(window.atob(n)),l=e.split(".")[1].replace("-","+").replace("_","/"),c=JSON.parse(window.atob(l));return c.header=i,c}catch{return!1}}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();var ir="firebase",sr="11.10.0";R.registerVersion(ir,sr,"app-compat");var ar=["ngOnDestroy"],St=(r,o,s,e={})=>new Proxy(r,{get:(t,n)=>s.runOutsideAngular(()=>{if(r[n])return e?.spy?.get&&e.spy.get(n,r[n]),r[n];if(ar.indexOf(n)>-1)return()=>{};let i=o.toPromise().then(a=>{let l=a?.[n];return typeof l=="function"?l.bind(a):l?.then?l.then(c=>s.run(()=>c)):s.run(()=>l)});return new Proxy(()=>{},{get:(a,l)=>i[l],apply:(a,l,c)=>i.then(u=>{let f=u?.(...c);return e?.spy?.apply&&e.spy.apply(n,c,f),f})})})});var ce=class{constructor(o){return o}},le=new P("angularfire2.app.options"),ue=new P("angularfire2.app.name");function Pe(r,o,s){let e=typeof s=="string"&&s||"[DEFAULT]",t=typeof s=="object"&&s||{};t.name=t.name||e;let i=R.apps.filter(a=>a&&a.name===t.name)[0]||o.runOutsideAngular(()=>R.initializeApp(r,t));try{if(JSON.stringify(r)!==JSON.stringify(i.options)){let a=!!module.hot;cr("error",`${i.name} Firebase App already initialized with different options${a?", you may need to reload as Firebase is not HMR aware.":"."}`)}}catch{}return new ce(i)}var cr=(r,...o)=>{H()&&typeof console<"u"&&console[r](...o)},lr={provide:ce,useFactory:Pe,deps:[le,V,[new qe,ue]]},ii=(()=>{class r{static initializeApp(s,e){return{ngModule:r,providers:[{provide:le,useValue:s},{provide:ue,useValue:e}]}}constructor(s){R.registerVersion("angularfire",G.full,"core"),R.registerVersion("angularfire",G.full,"app-compat"),R.registerVersion("angular",Ke.full,s.toString())}static \u0275fac=function(e){return new(e||r)(g(z))};static \u0275mod=q({type:r});static \u0275inj=K({providers:[lr]})}return r})();function vt(r,o,s,e,t){let[,n,i]=globalThis.\u0275AngularfireInstanceCache.find(a=>a[0]===r)||[];if(n)return ur(t,i)||(wt("error",`${o} was already initialized on the ${s} Firebase App with different settings.${dr?" You may need to reload as Firebase is not HMR aware.":""}`),wt("warn",{is:t,was:i})),n;{let a=e();return globalThis.\u0275AngularfireInstanceCache.push([r,a,t]),a}}function ur(r,o){try{return r.toString()===o.toString()}catch{return r===o}}var dr=typeof module<"u"&&!!module.hot,wt=(r,...o)=>{H()&&typeof console<"u"&&console[r](...o)};globalThis.\u0275AngularfireInstanceCache||=[];var hr=new P("angularfire2.auth.use-emulator"),pr=new P("angularfire2.auth.settings"),fr=new P("angularfire2.auth.tenant-id"),gr=new P("angularfire2.auth.langugage-code"),mr=new P("angularfire2.auth.use-device-language"),yr=new P("angularfire.auth.persistence"),wr=(r,o,s,e,t,n,i,a)=>vt(`${r.name}.auth`,"AngularFireAuth",r.name,()=>{let l=o.runOutsideAngular(()=>r.auth());if(s&&l.useEmulator(...s),e&&(l.tenantId=e),l.languageCode=t,n&&l.useDeviceLanguage(),i)for(let[c,u]of Object.entries(i))l.settings[c]=u;return a&&l.setPersistence(a),l},[s,e,t,n,i,a]),xe=(()=>{class r{injector=O(ge);authState;idToken;user;idTokenResult;credential;constructor(s,e,t,n,i,a,l,c,u,f,d,h){let p=new Ne,y=X(void 0).pipe(Z(i.outsideAngular),B(()=>n.runOutsideAngular(()=>import("./chunk-XRLXIT7I.js"))),j(()=>Pe(s,n,e)),j(C=>wr(C,n,a,c,u,f,l,d)),pe({bufferSize:1,refCount:!1}));if(Je(t))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=X(null);else{y.pipe(He()).subscribe();let C=y.pipe(B(I=>I.getRedirectResult().then(N=>N,()=>null)),rt(this.injector),pe({bufferSize:1,refCount:!1})),W=y.pipe(B(I=>new m(N=>({unsubscribe:n.runOutsideAngular(()=>I.onAuthStateChanged($=>N.next($),$=>N.error($),()=>N.complete()))})))),J=y.pipe(B(I=>new m(N=>({unsubscribe:n.runOutsideAngular(()=>I.onIdTokenChanged($=>N.next($),$=>N.error($),()=>N.complete()))}))));this.authState=C.pipe(fe(W),re(i.outsideAngular),Z(i.insideAngular)),this.user=C.pipe(fe(J),re(i.outsideAngular),Z(i.insideAngular)),this.idToken=this.user.pipe(B(I=>I?M(I.getIdToken()):X(null))),this.idTokenResult=this.user.pipe(B(I=>I?M(I.getIdTokenResult()):X(null))),this.credential=Le(C,p,this.authState.pipe(Ue(I=>!I))).pipe(j(I=>I?.user?I:null),re(i.outsideAngular),Z(i.insideAngular))}return St(this,y,n,{spy:{apply:(C,W,J)=>{(C.startsWith("signIn")||C.startsWith("createUser"))&&J.then(I=>p.next(I))}}})}static \u0275fac=function(e){return new(e||r)(g(le),g(ue,8),g(z),g(V),g(Ae),g(hr,8),g(pr,8),g(fr,8),g(gr,8),g(mr,8),g(yr,8),g(ae,8))};static \u0275prov=T({token:r,factory:r.\u0275fac,providedIn:"any"})}return r})(),ki=(()=>{class r{constructor(){R.registerVersion("angularfire",G.full,"auth-compat")}static \u0275fac=function(e){return new(e||r)};static \u0275mod=q({type:r});static \u0275inj=K({providers:[xe]})}return r})();var A=(function(r){return r.readonly="readonly",r.readwrite="readwrite",r})(A||{}),kt=new P(null),At=new P("Indexed DB"),vr=new P("Server Indexed DB");function kr(r,o){return r.objectStoreNames.contains(o)}function D(r,o,s){if(!r){s("You need to use the openDatabase function to create a database before you query it!");return}kr(r,o)||s(`objectStore does not exists: ${o}`)}function b(r,o){let s=r.transaction(o.storeName,o.dbMode);return s.onerror=o.error,s.onabort=o.abort,s}function E(r,o,s,e){return{storeName:o,dbMode:r,error:t=>{s(t)},abort:t=>{s(t)}}}var _e=[];function S(r,o,s,e){return new Promise((t,n)=>{r||n("IndexedDB not available");let i=r.open(o,s),a;i.onsuccess=()=>{a=i.result,_e.push(a),t(a)},i.onerror=()=>{n(`IndexedDB error: ${i.error}`)},typeof e=="function"&&(i.onupgradeneeded=l=>{e(l,a)})})}function Re(r,o,s,e,t){return k(this,null,function*(){return new Promise((n,i)=>{if(!r)return;let a=r.open(o,s);a.onupgradeneeded=l=>k(null,null,function*(){let c=l.target.result,u=e.map(d=>k(null,null,function*(){if(!c.objectStoreNames.contains(d.store)){let h=c.createObjectStore(d.store,d.storeConfig);for(let p of d.storeSchema)h.createIndex(p.name,p.keypath,p.options)}}));yield Promise.all(u);let f=t&&t();if(f){let d=Object.keys(f).map(h=>parseInt(h,10)).filter(h=>h>l.oldVersion).sort((h,p)=>h-p);for(let h of d)f[h](c,a.transaction)}c.close(),n()}),a.onsuccess=l=>{l.target.result.close(),n()},a.onerror=l=>{i(l)}})})}function Ar(r,o,s){if(!r||!o||!s)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new m(e=>{try{let t=o+1,n=indexedDB.open(r,t);n.onupgradeneeded=i=>{let a=i.target.result;a.deleteObjectStore(s),a.close(),console.log("onupgradeneeded"),e.next(),e.complete()},n.onerror=i=>e.error(i)}catch(t){e.error(t)}})}function br(r){return new Promise((o,s)=>{if(!r){s(new Error("No database to close"));return}try{r.close(),o()}catch(e){s(`Error closing database: ${e}`)}})}function v(){return function(r,o,s){let e=s.value;return s.value=function(...t){let n=e.apply(this,t);return n instanceof m?n.pipe($e(()=>k(this,null,function*(){let i=_e.map(a=>k(this,null,function*(){yield br(a)}));yield Promise.all(i),_e.length=0}))):n},s}}var Oe=(()=>{let o=class o{constructor(e,t){this.dbConfigs=e,this.indexedDB=t,this.defaultDatabaseName=null,Object.values(this.dbConfigs).forEach((n,i,a)=>this.instanciateConfig(n,a.length===1))}instanciateConfig(e,t){return k(this,null,function*(){if(!e.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if((e.isDefault??!1)&&this.defaultDatabaseName)throw new Error("NgxIndexedDB: Only one database can be set as default");((e.isDefault??!1)&&!this.defaultDatabaseName||t)&&(this.defaultDatabaseName=e.name,this.selectedDb=e.name),yield Re(this.indexedDB,e.name,e.version,e.objectStoresMeta,e.migrationFactory),S(this.indexedDB,e.name).then(n=>{n.version!==e.version&&(H()&&(console.warn(`
4
- Your DB Config doesn't match the most recent version of the DB with name ${e.name}, please update it
5
- DB current version: ${n.version};
6
- Your configuration: ${e.version};
7
- `),console.warn(`Using latest version ${n.version}`)),this.dbConfigs[e.name].version=n.version),n.close()})})}get dbConfig(){return this.dbConfigs[this.selectedDb]}getDatabaseVersion(){return new m(e=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{e.next(t.version),e.complete()}).catch(t=>e.error(`error during get version of database => ${t} `))})}selectDb(e){if(e=e??this.defaultDatabaseName,!e)throw new Error("No database name specified and no default database set.");if(!Object.keys(this.dbConfigs).includes(e))throw new Error(`NgxIndexedDB: Database ${e} is not initialized.`);this.selectedDb=e}createObjectStore(e,t){return k(this,null,function*(){let n=[e];yield Re(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,n,t)})}createDynamicObjectStore(e,t){return k(this,null,function*(){let n=[e];yield Re(this.indexedDB,this.dbConfig.name,this.dbConfig.version,n,t)})}add(e,t,n){return new m(i=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{let c=b(a,E(A.readwrite,e,d=>i.error(d))).objectStore(e),f=!!n?c.add(t,n):c.add(t);f.onsuccess=d=>k(this,null,function*(){let h=d.target.result,p=c.get(h);p.onsuccess=y=>{i.next(y.target.result),i.complete()},p.onerror=y=>{i.error(y)}}),f.onerror=d=>{i.error(d)}}).catch(a=>i.error(a))})}bulkAdd(e,t){let n=new Promise((i,a)=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(l=>{let u=b(l,E(A.readwrite,e,i,a)).objectStore(e),f=t.map(d=>new Promise(h=>{let p=d.key;delete d.key;let C=!!p?u.add(d,p):u.add(d);C.onsuccess=W=>{let J=W.target.result;h(J)}}));i(Promise.all(f))}).catch(l=>a(l))});return M(n)}bulkDelete(e,t){let n=t.map(i=>new Promise((a,l)=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{let u=b(c,E(A.readwrite,e,l,a));u.objectStore(e).delete(i),u.oncomplete=()=>{this.getAll(e).pipe(he(1)).subscribe(d=>{a(d)})}}).catch(c=>l(c))}));return M(Promise.all(n))}getByKey(e,t){return new m(n=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{let c=b(i,E(A.readonly,e,n.error)).objectStore(e).get(t);c.onsuccess=u=>{n.next(u.target.result),n.complete()},c.onerror=u=>{n.error(u)}}).catch(i=>n.error(i))})}bulkGet(e,t){let n=t.map(i=>this.getByKey(e,i));return new m(i=>{Fe(n).subscribe(a=>{i.next(a),i.complete()})})}getByID(e,t){return new m(n=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{D(i,e,u=>n.error(u));let c=b(i,E(A.readonly,e,n.error,n.next)).objectStore(e).get(t);c.onsuccess=u=>{n.next(u.target.result),n.complete()}}).catch(i=>n.error(i))})}getByIndex(e,t,n){return new m(i=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{D(a,e,d=>i.error(d));let f=b(a,E(A.readonly,e,i.error)).objectStore(e).index(t).get(n);f.onsuccess=d=>{i.next(d.target.result),i.complete()}}).catch(a=>i.error(a))})}getAll(e){return new m(t=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{D(n,e,c=>t.error(c));let l=b(n,E(A.readonly,e,t.error,t.next)).objectStore(e).getAll();l.onerror=c=>{t.error(c)},l.onsuccess=({target:{result:c}})=>{t.next(c),t.complete()}}).catch(n=>t.error(n))})}update(e,t){return new m(n=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{D(i,e,u=>n.error(u));let l=b(i,E(A.readwrite,e,u=>n.error(u))).objectStore(e),c=l.put(t);c.onsuccess=u=>k(this,null,function*(){let f=u.target.result,d=l.get(f);d.onsuccess=h=>{n.next(h.target.result),n.complete()}})}).catch(i=>n.error(i))})}bulkPut(e,t){let n;return new m(i=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{D(a,e,c=>i.error(c)),n=b(a,E(A.readwrite,e,c=>i.error(c)));let l=n.objectStore(e);t.forEach((c,u)=>{let f=l.put(c);u===t.length-1&&(f.onsuccess=d=>{n.commit(),i.next(d.target.result),i.complete()}),f.onerror=d=>{n.abort(),i.error(d)}})}).catch(a=>{n?.abort(),i.error(a)})})}delete(e,t){return new m(n=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{D(i,e,c=>n.error(c));let a=b(i,E(A.readwrite,e,c=>n.error(c)));a.objectStore(e).delete(t),a.onerror=c=>n.error(c),a.oncomplete=()=>{this.getAll(e).pipe(he(1)).subscribe({next:c=>{n.next(c)},error:c=>n.error(c),complete:()=>n.complete()})}}).catch(i=>n.error(i))})}deleteByKey(e,t){return new m(n=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{D(i,e,c=>n.error(c));let a=b(i,E(A.readwrite,e,c=>n.error(c)));a.objectStore(e).delete(t),a.onerror=c=>n.error(c),a.oncomplete=()=>{n.next(),n.complete()}}).catch(i=>n.error(i))})}deleteAllByIndex(e,t,n,i){return new m(a=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(l=>{D(l,e,h=>a.error(h));let d=b(l,E(A.readwrite,e,a.error)).objectStore(e).index(t).openCursor(n,i);d.onerror=h=>a.error(h),d.onsuccess=h=>{let p=h.target.result;p?(p.delete(),p.continue()):(a.next(),a.complete())}}).catch(l=>a.error(l))})}clear(e){return new m(t=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{D(n,e,l=>t.error(l));let i=b(n,E(A.readwrite,e,l=>t.error(l)));i.objectStore(e).clear(),i.onerror=l=>t.error(l),i.oncomplete=()=>{t.next(),t.complete()}}).catch(n=>t.error(n))})}deleteDatabase(){return new m(e=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>k(this,null,function*(){t.close();let n=this.indexedDB.deleteDatabase(this.dbConfig.name);n.onsuccess=()=>{e.next(),e.complete()},n.onerror=i=>e.error(i),n.onblocked=()=>{console.warn("Delete blocked: Ensure all tabs, instances, or connections are closed. Database name:",this.dbConfig.name),e.error(new Error("Unable to delete database because it's blocked"))}})).catch(t=>e.error(t))})}openCursor(e){let{storeName:t,query:n,direction:i,mode:a=A.readonly}=e;return new m(l=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{D(c,t,h=>l.error(h));let u=b(c,E(a,t,l.error)),d=u.objectStore(t).openCursor(n,i);u.oncomplete=()=>l.complete(),d.onerror=h=>l.error(h),d.onsuccess=h=>{let p=h.target.result;p&&l.next(p)}}).catch(c=>l.error(c))})}openCursorByIndex(e){let{storeName:t,indexName:n,query:i,direction:a,mode:l=A.readonly}=e;return new m(c=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(u=>{D(u,t,y=>c.error(y));let f=b(u,E(l,t,c.error)),p=f.objectStore(t).index(n).openCursor(i,a);f.oncomplete=()=>c.complete(),p.onerror=y=>c.error(y),p.onsuccess=y=>{let C=y.target.result;C&&c.next(C)}}).catch(u=>c.error(u))})}getAllByIndex(e,t,n,i){return new m(a=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(l=>{D(l,e,p=>a.error(p));let d=b(l,E(A.readonly,e,a.error)).objectStore(e).index(t).openCursor(n,i),h=[];d.onerror=p=>a.error(p),d.onsuccess=p=>{let y=p.target.result;y?(h.push(y.value),y.continue()):(a.next(h),a.complete())}}).catch(l=>a.error(l))})}getAllKeysByIndex(e,t,n,i){return new m(a=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(l=>{D(l,e,p=>a.error(p));let f=b(l,E(A.readonly,e,a.error)).objectStore(e).index(t),d=[],h=f.openKeyCursor(n,i);h.onerror=p=>a.error(p),h.onsuccess=p=>{let y=p.target.result;if(y){let{primaryKey:C,key:W}=y;d.push({primaryKey:C,key:W}),y.continue()}else a.next(d),a.complete()}}).catch(l=>a.error(l))})}count(e,t){return new m(n=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{D(i,e,u=>n.error(u));let c=b(i,E(A.readonly,e,n.error)).objectStore(e).count(t);c.onerror=u=>n.error(u),c.onsuccess=u=>{n.next(u.target.result),n.complete()}}).catch(i=>n.error(i))})}countByIndex(e,t,n){return new m(i=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{D(a,e,d=>i.error(d));let f=b(a,E(A.readonly,e,i.error)).objectStore(e).index(t).count(n);f.onerror=d=>i.error(d),f.onsuccess=d=>{i.next(d.target.result),i.complete()}}).catch(a=>i.error(a))})}deleteObjectStore(e){return Ar(this.dbConfig.name,++this.dbConfig.version,e)}getAllObjectStoreNames(){return new m(e=>{S(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{e.next(Array.from(t.objectStoreNames)),e.complete()}).catch(t=>e.error(t))})}};o.\u0275fac=function(t){return new(t||o)(g(kt),g(At))},o.\u0275prov=T({token:o,factory:o.\u0275fac});let r=o;return w([v()],r.prototype,"getDatabaseVersion",null),w([v()],r.prototype,"add",null),w([v()],r.prototype,"bulkAdd",null),w([v()],r.prototype,"bulkDelete",null),w([v()],r.prototype,"getByKey",null),w([v()],r.prototype,"bulkGet",null),w([v()],r.prototype,"getByID",null),w([v()],r.prototype,"getByIndex",null),w([v()],r.prototype,"getAll",null),w([v()],r.prototype,"update",null),w([v()],r.prototype,"bulkPut",null),w([v()],r.prototype,"delete",null),w([v()],r.prototype,"deleteByKey",null),w([v()],r.prototype,"deleteAllByIndex",null),w([v()],r.prototype,"clear",null),w([v()],r.prototype,"deleteDatabase",null),w([v()],r.prototype,"openCursor",null),w([v()],r.prototype,"openCursorByIndex",null),w([v()],r.prototype,"getAllByIndex",null),w([v()],r.prototype,"getAllKeysByIndex",null),w([v()],r.prototype,"count",null),w([v()],r.prototype,"countByIndex",null),w([v()],r.prototype,"getAllObjectStoreNames",null),r})(),je=class{cmp(){return 0}databases(){return Promise.resolve([])}deleteDatabase(){return{onupgradeneeded:null,onblocked:null,onerror:null,onsuccess:null,error:null}}open(){return{onupgradeneeded:null,onblocked:null,onerror:null,onsuccess:null,error:null}}};function bt(){ze(bt);let r=O(z),o=O(vr,{optional:!0})??new je;return Ge(r)?O(Ve).defaultView.indexedDB:o}var Er=(...r)=>{let o=r.reduce((s,e)=>(s[e.name]=e,s),{});return[Oe,{provide:kt,useValue:o},{provide:At,useFactory:bt}]},Ri=(()=>{let o=class o{static forRoot(...e){return{ngModule:o,providers:[...Er(...e)]}}};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=q({type:o}),o.\u0275inj=K({});let r=o;return r})();var Et=(()=>{let o=class o{constructor(e){this.db=e,this.DATABASE="Categories"}saveCategoriesByChannelType(e,t){let n=this.getKey(t);return this.db.add(this.DATABASE,e,n).pipe(j(i=>e))}getCategoriesByChannelType(e){let t=this.getKey(e);return this.db.getByKey(this.DATABASE,t)}getKey(e){let t="";switch(e){case me.Lazada:t="Lazada";break;case me.Tokopedia:t="Tokopedia";break}return t}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){let e=localStorage.getItem("Authorization");return this.hostName=JSON.parse(e)?.Host,this.hostName}};o.\u0275fac=function(t){return new(t||o)(g(Oe))},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();var It=(()=>{let o=class o{inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){let t={Enabled:!0};e&&(t=de(de({},t),e)),localStorage.setItem("Intercom",JSON.stringify(t))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!0}),e.hide_default_launcher=!0,this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!1}),e.hide_default_launcher=!1,this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return F.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();var Tt=(()=>{let o=class o{constructor(){this.httpService=O(oe),this.currentUser=ne(null),this.tokenValue=ne(null),this.channels=ne([])}refreshToken(){return this.httpService.get(ot.RefreshToken).pipe(Y(e=>{this.updateTokenInLocalStorage(e)}))}updateTokenInLocalStorage(e){this.saveUserToLocalStorage(e),this.saveChannelsToLocalStorage(e.Channels)}saveUserToLocalStorage(e){let t=JSON.stringify(e);localStorage.setItem(x.USER,t)}getUser(){if(this.currentUser())return this.currentUser();{let e=localStorage.getItem(x.USER);return this.currentUser.set(e?JSON.parse(e):null),this.currentUser()}}getTokenValue(){let e=this.getUser();if(!this.tokenValue()){let t=F.parseJwt(e?.Token.access_token);this.tokenValue.set(t)}return this.tokenValue()}saveChannelsToLocalStorage(e){let t=JSON.stringify(e);localStorage.setItem(x.CHANNELS,t)}getChannels(){if(this.channels().length==0){let e=localStorage.getItem(x.CHANNELS),t=e?JSON.parse(e):[];t=this.assignChannelsLogo(t),this.channels.set(t)}return this.channels()}assignChannelsLogo(e){return e.map(t=>(t.logo=F.getChannelLogoByTypeId(t.TypeID),t.Img=F.getChannelLogoByTypeId(t.TypeID),t))}clearStorage(){localStorage.removeItem(x.USER),localStorage.removeItem(x.CHANNELS),this.currentUser.set(null),this.tokenValue.set(null),this.channels.set([])}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();var Yi=(()=>{let o=class o{constructor(e,t,n,i,a,l,c,u){this.httpService=e,this.tokenDecodeService=t,this.afAuth=n,this.ngxPermission=i,this.localDataService=a,this.router=l,this.intercomService=c,this.tokenService=u}login(e){return this.httpService.post("/api/token/Login",e).pipe(Y(t=>{this.setLocalStorage(t,e.Host,e.Username),this.loadPermissions()}))}getNews(){return this.httpService.get(it.news).pipe(j(e=>e?.items?.map(t=>t?.properties)))}loginWithGoogle(e,t){e.preventDefault();let n=new ve;return n.setCustomParameters({prompt:"select_account"}),M(this.afAuth.signInWithPopup(n)).pipe(j(i=>i.credential),j(i=>i.idToken),B(i=>this.httpService.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:i,Host:t}))),Y(i=>{this.setLocalStorage(i,t,null),this.loadPermissions()}))}setLocalStorage(e,t,n){this.tokenService.updateTokenInLocalStorage(e),localStorage.setItem(x.AUTHORIZATION,JSON.stringify({Host:t,username:n})),this.intercomService.updateLocalStorage(e.IntercomWidget),this.intercomService.inititalizeIntercom()}loadPermissions(){this.ngxPermission.loadPermissions([]);let e=localStorage.getItem(x.USER);if(F.IsNotEmpty(e)){let t=this.tokenDecodeService.GetRoles();this.ngxPermission.loadPermissions(t)}}getChannels(){return this.tokenService.getChannels()}logout(){this.clearLocalStorage(),this.ngxPermission.flushPermissions()}isActiveToken(){let e=this.tokenService.getUser(),t=new Date;if(e!=null){let n=new Date(e.Token.expiredAt);return t<n?!0:(this.clearLocalStorage(),!1)}else return!1}getDomain(){if(!this.domain){let e=localStorage.getItem(x.AUTHORIZATION);this.domain="https://"+JSON.parse(e).Host}return this.domain}clearLocalStorage(){this.domain=null,this.tokenService.clearStorage(),this.intercomService.shutdown(),this.localDataService.clearDatabase(),this.router.navigate([""])}};o.\u0275fac=function(t){return new(t||o)(g(oe),g(yt),g(xe),g(nt),g(Et),g(Ze),g(It),g(Tt))},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();export{it as a,yt as b,ii as c,ki as d,Ri as e,Et as f,It as g,Tt as h,Yi as i};
@@ -1 +0,0 @@
1
- import{a as c,b as d}from"./chunk-A7PUMY67.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as l,I as m}from"./chunk-LNJUGHOX.js";import{Gb as i,gc as r,hc as s,ic as p,jc as n,nb as a}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var v=(()=>{let e=class e{constructor(){this.tabs=[{Title:"Roles",Url:"/menu/profile/roles"}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=i({type:e,selectors:[["app-my-profile"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(o,f){o&1&&(s(0,"nav",0)(1,"div",1)(2,"div"),n(3,"nav-tab",2),p()()(),n(4,"router-outlet")),o&2&&(a(3),r("Tabs",f.tabs)("usePermissions",!0))},dependencies:[d,c,m,l],encapsulation:2});let t=e;return t})(),M=[{path:"",component:v,children:[{path:"",redirectTo:"roles",pathMatch:"full"},{path:"roles",loadComponent:()=>import("./chunk-JW7NES7L.js").then(t=>t.RolesInfoComponent),data:{title:"Roles Info"}}]}];export{v as MyProfileComponent,M as routes};