marketplacepos 3.22.0 → 3.22.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 (167) hide show
  1. package/Marketplace/3rdpartylicenses.txt +224 -13
  2. package/Marketplace/{chunk-7NE7ZI6R.js → chunk-2DQJZ4SM.js} +3 -3
  3. package/Marketplace/chunk-2OOIDPNY.js +1 -0
  4. package/Marketplace/chunk-2UKRBTWA.js +1 -0
  5. package/Marketplace/{chunk-UX3GY5M2.js → chunk-3QG5QJ5P.js} +1 -1
  6. package/Marketplace/chunk-3Y4WD5EY.js +1 -0
  7. package/Marketplace/{chunk-LIPM3QTO.js → chunk-44YUSAMN.js} +1 -1
  8. package/Marketplace/chunk-46AOM3SM.js +149 -0
  9. package/Marketplace/chunk-4E6A74GC.js +1 -0
  10. package/Marketplace/chunk-4LFFAE2I.js +1 -0
  11. package/Marketplace/chunk-4SAJUEHO.js +1 -0
  12. package/Marketplace/chunk-4YWF6TMR.js +5 -0
  13. package/Marketplace/{chunk-GCHJ4FTF.js → chunk-5JOW2QWK.js} +1 -1
  14. package/Marketplace/chunk-6DNNP4QT.js +1 -0
  15. package/Marketplace/chunk-6L2IXOY3.js +1 -0
  16. package/Marketplace/chunk-6SF7AUOH.js +1 -0
  17. package/Marketplace/{chunk-45PCYYJD.js → chunk-6YZFSP2B.js} +1 -1
  18. package/Marketplace/chunk-75I4TWVV.js +5 -0
  19. package/Marketplace/chunk-7AFVU7XM.js +1 -0
  20. package/Marketplace/chunk-ADRVUMMW.js +1 -0
  21. package/Marketplace/chunk-B2TH5YJH.js +1142 -0
  22. package/Marketplace/chunk-BO4PPSB5.js +2 -0
  23. package/Marketplace/chunk-BQ7NR3ET.js +1 -0
  24. package/Marketplace/chunk-BSN7ZAXG.js +1 -0
  25. package/Marketplace/chunk-CCXKODFV.js +2 -0
  26. package/Marketplace/{chunk-AGKVS3IQ.js → chunk-CODNZKCM.js} +1 -1
  27. package/Marketplace/chunk-CSSLFHG7.js +1 -0
  28. package/Marketplace/chunk-DR4IU4JY.js +1 -0
  29. package/Marketplace/chunk-E5GGIVK7.js +1 -0
  30. package/Marketplace/{chunk-QFU3JTYR.js → chunk-EW5A6GIY.js} +1 -1
  31. package/Marketplace/{chunk-PCKZD4LZ.js → chunk-FGPSBTFS.js} +1 -1
  32. package/Marketplace/chunk-FKYJVN2C.js +1 -0
  33. package/Marketplace/{chunk-UOT5GPQI.js → chunk-FMV4LYKN.js} +1 -1
  34. package/Marketplace/chunk-FY3BLGYI.js +1 -0
  35. package/Marketplace/{chunk-OUJF6YWV.js → chunk-GCKSYCMI.js} +5 -11
  36. package/Marketplace/chunk-GJIFVUBA.js +1 -0
  37. package/Marketplace/chunk-GOXRLSEL.js +1 -0
  38. package/Marketplace/{chunk-C2SGQUOH.js → chunk-HCDKYABV.js} +1 -1
  39. package/Marketplace/chunk-HHYOM3XB.js +1 -0
  40. package/Marketplace/chunk-HT7RB66L.js +1 -0
  41. package/Marketplace/chunk-HUUFOAKH.js +1 -0
  42. package/Marketplace/chunk-HVVW4B4W.js +1 -0
  43. package/Marketplace/chunk-HXJF7C6Q.js +1 -0
  44. package/Marketplace/chunk-I5BQWXUB.js +8 -0
  45. package/Marketplace/chunk-IJYSJN63.js +443 -0
  46. package/Marketplace/chunk-ILVEM7H5.js +1 -0
  47. package/Marketplace/chunk-J5D7PMX5.js +2 -0
  48. package/Marketplace/chunk-JHV7PQGJ.js +1 -0
  49. package/Marketplace/chunk-JKLGOAB3.js +2 -0
  50. package/Marketplace/chunk-JP44SOP7.js +13 -0
  51. package/Marketplace/chunk-JXTGH22T.js +1 -0
  52. package/Marketplace/chunk-KNWBPJ23.js +1 -0
  53. package/Marketplace/chunk-LI6EUEGJ.js +1 -0
  54. package/Marketplace/chunk-LRU7GIXZ.js +1 -0
  55. package/Marketplace/chunk-LZXKPCX7.js +1 -0
  56. package/Marketplace/chunk-MFAJDQPX.js +1 -0
  57. package/Marketplace/chunk-MJ6RQDI4.js +1 -0
  58. package/Marketplace/{chunk-ZRW4OZGG.js → chunk-MY4B7K3R.js} +1 -1
  59. package/Marketplace/{chunk-GDA72XOJ.js → chunk-N6IHFFFZ.js} +1 -1
  60. package/Marketplace/chunk-NJKWLKN6.js +1 -0
  61. package/Marketplace/{chunk-4NXO2JYR.js → chunk-NYDPS33K.js} +1 -1
  62. package/Marketplace/chunk-OCYDG646.js +1494 -0
  63. package/Marketplace/chunk-OKR5PVTL.js +1 -0
  64. package/Marketplace/chunk-OSSJKXND.js +1 -0
  65. package/Marketplace/chunk-OTFJUSZU.js +8 -0
  66. package/Marketplace/chunk-OULUJ2IO.js +189 -0
  67. package/Marketplace/chunk-OVEJFFL6.js +2 -0
  68. package/Marketplace/chunk-P674TVHC.js +1 -0
  69. package/Marketplace/chunk-PD4CUVAW.js +1 -0
  70. package/Marketplace/chunk-POGKTX46.js +1 -0
  71. package/Marketplace/chunk-PQDPS2ID.js +7 -0
  72. package/Marketplace/chunk-QN5QWB3Z.js +1 -0
  73. package/Marketplace/chunk-QP6O4KGV.js +1 -0
  74. package/Marketplace/chunk-QW4P7RSU.js +1 -0
  75. package/Marketplace/chunk-RDHVV7FZ.js +1 -0
  76. package/Marketplace/{chunk-EYZIWEGE.js → chunk-RENQ3YZH.js} +1 -1
  77. package/Marketplace/chunk-RGGT2KKB.js +1 -0
  78. package/Marketplace/chunk-RI7RZYID.js +1 -0
  79. package/Marketplace/chunk-T32TE7CZ.js +1 -0
  80. package/Marketplace/chunk-TPGBOTD4.js +1 -0
  81. package/Marketplace/chunk-TVRKGWQB.js +1 -0
  82. package/Marketplace/chunk-UMNGKENU.js +1 -0
  83. package/Marketplace/chunk-UN2U4YFQ.js +1 -0
  84. package/Marketplace/chunk-WT6W7RAQ.js +1 -0
  85. package/Marketplace/chunk-WTR5UFZI.js +5 -0
  86. package/Marketplace/chunk-X5Q6FPWS.js +315 -0
  87. package/Marketplace/chunk-XB345KSK.js +2 -0
  88. package/Marketplace/{chunk-J7V5HHYR.js → chunk-Y2T3CEPZ.js} +1 -1
  89. package/Marketplace/chunk-YC44HHHF.js +2 -0
  90. package/Marketplace/chunk-YIB7FZAQ.js +7 -0
  91. package/Marketplace/chunk-Z6PE5TYH.js +1 -0
  92. package/Marketplace/{chunk-XSYSCEVJ.js → chunk-ZRPSM5PK.js} +1 -1
  93. package/Marketplace/index.html +4 -4
  94. package/Marketplace/main-MTZIDUMD.js +1 -0
  95. package/Marketplace/styles-BTL6DIRV.css +1 -0
  96. package/package.json +1 -1
  97. package/Marketplace/chunk-2KEQ33LI.js +0 -1
  98. package/Marketplace/chunk-2LJXM62F.js +0 -1
  99. package/Marketplace/chunk-47XYXHGL.js +0 -1
  100. package/Marketplace/chunk-4AUJZEST.js +0 -1
  101. package/Marketplace/chunk-5SIWWKAE.js +0 -1
  102. package/Marketplace/chunk-5SOVI5O5.js +0 -1
  103. package/Marketplace/chunk-633RG6PO.js +0 -15
  104. package/Marketplace/chunk-732MTT44.js +0 -1
  105. package/Marketplace/chunk-76JMXELT.js +0 -1
  106. package/Marketplace/chunk-7FSQ3UC2.js +0 -1
  107. package/Marketplace/chunk-7IIB5DLC.js +0 -2
  108. package/Marketplace/chunk-7N5WLZWW.js +0 -1
  109. package/Marketplace/chunk-AUBPDK26.js +0 -1
  110. package/Marketplace/chunk-BR6MS275.js +0 -1
  111. package/Marketplace/chunk-DAYV52M7.js +0 -9
  112. package/Marketplace/chunk-DSKMV7XY.js +0 -3
  113. package/Marketplace/chunk-EE7O2AZI.js +0 -1
  114. package/Marketplace/chunk-EJSGWKV7.js +0 -1
  115. package/Marketplace/chunk-ENIJ4MFV.js +0 -1
  116. package/Marketplace/chunk-EQIBEDOW.js +0 -1
  117. package/Marketplace/chunk-EXBAGUW2.js +0 -1
  118. package/Marketplace/chunk-F57GDDSE.js +0 -14
  119. package/Marketplace/chunk-FSOI4J4S.js +0 -1
  120. package/Marketplace/chunk-HDDGFXNT.js +0 -1
  121. package/Marketplace/chunk-HPD77AAI.js +0 -1
  122. package/Marketplace/chunk-IPSL7J32.js +0 -1
  123. package/Marketplace/chunk-IX4CXSQC.js +0 -1
  124. package/Marketplace/chunk-J5DBLKIA.js +0 -1
  125. package/Marketplace/chunk-JCKUKK6T.js +0 -1
  126. package/Marketplace/chunk-JXNW3RX5.js +0 -1
  127. package/Marketplace/chunk-KJ4SL5OX.js +0 -1
  128. package/Marketplace/chunk-KTXT25SP.js +0 -1
  129. package/Marketplace/chunk-KZ2VDCDO.js +0 -1
  130. package/Marketplace/chunk-L3JD55OC.js +0 -1
  131. package/Marketplace/chunk-LLLHVCIO.js +0 -1
  132. package/Marketplace/chunk-LQWFYVLD.js +0 -2
  133. package/Marketplace/chunk-LZVUS3GC.js +0 -3
  134. package/Marketplace/chunk-M4XSRDMC.js +0 -9
  135. package/Marketplace/chunk-MJH2IWI2.js +0 -1
  136. package/Marketplace/chunk-MTS7QNYE.js +0 -2
  137. package/Marketplace/chunk-NBSXPQ4I.js +0 -1
  138. package/Marketplace/chunk-NFEAHFS5.js +0 -1
  139. package/Marketplace/chunk-NLZCSTVO.js +0 -5
  140. package/Marketplace/chunk-NSXCPHWT.js +0 -52
  141. package/Marketplace/chunk-O4N2CCVN.js +0 -1
  142. package/Marketplace/chunk-OE7XFNYO.js +0 -1
  143. package/Marketplace/chunk-OI3SQ5ZO.js +0 -2
  144. package/Marketplace/chunk-OSRAARQQ.js +0 -1
  145. package/Marketplace/chunk-OZ7VTHZ5.js +0 -1
  146. package/Marketplace/chunk-P5VJV3CP.js +0 -2
  147. package/Marketplace/chunk-QBQUD3A5.js +0 -1
  148. package/Marketplace/chunk-QNL3BTRG.js +0 -8
  149. package/Marketplace/chunk-QNQ5QCZX.js +0 -1
  150. package/Marketplace/chunk-RQCGB4NH.js +0 -9
  151. package/Marketplace/chunk-RVEC755T.js +0 -1
  152. package/Marketplace/chunk-S66L7N22.js +0 -1
  153. package/Marketplace/chunk-SCVHFMF7.js +0 -1
  154. package/Marketplace/chunk-SF4KIL5M.js +0 -5
  155. package/Marketplace/chunk-TU4R4DL3.js +0 -1
  156. package/Marketplace/chunk-UAXJ7MHW.js +0 -1
  157. package/Marketplace/chunk-UEB6GFG5.js +0 -1
  158. package/Marketplace/chunk-UNLG5KU7.js +0 -1
  159. package/Marketplace/chunk-WYZ5MSYA.js +0 -1
  160. package/Marketplace/chunk-XNRK463Z.js +0 -1
  161. package/Marketplace/chunk-YUBBVFFI.js +0 -1
  162. package/Marketplace/chunk-ZGYDC5UC.js +0 -1
  163. package/Marketplace/chunk-ZSZQPMV2.js +0 -1
  164. package/Marketplace/main-HPUDU23P.js +0 -1
  165. package/Marketplace/media/color-3LUHUBGQ.png +0 -0
  166. package/Marketplace/media/hue-RMMBQOAC.png +0 -0
  167. package/Marketplace/styles-RZHRYK3K.css +0 -1
@@ -1 +0,0 @@
1
- import{a as b}from"./chunk-GCHJ4FTF.js";import{a as P}from"./chunk-AGKVS3IQ.js";import{b as O}from"./chunk-2LJXM62F.js";import"./chunk-ENIJ4MFV.js";import{a as C}from"./chunk-45PCYYJD.js";import{c as M}from"./chunk-2KEQ33LI.js";import{a as m}from"./chunk-LLLHVCIO.js";import{a as h}from"./chunk-XSYSCEVJ.js";import"./chunk-UOT5GPQI.js";import"./chunk-UX3GY5M2.js";import"./chunk-C2SGQUOH.js";import{e as s}from"./chunk-7IIB5DLC.js";import"./chunk-7NE7ZI6R.js";import"./chunk-KTXT25SP.js";import"./chunk-KCDL7SWP.js";import{n as u}from"./chunk-OI3SQ5ZO.js";import{u as f}from"./chunk-OE7XFNYO.js";import"./chunk-UEB6GFG5.js";import{y as g}from"./chunk-JCKUKK6T.js";import"./chunk-KZ2VDCDO.js";import{$c as a,Fc as i,Xc as l,aa as e,ga as d,ha as r,ob as c}from"./chunk-QNL3BTRG.js";import"./chunk-GNOSNGXM.js";var _=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=d({type:t,selectors:[["app-products"]],decls:1,vars:0,template:function(n,v){n&1&&c(0,"router-outlet")},dependencies:[l],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}"]});let o=t;return o})();var y=[{path:"",component:_,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("./chunk-FSOI4J4S.js").then(o=>o.StatusModule),canActivate:[m]},{path:"download",loadChildren:()=>import("./chunk-SF4KIL5M.js").then(o=>o.DownloadModule),canActivate:[m]},{path:"upload",loadComponent:()=>import("./chunk-UNLG5KU7.js").then(o=>o.ProductUploadComponent),data:{title:"Upload Product"},canActivate:[m]}]}],w=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,a.forChild(y)]});let o=t;return o})();var W=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,g,a,w,f,u,s,O,C,M,h,P,b]});let o=t;return o})();export{W as ProductModule};
@@ -1,2 +0,0 @@
1
- import{a as Ve}from"./chunk-KJ4SL5OX.js";import"./chunk-ZSZQPMV2.js";import{a as L}from"./chunk-NLZCSTVO.js";import{a as H}from"./chunk-XHAXYWZ7.js";import{a as Pe,b as De,c as G}from"./chunk-EXBAGUW2.js";import"./chunk-BVIRHZTZ.js";import{b as Me}from"./chunk-L3JD55OC.js";import{a as Ee}from"./chunk-GDA72XOJ.js";import{a as Te,b as Fe}from"./chunk-S66L7N22.js";import"./chunk-LZVUS3GC.js";import"./chunk-DSKMV7XY.js";import"./chunk-633RG6PO.js";import{a as we}from"./chunk-OUJF6YWV.js";import"./chunk-YUBBVFFI.js";import{a as be}from"./chunk-UX3GY5M2.js";import"./chunk-C2SGQUOH.js";import{e as ge}from"./chunk-7IIB5DLC.js";import{i as Ce}from"./chunk-7NE7ZI6R.js";import{b as de,e as ue}from"./chunk-KTXT25SP.js";import"./chunk-KCDL7SWP.js";import{d as Se,l as ye,m as ve,n as Ie}from"./chunk-OI3SQ5ZO.js";import{t as fe,u as xe}from"./chunk-OE7XFNYO.js";import"./chunk-UEB6GFG5.js";import{b as re,c as se,h as pe,m as ce,o as me,y as _e}from"./chunk-JCKUKK6T.js";import{c as v,f as he}from"./chunk-KZ2VDCDO.js";import{Ab as q,B as Y,Bc as ie,Cc as oe,Ec as ae,Fc as le,Ha as P,Ib as Q,Ja as s,Jb as c,Ka as w,Kb as k,Lb as M,Nb as b,Ob as T,Pb as F,Q as A,Qb as X,Rb as J,Tb as R,Va as O,X as W,_a as u,ab as m,ac as h,bc as x,cc as N,da as K,dc as z,ga as Z,hb as I,ib as U,kb as $,lb as j,mb as a,nb as r,oa as _,ob as S,pa as d,pb as D,qb as V,sb as y,vb as f,vc as ee,xb as l,xc as te,yc as ne}from"./chunk-QNL3BTRG.js";import{a as B}from"./chunk-GNOSNGXM.js";var Ne=o=>({"text-decoration-line-through":o}),Le=o=>({"ms-10":o}),Be=o=>({"bg-gradient-warning":o});function Ae(o,p){if(o&1){let e=y();a(0,"button",38),f("click",function(){_(e);let t=l().ngIf,i=l(2);return d(i.updateStock(t))}),S(1,"i",39),c(2," Update "),r()}}function We(o,p){if(o&1){let e=y();a(0,"div"),u(1,Ae,3,0,"button",35),a(2,"button",36),f("click",function(){_(e);let t=l(2);return d(t.openExportDialog())}),S(3,"i",37),a(4,"span"),c(5,"Export"),r()()()}if(o&2){let e=p.ngIf,n=l(2);s(),m("ngIf",n.productService.hasSelectionVariant(e))}}function Oe(o,p){o&1&&(a(0,"div",40)(1,"span"),c(2," showing only different stock, please press next to populate more data "),r()())}function Ue(o,p){if(o&1){let e=y();a(0,"th")(1,"input",41),F("ngModelChange",function(t){_(e);let i=l(2);return T(i.checkboxState,t)||(i.checkboxState=t),d(t)}),f("ngModelChange",function(){let t=_(e).ngIf,i=l(2);return d(i.onCheckboxStateChange(t))}),r()()}if(o&2){let e=l(2);s(),b("ngModel",e.checkboxState)}}function $e(o,p){o&1&&(a(0,"th",32),c(1," Reserved "),r())}function je(o,p){}function Qe(o,p){if(o&1){let e=y();a(0,"input",60),F("ngModelChange",function(t){_(e);let i=l(3).$implicit;return T(i.selected,t)||(i.selected=t),d(t)}),f("ngModelChange",function(){_(e);let t=l(3).$implicit,i=l(2);return d(i.onCheckboxStateProduct(t))}),r()}if(o&2){let e=l(3).$implicit;b("ngModel",e.selected)}}function ze(o,p){if(o&1){let e=y();a(0,"img",61),f("click",function(t){_(e);let i=l(3).$implicit,C=l(2);return d(C.onZoomImage(t,i==null?null:i.ImageUrl))}),r()}if(o&2){let e=l(3).$implicit;q("src",e==null?null:e.ThumbnailUrl,P)}}function Ge(o,p){o&1&&S(0,"img",57)}function He(o,p){if(o&1&&(S(0,"br"),a(1,"div",62),S(2,"i",63),a(3,"small"),c(4),r()()),o&2){let e=l(3).$implicit;s(4),M("(",e==null?null:e.Category,")")}}function Ye(o,p){if(o&1&&(a(0,"td",53)(1,"div",14),u(2,Qe,1,1,"input",54),a(3,"div",55),u(4,ze,1,1,"img",56)(5,Ge,1,0,"img",57),r()()(),a(6,"td",58)(7,"span",59),c(8),r(),u(9,He,5,1),r()),o&2){let e=l(2).$implicit,n=l(2);m("rowSpan",e==null?null:e.Variants.length),s(2),I(e.Variants.length>1?2:-1),s(),m("ngClass",R(7,Le,e.Variants.length<=1)),s(),I(e!=null&&e.ThumbnailUrl?4:5),s(2),m("rowSpan",e==null?null:e.Variants.length),s(2),k(e==null?null:e.Name),s(),I(e.CategoryID!==null&&e.CategoryID!=n.guidEmpty?9:-1)}}function Ke(o,p){if(o&1){let e=y();a(0,"input",41),F("ngModelChange",function(t){_(e);let i=l(2).$implicit;return T(i.selected,t)||(i.selected=t),d(t)}),r()}if(o&2){let e=l(2).$implicit;b("ngModel",e.selected)}}function Ze(o,p){if(o&1&&u(0,Ke,1,1,"input",47),o&2){let e=l().$implicit;I((e==null?null:e.Inventory)<=1e5?0:-1)}}function qe(o,p){if(o&1){let e=y();a(0,"input",41),F("ngModelChange",function(t){_(e);let i=l().$implicit;return T(i.selected,t)||(i.selected=t),d(t)}),r()}if(o&2){let e=l().$implicit;b("ngModel",e.selected)}}function Xe(o,p){o&1&&(a(0,"div",64),c(1," Not Found "),r())}function Je(o,p){if(o&1&&(a(0,"div")(1,"span",65),c(2),h(3,"number"),r(),c(4," => "),a(5,"span",66),c(6),h(7,"number"),r()()),o&2){let e=l().$implicit;s(2),M(" ",x(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),k(x(7,4,e==null?null:e.Inventory))}}function et(o,p){if(o&1&&(c(0),h(1,"number")),o&2){let e=l().$implicit;M(" ",x(1,1,e==null?null:e.Inventory)," ")}}function tt(o,p){if(o&1&&(D(0),a(1,"div",67)(2,"a",68),S(3,"i",69),r()(),V()),o&2){let e=l().$implicit,n=l(3);s(2),m("href",n.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),P)}}function nt(o,p){if(o&1){let e=y();a(0,"span",74),f("click",function(){let t=_(e).ngIf,i=l(2).$implicit,C=l().$implicit,g=l(2);return d(g.openTableDialog(C,i,t))}),c(1),h(2,"number"),r()}if(o&2){let e=l(2).$implicit;s(),M(" ",x(2,1,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function it(o,p){if(o&1){let e=y();a(0,"td",70)(1,"div",48)(2,"div"),u(3,nt,3,3,"span",71),h(4,"async"),r(),a(5,"div",67)(6,"a",68),S(7,"i",69),r()(),a(8,"div",67)(9,"span",72),f("click",function(){_(e);let t=l().$implicit,i=l(3);return d(i.refreshInventory(t==null||t.Channel[0]==null?null:t.Channel[0].ChannelItemID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelVariationID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelID,t==null?null:t.ID))}),S(10,"i",73),r()()()()}if(o&2){let e=l().$implicit,n=l(3);m("ngClass",R(5,Be,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),m("ngIf",x(4,3,n.products$)),s(3),m("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,P)}}function ot(o,p){if(o&1&&(D(0),a(1,"span",75),c(2),h(3,"number"),r(),V()),o&2){let e=l(2).$implicit;s(2),M(" (",x(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function at(o,p){o&1&&c(0," - ")}function lt(o,p){if(o&1&&(D(0),a(1,"td",44),u(2,ot,4,3,"ng-container",52)(3,at,1,0,"ng-template",null,1,z),r(),V()),o&2){let e=Q(4),n=l().$implicit;s(2),m("ngIf",n==null||n.Channel[0]==null?null:n.Channel[0].InventoryReserved)("ngIfElse",e)}}function rt(o,p){o&1&&(D(0),c(1," - "),V())}function st(o,p){if(o&1&&(a(0,"span",76),h(1,"date"),c(2),h(3,"date"),r()),o&2){let e=l().$implicit;m("matTooltip",N(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),M(" ",N(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function pt(o,p){if(o&1&&(a(0,"tr"),u(1,Ye,10,9),a(2,"td",43),c(3),r(),a(4,"td",44)(5,"span",45),c(6),r()(),a(7,"td",46),u(8,Ze,1,1)(9,qe,1,1,"input",47),r(),a(10,"td")(11,"div",48),u(12,Xe,2,0,"div",49)(13,Je,8,6,"div")(14,et,2,3)(15,tt,4,1,"ng-container",5),r()(),u(16,it,11,7,"td",50)(17,lt,5,2,"ng-container",5),a(18,"td",51),u(19,rt,2,0,"ng-container",52)(20,st,4,8,"ng-template",null,0,z),r()()),o&2){let e=p.$implicit,n=p.index,t=Q(21),i=l(3);s(),I(n==0?1:-1),s(2),k(e==null?null:e.Model),s(2),m("matTooltip",e.Discontinued?i.discontinuedVariantMsg:"")("ngClass",R(14,Ne,e.Discontinued)),s(),k(e==null?null:e.Code),s(2),I((e==null?null:e.Channel[0].TypeID)==1?8:(e==null?null:e.Inventory)>=0?9:-1),s(4),m("ngIf",(e==null?null:e.I)==null),s(),I((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?13:-1),s(),I((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?14:-1),s(),m("ngIf",(e==null?null:e.I)!=null),s(),m("ngIf",e==null?null:e.Channel),s(),m("ngIf",i.isShowReservedColumn),s(2),m("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==i.minDate)("ngIfElse",t)}}function ct(o,p){if(o&1&&(a(0,"tbody"),$(1,je,0,0,null,null,U),u(3,pt,22,16,"tr",42),r()),o&2){let e=p.$implicit;s(),j(e.Variants),s(2),m("ngForOf",e.Variants)}}function mt(o,p){if(o&1){let e=y();a(0,"mainpanel",3),f("onSubmit",function(t){_(e);let i=l();return d(i.onSearch(t))}),a(1,"actions")(2,"div",4),u(3,We,6,1,"div",5),h(4,"async"),r()(),a(5,"filters")(6,"div")(7,"label",6),c(8,"Channel"),r(),a(9,"multiwarehouse-tree-select",7),f("onChannelChange",function(t){_(e);let i=l();return d(i.onChannelChange(t))}),r()(),a(10,"div",8)(11,"label",9),c(12,"PageNumber"),r(),a(13,"input",10),F("ngModelChange",function(t){_(e);let i=l();return T(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),d(t)}),r()(),a(14,"div",8)(15,"label",11),c(16,"Page Size"),r(),a(17,"input",12),F("ngModelChange",function(t){_(e);let i=l();return T(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),d(t)}),r()(),a(18,"div",8)(19,"label",13),c(20,"Quantity From - To"),r(),a(21,"div",14)(22,"input",15),F("ngModelChange",function(t){_(e);let i=l();return T(i.searchFilter.QuantityFrom,t)||(i.searchFilter.QuantityFrom=t),d(t)}),r(),c(23," - "),a(24,"input",16),F("ngModelChange",function(t){_(e);let i=l();return T(i.searchFilter.QuantityTo,t)||(i.searchFilter.QuantityTo=t),d(t)}),r()()()(),a(25,"content")(26,"div",17)(27,"div",18)(28,"div",19),u(29,Oe,3,0,"div",20),a(30,"table",21)(31,"thead",22)(32,"tr")(33,"th",23),c(34," Product "),S(35,"br"),a(36,"mat-slide-toggle",24),f("toggleChange",function(){_(e);let t=l();return t.showDifferenceStock=!t.showDifferenceStock,d(t.onShowDifferenceStock())}),a(37,"small",13),c(38,"FILTER DIFFERENT INVENTORY"),r()()(),a(39,"th",25),c(40,"Variant"),r(),a(41,"th",26),c(42,"SKU"),r(),u(43,Ue,2,1,"th",5),h(44,"async"),a(45,"th",27),c(46,"POS"),r(),a(47,"th",28)(48,"div",29),f("click",function(){_(e);let t=l();return d(t.openModalFilter())}),S(49,"img",30),a(50,"span",31),c(51),h(52,"stringLimit"),r()()(),u(53,$e,2,0,"th",32),a(54,"th",33),c(55,"Last Sync"),r()()(),$(56,ct,4,1,"tbody",null,U),h(58,"async"),r(),a(59,"infinite-paginator",34),h(60,"async"),f("onNextPage",function(){_(e);let t=l();return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=l();return d(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){_(e);let t=l();return d(t.infinitePagination.getRowCount(t.searchFilter))}),r()()()()()()}if(o&2){let e,n,t,i=l();m("headerTitle","Inventory Comparison")("pageData",i.pageData)("hideSearchBox",!1),s(3),m("ngIf",x(4,21,i.products$)),s(6),m("ngModel",(i.searchFilter==null?null:i.searchFilter.LocationID)||(i.searchFilter==null?null:i.searchFilter.ChannelID)),s(4),b("ngModel",i.searchFilter.PageNumber),s(4),b("ngModel",i.searchFilter.RowCount),s(5),b("ngModel",i.searchFilter.QuantityFrom),s(2),b("ngModel",i.searchFilter.QuantityTo),s(5),m("ngIf",(i.searchFilter==null?null:i.searchFilter.filterModel)==3),s(14),m("ngIf",x(44,23,i.products$)),s(5),m("matTooltip",((e=i.channelIdentity())==null||e.label==null?null:e.label.length)>13?(e=i.channelIdentity())==null?null:e.label:""),s(),m("src",(n=i.channelIdentity())==null?null:n.img,P),s(2),M(" ",N(52,25,(t=i.channelIdentity())==null?null:t.label,13)," "),s(2),I(i.isShowReservedColumn?53:-1),s(3),j(x(58,28,i.products$)),s(3),m("totalData",i.infinitePagination.totalData())("hideCount",i.infinitePagination.hideCount())("rowCount",x(60,30,i.infinitePagination.totalRowCount$))("pageNumber",i.infinitePagination.pageNumber())("disableNextButton",i.infinitePagination.disableNextButton())("goToLastPage",i.infinitePagination.isLastPage())}}var Kt=(()=>{let p=class p{constructor(n,t,i,C,g,E,ke,Re){this.http=n,this.toastr=t,this.dialog=i,this.productService=C,this.authService=g,this.biggerPictureService=E,this.inventoryService=ke,this.mainPanelService=Re,this.infinitePagination=K(G),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=v.MinDate,this.isShowReservedColumn=!0,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.guidEmpty=v.GuidEMpty,this.selectedChannel=O(null),this.channelIdentity=O({img:null,label:null}),this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.hostName=this.authService.getDomain(),this.initPageLoader(),this.products$=this.infinitePagination.data$.pipe(W(n=>{this.checkShowReservedColumn(n)}),A())}checkShowReservedColumn(n){let t=0,i;n.forEach(C=>{i=C.Variants.find(g=>v.IsNotEmpty(g?.Channel[0]?.InventoryReserved)),i&&(t+=1)}),this.isShowReservedColumn=t>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe(A(1),W(n=>{this.searchFilter={RowCount:n.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:n.Filter.ChannelID,LocationID:n.Filter.LocationID},this.initReloadData(),this.showToastrMarketplaceInactive(!n.Filter.IsMarketplaceAppActive)}))}onChannelChange(n){let t=Object.assign({},n);this.selectedChannel.set(t),v.IsEmpty(this.channelIdentity()?.label)&&this.setChannelFilter()}setChannelFilter(){if(this.selectedChannel()){let n=Object.assign({},this.selectedChannel());v.IsNotEmpty(n.parent)?(this.searchFilter.LocationID=n.id,this.searchFilter.ChannelID=n?.parent?.id,n.label=n?.parent?.label+" - "+n?.label,n.img=v.getChannelLogoByTypeId(n?.parent?.typeid)):(this.searchFilter.LocationID=null,n.img=v.getChannelLogoByTypeId(n?.typeid),this.searchFilter.ChannelID=n?.id,this.selectedChannel.set(n)),this.channelIdentity.update(()=>({img:n.img,label:n.label}))}}initReloadData(){this.infinitePagination.reloadPagination(this.searchFilter)}showToastrMarketplaceInactive(n){n&&this.toastr.warning(`Automatic inventory sync disabled.
2
- Please enable Dealpos X Marketplace Apps integration in POS Configuration`,"Warning")}onSearch(n){this.searchFilter.text=n,this.setChannelFilter(),this.initReloadData()}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(n){let t=this.productService.selectedVariantProduct(n);if(t.length>0){let i=this.searchFilter.LocationID,C=t.map(E=>B({ID:E.ID,Code:E.Code,Inventory:E.Inventory},v.IsNotEmpty(i)&&{LocationID:i})),g={ListChannelID:[this.searchFilter.ChannelID],List:C};this.http.post("/api/Inventory/UpdateChannel",g).subscribe(E=>{this.initReloadData(),this.checkboxState=!1,this.handlingUpdateStock(E)})}}handlingUpdateStock(n){if(n[0]?.Response){let t=n[0]?.Response?.Fail_list,i=n[0]?.Response?.Success_list;this.inventoryService.showToastrUpdateInventory("Stock",i,t)}else this.toastr.error(n[0]?.Exception,"Error")}refreshInventory(n,t,i,C){let g={ChannelItemID:n,ChannelVariationID:t,ChannelID:i,VariantID:C};this.http.post("/api/Inventory/RefreshInventoryChannel",g).subscribe(E=>{this.toastr.success("Successfully updated","Success"),this.initReloadData()})}onCheckboxStateProduct(n){n.Variants=n.Variants.map(t=>(t.Inventory>=0&&(t.selected=n.selected),t))}onCheckboxStateChange(n){n=n.map(t=>(t.Variants=t.Variants.map(i=>(i.selected=this.checkboxState,i)),t))}openTableDialog(n,t,i){this.dialog.open(Pe,{data:{Name:n.Name,Variant:t,ChannelID:t?.Channel[0].ChannelID,Table:"inventory",ChannelItemID:n.ChannelItemID}}).afterClosed().pipe(Y(g=>v.IsNotEmpty(g))).subscribe(g=>{this.updateItemAfterDialog(g)})}updateItemAfterDialog(n){let t=this.searchFilter.LocationID,i=B({ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,NewQuantity:parseFloat(n.Inventory),VariantID:n.ID,SKU:n.Sku},v.IsNotEmpty(t)&&{LocationID:t});this.http.post("/api/Inventory/UpdateQuantityByItem",i).subscribe(C=>{this.searchFilter.PageNumber=1,this.initReloadData(),this.handlingUpdateStock([C])})}openExportDialog(){this.dialog.open(Me,{data:{title:"Export Inventory Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,QuantityFrom:this.searchFilter.QuantityFrom,QuantityTo:this.searchFilter.QuantityTo,exportApi:"Inventory/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}onShowDifferenceStock(){this.showDifferenceStock?this.searchFilter.filterModel=H.DIFFERENCE:this.searchFilter.filterModel=H.ALL,this.initReloadData()}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}};p.\u0275fac=function(t){return new(t||p)(w(ue),w(de),w(Se),w(we),w(Ce),w(be),w(L),w(ye))},p.\u0275cmp=Z({type:p,selectors:[["app-single-channel-comparison"]],standalone:!0,features:[X([G,L]),J],decls:2,vars:3,consts:[["SYNCDATE",""],["EMPTY_RESERVED",""],["textButton","Search",3,"headerTitle","pageData","hideSearchBox","onSubmit",4,"ngIf"],["textButton","Search",3,"onSubmit","headerTitle","pageData","hideSearchBox"],[1,"d-flex"],[4,"ngIf"],["for","channelOptions",1,"fw-bold","mb-2"],["id","channelOptions",3,"onChannelChange","ngModel"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],[1,"fw-bold"],[1,"d-flex","align-items-center","justify-content-start"],["type","number","name","QuantityFrom",1,"w-25","me-2","mt-3","form-control",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"w-25","ms-2","form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","ps-12",2,"width","25%"],[3,"toggleChange"],["scope","col",1,"text-start"],["scope","col",1,"text-end",2,"width","10%"],["scope","col",1,"text-end","w-10",2,"width","8%"],[1,"text-end",2,"width","150px"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],["matTooltip","Reserved Stock","matTooltipPosition","above",1,"text-end",2,"width","80px"],[1,"text-center",2,"width","145px"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["class","btn btn-success",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["type","checkbox",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"align-middle"],["type","checkbox",3,"ngModel"],[1,"d-flex","align-items-center","justify-content-end"],["class","text-danger","matTooltip","This product is no longer available in POS","matTooltipPosition","above",4,"ngIf"],["class","text-end",3,"ngClass",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"width","0%",3,"rowSpan"],["type","checkbox",1,"me-3",3,"ngModel"],[3,"ngClass"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"click","src"],[1,"d-flex","align-items-center"],["title","Category",1,"fa-solid","fa-tags","me-2",2,"opacity","60%"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],["title","Stock Available"],["title","Inventory below minimum inventory"],[1,"ms-3"],["target","_blank",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-end",3,"ngClass"],["class","cursor",3,"click",4,"ngIf"],["matTooltip","Refresh stock according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","fa-sync","fa-lg","external-link-custom","pt-1"],[1,"cursor",3,"click"],[1,"text-danger"],["matTooltipShowDelay","500",3,"matTooltip"]],template:function(t,i){t&1&&(u(0,mt,61,32,"mainpanel",2),h(1,"async")),t&2&&m("ngIf",x(1,1,i.loader$))},dependencies:[le,ee,te,ne,ie,ae,oe,Ie,ve,ge,_e,se,me,re,pe,ce,Ee,De,he,Fe,Te,xe,fe,Ve],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}"]});let o=p;return o})();export{Kt as SingleChannelComparisonComponent};
@@ -1 +0,0 @@
1
- import{a as G}from"./chunk-EJSGWKV7.js";import{a as x}from"./chunk-LQWFYVLD.js";import"./chunk-6U6JR5K6.js";import"./chunk-ZRW4OZGG.js";import"./chunk-PCKZD4LZ.js";import"./chunk-YUBBVFFI.js";import{a as V,b as $}from"./chunk-2LJXM62F.js";import"./chunk-ENIJ4MFV.js";import"./chunk-UOT5GPQI.js";import"./chunk-C2SGQUOH.js";import"./chunk-KTXT25SP.js";import{m as z,n as j}from"./chunk-OI3SQ5ZO.js";import"./chunk-OE7XFNYO.js";import"./chunk-UEB6GFG5.js";import{c as N,h as O,m as H,y as q}from"./chunk-JCKUKK6T.js";import{$c as W,Bc as A,Cc as B,Ec as R,Fc as k,Ja as o,Jb as a,Ka as L,Lb as c,Nb as f,Ob as v,Pb as S,Q as b,Rb as w,Sb as F,Tb as E,Zc as D,_a as P,ab as u,ac as d,bc as g,cc as _,eb as M,ga as I,mb as t,nb as n,q as h,vb as C,xc as T}from"./chunk-QNL3BTRG.js";import"./chunk-GNOSNGXM.js";var J=()=>["/menu/log/inventory/detail"],K=l=>({ID:l});function Q(l,p){if(l&1&&(t(0,"tr")(1,"td")(2,"a",17),a(3),d(4,"date"),n()(),t(5,"td"),a(6),d(7,"number"),n(),t(8,"td")(9,"span",18),a(10),n()()()),l&2){let r=p.$implicit;o(2),u("routerLink",F(13,J))("queryParams",E(14,K,r._id)),o(),c(" ",_(4,7,r==null?null:r._source["@timestamp"],"dd MMM yyyy HH:mm:ss")," "),o(3),c("",_(7,10,r.DurationInSecond,"1.1-1")," s"),o(3),M((r==null?null:r.respCode)===200||(r==null?null:r.respCode)===202?"bg-success":"bg-warning"),o(),c(" ",r==null?null:r.respCode," ")}}var se=(()=>{let p=class p{constructor(m){this.inventoryAsyncServiceLog=m,this.filters={PageNumber:1,RowCount:100,From:null,To:null,StatusCode:""}}ngOnInit(){this.initInventoryLog()}initInventoryLog(){let m=this.inventoryAsyncServiceLog.getInventoryAsyncLog(this.filters).pipe(b(1));this.inventoryLog$=m.pipe(h(s=>s?.hits)),this.totalPagination$=m.pipe(h(s=>s?.total.value))}onPaginationChange(m){this.filters.PageNumber=m.pageIndex+1,this.initInventoryLog()}onSubmitFilter(){this.initInventoryLog()}};p.\u0275fac=function(s){return new(s||p)(L(G))},p.\u0275cmp=I({type:p,selectors:[["app-inventory-async-log"]],standalone:!0,features:[w],decls:38,vars:16,consts:[["headerTitle","Product Inventory Sync",3,"onSubmit","hideSearchBox"],["role","button","routerLink","/menu/log/inventory/sync-inventory",1,"btn","btn-success"],["container",""],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"mt-5"],["type","text","name","StatusCode",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"],[1,"text-white","p-2","rounded","response-desc"]],template:function(s,e){s&1&&(t(0,"mainpanel",0),C("onSubmit",function(){return e.onSubmitFilter()}),t(1,"actions")(2,"a",1),a(3," Sync Inventory "),n()(),t(4,"filters")(5,"div",2)(6,"div")(7,"label",3),a(8,"From/To"),n(),t(9,"div",4)(10,"datepicker",5),S("dateChange",function(i){return v(e.filters.From,i)||(e.filters.From=i),i}),n()(),t(11,"div")(12,"datepicker",6),S("dateChange",function(i){return v(e.filters.To,i)||(e.filters.To=i),i}),n()()(),t(13,"div",7)(14,"label"),a(15,"Response Code"),n(),t(16,"input",8),S("ngModelChange",function(i){return v(e.filters.StatusCode,i)||(e.filters.StatusCode=i),i}),n()()()(),t(17,"content")(18,"div",9)(19,"div",10)(20,"div",11)(21,"div",12)(22,"table",13)(23,"thead")(24,"tr",14)(25,"th"),a(26,"Created"),n(),t(27,"th"),a(28,"Duration"),n(),t(29,"th"),a(30,"Response code"),n()()(),t(31,"tbody"),P(32,Q,11,16,"tr",15),d(33,"async"),n()(),t(34,"mat-paginator",16),d(35,"async"),d(36,"async"),d(37,"async"),C("page",function(i){return e.onPaginationChange(i)}),n()()()()()()()),s&2&&(u("hideSearchBox",!0),o(10),f("date",e.filters.From),o(2),f("date",e.filters.To),o(4),f("ngModel",e.filters.StatusCode),o(16),u("ngForOf",g(33,8,e.inventoryLog$)),o(2),u("length",g(35,10,e.totalPagination$))("pageSize",e.filters.RowCount>g(36,12,e.totalPagination$)?g(37,14,e.totalPagination$):e.filters.RowCount)("pageIndex",(e.filters==null?null:e.filters.PageNumber)==0?0:(e.filters==null?null:e.filters.PageNumber)-1))},dependencies:[q,N,O,H,k,T,A,R,B,j,z,$,V,x,W,D]});let l=p;return l})();export{se as InventoryAsyncLogComponent};
@@ -1 +0,0 @@
1
- import{a as v,b}from"./chunk-UAXJ7MHW.js";import{a as r}from"./chunk-LLLHVCIO.js";import"./chunk-7NE7ZI6R.js";import"./chunk-KTXT25SP.js";import"./chunk-KCDL7SWP.js";import"./chunk-OE7XFNYO.js";import"./chunk-UEB6GFG5.js";import"./chunk-KZ2VDCDO.js";import{$c as i,Fc as o,Ja as s,Rb as f,Xc as h,aa as l,ab as u,ga as m,ha as c,mb as d,nb as C,ob as a}from"./chunk-QNL3BTRG.js";import"./chunk-GNOSNGXM.js";var T=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Custom Channel Price",Url:"/menu/price/OutletPrice"}]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=m({type:e,selectors:[["app-price"]],standalone:!0,features:[f],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,g){n&1&&(d(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),C()()(),a(4,"router-outlet")),n&2&&(s(3),u("Tabs",g.priceTabs))},dependencies:[o,b,v,i,h],encapsulation:2});let t=e;return t})();var P=[{path:"",component:T,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-SCVHFMF7.js").then(t=>t.PricePosChannelComponent)},canActivate:[r],data:{title:"Global Price Comparison"}},{path:"OutletPrice",loadComponent(){return import("./chunk-EQIBEDOW.js").then(t=>t.CustomChannelPriceComponent)},canActivate:[r],data:{title:"Outlet Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-HPD77AAI.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[r],data:{title:"Price Single Channel Comparison"}}]}],D=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[o,i.forChild(P)]});let t=e;return t})();export{D as PriceRoutingModule};
@@ -1,5 +0,0 @@
1
- import{b as g}from"./chunk-KTXT25SP.js";import{$ as o,ca as l}from"./chunk-QNL3BTRG.js";var d=(()=>{let s=class s{constructor(e){this.toastrService=e}showToastrUpdateInventory(e,t,r){let a=t.length>0,i=r.length>0;if(!i&&a&&this.toastrService.success(`${this.generateSuccessMessage(t.length)}`,"Success",{enableHtml:!0}),i&&a){let c=`<li>${this.generateSuccessMessage(t.length)}</li>`,h=this.generateErrorMessage(e,r),u=`<ol>${c} ${h}</ol>`;this.toastrService.warning(u,"Warning",{enableHtml:!0})}if(i&&!a){let c=`<ol>${this.generateErrorMessage(e,r)}</ol>`;this.toastrService.error(c,"Error",{enableHtml:!0})}}generateSuccessMessage(e){return`
2
- <div>
3
- <span class="fw-bold">Successfully</span> updated ${e} variants in 1 channels
4
- </div>
5
- `}generateErrorMessage(e,t=[]){let r="";return t.forEach((a,i)=>{r+=`<li><span class="fw-bold">Error</span> Updating ${e} for [${a.Name} - ${a.Code}] - <b>${a.Message}</b></li>`}),r}};s.\u0275fac=function(t){return new(t||s)(l(g))},s.\u0275prov=o({token:s,factory:s.\u0275fac});let n=s;return n})();export{d as a};