marketplacepos 5.50.0 → 5.50.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/Marketplace/{chunk-NMFPLAWN.js → chunk-2DZHA445.js} +1 -1
  2. package/Marketplace/{chunk-5C24BA5F.js → chunk-2EGTHH3W.js} +1 -1
  3. package/Marketplace/{chunk-Z6LN3X5Q.js → chunk-2KQKQSUI.js} +1 -1
  4. package/Marketplace/chunk-2UKRRVAM.js +1 -0
  5. package/Marketplace/{chunk-2AXBEVQ7.js → chunk-2WQLSGW3.js} +1 -1
  6. package/Marketplace/{chunk-VH7JZJ2B.js → chunk-2Y3L7QOV.js} +1 -1
  7. package/Marketplace/{chunk-RZ5N5JLA.js → chunk-2ZKHC4YC.js} +1 -1
  8. package/Marketplace/{chunk-SIPZP62B.js → chunk-32IYUV7P.js} +1 -1
  9. package/Marketplace/{chunk-TKZ74HJD.js → chunk-36645CIP.js} +1 -1
  10. package/Marketplace/{chunk-FOKLBUX6.js → chunk-3NCMRK7E.js} +1 -1
  11. package/Marketplace/{chunk-QMHG3QTI.js → chunk-3T5VLB63.js} +1 -1
  12. package/Marketplace/{chunk-IKC5WEP5.js → chunk-3TK5BYAY.js} +1 -1
  13. package/Marketplace/{chunk-KR6UNAIL.js → chunk-3WGAMHZW.js} +1 -1
  14. package/Marketplace/chunk-42GDFAAQ.js +1 -0
  15. package/Marketplace/{chunk-G4T4VM5E.js → chunk-4GV67OQR.js} +1 -1
  16. package/Marketplace/{chunk-BL6MPO6D.js → chunk-4NT5VNJW.js} +2 -2
  17. package/Marketplace/{chunk-YQZHIZHO.js → chunk-56NTLHVB.js} +1 -1
  18. package/Marketplace/{chunk-4PG2EBJQ.js → chunk-5NJAMQES.js} +1 -1
  19. package/Marketplace/{chunk-YAWT3CLI.js → chunk-6F37VT6M.js} +1 -1
  20. package/Marketplace/{chunk-BMOMTOEW.js → chunk-6H7M43WO.js} +1 -1
  21. package/Marketplace/{chunk-S4JKTHY2.js → chunk-6LXQMIYX.js} +1 -1
  22. package/Marketplace/{chunk-IM7YH54S.js → chunk-6O446YFR.js} +1 -1
  23. package/Marketplace/{chunk-ZDBFIPDM.js → chunk-6Q4BDCI5.js} +1 -1
  24. package/Marketplace/{chunk-WAXAIL2I.js → chunk-6UM4NHOR.js} +1 -1
  25. package/Marketplace/{chunk-J6HA4ZHH.js → chunk-75IM3UUA.js} +1 -1
  26. package/Marketplace/{chunk-VP3XO25X.js → chunk-76AVMRJU.js} +1 -1
  27. package/Marketplace/{chunk-BYX6HZW7.js → chunk-7AJN7ECH.js} +1 -1
  28. package/Marketplace/{chunk-QMQCIH3X.js → chunk-7K6U3ABQ.js} +1 -1
  29. package/Marketplace/{chunk-TDMNVEUU.js → chunk-7T5DBPDP.js} +1 -1
  30. package/Marketplace/{chunk-JSQ7SYYK.js → chunk-7XA3VQEB.js} +1 -1
  31. package/Marketplace/{chunk-ZMQQVXQU.js → chunk-A4UF2QH6.js} +1 -1
  32. package/Marketplace/{chunk-Y3O22N4P.js → chunk-A6SP65CH.js} +1 -1
  33. package/Marketplace/{chunk-YLQU53ID.js → chunk-B5BQZD66.js} +1 -1
  34. package/Marketplace/{chunk-RN5CI3LE.js → chunk-BCK2GY66.js} +1 -1
  35. package/Marketplace/{chunk-654AVLKM.js → chunk-BGJEGBP5.js} +1 -1
  36. package/Marketplace/{chunk-DPB2343S.js → chunk-BTCNW6N3.js} +1 -1
  37. package/Marketplace/{chunk-ALLZQ6Y3.js → chunk-BTJN72MC.js} +1 -1
  38. package/Marketplace/{chunk-C2LAQOUW.js → chunk-BZWZ64N5.js} +1 -1
  39. package/Marketplace/{chunk-BC6LHZWP.js → chunk-C37O5TBF.js} +1 -1
  40. package/Marketplace/{chunk-DDFP4CNP.js → chunk-C4MTEDSW.js} +1 -1
  41. package/Marketplace/{chunk-6NS3D6KQ.js → chunk-C67KF7MG.js} +1 -1
  42. package/Marketplace/chunk-CGSMHTKB.js +2 -0
  43. package/Marketplace/{chunk-FJU2CZTJ.js → chunk-CHGAMAQX.js} +1 -1
  44. package/Marketplace/{chunk-B5ZK5TGW.js → chunk-CIWFLDCI.js} +1 -1
  45. package/Marketplace/{chunk-BAW6PICI.js → chunk-CKFHJ3IS.js} +1 -1
  46. package/Marketplace/{chunk-V6QH3IVL.js → chunk-CUSAKJLC.js} +1 -1
  47. package/Marketplace/{chunk-N3E43QWK.js → chunk-CVHFVFZQ.js} +1 -1
  48. package/Marketplace/{chunk-KDIXLH2S.js → chunk-CZICXKFA.js} +1 -1
  49. package/Marketplace/{chunk-MM7SAZOU.js → chunk-D6JH2KV4.js} +1 -1
  50. package/Marketplace/{chunk-EH3PIGLJ.js → chunk-DE3FRI5N.js} +1 -1
  51. package/Marketplace/{chunk-4KGXKQPG.js → chunk-DMENVSHH.js} +1 -1
  52. package/Marketplace/{chunk-RTLTTFZ7.js → chunk-DQXBBV26.js} +1 -1
  53. package/Marketplace/chunk-DYTXOFIM.js +1 -0
  54. package/Marketplace/{chunk-52YCKO3Z.js → chunk-E7LOFZQV.js} +1 -1
  55. package/Marketplace/{chunk-4ORO4H6Z.js → chunk-EDGT4W2Q.js} +1 -1
  56. package/Marketplace/{chunk-SZ33XJ4F.js → chunk-EKYPWTJN.js} +1 -1
  57. package/Marketplace/{chunk-4Q4I4JG4.js → chunk-ELAPYSP6.js} +1 -1
  58. package/Marketplace/{chunk-UB62TZOI.js → chunk-ET33HPF3.js} +1 -1
  59. package/Marketplace/{chunk-55E6VHIU.js → chunk-EU324R5S.js} +1 -1
  60. package/Marketplace/{chunk-VWMEDVEG.js → chunk-F24YPKYG.js} +1 -1
  61. package/Marketplace/{chunk-A53NYS6S.js → chunk-FDGH6XKK.js} +1 -1
  62. package/Marketplace/{chunk-QQF5ZMGS.js → chunk-FH2KAM6J.js} +1 -1
  63. package/Marketplace/{chunk-MAQQQB3T.js → chunk-FMZLGD5H.js} +1 -1
  64. package/Marketplace/{chunk-Z2XRGVGT.js → chunk-FSOZOROI.js} +1 -1
  65. package/Marketplace/{chunk-CC7KUBNZ.js → chunk-FUBZ75C7.js} +1 -1
  66. package/Marketplace/{chunk-P6RAMHDB.js → chunk-G3KVHCET.js} +1 -1
  67. package/Marketplace/{chunk-G6O6VFLS.js → chunk-GD6ZN56B.js} +1 -1
  68. package/Marketplace/{chunk-UMLV2ZUF.js → chunk-GLBJ4Y4T.js} +1 -1
  69. package/Marketplace/{chunk-YX65R6YJ.js → chunk-GLQBRY2Y.js} +1 -1
  70. package/Marketplace/{chunk-2NRHX6CZ.js → chunk-GNXSEYJF.js} +1 -1
  71. package/Marketplace/{chunk-FLNIURLD.js → chunk-GQT5IVF5.js} +1 -1
  72. package/Marketplace/{chunk-NY2YBW66.js → chunk-GRVGKVD6.js} +1 -1
  73. package/Marketplace/{chunk-AQVMOA6Z.js → chunk-HBWX22FY.js} +1 -1
  74. package/Marketplace/{chunk-JYSOUJ42.js → chunk-HWMXSD34.js} +1 -1
  75. package/Marketplace/{chunk-OCXIDX74.js → chunk-I6YNUCDO.js} +1 -1
  76. package/Marketplace/{chunk-5WT456T7.js → chunk-IA7NJXJD.js} +1 -1
  77. package/Marketplace/{chunk-7QP3VZ6H.js → chunk-INSRQ7YT.js} +1 -1
  78. package/Marketplace/{chunk-TOK5EWN4.js → chunk-IQGRGC3E.js} +1 -1
  79. package/Marketplace/{chunk-TYQYNICX.js → chunk-IQX2CRL5.js} +1 -1
  80. package/Marketplace/{chunk-QMIL5QUX.js → chunk-ITY2KKS5.js} +1 -1
  81. package/Marketplace/{chunk-PBAFAOKJ.js → chunk-IXURR6VG.js} +1 -1
  82. package/Marketplace/{chunk-O4D64GHO.js → chunk-IZZY74PN.js} +1 -1
  83. package/Marketplace/{chunk-QJCYEP2A.js → chunk-J3XO6ZVT.js} +1 -1
  84. package/Marketplace/{chunk-KSRL7Y2J.js → chunk-JHSG3KRS.js} +1 -1
  85. package/Marketplace/{chunk-LUJ3SHSP.js → chunk-JKRELT7N.js} +1 -1
  86. package/Marketplace/{chunk-RBZU7OVM.js → chunk-JMRRXRKO.js} +1 -1
  87. package/Marketplace/{chunk-OSGPJXJZ.js → chunk-JPWGFXZT.js} +1 -1
  88. package/Marketplace/{chunk-SPLGZRGH.js → chunk-JRCXHF2X.js} +1 -1
  89. package/Marketplace/{chunk-RXC5D64C.js → chunk-JTKEMQZT.js} +1 -1
  90. package/Marketplace/{chunk-NVPT5BF2.js → chunk-JU4ZP3HI.js} +1 -1
  91. package/Marketplace/{chunk-PSJVP2XO.js → chunk-JUWHPFPW.js} +1 -1
  92. package/Marketplace/{chunk-6C4UBIZK.js → chunk-K4Q33QIR.js} +1 -1
  93. package/Marketplace/{chunk-7E53IHXI.js → chunk-KA2HPWPG.js} +1 -1
  94. package/Marketplace/{chunk-SABMHH6B.js → chunk-KOQLZV3N.js} +1 -1
  95. package/Marketplace/{chunk-PN3KM4M4.js → chunk-KOUB5HRK.js} +1 -1
  96. package/Marketplace/{chunk-X35EOX3B.js → chunk-KUPGF23P.js} +1 -1
  97. package/Marketplace/{chunk-MTVUPPAN.js → chunk-L4EPB2CQ.js} +1 -1
  98. package/Marketplace/{chunk-SMZOSLIK.js → chunk-L6CRWJ2O.js} +1 -1
  99. package/Marketplace/{chunk-J3QDFXZ7.js → chunk-LQUMSCFQ.js} +1 -1
  100. package/Marketplace/{chunk-G3B6ETBU.js → chunk-LZHM5AMX.js} +1 -1
  101. package/Marketplace/{chunk-4S4BOPUV.js → chunk-M27MYADT.js} +1 -1
  102. package/Marketplace/{chunk-GVJLKDIO.js → chunk-MAT6VW43.js} +1 -1
  103. package/Marketplace/{chunk-P3XVM6DH.js → chunk-MHIYVGFS.js} +1 -1
  104. package/Marketplace/{chunk-M3DUXHYE.js → chunk-MORMHJFP.js} +1 -1
  105. package/Marketplace/{chunk-JM3NLPH4.js → chunk-MS5NHG4Z.js} +1 -1
  106. package/Marketplace/{chunk-GG3X4R7G.js → chunk-MSSRROS6.js} +1 -1
  107. package/Marketplace/{chunk-5UFP37GQ.js → chunk-NB2H6KA7.js} +1 -1
  108. package/Marketplace/{chunk-YD6BNJ2B.js → chunk-NJNRUDU6.js} +1 -1
  109. package/Marketplace/{chunk-7R2D2JZ6.js → chunk-O3BS4AC6.js} +1 -1
  110. package/Marketplace/{chunk-O4U34AC7.js → chunk-OH5T7D7O.js} +1 -1
  111. package/Marketplace/{chunk-W33M7S2S.js → chunk-OHAT7WXU.js} +1 -1
  112. package/Marketplace/{chunk-EHND5PFE.js → chunk-OUYOKQ57.js} +1 -1
  113. package/Marketplace/chunk-OWLZQ5WE.js +1 -0
  114. package/Marketplace/{chunk-IDGK6BMG.js → chunk-PCOAEOIL.js} +1 -1
  115. package/Marketplace/{chunk-JV4F6ZYF.js → chunk-PKYMYIGB.js} +1 -1
  116. package/Marketplace/{chunk-35N7HHLQ.js → chunk-PQM7IB5J.js} +1 -1
  117. package/Marketplace/{chunk-47JP6ZSE.js → chunk-PRM7MTFP.js} +1 -1
  118. package/Marketplace/{chunk-YABJCAAL.js → chunk-PUSOOHGT.js} +1 -1
  119. package/Marketplace/{chunk-XLQGQESJ.js → chunk-PV4OJSZI.js} +1 -1
  120. package/Marketplace/{chunk-FFJXYPVA.js → chunk-Q44OVAQU.js} +1 -1
  121. package/Marketplace/{chunk-LAMGWNDE.js → chunk-QB7PXKAO.js} +1 -1
  122. package/Marketplace/{chunk-WIRBYT7F.js → chunk-QETZ5VDX.js} +1 -1
  123. package/Marketplace/{chunk-BYL4N2KB.js → chunk-QJASIA27.js} +1 -1
  124. package/Marketplace/{chunk-NQVNAQCL.js → chunk-QSW7O4GN.js} +1 -1
  125. package/Marketplace/{chunk-2ST3DMR6.js → chunk-R2XKB6UH.js} +1 -1
  126. package/Marketplace/{chunk-PWOKOWVV.js → chunk-RIIIECQH.js} +1 -1
  127. package/Marketplace/{chunk-ZVNZGCYO.js → chunk-RNJHJCHP.js} +1 -1
  128. package/Marketplace/{chunk-24KZDZKS.js → chunk-RO7WOCSA.js} +1 -1
  129. package/Marketplace/{chunk-FEQXCPQI.js → chunk-RPHZK33A.js} +1 -1
  130. package/Marketplace/{chunk-OGF4VFSK.js → chunk-RZXE2MFY.js} +1 -1
  131. package/Marketplace/{chunk-WVA5LYVE.js → chunk-S22I47XG.js} +1 -1
  132. package/Marketplace/{chunk-2K5AP6IZ.js → chunk-S3H2JVI7.js} +1 -1
  133. package/Marketplace/{chunk-BUMWMFHU.js → chunk-SNRWOTPO.js} +1 -1
  134. package/Marketplace/{chunk-DI2VKA4Z.js → chunk-SS4PLPBF.js} +1 -1
  135. package/Marketplace/{chunk-NIJCYMZM.js → chunk-STOW2RQN.js} +1 -1
  136. package/Marketplace/{chunk-HORS2MKK.js → chunk-T5NCGRUA.js} +1 -1
  137. package/Marketplace/{chunk-XPA7U45N.js → chunk-TG7XOXCH.js} +1 -1
  138. package/Marketplace/{chunk-5ZS5MEG7.js → chunk-TH27YE6R.js} +1 -1
  139. package/Marketplace/{chunk-HFGQAVIU.js → chunk-TLCH5ENB.js} +1 -1
  140. package/Marketplace/{chunk-3HME327V.js → chunk-TQROQOXU.js} +1 -1
  141. package/Marketplace/{chunk-QJ55WDGL.js → chunk-TUJBAZ5Q.js} +1 -1
  142. package/Marketplace/{chunk-TZTW72NT.js → chunk-TUY6YGYA.js} +1 -1
  143. package/Marketplace/{chunk-AHMFSCTX.js → chunk-TVEI5B2O.js} +1 -1
  144. package/Marketplace/{chunk-NRSDIDOP.js → chunk-TVFILHVN.js} +1 -1
  145. package/Marketplace/{chunk-R3WIWDSP.js → chunk-TYSM3R5E.js} +1 -1
  146. package/Marketplace/{chunk-47Q5JJIA.js → chunk-U7FIZHGC.js} +1 -1
  147. package/Marketplace/{chunk-NQLMPUSB.js → chunk-UB3ZV5NW.js} +1 -1
  148. package/Marketplace/{chunk-A2RTZANN.js → chunk-UDNUDL5Z.js} +1 -1
  149. package/Marketplace/{chunk-YNL43MLU.js → chunk-UEXWQT5J.js} +1 -1
  150. package/Marketplace/{chunk-UE5E7JXK.js → chunk-UMIGDHOS.js} +1 -1
  151. package/Marketplace/{chunk-4XENFCCZ.js → chunk-UQ7PDZO3.js} +1 -1
  152. package/Marketplace/{chunk-5QDH4ZNS.js → chunk-VBQKMNR3.js} +1 -1
  153. package/Marketplace/{chunk-WQHFRJZZ.js → chunk-VFZ76Z6T.js} +1 -1
  154. package/Marketplace/{chunk-6F62N7RZ.js → chunk-VG66LDXQ.js} +1 -1
  155. package/Marketplace/{chunk-MT3CWRVG.js → chunk-VVNLTDLG.js} +1 -1
  156. package/Marketplace/{chunk-ZGIYCORM.js → chunk-VYI7JYH5.js} +1 -1
  157. package/Marketplace/{chunk-X52ZT4MU.js → chunk-WAZWPRUG.js} +1 -1
  158. package/Marketplace/{chunk-7IOQ6VVF.js → chunk-WCX3T6LK.js} +1 -1
  159. package/Marketplace/chunk-WD3ADLM3.js +1 -0
  160. package/Marketplace/{chunk-UE2QO2Y4.js → chunk-WG34QKGX.js} +1 -1
  161. package/Marketplace/chunk-WIRXMAIF.js +1 -0
  162. package/Marketplace/{chunk-IVKFEOCB.js → chunk-WTHYLNPX.js} +1 -1
  163. package/Marketplace/{chunk-CZWUOW55.js → chunk-WXXGLR46.js} +1 -1
  164. package/Marketplace/{chunk-YYV4FSYQ.js → chunk-X2CTSYKS.js} +1 -1
  165. package/Marketplace/{chunk-JZ3E5MLG.js → chunk-XCJ5XRFI.js} +1 -1
  166. package/Marketplace/{chunk-VVTBM3Z5.js → chunk-XF4A775R.js} +1 -1
  167. package/Marketplace/{chunk-IF7EJSQG.js → chunk-XHWASSX2.js} +1 -1
  168. package/Marketplace/{chunk-7X4B2T6C.js → chunk-XTNXL2IY.js} +1 -1
  169. package/Marketplace/{chunk-7HRL6MHY.js → chunk-XW5PNJJ3.js} +1 -1
  170. package/Marketplace/{chunk-PWCN6GJX.js → chunk-YBRWFONB.js} +1 -1
  171. package/Marketplace/{chunk-34ZZ4GCS.js → chunk-YLQBIIZH.js} +1 -1
  172. package/Marketplace/{chunk-BKZIKCX7.js → chunk-YQKEWN54.js} +1 -1
  173. package/Marketplace/{chunk-PUCIZX6E.js → chunk-YYKWI27U.js} +1 -1
  174. package/Marketplace/{chunk-LKJCOEGO.js → chunk-YZQDWPFY.js} +1 -1
  175. package/Marketplace/chunk-Z3PLQ27X.js +1 -0
  176. package/Marketplace/{chunk-OIWQSDTS.js → chunk-Z3YSNML6.js} +1 -1
  177. package/Marketplace/{chunk-LQPY6AYJ.js → chunk-Z4RYN6X5.js} +1 -1
  178. package/Marketplace/{chunk-PGX5ZJ6P.js → chunk-ZD5PSX3I.js} +1 -1
  179. package/Marketplace/{chunk-EBXGQWOL.js → chunk-ZLNNQRTE.js} +1 -1
  180. package/Marketplace/{chunk-5WQ3LCWP.js → chunk-ZZYFVEJO.js} +1 -1
  181. package/Marketplace/index.html +2 -2
  182. package/Marketplace/{main-IQOLSEWV.js → main-G6GGJLGW.js} +1 -1
  183. package/package.json +1 -1
  184. package/Marketplace/chunk-3NAMEVOB.js +0 -1
  185. package/Marketplace/chunk-AUEWKPWQ.js +0 -1
  186. package/Marketplace/chunk-FTIUJUXI.js +0 -1
  187. package/Marketplace/chunk-IBE5KBZU.js +0 -1
  188. package/Marketplace/chunk-JNRCB7N3.js +0 -2
  189. package/Marketplace/chunk-SS6PBSX7.js +0 -1
  190. package/Marketplace/chunk-ZQHOCT7I.js +0 -1
  191. package/Marketplace/chunk-ZWUYPYHD.js +0 -1
@@ -1 +1 @@
1
- import{a as ve}from"./chunk-QQF5ZMGS.js";import{a as Se,b as we}from"./chunk-6NS3D6KQ.js";import{a as Te,b as ye}from"./chunk-LUJ3SHSP.js";import{a as fe}from"./chunk-DLHIDOS3.js";import{a as pe,b as ge,c as ue,g as he,i as Ce,j as xe}from"./chunk-5WT456T7.js";import{a as _e}from"./chunk-YNL43MLU.js";import{b as be}from"./chunk-4S4BOPUV.js";import{a as le}from"./chunk-A2RTZANN.js";import{c as me}from"./chunk-O4D64GHO.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as se}from"./chunk-QMQCIH3X.js";import{a as ae,b as re,c as ce}from"./chunk-5UFP37GQ.js";import{c as Z}from"./chunk-UPRDDI4K.js";import{A as L,b as de,h as $,m as B}from"./chunk-WAXAIL2I.js";import{A as oe,q as te,v as ne,z as ie}from"./chunk-JNRCB7N3.js";import{G,Hb as N,Ia as R,Ic as z,Nb as T,Nc as _,Oc as F,Pc as P,Rc as E,Sc as k,Tc as O,Xc as Y,ac as u,ad as M,bd as J,ca as K,cc as h,dc as I,ec as X,f as q,fc as v,gc as S,hc as d,ic as r,id as U,jc as s,jd as H,kc as w,kd as Q,ld as ee,mb as y,ob as c,qc as j,ra as b,rc as C,tb as A,ud as V,wc as x,ya as p,yc as a,za as g}from"./chunk-OHGMB7HJ.js";function Fe(t,l){if(t&1){let e=C();r(0,"span")(1,"mat-checkbox",4),x("change",function(n){p(e);let o=a();return g(o.onSelectAll(n==null?null:n.checked))}),r(2,"h5",5),_(3,"Select All"),s()()()}}function Pe(t,l){if(t&1){let e=C();r(0,"li")(1,"mat-checkbox",6),O("ngModelChange",function(n){let o=p(e).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),r(2,"div",7),w(3,"img",8),r(4,"h5",9),_(5),s()()()()}if(t&2){let e=l.$implicit;c(),E("ngModel",e.selected),c(2),d("src",e.Img,y),c(2),F(e.Name)}}var dt=(()=>{let l=class l{constructor(){this.data=b(ge),this.dialogRef=b(pe),this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){let i=this.data.title?this.data.title:"Updating Inventory";this.modalConfig=new Ce,this.modalConfig.title=i}onSelectAll(i){this.channels=this.channels.map(n=>(n.selected=i,n))}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}get getSelectedChannel(){return this.channels.filter(i=>i.selected)}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-modal-update-channels"]],decls:7,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet",2,"margin-bottom","0px !important","overflow","hidden"],["color","primary",1,"me-6",3,"change"],[1,"fw-light"],["color","primary",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(n,o){n&1&&(r(0,"modal-material",0),x("onOk",function(){return o.onOk()})("onClose",function(){return o.onClose()})("onCancel",function(){return o.onClose()}),r(1,"div",1)(2,"div",2),u(3,Fe,4,0,"span"),r(4,"ul",3),v(5,Pe,6,3,"li",null,I),s()()()()),n&2&&(d("dynamicValidated",(o.getSelectedChannel==null?null:o.getSelectedChannel.length)>0)("config",o.modalConfig),c(3),h((o.channels==null?null:o.channels.length)>1?3:-1),c(2),S(o.channels))},dependencies:[xe,ve,L,$,B],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=l;return t})();var W=t=>[t],Ee=t=>({"text-decoration-line-through":t}),ke=t=>({"text-danger":t}),Oe=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function Ve(t,l){if(t&1){let e=C();r(0,"mat-slide-toggle",10),x("toggleChange",function(){p(e);let n=a();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),r(1,"small",11),_(2),s()()}if(t&2){let e=a();c(2),P(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function De(t,l){if(t&1){let e=C();r(0,"th")(1,"input",13),O("ngModelChange",function(n){p(e);let o=a(2);return k(o.checkboxState,n)||(o.checkboxState=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(2);return g(n.onCheckboxStateChange())}),s()()}if(t&2){let e=a(2);c(),E("ngModel",e.checkboxState)}}function Ne(t,l){if(t&1&&(T(0,De,2,1,"ng-template",12),r(1,"th",8),_(2,"POS"),s()),t&2){let e=a();d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function Ue(t,l){if(t&1&&(r(0,"th",9)(1,"div",14)(2,"div",15),w(3,"img",16),r(4,"div",17),_(5),U(6,"stringLimit"),s()()()()),t&2){let e=l.$implicit;c(2),d("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),c(),d("src",e==null?null:e.Img,y),c(2),P(" ",Q(6,3,e.Name,20)," ")}}function $e(t,l){t&1&&j(0)}function Be(t,l){if(t&1&&T(0,$e,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Le(t,l){if(t&1&&T(0,Be,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.roleInventoryUpdate))}}function We(t,l){t&1&&j(0)}function Re(t,l){if(t&1&&T(0,We,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Ae(t,l){if(t&1&&T(0,Re,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function je(t,l){if(t&1){let e=C();r(0,"div")(1,"input",30),O("ngModelChange",function(n){p(e);let o=a(4).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(4).$implicit,o=a();return g(o.onCheckboxStateProduct(n.ID))}),s()()}if(t&2){let e=a(4).$implicit;c(),E("ngModel",e.selected),d("disabled",!(e!=null&&e.Category))}}function ze(t,l){if(t&1&&u(0,je,2,2,"div"),t&2){let e=a(3).$implicit;h((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function He(t,l){if(t&1){let e=C();r(0,"img",31),x("click",function(n){p(e);let o=a(3).$implicit,m=a();return g(m.onZoomImage(n,o==null?null:o.ImageUrl))}),s()}if(t&2){let e=a(3).$implicit;d("src",Y(e==null?null:e.ThumbnailUrl),y)}}function Ze(t,l){t&1&&w(0,"img",26)}function qe(t,l){if(t&1&&(r(0,"td",23)(1,"div",24),u(2,Le,1,3,null,12)(3,Ae,1,3,null,12),T(4,ze,1,1,"ng-template",null,0,ee),r(6,"div"),u(7,He,1,2,"img",25)(8,Ze,1,0,"img",26),s()()(),r(9,"td",27)(10,"div"),_(11),s(),r(12,"small",28),_(13),s()()),t&2){let e=a(2).$implicit,i=a();d("rowSpan",e==null?null:e.Variants.length),c(2),h(i.table()=="inventory"?2:3),c(5),h(e!=null&&e.ThumbnailUrl?7:8),c(2),d("rowSpan",e==null?null:e.Variants.length),c(2),F(e==null?null:e.Name),c(),d("ngClass",M(7,ke,!(e!=null&&e.Category))),c(),P("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Ge(t,l){if(t&1&&(r(0,"a",22),w(1,"i",32),s()),t&2){let e=a().$implicit,i=a(2);d("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),y)}}function Ke(t,l){if(t&1){let e=C();r(0,"input",35),O("ngModelChange",function(n){p(e);let o=a(3).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),s()}if(t&2){let e=a(3).$implicit,i=a().$implicit;E("ngModel",e.selected),d("disabled",!(i!=null&&i.Category))}}function Xe(t,l){if(t&1&&(r(0,"td",33),u(1,Ke,1,2,"input",34),s()),t&2){let e=a(2).$implicit,i=a(2);c(),h(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Ye(t,l){if(t&1&&(T(0,Xe,2,1,"ng-template",12),r(1,"td",19),_(2),U(3,"number"),s()),t&2){let e=a().$implicit,i=a(2);d("ngxPermissionsOnly",M(4,W,i.rolePriceEdit)),c(2),F(H(3,2,i.printPOS(e)))}}function Je(t,l){if(t&1){let e=C();r(0,"td",38),x("click",function(){p(e);let n=a().$implicit,o=a().$implicit,m=a().$implicit,f=a();return g(f.onUpdateData(m.Name,o,n.ID,m.ChannelItemID))}),r(1,"div",39)(2,"div",40),_(3),U(4,"number"),s(),r(5,"a",41),x("click",function(n){return p(e),g(n==null?null:n.stopPropagation())}),w(6,"i",32),s()()()}if(t&2){let e=l,i=a(2).$implicit,n=a(2);d("ngClass",J(5,Oe,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),c(3),P(" ",H(4,3,n.printItem(e))," "),c(2),d("href",e.Url,y)}}function Qe(t,l){t&1&&(r(0,"td",37)(1,"div",39)(2,"span"),_(3,"X"),s()()())}function et(t,l){if(t&1&&u(0,Je,7,8,"td",36)(1,Qe,4,0,"td",37),t&2){let e,i=l.$implicit,n=a().$implicit,o=a(2);h((e=o.getItemFromChannel(n,i))?0:1,e)}}function tt(t,l){if(t&1&&(r(0,"tr"),u(1,qe,14,9),r(2,"td",18),_(3),s(),r(4,"td",19)(5,"div",20)(6,"div",21),_(7),s(),r(8,"div",17),u(9,Ge,2,1,"a",22),s()()(),u(10,Ye,4,6),v(11,et,2,1,null,null,I),s()),t&2){let e=l.$implicit,i=l.$index,n=a().$implicit,o=a();c(),h(i==0?1:-1),c(2),F(e==null?null:e.Model),c(2),d("matTooltip",e.Discontinued?o.discontinuedVariantMsg:""),c(),d("ngClass",M(7,Ee,e.Discontinued)),c(),P(" ",e.Code," "),c(2),h(n.Category?9:-1),c(),h(o.hiddenIPOSInventory()==!1?10:-1),c(),S(o.channel())}}function nt(t,l){if(t&1&&(r(0,"tbody"),v(1,tt,13,9,"tr",null,I),s()),t&2){let e=l.$implicit;c(),S(e.Variants)}}var Nt=(()=>{let l=class l{constructor(){this.dialog=b(ue),this.biggerPictureService=b(fe),this.authService=b(se),this.permissionsService=b(ae),this.table=V(void 0),this.channel=V(void 0),this.showProductToggle=V(!1),this.multiwarehouse=V(!1),this.hiddenIPOSInventory=V(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=D.PriceUpdate,this.roleInventoryUpdate=D.InventoryUpdate,this.hasPriceEdit=R(!1),this.hasInventoryEdit=R(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new A,this.destroy$=new q,this.toggle=new A,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(D.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(D.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(o=>o.ID==i);n.length>0&&(n=n.map(o=>(o.Variants=o.Variants.map(m=>(m.selected=o.selected,m)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(m=>Z.IsNotEmpty(n.LocationID)?m.LocationID==n.LocationID:m.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,o,m){let f=this.table();this.hasPriceEdit()&&f=="price"&&this.onOpenDialogUpdate(i,n,o,m),this.hasInventoryEdit()&&f=="inventory"&&this.onOpenDialogUpdate(i,n,o,m)}onOpenDialogUpdate(i,n,o,m){this.dialog.open(Se,{data:{Name:i,Variant:n,ChannelID:o,Table:this.table(),ChannelItemID:m}}).afterClosed().pipe(G(f=>Z.IsNotEmpty(f)),K(this.destroy$)).subscribe(f=>{this.onSubmit.emit(f)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,o){n&1&&(r(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),_(7,"Product"),s(),u(8,Ve,3,1,"mat-slide-toggle",6),s()(),r(9,"th",7),_(10,"Variant"),s(),r(11,"th",8),_(12,"SKU"),s(),u(13,Ne,3,3),v(14,Ue,7,6,"th",9,X),s()(),v(16,nt,3,0,"tbody",null,I),s()()),n&2&&(c(8),h(o.showProductToggle()?8:-1),c(5),h(o.hiddenIPOSInventory()==!1?13:-1),c(),S(o.channel()),c(2),S(o.data))},dependencies:[oe,te,ne,L,de,$,B,ye,Te,he,le,be,ce,re,_e,me,ie,we],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=l;return t})();export{dt as a,Nt as b};
1
+ import{a as ve}from"./chunk-FH2KAM6J.js";import{a as Se,b as we}from"./chunk-C67KF7MG.js";import{a as Te,b as ye}from"./chunk-JKRELT7N.js";import{a as fe}from"./chunk-DLHIDOS3.js";import{a as pe,b as ge,c as ue,g as he,i as Ce,j as xe}from"./chunk-IA7NJXJD.js";import{a as _e}from"./chunk-UEXWQT5J.js";import{b as be}from"./chunk-M27MYADT.js";import{a as le}from"./chunk-UDNUDL5Z.js";import{c as me}from"./chunk-IZZY74PN.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as se}from"./chunk-7K6U3ABQ.js";import{a as ae,b as re,c as ce}from"./chunk-NB2H6KA7.js";import{c as Z}from"./chunk-UPRDDI4K.js";import{A as L,b as de,h as $,m as B}from"./chunk-6UM4NHOR.js";import{A as ie,B as oe,q as te,v as ne}from"./chunk-CGSMHTKB.js";import{G,Hb as N,Ia as R,Ic as z,Nb as T,Nc as _,Oc as F,Pc as P,Rc as E,Sc as k,Tc as O,Xc as Y,ac as u,ad as M,bd as J,ca as K,cc as h,dc as I,ec as X,f as q,fc as v,gc as S,hc as d,ic as r,id as U,jc as s,jd as H,kc as w,kd as Q,ld as ee,mb as y,ob as c,qc as j,ra as b,rc as C,tb as A,ud as V,wc as x,ya as p,yc as a,za as g}from"./chunk-OHGMB7HJ.js";function Fe(t,l){if(t&1){let e=C();r(0,"span")(1,"mat-checkbox",4),x("change",function(n){p(e);let o=a();return g(o.onSelectAll(n==null?null:n.checked))}),r(2,"h5",5),_(3,"Select All"),s()()()}}function Pe(t,l){if(t&1){let e=C();r(0,"li")(1,"mat-checkbox",6),O("ngModelChange",function(n){let o=p(e).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),r(2,"div",7),w(3,"img",8),r(4,"h5",9),_(5),s()()()()}if(t&2){let e=l.$implicit;c(),E("ngModel",e.selected),c(2),d("src",e.Img,y),c(2),F(e.Name)}}var dt=(()=>{let l=class l{constructor(){this.data=b(ge),this.dialogRef=b(pe),this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){let i=this.data.title?this.data.title:"Updating Inventory";this.modalConfig=new Ce,this.modalConfig.title=i}onSelectAll(i){this.channels=this.channels.map(n=>(n.selected=i,n))}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}get getSelectedChannel(){return this.channels.filter(i=>i.selected)}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-modal-update-channels"]],decls:7,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet",2,"margin-bottom","0px !important","overflow","hidden"],["color","primary",1,"me-6",3,"change"],[1,"fw-light"],["color","primary",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(n,o){n&1&&(r(0,"modal-material",0),x("onOk",function(){return o.onOk()})("onClose",function(){return o.onClose()})("onCancel",function(){return o.onClose()}),r(1,"div",1)(2,"div",2),u(3,Fe,4,0,"span"),r(4,"ul",3),v(5,Pe,6,3,"li",null,I),s()()()()),n&2&&(d("dynamicValidated",(o.getSelectedChannel==null?null:o.getSelectedChannel.length)>0)("config",o.modalConfig),c(3),h((o.channels==null?null:o.channels.length)>1?3:-1),c(2),S(o.channels))},dependencies:[xe,ve,L,$,B],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=l;return t})();var W=t=>[t],Ee=t=>({"text-decoration-line-through":t}),ke=t=>({"text-danger":t}),Oe=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function Ve(t,l){if(t&1){let e=C();r(0,"mat-slide-toggle",10),x("toggleChange",function(){p(e);let n=a();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),r(1,"small",11),_(2),s()()}if(t&2){let e=a();c(2),P(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function De(t,l){if(t&1){let e=C();r(0,"th")(1,"input",13),O("ngModelChange",function(n){p(e);let o=a(2);return k(o.checkboxState,n)||(o.checkboxState=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(2);return g(n.onCheckboxStateChange())}),s()()}if(t&2){let e=a(2);c(),E("ngModel",e.checkboxState)}}function Ne(t,l){if(t&1&&(T(0,De,2,1,"ng-template",12),r(1,"th",8),_(2,"POS"),s()),t&2){let e=a();d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function Ue(t,l){if(t&1&&(r(0,"th",9)(1,"div",14)(2,"div",15),w(3,"img",16),r(4,"div",17),_(5),U(6,"stringLimit"),s()()()()),t&2){let e=l.$implicit;c(2),d("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),c(),d("src",e==null?null:e.Img,y),c(2),P(" ",Q(6,3,e.Name,20)," ")}}function $e(t,l){t&1&&j(0)}function Be(t,l){if(t&1&&T(0,$e,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Le(t,l){if(t&1&&T(0,Be,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.roleInventoryUpdate))}}function We(t,l){t&1&&j(0)}function Re(t,l){if(t&1&&T(0,We,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Ae(t,l){if(t&1&&T(0,Re,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function je(t,l){if(t&1){let e=C();r(0,"div")(1,"input",30),O("ngModelChange",function(n){p(e);let o=a(4).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(4).$implicit,o=a();return g(o.onCheckboxStateProduct(n.ID))}),s()()}if(t&2){let e=a(4).$implicit;c(),E("ngModel",e.selected),d("disabled",!(e!=null&&e.Category))}}function ze(t,l){if(t&1&&u(0,je,2,2,"div"),t&2){let e=a(3).$implicit;h((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function He(t,l){if(t&1){let e=C();r(0,"img",31),x("click",function(n){p(e);let o=a(3).$implicit,m=a();return g(m.onZoomImage(n,o==null?null:o.ImageUrl))}),s()}if(t&2){let e=a(3).$implicit;d("src",Y(e==null?null:e.ThumbnailUrl),y)}}function Ze(t,l){t&1&&w(0,"img",26)}function qe(t,l){if(t&1&&(r(0,"td",23)(1,"div",24),u(2,Le,1,3,null,12)(3,Ae,1,3,null,12),T(4,ze,1,1,"ng-template",null,0,ee),r(6,"div"),u(7,He,1,2,"img",25)(8,Ze,1,0,"img",26),s()()(),r(9,"td",27)(10,"div"),_(11),s(),r(12,"small",28),_(13),s()()),t&2){let e=a(2).$implicit,i=a();d("rowSpan",e==null?null:e.Variants.length),c(2),h(i.table()=="inventory"?2:3),c(5),h(e!=null&&e.ThumbnailUrl?7:8),c(2),d("rowSpan",e==null?null:e.Variants.length),c(2),F(e==null?null:e.Name),c(),d("ngClass",M(7,ke,!(e!=null&&e.Category))),c(),P("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Ge(t,l){if(t&1&&(r(0,"a",22),w(1,"i",32),s()),t&2){let e=a().$implicit,i=a(2);d("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),y)}}function Ke(t,l){if(t&1){let e=C();r(0,"input",35),O("ngModelChange",function(n){p(e);let o=a(3).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),s()}if(t&2){let e=a(3).$implicit,i=a().$implicit;E("ngModel",e.selected),d("disabled",!(i!=null&&i.Category))}}function Xe(t,l){if(t&1&&(r(0,"td",33),u(1,Ke,1,2,"input",34),s()),t&2){let e=a(2).$implicit,i=a(2);c(),h(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Ye(t,l){if(t&1&&(T(0,Xe,2,1,"ng-template",12),r(1,"td",19),_(2),U(3,"number"),s()),t&2){let e=a().$implicit,i=a(2);d("ngxPermissionsOnly",M(4,W,i.rolePriceEdit)),c(2),F(H(3,2,i.printPOS(e)))}}function Je(t,l){if(t&1){let e=C();r(0,"td",38),x("click",function(){p(e);let n=a().$implicit,o=a().$implicit,m=a().$implicit,f=a();return g(f.onUpdateData(m.Name,o,n.ID,m.ChannelItemID))}),r(1,"div",39)(2,"div",40),_(3),U(4,"number"),s(),r(5,"a",41),x("click",function(n){return p(e),g(n==null?null:n.stopPropagation())}),w(6,"i",32),s()()()}if(t&2){let e=l,i=a(2).$implicit,n=a(2);d("ngClass",J(5,Oe,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),c(3),P(" ",H(4,3,n.printItem(e))," "),c(2),d("href",e.Url,y)}}function Qe(t,l){t&1&&(r(0,"td",37)(1,"div",39)(2,"span"),_(3,"X"),s()()())}function et(t,l){if(t&1&&u(0,Je,7,8,"td",36)(1,Qe,4,0,"td",37),t&2){let e,i=l.$implicit,n=a().$implicit,o=a(2);h((e=o.getItemFromChannel(n,i))?0:1,e)}}function tt(t,l){if(t&1&&(r(0,"tr"),u(1,qe,14,9),r(2,"td",18),_(3),s(),r(4,"td",19)(5,"div",20)(6,"div",21),_(7),s(),r(8,"div",17),u(9,Ge,2,1,"a",22),s()()(),u(10,Ye,4,6),v(11,et,2,1,null,null,I),s()),t&2){let e=l.$implicit,i=l.$index,n=a().$implicit,o=a();c(),h(i==0?1:-1),c(2),F(e==null?null:e.Model),c(2),d("matTooltip",e.Discontinued?o.discontinuedVariantMsg:""),c(),d("ngClass",M(7,Ee,e.Discontinued)),c(),P(" ",e.Code," "),c(2),h(n.Category?9:-1),c(),h(o.hiddenIPOSInventory()==!1?10:-1),c(),S(o.channel())}}function nt(t,l){if(t&1&&(r(0,"tbody"),v(1,tt,13,9,"tr",null,I),s()),t&2){let e=l.$implicit;c(),S(e.Variants)}}var Nt=(()=>{let l=class l{constructor(){this.dialog=b(ue),this.biggerPictureService=b(fe),this.authService=b(se),this.permissionsService=b(ae),this.table=V(void 0),this.channel=V(void 0),this.showProductToggle=V(!1),this.multiwarehouse=V(!1),this.hiddenIPOSInventory=V(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=D.PriceUpdate,this.roleInventoryUpdate=D.InventoryUpdate,this.hasPriceEdit=R(!1),this.hasInventoryEdit=R(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new A,this.destroy$=new q,this.toggle=new A,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(D.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(D.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(o=>o.ID==i);n.length>0&&(n=n.map(o=>(o.Variants=o.Variants.map(m=>(m.selected=o.selected,m)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(m=>Z.IsNotEmpty(n.LocationID)?m.LocationID==n.LocationID:m.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,o,m){let f=this.table();this.hasPriceEdit()&&f=="price"&&this.onOpenDialogUpdate(i,n,o,m),this.hasInventoryEdit()&&f=="inventory"&&this.onOpenDialogUpdate(i,n,o,m)}onOpenDialogUpdate(i,n,o,m){this.dialog.open(Se,{data:{Name:i,Variant:n,ChannelID:o,Table:this.table(),ChannelItemID:m}}).afterClosed().pipe(G(f=>Z.IsNotEmpty(f)),K(this.destroy$)).subscribe(f=>{this.onSubmit.emit(f)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,o){n&1&&(r(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),_(7,"Product"),s(),u(8,Ve,3,1,"mat-slide-toggle",6),s()(),r(9,"th",7),_(10,"Variant"),s(),r(11,"th",8),_(12,"SKU"),s(),u(13,Ne,3,3),v(14,Ue,7,6,"th",9,X),s()(),v(16,nt,3,0,"tbody",null,I),s()()),n&2&&(c(8),h(o.showProductToggle()?8:-1),c(5),h(o.hiddenIPOSInventory()==!1?13:-1),c(),S(o.channel()),c(2),S(o.data))},dependencies:[oe,te,ne,L,de,$,B,ye,Te,he,le,be,ce,re,_e,me,ie,we],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=l;return t})();export{dt as a,Nt as b};
@@ -1 +1 @@
1
- import{a as Y,b as j,c as v}from"./chunk-Z6LN3X5Q.js";import"./chunk-4VNQYYVV.js";import{a as A}from"./chunk-IVKFEOCB.js";import{a as U,b as k}from"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import{b as R}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-ZC526ERX.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import{c as H}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-AGBJEXIM.js";import{A as V,c as N,h as B,m as F}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as W}from"./chunk-MM7SAZOU.js";import{d as x,e as G}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{q as D}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as O,Nc as r,Pc as T,Rc as s,Sc as u,Tc as g,ac as S,ad as L,cc as b,ec as M,fc as w,gc as E,hc as d,ic as t,jc as n,ob as i,ra as C,rc as I,wc as P,ya as _,yc as y,za as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var q=a=>({empty:a});function z(a,m){if(a&1){let l=I();t(0,"div",18)(1,"label",19),r(2,"Include Parent"),n(),t(3,"div",20)(4,"mat-radio-group",21),g("ngModelChange",function(p){_(l);let e=y();return u(e.form.IncludeParentInventory,p)||(e.form.IncludeParentInventory=p),h(p)}),t(5,"mat-radio-button",35),r(6," Yes "),n(),t(7,"mat-radio-button",36),r(8," No "),n()()()()}if(a&2){let l=y();i(4),s("ngModel",l.form.IncludeParentInventory),i(),d("value",!0),i(2),d("value",!1)}}function J(a,m){if(a&1){let l=I();t(0,"div",18)(1,"label",19),r(2,"Include Child"),n(),t(3,"div",20)(4,"mat-radio-group",21),g("ngModelChange",function(p){_(l);let e=y();return u(e.form.IncludeChildrenInventory,p)||(e.form.IncludeChildrenInventory=p),h(p)}),t(5,"mat-radio-button",37),r(6," Yes "),n(),t(7,"mat-radio-button",38),r(8," No "),n()()()()}if(a&2){let l=y();i(4),s("ngModel",l.form.IncludeChildrenInventory),i(),d("value",!0),i(2),d("value",!1)}}function K(a,m){if(a&1&&(t(0,"mat-radio-button",29),r(1),n()),a&2){let l=m.$implicit;d("value",l.value)("matTooltip",l.desc),i(),T(" ",l.label," ")}}function Q(a,m){if(a&1&&(t(0,"mat-radio-button",29),r(1),n()),a&2){let l=m.$implicit;d("value",l.value)("matTooltip",l.desc),i(),T(" ",l.label," ")}}var ge=(()=>{let m=class m{constructor(){this._router=C(x),this.toastr=C(W),this.posService=C(Y),this.form=new j,this.passwordType="password",this.passwordIcon="eye-off",this.inventoryLogTypeOptions=[{value:v.NONE,label:"None",desc:"Not record any log from transaction"},{value:v.ERROR,label:"Error",desc:"Only record error log from transaction"},{value:v.FULL,label:"Full",desc:"Record all log from transaction"}],this.pageData={Title:"POS",Nav:[{Title:"Channel",Url:"/menu/channel",Active:!1},{Title:"POS",Url:"/menu/channel/config",Active:!0}]}}ngOnInit(){this.initPageLoader()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="eye-off"?"eye":"eye-off"}initPageLoader(){this.posService.getLoader().subscribe(f=>{this.form=f.Form})}onSubmitHost(){this.posService.submitConfig(this.form).subscribe(f=>{this.toastr.success("Successfully Edited POS Config!","Success!"),this._router.navigate(["menu/channel"])})}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=O({type:m,selectors:[["app-edit"]],decls:77,vars:25,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/channel/pos",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[1,"container-fluid","mt-3"],[1,"row","mt-5"],[1,"col-md-6"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8"],[1,"form-label-group"],["type","text","id","Host","name","Host","data-toggle","tooltip","title","Host",1,"form-control",3,"ngModelChange","ngModel"],["for","Host"],["type","text","id","Username","name","Username","data-toggle","tooltip","title","Username",1,"form-control",3,"ngModelChange","ngModel"],["for","Username"],["type","text","id","ClientIDGuid","name","ClientIDGuid","data-toggle","tooltip","title","ClientIDGuid",1,"form-control",3,"ngModelChange","ngModel"],["for","ClientIDGuid"],["type","text","id","ClientSecretGuid","name","ClientSecretGuid","data-toggle","tooltip","title","ClientSecretGuid",1,"form-control",3,"ngModelChange","ngModel"],["for","ClientSecretGuid"],[1,"form-label-group","radio"],["for","OrderPaymentAmountType"],[1,"mt-3"],[3,"ngModelChange","ngModel"],["data-toggle","tootip","title","Support composite and trigger component",1,"me-5",3,"value"],["data-toggle","tooltip","title","No support composite and trigger component",1,"me-5",3,"value"],["data-toggle","tooltip","title","Order Origin is traced via Outlet",1,"me-5",3,"value"],["data-toggle","tootip","title","Order Origin is traced via Tag",1,"me-5",3,"value"],["matTooltipPosition","above","matTooltip","Your Inventory log status",1,"form-label-group","radio",3,"ngClass"],[2,"top","-11px","background","white"],["name","InventoryLog",3,"ngModelChange","ngModel"],["data-toggle","tooltip",1,"me-5",3,"value","matTooltip"],["matTooltipPosition","above","matTooltip","Channel Inventory log status",1,"form-label-group","radio",3,"ngClass"],["name","ChannelInventoryLog",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Number of days to look back for orders",1,"form-label-group"],["type","text","id","OrderFromDefaultDays","name","OrderFromDefaultDays","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["for","OrderFromDefaultDays"],["data-toggle","tootip","title","include variant parent component",1,"me-5",3,"value"],["data-toggle","tooltip","title","No include variant parent component",1,"me-5",3,"value"],["data-toggle","tootip","title","Include Include variant child component",1,"me-5",3,"value"],["data-toggle","tooltip","title","No Include variant child component",1,"me-5",3,"value"]],template:function(p,e){p&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Cancel"),n(),t(4,"a",2),P("click",function(){return e.onSubmitHost()}),r(5,"Save"),n()(),t(6,"content")(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"h4"),r(13,"Credentials"),n()(),t(14,"div",8)(15,"div",9)(16,"input",10),g("ngModelChange",function(o){return u(e.form.Host,o)||(e.form.Host=o),o}),n(),t(17,"label",11),r(18,"Host"),n()(),t(19,"div",9)(20,"input",12),g("ngModelChange",function(o){return u(e.form.Username,o)||(e.form.Username=o),o}),n(),t(21,"label",13),r(22,"Username "),t(23,"small"),r(24,"(Deprecated)"),n()()(),t(25,"div",9)(26,"input",14),g("ngModelChange",function(o){return u(e.form.ClientIDGuid,o)||(e.form.ClientIDGuid=o),o}),n(),t(27,"label",15),r(28,"ClientIDGuid"),n()(),t(29,"div",9)(30,"input",16),g("ngModelChange",function(o){return u(e.form.ClientSecretGuid,o)||(e.form.ClientSecretGuid=o),o}),n(),t(31,"label",17),r(32,"ClientSecretGuid"),n()()()()(),t(33,"div",5)(34,"div",6)(35,"div",7)(36,"h4"),r(37,"Configuration"),n()(),t(38,"div",8)(39,"div",18)(40,"label",19),r(41,"Composite Inventory"),n(),t(42,"div",20)(43,"mat-radio-group",21),g("ngModelChange",function(o){return u(e.form.CompositeVisible,o)||(e.form.CompositeVisible=o),o}),t(44,"mat-radio-button",22),r(45," Yes "),n(),t(46,"mat-radio-button",23),r(47," No "),n()()()(),S(48,z,9,3,"div",18),S(49,J,9,3,"div",18),t(50,"div",18)(51,"label",19),r(52,"Identify Order Channel by"),n(),t(53,"div",20)(54,"mat-radio-group",21),g("ngModelChange",function(o){return u(e.form.InvoiceType,o)||(e.form.InvoiceType=o),o}),t(55,"mat-radio-button",24),r(56," Outlet "),n(),t(57,"mat-radio-button",25),r(58," Tag "),n()()()(),t(59,"div",26)(60,"label",27),r(61,"Inventory Log Mode"),n(),t(62,"div",20)(63,"mat-radio-group",28),g("ngModelChange",function(o){return u(e.form.POSInventoryLog,o)||(e.form.POSInventoryLog=o),o}),w(64,K,2,3,"mat-radio-button",29,M),n()()(),t(66,"div",30)(67,"label",27),r(68,"Channel Inventory Log Mode"),n(),t(69,"div",20)(70,"mat-radio-group",31),g("ngModelChange",function(o){return u(e.form.ChannelInventoryLog,o)||(e.form.ChannelInventoryLog=o),o}),w(71,Q,2,3,"mat-radio-button",29,M),n()()(),t(73,"div",32)(74,"input",33),g("ngModelChange",function(o){return u(e.form.OrderFromDefaultDays,o)||(e.form.OrderFromDefaultDays=o),o}),n(),t(75,"label",34),r(76,"Order From Default Days"),n()()()()()()()()()),p&2&&(d("headerTitle","POS Edit")("pageData",e.pageData)("hideSearchBox",!0)("hideSearchDropdown",!0),i(16),s("ngModel",e.form.Host),i(4),s("ngModel",e.form.Username),i(6),s("ngModel",e.form.ClientIDGuid),i(4),s("ngModel",e.form.ClientSecretGuid),i(13),s("ngModel",e.form.CompositeVisible),i(),d("value",!0),i(2),d("value",!1),i(2),b(e.form.CompositeVisible?48:-1),i(),b(e.form.CompositeVisible?49:-1),i(5),s("ngModel",e.form.InvoiceType),i(),d("value",0),i(2),d("value",1),i(2),d("ngClass",L(21,q,e.form==null?null:e.form.POSInventoryLog)),i(4),s("ngModel",e.form.POSInventoryLog),i(),E(e.inventoryLogTypeOptions),i(2),d("ngClass",L(23,q,e.form==null?null:e.form.ChannelInventoryLog)),i(4),s("ngModel",e.form.ChannelInventoryLog),i(),E(e.inventoryLogTypeOptions),i(3),s("ngModel",e.form.OrderFromDefaultDays))},dependencies:[R,G,V,N,B,F,U,k,H,D,A],styles:[".passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:1rem;position:absolute;margin:0 auto!important;cursor:pointer}"]});let a=m;return a})();export{ge as EditComponent};
1
+ import{a as Y,b as j,c as v}from"./chunk-2KQKQSUI.js";import"./chunk-4VNQYYVV.js";import{a as A}from"./chunk-WTHYLNPX.js";import{a as U,b as k}from"./chunk-2EGTHH3W.js";import"./chunk-LR2YCE6M.js";import{b as R}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-ZC526ERX.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import{c as H}from"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-AGBJEXIM.js";import{A as V,c as N,h as B,m as F}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import{b as W}from"./chunk-D6JH2KV4.js";import{d as x,e as G}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{q as D}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as O,Nc as r,Pc as T,Rc as s,Sc as u,Tc as g,ac as S,ad as L,cc as b,ec as M,fc as w,gc as E,hc as d,ic as t,jc as n,ob as i,ra as C,rc as I,wc as P,ya as _,yc as y,za as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var q=a=>({empty:a});function z(a,m){if(a&1){let l=I();t(0,"div",18)(1,"label",19),r(2,"Include Parent"),n(),t(3,"div",20)(4,"mat-radio-group",21),g("ngModelChange",function(p){_(l);let e=y();return u(e.form.IncludeParentInventory,p)||(e.form.IncludeParentInventory=p),h(p)}),t(5,"mat-radio-button",35),r(6," Yes "),n(),t(7,"mat-radio-button",36),r(8," No "),n()()()()}if(a&2){let l=y();i(4),s("ngModel",l.form.IncludeParentInventory),i(),d("value",!0),i(2),d("value",!1)}}function J(a,m){if(a&1){let l=I();t(0,"div",18)(1,"label",19),r(2,"Include Child"),n(),t(3,"div",20)(4,"mat-radio-group",21),g("ngModelChange",function(p){_(l);let e=y();return u(e.form.IncludeChildrenInventory,p)||(e.form.IncludeChildrenInventory=p),h(p)}),t(5,"mat-radio-button",37),r(6," Yes "),n(),t(7,"mat-radio-button",38),r(8," No "),n()()()()}if(a&2){let l=y();i(4),s("ngModel",l.form.IncludeChildrenInventory),i(),d("value",!0),i(2),d("value",!1)}}function K(a,m){if(a&1&&(t(0,"mat-radio-button",29),r(1),n()),a&2){let l=m.$implicit;d("value",l.value)("matTooltip",l.desc),i(),T(" ",l.label," ")}}function Q(a,m){if(a&1&&(t(0,"mat-radio-button",29),r(1),n()),a&2){let l=m.$implicit;d("value",l.value)("matTooltip",l.desc),i(),T(" ",l.label," ")}}var ge=(()=>{let m=class m{constructor(){this._router=C(x),this.toastr=C(W),this.posService=C(Y),this.form=new j,this.passwordType="password",this.passwordIcon="eye-off",this.inventoryLogTypeOptions=[{value:v.NONE,label:"None",desc:"Not record any log from transaction"},{value:v.ERROR,label:"Error",desc:"Only record error log from transaction"},{value:v.FULL,label:"Full",desc:"Record all log from transaction"}],this.pageData={Title:"POS",Nav:[{Title:"Channel",Url:"/menu/channel",Active:!1},{Title:"POS",Url:"/menu/channel/config",Active:!0}]}}ngOnInit(){this.initPageLoader()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="eye-off"?"eye":"eye-off"}initPageLoader(){this.posService.getLoader().subscribe(f=>{this.form=f.Form})}onSubmitHost(){this.posService.submitConfig(this.form).subscribe(f=>{this.toastr.success("Successfully Edited POS Config!","Success!"),this._router.navigate(["menu/channel"])})}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=O({type:m,selectors:[["app-edit"]],decls:77,vars:25,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/channel/pos",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[1,"container-fluid","mt-3"],[1,"row","mt-5"],[1,"col-md-6"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8"],[1,"form-label-group"],["type","text","id","Host","name","Host","data-toggle","tooltip","title","Host",1,"form-control",3,"ngModelChange","ngModel"],["for","Host"],["type","text","id","Username","name","Username","data-toggle","tooltip","title","Username",1,"form-control",3,"ngModelChange","ngModel"],["for","Username"],["type","text","id","ClientIDGuid","name","ClientIDGuid","data-toggle","tooltip","title","ClientIDGuid",1,"form-control",3,"ngModelChange","ngModel"],["for","ClientIDGuid"],["type","text","id","ClientSecretGuid","name","ClientSecretGuid","data-toggle","tooltip","title","ClientSecretGuid",1,"form-control",3,"ngModelChange","ngModel"],["for","ClientSecretGuid"],[1,"form-label-group","radio"],["for","OrderPaymentAmountType"],[1,"mt-3"],[3,"ngModelChange","ngModel"],["data-toggle","tootip","title","Support composite and trigger component",1,"me-5",3,"value"],["data-toggle","tooltip","title","No support composite and trigger component",1,"me-5",3,"value"],["data-toggle","tooltip","title","Order Origin is traced via Outlet",1,"me-5",3,"value"],["data-toggle","tootip","title","Order Origin is traced via Tag",1,"me-5",3,"value"],["matTooltipPosition","above","matTooltip","Your Inventory log status",1,"form-label-group","radio",3,"ngClass"],[2,"top","-11px","background","white"],["name","InventoryLog",3,"ngModelChange","ngModel"],["data-toggle","tooltip",1,"me-5",3,"value","matTooltip"],["matTooltipPosition","above","matTooltip","Channel Inventory log status",1,"form-label-group","radio",3,"ngClass"],["name","ChannelInventoryLog",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Number of days to look back for orders",1,"form-label-group"],["type","text","id","OrderFromDefaultDays","name","OrderFromDefaultDays","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["for","OrderFromDefaultDays"],["data-toggle","tootip","title","include variant parent component",1,"me-5",3,"value"],["data-toggle","tooltip","title","No include variant parent component",1,"me-5",3,"value"],["data-toggle","tootip","title","Include Include variant child component",1,"me-5",3,"value"],["data-toggle","tooltip","title","No Include variant child component",1,"me-5",3,"value"]],template:function(p,e){p&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Cancel"),n(),t(4,"a",2),P("click",function(){return e.onSubmitHost()}),r(5,"Save"),n()(),t(6,"content")(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"h4"),r(13,"Credentials"),n()(),t(14,"div",8)(15,"div",9)(16,"input",10),g("ngModelChange",function(o){return u(e.form.Host,o)||(e.form.Host=o),o}),n(),t(17,"label",11),r(18,"Host"),n()(),t(19,"div",9)(20,"input",12),g("ngModelChange",function(o){return u(e.form.Username,o)||(e.form.Username=o),o}),n(),t(21,"label",13),r(22,"Username "),t(23,"small"),r(24,"(Deprecated)"),n()()(),t(25,"div",9)(26,"input",14),g("ngModelChange",function(o){return u(e.form.ClientIDGuid,o)||(e.form.ClientIDGuid=o),o}),n(),t(27,"label",15),r(28,"ClientIDGuid"),n()(),t(29,"div",9)(30,"input",16),g("ngModelChange",function(o){return u(e.form.ClientSecretGuid,o)||(e.form.ClientSecretGuid=o),o}),n(),t(31,"label",17),r(32,"ClientSecretGuid"),n()()()()(),t(33,"div",5)(34,"div",6)(35,"div",7)(36,"h4"),r(37,"Configuration"),n()(),t(38,"div",8)(39,"div",18)(40,"label",19),r(41,"Composite Inventory"),n(),t(42,"div",20)(43,"mat-radio-group",21),g("ngModelChange",function(o){return u(e.form.CompositeVisible,o)||(e.form.CompositeVisible=o),o}),t(44,"mat-radio-button",22),r(45," Yes "),n(),t(46,"mat-radio-button",23),r(47," No "),n()()()(),S(48,z,9,3,"div",18),S(49,J,9,3,"div",18),t(50,"div",18)(51,"label",19),r(52,"Identify Order Channel by"),n(),t(53,"div",20)(54,"mat-radio-group",21),g("ngModelChange",function(o){return u(e.form.InvoiceType,o)||(e.form.InvoiceType=o),o}),t(55,"mat-radio-button",24),r(56," Outlet "),n(),t(57,"mat-radio-button",25),r(58," Tag "),n()()()(),t(59,"div",26)(60,"label",27),r(61,"Inventory Log Mode"),n(),t(62,"div",20)(63,"mat-radio-group",28),g("ngModelChange",function(o){return u(e.form.POSInventoryLog,o)||(e.form.POSInventoryLog=o),o}),w(64,K,2,3,"mat-radio-button",29,M),n()()(),t(66,"div",30)(67,"label",27),r(68,"Channel Inventory Log Mode"),n(),t(69,"div",20)(70,"mat-radio-group",31),g("ngModelChange",function(o){return u(e.form.ChannelInventoryLog,o)||(e.form.ChannelInventoryLog=o),o}),w(71,Q,2,3,"mat-radio-button",29,M),n()()(),t(73,"div",32)(74,"input",33),g("ngModelChange",function(o){return u(e.form.OrderFromDefaultDays,o)||(e.form.OrderFromDefaultDays=o),o}),n(),t(75,"label",34),r(76,"Order From Default Days"),n()()()()()()()()()),p&2&&(d("headerTitle","POS Edit")("pageData",e.pageData)("hideSearchBox",!0)("hideSearchDropdown",!0),i(16),s("ngModel",e.form.Host),i(4),s("ngModel",e.form.Username),i(6),s("ngModel",e.form.ClientIDGuid),i(4),s("ngModel",e.form.ClientSecretGuid),i(13),s("ngModel",e.form.CompositeVisible),i(),d("value",!0),i(2),d("value",!1),i(2),b(e.form.CompositeVisible?48:-1),i(),b(e.form.CompositeVisible?49:-1),i(5),s("ngModel",e.form.InvoiceType),i(),d("value",0),i(2),d("value",1),i(2),d("ngClass",L(21,q,e.form==null?null:e.form.POSInventoryLog)),i(4),s("ngModel",e.form.POSInventoryLog),i(),E(e.inventoryLogTypeOptions),i(2),d("ngClass",L(23,q,e.form==null?null:e.form.ChannelInventoryLog)),i(4),s("ngModel",e.form.ChannelInventoryLog),i(),E(e.inventoryLogTypeOptions),i(3),s("ngModel",e.form.OrderFromDefaultDays))},dependencies:[R,G,V,N,B,F,U,k,H,D,A],styles:[".passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:1rem;position:absolute;margin:0 auto!important;cursor:pointer}"]});let a=m;return a})();export{ge as EditComponent};
@@ -1,4 +1,4 @@
1
- import{a as b,d as ce,e as m,g as O}from"./chunk-DDFP4CNP.js";import{c as he,d as pe,e as y}from"./chunk-RBZU7OVM.js";import{L as v,b as Z,d as oe,ia as re,la as le,ma as ae,o as se,ua as de,v as z}from"./chunk-RXC5D64C.js";import{A as te,C as ie,t as X,v as ee}from"./chunk-JNRCB7N3.js";import{c as ne,d as A,f as V,i as M,j,l as H}from"./chunk-XBIHN6D3.js";import{Ab as w,Ac as U,Bc as k,Cc as L,Dc as p,Ec as c,Hb as $,Lb as K,Mb as P,Mc as R,Nb as _,Pa as F,_c as G,ad as C,cd as J,hc as l,ic as T,jc as S,ma as N,ob as x,pa as B,pd as W,qc as q,ra as g,rc as E,tb as s,ub as Q,ud as I,wc as D,ya as d,yc as r,za as h,zc as Y}from"./chunk-OHGMB7HJ.js";import{a}from"./chunk-66YHNWRR.js";var ve=["content"],ue=["overlay"],fe=["*"],ge=(t,u,e)=>({showTransitionParams:t,hideTransitionParams:u,transform:e}),_e=t=>({value:"visible",params:t}),Ce=t=>({mode:t}),be=t=>({$implicit:t});function Oe(t,u){t&1&&q(0)}function xe(t,u){if(t&1){let e=E();T(0,"div",3,1),D("click",function(n){d(e);let o=r(2);return h(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){d(e);let o=r(2);return h(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){d(e);let o=r(2);return h(o.onOverlayContentAnimationDone(n))}),U(2),_(3,Oe,1,0,"ng-container",4),S()}if(t&2){let e=r(2);R(e.cn(e.cx("content"),e.contentStyleClass)),l("pBind",e.ptm("content"))("@overlayContentAnimation",C(10,_e,J(6,ge,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),x(3),l("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",C(14,be,C(12,Ce,e.overlayMode)))}}function we(t,u){if(t&1){let e=E();T(0,"div",3,0),D("click",function(){d(e);let n=r();return h(n.onOverlayClick())}),_(2,xe,4,16,"div",2),S()}if(t&2){let e=r();R(e.cn(e.cx("root"),e.styleClass)),l("pBind",e.ptm("root")),x(2),l("ngIf",e.visible)}}var Te=`
1
+ import{a as b,d as ce,e as m,g as O}from"./chunk-C4MTEDSW.js";import{c as he,d as pe,e as y}from"./chunk-JMRRXRKO.js";import{L as v,b as Z,d as oe,ia as re,la as le,ma as ae,o as se,ua as de,v as z}from"./chunk-JTKEMQZT.js";import{B as te,D as ie,t as X,v as ee}from"./chunk-CGSMHTKB.js";import{c as ne,d as A,f as V,i as M,j,l as H}from"./chunk-XBIHN6D3.js";import{Ab as w,Ac as U,Bc as k,Cc as L,Dc as p,Ec as c,Hb as $,Lb as K,Mb as P,Mc as R,Nb as _,Pa as F,_c as G,ad as C,cd as J,hc as l,ic as T,jc as S,ma as N,ob as x,pa as B,pd as W,qc as q,ra as g,rc as E,tb as s,ub as Q,ud as I,wc as D,ya as d,yc as r,za as h,zc as Y}from"./chunk-OHGMB7HJ.js";import{a}from"./chunk-66YHNWRR.js";var ve=["content"],ue=["overlay"],fe=["*"],ge=(t,u,e)=>({showTransitionParams:t,hideTransitionParams:u,transform:e}),_e=t=>({value:"visible",params:t}),Ce=t=>({mode:t}),be=t=>({$implicit:t});function Oe(t,u){t&1&&q(0)}function xe(t,u){if(t&1){let e=E();T(0,"div",3,1),D("click",function(n){d(e);let o=r(2);return h(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){d(e);let o=r(2);return h(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){d(e);let o=r(2);return h(o.onOverlayContentAnimationDone(n))}),U(2),_(3,Oe,1,0,"ng-container",4),S()}if(t&2){let e=r(2);R(e.cn(e.cx("content"),e.contentStyleClass)),l("pBind",e.ptm("content"))("@overlayContentAnimation",C(10,_e,J(6,ge,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),x(3),l("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",C(14,be,C(12,Ce,e.overlayMode)))}}function we(t,u){if(t&1){let e=E();T(0,"div",3,0),D("click",function(){d(e);let n=r();return h(n.onOverlayClick())}),_(2,xe,4,16,"div",2),S()}if(t&2){let e=r();R(e.cn(e.cx("root"),e.styleClass)),l("pBind",e.ptm("root")),x(2),l("ngIf",e.visible)}}var Te=`
2
2
  .p-overlay {
3
3
  position: absolute;
4
4
  top: 0;
@@ -1 +1 @@
1
- import{a as e}from"./chunk-AGBJEXIM.js";import{e as s}from"./chunk-MM7SAZOU.js";import{ma as i,ra as p}from"./chunk-OHGMB7HJ.js";var G=(()=>{let r=class r{constructor(){this.httpService=p(s)}getGroupsLoader(){return this.httpService.get(e.GetGroupsLoader)}getGroups(t){return this.httpService.post(e.GetGroups,t)}getGroupsForm(t){return this.httpService.post(e.GetGroupFormLoader,{ID:t})}submitGroup(t){return this.httpService.post(e.SubmitGroup,t)}deleteGroups(t){return this.httpService.post(e.DeleteGroups,{ListID:t})}};r.\u0275fac=function(u){return new(u||r)},r.\u0275prov=i({token:r,factory:r.\u0275fac});let o=r;return o})();export{G as a};
1
+ import{a as e}from"./chunk-AGBJEXIM.js";import{e as s}from"./chunk-D6JH2KV4.js";import{ma as i,ra as p}from"./chunk-OHGMB7HJ.js";var G=(()=>{let r=class r{constructor(){this.httpService=p(s)}getGroupsLoader(){return this.httpService.get(e.GetGroupsLoader)}getGroups(t){return this.httpService.post(e.GetGroups,t)}getGroupsForm(t){return this.httpService.post(e.GetGroupFormLoader,{ID:t})}submitGroup(t){return this.httpService.post(e.SubmitGroup,t)}deleteGroups(t){return this.httpService.post(e.DeleteGroups,{ListID:t})}};r.\u0275fac=function(u){return new(u||r)},r.\u0275prov=i({token:r,factory:r.\u0275fac});let o=r;return o})();export{G as a};
@@ -1,4 +1,4 @@
1
- import{a as j,b as G,c as z,d as q,e as J,f as K}from"./chunk-KR6UNAIL.js";import{b as $}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-KSRL7Y2J.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{h as R}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import{A as W,c as F,h as A,m as H}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as P}from"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{u as O}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as b,Ic as y,Nb as S,Nc as p,Oc as U,Rc as k,Sc as B,Tc as M,_c as L,ac as C,ad as V,cc as x,ec as w,fc as v,gc as E,hc as m,ic as i,jc as o,kc as d,lb as I,ma as T,ob as s,ra as g,rc as _,tb as N,ud as D,wc as h,ya as u,yc as c,za as f}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var X=(()=>{let t=class t{constructor(){this.httpService=g(P)}download(n){return this.httpService.post("/api/Product/downloadurl",n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var te=e=>({"background-color":e});function ne(e,t){if(e&1&&(i(0,"th"),p(1),o()),e&2){let a=t.$implicit;s(),U(a.column)}}function ie(e,t){if(e&1&&(i(0,"td"),d(1,"span",4),o()),e&2){let a=t.$implicit,n=c().$implicit;s(),m("innerHTML",n[a.prop],I)}}function oe(e,t){if(e&1&&(i(0,"tr",3),v(1,ie,2,1,"td",null,w),o()),e&2){let a=t.$implicit,n=c();m("ngStyle",V(1,te,a.Status>200?"#F4D6D5":"#DEE9C9")),s(),E(n.configs())}}var Y=(()=>{let t=class t{constructor(){this.configs=D([]),this.data=D([]),this.status=D(void 0),this.eventClose=new N}ngOnInit(){}onClose(){this.eventClose.emit()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=b({type:t,selectors:[["app-response-api-list"]],inputs:{configs:[1,"configs"],data:[1,"data"],status:[1,"status"]},outputs:{eventClose:"onClose"},decls:9,vars:0,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[3,"ngStyle"],[3,"innerHTML"]],template:function(r,l){r&1&&(i(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),v(4,ne,2,1,"th",null,w),o()(),i(6,"tbody"),v(7,oe,3,3,"tr",3,w),o()()()),r&2&&(s(4),E(l.configs()),s(3),E(l.data()))},dependencies:[O],encapsulation:2});let e=t;return e})();function re(e,t){if(e&1){let a=_();i(0,"button",17),h("click",function(){u(a);let r=c(),l=y(11);return f(r.onNewStepperState(l))}),d(1,"i",18),p(2," New "),o()}}function ae(e,t){if(e&1){let a=_();i(0,"button",17),h("click",function(){u(a),c();let r=y(11);return f(r.previous())}),p(1," Back "),o()}}function le(e,t){if(e&1){let a=_();i(0,"button",19),h("click",function(){u(a);let r=c(),l=y(11);return f(r.onStepperNext(l))}),p(1," Next "),o()}}function pe(e,t){if(e&1){let a=_();i(0,"button",20),h("click",function(){u(a);let r=c(),l=y(11);return f(r.onSubmit(l))}),p(1,"Download"),o()}if(e&2){let a=c();m("disabled",!a.urls)}}function se(e,t){e&1&&(d(0,"i",21),i(1,"span"),p(2,"Instruction"),o())}function ce(e,t){e&1&&(i(0,"div",22)(1,"div",23)(2,"div",24)(3,"h4",25),p(4,"Note"),o()(),i(5,"div",26)(6,"ol",27)(7,"li"),p(8," Use this form to Download Products from Tokopedia using product URL "),o(),i(9,"li"),p(10," Copy Product URL from "),i(11,"a",28),p(12,"https://seller.tokopedia.com/ "),o(),p(13," and paste in this form "),o(),i(14,"li"),p(15," Use New Line when you want to input several product URLs "),o()()()()())}function me(e,t){e&1&&(d(0,"i",29),i(1,"span"),p(2,"Download"),o())}function de(e,t){if(e&1){let a=_();i(0,"div",22)(1,"textarea",30),M("ngModelChange",function(r){u(a);let l=c();return B(l.urls,r)||(l.urls=r),f(r)}),o()()}if(e&2){let a=c();s(),m("placeholder",a.urlPlaceholder),k("ngModel",a.urls)}}function ue(e,t){e&1&&(d(0,"i",31),i(1,"span"),p(2,"Finish"),o())}function fe(e,t){if(e&1&&(i(0,"div",22),d(1,"app-response-api-list",32),o()),e&2){let a=c();s(),m("data",a.downloadResponses)("configs",a.configs)}}function _e(e,t){e&1&&(i(0,"h6"),p(1,"1"),o())}function he(e,t){e&1&&(i(0,"h6"),p(1,"2"),o())}function ge(e,t){e&1&&(i(0,"h6"),p(1,"3"),o())}var Ae=(()=>{let t=class t{constructor(){this.downloadService=g(X),this.authService=g(R),this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
1
+ import{a as j,b as G,c as z,d as q,e as J,f as K}from"./chunk-3WGAMHZW.js";import{b as $}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-JHSG3KRS.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{h as R}from"./chunk-7K6U3ABQ.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import"./chunk-UPRDDI4K.js";import{A as W,c as F,h as A,m as H}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as P}from"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{u as O}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as b,Ic as y,Nb as S,Nc as p,Oc as U,Rc as k,Sc as B,Tc as M,_c as L,ac as C,ad as V,cc as x,ec as w,fc as v,gc as E,hc as m,ic as i,jc as o,kc as d,lb as I,ma as T,ob as s,ra as g,rc as _,tb as N,ud as D,wc as h,ya as u,yc as c,za as f}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var X=(()=>{let t=class t{constructor(){this.httpService=g(P)}download(n){return this.httpService.post("/api/Product/downloadurl",n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var te=e=>({"background-color":e});function ne(e,t){if(e&1&&(i(0,"th"),p(1),o()),e&2){let a=t.$implicit;s(),U(a.column)}}function ie(e,t){if(e&1&&(i(0,"td"),d(1,"span",4),o()),e&2){let a=t.$implicit,n=c().$implicit;s(),m("innerHTML",n[a.prop],I)}}function oe(e,t){if(e&1&&(i(0,"tr",3),v(1,ie,2,1,"td",null,w),o()),e&2){let a=t.$implicit,n=c();m("ngStyle",V(1,te,a.Status>200?"#F4D6D5":"#DEE9C9")),s(),E(n.configs())}}var Y=(()=>{let t=class t{constructor(){this.configs=D([]),this.data=D([]),this.status=D(void 0),this.eventClose=new N}ngOnInit(){}onClose(){this.eventClose.emit()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=b({type:t,selectors:[["app-response-api-list"]],inputs:{configs:[1,"configs"],data:[1,"data"],status:[1,"status"]},outputs:{eventClose:"onClose"},decls:9,vars:0,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[3,"ngStyle"],[3,"innerHTML"]],template:function(r,l){r&1&&(i(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),v(4,ne,2,1,"th",null,w),o()(),i(6,"tbody"),v(7,oe,3,3,"tr",3,w),o()()()),r&2&&(s(4),E(l.configs()),s(3),E(l.data()))},dependencies:[O],encapsulation:2});let e=t;return e})();function re(e,t){if(e&1){let a=_();i(0,"button",17),h("click",function(){u(a);let r=c(),l=y(11);return f(r.onNewStepperState(l))}),d(1,"i",18),p(2," New "),o()}}function ae(e,t){if(e&1){let a=_();i(0,"button",17),h("click",function(){u(a),c();let r=y(11);return f(r.previous())}),p(1," Back "),o()}}function le(e,t){if(e&1){let a=_();i(0,"button",19),h("click",function(){u(a);let r=c(),l=y(11);return f(r.onStepperNext(l))}),p(1," Next "),o()}}function pe(e,t){if(e&1){let a=_();i(0,"button",20),h("click",function(){u(a);let r=c(),l=y(11);return f(r.onSubmit(l))}),p(1,"Download"),o()}if(e&2){let a=c();m("disabled",!a.urls)}}function se(e,t){e&1&&(d(0,"i",21),i(1,"span"),p(2,"Instruction"),o())}function ce(e,t){e&1&&(i(0,"div",22)(1,"div",23)(2,"div",24)(3,"h4",25),p(4,"Note"),o()(),i(5,"div",26)(6,"ol",27)(7,"li"),p(8," Use this form to Download Products from Tokopedia using product URL "),o(),i(9,"li"),p(10," Copy Product URL from "),i(11,"a",28),p(12,"https://seller.tokopedia.com/ "),o(),p(13," and paste in this form "),o(),i(14,"li"),p(15," Use New Line when you want to input several product URLs "),o()()()()())}function me(e,t){e&1&&(d(0,"i",29),i(1,"span"),p(2,"Download"),o())}function de(e,t){if(e&1){let a=_();i(0,"div",22)(1,"textarea",30),M("ngModelChange",function(r){u(a);let l=c();return B(l.urls,r)||(l.urls=r),f(r)}),o()()}if(e&2){let a=c();s(),m("placeholder",a.urlPlaceholder),k("ngModel",a.urls)}}function ue(e,t){e&1&&(d(0,"i",31),i(1,"span"),p(2,"Finish"),o())}function fe(e,t){if(e&1&&(i(0,"div",22),d(1,"app-response-api-list",32),o()),e&2){let a=c();s(),m("data",a.downloadResponses)("configs",a.configs)}}function _e(e,t){e&1&&(i(0,"h6"),p(1,"1"),o())}function he(e,t){e&1&&(i(0,"h6"),p(1,"2"),o())}function ge(e,t){e&1&&(i(0,"h6"),p(1,"3"),o())}var Ae=(()=>{let t=class t{constructor(){this.downloadService=g(X),this.authService=g(R),this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
2
2
  https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`,this.currentDomain=this.authService.getDomain()}onStepperChange(n){this.stepperState=n.selectedStep.state}onSubmit(n){let r=this.urls.split(/\r?\n/);this.downloadService.download(r).subscribe(l=>{this.downloadResponses=l,this.mappingLinkToProduct(),this.onStepperNext(n)})}mappingLinkToProduct(){this.downloadResponses=this.downloadResponses.map(n=>(n.Name=n?.Name?`<a href="${this.currentDomain}/menu/Products/Catalog/Products/Info?ID=${n.ID}" target="_blank">
3
3
  ${n?.Name}
4
4
  </a>`:"-",n))}onNewStepperState(n){this.downloadResponses=[],this.urls=null,this.stepperState="DOWNLOAD",n.reset(),this.onStepperNext(n)}onStepperNext(n){n.selected.completed=!0,n.next()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=b({type:t,selectors:[["app-by-url"]],features:[L([{provide:j,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:11,consts:[["stepper",""],["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"disabled"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["linear","",1,"stepper-downloadByUrl",3,"selectionChange","selectedIndex"],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","DOWNLOAD",3,"editable","completed"],["state","FINISH"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"click","disabled"],[1,"fa-solid","fa-info","me-3"],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],[1,"fa-solid","fa-download","me-3"],["name","url","cols","30","rows","25",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"fa-sharp","fa-solid","fa-flag","me-3"],["status","error",3,"data","configs"]],template:function(r,l){if(r&1){let Z=_();i(0,"mainpanel",1)(1,"actions"),C(2,re,3,0,"button",2),C(3,ae,2,0,"button",2),C(4,le,2,0,"button",3),C(5,pe,2,1,"button",4),o(),i(6,"content")(7,"div",5)(8,"div",6)(9,"div",7)(10,"mat-stepper",8,0),h("selectionChange",function(ee){return u(Z),f(l.onStepperChange(ee))}),i(12,"mat-step",9),S(13,se,3,0,"ng-template",10)(14,ce,16,0,"ng-template",11),o(),i(15,"mat-step",12),S(16,me,3,0,"ng-template",10)(17,de,2,2,"ng-template",11),o(),i(18,"mat-step",13),S(19,ue,3,0,"ng-template",10)(20,fe,2,2,"ng-template",11),o(),S(21,_e,2,0,"ng-template",14)(22,he,2,0,"ng-template",15)(23,ge,2,0,"ng-template",16),o()()()()()()}r&2&&(m("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),x(l.stepperState=="FINISH"?2:-1),s(),x(l.stepperState=="DOWNLOAD"?3:-1),s(),x(l.stepperState=="GUIDE"?4:-1),s(),x(l.stepperState=="DOWNLOAD"?5:-1),s(5),m("selectedIndex",1),s(2),m("editable",l.stepperState!="FINISH")("completed",!0),s(3),m("editable",l.stepperState!="FINISH")("completed",!1))},dependencies:[$,K,J,G,q,W,F,A,H,Y,z],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}
@@ -1 +1 @@
1
- import{b as n,c as u}from"./chunk-UPRDDI4K.js";import{e as C}from"./chunk-MM7SAZOU.js";import{aa as p,ea as g,g as o,ma as h,q as s,ra as l}from"./chunk-OHGMB7HJ.js";var S=(()=>{let r=class r{constructor(){this.httpService=l(C),this.shopeeCategories=new o({data:[],isFirstLoad:!1}),this.tiktokCategories=new o({data:[],isFirstLoad:!1}),this.lazadaCategories=new o({data:[],isFirstLoad:!1}),this.tokopediaCategories=new o({data:[],isFirstLoad:!1}),this.wooCommerceCategories=new o({data:[],isFirstLoad:!1})}getCategories(t,i){switch(t){case n.Shopee:return this.shopeeCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getShopeeCategories(i)));case n.Tiktok:return this.tiktokCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getTiktokCategories(i)));case n.Lazada:return this.lazadaCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getLazadaCategories(i)));case n.Tokopedia:return this.tokopediaCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getTokopediaCategories(i)));case n.WooCommerce:return this.wooCommerceCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getWooCommerceCategories(i)));default:return s([])}}getShopeeCategories(t){return this.httpService.get("api/product/shopee/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.shopeeCategories.next(a)}))}getTiktokCategories(t){return this.httpService.get("api/product/tiktok/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.tiktokCategories.next(a)}))}getLazadaCategories(t){return this.httpService.get("api/product/lazada/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.lazadaCategories.next(a)}))}getTokopediaCategories(t){return this.httpService.get("api/product/tokopedia/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.tokopediaCategories.next(a)}))}getWooCommerceCategories(t){return this.httpService.get("api/product/woo/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.wooCommerceCategories.next(a)}))}searchByIdWithParentDFS(t,i){let e=[...t];for(;e.length>0;){let a=e.pop();if(a.id===JSON.stringify(i))return a;if(a.children&&a.children.length>0)for(let c of a.children)c.parent=a,e.push(c)}return null}searchSelectAbleNode(t){let i=null;if(t.selectable)return t;let e=t.children?t.children:[];if(e.length==0)return t;for(let a of e){if(a.children.length==0&&a.selectable)return a;if(i=this.searchSelectAbleNode(a),i)return i}return i}generateCategoryLabel(t){let i="";return t?i=u.getLabelPathTree(t):i="Select a Category",i}};r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=h({token:r,factory:r.\u0275fac,providedIn:"root"});let d=r;return d})();export{S as a};
1
+ import{b as n,c as u}from"./chunk-UPRDDI4K.js";import{e as C}from"./chunk-D6JH2KV4.js";import{aa as p,ea as g,g as o,ma as h,q as s,ra as l}from"./chunk-OHGMB7HJ.js";var S=(()=>{let r=class r{constructor(){this.httpService=l(C),this.shopeeCategories=new o({data:[],isFirstLoad:!1}),this.tiktokCategories=new o({data:[],isFirstLoad:!1}),this.lazadaCategories=new o({data:[],isFirstLoad:!1}),this.tokopediaCategories=new o({data:[],isFirstLoad:!1}),this.wooCommerceCategories=new o({data:[],isFirstLoad:!1})}getCategories(t,i){switch(t){case n.Shopee:return this.shopeeCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getShopeeCategories(i)));case n.Tiktok:return this.tiktokCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getTiktokCategories(i)));case n.Lazada:return this.lazadaCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getLazadaCategories(i)));case n.Tokopedia:return this.tokopediaCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getTokopediaCategories(i)));case n.WooCommerce:return this.wooCommerceCategories.asObservable().pipe(p(e=>e.isFirstLoad?s(e.data):this.getWooCommerceCategories(i)));default:return s([])}}getShopeeCategories(t){return this.httpService.get("api/product/shopee/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.shopeeCategories.next(a)}))}getTiktokCategories(t){return this.httpService.get("api/product/tiktok/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.tiktokCategories.next(a)}))}getLazadaCategories(t){return this.httpService.get("api/product/lazada/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.lazadaCategories.next(a)}))}getTokopediaCategories(t){return this.httpService.get("api/product/tokopedia/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.tokopediaCategories.next(a)}))}getWooCommerceCategories(t){return this.httpService.get("api/product/woo/GetCategories",[{key:"ID",value:t}]).pipe(g(e=>{let a={data:e,isFirstLoad:!0};this.wooCommerceCategories.next(a)}))}searchByIdWithParentDFS(t,i){let e=[...t];for(;e.length>0;){let a=e.pop();if(a.id===JSON.stringify(i))return a;if(a.children&&a.children.length>0)for(let c of a.children)c.parent=a,e.push(c)}return null}searchSelectAbleNode(t){let i=null;if(t.selectable)return t;let e=t.children?t.children:[];if(e.length==0)return t;for(let a of e){if(a.children.length==0&&a.selectable)return a;if(i=this.searchSelectAbleNode(a),i)return i}return i}generateCategoryLabel(t){let i="";return t?i=u.getLabelPathTree(t):i="Select a Category",i}};r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=h({token:r,factory:r.\u0275fac,providedIn:"root"});let d=r;return d})();export{S as a};
@@ -1 +1 @@
1
- import{e as ot}from"./chunk-C2LAQOUW.js";import{a as lt}from"./chunk-UE2QO2Y4.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as rt}from"./chunk-5WQ3LCWP.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import{b as it}from"./chunk-G6O6VFLS.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as nt}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import{c as K}from"./chunk-UPRDDI4K.js";import{A as et,h as Z,m as tt}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as Q}from"./chunk-MM7SAZOU.js";import{e as X,g as Y}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as G,q,w as A,x as J,z as U}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as z,Hb as L,Nc as l,Oc as x,Pc as w,Rc as V,Sc as k,Tc as H,Xc as O,Z as v,ac as g,ad as W,bd as j,ca as E,cc as S,ec as F,f as D,fc as R,gc as $,hc as d,ic as o,id as c,jc as a,jd as u,kc as N,kd as I,lb as M,mb as P,ob as p,ra as b,rc as B,v as _,wc as T,ya as C,yc as s,za as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var pt=(i,r)=>({"bg-gradient-danger":i,"bg-gradient-warning":r}),st=()=>["/menu/products/status/notification/detail"],ct=i=>({ID:i});function mt(i,r){if(i&1&&(l(0),c(1,"number"),o(2,"span"),l(3,"s"),a()),i&2){let n=s().$implicit;w(" ",I(1,1,n.DurationInSecond,"1.1-1")," ")}}function dt(i,r){i&1&&l(0," - ")}function ut(i,r){if(i&1&&(o(0,"tr",11)(1,"td")(2,"a",12),N(3,"img",13),o(4,"span"),l(5),a()()(),o(6,"td")(7,"b"),l(8),a(),N(9,"div",14),a(),o(10,"td"),g(11,mt,4,4)(12,dt,1,0),a(),o(13,"td"),l(14),a(),o(15,"td"),l(16),c(17,"date"),a()()),i&2){let n=r.$implicit;d("ngClass",j(14,pt,n.Status==1,n.Status==0)),p(2),d("routerLink",z(17,st))("queryParams",W(18,ct,n.ID)),p(),d("src",O(n.Img),P),p(2),x(n.Name),p(3),x(n.Label),p(),d("innerHTML",n.Message,M),p(2),S(n.DurationInSecond?11:12),p(3),x(n.StatusLabel),p(2),w(" ",I(17,11,n.Created,"dd MMM yyyy HH:mm")," ")}}function ft(i,r){if(i&1){let n=B();o(0,"div",5)(1,"div",15)(2,"app-custom-paginator",16),c(3,"async"),c(4,"async"),T("total",function(){C(n);let t=s(2);return h(t.getRowCount())})("next",function(){C(n);let t=s(2);return h(t.getNotifications())})("previous",function(){C(n);let t=s(2);return h(t.getNotifications())}),a()()()}if(i&2){let n=s(),e=s();p(2),d("filter",e.filter)("totaldata",n==null?null:n.length)("paginationTotal",u(3,4,e.rowCount$))("hasClicked",u(4,6,e.rowCount$))}}function _t(i,r){i&1&&g(0,ft,5,8,"div",5),i&2&&S(r.length>0?0:-1)}var $t=(()=>{let r=class r{constructor(){this.http=b(Q),this.notificationService=b(it),this.filter=new at,this.destroy$=new D}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(E(this.destroy$)).subscribe(e=>{e.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(e=>{this.filter=e.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let e={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",e).pipe(_(t=>t.Data),_(t=>(t=this.setChannelLogoToNotifications(t),t=this.setTimeToSecond(t),t)),v(1))}setTimeToSecond(e){return e=e.map(t=>(t.DurationInSecond=parseInt(t.Duration)/1e3,t)),e}setChannelLogoToNotifications(e){return e=e.map(t=>(t.Img=K.getChannelLogoByTypeId(t.TypeID),t)),e}getRowCount(){let e={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",e).pipe(_(t=>t.Count),v(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=L({type:r,selectors:[["app-notification"]],decls:33,vars:6,consts:[["headerTitle","Product Scan Job","hideSearchBox","true",3,"onSubmit"],["routerLink","/menu/products/status/notificationV2",1,"btn","btn-outline-secondary","btn-lg"],[1,"mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(t,m){if(t&1&&(o(0,"mainpanel",0),T("onSubmit",function(){return m.onFilter()}),o(1,"actions")(2,"a",1),l(3," Scan Job V2 "),a()(),o(4,"filters")(5,"div")(6,"h6",2),l(7,"Channel"),a(),o(8,"app-channel-options-v2",3),H("ngModelChange",function(y){return k(m.filter.ChannelID,y)||(m.filter.ChannelID=y),y}),a()()(),o(9,"content")(10,"div",4)(11,"div",5)(12,"div",6)(13,"div",7)(14,"table",8)(15,"thead",9)(16,"tr",10)(17,"th"),l(18,"Channel"),a(),o(19,"th"),l(20,"Process"),a(),o(21,"th"),l(22,"Duration"),a(),o(23,"th"),l(24,"Status"),a(),o(25,"th"),l(26,"Created"),a()()(),o(27,"tbody"),R(28,ut,18,20,"tr",11,F),c(30,"async"),a()()()()(),g(31,_t,1,1),c(32,"async"),a()()()),t&2){let f;p(8),V("ngModel",m.filter.ChannelID),p(20),$(u(30,2,m.notifications$)),p(3),S((f=u(32,4,m.notifications$))?31:-1,f)}},dependencies:[G,q,et,Z,tt,nt,rt,ot,Y,X,lt,A,U,J],encapsulation:2});let i=r;return i})();export{$t as NotificationComponent};
1
+ import{e as ot}from"./chunk-BZWZ64N5.js";import{a as lt}from"./chunk-WG34QKGX.js";import"./chunk-VVNLTDLG.js";import"./chunk-OHAT7WXU.js";import"./chunk-L4EPB2CQ.js";import"./chunk-GNXSEYJF.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as rt}from"./chunk-ZZYFVEJO.js";import"./chunk-JU4ZP3HI.js";import"./chunk-3T5VLB63.js";import"./chunk-STOW2RQN.js";import"./chunk-GLBJ4Y4T.js";import"./chunk-XTNXL2IY.js";import"./chunk-KOUB5HRK.js";import"./chunk-QETZ5VDX.js";import"./chunk-WIRXMAIF.js";import"./chunk-S22I47XG.js";import"./chunk-3NCMRK7E.js";import{b as it}from"./chunk-GD6ZN56B.js";import"./chunk-A6QXXKPR.js";import"./chunk-6Q4BDCI5.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{b as nt}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-JTKEMQZT.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-7K6U3ABQ.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import{c as K}from"./chunk-UPRDDI4K.js";import{A as et,h as Z,m as tt}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as Q}from"./chunk-D6JH2KV4.js";import{e as X,g as Y}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as U,B as G,q,w as A,y as J}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{$c as z,Hb as L,Nc as l,Oc as x,Pc as w,Rc as V,Sc as k,Tc as H,Xc as O,Z as v,ac as g,ad as W,bd as j,ca as E,cc as S,ec as F,f as D,fc as R,gc as $,hc as d,ic as o,id as c,jc as a,jd as u,kc as N,kd as I,lb as M,mb as P,ob as p,ra as b,rc as B,v as _,wc as T,ya as C,yc as s,za as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var pt=(i,r)=>({"bg-gradient-danger":i,"bg-gradient-warning":r}),st=()=>["/menu/products/status/notification/detail"],ct=i=>({ID:i});function mt(i,r){if(i&1&&(l(0),c(1,"number"),o(2,"span"),l(3,"s"),a()),i&2){let n=s().$implicit;w(" ",I(1,1,n.DurationInSecond,"1.1-1")," ")}}function dt(i,r){i&1&&l(0," - ")}function ut(i,r){if(i&1&&(o(0,"tr",11)(1,"td")(2,"a",12),N(3,"img",13),o(4,"span"),l(5),a()()(),o(6,"td")(7,"b"),l(8),a(),N(9,"div",14),a(),o(10,"td"),g(11,mt,4,4)(12,dt,1,0),a(),o(13,"td"),l(14),a(),o(15,"td"),l(16),c(17,"date"),a()()),i&2){let n=r.$implicit;d("ngClass",j(14,pt,n.Status==1,n.Status==0)),p(2),d("routerLink",z(17,st))("queryParams",W(18,ct,n.ID)),p(),d("src",O(n.Img),P),p(2),x(n.Name),p(3),x(n.Label),p(),d("innerHTML",n.Message,M),p(2),S(n.DurationInSecond?11:12),p(3),x(n.StatusLabel),p(2),w(" ",I(17,11,n.Created,"dd MMM yyyy HH:mm")," ")}}function ft(i,r){if(i&1){let n=B();o(0,"div",5)(1,"div",15)(2,"app-custom-paginator",16),c(3,"async"),c(4,"async"),T("total",function(){C(n);let t=s(2);return h(t.getRowCount())})("next",function(){C(n);let t=s(2);return h(t.getNotifications())})("previous",function(){C(n);let t=s(2);return h(t.getNotifications())}),a()()()}if(i&2){let n=s(),e=s();p(2),d("filter",e.filter)("totaldata",n==null?null:n.length)("paginationTotal",u(3,4,e.rowCount$))("hasClicked",u(4,6,e.rowCount$))}}function _t(i,r){i&1&&g(0,ft,5,8,"div",5),i&2&&S(r.length>0?0:-1)}var $t=(()=>{let r=class r{constructor(){this.http=b(Q),this.notificationService=b(it),this.filter=new at,this.destroy$=new D}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(E(this.destroy$)).subscribe(e=>{e.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(e=>{this.filter=e.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let e={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",e).pipe(_(t=>t.Data),_(t=>(t=this.setChannelLogoToNotifications(t),t=this.setTimeToSecond(t),t)),v(1))}setTimeToSecond(e){return e=e.map(t=>(t.DurationInSecond=parseInt(t.Duration)/1e3,t)),e}setChannelLogoToNotifications(e){return e=e.map(t=>(t.Img=K.getChannelLogoByTypeId(t.TypeID),t)),e}getRowCount(){let e={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",e).pipe(_(t=>t.Count),v(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=L({type:r,selectors:[["app-notification"]],decls:33,vars:6,consts:[["headerTitle","Product Scan Job","hideSearchBox","true",3,"onSubmit"],["routerLink","/menu/products/status/notificationV2",1,"btn","btn-outline-secondary","btn-lg"],[1,"mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(t,m){if(t&1&&(o(0,"mainpanel",0),T("onSubmit",function(){return m.onFilter()}),o(1,"actions")(2,"a",1),l(3," Scan Job V2 "),a()(),o(4,"filters")(5,"div")(6,"h6",2),l(7,"Channel"),a(),o(8,"app-channel-options-v2",3),H("ngModelChange",function(y){return k(m.filter.ChannelID,y)||(m.filter.ChannelID=y),y}),a()()(),o(9,"content")(10,"div",4)(11,"div",5)(12,"div",6)(13,"div",7)(14,"table",8)(15,"thead",9)(16,"tr",10)(17,"th"),l(18,"Channel"),a(),o(19,"th"),l(20,"Process"),a(),o(21,"th"),l(22,"Duration"),a(),o(23,"th"),l(24,"Status"),a(),o(25,"th"),l(26,"Created"),a()()(),o(27,"tbody"),R(28,ut,18,20,"tr",11,F),c(30,"async"),a()()()()(),g(31,_t,1,1),c(32,"async"),a()()()),t&2){let f;p(8),V("ngModel",m.filter.ChannelID),p(20),$(u(30,2,m.notifications$)),p(3),S((f=u(32,4,m.notifications$))?31:-1,f)}},dependencies:[G,q,et,Z,tt,nt,rt,ot,Y,X,lt,A,U,J],encapsulation:2});let i=r;return i})();export{$t as NotificationComponent};
@@ -1 +1 @@
1
- import{a as re,b as pe}from"./chunk-AHMFSCTX.js";import"./chunk-6F62N7RZ.js";import"./chunk-LR2YCE6M.js";import{a as ne,b as ie,d as ae,e as oe}from"./chunk-C2LAQOUW.js";import{a as le}from"./chunk-27DIE2YS.js";import{b as te}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-SPLGZRGH.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{h as X}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import{c as K}from"./chunk-UPRDDI4K.js";import{A as ee,h as Y,m as Z}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as Q}from"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as G,w as k,x as H,y as U}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as B,Nb as P,Nc as s,Oc as f,Pc as y,Rc as z,Sc as A,Tc as V,Z as D,_c as J,aa as M,ac as R,bc as T,cc as $,dc as F,fc as j,g as L,gc as O,hc as h,ic as a,id as c,jc as o,jd as d,kc as u,kd as W,ma as w,mb as S,ob as p,ra as g,rc as q,v as I,wc as v,ya as E,yc as x,za as N}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import{a as _}from"./chunk-66YHNWRR.js";var b=(()=>{let t=class t{constructor(){this.httpService=g(Q),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(M(n=>this.getLogs$(n).pipe()))}getLogs$(n){return this.httpService.post("/api/Channel/GetChannelLogPaged",n)}onPaginationChange(n){let e=this._pageination.value;e.PageNumber=n.pageIndex+1,this._pageination.next(e)}onFilter(n){let e=this._pageination.value;e.PageNumber=1,e=_(_({},e),n),this._pageination.next(e)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let i=t;return i})();function se(i,t){if(i&1&&(a(0,"span",10),u(1,"img",11),o(),s(2)),i&2){let l=t.item;p(),h("src",l.Img,S)("alt",l.Name),p(),y(" ",l.Name," ")}}function ce(i,t){if(i&1&&(a(0,"tr")(1,"td"),u(2,"img",17),a(3,"span"),s(4),o()(),a(5,"td")(6,"span",18),s(7),c(8,"json"),o()(),a(9,"td"),s(10),c(11,"json"),o(),a(12,"td"),s(13),c(14,"date"),o()()),i&2){let l=t.$implicit;p(2),h("src",l.Img,S),p(2),y(" ",l.ChannelName," "),p(3),f(d(8,5,l.Request)),p(3),f(d(11,7,l.Response)),p(3),f(W(14,9,l.Created,"dd-MM-yyyy hh:mm:ss"))}}function de(i,t){if(i&1){let l=q();a(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),s(5,"Channel"),o(),a(6,"th"),s(7,"Request"),o(),a(8,"th"),s(9,"Response"),o(),a(10,"th",15),s(11,"Created"),o()()(),a(12,"tbody"),j(13,ce,15,12,"tr",null,F),c(15,"async"),o()(),a(16,"mat-paginator",16),c(17,"async"),c(18,"async"),c(19,"async"),c(20,"async"),v("page",function(e){E(l);let r=x();return N(r.channelLogService.onPaginationChange(e))}),o()()}if(i&2){let l,n,e,r,m=x();p(13),O((l=d(15,3,m.channelLogs$))==null?null:l.Data),p(3),h("length",(n=d(17,5,m.channelLogs$))==null?null:n.Count)("pageSize",(e=d(18,7,m.filter$))==null?null:e.RowCount)("pageIndex",(r=d(19,9,m.filter$))!=null&&r.PageNumber?0:((r=d(20,11,m.filter$))==null?null:r.PageNumber)-1)}}function he(i,t){i&1&&(a(0,"div",9),u(1,"app-empty-state"),o())}var je=(()=>{let t=class t{constructor(){this.channelLogService=g(b),this.authService=g(X),this.channelOptions=this.authService.getChannels(),this.channelLogs$=this.channelLogService.log$.pipe(I(n=>(n.Data?n.Data=n.Data.map(e=>(e.Response=e.Response?JSON.parse(e.Response):"",e.Request=e.Request?JSON.parse(e.Request):"",e.Img=K.getChannelLogoByTypeId(e.TypeID),e)):n.Data=[],n)),D(1)),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=B({type:t,selectors:[["app-channel-log"]],features:[J([b])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[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,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(e,r){if(e&1&&(a(0,"mainpanel",0),v("onSubmit",function(){return r.onSubmitFilter()}),a(1,"filters")(2,"div",1)(3,"div")(4,"label",2),s(5,"Channel"),o(),a(6,"ng-select",3),V("ngModelChange",function(C){return A(r.channelID,C)||(r.channelID=C),C}),P(7,se,3,3,"ng-template",4),o()()()(),a(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),R(12,de,21,13,"div",8),c(13,"async"),T(14,he,2,0,"div",9),o()()()()()),e&2){let m;h("hideSearchBox",!0),p(6),h("clearable",!0)("items",r.channelOptions),z("ngModel",r.channelID),p(6),$(((m=d(13,5,r.channelLogs$))==null||m.Data==null?null:m.Data.length)>0?12:14)}},dependencies:[G,te,le,pe,re,oe,ae,ne,ie,ee,Y,Z,k,U,H],encapsulation:2});let i=t;return i})();export{je as ChannelLogComponent};
1
+ import{a as re,b as pe}from"./chunk-TVEI5B2O.js";import"./chunk-VG66LDXQ.js";import"./chunk-LR2YCE6M.js";import{a as ne,b as ie,d as ae,e as oe}from"./chunk-BZWZ64N5.js";import{a as le}from"./chunk-27DIE2YS.js";import{b as te}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-JRCXHF2X.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{h as X}from"./chunk-7K6U3ABQ.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import{c as K}from"./chunk-UPRDDI4K.js";import{A as ee,h as Y,m as Z}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as Q}from"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{B as G,w as k,y as H,z as U}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as B,Nb as P,Nc as s,Oc as f,Pc as y,Rc as z,Sc as A,Tc as V,Z as D,_c as J,aa as M,ac as R,bc as T,cc as $,dc as F,fc as j,g as L,gc as O,hc as h,ic as a,id as c,jc as o,jd as d,kc as u,kd as W,ma as w,mb as S,ob as p,ra as g,rc as q,v as I,wc as v,ya as E,yc as x,za as N}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import{a as _}from"./chunk-66YHNWRR.js";var b=(()=>{let t=class t{constructor(){this.httpService=g(Q),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(M(n=>this.getLogs$(n).pipe()))}getLogs$(n){return this.httpService.post("/api/Channel/GetChannelLogPaged",n)}onPaginationChange(n){let e=this._pageination.value;e.PageNumber=n.pageIndex+1,this._pageination.next(e)}onFilter(n){let e=this._pageination.value;e.PageNumber=1,e=_(_({},e),n),this._pageination.next(e)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let i=t;return i})();function se(i,t){if(i&1&&(a(0,"span",10),u(1,"img",11),o(),s(2)),i&2){let l=t.item;p(),h("src",l.Img,S)("alt",l.Name),p(),y(" ",l.Name," ")}}function ce(i,t){if(i&1&&(a(0,"tr")(1,"td"),u(2,"img",17),a(3,"span"),s(4),o()(),a(5,"td")(6,"span",18),s(7),c(8,"json"),o()(),a(9,"td"),s(10),c(11,"json"),o(),a(12,"td"),s(13),c(14,"date"),o()()),i&2){let l=t.$implicit;p(2),h("src",l.Img,S),p(2),y(" ",l.ChannelName," "),p(3),f(d(8,5,l.Request)),p(3),f(d(11,7,l.Response)),p(3),f(W(14,9,l.Created,"dd-MM-yyyy hh:mm:ss"))}}function de(i,t){if(i&1){let l=q();a(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),s(5,"Channel"),o(),a(6,"th"),s(7,"Request"),o(),a(8,"th"),s(9,"Response"),o(),a(10,"th",15),s(11,"Created"),o()()(),a(12,"tbody"),j(13,ce,15,12,"tr",null,F),c(15,"async"),o()(),a(16,"mat-paginator",16),c(17,"async"),c(18,"async"),c(19,"async"),c(20,"async"),v("page",function(e){E(l);let r=x();return N(r.channelLogService.onPaginationChange(e))}),o()()}if(i&2){let l,n,e,r,m=x();p(13),O((l=d(15,3,m.channelLogs$))==null?null:l.Data),p(3),h("length",(n=d(17,5,m.channelLogs$))==null?null:n.Count)("pageSize",(e=d(18,7,m.filter$))==null?null:e.RowCount)("pageIndex",(r=d(19,9,m.filter$))!=null&&r.PageNumber?0:((r=d(20,11,m.filter$))==null?null:r.PageNumber)-1)}}function he(i,t){i&1&&(a(0,"div",9),u(1,"app-empty-state"),o())}var je=(()=>{let t=class t{constructor(){this.channelLogService=g(b),this.authService=g(X),this.channelOptions=this.authService.getChannels(),this.channelLogs$=this.channelLogService.log$.pipe(I(n=>(n.Data?n.Data=n.Data.map(e=>(e.Response=e.Response?JSON.parse(e.Response):"",e.Request=e.Request?JSON.parse(e.Request):"",e.Img=K.getChannelLogoByTypeId(e.TypeID),e)):n.Data=[],n)),D(1)),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=B({type:t,selectors:[["app-channel-log"]],features:[J([b])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[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,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(e,r){if(e&1&&(a(0,"mainpanel",0),v("onSubmit",function(){return r.onSubmitFilter()}),a(1,"filters")(2,"div",1)(3,"div")(4,"label",2),s(5,"Channel"),o(),a(6,"ng-select",3),V("ngModelChange",function(C){return A(r.channelID,C)||(r.channelID=C),C}),P(7,se,3,3,"ng-template",4),o()()()(),a(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),R(12,de,21,13,"div",8),c(13,"async"),T(14,he,2,0,"div",9),o()()()()()),e&2){let m;h("hideSearchBox",!0),p(6),h("clearable",!0)("items",r.channelOptions),z("ngModel",r.channelID),p(6),$(((m=d(13,5,r.channelLogs$))==null||m.Data==null?null:m.Data.length)>0?12:14)}},dependencies:[G,te,le,pe,re,oe,ae,ne,ie,ee,Y,Z,k,U,H],encapsulation:2});let i=t;return i})();export{je as ChannelLogComponent};
@@ -1 +1 @@
1
- import{a as M,b as O,c as R}from"./chunk-2K5AP6IZ.js";import{a as L}from"./chunk-XLQGQESJ.js";import"./chunk-A6QXXKPR.js";import{b as E}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-3SCX7IMW.js";import"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{c as C}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as A,x as B}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as v,Nc as b,Rc as h,Sc as u,Tc as y,Z as S,ac as s,cc as f,ea as F,hc as c,ic as o,id as T,jc as p,jd as _,kc as D,ob as l,ra as m,wc as P,yc as w}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function W(r,i){}function k(r,i){if(r&1&&(o(0,"div",6)(1,"div",7),D(2,"app-table-report",8),p()()),r&2){let g=i,e=w();l(2),c("result",g.Body)("header",g.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var V=(()=>{let i=class i{constructor(){this.reportOrderService=m(O),this.datePipe=m(B),this.filter=new M}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=C.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=C.formatTitleFromDate(this.filter.From,this.filter.To),a=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":a+"-"} ${t})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe(F(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(S())}onFilter(){this.updatePageTitle(),this.initData()}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=v({type:i,selectors:[["app-all"]],decls:15,vars:10,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(a,t){if(a&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),b(4,"From/To"),p(),o(5,"div",2)(6,"datepicker",3),y("dateChange",function(n){return u(t.filter.From,n)||(t.filter.From=n),n}),p()(),o(7,"div")(8,"datepicker",4),y("dateChange",function(n){return u(t.filter.To,n)||(t.filter.To=n),n}),p()()()(),o(9,"content")(10,"div",5),s(11,W,0,0),T(12,"async"),s(13,k,3,4,"div",6),T(14,"async"),p()()()),a&2){let d;c("headerTitle",t.pageTitle)("hideSearchBox",!0),l(6),h("date",t.filter.From),l(2),h("date",t.filter.To),l(3),f(_(12,6,t.pageLoader$)?11:-1),l(2),f((d=_(14,8,t.reportData$))?13:-1,d)}},dependencies:[E,L,R,A],encapsulation:2});let r=i;return r})();export{V as AllComponent};
1
+ import{a as M,b as O,c as R}from"./chunk-S3H2JVI7.js";import{a as L}from"./chunk-PV4OJSZI.js";import"./chunk-A6QXXKPR.js";import{b as E}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-3SCX7IMW.js";import"./chunk-K4Q33QIR.js";import"./chunk-JRCXHF2X.js";import"./chunk-M27MYADT.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{c as C}from"./chunk-UPRDDI4K.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{w as A,y as B}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as v,Nc as b,Rc as h,Sc as u,Tc as y,Z as S,ac as s,cc as f,ea as F,hc as c,ic as o,id as T,jc as p,jd as _,kc as D,ob as l,ra as m,wc as P,yc as w}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function W(r,i){}function k(r,i){if(r&1&&(o(0,"div",6)(1,"div",7),D(2,"app-table-report",8),p()()),r&2){let g=i,e=w();l(2),c("result",g.Body)("header",g.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var V=(()=>{let i=class i{constructor(){this.reportOrderService=m(O),this.datePipe=m(B),this.filter=new M}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=C.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=C.formatTitleFromDate(this.filter.From,this.filter.To),a=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":a+"-"} ${t})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe(F(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(S())}onFilter(){this.updatePageTitle(),this.initData()}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=v({type:i,selectors:[["app-all"]],decls:15,vars:10,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(a,t){if(a&1&&(o(0,"mainpanel",0),P("onSubmit",function(){return t.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),b(4,"From/To"),p(),o(5,"div",2)(6,"datepicker",3),y("dateChange",function(n){return u(t.filter.From,n)||(t.filter.From=n),n}),p()(),o(7,"div")(8,"datepicker",4),y("dateChange",function(n){return u(t.filter.To,n)||(t.filter.To=n),n}),p()()()(),o(9,"content")(10,"div",5),s(11,W,0,0),T(12,"async"),s(13,k,3,4,"div",6),T(14,"async"),p()()()),a&2){let d;c("headerTitle",t.pageTitle)("hideSearchBox",!0),l(6),h("date",t.filter.From),l(2),h("date",t.filter.To),l(3),f(_(12,6,t.pageLoader$)?11:-1),l(2),f((d=_(14,8,t.reportData$))?13:-1,d)}},dependencies:[E,L,R,A],encapsulation:2});let r=i;return r})();export{V as AllComponent};
@@ -0,0 +1 @@
1
+ import{a as G,b as U}from"./chunk-VG66LDXQ.js";import{a as R,b as $,d as ft,e as ut,f as ht,g as Ct,i as N,j as _t}from"./chunk-IA7NJXJD.js";import{a as L}from"./chunk-UEXWQT5J.js";import{c as Mt}from"./chunk-R2XKB6UH.js";import{a as at}from"./chunk-UDNUDL5Z.js";import{f as ot}from"./chunk-CVHFVFZQ.js";import{c as gt}from"./chunk-IZZY74PN.js";import{a as ct}from"./chunk-AGBJEXIM.js";import{b as v,c as lt}from"./chunk-UPRDDI4K.js";import{A as st,h as mt,m as pt}from"./chunk-6UM4NHOR.js";import{b as rt,e as dt}from"./chunk-D6JH2KV4.js";import{A as it,B as A,q as F}from"./chunk-CGSMHTKB.js";import{Ac as E,Hb as S,Ia as w,Jc as X,Nc as c,Oc as T,Pc as b,Rc as Z,Sc as tt,Tc as et,_b as H,ac as h,ad as V,bd as W,cc as C,dc as z,dd as nt,ec as J,fc as I,gc as D,hc as m,ic as l,id as B,jc as r,jd as j,kc as g,lb as q,mb as k,ob as d,ra as _,rc as x,tb as P,wc as u,ya as M,yc as p,za as y,zc as Q}from"./chunk-OHGMB7HJ.js";var O=(function(e){return e.Tokopedia="https://seller.tokopedia.com",e.Shoope="https://seller.shopee.co.id",e.Tiktok="https://seller-id.tiktok.com",e.WooCommerce="https://woocommerce.dealpos.app",e.Lazada="https://sellercenter.lazada.co.id",e})(O||{});var K={Success:"Success",Info:"Info",Warning:"Warning",Error:"Error"};var Tt=[[["header"]],[["content"]],[["footer"]]],vt=["header","content","footer"],Ot=(e,o)=>({bodyScrollable:e,hideScrollbar:o}),kt=(e,o,t,a)=>({"bg-success":e,"bg-warning":o,"bg-info":t,"bg-danger":a}),St=e=>({"mx-auto":e}),wt=(e,o)=>({"show-footer":e,"p-0":o});function Pt(e,o){if(e&1){let t=x();l(0,"div",7),u("click",function(){M(t);let i=p();return y(i.onBack.emit())}),l(1,"a",8),g(2,"i",9),r()()}}function It(e,o){if(e&1){let t=x();l(0,"div")(1,"a",10),u("click",function(){M(t);let i=p();return y(i.onClose.emit())}),g(2,"i",11),r()()}}function Dt(e,o){if(e&1){let t=x();l(0,"a",14),u("click",function(){M(t);let i=p(2);return y(i.onCancel.emit())}),c(1),r()}if(e&2){let t=p(2);d(),b(" ",t.config!=null&&t.config.cancelText?t.config==null?null:t.config.cancelText:"Cancel")}}function Et(e,o){if(e&1){let t=x();l(0,"button",15),u("click",function(){M(t);let i=p(2);return y(i.onOk.emit())})("keyup.F2",function(){M(t);let i=p(2);return y(i.onOk.emit())}),r()}if(e&2){let t=p(2);m("disabled",!(t.config!=null&&t.config.validated)||!t.dynamicValidated)("innerHTML",t.config!=null&&t.config.okText?t.config==null?null:t.config.okText:"Ok (F2)",q)}}function Vt(e,o){if(e&1&&(l(0,"mat-dialog-actions",6),E(1,2),h(2,Dt,2,1,"a",12),h(3,Et,1,2,"button",13),r()),e&2){let t=p();d(2),C(t.config!=null&&t.config.hideCancel?-1:2),d(),C(t.config!=null&&t.config.hideOk?-1:3)}}var Y=class{constructor(){this.title="New Modal",this.okText="Ok (F2)",this.cancelText="Cancel",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=K.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.noPadding=!1}},bt=(()=>{let o=class o{constructor(){this.dynamicValidated=!0,this.onOk=new P,this.onCancel=new P,this.onClose=new P,this.onBack=new P,this.headerType=K}ngOnInit(){this.config==null&&(this.config=new Y)}onKeyup(a){this.config?.disableKeyup||(a.code=="F2"&&this.onOk.emit("F2"),(a.code=="Enter"||a.code=="NumpadEnter")&&this.onOk.emit("Enter"))}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=S({type:o,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:vt,decls:11,vars:23,consts:[["id","modal_material",1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"keyup","ngClass"],["mat-dialog-title","",1,"d-flex","w-100","justify-content-between","modal-header","position-relative",3,"ngClass"],[1,"back-button","position-absolute","pointer","d-print-none"],[1,"d-flex","flex-row","d-print-none","align-items-center",3,"ngClass"],[1,"fw-normal"],[1,"modal-body","w-100",3,"ngClass"],[1,"w-100","py-7","border-top","d-flex","justify-content-end","d-print-none"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fa-solid","fa-xmark","fa-lg","text-primary"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3"],["data-cy","btn-ok",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"disabled","innerHTML"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],["data-cy","btn-ok",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click","keyup.F2","disabled","innerHTML"]],template:function(i,n){i&1&&(Q(Tt),l(0,"div",0),u("keyup",function(f){return n.onKeyup(f)}),l(1,"div",1),h(2,Pt,3,0,"div",2),l(3,"div",3)(4,"h4",4),c(5),r(),E(6),r(),h(7,It,3,0,"div"),r(),l(8,"mat-dialog-content",5),E(9,1),r(),h(10,Vt,4,2,"mat-dialog-actions",6),r()),i&2&&(X("width",n.config==null?null:n.config.customWidth),m("ngClass",W(10,Ot,n.config==null?null:n.config.bodyScrollable,n.config==null?null:n.config.hideScrollbar)),d(),m("ngClass",nt(13,kt,n.headerType.Success==(n.config==null?null:n.config.headerType),n.headerType.Warning==(n.config==null?null:n.config.headerType),n.headerType.Info==(n.config==null?null:n.config.headerType),n.headerType.Error==(n.config==null?null:n.config.headerType))),d(),C(n.config!=null&&n.config.eMoney?2:-1),d(),m("ngClass",V(18,St,n.config==null?null:n.config.eMoney)),d(2),T(n.config==null?null:n.config.title),d(2),C(n.config!=null&&n.config.hideClose?-1:7),d(),m("ngClass",W(20,wt,!(n.config!=null&&n.config.hideFooter),n.config==null?null:n.config.noPadding)),d(2),C(n.config!=null&&n.config.hideFooter?-1:10))},dependencies:[A,F,Ct,ft,ht,ut],styles:[".mat-mdc-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-mdc-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-mdc-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:15px!important}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}@media (max-width: 576px){ .dialog-filter .modal-material{width:100%!important} .dialog-filter mat-dialog-actions{position:sticky;bottom:0;background:#fff} .dialog-filter .modal-material.d-flex.align-items-start.flex-column.position-relative.maxHeight.bodyScrollable.maxHeight.bodyScrollable .modal-body{max-height:100%!important;overflow-y:auto}}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px;overflow-y:auto}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]});let e=o;return e})();var Ft=e=>({"is-disabled":e});function At(e,o){if(e&1&&(l(0,"tr")(1,"td",8),c(2),r(),l(3,"td",8),c(4),r(),l(5,"td",9)(6,"p",10),c(7,"Product Not in Channel!"),r()()()),e&2){let t=p().$implicit;d(2),b(" ",t==null?null:t.Model," "),d(2),b(" ",t==null?null:t.Code," ")}}function Lt(e,o){if(e&1&&(l(0,"td",8),c(1),r()),e&2){let t=p(3).$implicit;H("rowspan",t.Channel.length),d(),b(" ",t==null?null:t.Model," ")}}function Rt(e,o){if(e&1&&(l(0,"td",8),c(1),r()),e&2){let t=p(3).$implicit;H("rowspan",t.Channel.length),d(),b(" ",t==null?null:t.Code," ")}}function $t(e,o){if(e&1){let t=x();l(0,"tr"),h(1,Lt,2,2,"td",8),h(2,Rt,2,2,"td",8),l(3,"td",8)(4,"div",11)(5,"a",12),g(6,"img",13),r(),l(7,"div",14),c(8),r()()(),l(9,"td",8),c(10),B(11,"number"),r(),l(12,"td",15),c(13),B(14,"number"),r(),l(15,"td",16)(16,"div",17)(17,"button",18),u("click",function(){let i=M(t).$implicit,n=p(2).$implicit,s=p();return y(s.onDetach(i,n))}),g(18,"i",19),l(19,"span",20),c(20,"Detach"),r()(),l(21,"a",21),g(22,"i",22),l(23,"span",20),c(24,"Edit"),r()()()()()}if(e&2){let t=o.$implicit,a=o.$index,i=p(3);d(),C(a==0?1:-1),d(),C(a==0?2:-1),d(3),m("href",t.Url,k)("title",t.Title),d(),m("src",i.getChannelLogo(t.TypeID),k),d(),m("matTooltip",(t==null||t.Name==null?null:t.Name.length)>40?t==null?null:t.Name:""),d(),b(" ",t.Name," "),d(2),T(j(11,12,t.Price)),d(3),T(j(14,14,t.Inventory)),d(8),m("href",i.getHyperlinkSellerCenter(t),k)("ngClass",V(16,Ft,t.TypeID==i.channelType.KalCare))("matTooltip",t.TypeID!=i.channelType.KalCare?"Edit this product in Seller Center, inventory changes must be done via DEALPOS":"")}}function Nt(e,o){if(e&1&&I(0,$t,25,18,"tr",null,z),e&2){let t=p().$implicit;D(t==null?null:t.Channel)}}function Ht(e,o){if(e&1&&h(0,At,8,2,"tr")(1,Nt,2,0),e&2){let t=o.$implicit;C(!t.Channel||t.Channel.length<1?0:1)}}var fe=(()=>{let o=class o{constructor(){this.data=_($),this.dialogRef=_(R),this.httpService=_(dt),this.toastr=_(rt),this.variants=w([]),this.channelType=v;let a=this.data;this.variants.set(this.data.variants),this.title=a.title}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new N,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0,this.modalConfig.hideFooter=!0,this.modalConfig.customWidth="850px"}onDetach(a,i){let n={ChannelID:a.ChannelID,ChannelItemID:a.ChannelItemID,ChannelVariationID:a.ChannelVariationID};this.httpService.post(ct.DetachVariant,[n]).subscribe(s=>{this.toastr.success(s.Message,"Success"),this.updateVariantAfterDetach(i,a.ChannelVariationID)})}updateVariantAfterDetach(a,i){this.variants.update(n=>{let s=n.findIndex(f=>f.ID===a.ID);return s!==-1&&(n[s].Channel=n[s].Channel.filter(f=>f.ChannelVariationID!==i)),[...n]})}getChannelLogo(a){return lt.getChannelLogoByTypeId(a)}getHyperlinkSellerCenter(a){let i="javascript:void(0)";switch(a.TypeID){case v.Shopee:i=`${O.Shoope}/portal/product/${a.ChannelItemID}`;break;case v.Tiktok:i=`${O.Tiktok}/product/edit/${a.ChannelItemID}`;break;case v.Tokopedia:i=`${O.Tokopedia}/edit-product/${a.ChannelItemID}`;break;case v.WooCommerce:i=`${O.WooCommerce}/wp-admin/post.php?post=${a.ChannelItemID}&action=edit`;break;case v.Lazada:i=`${O.Lazada}/apps/product/publish?productId=${a.ChannelItemID}`;break}return i}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=S({type:o,selectors:[["app-modal-variant"]],decls:27,vars:1,consts:[[3,"onClose","onCancel","config"],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"text-start","sticky-top"],[1,"d-flex","align-items-center"],["matTooltip","Variant from POS",1,"fas","fa-info-circle","ms-1"],["matTooltip","Product and Variant from each Channel",1,"fas","fa-info-circle","ms-1"],[1,"text-start","sticky-top",2,"width","0%"],[1,"text-start"],["colspan","3",1,"text-center"],[1,"my-auto"],[1,"d-flex"],["target","_blank",1,"me-1",3,"href","title"],[2,"width","20px","height","20px",3,"src"],[1,"text-ellipsis","ps-2",2,"max-width","18vw",3,"matTooltip"],[1,"text-center"],[1,"text-end"],[1,"d-flex","align-items-center","justify-content-end"],[1,"btn","btn-small","btn-light","px-4","py-2","me-3",3,"click"],[1,"fa-sharp","fa-link-slash","me-2",2,"font-size","10px"],[1,"fs-6"],["target","_blank",1,"btn","btn-small","btn-light","px-4","py-2",3,"href","ngClass","matTooltip"],[1,"fa-solid","fa-edit","me-2",2,"font-size","10px"]],template:function(i,n){i&1&&(l(0,"modal-material",0),u("onClose",function(){return n.dialogRef.close()})("onCancel",function(){return n.dialogRef.close()}),l(1,"content")(2,"table",1)(3,"thead",2)(4,"tr")(5,"th",3)(6,"div",4)(7,"span"),c(8,"VARIANT"),r(),l(9,"sup"),g(10,"i",5),r()()(),l(11,"th",3),c(12,"SKU"),r(),l(13,"th",3)(14,"div",4)(15,"span"),c(16,"PRODUCT"),r(),l(17,"sup"),g(18,"i",6),r()()(),l(19,"th",3),c(20,"PRICE"),r(),l(21,"th",7),c(22,"INVENTORY"),r(),g(23,"th",3),r()(),l(24,"tbody"),I(25,Ht,2,1,null,null,z),r()()()()),i&2&&(m("config",n.modalConfig),d(25),D(n.variants()))},dependencies:[A,F,L,gt,bt,it],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fff!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}a.is-disabled[_ngcontent-%COMP%]{color:gray;cursor:default}a.is-disabled[_ngcontent-%COMP%]:hover{text-decoration:none}"]});let e=o;return e})();function Wt(e,o){if(e&1&&(l(0,"mat-option",5)(1,"div"),g(2,"img",6),l(3,"span"),c(4),r()()()),e&2){let t=o.$implicit;m("value",t.ChannelID),d(2),m("src",t.logo,k),d(2),T(t.Title)}}var Le=(()=>{let o=class o{constructor(){this.dialogRef=_(R),this.channels=_($),this.channelIds=w([]),this.channelOptions=w([])}ngOnInit(){this.initModalConfig();let a=this.channels.filter((i,n,s)=>s.findIndex(f=>f.ChannelID===i.ChannelID)===n);this.channelOptions.set(a)}initModalConfig(){this.modalConfig=new N,this.modalConfig.title="Detach Product",this.modalConfig.okText="Save"}onClose(){this.dialogRef.close()}onSave(){let a=this.channels.filter(i=>this.channelIds().includes(i.ChannelID)).map(i=>({ChannelID:i.ChannelID,ChannelItemID:i.ChannelItemID}));this.dialogRef.close(a)}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=S({type:o,selectors:[["app-modal-detach-product"]],decls:9,vars:4,consts:[[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mb-2","fw-bold"],["appearance","outline",1,"w-100"],["name","channelid","placeholder","Channel",1,"mat-select-channel",3,"ngModelChange","ngModel","multiple"],[1,"channel-option",3,"value"],[2,"width","18px","margin-right","10px",3,"src"]],template:function(i,n){i&1&&(l(0,"modal-material",0),u("onClose",function(){return n.onClose()})("onCancel",function(){return n.onClose()})("onOk",function(){return n.onSave()}),l(1,"div",1)(2,"div")(3,"label",2),c(4,"Select a Channel"),r(),l(5,"mat-form-field",3)(6,"mat-select",4),et("ngModelChange",function(f){return tt(n.channelIds,f)||(n.channelIds=f),f}),I(7,Wt,5,3,"mat-option",5,J),r()()()()()),i&2&&(m("dynamicValidated",n.channelIds().length>0)("config",n.modalConfig),d(6),Z("ngModel",n.channelIds),m("multiple",!0),d(),D(n.channelOptions()))},dependencies:[_t,at,ot,U,G,Mt,st,mt,pt,L],encapsulation:2});let e=o;return e})();export{fe as a,Le as b};
@@ -1 +1 @@
1
- import{a as P}from"./chunk-BC6LHZWP.js";import{b as B}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-MM7SAZOU.js";import{b as M,e as _,g as A}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as L,w as D,x as C,y as R,z as b}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as f,Nc as i,Oc as m,Pc as E,Z as S,ac as x,cc as g,hc as I,ic as e,id as l,jc as t,jd as c,kd as u,ob as a,ra as v,v as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(d,r){if(d&1&&(e(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h5"),i(6,"General"),t()(),e(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"label"),i(12,"Created"),t(),e(13,"div")(14,"span"),i(15),l(16,"date"),t()()()(),e(17,"div",9)(18,"div",10)(19,"label"),i(20,"Duration"),t(),e(21,"div")(22,"span"),i(23),l(24,"number"),t()()()(),e(25,"div",9)(26,"div",10)(27,"label"),i(28,"Response Code"),t(),e(29,"div")(30,"span"),i(31),t()()()()()()()()(),e(32,"div",3)(33,"div",9)(34,"div",5)(35,"div",6)(36,"h5"),i(37,"Request"),t()(),e(38,"div",7)(39,"div",11)(40,"div",12)(41,"pre"),i(42),l(43,"json"),t()()()()()(),e(44,"div",9)(45,"div",5)(46,"div",6)(47,"h5"),i(48,"Response"),t()(),e(49,"div",7)(50,"div",13)(51,"div",12)(52,"pre"),i(53),l(54,"json"),t()()()()()()()()),d&2){let o=r;a(15),m(u(16,5,o==null?null:o._source["@timestamp"],"dd MMM yyyy HH:mm:ss")),a(8),E("",u(24,8,o==null?null:o.DurationInSecond,"1.1-1")," s"),a(8),m(o==null?null:o.respCode),a(11),m(c(43,11,o==null?null:o.req)),a(11),m(c(54,13,o==null?null:o.res))}}var z=(()=>{let r=class r{constructor(){this.inventoryAsyncServiceLog=v(P),this.activatedRoute=v(M)}ngOnInit(){let p=this.activatedRoute.snapshot.queryParams;this.initInventoryLog(p?.ID)}initInventoryLog(p){this.inventoryLog$=this.inventoryAsyncServiceLog.getInventoryAsyncLogDetail(p).pipe(h(n=>{let s=JSON.parse(n.hits[0]._source?.log?.response);return n.hits[0].DurationInSecond=parseInt(s.Duration)/1e3,n.hits[0].respCode=s?.StatusCode,n.hits[0].req=JSON.parse(n.hits[0]._source?.log?.request),n.hits[0].res=s,n?.hits[0]}),S(1))}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=f({type:r,selectors:[["app-inventory-async-detail"]],decls:7,vars:5,consts:[["headerTitle","Product Inventory Sync Detail",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"]],template:function(n,s){if(n&1&&(e(0,"mainpanel",0)(1,"actions")(2,"a",1),i(3,"Back"),t()(),e(4,"content"),x(5,q,55,15,"div",2),l(6,"async"),t()()),n&2){let y;I("hideSearchBox",!0)("hideSearchDropdown",!0),a(5),g((y=c(6,3,s.inventoryLog$))?5:-1,y)}},dependencies:[L,B,A,_,D,R,b,C],encapsulation:2});let d=r;return d})();export{z as InventoryAsyncDetailComponent};
1
+ import{a as P}from"./chunk-C37O5TBF.js";import{b as B}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-D6JH2KV4.js";import{b as M,e as _,g as A}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as b,B as L,w as D,y as C,z as R}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as f,Nc as i,Oc as m,Pc as E,Z as S,ac as x,cc as g,hc as I,ic as e,id as l,jc as t,jd as c,kd as u,ob as a,ra as v,v as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(d,r){if(d&1&&(e(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h5"),i(6,"General"),t()(),e(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"label"),i(12,"Created"),t(),e(13,"div")(14,"span"),i(15),l(16,"date"),t()()()(),e(17,"div",9)(18,"div",10)(19,"label"),i(20,"Duration"),t(),e(21,"div")(22,"span"),i(23),l(24,"number"),t()()()(),e(25,"div",9)(26,"div",10)(27,"label"),i(28,"Response Code"),t(),e(29,"div")(30,"span"),i(31),t()()()()()()()()(),e(32,"div",3)(33,"div",9)(34,"div",5)(35,"div",6)(36,"h5"),i(37,"Request"),t()(),e(38,"div",7)(39,"div",11)(40,"div",12)(41,"pre"),i(42),l(43,"json"),t()()()()()(),e(44,"div",9)(45,"div",5)(46,"div",6)(47,"h5"),i(48,"Response"),t()(),e(49,"div",7)(50,"div",13)(51,"div",12)(52,"pre"),i(53),l(54,"json"),t()()()()()()()()),d&2){let o=r;a(15),m(u(16,5,o==null?null:o._source["@timestamp"],"dd MMM yyyy HH:mm:ss")),a(8),E("",u(24,8,o==null?null:o.DurationInSecond,"1.1-1")," s"),a(8),m(o==null?null:o.respCode),a(11),m(c(43,11,o==null?null:o.req)),a(11),m(c(54,13,o==null?null:o.res))}}var z=(()=>{let r=class r{constructor(){this.inventoryAsyncServiceLog=v(P),this.activatedRoute=v(M)}ngOnInit(){let p=this.activatedRoute.snapshot.queryParams;this.initInventoryLog(p?.ID)}initInventoryLog(p){this.inventoryLog$=this.inventoryAsyncServiceLog.getInventoryAsyncLogDetail(p).pipe(h(n=>{let s=JSON.parse(n.hits[0]._source?.log?.response);return n.hits[0].DurationInSecond=parseInt(s.Duration)/1e3,n.hits[0].respCode=s?.StatusCode,n.hits[0].req=JSON.parse(n.hits[0]._source?.log?.request),n.hits[0].res=s,n?.hits[0]}),S(1))}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=f({type:r,selectors:[["app-inventory-async-detail"]],decls:7,vars:5,consts:[["headerTitle","Product Inventory Sync Detail",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"]],template:function(n,s){if(n&1&&(e(0,"mainpanel",0)(1,"actions")(2,"a",1),i(3,"Back"),t()(),e(4,"content"),x(5,q,55,15,"div",2),l(6,"async"),t()()),n&2){let y;I("hideSearchBox",!0)("hideSearchDropdown",!0),a(5),g((y=c(6,3,s.inventoryLog$))?5:-1,y)}},dependencies:[L,B,A,_,D,R,b,C],encapsulation:2});let d=r;return d})();export{z as InventoryAsyncDetailComponent};
@@ -1 +1 @@
1
- import{a as D,b as L,c as E}from"./chunk-2K5AP6IZ.js";import{a as w}from"./chunk-XLQGQESJ.js";import"./chunk-A6QXXKPR.js";import{b}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-3SCX7IMW.js";import"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{c as u}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{x as P}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as g,Nc as F,Rc as h,Sc as f,Tc as c,ac as T,cc as C,hc as p,ic as n,jc as l,kc as S,ob as d,ra as s,wc as v,yc as _}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function M(r,i){if(r&1&&(n(0,"div",6)(1,"div",7),S(2,"app-table-report",8),l()()),r&2){let m=_();d(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",1)}}var A=(()=>{let i=class i{constructor(){this.http=s(L),this.datePipe=s(P),this.filter=new D,this.PageTitle="Ready to Ship";let e=new Date;this.maxDate=e,this.minDate=u.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=u.formatTitleFromDate(this.filter.From,this.filter.To),a=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":a+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=g({type:i,selectors:[["app-void-invoice"]],decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(a,t){a&1&&(n(0,"mainpanel",0),v("onSubmit",function(){return t.onFilter()}),n(1,"filters")(2,"div")(3,"label",1),F(4,"From/To"),l(),n(5,"div",2)(6,"datepicker",3),c("dateChange",function(o){return f(t.filter.From,o)||(t.filter.From=o),o}),l()(),n(7,"div")(8,"datepicker",4),c("dateChange",function(o){return f(t.filter.To,o)||(t.filter.To=o),o}),l()()()(),n(9,"content")(10,"div",5),T(11,M,3,5,"div",6),l()()()),a&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),d(6),h("date",t.filter.From),d(2),h("date",t.filter.To),d(3),C(t.result?11:-1))},dependencies:[b,w,E],encapsulation:2});let r=i;return r})();export{A as VoidInvoiceComponent};
1
+ import{a as D,b as L,c as E}from"./chunk-S3H2JVI7.js";import{a as w}from"./chunk-PV4OJSZI.js";import"./chunk-A6QXXKPR.js";import{b}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-3SCX7IMW.js";import"./chunk-K4Q33QIR.js";import"./chunk-JRCXHF2X.js";import"./chunk-M27MYADT.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{c as u}from"./chunk-UPRDDI4K.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{y as P}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as g,Nc as F,Rc as h,Sc as f,Tc as c,ac as T,cc as C,hc as p,ic as n,jc as l,kc as S,ob as d,ra as s,wc as v,yc as _}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function M(r,i){if(r&1&&(n(0,"div",6)(1,"div",7),S(2,"app-table-report",8),l()()),r&2){let m=_();d(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",1)}}var A=(()=>{let i=class i{constructor(){this.http=s(L),this.datePipe=s(P),this.filter=new D,this.PageTitle="Ready to Ship";let e=new Date;this.maxDate=e,this.minDate=u.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=u.formatTitleFromDate(this.filter.From,this.filter.To),a=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":a+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=g({type:i,selectors:[["app-void-invoice"]],decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(a,t){a&1&&(n(0,"mainpanel",0),v("onSubmit",function(){return t.onFilter()}),n(1,"filters")(2,"div")(3,"label",1),F(4,"From/To"),l(),n(5,"div",2)(6,"datepicker",3),c("dateChange",function(o){return f(t.filter.From,o)||(t.filter.From=o),o}),l()(),n(7,"div")(8,"datepicker",4),c("dateChange",function(o){return f(t.filter.To,o)||(t.filter.To=o),o}),l()()()(),n(9,"content")(10,"div",5),T(11,M,3,5,"div",6),l()()()),a&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),d(6),h("date",t.filter.From),d(2),h("date",t.filter.To),d(3),C(t.result?11:-1))},dependencies:[b,w,E],encapsulation:2});let r=i;return r})();export{A as VoidInvoiceComponent};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-V6QH3IVL.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-QJ55WDGL.js";import{a as d,b as m}from"./chunk-J6HA4ZHH.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-MM7SAZOU.js";import{c as u}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as c,hc as l,ic as p,jc as s,kc as i,ob as r}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var h=(()=>{let o=class o{constructor(){this.productTabs=[{Title:"Sold in Channel",Url:"/menu/products/status/sold-in-channel",Description:"SKU has been mapped between dealpos and marketplace"},{Title:"Not in POS",Url:"/menu/products/status/not-in-pos",Description:"SKU sold in Marketplace but not exist in DEALPOS"},{Title:"Not in Channel",Url:"/menu/products/status/not-in-channel",Description:"SKU has not been sold on one of channels"},{Title:"In POS",Url:"/menu/products/status/in-pos",Description:"All products which is already available in POS"},{Title:"Multiple Listing",Url:"/menu/products/status/duplicate-sku",Description:"SKU(s) which is listed more than one time (one to many)"},{Title:"Channel Statistic",Url:"/menu/products/status/channel-statistic",Description:"Product statistic from each channel obtained from the last product scan"},{Title:"Scan Job",Url:"/menu/products/status/notification",Description:"Scan results for each channel, including product counts and synchronization status"}]}};o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=c({type:o,selectors:[["app-status"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"]],template:function(a,f){a&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),s()()(),i(4,"router-outlet")),a&2&&(r(3),l("Tabs",f.productTabs))},dependencies:[m,d,u],encapsulation:2});let t=o;return t})();var U=[{component:h,path:"",children:[{path:"",redirectTo:"sold-in-channel",pathMatch:"full"},{path:"in-pos",loadComponent(){return import("./chunk-EBXGQWOL.js").then(t=>t.InPosComponent)},canActivate:[n,e],data:{title:"Products in POS"}},{path:"sold-in-channel",loadComponent(){return import("./chunk-4ORO4H6Z.js").then(t=>t.SoldInChannelComponent)},canActivate:[n,e],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",loadComponent(){return import("./chunk-WQHFRJZZ.js").then(t=>t.NotInChannelComponent)},canActivate:[n,e],data:{title:"Products not in Channel"}},{path:"not-in-pos",loadComponent(){return import("./chunk-XPA7U45N.js").then(t=>t.NotInPosComponent)},canActivate:[n,e],data:{title:"Products not in POS"}},{path:"duplicate-sku",loadComponent(){return import("./chunk-ZVNZGCYO.js").then(t=>t.DuplicateSkuComponent)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"duplicate-sku/table",loadComponent(){return import("./chunk-DI2VKA4Z.js").then(t=>t.DuplicateSkuV2Component)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"channel-statistic",loadComponent(){return import("./chunk-NQVNAQCL.js").then(t=>t.ChannelStatisticComponent)},canActivate:[n,e],data:{title:"Channel Statistic"}},{path:"notification",loadComponent(){return import("./chunk-BKZIKCX7.js").then(t=>t.NotificationComponent)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2",loadComponent(){return import("./chunk-YLQU53ID.js").then(t=>t.NotificationV2Component)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2/detailV2",loadComponent(){return import("./chunk-2AXBEVQ7.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}},{path:"notification/detail",loadComponent(){return import("./chunk-7E53IHXI.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}}]}];export{U as routes};
1
+ import{a as e}from"./chunk-CUSAKJLC.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-TUJBAZ5Q.js";import{a as d,b as m}from"./chunk-75IM3UUA.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-7K6U3ABQ.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import"./chunk-UPRDDI4K.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-D6JH2KV4.js";import{c as u}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as c,hc as l,ic as p,jc as s,kc as i,ob as r}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var h=(()=>{let o=class o{constructor(){this.productTabs=[{Title:"Sold in Channel",Url:"/menu/products/status/sold-in-channel",Description:"SKU has been mapped between dealpos and marketplace"},{Title:"Not in POS",Url:"/menu/products/status/not-in-pos",Description:"SKU sold in Marketplace but not exist in DEALPOS"},{Title:"Not in Channel",Url:"/menu/products/status/not-in-channel",Description:"SKU has not been sold on one of channels"},{Title:"In POS",Url:"/menu/products/status/in-pos",Description:"All products which is already available in POS"},{Title:"Multiple Listing",Url:"/menu/products/status/duplicate-sku",Description:"SKU(s) which is listed more than one time (one to many)"},{Title:"Channel Statistic",Url:"/menu/products/status/channel-statistic",Description:"Product statistic from each channel obtained from the last product scan"},{Title:"Scan Job",Url:"/menu/products/status/notification",Description:"Scan results for each channel, including product counts and synchronization status"}]}};o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=c({type:o,selectors:[["app-status"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"]],template:function(a,f){a&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),s()()(),i(4,"router-outlet")),a&2&&(r(3),l("Tabs",f.productTabs))},dependencies:[m,d,u],encapsulation:2});let t=o;return t})();var U=[{component:h,path:"",children:[{path:"",redirectTo:"sold-in-channel",pathMatch:"full"},{path:"in-pos",loadComponent(){return import("./chunk-ZLNNQRTE.js").then(t=>t.InPosComponent)},canActivate:[n,e],data:{title:"Products in POS"}},{path:"sold-in-channel",loadComponent(){return import("./chunk-EDGT4W2Q.js").then(t=>t.SoldInChannelComponent)},canActivate:[n,e],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",loadComponent(){return import("./chunk-VFZ76Z6T.js").then(t=>t.NotInChannelComponent)},canActivate:[n,e],data:{title:"Products not in Channel"}},{path:"not-in-pos",loadComponent(){return import("./chunk-TG7XOXCH.js").then(t=>t.NotInPosComponent)},canActivate:[n,e],data:{title:"Products not in POS"}},{path:"duplicate-sku",loadComponent(){return import("./chunk-RNJHJCHP.js").then(t=>t.DuplicateSkuComponent)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"duplicate-sku/table",loadComponent(){return import("./chunk-SS4PLPBF.js").then(t=>t.DuplicateSkuV2Component)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"channel-statistic",loadComponent(){return import("./chunk-QSW7O4GN.js").then(t=>t.ChannelStatisticComponent)},canActivate:[n,e],data:{title:"Channel Statistic"}},{path:"notification",loadComponent(){return import("./chunk-YQKEWN54.js").then(t=>t.NotificationComponent)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2",loadComponent(){return import("./chunk-B5BQZD66.js").then(t=>t.NotificationV2Component)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2/detailV2",loadComponent(){return import("./chunk-2WQLSGW3.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}},{path:"notification/detail",loadComponent(){return import("./chunk-KA2HPWPG.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}}]}];export{U as routes};
@@ -1 +1 @@
1
- import{a as it,b as ct}from"./chunk-FTIUJUXI.js";import"./chunk-6F62N7RZ.js";import{e as rt}from"./chunk-P6RAMHDB.js";import"./chunk-3HME327V.js";import{a as ut}from"./chunk-TOK5EWN4.js";import{a as T}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import{d as nt}from"./chunk-C2LAQOUW.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as mt}from"./chunk-5WQ3LCWP.js";import"./chunk-DLHIDOS3.js";import{a as ht}from"./chunk-27DIE2YS.js";import{a as ot}from"./chunk-7IOQ6VVF.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-G6O6VFLS.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as et}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as X,h as tt}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import{f as lt,g as st,h as dt,i as pt}from"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as Z}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as j,c as z}from"./chunk-5UFP37GQ.js";import{b as F,c as _}from"./chunk-UPRDDI4K.js";import{A as Q,c as Y,h as q,m as K}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as W,e as H}from"./chunk-MM7SAZOU.js";import{d as $}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as y,Hb as U,Ic as O,Nb as A,Nc as w,Pc as V,Rc as E,Sc as N,Tc as R,aa as B,ac as P,ad as I,cc as f,ec as L,fc as G,gc as J,hc as g,ic as h,jc as u,kc as b,ob as r,oc as v,pc as M,ra as C,rc as S,wc as m,ya as l,yc as a,za as s}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var k=o=>[o];function _t(o,c){if(o&1){let t=S();h(0,"button",15),m("click",function(){l(t);let i=a(2);return s(i.onDetachMultipleProduct())}),b(1,"i",16),w(2),u()}if(o&2){let t,e=a(2);r(2),V("Detach (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function gt(o,c){if(o&1&&(v(0),P(1,_t,3,1,"button",14),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function Ct(o,c){if(o&1){let t=S();h(0,"button",18),m("click",function(){l(t);let i=a(3);return s(i.onOpenScanDialog())}),b(1,"i",19),w(2," Scan Channel "),u()}}function Pt(o,c){if(o&1&&P(0,Ct,3,0,"button",17),o&2){let t=a(2);f(t.productService.hasSelection(t.products)?-1:0)}}function ft(o,c){if(o&1&&(v(0),P(1,Pt,1,1),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?-1:1)}}function St(o,c){if(o&1){let t=S();h(0,"button",21),m("click",function(){l(t);let i=a(2);return s(i.onScanMultipleProduct())}),b(1,"i",19),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Scan (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function xt(o,c){if(o&1&&(v(0),P(1,St,3,1,"button",20),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)&&t.multipeScanChannels.length>0?1:-1)}}function bt(o,c){if(o&1){let t=S();h(0,"button",23),m("click",function(){l(t);let i=a(2);return s(i.onUploadMultipleProduct())}),b(1,"i",24),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Upload (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function wt(o,c){if(o&1&&(v(0),P(1,bt,3,1,"button",22),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function yt(o,c){if(o&1){let t=S();h(0,"div",11)(1,"app-product-card",25),m("onUpload",function(){let i=l(t).$implicit,n=a();return s(n.onUploadToMultipleChannel(i))})("onScan",function(){let i=l(t).$implicit,n=a();return s(n.onScanSingleProduct(i))})("onDescEvent",function(){let i=l(t).$index,n=a();return s(n.onOpenDialogVariant(i))})("onCheckBoxChange",function(i){let n=l(t).$implicit;return s(n.selected=i)})("onDetach",function(){let i=l(t).$implicit,n=a();return s(n.onDetachProduct([i]))}),u()()}if(o&2){let t=c.$implicit,e=a();r(),g("productId",t.ID)("title",t==null?null:t.Name)("image",t==null?null:t.ThumbnailUrl)("description",(t==null||t.Variants==null?null:t.Variants.length)>1?(t==null||t.Variants==null?null:t.Variants.length)+" Variants":null)("channels",e.productService.getChannelProduct(t))("code",e.getVariantCode(t==null?null:t.Variants))("showCheckBox",(t==null?null:t.Channel.length)<e.channelOptions.length)("scanButton",!0)("uploadButton",t==null?null:t.hasUpload)("imageForZoom",t==null?null:t.ImageUrl)("detachButton",(t==null||t.Channel==null?null:t.Channel.length)>0)}}function vt(o,c){o&1&&(h(0,"div",12),b(1,"app-empty-state"),u())}function Mt(o,c){if(o&1){let t=S();h(0,"div",13)(1,"div",26)(2,"app-custom-paginator",27),m("next",function(){l(t);let i=a();return s(i.getProducts())})("previous",function(){l(t);let i=a();return s(i.getProducts())}),u()()()}if(o&2){let t=a();r(2),g("filter",t.searchFilter)("totaldata",t.products==null?null:t.products.length)("paginationTotal",t.rowCount)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}var ie=(()=>{let c=class c{constructor(){this.http=C(H),this.toastr=C(W),this.dialog=C(X),this.productService=C(ot),this.authService=C(Z),this.uploadProductService=C(rt),this.route=C($),this.searchFilter=new at,this.products=[],this.rowCount=0,this.multipeScanChannels=[],this.scanProductRole=D.ProductScan,this.uploadProductRole=D.ProductUpload,this.detachProductRole=D.ProductDetach,this.getLoaderPage(),this.channelOptions=this.authService.getChannels(),this.initMultiScanChannels()}getLoaderPage(){this.productService.LoadInPOS().subscribe(e=>{this.Categories=e.Options.Categories,this.searchFilter.PageNumber=e.Filter.PageNumber,this.searchFilter.RowCount=e.Filter.RowCount,this.searchFilter.ChannelID=null,this.searchFilter.Category=e.Filter.Category,this.searchFilter.PageSize=100,this.getProducts()})}initMultiScanChannels(){this.multipeScanChannels=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok])}getProducts(){let e={PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount,text:this.searchFilter.text,Category:this.searchFilter.Category,From:this.startDate,To:this.endDate};this.http.post("/api/product/GetInPOS",e).subscribe(i=>{this.products=i.Data,this.rowCount=i.Total==null?this.searchFilter.RowCount:i.Total.toString(),this.products=this.productService.checkProductHasUploadBtn(this.products,this.channelOptions)})}onOpenScanDialog(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:e,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID,this.searchFilter.ScanFull=n.ScanFull,this.searchFilter.UpdatedProduct=n.UpdatedProduct,this.searchFilter.Async=n.Async,this.scanAllProduct()})}scanAllProduct(){if(this.searchFilter.ChannelID==null){this.toastr.error("Please Select Channel","Error");return}this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{if(this.searchFilter.Async)this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"});else{this.getLoaderPage();let i=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.successToastrScanAllProduct(e,i,!this.searchFilter.UpdatedProduct)}})}onOpenDialogVariant(e){let i=this.products[e]?.Variants||[];this.dialog.open(it,{data:{title:this.products[e].Name,variants:i}})}onUploadMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.uploadProductService.setSelectedProduct(e),this.route.navigate(["/menu/products/upload"])}onUploadToMultipleChannel(e){this.uploadProductService.setSelectedProduct([e]),this.route.navigate(["/menu/products/upload"])}searchProduct(e){this.searchFilter.text=e,this.getProducts()}onScanMultipleProduct(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty;let i=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok]);this.dialog.open(T,{data:{filter:e,channelOptions:i,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(p=>_.IsNotEmpty(p))).subscribe(p=>{this.searchFilter.ChannelID=p.ChannelID,this.searchFilter.ScanFull=p.ScanFull,this.searchFilter.UpdatedProduct=p.UpdatedProduct;let x=this.productService.selectedProduct(this.products),d=this.productService.getVariantCodesProducts(x);this.scanSingleProduct(d)})}onScanSingleProduct(e){let i=JSON.parse(JSON.stringify(this.searchFilter));i.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:i,channelOptions:this.channelOptions,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID;let p=this.productService.getVariantCodesProduct(e);this.scanSingleProduct(p)})}scanSingleProduct(e){this.productService.scanSingle(this.searchFilter.ChannelID,e).subscribe({next:i=>{if(i)this.toastr.success("Successfully Scan ","Success");else{let n=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.toastr.error(`This product is not existed in ${n?.Name} `,"Error")}this.searchFilter.ChannelID=_.GuidEMpty,i&&this.getProducts()},error:i=>{this.searchFilter.ChannelID=_.GuidEMpty}})}getVariantCode(e=[]){let i;return e?.length>1&&(i=(e[0].model?e[0].model:"")+e[0].Code),e?.length==1&&(i=e[0].Code),i}onDetachProduct(e){let i=[];e.forEach(n=>{n.Channel=_.assignChannelLogo(n.Channel),i.push(...n.Channel)}),this.dialog.open(ct,{width:"600px",data:[...i]}).afterClosed().pipe(y(n=>_.IsNotEmpty(n)),B(n=>this.productService.detachProduct(n))).subscribe(n=>{this.toastr.success(n.Message,tt.Success),this.getProducts()})}onDetachMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.onDetachProduct(e)}};c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=U({type:c,selectors:[["app-in-pos"]],decls:24,vars:21,consts:[["picker",""],["description","All products which is already available in POS",3,"onSubmit","headerTitle"],[4,"ngxPermissionsOnly"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","Name","bindValue","Name","placeholder","Select Category",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"mt-5"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[3,"onUpload","onScan","onDescEvent","onCheckBoxChange","onDetach","productId","title","image","description","channels","code","showCheckBox","scanButton","uploadButton","imageForZoom","detachButton"],[1,"col-md-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"]],template:function(i,n){if(i&1){let p=S();h(0,"mainpanel",1),m("onSubmit",function(d){return l(p),s(n.searchProduct(d))}),h(1,"actions"),A(2,gt,2,1,"ng-container",2)(3,ft,2,1,"ng-container",2)(4,xt,2,1,"ng-container",2)(5,wt,2,1,"ng-container",2),u(),h(6,"filters")(7,"div")(8,"label",3),w(9,"Category"),u(),h(10,"ng-select",4),m("ngModelChange",function(d){return l(p),s(n.searchFilter.Category=d)}),u()(),h(11,"div",5)(12,"mat-date-range-input",6)(13,"input",7),R("ngModelChange",function(d){return l(p),N(n.startDate,d)||(n.startDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u(),h(14,"input",8),R("ngModelChange",function(d){return l(p),N(n.endDate,d)||(n.endDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u()(),b(15,"mat-date-range-picker",null,0),u()(),h(17,"content")(18,"div",9)(19,"div",10),G(20,yt,2,11,"div",11,L),P(22,vt,2,0,"div",12),u(),P(23,Mt,3,5,"div",13),u()()()}if(i&2){let p=O(16);g("headerTitle","In POS ("+n.rowCount+")"),r(2),g("ngxPermissionsOnly",I(13,k,n.detachProductRole)),r(),g("ngxPermissionsOnly",I(15,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(17,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(19,k,n.scanProductRole)),r(5),g("clearable",!0)("items",n.Categories)("ngModel",n.searchFilter.Category),r(2),g("rangePicker",p),r(),E("ngModel",n.startDate),r(),E("ngModel",n.endDate),r(6),J(n.products),r(2),f(n.products.length==0?22:-1),r(),f(n.products.length>0?23:-1)}},dependencies:[et,Q,Y,q,K,z,j,nt,lt,st,dt,pt,ut,ht,mt],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}.img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}"]});let o=c;return o})();export{ie as InPosComponent};
1
+ import{a as it,b as ct}from"./chunk-Z3PLQ27X.js";import"./chunk-VG66LDXQ.js";import{e as rt}from"./chunk-G3KVHCET.js";import"./chunk-TQROQOXU.js";import{a as ut}from"./chunk-IQGRGC3E.js";import{a as T}from"./chunk-KOQLZV3N.js";import"./chunk-6F37VT6M.js";import"./chunk-2EGTHH3W.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import{d as nt}from"./chunk-BZWZ64N5.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as mt}from"./chunk-ZZYFVEJO.js";import"./chunk-DLHIDOS3.js";import{a as ht}from"./chunk-27DIE2YS.js";import{a as ot}from"./chunk-WCX3T6LK.js";import"./chunk-JU4ZP3HI.js";import"./chunk-3T5VLB63.js";import"./chunk-STOW2RQN.js";import"./chunk-GLBJ4Y4T.js";import"./chunk-XTNXL2IY.js";import"./chunk-KOUB5HRK.js";import"./chunk-QETZ5VDX.js";import"./chunk-WIRXMAIF.js";import"./chunk-S22I47XG.js";import"./chunk-3NCMRK7E.js";import"./chunk-GD6ZN56B.js";import"./chunk-A6QXXKPR.js";import"./chunk-6Q4BDCI5.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{b as et}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import{c as X,h as tt}from"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import{f as lt,g as st,h as dt,i as pt}from"./chunk-K4Q33QIR.js";import"./chunk-JRCXHF2X.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-JTKEMQZT.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as Z}from"./chunk-7K6U3ABQ.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as j,c as z}from"./chunk-NB2H6KA7.js";import{b as F,c as _}from"./chunk-UPRDDI4K.js";import{A as Q,c as Y,h as q,m as K}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as W,e as H}from"./chunk-D6JH2KV4.js";import{d as $}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{G as y,Hb as U,Ic as O,Nb as A,Nc as w,Pc as V,Rc as E,Sc as N,Tc as R,aa as B,ac as P,ad as I,cc as f,ec as L,fc as G,gc as J,hc as g,ic as h,jc as u,kc as b,ob as r,oc as v,pc as M,ra as C,rc as S,wc as m,ya as l,yc as a,za as s}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var k=o=>[o];function _t(o,c){if(o&1){let t=S();h(0,"button",15),m("click",function(){l(t);let i=a(2);return s(i.onDetachMultipleProduct())}),b(1,"i",16),w(2),u()}if(o&2){let t,e=a(2);r(2),V("Detach (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function gt(o,c){if(o&1&&(v(0),P(1,_t,3,1,"button",14),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function Ct(o,c){if(o&1){let t=S();h(0,"button",18),m("click",function(){l(t);let i=a(3);return s(i.onOpenScanDialog())}),b(1,"i",19),w(2," Scan Channel "),u()}}function Pt(o,c){if(o&1&&P(0,Ct,3,0,"button",17),o&2){let t=a(2);f(t.productService.hasSelection(t.products)?-1:0)}}function ft(o,c){if(o&1&&(v(0),P(1,Pt,1,1),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?-1:1)}}function St(o,c){if(o&1){let t=S();h(0,"button",21),m("click",function(){l(t);let i=a(2);return s(i.onScanMultipleProduct())}),b(1,"i",19),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Scan (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function xt(o,c){if(o&1&&(v(0),P(1,St,3,1,"button",20),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)&&t.multipeScanChannels.length>0?1:-1)}}function bt(o,c){if(o&1){let t=S();h(0,"button",23),m("click",function(){l(t);let i=a(2);return s(i.onUploadMultipleProduct())}),b(1,"i",24),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Upload (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function wt(o,c){if(o&1&&(v(0),P(1,bt,3,1,"button",22),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function yt(o,c){if(o&1){let t=S();h(0,"div",11)(1,"app-product-card",25),m("onUpload",function(){let i=l(t).$implicit,n=a();return s(n.onUploadToMultipleChannel(i))})("onScan",function(){let i=l(t).$implicit,n=a();return s(n.onScanSingleProduct(i))})("onDescEvent",function(){let i=l(t).$index,n=a();return s(n.onOpenDialogVariant(i))})("onCheckBoxChange",function(i){let n=l(t).$implicit;return s(n.selected=i)})("onDetach",function(){let i=l(t).$implicit,n=a();return s(n.onDetachProduct([i]))}),u()()}if(o&2){let t=c.$implicit,e=a();r(),g("productId",t.ID)("title",t==null?null:t.Name)("image",t==null?null:t.ThumbnailUrl)("description",(t==null||t.Variants==null?null:t.Variants.length)>1?(t==null||t.Variants==null?null:t.Variants.length)+" Variants":null)("channels",e.productService.getChannelProduct(t))("code",e.getVariantCode(t==null?null:t.Variants))("showCheckBox",(t==null?null:t.Channel.length)<e.channelOptions.length)("scanButton",!0)("uploadButton",t==null?null:t.hasUpload)("imageForZoom",t==null?null:t.ImageUrl)("detachButton",(t==null||t.Channel==null?null:t.Channel.length)>0)}}function vt(o,c){o&1&&(h(0,"div",12),b(1,"app-empty-state"),u())}function Mt(o,c){if(o&1){let t=S();h(0,"div",13)(1,"div",26)(2,"app-custom-paginator",27),m("next",function(){l(t);let i=a();return s(i.getProducts())})("previous",function(){l(t);let i=a();return s(i.getProducts())}),u()()()}if(o&2){let t=a();r(2),g("filter",t.searchFilter)("totaldata",t.products==null?null:t.products.length)("paginationTotal",t.rowCount)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}var ie=(()=>{let c=class c{constructor(){this.http=C(H),this.toastr=C(W),this.dialog=C(X),this.productService=C(ot),this.authService=C(Z),this.uploadProductService=C(rt),this.route=C($),this.searchFilter=new at,this.products=[],this.rowCount=0,this.multipeScanChannels=[],this.scanProductRole=D.ProductScan,this.uploadProductRole=D.ProductUpload,this.detachProductRole=D.ProductDetach,this.getLoaderPage(),this.channelOptions=this.authService.getChannels(),this.initMultiScanChannels()}getLoaderPage(){this.productService.LoadInPOS().subscribe(e=>{this.Categories=e.Options.Categories,this.searchFilter.PageNumber=e.Filter.PageNumber,this.searchFilter.RowCount=e.Filter.RowCount,this.searchFilter.ChannelID=null,this.searchFilter.Category=e.Filter.Category,this.searchFilter.PageSize=100,this.getProducts()})}initMultiScanChannels(){this.multipeScanChannels=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok])}getProducts(){let e={PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount,text:this.searchFilter.text,Category:this.searchFilter.Category,From:this.startDate,To:this.endDate};this.http.post("/api/product/GetInPOS",e).subscribe(i=>{this.products=i.Data,this.rowCount=i.Total==null?this.searchFilter.RowCount:i.Total.toString(),this.products=this.productService.checkProductHasUploadBtn(this.products,this.channelOptions)})}onOpenScanDialog(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:e,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID,this.searchFilter.ScanFull=n.ScanFull,this.searchFilter.UpdatedProduct=n.UpdatedProduct,this.searchFilter.Async=n.Async,this.scanAllProduct()})}scanAllProduct(){if(this.searchFilter.ChannelID==null){this.toastr.error("Please Select Channel","Error");return}this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{if(this.searchFilter.Async)this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"});else{this.getLoaderPage();let i=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.successToastrScanAllProduct(e,i,!this.searchFilter.UpdatedProduct)}})}onOpenDialogVariant(e){let i=this.products[e]?.Variants||[];this.dialog.open(it,{data:{title:this.products[e].Name,variants:i}})}onUploadMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.uploadProductService.setSelectedProduct(e),this.route.navigate(["/menu/products/upload"])}onUploadToMultipleChannel(e){this.uploadProductService.setSelectedProduct([e]),this.route.navigate(["/menu/products/upload"])}searchProduct(e){this.searchFilter.text=e,this.getProducts()}onScanMultipleProduct(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty;let i=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok]);this.dialog.open(T,{data:{filter:e,channelOptions:i,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(p=>_.IsNotEmpty(p))).subscribe(p=>{this.searchFilter.ChannelID=p.ChannelID,this.searchFilter.ScanFull=p.ScanFull,this.searchFilter.UpdatedProduct=p.UpdatedProduct;let x=this.productService.selectedProduct(this.products),d=this.productService.getVariantCodesProducts(x);this.scanSingleProduct(d)})}onScanSingleProduct(e){let i=JSON.parse(JSON.stringify(this.searchFilter));i.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:i,channelOptions:this.channelOptions,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID;let p=this.productService.getVariantCodesProduct(e);this.scanSingleProduct(p)})}scanSingleProduct(e){this.productService.scanSingle(this.searchFilter.ChannelID,e).subscribe({next:i=>{if(i)this.toastr.success("Successfully Scan ","Success");else{let n=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.toastr.error(`This product is not existed in ${n?.Name} `,"Error")}this.searchFilter.ChannelID=_.GuidEMpty,i&&this.getProducts()},error:i=>{this.searchFilter.ChannelID=_.GuidEMpty}})}getVariantCode(e=[]){let i;return e?.length>1&&(i=(e[0].model?e[0].model:"")+e[0].Code),e?.length==1&&(i=e[0].Code),i}onDetachProduct(e){let i=[];e.forEach(n=>{n.Channel=_.assignChannelLogo(n.Channel),i.push(...n.Channel)}),this.dialog.open(ct,{width:"600px",data:[...i]}).afterClosed().pipe(y(n=>_.IsNotEmpty(n)),B(n=>this.productService.detachProduct(n))).subscribe(n=>{this.toastr.success(n.Message,tt.Success),this.getProducts()})}onDetachMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.onDetachProduct(e)}};c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=U({type:c,selectors:[["app-in-pos"]],decls:24,vars:21,consts:[["picker",""],["description","All products which is already available in POS",3,"onSubmit","headerTitle"],[4,"ngxPermissionsOnly"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","Name","bindValue","Name","placeholder","Select Category",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"mt-5"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[3,"onUpload","onScan","onDescEvent","onCheckBoxChange","onDetach","productId","title","image","description","channels","code","showCheckBox","scanButton","uploadButton","imageForZoom","detachButton"],[1,"col-md-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"]],template:function(i,n){if(i&1){let p=S();h(0,"mainpanel",1),m("onSubmit",function(d){return l(p),s(n.searchProduct(d))}),h(1,"actions"),A(2,gt,2,1,"ng-container",2)(3,ft,2,1,"ng-container",2)(4,xt,2,1,"ng-container",2)(5,wt,2,1,"ng-container",2),u(),h(6,"filters")(7,"div")(8,"label",3),w(9,"Category"),u(),h(10,"ng-select",4),m("ngModelChange",function(d){return l(p),s(n.searchFilter.Category=d)}),u()(),h(11,"div",5)(12,"mat-date-range-input",6)(13,"input",7),R("ngModelChange",function(d){return l(p),N(n.startDate,d)||(n.startDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u(),h(14,"input",8),R("ngModelChange",function(d){return l(p),N(n.endDate,d)||(n.endDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u()(),b(15,"mat-date-range-picker",null,0),u()(),h(17,"content")(18,"div",9)(19,"div",10),G(20,yt,2,11,"div",11,L),P(22,vt,2,0,"div",12),u(),P(23,Mt,3,5,"div",13),u()()()}if(i&2){let p=O(16);g("headerTitle","In POS ("+n.rowCount+")"),r(2),g("ngxPermissionsOnly",I(13,k,n.detachProductRole)),r(),g("ngxPermissionsOnly",I(15,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(17,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(19,k,n.scanProductRole)),r(5),g("clearable",!0)("items",n.Categories)("ngModel",n.searchFilter.Category),r(2),g("rangePicker",p),r(),E("ngModel",n.startDate),r(),E("ngModel",n.endDate),r(6),J(n.products),r(2),f(n.products.length==0?22:-1),r(),f(n.products.length>0?23:-1)}},dependencies:[et,Q,Y,q,K,z,j,nt,lt,st,dt,pt,ut,ht,mt],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}.img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}"]});let o=c;return o})();export{ie as InPosComponent};