marketplacepos 5.37.4 → 5.37.6

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 (112) hide show
  1. package/Marketplace/{chunk-2Y4PYWHB.js → chunk-253LI5MR.js} +1 -1
  2. package/Marketplace/{chunk-F3YTGLZT.js → chunk-3ATZJXZX.js} +1 -1
  3. package/Marketplace/{chunk-2IHMLXWJ.js → chunk-3CLNGHAV.js} +1 -1
  4. package/Marketplace/{chunk-YQSHLQDX.js → chunk-3NDNZO2L.js} +1 -1
  5. package/Marketplace/{chunk-WBVTRQFG.js → chunk-3SDQ2PXY.js} +1 -1
  6. package/Marketplace/{chunk-DG3PIXFJ.js → chunk-4ASUM4N5.js} +1 -1
  7. package/Marketplace/{chunk-IPEOCIUA.js → chunk-4MEIRRAC.js} +1 -1
  8. package/Marketplace/{chunk-L6W6BJ3T.js → chunk-5MRT2EFE.js} +1 -1
  9. package/Marketplace/{chunk-52GRE6TF.js → chunk-5XVUQWLZ.js} +1 -1
  10. package/Marketplace/{chunk-67USXWWF.js → chunk-62PFQNHJ.js} +1 -1
  11. package/Marketplace/chunk-6ALHX2I4.js +1 -0
  12. package/Marketplace/{chunk-TTAS23MO.js → chunk-6IAGGRZN.js} +1 -1
  13. package/Marketplace/{chunk-EQD3IUMF.js → chunk-6ZH6QZJ7.js} +1 -1
  14. package/Marketplace/{chunk-WMO2ROK4.js → chunk-7477X7LJ.js} +1 -1
  15. package/Marketplace/{chunk-UOAYF4SW.js → chunk-7TWBIV3T.js} +1 -1
  16. package/Marketplace/{chunk-7W2EWSOP.js → chunk-A32SMC4J.js} +1 -1
  17. package/Marketplace/{chunk-KII7SEQ6.js → chunk-AL3REAHH.js} +1 -1
  18. package/Marketplace/{chunk-2NNAGGBO.js → chunk-AMXLXRQK.js} +1 -1
  19. package/Marketplace/chunk-B6LJ5Q2D.js +1 -0
  20. package/Marketplace/{chunk-XOT2SZPE.js → chunk-BIQHA7UA.js} +2 -2
  21. package/Marketplace/{chunk-JSPVOV7M.js → chunk-BUFEIJAI.js} +1 -1
  22. package/Marketplace/{chunk-JTETVWNX.js → chunk-CATPDWEZ.js} +1 -1
  23. package/Marketplace/{chunk-SD7UKXTX.js → chunk-CH2MLZU7.js} +1 -1
  24. package/Marketplace/{chunk-WNAVUGZ4.js → chunk-CLKCSTGQ.js} +1 -1
  25. package/Marketplace/{chunk-5BTJTFLF.js → chunk-COBHWPGI.js} +1 -1
  26. package/Marketplace/{chunk-VOISFPEM.js → chunk-CRC6ZWYT.js} +1 -1
  27. package/Marketplace/{chunk-WYOXUN3H.js → chunk-CVQMAWML.js} +1 -1
  28. package/Marketplace/{chunk-SE5GYDNR.js → chunk-D4AEMCOX.js} +1 -1
  29. package/Marketplace/{chunk-ONK4P7TL.js → chunk-DI4V7KMK.js} +1 -1
  30. package/Marketplace/{chunk-WHFC7TE4.js → chunk-DP3Z5OLA.js} +1 -1
  31. package/Marketplace/{chunk-AI4XRCAL.js → chunk-DPLEMBB4.js} +1 -1
  32. package/Marketplace/{chunk-RG5P2GM3.js → chunk-DTH24SB2.js} +2 -2
  33. package/Marketplace/{chunk-IVX7QWP7.js → chunk-DVOBTXAG.js} +1 -1
  34. package/Marketplace/{chunk-XR4JKTPA.js → chunk-DZ2EE5MV.js} +1 -1
  35. package/Marketplace/{chunk-EXFL3GUX.js → chunk-EGTYAIU5.js} +1 -1
  36. package/Marketplace/{chunk-K27IWV7V.js → chunk-F6SJRNLX.js} +1 -1
  37. package/Marketplace/{chunk-RDBEJJXU.js → chunk-FEDVRBAQ.js} +1 -1
  38. package/Marketplace/{chunk-HPS3WVU5.js → chunk-G6EG5QJS.js} +1 -1
  39. package/Marketplace/{chunk-4JRXTPAH.js → chunk-GBABJLPQ.js} +1 -1
  40. package/Marketplace/{chunk-OS53H77X.js → chunk-GBD4FIF3.js} +1 -1
  41. package/Marketplace/{chunk-WQ6TZ4KW.js → chunk-GBXNTL4E.js} +1 -1
  42. package/Marketplace/{chunk-ZEWJSXKY.js → chunk-GEKIRBKC.js} +1 -1
  43. package/Marketplace/{chunk-K5CKXDIJ.js → chunk-GHQH62TZ.js} +1 -1
  44. package/Marketplace/{chunk-B6POIFQM.js → chunk-GPEVUTDI.js} +1 -1
  45. package/Marketplace/{chunk-JNMDGK2M.js → chunk-GW3JNWTX.js} +1 -1
  46. package/Marketplace/{chunk-JLKZR2QZ.js → chunk-H55YXRO5.js} +1 -1
  47. package/Marketplace/{chunk-4W7MIJDZ.js → chunk-HKYVBAMV.js} +1 -1
  48. package/Marketplace/chunk-I5YM2VIT.js +2 -0
  49. package/Marketplace/{chunk-VAPIXIJ3.js → chunk-IYYVZ6B6.js} +1 -1
  50. package/Marketplace/{chunk-VOCVNYLC.js → chunk-J25F3KB6.js} +1 -1
  51. package/Marketplace/{chunk-5UHZLNDT.js → chunk-J3P46Z53.js} +1 -1
  52. package/Marketplace/chunk-JFKUPQR5.js +1 -0
  53. package/Marketplace/{chunk-PNPQ4ROP.js → chunk-JPIGJSQD.js} +1 -1
  54. package/Marketplace/{chunk-ORPJLSXE.js → chunk-KHWTOD6H.js} +1 -1
  55. package/Marketplace/{chunk-AMVY4XMB.js → chunk-KT2AAES4.js} +1 -1
  56. package/Marketplace/{chunk-AFMNWVBL.js → chunk-KXZCGKQW.js} +1 -1
  57. package/Marketplace/{chunk-XDB5B4VD.js → chunk-L335YQHL.js} +1 -1
  58. package/Marketplace/{chunk-23MIIDCT.js → chunk-LEHTNMIE.js} +1 -1
  59. package/Marketplace/{chunk-T7KM2WP6.js → chunk-LLZSSV5A.js} +1 -1
  60. package/Marketplace/{chunk-BSATGCWC.js → chunk-LOJPRXKZ.js} +1 -1
  61. package/Marketplace/chunk-LYSVNZ5O.js +3 -0
  62. package/Marketplace/{chunk-MH5AVQJR.js → chunk-MA4Q4SN4.js} +2 -2
  63. package/Marketplace/{chunk-VKJAFLQ6.js → chunk-MNFHFW3E.js} +1 -1
  64. package/Marketplace/{chunk-K3RLIVYF.js → chunk-MWORJUUV.js} +1 -1
  65. package/Marketplace/{chunk-ARIW575T.js → chunk-OE2JYQHN.js} +1 -1
  66. package/Marketplace/{chunk-RNWWVG3M.js → chunk-OLSC6KHB.js} +1 -1
  67. package/Marketplace/chunk-PI5XNDKV.js +1 -0
  68. package/Marketplace/chunk-PN5WSVR3.js +1 -0
  69. package/Marketplace/{chunk-PF4F4EAR.js → chunk-PPDHTO44.js} +1 -1
  70. package/Marketplace/{chunk-OVYL7SOO.js → chunk-PUJ4JVT2.js} +1 -1
  71. package/Marketplace/{chunk-W6T7TOHE.js → chunk-PXB4YEY3.js} +1 -1
  72. package/Marketplace/{chunk-VGXNA5KN.js → chunk-PXU3DWYL.js} +1 -1
  73. package/Marketplace/{chunk-4RAOUTR2.js → chunk-Q2OEJFVT.js} +1 -1
  74. package/Marketplace/{chunk-E24BKGBJ.js → chunk-Q72ZXPDP.js} +1 -1
  75. package/Marketplace/{chunk-EQ2ZKEVE.js → chunk-QCZIDOKW.js} +1 -1
  76. package/Marketplace/{chunk-3DEMAMTN.js → chunk-QDFAV4WD.js} +1 -1
  77. package/Marketplace/{chunk-T2UNTDY6.js → chunk-QJPYHI7W.js} +1 -1
  78. package/Marketplace/{chunk-O55WNQN7.js → chunk-R5VPHJNX.js} +1 -1
  79. package/Marketplace/{chunk-6ZT6G6ZX.js → chunk-RD4YT3CW.js} +1 -1
  80. package/Marketplace/{chunk-OM7KOQLP.js → chunk-RGR34QZ3.js} +1 -1
  81. package/Marketplace/{chunk-R5IDWUP6.js → chunk-RIHLYYZU.js} +1 -1
  82. package/Marketplace/{chunk-3NMGN7IE.js → chunk-RVYGL22E.js} +1 -1
  83. package/Marketplace/chunk-T5ONJF63.js +7 -0
  84. package/Marketplace/chunk-T6QOFDEE.js +1 -0
  85. package/Marketplace/{chunk-K64ATXFK.js → chunk-TB6SAKPJ.js} +1 -1
  86. package/Marketplace/{chunk-OBN6RKRH.js → chunk-TGOIGCN3.js} +1 -1
  87. package/Marketplace/{chunk-AKJ4I7KF.js → chunk-TMFFA26Y.js} +1 -1
  88. package/Marketplace/{chunk-7EO5MRBU.js → chunk-TMTCLVPQ.js} +1 -1
  89. package/Marketplace/{chunk-5WNSX64O.js → chunk-UBMI3NQH.js} +1 -1
  90. package/Marketplace/{chunk-B5JAZPVU.js → chunk-UDOCTVWA.js} +1 -1
  91. package/Marketplace/{chunk-VYKDVKG3.js → chunk-VGXQU74M.js} +1 -1
  92. package/Marketplace/{chunk-2NECQ3RY.js → chunk-WAW37FIG.js} +1 -1
  93. package/Marketplace/{chunk-74EGQDBL.js → chunk-XI4FXW4A.js} +1 -1
  94. package/Marketplace/{chunk-GVAPYZ7X.js → chunk-XODH25IM.js} +1 -1
  95. package/Marketplace/{chunk-R6B6DIG3.js → chunk-YIUQQGOQ.js} +1 -1
  96. package/Marketplace/{chunk-7M4RYU7S.js → chunk-YR2WEZDG.js} +1 -1
  97. package/Marketplace/{chunk-5Z63CRGG.js → chunk-YXFTLQ5M.js} +1 -1
  98. package/Marketplace/{chunk-6HVHZ3HN.js → chunk-ZD5LURJS.js} +1 -1
  99. package/Marketplace/{chunk-YE6BUIS7.js → chunk-ZFXG66EM.js} +1 -1
  100. package/Marketplace/{chunk-76DD4KTI.js → chunk-ZM2FWYWC.js} +1 -1
  101. package/Marketplace/{chunk-WU7L6NYM.js → chunk-ZZKEXCH5.js} +2 -2
  102. package/Marketplace/{chunk-TY4H2W6F.js → chunk-ZZVNB72Q.js} +1 -1
  103. package/Marketplace/index.html +3 -2
  104. package/Marketplace/{main-6QPEM5JQ.js → main-5W36IJOX.js} +1 -1
  105. package/package.json +1 -1
  106. package/Marketplace/chunk-6A4PYMCJ.js +0 -1
  107. package/Marketplace/chunk-7CIOGSCS.js +0 -3
  108. package/Marketplace/chunk-EIQCOZF5.js +0 -7
  109. package/Marketplace/chunk-H5DKI4F4.js +0 -1
  110. package/Marketplace/chunk-HA5WIDED.js +0 -1
  111. package/Marketplace/chunk-LBCJNHNR.js +0 -1
  112. package/Marketplace/chunk-RX6VZ4IG.js +0 -1
@@ -1 +0,0 @@
1
- import{a as Le}from"./chunk-7M4RYU7S.js";import{a as H}from"./chunk-XHAXYWZ7.js";import{a as Re,b as $e,c as Ue,d as Q}from"./chunk-EQD3IUMF.js";import{a as Ce}from"./chunk-BVIRHZTZ.js";import{a as Be}from"./chunk-PF4F4EAR.js";import{a as De}from"./chunk-7KG3DC5J.js";import{b as ke}from"./chunk-OBN6RKRH.js";import"./chunk-5Z63CRGG.js";import"./chunk-RNWWVG3M.js";import"./chunk-UOAYF4SW.js";import{a as Ve}from"./chunk-EXFL3GUX.js";import"./chunk-BSATGCWC.js";import"./chunk-6A4PYMCJ.js";import"./chunk-3RK6DDJD.js";import{a as Ee,b as Te,c as Oe}from"./chunk-K5CKXDIJ.js";import"./chunk-SD7UKXTX.js";import"./chunk-TY4H2W6F.js";import{a as Ne}from"./chunk-VYKDVKG3.js";import"./chunk-SDUUFQUI.js";import"./chunk-HPS3WVU5.js";import"./chunk-R5IDWUP6.js";import"./chunk-4RAOUTR2.js";import{a as Se,b as ve,d as ye,e as Ie}from"./chunk-TTAS23MO.js";import"./chunk-HA5WIDED.js";import"./chunk-AFMNWVBL.js";import"./chunk-EQ2ZKEVE.js";import{j as z}from"./chunk-7CIOGSCS.js";import{b as fe,e as xe}from"./chunk-JSPVOV7M.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-ORPJLSXE.js";import{d as we,l as Me,m as Fe}from"./chunk-XOT2SZPE.js";import{r as G,s as K}from"./chunk-AKJ4I7KF.js";import"./chunk-2NECQ3RY.js";import{a as ge,b as he,h as V,m as N,y as k}from"./chunk-AI4XRCAL.js";import{c as j,e as Pe,f as be}from"./chunk-W6T7TOHE.js";import{d as pe,f as W,g as de,j as _e,m as ue,n as D}from"./chunk-B6POIFQM.js";import{Dc as q,Eb as T,Ec as p,Fc as ce,G as J,Gc as f,Ic as w,Jc as M,Ka as oe,Kb as _,Kc as F,Mc as A,Na as Z,Oc as O,Pc as se,Qa as ae,Wb as s,Xc as v,Yc as E,Z as X,Zb as re,Zc as me,_c as Y,bc as U,cc as B,ea as ie,ec as L,fc as R,gc as o,hc as a,ic as x,jc as y,kc as I,mc as P,ob as b,pa as $,qb as r,rc as g,sc as m,v as ne,vc as le,wb as S,ya as h,za as C}from"./chunk-EIQCOZF5.js";import{a as ee,b as te}from"./chunk-K2H6WANG.js";var Xe=(n,c)=>({color:n,"font-weight":c});function Ze(n,c){if(n&1&&(o(0,"mat-radio-button",2),p(1),a()),n&2){let e=c.$implicit,i=c.index,t=m();re(se(7,Xe,t.model==e.Key&&t.activeBold?"#0976b4":"",t.model==e.Key&&t.activeBold?"700":"")),s("disabled",t.exception==e.Value)("matTooltip",t.title.length>0?t.title[i]:"")("value",e.Key)("name",t.name),r(),f("",e.Value," ")}}var je=(()=>{class n{constructor(){this.disabled=!1,this.modelChange=new oe,this.options=[{Key:!1,Value:"No"},{Key:!0,Value:"Yes"}],this.border=!1,this.name="",this.title=[],this.exception="",this.activeBold=""}change(e){this.modelChange.emit(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=T({type:n,selectors:[["lib-radio-options"]],inputs:{model:"model",disabled:"disabled",options:"options",border:"border",name:"name",title:"title",exception:"exception",activeBold:"activeBold"},outputs:{modelChange:"modelChange"},decls:2,vars:3,consts:[["color","primary",3,"ngModelChange","disabled","ngModel"],["matTooltipPosition","above","class","me-4 mt-1",3,"style","disabled","matTooltip","value","name",4,"ngFor","ngForOf"],["matTooltipPosition","above",1,"me-4","mt-1",3,"disabled","matTooltip","value","name"]],template:function(i,t){i&1&&(o(0,"mat-radio-group",0),g("ngModelChange",function(d){return t.change(d)}),_(1,Ze,2,10,"mat-radio-button",1),a()),i&2&&(s("disabled",t.disabled)("ngModel",t.model),r(),s("ngForOf",t.options))},dependencies:[D,W,Oe,Ee,Te,k,V,N,K,G],styles:["html[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 36px}html[_ngcontent-%COMP%]{--mat-radio-touch-target-display: block}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled:checked + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__outer-circle[_ngcontent-%COMP%]{border-color:#0976b4!important}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__inner-circle[_ngcontent-%COMP%]{background-color:#0976b4!important;border-color:#0976b4!important}"]})}}return n})();function qe(n,c){if(n&1&&(o(0,"span",3),x(1,"img",4),a(),o(2,"span"),p(3),a()),n&2){let e=c.item;r(),s("src",e==null?null:e.Img,b),r(2),f(" ",e.Name," ")}}function Ye(n,c){if(n&1){let e=P();o(0,"span",6),g("click",function(){h(e);let t=m(),l=t.item,d=t.clear;return C(d(l))}),p(1,"x"),a()}}function Qe(n,c){if(n&1&&(o(0,"span",3),x(1,"img",4),a(),o(2,"span"),p(3),a(),_(4,Ye,2,0,"span",5)),n&2){let e=c.item,i=m();r(),s("src",e==null?null:e.Img,b),r(2),f(" ",e.Name," "),r(),U(i.clearable()?4:-1)}}var ze=(()=>{class n{constructor(){this.authService=$(z),this.multiple=Z(!1),this.clearable=Z(!0),this.options=this.authService.getChannels(),this.onChange=e=>{}}onChannelChange(e){this.onChange(e)}writeValue(e){this.selectedChannels=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=T({type:n,selectors:[["channel-select-options"]],inputs:{multiple:[1,"multiple"],clearable:[1,"clearable"]},features:[A([{provide:ge,multi:!0,useExisting:n}])],decls:3,vars:4,consts:[["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text",3,"ngModelChange","clearable","items","ngModel","multiple"],["ng-option-tmp",""],["ng-label-tmp",""],[1,"me-2"],[2,"width","18px",3,"src"],["aria-hidden","true",1,"ng-value-icon","right"],["aria-hidden","true",1,"ng-value-icon","right",3,"click"]],template:function(i,t){i&1&&(o(0,"ng-select",0),F("ngModelChange",function(d){return M(t.selectedChannels,d)||(t.selectedChannels=d),d}),g("ngModelChange",function(d){return t.onChannelChange(d)}),_(1,qe,4,2,"ng-template",1)(2,Qe,5,3,"ng-template",2),a()),i&2&&(s("clearable",t.clearable())("items",t.options),w("ngModel",t.selectedChannels),s("multiple",t.multiple()))},dependencies:[D,Ie,ye,Se,ve,k,V,N],encapsulation:2})}}return n})();var Ge=n=>[n],et=n=>({"text-decoration-line-through":n}),tt=n=>({"border-bottom":n}),nt=n=>({"bg-gradient-warning":n});function it(n,c){if(n&1){let e=P();y(0),o(1,"div")(2,"label",21),p(3,"Channel"),a(),o(4,"channel-select-options",22),F("ngModelChange",function(t){h(e);let l=m();return M(l.searchFilter.ListChannelID,t)||(l.searchFilter.ListChannelID=t),C(t)}),a()(),o(5,"div",23)(6,"label",24),p(7,"Filter by"),a(),o(8,"lib-radio-options",25),F("modelChange",function(t){h(e);let l=m();return M(l.searchFilter.filterModel,t)||(l.searchFilter.filterModel=t),C(t)}),a()(),I()}if(n&2){let e=m();r(4),s("multiple",!0),w("ngModel",e.searchFilter.ListChannelID),r(4),w("model",e.searchFilter.filterModel),s("options",e.filterTypeOptions)}}function ot(n,c){if(n&1){let e=P();o(0,"button",27),g("click",function(){h(e);let t=m().ngIf,l=m();return C(l.onUpdateItems(t))}),x(1,"i",28),p(2," Update "),a()}}function at(n,c){if(n&1&&(y(0),o(1,"div",4),_(2,ot,3,0,"button",26),a(),I()),n&2){let e=c.ngIf,i=m();r(2),s("ngIf",i.productService.hasSelectionVariant(e))}}function rt(n,c){if(n&1&&(o(0,"th",15)(1,"div",29),x(2,"img",30),o(3,"div",31),p(4),v(5,"stringLimit"),a()()()),n&2){let e=c.$implicit;r(),s("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),r(),s("src",e==null?null:e.Img,b),r(2),f(" ",me(5,3,e.Name,20)," ")}}function lt(n,c){if(n&1){let e=P();o(0,"th")(1,"input",32),F("ngModelChange",function(t){h(e);let l=m();return M(l.checkboxState,t)||(l.checkboxState=t),C(t)}),g("ngModelChange",function(){h(e);let t=m();return C(t.onSelectAllData())}),a()()}if(n&2){let e=m();r(),w("ngModel",e.checkboxState)}}function ct(n,c){n&1&&(o(0,"th",33)(1,"span"),p(2,"Expected"),a(),o(3,"span",34),p(4,"(POS)"),a()(),o(5,"th",33),p(6,"Channel"),a())}function st(n,c){if(n&1){let e=P();o(0,"img",47),g("click",function(t){h(e);let l=m(3).$implicit,d=m(2);return C(d.onZoomImage(t,l==null?null:l.ImageUrl))}),a()}if(n&2){let e=m(3).$implicit;le("src",e==null?null:e.ImageUrl,b)}}function mt(n,c){n&1&&x(0,"img",48)}function pt(n,c){if(n&1&&(o(0,"small",46),p(1),a()),n&2){let e=m(3).$implicit;r(),f("(",e==null?null:e.Category,")")}}function dt(n,c){if(n&1&&(y(0),o(1,"td",42),_(2,st,1,1,"img",43)(3,mt,1,0,"ng-template",null,0,Y),a(),o(5,"td",44)(6,"h5",45),p(7),a(),_(8,pt,2,1,"small",46),a(),I()),n&2){let e=q(4),i=m().$index,t=m().$implicit,l=m().ngIf;r(),s("rowSpan",t==null?null:t.Variants.length)("ngClass",O(7,tt,i+1==l.length)),r(),s("ngIf",t==null?null:t.ImageUrl)("ngIfElse",e),r(3),s("rowSpan",t==null?null:t.Variants.length),r(2),ce(t==null?null:t.Name),r(),U(t!=null&&t.Category?8:-1)}}function _t(n,c){if(n&1){let e=P();o(0,"td",49)(1,"input",32),F("ngModelChange",function(t){h(e);let l=m().$implicit;return M(l.selected,t)||(l.selected=t),C(t)}),a()()}if(n&2){let e=m().$implicit;r(),w("ngModel",e.selected)}}function ut(n,c){if(n&1){let e=P();y(0),o(1,"td",51),p(2),v(3,"number"),a(),o(4,"td",52),g("click",function(){let t=h(e).$implicit,l=m(2).$implicit,d=m().$implicit,u=m(2);return C(u.openTableDialog(l,d,t))}),o(5,"div",53)(6,"div",54),p(7),v(8,"number"),a(),o(9,"a",55),g("click",function(t){return h(e),C(t==null?null:t.stopPropagation())}),x(10,"i",40),a()()(),I()}if(n&2){let e=c.$implicit;r(2),f(" ",E(3,4,e.PriceExpected)," "),r(2),s("ngClass",O(8,nt,e.Price!=e.PriceExpected)),r(3),f(" ",E(8,6,e.Price)," "),r(2),s("href",e.Url,b)}}function gt(n,c){n&1&&(o(0,"td",56),p(1," X "),a(),o(2,"td",56),p(3," X "),a())}function ht(n,c){if(n&1&&(y(0),_(1,ut,11,10,"ng-container",50)(2,gt,4,0,"ng-template",null,1,Y),I()),n&2){let e=c.$implicit,i=q(3),t=m().$implicit,l=m(3);r(),s("ngIf",l.getItemFromChannel(t,e.ID))("ngIfElse",i)}}function Ct(n,c){if(n&1&&(o(0,"tr"),_(1,dt,9,9,"ng-container",3),o(2,"td",35),p(3),a(),o(4,"td",36)(5,"div",37)(6,"div",38),p(7),a(),o(8,"div",31)(9,"a",39),x(10,"i",40),a()()()(),_(11,_t,2,1,"ng-template",19)(12,ht,4,2,"ng-container",41),a()),n&2){let e=c.$implicit,i=c.$index,t=m(3);r(),s("ngIf",i==0),r(2),f(" ",e==null?null:e.Model," "),r(),s("matTooltip",e.Discontinued?t.discontinuedVariantMsg:""),r(2),s("ngClass",O(8,et,e.Discontinued)),r(),f(" ",e==null?null:e.Code," "),r(2),s("href",t.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),b),r(2),s("ngxPermissionsOnly",O(10,Ge,t.rolePriceEdit)),r(),s("ngForOf",t.channels())}}function ft(n,c){if(n&1&&(o(0,"tbody"),L(1,Ct,13,12,"tr",null,B),a()),n&2){let e=c.$implicit;r(),R(e.Variants)}}function xt(n,c){if(n&1&&(y(0),L(1,ft,3,0,"tbody",null,B),I()),n&2){let e=c.ngIf;r(),R(e)}}var gn=(()=>{class n{constructor(e,i,t,l,d,u,Ke){this.http=e,this.toastr=i,this.dialog=t,this.productService=l,this.authService=d,this.biggerPictureService=u,this.paginationService=Ke,this.infinitePagination=$(Q),this.searchFilter=new De,this.checkboxState=!1,this.rolePriceEdit=Ce.price,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.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.channels=ae([]),this.filterTypeOptions=[{Key:H.ALL,Value:"All"},{Key:H.DIFFERENCE,Value:"Difference"}],this.pageData={Title:"Price Realtime",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!1}]},this.channelOptions=this.authService.getChannels(),this.hostName=this.authService.getDomain(),this.initPagination(),this.initChannelTable()}initChannelTable(){let e=this.searchFilter.ListChannelID,i=[];j.IsEmpty(e)||e?.length==0?i=this.channelOptions:i=this.channelOptions.filter(t=>e.findIndex(l=>l==t.ID)>-1),this.channels.update(()=>i)}initPagination(){this.infinitePagination.fetchDataEndpoint="Price/GetOutletPrice",this.infinitePagination.fethRowCountEndpoint=this.rowCountAPI,this.initProduct(),this.initPageLoader()}initProduct(){this.data$=this.infinitePagination.data$.pipe(X(1))}initPageLoader(){this.loader$=this.http.post("/api/PriceLoader/LoadMultiple",{}).pipe(ie(e=>{this.searchFilter=e.Filter,this.searchFilter.filterModel=H.ALL,this.infinitePagination.reloadPagination(this.searchFilter)}),X(1))}onSelectAllData(){this.data$=this.data$.pipe(ne(e=>(e.map(i=>(i.Variants&&(i.Variants=i.Variants.map(t=>(t.selected=this.checkboxState,t))),i)),e)))}onFilter(e){this.searchFilter.text=e;let i=te(ee({},this.searchFilter),{text:e,PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount});this.initChannelTable(),this.infinitePagination.reloadPagination(i)}updatePrice(e){let i=this.productService.selectedVariantProduct(e);if(i.length>0){let t=i.map(u=>u.ID),d={ListChannelID:this.channelOptions.filter(u=>u.selected).map(u=>u.ID),ListID:t};this.http.post("/api/Price/UpdateChannelOutletPrice",d).subscribe({next:u=>{this.resetSelectedChannel(),this.onFilter(),this.toastr.success("Successfully updated "+d.ListID.length+" items in "+d.ListChannelID.length+" channels","Success")},error:u=>{this.resetSelectedChannel()}})}}resetSelectedChannel(){this.channelOptions=this.channelOptions.map(e=>(e.selected=!1,e))}getItemFromChannel(e,i){return e.Channel.find(t=>t.ChannelID==i)}onUpdateItems(e){let i=this.productService.selectedVariantProduct(e);this.dialog.open(Le,{data:{title:"Updating Price",selectedItems:i,channels:this.channelOptions},width:"400px"}).afterClosed().pipe(J(t=>j.IsNotEmpty(t))).subscribe(t=>{this.channelOptions=t,this.updatePrice(e)})}openTableDialog(e,i,t){let l=JSON.parse(JSON.stringify(e));this.dialog.open(Re,{data:{Name:i.Name,Variant:l,ChannelID:t?.ChannelID,Table:"price",ChannelItemID:t?.ChannelItemID}}).afterClosed().pipe(J(u=>j.IsNotEmpty(u))).subscribe(u=>{this.updateProductPrice(u,t)})}updateProductPrice(e,i){let t={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,Price:parseFloat(e.Price),VariantID:e.ID,SKU:e.Sku};this.http.post("/api/Price/UpdatePriceByID",t).subscribe(l=>{i.Price=t.Price;let d=this.productService.findChannelById(t.ID,this.channelOptions);this.toastr.success(`Successfully updated ${e.ItemName} (${e.VarName}) inventory in ${d.Name} to ${t.Price}`,"Success")})}openExportDialog(){this.dialog.open(ke,{data:{title:"Export Custom Channel Price",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountAPI,exportApi:"price/GetExportOutletPrice"}}).afterClosed().subscribe()}onZoomImage(e,i){this.biggerPictureService.openBiggerPicture(e,i)}static{this.\u0275fac=function(i){return new(i||n)(S(xe),S(fe),S(we),S(Ve),S(z),S(Ne),S(Be))}}static{this.\u0275cmp=T({type:n,selectors:[["app-custom-channel-price"]],features:[A([Q])],decls:38,vars:23,consts:[["elsePic",""],["elseCol",""],["headerTitle","Price Comparison",3,"onSubmit","hideSearchBox","hideSearchDropdown","textButton"],[4,"ngIf"],[1,"d-flex"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],[1,"channel-column"],["colspan","5"],["scope","col","colspan","2",1,"text-center","border-bottom-0","border","text-uppercase"],["scope","col","colspan","2",1,"text-center","w-25"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],[3,"ngxPermissionsOnly"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5",2,"height","46px"],[1,"fw-bold","mb-2","d-block"],["name","filterModel",3,"modelChange","model","options"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"],["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"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"text-end","border-top-0","border","w-10"],[1,"ms-1"],[1,"text-start","border-bottom"],["matTooltipPosition","above",1,"text-end","border-bottom",3,"matTooltip"],[1,"d-flex","align-items-center","justify-content-end"],[3,"ngClass"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[4,"ngFor","ngForOf"],[1,"text-center",3,"rowSpan","ngClass"],["class","border rounded w-img cursor-pointer",3,"src","click",4,"ngIf","ngIfElse"],[1,"text-start","border-bottom",2,"padding-left","0px",3,"rowSpan"],[1,"mb-0","item-name"],[1,"mt-1"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"align-middle"],[4,"ngIf","ngIfElse"],[1,"text-end","border"],[1,"text-center","border","pointer","cell-hover",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2"],["target","_blank",3,"click","href"],[1,"table-white","border","text-end",2,"color","red"]],template:function(i,t){i&1&&(o(0,"mainpanel",2),g("onSubmit",function(d){return t.onFilter(d)}),o(1,"filters"),_(2,it,9,4,"ng-container",3),v(3,"async"),a(),o(4,"actions")(5,"div",4),_(6,at,3,1,"ng-container",3),v(7,"async"),o(8,"button",5),g("click",function(){return t.openExportDialog()}),x(9,"i",6),o(10,"span"),p(11,"Export"),a()()()(),o(12,"content")(13,"div",7)(14,"div",8)(15,"div",9)(16,"div",10)(17,"table",11)(18,"thead",12)(19,"tr",13),x(20,"th",14),L(21,rt,6,6,"th",15,B),a(),o(23,"tr")(24,"th",16)(25,"span"),p(26," Product "),a()(),o(27,"th",17),p(28,"Variant"),a(),o(29,"th",18),p(30,"SKU"),a(),_(31,lt,2,1,"ng-template",19),L(32,ct,7,0,null,null,B),a()(),_(34,xt,3,0,"ng-container",3),v(35,"async"),a(),o(36,"infinite-paginator",20),v(37,"async"),g("onNextPage",function(){return t.infinitePagination.onNextPage(t.searchFilter)})("onLastPage",function(){return t.infinitePagination.onLastPage(t.searchFilter)})("onGetRowCount",function(){return t.infinitePagination.getRowCount(t.searchFilter)}),a()()()()()()()),i&2&&(s("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),r(2),s("ngIf",E(3,13,t.loader$)),r(4),s("ngIf",E(7,15,t.data$)),r(15),R(t.channels()),r(10),s("ngxPermissionsOnly",O(21,Ge,t.rolePriceEdit)),r(),R(t.channels()),r(2),s("ngIf",E(35,17,t.data$)),r(2),s("totalData",t.infinitePagination.totalData())("hideCount",t.infinitePagination.hideCount())("rowCount",E(37,19,t.infinitePagination.totalRowCount$))("pageNumber",t.infinitePagination.pageNumber())("disableNextButton",t.infinitePagination.disableNextButton())("goToLastPage",t.infinitePagination.isLastPage()))},dependencies:[D,pe,W,de,_e,ue,Fe,Me,k,he,V,N,Ue,je,K,G,$e,be,Pe,ze],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%]{font-weight:400;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}"]})}}return n})();export{gn as CustomChannelPriceComponent};
@@ -1 +0,0 @@
1
- import{a as Q}from"./chunk-52GRE6TF.js";import"./chunk-77IUCPIQ.js";import{a as K}from"./chunk-6HVHZ3HN.js";import{a as Oe,b as ke}from"./chunk-ARIW575T.js";import"./chunk-OVYL7SOO.js";import"./chunk-T7KM2WP6.js";import"./chunk-VOISFPEM.js";import"./chunk-BSATGCWC.js";import"./chunk-6A4PYMCJ.js";import"./chunk-3RK6DDJD.js";import{a as Z,b as Ve}from"./chunk-WYOXUN3H.js";import"./chunk-23MIIDCT.js";import"./chunk-SD7UKXTX.js";import{a as W}from"./chunk-SE5GYDNR.js";import"./chunk-E24BKGBJ.js";import"./chunk-VKJAFLQ6.js";import"./chunk-TY4H2W6F.js";import"./chunk-SDUUFQUI.js";import"./chunk-HPS3WVU5.js";import"./chunk-R5IDWUP6.js";import"./chunk-4RAOUTR2.js";import{a as de,b as pe,d as me,e as Re}from"./chunk-TTAS23MO.js";import"./chunk-HA5WIDED.js";import"./chunk-AFMNWVBL.js";import"./chunk-EQ2ZKEVE.js";import{j as se}from"./chunk-7CIOGSCS.js";import{e as D}from"./chunk-JSPVOV7M.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-ORPJLSXE.js";import{l as M,m as Le}from"./chunk-XOT2SZPE.js";import{r as Ne,s as Pe}from"./chunk-AKJ4I7KF.js";import"./chunk-2NECQ3RY.js";import{c as oe,h as re,m as ae,o as le,t as Ie,u as Te,y as De,z as Me}from"./chunk-AI4XRCAL.js";import{c as V}from"./chunk-W6T7TOHE.js";import{E as B,F as Ee,H as P,J as he,d as ue,f as Y,g as I,j as we,k as T,l as F,n as ge}from"./chunk-B6POIFQM.js";import{Dc as z,Eb as x,Ec as r,Fb as ne,Fc as d,Gc as k,Ic as y,Jc as C,Kb as f,Kc as S,Nc as U,Oc as A,Wb as p,Xc as _,Yc as L,Z as Ce,Zc as E,_b as xe,_c as J,ea as Se,gc as i,hc as n,ic as N,ja as ce,jc as j,ka as ie,kc as q,mc as R,oa as be,ob as H,qb as l,rc as w,sc as v,v as ye,wb as h,ya as c,za as u}from"./chunk-EIQCOZF5.js";import"./chunk-K2H6WANG.js";var We=(()=>{class o{constructor(){this.ObjectlogTabs=[{Title:"Sync Order",Url:"/menu/log/order"},{Title:"Inventory Sync ",Url:"/menu/log/inventory"},{Title:"Channel Webhook",Url:"/menu/log/rawlog"},{Title:"Channel Webhook Exception ",Url:"/menu/log/exception"},{Title:"Authorization Log ",Url:"/menu/log/authorization-log"}]}static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275cmp=x({type:o,selectors:[["app-logs"]],standalone:!1,decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(a,t){a&1&&(i(0,"nav",0)(1,"div",1)(2,"div"),N(3,"nav-tab",2),n()()(),N(4,"router-outlet")),a&2&&(l(3),p("Tabs",t.ObjectlogTabs))},dependencies:[Ee,Oe],encapsulation:2})}}return o})();var X=(()=>{class o{constructor(){}get Data(){return this._Data}set Data(e){this._Data=e}Fill(e){return this._Data.find(a=>a._id==e)}static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275prov=ce({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var et=()=>["/menu/log/order/detail-user"],tt=o=>({ID:o}),it=o=>({"bg-warning":o});function nt(o,g){if(o&1&&(i(0,"span",22),N(1,"img",23),n(),r(2)),o&2){let e=g.item;l(),p("src",e.Img,H)("alt",e.Name),l(),k(" ",e.Name," ")}}function ot(o,g){o&1&&(i(0,"th",27)(1,"span",33),r(2," Response Body Warning "),n()())}function rt(o,g){o&1&&(i(0,"th")(1,"span",33),r(2," Number Override "),n()())}function at(o,g){if(o&1&&(i(0,"td",27)(1,"span",36),r(2),n()()),o&2){let e=v().$implicit;l(),p("ngClass",A(2,it,e.responseBodyWarning!=null)),l(),d(e.responseBodyWarning)}}function lt(o,g){if(o&1&&(i(0,"td"),r(1),n()),o&2){let e=v().$implicit;l(),k(" ",e.ResponseBodyWarningReference," ")}}function st(o,g){if(o&1&&(i(0,"tr")(1,"td")(2,"a",34),r(3),_(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n(),i(11,"td",27)(12,"span",35),r(13),n()(),f(14,at,3,4,"td",29)(15,lt,2,1,"td",30),n()),o&2){let e=g.$implicit,a=v(2);l(2),p("routerLink",U(14,et))("queryParams",A(15,tt,e.ID)),l(),k(" ",E(4,11,e.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),d(e.MarketTypeString),l(2),d(e.POSActionTypeString),l(2),d(e.Number),l(2),xe(e.ResponseCode===200||e.ResponseCode===202?"bg-success":"bg-warning"),l(),k(" ",e.ResponseCode," "),l(),p("ngIf",a.responseBodyWarningVisible),l(),p("ngIf",a.responseBodyWarningVisible)}}function dt(o,g){if(o&1){let e=R();j(0),i(1,"div",24)(2,"table",25)(3,"thead")(4,"tr",26)(5,"th"),r(6,"Date"),n(),i(7,"th"),r(8,"Channel"),n(),i(9,"th"),r(10,"Actions"),n(),i(11,"th"),r(12,"Number"),n(),i(13,"th",27)(14,"span",28),r(15," Response Code "),n()(),f(16,ot,3,0,"th",29)(17,rt,3,0,"th",30),n()(),i(18,"tbody"),f(19,st,16,17,"tr",31),n()(),i(20,"mat-paginator",32),w("page",function(t){c(e);let m=v();return u(m.changePage(t))}),n()(),q()}if(o&2){let e=v();l(16),p("ngIf",e.responseBodyWarningVisible),l(),p("ngIf",e.responseBodyWarningVisible),l(2),p("ngForOf",e.Result),l(),p("length",e.paginationTotal)("pageSize",e.paginationPageSize)("pageIndex",(e.filter==null?null:e.filter.PageNumber)==0?0:(e.filter==null?null:e.filter.PageNumber)-1)}}function pt(o,g){o&1&&(i(0,"div",37),N(1,"app-empty-state"),n())}var qe=(()=>{class o{constructor(e,a,t,m){this.http=e,this._RawLogService=a,this.route=t,this.authService=m,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:"",responseBodyWarning:""},this.responseBodyWarningVisible=!1,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.route.queryParams.subscribe(e=>{this.responseCode=e.responseCode,this.responseCode!=null?this.Load(e):this.Load()})}Load(e={}){this.http.post("/api/OrdersLoader/Get",e).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(e){this.filter.Number=e,this.http.post("/api/Orders/Get",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let t of a.hits){t._source.log.responseBodyWarning!=null&&(this.responseBodyWarningVisible=!0);let m={ID:t._id,Created:t._source["@timestamp_received"],shopId:t._source.shopId,MarketTypeString:t._source.log.type,POSActionTypeString:t._source.message,Number:t._source.log.number,ResponseCode:t._source.log.responseCode,responseBodyWarning:t._source.log.responseBodyWarning,ResponseBodyWarningReference:t._source.log.ResponseBodyWarningReference};this.Result.push(m)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(e){this.filter.PageNumber=e.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(D),h(X),h(B),h(se))}}static{this.\u0275cmp=x({type:o,selectors:[["app-order"]],standalone:!1,decls:43,vars:15,consts:[["EMPTY_STATE",""],["headerTitle","Order Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[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,"mt-5"],["bindLabel","Value","name","ActionType","bindValue","Key","placeholder","Action Type",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","text","name","StatusCode",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","text","name","responseBodyWarning","list","listresponseBodyWarning",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["id","listresponseBodyWarning"],["value","number-override"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[1,"text-center"],["matTooltip","Http Status Code from developer.dealpos.com."],["class","text-center",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],["matTooltip","ex: when payload.Number != response.Number value will be number-override"],[3,"routerLink","queryParams"],[1,"text-white","p-2","rounded","response-desc"],[1,"text-white","p-2","rounded","response-desc",3,"ngClass"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=R();i(0,"mainpanel",1),S("textChange",function(s){return c(m),C(t.Number,s)||(t.Number=s),u(s)}),w("onSubmit",function(s){return c(m),u(t.Get(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),S("ngModelChange",function(s){return c(m),C(t.filter.ChannelID,s)||(t.filter.ChannelID=s),u(s)}),f(6,nt,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",2),r(9,"Action"),n(),i(10,"ng-select",6),S("ngModelChange",function(s){return c(m),C(t.filter.ActionType,s)||(t.filter.ActionType=s),u(s)}),n()(),i(11,"div",5)(12,"label",7),r(13,"From/To"),n(),i(14,"div",8)(15,"datepicker",9),S("dateChange",function(s){return c(m),C(t.filter.From,s)||(t.filter.From=s),u(s)}),n()(),i(16,"div")(17,"datepicker",10),S("dateChange",function(s){return c(m),C(t.filter.To,s)||(t.filter.To=s),u(s)}),n()()(),i(18,"div",5)(19,"label",11),r(20,"Response Code"),n(),i(21,"input",12),S("ngModelChange",function(s){return c(m),C(t.filter.StatusCode,s)||(t.filter.StatusCode=s),u(s)}),n()(),i(22,"div",5)(23,"label",11),r(24,"Response Body Warning"),n(),i(25,"input",13),S("ngModelChange",function(s){return c(m),C(t.filter.responseBodyWarning,s)||(t.filter.responseBodyWarning=s),u(s)}),n(),i(26,"datalist",14),N(27,"option",15),n()(),i(28,"div",5)(29,"label",11),r(30,"Page Number"),n(),i(31,"input",16),S("ngModelChange",function(s){return c(m),C(t.filter.PageNumber,s)||(t.filter.PageNumber=s),u(s)}),n()(),i(32,"div",5)(33,"label",11),r(34,"Page Size"),n(),i(35,"input",17),S("ngModelChange",function(s){return c(m),C(t.filter.RowCount,s)||(t.filter.RowCount=s),u(s)}),n()()(),i(36,"content")(37,"div",18)(38,"div",19)(39,"div",20),f(40,dt,21,6,"ng-container",21)(41,pt,2,0,"ng-template",null,0,J),n()()()()()}if(a&2){let m=z(42);y("text",t.Number),l(5),p("clearable",!0)("items",t.channelOptions),y("ngModel",t.filter.ChannelID),l(5),p("clearable",!0)("items",t.ActionTypeList),y("ngModel",t.filter.ActionType),l(5),y("date",t.filter.From),l(2),y("date",t.filter.To),l(4),y("ngModel",t.filter.StatusCode),l(4),y("ngModel",t.filter.responseBodyWarning),l(6),y("ngModel",t.filter.PageNumber),l(4),y("ngModel",t.filter.RowCount),l(5),p("ngIf",(t.Result==null?null:t.Result.length)>0)("ngIfElse",m)}},dependencies:[ue,Y,I,Ie,Te,oe,le,re,ae,P,M,Z,me,de,pe,Q,K,Ne,T],encapsulation:2})}}return o})();var mt=o=>({"bg-gradient-warning":o}),ct=()=>["/menu/log/inventory/sync-inventory/detail"],ut=o=>({ID:o});function gt(o,g){if(o&1&&(i(0,"span",19),N(1,"img",20),n(),r(2)),o&2){let e=g.item;l(),p("src",e.Img,H)("alt",e.Name),l(),k(" ",e.Name," ")}}function ht(o,g){if(o&1&&(i(0,"tr",26)(1,"td")(2,"a",27),r(3),_(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n(),i(11,"td"),r(12),n()()),o&2){let e=g.$implicit;p("ngClass",A(11,mt,e.ResponseCode==400)),l(2),p("routerLink",U(13,ct))("queryParams",A(14,ut,e.ID)),l(),k(" ",E(4,8,e.Created,"dd MMM yyyy HH:mm")," "),l(3),d(e.channelName),l(2),d(e.Sku),l(2),d(e.Stock),l(2),d(e.ResponseCode)}}function ft(o,g){if(o&1){let e=R();j(0),i(1,"div",21)(2,"table",22)(3,"thead")(4,"tr",23)(5,"th"),r(6,"Created"),n(),i(7,"th"),r(8,"Channel"),n(),i(9,"th"),r(10,"SKU"),n(),i(11,"th"),r(12,"Stock"),n(),i(13,"th"),r(14,"Response code"),n()()(),i(15,"tbody"),f(16,ht,13,16,"tr",24),n()(),i(17,"mat-paginator",25),w("page",function(t){c(e);let m=v();return u(m.changePage(t))}),n()(),q()}if(o&2){let e=v();l(16),p("ngForOf",e.Result),l(),p("length",e.paginationTotal)("pageSize",e.paginationPageSize)("pageIndex",(e.filter==null?null:e.filter.PageNumber)==0?0:(e.filter==null?null:e.filter.PageNumber)-1)}}function vt(o,g){o&1&&(i(0,"div",28),N(1,"app-empty-state"),n())}var Ge=(()=>{class o{constructor(e,a,t){this.http=e,this._RawLogService=a,this.authService=t,this.Result=Array(),this.filter={PageNumber:0,RowCount:20,Sku:null,ChannelID:"",StatusCode:"",From:"",To:""},this.Load(),this.channelOptions=this.authService.getChannels()}Load(){this.http.post("/api/OrdersLoader/Get",{}).subscribe(e=>{this.filter=e.Filter,this.ActionTypeList=e.Options.ActionTypeList,this.Get()})}Get(e){e!=null&&(this.filter.Sku=e),this.http.post("api/Inventory/GetLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let t of a.hits){let m={ID:t._source.log.id,Created:t._source["@timestamp_received"],channelName:t._source.log.channelName,Sku:t._source.log.sku,Stock:t._source.log.stock,ResponseCode:t._source.log.responseCode};this.Result.push(m)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(e){this.filter.PageNumber=e.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(D),h(X),h(se))}}static{this.\u0275cmp=x({type:o,selectors:[["app-inventory-log"]],standalone:!1,decls:33,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Channel Inventory Sync","searchBoxPlaceHolder","Enter SKU...",3,"textChange","onSubmit","text"],["role","button","routerLink","/menu/log/inventory",1,"btn","btn-success"],["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,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=R();i(0,"mainpanel",1),S("textChange",function(s){return c(m),C(t.filter.Sku,s)||(t.filter.Sku=s),u(s)}),w("onSubmit",function(s){return c(m),u(t.Get(s))}),i(1,"actions")(2,"a",2),r(3," Order Inventory Sync Job "),n()(),i(4,"filters")(5,"div",3)(6,"div")(7,"label",4),r(8,"Channel"),n(),i(9,"ng-select",5),S("ngModelChange",function(s){return c(m),C(t.filter.ChannelID,s)||(t.filter.ChannelID=s),u(s)}),f(10,gt,3,3,"ng-template",6),n()(),i(11,"div",7)(12,"label",8),r(13,"From/To"),n(),i(14,"div",9)(15,"datepicker",10),S("dateChange",function(s){return c(m),C(t.filter.From,s)||(t.filter.From=s),u(s)}),n()(),i(16,"div")(17,"datepicker",11),S("dateChange",function(s){return c(m),C(t.filter.To,s)||(t.filter.To=s),u(s)}),n()()(),i(18,"div",7)(19,"label",12),r(20,"Page Number"),n(),i(21,"input",13),S("ngModelChange",function(s){return c(m),C(t.filter.PageNumber,s)||(t.filter.PageNumber=s),u(s)}),n()(),i(22,"div",7)(23,"label",12),r(24,"Page Size"),n(),i(25,"input",14),S("ngModelChange",function(s){return c(m),C(t.filter.RowCount,s)||(t.filter.RowCount=s),u(s)}),n()()()(),i(26,"content")(27,"div",15)(28,"div",16)(29,"div",17),f(30,ft,18,4,"ng-container",18)(31,vt,2,0,"ng-template",null,0,J),n()()()()()}if(a&2){let m=z(32);y("text",t.filter.Sku),l(9),p("clearable",!0)("items",t.channelOptions),y("ngModel",t.filter.ChannelID),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(4),y("ngModel",t.filter.PageNumber),l(4),y("ngModel",t.filter.RowCount),l(5),p("ngIf",(t.Result==null?null:t.Result.length)>0)("ngIfElse",m)}},dependencies:[ue,Y,I,oe,le,re,ae,P,M,Z,me,de,pe,Q,K,T],encapsulation:2})}}return o})();var _t=()=>["/menu/log/rawlog/detail"],yt=o=>({ID:o});function Ct(o,g){if(o&1&&(i(0,"span",17),N(1,"img",18),n(),r(2)),o&2){let e=g.item;l(),p("src",e.Img,H)("alt",e.Name),l(),k(" ",e.Name," ")}}function St(o,g){if(o&1&&(i(0,"tr")(1,"td")(2,"a",25),r(3),_(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n()()),o&2){let e=g.$implicit;l(2),p("routerLink",U(9,_t))("queryParams",A(10,yt,e.id)),l(),k(" ",E(4,6,e.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),d(e.type),l(2),d(e.number),l(2),d(e.message)}}function bt(o,g){if(o&1){let e=R();j(0),i(1,"div",19)(2,"table",20)(3,"thead",21)(4,"tr")(5,"th",22),r(6,"Date"),n(),i(7,"th"),r(8,"Type"),n(),i(9,"th"),r(10,"Number"),n(),i(11,"th"),r(12,"Message"),n()()(),i(13,"tbody"),f(14,St,11,12,"tr",23),n()(),i(15,"mat-paginator",24),w("page",function(t){c(e);let m=v();return u(m.changePage(t))}),n()(),q()}if(o&2){let e=v();l(14),p("ngForOf",e.Result),l(),p("length",e.paginationTotal)("pageSize",e.paginationPageSize)("pageIndex",(e.filter==null?null:e.filter.PageNumber)==0?0:(e.filter==null?null:e.filter.PageNumber)-1)}}function xt(o,g){o&1&&(i(0,"div",26),N(1,"app-empty-state"),n())}var He=(()=>{class o{constructor(e,a,t){this.http=e,this._RawLogService=a,this.authService=t,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:""},this.list=[],this.Types=[{Key:0,Value:"Shopee"},{Key:1,Value:"Tokopedia"}],this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(e={}){this.http.post("/api/OrdersLoader/Get",e).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(e){this.filter.Number=e,this.http.post("api/Orders/GetRawLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let t of a.hits){let m={id:t._id,message:t._source.message,responseCode:t._source.log.responseCode,processTypeString:t._source.log.processType,type:t._source.log.type,number:t._source.log.number,Created:t._source["@timestamp_received"]};this.Result.push(m)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(e){this.filter.PageNumber=e.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(D),h(X),h(se))}}static{this.\u0275cmp=x({type:o,selectors:[["app-raw-log"]],standalone:!1,decls:29,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Channel Webhook Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[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,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table"],[1,"thead-light"],[2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=R();i(0,"mainpanel",1),S("textChange",function(s){return c(m),C(t.filter.Number,s)||(t.filter.Number=s),u(s)}),w("onSubmit",function(s){return c(m),u(t.Get(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),S("ngModelChange",function(s){return c(m),C(t.filter.ChannelID,s)||(t.filter.ChannelID=s),u(s)}),f(6,Ct,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",6),r(9,"From/To"),n(),i(10,"div",7)(11,"datepicker",8),S("dateChange",function(s){return c(m),C(t.filter.From,s)||(t.filter.From=s),u(s)}),n()(),i(12,"div")(13,"datepicker",9),S("dateChange",function(s){return c(m),C(t.filter.To,s)||(t.filter.To=s),u(s)}),n()()(),i(14,"div",5)(15,"label",10),r(16,"Page Number"),n(),i(17,"input",11),S("ngModelChange",function(s){return c(m),C(t.filter.PageNumber,s)||(t.filter.PageNumber=s),u(s)}),n()(),i(18,"div",5)(19,"label",10),r(20,"Page Size"),n(),i(21,"input",12),S("ngModelChange",function(s){return c(m),C(t.filter.RowCount,s)||(t.filter.RowCount=s),u(s)}),n()()(),i(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),f(26,bt,16,4,"ng-container",16)(27,xt,2,0,"ng-template",null,0,J),n()()()()()}if(a&2){let m=z(28);y("text",t.filter.Number),l(5),p("clearable",!0)("items",t.channelOptions),y("ngModel",t.filter.ChannelID),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(4),y("ngModel",t.filter.PageNumber),l(4),y("ngModel",t.filter.RowCount),l(5),p("ngIf",(t.Result==null?null:t.Result.length)>0)("ngIfElse",m)}},dependencies:[Y,I,oe,le,re,ae,P,M,Z,me,de,pe,Q,K,T],encapsulation:2})}}return o})();function wt(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let e=v();l(6),d(e.ProcessedCode)}}function Et(o,g){if(o&1){let e=R();i(0,"a",16),w("click",function(){c(e);let t=v();return u(t.Retry())}),r(1,"Retry"),n()}}var ze=(()=>{class o{constructor(e,a){this.route=e,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(t=>{this.ID=t.ID,this.Load()})}Retry(){var e={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",e).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var e={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",e).subscribe(a=>{for(let t of a.hits)this.Number=t._source.log.number,this.MarketTypeString=t._source.log.type,this.ResponseCode=t._source.log.responseCode,this.POSActionTypeString=t._source.message,this.ProcessDuration=0,this.Created=t._source["@timestamp_received"],this.request=V.IsNotEmpty(t._source?.log?.request)?JSON.parse(t._source.log?.request):"",this.response=V.IsNotEmpty(t._source?.log?.response)?JSON.parse(t._source.log?.response):"",this.shopId=t._source.shopId,this.ProcessedCode=t._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(B),h(D))}}static{this.\u0275cmp=x({type:o,selectors:[["app-raw-detail"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,t){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),_(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,wt,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),_(69,"json"),n()()(),i(70,"actions",14),f(71,Et,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),_(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+t.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),d(E(21,14,t.Created,"dd MMM yyyy HH:mm:ss")),l(8),d(t.Number),l(7),d(t.MarketTypeString),l(7),d(t.ResponseCode),l(7),d(t.shopId),l(),p("ngIf",t.ProcessedCode!=null),l(7),d(t.POSActionTypeString),l(11),d(L(69,17,t.request)),l(3),p("ngIf",t.ResponseCode!="200"&&t.ResponseCode!="201"),l(10),d(L(82,19,t.response)))},dependencies:[I,P,M,F,T],encapsulation:2})}}return o})();function It(o,g){if(o&1&&(i(0,"div",10)(1,"div",7)(2,"div",8)(3,"h5"),r(4,"General"),n()(),i(5,"div",9)(6,"div",3)(7,"div",6)(8,"div",12)(9,"label"),r(10,"Date"),n(),i(11,"div")(12,"span"),r(13),_(14,"date"),n()()()(),i(15,"div",6)(16,"div",12)(17,"label"),r(18,"SKU"),n(),i(19,"div")(20,"span"),r(21),n()()()(),i(22,"div",6)(23,"div",12)(24,"label"),r(25,"Channel"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",6)(30,"div",12)(31,"label"),r(32,"Response Code"),n(),i(33,"div")(34,"span"),r(35),n()()()()()()()()),o&2){let e=v();l(13),d(E(14,4,e.data.Created,"dd MMM yyyy")),l(8),d(e.data.Sku),l(7),d(e.data.ChannelName),l(7),d(e.data.ResponseCode)}}var Ue=(()=>{class o{constructor(e,a,t){this.route=e,this.http=a,this._RawLogService=t,this.data={Created:"",Sku:"",ChannelName:"",ResponseCode:""},this.route.queryParams.subscribe(m=>{this.ID=m.ID,this.Load()})}ngOnInit(){}Load(){var e={ID:this.ID};this.http.post("/api/Inventory/GetInventoryLogDeatil",e).subscribe(a=>{this.data.Created=a.hits[0]._source["@timestamp_received"],this.data.Sku=a.hits[0]._source.log.sku,this.data.ChannelName=a.hits[0]._source.log.channelName,this.data.ResponseCode=a.hits[0]._source.log.responseCode,this.request=V.IsNotEmpty(a.hits[0]?._source.log?.request)?JSON.parse(a.hits[0]?._source?.log?.request):"",this.response=a.hits[0]._source.log.response})}static{this.\u0275fac=function(a){return new(a||o)(h(B),h(D),h(X))}}static{this.\u0275cmp=x({type:o,selectors:[["app-inventory-detail"]],standalone:!1,decls:30,vars:7,consts:[["headerTitle","Product Inventory Sync Detail",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory/sync-inventory",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[1,"container-fluid","mt-3"],[1,"row"],["class","col-sm-12",4,"ngIf"],[1,"row","mt-2"],[1,"col-sm-6"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group"],[1,"info-label-group"]],template:function(a,t){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3),f(7,It,36,7,"div",4),n(),i(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"h5"),r(13,"Request"),n()(),i(14,"div",9)(15,"div",10)(16,"div",11)(17,"pre"),r(18),_(19,"json"),n()()()()()(),i(20,"div",6)(21,"div",7)(22,"div",8)(23,"h5"),r(24,"Response"),n()(),i(25,"div",9)(26,"div",10)(27,"div",11)(28,"pre"),r(29),n()()()()()()()()()()),a&2&&(p("hideSearchBox",!0)("hideSearchDropdown",!0),l(7),p("ngIf",t.data),l(11),d(L(19,5,t.request)),l(11),d(t.response))},dependencies:[I,P,M,F,T],encapsulation:2})}}return o})();function Tt(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let e=v();l(6),d(e.ProcessedCode)}}function Dt(o,g){if(o&1){let e=R();i(0,"a",16),w("click",function(){c(e);let t=v();return u(t.Retry())}),r(1,"Retry"),n()}}var Je=(()=>{class o{constructor(e,a){this.route=e,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(t=>{this.ID=t.ID,this.Load()})}Retry(){var e={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",e).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var e={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",e).subscribe(a=>{for(let t of a.hits)this.Number=t._source.log.number,this.MarketTypeString=t._source.log.type,this.ResponseCode=t._source.log.responseCode,this.POSActionTypeString=t._source.message,this.ProcessDuration=0,this.Created=t._source["@timestamp_received"],this.request=V.IsNotEmpty(t._source?.log?.request)?JSON.parse(t._source.log?.request):"",this.response=V.IsNotEmpty(t._source?.log?.response)?JSON.parse(t._source.log?.response):"",this.shopId=t._source.shopId,this.ProcessedCode=t._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(B),h(D))}}static{this.\u0275cmp=x({type:o,selectors:[["app-orderdetail"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,t){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),_(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,Tt,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),_(69,"json"),n()()(),i(70,"actions",14),f(71,Dt,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),_(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+t.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),d(E(21,14,t.Created,"dd MMM yyyy HH:mm:ss")),l(8),d(t.Number),l(7),d(t.MarketTypeString),l(7),d(t.ResponseCode),l(7),d(t.shopId),l(),p("ngIf",t.ProcessedCode!=null),l(7),d(t.POSActionTypeString),l(11),d(L(69,17,t.request)),l(3),p("ngIf",t.ResponseCode!="200"&&t.ResponseCode!="201"),l(10),d(L(82,19,t.response)))},dependencies:[I,P,M,F,T],encapsulation:2})}}return o})();var Mt=()=>["/menu/log/exception/detail"],Rt=o=>({ID:o});function Nt(o,g){if(o&1&&(i(0,"tr")(1,"td",12),N(2,"img",13),n(),i(3,"td"),r(4),_(5,"date"),n(),i(6,"td")(7,"a",14),r(8),n()(),i(9,"td")(10,"div",15),r(11),n(),i(12,"div"),r(13),n()()()),o&2){let e=g.$implicit;l(2),p("src",e.logo,H),l(2),d(E(5,7,e.date,"dd-MM-yyyy hh:mm:ss")),l(3),p("routerLink",U(10,Mt))("queryParams",A(11,Rt,e.id)),l(),k(" ",e.number," "),l(3),d(e.message),l(2),d(e.stackTrace)}}function Pt(o,g){if(o&1){let e=R();j(0),i(1,"mat-paginator",16),w("page",function(t){c(e);let m=v(2);return u(m.onPaginationChange(t))}),n(),q()}if(o&2){let e=v(2);l(),p("length",e.pageTotal)("pageSize",e.pageSize)("pageIndex",(e.filter==null?null:e.filter.PageNumber)==0?0:(e.filter==null?null:e.filter.PageNumber)-1)}}function Lt(o,g){if(o&1&&(j(0),i(1,"div",6)(2,"table",7)(3,"thead")(4,"tr",8)(5,"th"),r(6,"Channel"),n(),i(7,"th",9),r(8,"Date"),n(),i(9,"th"),r(10,"Number"),n(),i(11,"th"),r(12,"Exception"),n()()(),i(13,"tbody"),f(14,Nt,14,13,"tr",10),n()(),f(15,Pt,2,3,"ng-container",11),n(),q()),o&2){let e=v();l(14),p("ngForOf",e.exceptions),l(),p("ngIf",(e.exceptions==null?null:e.exceptions.length)>0)}}function Ot(o,g){o&1&&(i(0,"div",17),N(1,"app-empty-state"),n())}var Ye=(()=>{class o{constructor(e){this.http=e,this.exceptions=[],this.filter={RowCount:50,PageNumber:1},this.getData()}getData(){this.http.post("/api/Orders/GetExceptionList",this.filter).subscribe(e=>{this.exceptions=e.hits.map(a=>({id:a._id,logo:V.getChannelLogoByName(a._source.error?.Type),number:a._source.error.number,date:a._source["@timestamp_received"],stackTrace:a._source.error.stackTrace,message:a._source.message,requestJSON:a._source?.error?.requestJSON})),this.pageTotal=e.total.value,this.pageSize=this.filter.RowCount>this.pageTotal?this.pageTotal:this.filter.RowCount})}onPaginationChange(e){this.filter.PageNumber=e.pageIndex+1,this.getData()}static{this.\u0275fac=function(a){return new(a||o)(h(D))}}static{this.\u0275cmp=x({type:o,selectors:[["app-exception-log"]],standalone:!1,decls:8,vars:2,consts:[["EMPTY_STATE",""],["headerTitle","Exception Log","searchBoxPlaceHolder","Enter Number...","hideSearchBox","true","hideSearchDropdown","true"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","140px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"text-center"],[2,"width","25px",3,"src"],[3,"routerLink","queryParams"],[1,"fw-bold"],[3,"page","length","pageSize","pageIndex"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1&&(i(0,"mainpanel",1)(1,"content")(2,"div",2)(3,"div",3)(4,"div",4),f(5,Lt,16,2,"ng-container",5)(6,Ot,2,0,"ng-template",null,0,J),n()()()()()),a&2){let m=z(7);l(5),p("ngIf",t.exceptions.length>0)("ngIfElse",m)}},dependencies:[Y,I,P,M,Z,K,T],encapsulation:2})}}return o})();var Ke=(()=>{class o{constructor(e){this.httpService=e}getExceptionDetail(e){return this.httpService.post("/api/Orders/GetDetailException",{ID:e}).pipe(ye(t=>t?.hits[0]?._source))}static{this.\u0275fac=function(a){return new(a||o)(be(D))}}static{this.\u0275prov=ce({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function Vt(o,g){if(o&1&&(i(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h5"),r(6,"General"),n()(),i(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"label"),r(12,"Date"),n(),i(13,"div")(14,"span"),r(15),_(16,"date"),n()()()(),i(17,"div",9)(18,"div",10)(19,"label"),r(20,"Number"),n(),i(21,"div")(22,"span"),r(23),n()()()(),i(24,"div",9)(25,"div",10)(26,"label"),r(27,"Type"),n(),i(28,"div")(29,"span"),r(30),n()()()(),i(31,"div",9)(32,"div",10)(33,"label"),r(34,"ShopID"),n(),i(35,"div")(36,"span"),r(37),n()()()()()()()()(),i(38,"div",11)(39,"div",9)(40,"div",5)(41,"div",6)(42,"h5"),r(43,"Request"),n()(),i(44,"div",7)(45,"div",12)(46,"div",13)(47,"pre"),r(48),_(49,"json"),n()()()()()(),i(50,"div",9)(51,"div",5)(52,"div",6)(53,"h5"),r(54,"Exception"),n()(),i(55,"div",7)(56,"div",14)(57,"div",13)(58,"div",15),r(59),n(),i(60,"pre"),r(61),n()()()()()()()()),o&2){let e=g.ngIf;l(15),d(E(16,7,e["@timestamp"],"dd MMM yyyy HH:mm:ss")),l(8),d(e==null||e.error==null?null:e.error.number),l(7),d(e==null||e.error==null?null:e.error.Type),l(7),d(e==null?null:e.shopId),l(11),d(L(49,10,e==null||e.error==null?null:e.error.requestJSON)),l(11),d(e==null?null:e.message),l(2),d(e==null||e.error==null?null:e.error.stackTrace)}}var Ze=(()=>{class o{constructor(e,a){this.activatedRoute=e,this.exceptionService=a,this.invoiceNumber=""}ngOnInit(){let e=this.activatedRoute.snapshot.queryParams;this.getExceptionDetail(e?.ID)}getExceptionDetail(e){this.exceptionDetail$=this.exceptionService.getExceptionDetail(e).pipe(Se(a=>{this.invoiceNumber=a?.error?.number}),Ce(1))}static{this.\u0275fac=function(a){return new(a||o)(h(B),h(Ke))}}static{this.\u0275cmp=x({type:o,selectors:[["app-exception-detail"]],standalone:!1,decls:4,vars:6,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["class","container-fluid mt-3",4,"ngIf"],[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,"row","mt-2"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"],[1,"fw-bold"]],template:function(a,t){a&1&&(i(0,"mainpanel",0)(1,"content"),f(2,Vt,62,12,"div",1),_(3,"async"),n()()),a&2&&(p("headerTitle","Order #"+t.invoiceNumber)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),p("ngIf",L(3,4,t.exceptionDetail$)))},dependencies:[I,M,we,F,T],encapsulation:2})}}return o})();function Wt(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let e=v();l(6),d(e.ProcessedCode)}}function Bt(o,g){if(o&1){let e=R();i(0,"a",16),w("click",function(){c(e);let t=v();return u(t.Retry())}),r(1,"Retry"),n()}}var Qe=(()=>{class o{constructor(e,a){this.route=e,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(t=>{this.ID=t.ID,this.Load()})}Retry(){var e={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",e).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var e={ID:this.ID};this.http.post("/api/Orders/GetDetailSyncOrder",e).subscribe(a=>{for(let t of a.hits)this.Number=t._source.log.number,this.MarketTypeString=t._source.log.type,this.ResponseCode=t._source.log.responseCode,this.POSActionTypeString=t._source.message,this.ProcessDuration=0,this.Created=t._source["@timestamp_received"],this.request=V.IsNotEmpty(t._source?.log?.request)?JSON.parse(t._source.log?.request):"",this.response=V.IsNotEmpty(t._source?.log?.response)?JSON.parse(t._source.log?.response):"",this.shopId=t._source.shopId,this.ProcessedCode=t._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(B),h(D))}}static{this.\u0275cmp=x({type:o,selectors:[["app-orderdetail-user"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,t){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),_(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,Wt,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),_(69,"json"),n()()(),i(70,"actions",14),f(71,Bt,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),_(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+t.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),d(E(21,14,t.Created,"dd MMM yyyy HH:mm:ss")),l(8),d(t.Number),l(7),d(t.MarketTypeString),l(7),d(t.ResponseCode),l(7),d(t.shopId),l(),p("ngIf",t.ProcessedCode!=null),l(7),d(t.POSActionTypeString),l(11),d(L(69,17,t.request)),l(3),p("ngIf",t.ResponseCode!="200"&&t.ResponseCode!="201"),l(10),d(L(82,19,t.response)))},dependencies:[I,P,M,F,T],encapsulation:2})}}return o})();var At=[{path:"",component:We,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",component:qe,canActivate:[W],data:{title:"Order Log"}},{path:"inventory/sync-inventory",component:Ge,canActivate:[W],data:{title:"Product Inventory Sync"}},{path:"rawlog",component:He,canActivate:[W],data:{title:"Raw Log"}},{path:"rawlog/detail",component:ze,canActivate:[W],data:{title:"Raw Log Detail"}},{path:"inventory/sync-inventory/detail",component:Ue,canActivate:[W],data:{title:"Product Inventory Sync Detail"}},{path:"order/detail",component:Je,canActivate:[W],data:{title:"Order Details"}},{path:"order/detail-user",component:Qe,canActivate:[W],data:{title:"Order User Details"}},{path:"exception",component:Ye,canActivate:[W],data:{title:"Exception Log"}},{path:"exception/detail",component:Ze,canActivate:[W],data:{title:"Exception Log Detail"}},{path:"inventory",loadComponent:()=>import("./chunk-IVX7QWP7.js").then(o=>o.InventoryAsyncLogComponent),canActivate:[W],data:{title:"Product Inventory Sync"}},{path:"inventory/detail",loadComponent:()=>import("./chunk-XR4JKTPA.js").then(o=>o.InventoryAsyncDetailComponent),canActivate:[W],data:{title:"Product Inventory Sync Detail"}},{path:"authorization-log",loadComponent(){return import("./chunk-H5DKI4F4.js").then(o=>o.ChannelLogComponent)},canActivate:[W],data:{title:"Authorization Log"}}]}],Xe=(()=>{class o{static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275mod=ne({type:o})}static{this.\u0275inj=ie({imports:[ge,he.forChild(At)]})}}return o})();var $e=(()=>{class o{static \u0275fac=function(a){return new(a||o)};static \u0275mod=ne({type:o});static \u0275inj=ie({})}return o})();var en=(()=>{class o{static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275mod=ne({type:o})}static{this.\u0275inj=ie({imports:[ge,De,Me,Xe,he,Le,$e,Ve,Re,ke,Q,Pe]})}}return o})();export{en as LogsModule};