marketplacepos 26.34.0 → 26.34.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 (95) hide show
  1. package/Marketplace/{chunk-FPGFS4MB.js → chunk-2F6UM24P.js} +1 -1
  2. package/Marketplace/{chunk-EY5UHD5B.js → chunk-2HKCBHED.js} +1 -1
  3. package/Marketplace/{chunk-4PLHSD7O.js → chunk-36CTIOND.js} +1 -1
  4. package/Marketplace/{chunk-J25LF6AN.js → chunk-36J2U3X4.js} +1 -1
  5. package/Marketplace/{chunk-CEBYMKUS.js → chunk-3KG62A5P.js} +1 -1
  6. package/Marketplace/{chunk-F7V7TF5T.js → chunk-3WKSJQSB.js} +1 -1
  7. package/Marketplace/{chunk-A6IPXW52.js → chunk-3XPVCJVH.js} +1 -1
  8. package/Marketplace/{chunk-IJHCVVYK.js → chunk-4JNZPTGW.js} +2 -2
  9. package/Marketplace/{chunk-6BLS325A.js → chunk-4T7NIYJ3.js} +1 -1
  10. package/Marketplace/{chunk-3PA52LFI.js → chunk-532EB2DX.js} +1 -1
  11. package/Marketplace/{chunk-CARPSHPE.js → chunk-5XO4LV4P.js} +1 -1
  12. package/Marketplace/{chunk-WHMVG6O5.js → chunk-64S5XWUC.js} +1 -1
  13. package/Marketplace/{chunk-EO2ZMOF7.js → chunk-64S6GWFY.js} +2 -2
  14. package/Marketplace/{chunk-L4GAB5YC.js → chunk-66LRVBHB.js} +1 -1
  15. package/Marketplace/{chunk-NVVU3Z2E.js → chunk-73RF6HMG.js} +1 -1
  16. package/Marketplace/{chunk-EXXE6WBY.js → chunk-77TSJAY2.js} +1 -1
  17. package/Marketplace/{chunk-ZVJJ4RTL.js → chunk-A5R4TDPK.js} +1 -1
  18. package/Marketplace/{chunk-GYUQIYGS.js → chunk-A7KQRHB5.js} +1 -1
  19. package/Marketplace/{chunk-2G3ZLLPG.js → chunk-AC2UG5YC.js} +1 -1
  20. package/Marketplace/{chunk-W3M6VZ35.js → chunk-BB774JJL.js} +1 -1
  21. package/Marketplace/{chunk-SW62JK5W.js → chunk-BXC5XPFC.js} +1 -1
  22. package/Marketplace/{chunk-SCGA6E6Z.js → chunk-CPYCZ3AX.js} +1 -1
  23. package/Marketplace/{chunk-BILBBP6Q.js → chunk-CSDFU2K4.js} +1 -1
  24. package/Marketplace/{chunk-BK7AZPJV.js → chunk-DJRDXH7L.js} +1 -1
  25. package/Marketplace/{chunk-VMGFXITT.js → chunk-DVOLD4ZD.js} +1 -1
  26. package/Marketplace/chunk-E2JV5TD3.js +14 -0
  27. package/Marketplace/{chunk-SYYCFQFM.js → chunk-E2MNYCXC.js} +1 -1
  28. package/Marketplace/{chunk-2PUYWFAO.js → chunk-E6T5XAKI.js} +1 -1
  29. package/Marketplace/{chunk-DI5OHKK5.js → chunk-EEYZAVW7.js} +1 -1
  30. package/Marketplace/{chunk-7OXEHOPL.js → chunk-EHIWGKF4.js} +1 -1
  31. package/Marketplace/{chunk-XOBOBWWI.js → chunk-EJRTUNFI.js} +1 -1
  32. package/Marketplace/{chunk-NBDK74TW.js → chunk-EPE6WLVR.js} +1 -1
  33. package/Marketplace/{chunk-CJS6TD2L.js → chunk-ERVQHJB2.js} +1 -1
  34. package/Marketplace/{chunk-F6L7V62C.js → chunk-EVMKTCWL.js} +1 -1
  35. package/Marketplace/{chunk-WBEZW5RD.js → chunk-FXQKWDS6.js} +1 -1
  36. package/Marketplace/{chunk-AS4YERKJ.js → chunk-FZOFDLSB.js} +1 -1
  37. package/Marketplace/{chunk-FCZHZTKU.js → chunk-GGMCBTH7.js} +1 -1
  38. package/Marketplace/{chunk-JTG6BXC4.js → chunk-GN6GDJOJ.js} +1 -1
  39. package/Marketplace/{chunk-GBTIXLZK.js → chunk-HCF7AFEH.js} +1 -1
  40. package/Marketplace/{chunk-D2UKETFF.js → chunk-HFR42J42.js} +1 -1
  41. package/Marketplace/{chunk-5EFP75BJ.js → chunk-HSQHTCMT.js} +1 -1
  42. package/Marketplace/{chunk-LCR7A2IT.js → chunk-HVHDETOD.js} +1 -1
  43. package/Marketplace/{chunk-F4SWSVBH.js → chunk-HWKUQXLF.js} +1 -1
  44. package/Marketplace/{chunk-UTJHILRC.js → chunk-I6YMWE2I.js} +1 -1
  45. package/Marketplace/{chunk-B3P236VK.js → chunk-IAVUWAOY.js} +1 -1
  46. package/Marketplace/{chunk-PH5F354K.js → chunk-IB26VQFI.js} +1 -1
  47. package/Marketplace/{chunk-CAOQQSWH.js → chunk-IDESTQQG.js} +1 -1
  48. package/Marketplace/{chunk-ZZFNZEBN.js → chunk-ISR4SQNU.js} +1 -1
  49. package/Marketplace/{chunk-BAMCIWW4.js → chunk-J75YTN77.js} +1 -1
  50. package/Marketplace/{chunk-S47FZXUH.js → chunk-JB3BP6VR.js} +1 -1
  51. package/Marketplace/chunk-JVSOVAA3.js +1 -0
  52. package/Marketplace/{chunk-UMGX747Q.js → chunk-KFMBQ3P5.js} +1 -1
  53. package/Marketplace/{chunk-VLXL4P3R.js → chunk-KVP4SMDT.js} +1 -1
  54. package/Marketplace/{chunk-N6FXUVMC.js → chunk-KY3SHKPY.js} +1 -1
  55. package/Marketplace/{chunk-ZRY3S2VW.js → chunk-KYFM4W24.js} +1 -1
  56. package/Marketplace/{chunk-GQ23B3ZG.js → chunk-LFYAFKQS.js} +1 -1
  57. package/Marketplace/{chunk-GXUS6ZKD.js → chunk-LQM4YMG2.js} +1 -1
  58. package/Marketplace/{chunk-EHJ6S24W.js → chunk-MA44FGN5.js} +1 -1
  59. package/Marketplace/{chunk-O5LVXRZT.js → chunk-ME7VWK4U.js} +1 -1
  60. package/Marketplace/{chunk-4MV6E5QP.js → chunk-MPBKHIBO.js} +1 -1
  61. package/Marketplace/{chunk-YCIPR6LU.js → chunk-MY3Y4REF.js} +1 -1
  62. package/Marketplace/{chunk-V5NNOVTS.js → chunk-N43DWTGJ.js} +1 -1
  63. package/Marketplace/{chunk-I3RG5IHH.js → chunk-NVCOALE3.js} +1 -1
  64. package/Marketplace/{chunk-XXFM4BVC.js → chunk-OD6Q5ER6.js} +1 -1
  65. package/Marketplace/{chunk-ZT5GSYFV.js → chunk-ONTQGPIZ.js} +1 -1
  66. package/Marketplace/{chunk-QU5TP2HO.js → chunk-PH5HOZEM.js} +1 -1
  67. package/Marketplace/{chunk-LHRTVKOK.js → chunk-Q3X2BL7Z.js} +1 -1
  68. package/Marketplace/{chunk-L32AKCEV.js → chunk-RB4PJKZF.js} +1 -1
  69. package/Marketplace/{chunk-X3FHEDAX.js → chunk-RRTPK7JU.js} +1 -1
  70. package/Marketplace/{chunk-ENKRUXCS.js → chunk-RWXGDZ7O.js} +1 -1
  71. package/Marketplace/{chunk-VVKV4KOE.js → chunk-S4NPAYFZ.js} +1 -1
  72. package/Marketplace/{chunk-LMJJUNI5.js → chunk-S5RHOZPK.js} +1 -1
  73. package/Marketplace/{chunk-TF7MW3K5.js → chunk-SB3QUFSF.js} +1 -1
  74. package/Marketplace/{chunk-U5FBAKKM.js → chunk-SMUPCSVR.js} +1 -1
  75. package/Marketplace/{chunk-OBO3AWMZ.js → chunk-SRKJPZRP.js} +1 -1
  76. package/Marketplace/{chunk-TS7MLB42.js → chunk-SVI7EZNW.js} +1 -1
  77. package/Marketplace/{chunk-CMVLD4FH.js → chunk-T6YKYTBR.js} +1 -1
  78. package/Marketplace/{chunk-I4UD2LE7.js → chunk-TQ3HQHW4.js} +1 -1
  79. package/Marketplace/{chunk-G7IWBXEY.js → chunk-UB7UFOVA.js} +1 -1
  80. package/Marketplace/{chunk-QGUA22VZ.js → chunk-VCBRU23L.js} +1 -1
  81. package/Marketplace/{chunk-PPNBNYPT.js → chunk-WMSEEPXC.js} +1 -1
  82. package/Marketplace/{chunk-MN6YCNJY.js → chunk-WTT6F7NP.js} +1 -1
  83. package/Marketplace/{chunk-4CSDEEPZ.js → chunk-X3Q4YLO7.js} +1 -1
  84. package/Marketplace/{chunk-YJHXCTEC.js → chunk-X5SRVZ5V.js} +1 -1
  85. package/Marketplace/{chunk-EVCANIRA.js → chunk-YBOG2XAH.js} +1 -1
  86. package/Marketplace/{chunk-UX4IK5KD.js → chunk-YLGAO33X.js} +1 -1
  87. package/Marketplace/{chunk-NQ7CTFLQ.js → chunk-YXNCP6JR.js} +1 -1
  88. package/Marketplace/{chunk-WJ5U4RCN.js → chunk-YZ3S5QD5.js} +1 -1
  89. package/Marketplace/{chunk-HC4LOAQ7.js → chunk-YZFSDPZC.js} +4 -4
  90. package/Marketplace/{chunk-FQFOKQRG.js → chunk-ZRG5JA6I.js} +1 -1
  91. package/Marketplace/index.html +2 -2
  92. package/Marketplace/{main-6GXKZBDJ.js → main-N5MK5CLJ.js} +2 -2
  93. package/package.json +1 -1
  94. package/Marketplace/chunk-CGVWYQJG.js +0 -14
  95. package/Marketplace/chunk-XY5LNEM2.js +0 -1
@@ -1 +1 @@
1
- import{a as ie,b as ae}from"./chunk-M622ISHM.js";import"./chunk-5SMIEG4C.js";import"./chunk-TFLTQKQC.js";import{a as ne}from"./chunk-KLLGH7UI.js";import{a as Y,b as Z,d as ee,e as te}from"./chunk-EHE35Y2Y.js";import{b as X}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-5LT2EUGJ.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-IMETJ3FA.js";import"./chunk-27GIACJC.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-HRSPRUJL.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import{h as G}from"./chunk-I3RG5IHH.js";import"./chunk-UX4IK5KD.js";import"./chunk-QXRG5XYP.js";import"./chunk-XXFM4BVC.js";import"./chunk-GRKPMAMP.js";import{c as H}from"./chunk-NNVT5X6O.js";import{h as K,m as Q,z as W}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{e as U}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{v as V,x as J,y as k}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as B,Eb as $,Ha as v,Kb as w,Mc as r,Nc as f,Oc as b,V as I,Y as M,Zc as z,ac as P,bc as T,cc as F,e as L,ec as O,fc as j,gc as d,hc as i,ia as N,ic as a,id as m,jc as u,jd as s,kb as S,kd as A,mb as l,na as g,qc as q,t as D,va as E,vc as C,wa as R,xc as x}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as _}from"./chunk-7KVKRA5M.js";var y=(()=>{class n{constructor(){this.httpService=g(U),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(M(e=>this.getLogs$(e).pipe()))}getLogs$(e){return this.httpService.post("/api/Channel/GetChannelLogPaged",e)}onPaginationChange(e){let t=this._pageination.value;t.PageNumber=e.pageIndex+1,this._pageination.next(t)}onFilter(e){let t=this._pageination.value;t.PageNumber=1,t=_(_({},t),e),this._pageination.next(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();function le(n,h){if(n&1&&(i(0,"span",10),u(1,"img",11),a(),r(2)),n&2){let e=h.item;l(),d("src",e.Img,S)("alt",e.Name),l(),b(" ",e.Name," ")}}function re(n,h){if(n&1&&(i(0,"tr")(1,"td"),u(2,"img",17),i(3,"span"),r(4),a()(),i(5,"td")(6,"span",18),r(7),m(8,"json"),a()(),i(9,"td"),r(10),m(11,"json"),a(),i(12,"td"),r(13),m(14,"date"),a()()),n&2){let e=h.$implicit;l(2),d("src",e.Img,S),l(2),b(" ",e.ChannelName," "),l(3),f(s(8,5,e.Request)),l(3),f(s(11,7,e.Response)),l(3),f(A(14,9,e.Created,"dd-MM-yyyy hh:mm:ss"))}}function pe(n,h){if(n&1){let e=q();i(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),r(5,"Channel"),a(),i(6,"th"),r(7,"Request"),a(),i(8,"th"),r(9,"Response"),a(),i(10,"th",15),r(11,"Created"),a()()(),i(12,"tbody"),O(13,re,15,12,"tr",null,F),m(15,"async"),a()(),i(16,"mat-paginator",16),m(17,"async"),m(18,"async"),m(19,"async"),m(20,"async"),C("page",function(p){E(e);let o=x();return R(o.channelLogService.onPaginationChange(p))}),a()()}if(n&2){let e,t,p,o,c=x();l(13),j((e=s(15,3,c.channelLogs$))==null?null:e.Data),l(3),d("length",(t=s(17,5,c.channelLogs$))==null?null:t.Count)("pageSize",(p=s(18,7,c.filter$))==null?null:p.RowCount)("pageIndex",(o=s(19,9,c.filter$))!=null&&o.PageNumber?0:((o=s(20,11,c.filter$))==null?null:o.PageNumber)-1)}}function me(n,h){n&1&&(i(0,"div",9),u(1,"app-empty-state"),a())}var Be=(()=>{class n{constructor(){this.channelLogService=g(y),this.authService=g(G),this.channelOptions=v(this.authService.getChannels()),this.channelLogs$=this.channelLogService.log$.pipe(D(e=>(e.Data?e.Data=e.Data.map(t=>(t.Response=t.Response?JSON.parse(t.Response):"",t.Request=t.Request?JSON.parse(t.Request):"",t.Img=H.getChannelLogoByTypeId(t.TypeID),t)):e.Data=[],e)),I(1)),this.channelID=v(null),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=$({type:n,selectors:[["app-channel-log"]],features:[z([y])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(t,p){if(t&1&&(i(0,"mainpanel",0),C("onSubmit",function(){return p.onSubmitFilter()}),i(1,"filters")(2,"div",1)(3,"div")(4,"label",2),r(5,"Channel"),a(),i(6,"ng-select",3),C("ngModelChange",function(c){return p.channelID.set(c)}),w(7,le,3,3,"ng-template",4),a()()()(),i(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),B(12,pe,21,13,"div",8),m(13,"async"),P(14,me,2,0,"div",9),a()()()()()),t&2){let o;d("hideSearchBox",!0),l(6),d("clearable",!0)("items",p.channelOptions())("ngModel",p.channelID()),l(6),T(((o=s(13,5,p.channelLogs$))==null||o.Data==null?null:o.Data.length)>0?12:14)}},dependencies:[X,ne,ae,ie,te,ee,Y,Z,W,K,Q,V,J,k],encapsulation:2,changeDetection:0})}}return n})();export{Be as ChannelLogComponent};
1
+ import{a as ie,b as ae}from"./chunk-M622ISHM.js";import"./chunk-5SMIEG4C.js";import"./chunk-TFLTQKQC.js";import{a as ne}from"./chunk-KLLGH7UI.js";import{a as Y,b as Z,d as ee,e as te}from"./chunk-EHE35Y2Y.js";import{b as X}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-5LT2EUGJ.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-IMETJ3FA.js";import"./chunk-27GIACJC.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-HRSPRUJL.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import{h as G}from"./chunk-NVCOALE3.js";import"./chunk-YLGAO33X.js";import"./chunk-QXRG5XYP.js";import"./chunk-OD6Q5ER6.js";import"./chunk-GRKPMAMP.js";import{c as H}from"./chunk-NNVT5X6O.js";import{h as K,m as Q,z as W}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{e as U}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{v as V,x as J,y as k}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as B,Eb as $,Ha as v,Kb as w,Mc as r,Nc as f,Oc as b,V as I,Y as M,Zc as z,ac as P,bc as T,cc as F,e as L,ec as O,fc as j,gc as d,hc as i,ia as N,ic as a,id as m,jc as u,jd as s,kb as S,kd as A,mb as l,na as g,qc as q,t as D,va as E,vc as C,wa as R,xc as x}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as _}from"./chunk-7KVKRA5M.js";var y=(()=>{class n{constructor(){this.httpService=g(U),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(M(e=>this.getLogs$(e).pipe()))}getLogs$(e){return this.httpService.post("/api/Channel/GetChannelLogPaged",e)}onPaginationChange(e){let t=this._pageination.value;t.PageNumber=e.pageIndex+1,this._pageination.next(t)}onFilter(e){let t=this._pageination.value;t.PageNumber=1,t=_(_({},t),e),this._pageination.next(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();function le(n,h){if(n&1&&(i(0,"span",10),u(1,"img",11),a(),r(2)),n&2){let e=h.item;l(),d("src",e.Img,S)("alt",e.Name),l(),b(" ",e.Name," ")}}function re(n,h){if(n&1&&(i(0,"tr")(1,"td"),u(2,"img",17),i(3,"span"),r(4),a()(),i(5,"td")(6,"span",18),r(7),m(8,"json"),a()(),i(9,"td"),r(10),m(11,"json"),a(),i(12,"td"),r(13),m(14,"date"),a()()),n&2){let e=h.$implicit;l(2),d("src",e.Img,S),l(2),b(" ",e.ChannelName," "),l(3),f(s(8,5,e.Request)),l(3),f(s(11,7,e.Response)),l(3),f(A(14,9,e.Created,"dd-MM-yyyy hh:mm:ss"))}}function pe(n,h){if(n&1){let e=q();i(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),r(5,"Channel"),a(),i(6,"th"),r(7,"Request"),a(),i(8,"th"),r(9,"Response"),a(),i(10,"th",15),r(11,"Created"),a()()(),i(12,"tbody"),O(13,re,15,12,"tr",null,F),m(15,"async"),a()(),i(16,"mat-paginator",16),m(17,"async"),m(18,"async"),m(19,"async"),m(20,"async"),C("page",function(p){E(e);let o=x();return R(o.channelLogService.onPaginationChange(p))}),a()()}if(n&2){let e,t,p,o,c=x();l(13),j((e=s(15,3,c.channelLogs$))==null?null:e.Data),l(3),d("length",(t=s(17,5,c.channelLogs$))==null?null:t.Count)("pageSize",(p=s(18,7,c.filter$))==null?null:p.RowCount)("pageIndex",(o=s(19,9,c.filter$))!=null&&o.PageNumber?0:((o=s(20,11,c.filter$))==null?null:o.PageNumber)-1)}}function me(n,h){n&1&&(i(0,"div",9),u(1,"app-empty-state"),a())}var Be=(()=>{class n{constructor(){this.channelLogService=g(y),this.authService=g(G),this.channelOptions=v(this.authService.getChannels()),this.channelLogs$=this.channelLogService.log$.pipe(D(e=>(e.Data?e.Data=e.Data.map(t=>(t.Response=t.Response?JSON.parse(t.Response):"",t.Request=t.Request?JSON.parse(t.Request):"",t.Img=H.getChannelLogoByTypeId(t.TypeID),t)):e.Data=[],e)),I(1)),this.channelID=v(null),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=$({type:n,selectors:[["app-channel-log"]],features:[z([y])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(t,p){if(t&1&&(i(0,"mainpanel",0),C("onSubmit",function(){return p.onSubmitFilter()}),i(1,"filters")(2,"div",1)(3,"div")(4,"label",2),r(5,"Channel"),a(),i(6,"ng-select",3),C("ngModelChange",function(c){return p.channelID.set(c)}),w(7,le,3,3,"ng-template",4),a()()()(),i(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),B(12,pe,21,13,"div",8),m(13,"async"),P(14,me,2,0,"div",9),a()()()()()),t&2){let o;d("hideSearchBox",!0),l(6),d("clearable",!0)("items",p.channelOptions())("ngModel",p.channelID()),l(6),T(((o=s(13,5,p.channelLogs$))==null||o.Data==null?null:o.Data.length)>0?12:14)}},dependencies:[X,ne,ae,ie,te,ee,Y,Z,W,K,Q,V,J,k],encapsulation:2,changeDetection:0})}}return n})();export{Be as ChannelLogComponent};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-SCGA6E6Z.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-B3P236VK.js";import{a as u}from"./chunk-YVHVMROC.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-I3RG5IHH.js";import"./chunk-UX4IK5KD.js";import"./chunk-QXRG5XYP.js";import"./chunk-XXFM4BVC.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import"./chunk-KVPTGBX3.js";import{c as s}from"./chunk-2P7JU6NZ.js";import"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{Eb as r,gc as c,hc as l,ic as p,jc as a,mb as i}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import"./chunk-7KVKRA5M.js";var d=(()=>{class t{constructor(){this.productTabs=[{Title:"Sold in Channel",Url:"/menu/products/status/sold-in-channel",Description:"SKU has been mapped between dealpos and marketplace"},{Title:"Not in POS",Url:"/menu/products/status/not-in-pos",Description:"SKU sold in Marketplace but not exist in DEALPOS"},{Title:"Not in Channel",Url:"/menu/products/status/not-in-channel",Description:"SKU has not been sold on one of channels"},{Title:"In POS",Url:"/menu/products/status/in-pos",Description:"All products which is already available in POS"},{Title:"Multiple Listing",Url:"/menu/products/status/duplicate-sku",Description:"SKU(s) which is listed more than one time (one to many)"},{Title:"Channel Statistic",Url:"/menu/products/status/channel-statistic",Description:"Product statistic from each channel obtained from the last product scan"},{Title:"Scan History",Url:"/menu/products/status/notificationV2",Description:"Scan results for each channel, including product counts and synchronization status"}]}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=r({type:t,selectors:[["app-status"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"]],template:function(o,h){o&1&&(l(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),p()()(),a(4,"router-outlet")),o&2&&(i(3),c("Tabs",h.productTabs))},dependencies:[u,s],encapsulation:2})}}return t})();var T=[{component:d,path:"",children:[{path:"",redirectTo:"sold-in-channel",pathMatch:"full"},{path:"in-pos",loadComponent(){return import("./chunk-GYUQIYGS.js").then(t=>t.InPosComponent)},canActivate:[n,e],data:{title:"Products in POS"}},{path:"sold-in-channel",loadComponent(){return import("./chunk-YJHXCTEC.js").then(t=>t.SoldInChannelComponent)},canActivate:[n,e],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",loadComponent(){return import("./chunk-J25LF6AN.js").then(t=>t.NotInChannelComponent)},canActivate:[n,e],data:{title:"Products not in Channel"}},{path:"not-in-pos",loadComponent(){return import("./chunk-CMVLD4FH.js").then(t=>t.NotInPosComponent)},canActivate:[n,e],data:{title:"Products not in POS"}},{path:"duplicate-sku",loadComponent(){return import("./chunk-GBTIXLZK.js").then(t=>t.DuplicateSkuComponent)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"duplicate-sku/table",loadComponent(){return import("./chunk-PH5F354K.js").then(t=>t.DuplicateSkuV2Component)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"channel-statistic",loadComponent(){return import("./chunk-LCR7A2IT.js").then(t=>t.ChannelStatisticComponent)},canActivate:[n,e],data:{title:"Channel Statistic"}},{path:"notification",loadComponent(){return import("./chunk-YCIPR6LU.js").then(t=>t.NotificationComponent)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2",loadComponent(){return import("./chunk-FCZHZTKU.js").then(t=>t.NotificationV2Component)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2/detailV2",loadComponent(){return import("./chunk-ZT5GSYFV.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}},{path:"notification/detail",loadComponent(){return import("./chunk-BILBBP6Q.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}}]}];export{T as routes};
1
+ import{a as e}from"./chunk-CPYCZ3AX.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-IAVUWAOY.js";import{a as u}from"./chunk-YVHVMROC.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-NVCOALE3.js";import"./chunk-YLGAO33X.js";import"./chunk-QXRG5XYP.js";import"./chunk-OD6Q5ER6.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import"./chunk-KVPTGBX3.js";import{c as s}from"./chunk-2P7JU6NZ.js";import"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{Eb as r,gc as c,hc as l,ic as p,jc as a,mb as i}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import"./chunk-7KVKRA5M.js";var d=(()=>{class t{constructor(){this.productTabs=[{Title:"Sold in Channel",Url:"/menu/products/status/sold-in-channel",Description:"SKU has been mapped between dealpos and marketplace"},{Title:"Not in POS",Url:"/menu/products/status/not-in-pos",Description:"SKU sold in Marketplace but not exist in DEALPOS"},{Title:"Not in Channel",Url:"/menu/products/status/not-in-channel",Description:"SKU has not been sold on one of channels"},{Title:"In POS",Url:"/menu/products/status/in-pos",Description:"All products which is already available in POS"},{Title:"Multiple Listing",Url:"/menu/products/status/duplicate-sku",Description:"SKU(s) which is listed more than one time (one to many)"},{Title:"Channel Statistic",Url:"/menu/products/status/channel-statistic",Description:"Product statistic from each channel obtained from the last product scan"},{Title:"Scan History",Url:"/menu/products/status/notificationV2",Description:"Scan results for each channel, including product counts and synchronization status"}]}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=r({type:t,selectors:[["app-status"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"]],template:function(o,h){o&1&&(l(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),p()()(),a(4,"router-outlet")),o&2&&(i(3),c("Tabs",h.productTabs))},dependencies:[u,s],encapsulation:2})}}return t})();var T=[{component:d,path:"",children:[{path:"",redirectTo:"sold-in-channel",pathMatch:"full"},{path:"in-pos",loadComponent(){return import("./chunk-A7KQRHB5.js").then(t=>t.InPosComponent)},canActivate:[n,e],data:{title:"Products in POS"}},{path:"sold-in-channel",loadComponent(){return import("./chunk-X5SRVZ5V.js").then(t=>t.SoldInChannelComponent)},canActivate:[n,e],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",loadComponent(){return import("./chunk-36J2U3X4.js").then(t=>t.NotInChannelComponent)},canActivate:[n,e],data:{title:"Products not in Channel"}},{path:"not-in-pos",loadComponent(){return import("./chunk-T6YKYTBR.js").then(t=>t.NotInPosComponent)},canActivate:[n,e],data:{title:"Products not in POS"}},{path:"duplicate-sku",loadComponent(){return import("./chunk-HCF7AFEH.js").then(t=>t.DuplicateSkuComponent)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"duplicate-sku/table",loadComponent(){return import("./chunk-IB26VQFI.js").then(t=>t.DuplicateSkuV2Component)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"channel-statistic",loadComponent(){return import("./chunk-HVHDETOD.js").then(t=>t.ChannelStatisticComponent)},canActivate:[n,e],data:{title:"Channel Statistic"}},{path:"notification",loadComponent(){return import("./chunk-MY3Y4REF.js").then(t=>t.NotificationComponent)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2",loadComponent(){return import("./chunk-GGMCBTH7.js").then(t=>t.NotificationV2Component)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2/detailV2",loadComponent(){return import("./chunk-ONTQGPIZ.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}},{path:"notification/detail",loadComponent(){return import("./chunk-CSDFU2K4.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}}]}];export{T as routes};
@@ -1,4 +1,4 @@
1
- import{a as Ot}from"./chunk-VMGFXITT.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import{a as yt,b as Tt}from"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import{a as It}from"./chunk-CZZ6XOQK.js";import{a as wt}from"./chunk-KLLGH7UI.js";import"./chunk-5XJEZSY4.js";import{a as ht}from"./chunk-IW277O6V.js";import{a as Ct}from"./chunk-RDMMFHDE.js";import{c as gt,e as bt,g as vt}from"./chunk-EUPJPCMA.js";import{a as mt,d as _t,e as ft,i as xt}from"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import{a as U}from"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import{b as tt,c as ct,e as ie,f as dt}from"./chunk-WM53FF34.js";import{e as ut}from"./chunk-EHE35Y2Y.js";import{a as rt,b as st}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import{Ca as lt,K as ue,L as P,a as de,d as q,e as H,f as Q,h as Oe,ka as it,na as nt,oa as me,pa as ot}from"./chunk-VK76JOCL.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import{h as et}from"./chunk-I3RG5IHH.js";import"./chunk-UX4IK5KD.js";import"./chunk-QXRG5XYP.js";import{a as Te}from"./chunk-XXFM4BVC.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import{a as at,c as pt,h as he,m as _e,z as G}from"./chunk-J5MD62BS.js";import{c as Ye}from"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{e as ce}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{B as se,n as pe,p as je,q as We,t as Ze,u as Je,v as re,z as Xe}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as J,$c as V,Ac as Ne,Bc as $e,Cc as x,Da as S,Dc as C,Ea as ke,Eb as D,Fb as De,Ha as w,Hc as Ie,Hd as y,Ib as Le,Ic as ze,Id as z,Jb as Be,Ka as Ae,Kb as h,Kc as le,Lc as b,Mc as f,Na as Pe,Nc as Y,Oc as A,Pc as Re,Qc as K,Rc as N,Sc as $,Tc as qe,V as Se,Xb as v,Zc as He,_c as Qe,aa as W,ad as ae,bc as X,bd as we,cc as Fe,e as xe,ec as Ue,fc as Ke,gc as r,ha as Ve,hc as c,ia as ne,ic as d,id as L,ja as Me,jc as T,jd as B,kb as oe,la as Ee,mb as s,md as F,na as O,nc as E,o as j,oc as k,pc as M,qc as I,qd as Ge,rd as R,t as Ce,va as u,vc as g,vd as ee,wa as m,wd as te,xa as Z,xb as ve,xc as a}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import"./chunk-7KVKRA5M.js";var St=`
1
+ import{a as Ot}from"./chunk-DVOLD4ZD.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import{a as yt,b as Tt}from"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import{a as It}from"./chunk-CZZ6XOQK.js";import{a as wt}from"./chunk-KLLGH7UI.js";import"./chunk-5XJEZSY4.js";import{a as ht}from"./chunk-IW277O6V.js";import{a as Ct}from"./chunk-RDMMFHDE.js";import{c as gt,e as bt,g as vt}from"./chunk-EUPJPCMA.js";import{a as mt,d as _t,e as ft,i as xt}from"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import{a as U}from"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import{b as tt,c as ct,e as ie,f as dt}from"./chunk-WM53FF34.js";import{e as ut}from"./chunk-EHE35Y2Y.js";import{a as rt,b as st}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import{Ca as lt,K as ue,L as P,a as de,d as q,e as H,f as Q,h as Oe,ka as it,na as nt,oa as me,pa as ot}from"./chunk-VK76JOCL.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import{h as et}from"./chunk-NVCOALE3.js";import"./chunk-YLGAO33X.js";import"./chunk-QXRG5XYP.js";import{a as Te}from"./chunk-OD6Q5ER6.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import{a as at,c as pt,h as he,m as _e,z as G}from"./chunk-J5MD62BS.js";import{c as Ye}from"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{e as ce}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{B as se,n as pe,p as je,q as We,t as Ze,u as Je,v as re,z as Xe}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as J,$c as V,Ac as Ne,Bc as $e,Cc as x,Da as S,Dc as C,Ea as ke,Eb as D,Fb as De,Ha as w,Hc as Ie,Hd as y,Ib as Le,Ic as ze,Id as z,Jb as Be,Ka as Ae,Kb as h,Kc as le,Lc as b,Mc as f,Na as Pe,Nc as Y,Oc as A,Pc as Re,Qc as K,Rc as N,Sc as $,Tc as qe,V as Se,Xb as v,Zc as He,_c as Qe,aa as W,ad as ae,bc as X,bd as we,cc as Fe,e as xe,ec as Ue,fc as Ke,gc as r,ha as Ve,hc as c,ia as ne,ic as d,id as L,ja as Me,jc as T,jd as B,kb as oe,la as Ee,mb as s,md as F,na as O,nc as E,o as j,oc as k,pc as M,qc as I,qd as Ge,rd as R,t as Ce,va as u,vc as g,vd as ee,wa as m,wd as te,xa as Z,xb as ve,xc as a}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import"./chunk-7KVKRA5M.js";var St=`
2
2
  .p-autocomplete {
3
3
  display: inline-flex;
4
4
  }
@@ -1 +1 @@
1
- import{a as Nt}from"./chunk-CUXN2FOX.js";import"./chunk-4XOXLWWY.js";import{c as yt,d as vt}from"./chunk-T4JTVAQK.js";import"./chunk-MESJR4AI.js";import{e as bt}from"./chunk-L32AKCEV.js";import"./chunk-FXMJKY2I.js";import{a as St}from"./chunk-S5JNUALT.js";import{a as xt}from"./chunk-CJS6TD2L.js";import"./chunk-XY5LNEM2.js";import"./chunk-BF2QYK3D.js";import"./chunk-TFLTQKQC.js";import"./chunk-CZZ6XOQK.js";import{a as Pt}from"./chunk-KLLGH7UI.js";import{a as ft}from"./chunk-QGUA22VZ.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-BKR7YPEW.js";import"./chunk-WJ5U4RCN.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import"./chunk-EHE35Y2Y.js";import{b as gt}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import{c as Ct}from"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-ALU2M2OP.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-QVFZNJGC.js";import"./chunk-IMETJ3FA.js";import"./chunk-JQDMGUB2.js";import"./chunk-27GIACJC.js";import"./chunk-PNL3GTGS.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-VK76JOCL.js";import"./chunk-HRSPRUJL.js";import{b as ht}from"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import{a as z}from"./chunk-ZSUWHVKX.js";import{h as dt}from"./chunk-I3RG5IHH.js";import"./chunk-UX4IK5KD.js";import"./chunk-QXRG5XYP.js";import{a as G}from"./chunk-XXFM4BVC.js";import{b as ct,c as st}from"./chunk-GRKPMAMP.js";import{c as N}from"./chunk-NNVT5X6O.js";import{b as pt,h as _t,m as mt,z as ut}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{b as rt,e as U}from"./chunk-KVPTGBX3.js";import{d as lt}from"./chunk-2P7JU6NZ.js";import{v as ot,z as at}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as _,$c as R,E as V,Eb as et,Ha as P,I as q,Kb as A,Mc as d,Nc as it,Oc as y,Qc as $,Rc as L,Sc as W,T as J,V as Z,_ as Q,aa as k,ac as nt,ba as Y,bc as m,d as K,dc as I,e as j,ec as F,fc as T,gc as p,hc as o,ia as X,ic as l,id as b,jc as g,jd as S,kb as v,ma as tt,mb as r,na as C,nc as D,oc as B,qc as f,t as w,va as u,vc as x,wa as h,xc as s}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as M,b as E}from"./chunk-7KVKRA5M.js";var wt=(()=>{class e{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new j(null),this.destroy$=new K,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,i){i==0?this.disableNextButton=!0:this.disableNextButton=!(i<t.RowCount*t.PageNumber)}reloadPagination(t){N.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,i){t.RowCount=i,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new j(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(Q(this.destroy$),V(t=>t!=null),q(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(w(i=>i.Data))),Y(this.pagination$),J((t,i)=>{let[n,a]=t,[O]=i;return a.PageNumber==1?[O,a]:[n.concat(O),a]}),k(([t,i])=>{this.setPageNumberFooter(i),this.setPaginationButtonState(i,t.length)}),w(([t])=>t),Z())}static{this.\u0275fac=function(i){return new(i||e)(tt(U))}}static{this.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var H=e=>[e];function Ft(e,c){if(e&1){let t=f();o(0,"button",11),x("click",function(){u(t);let n=s(3);return h(n.uploadMultipleProduct())}),g(1,"i",12),d(2),l()}if(e&2){let t,i=s(3);r(2),y(" upload (",(t=i.selectedProducts())==null?null:t.length,") ")}}function Tt(e,c){if(e&1&&(D(0),_(1,Ft,3,1,"button",10),B()),e&2){let t=s(2);r(),m(t.hasSelectionProduct()?1:-1)}}function Ot(e,c){e&1&&(D(0),g(1,"th",19),B())}function Mt(e,c){if(e&1){let t=f();o(0,"td",25)(1,"input",26),W("ngModelChange",function(n){u(t);let a=s(3).$implicit;return L(a.selected,n)||(a.selected=n),h(n)}),x("ngModelChange",function(){u(t);let n=s(4),a=s(3);return h(a.onSelectProduct(n))}),l()()}if(e&2){let t=s(3).$implicit;p("rowSpan",t==null?null:t.Variants.length),r(),$("ngModel",t.selected)}}function Et(e,c){if(e&1&&(D(0),_(1,Mt,2,2,"td",25),B()),e&2){let t=s().$index;r(),m(t==0?1:-1)}}function Vt(e,c){if(e&1){let t=f();o(0,"img",33),x("click",function(n){u(t);let a=s(3).$implicit,O=s(4);return h(O.onZoomImage(n,a==null?null:a.ImageUrl))}),l()}if(e&2){let t=s(3).$implicit;p("src",t==null?null:t.ImageUrl,v)}}function kt(e,c){e&1&&g(0,"img",29)}function At(e,c){if(e&1&&(o(0,"td",25)(1,"div",27),_(2,Vt,1,1,"img",28)(3,kt,1,0,"img",29),l()(),o(4,"td",30)(5,"h4",31)(6,"span",32),d(7),l()()()),e&2){let t=s(2).$implicit;p("rowSpan",t==null?null:t.Variants.length),r(2),m(t!=null&&t.ImageUrl?2:3),r(2),p("rowSpan",t==null?null:t.Variants.length),r(2),p("matTooltip",(t==null||t.Name==null?null:t.Name.length)>50?t==null?null:t.Name:""),r(),y(" ",t==null?null:t.Name," ")}}function Dt(e,c){if(e&1&&(o(0,"div")(1,"a",21),g(2,"img",34),l()()),e&2){let t=c.$implicit;r(),p("href",t.URL,v),r(),p("src",t.Img,v)("matTooltip",t.Name)}}function Bt(e,c){if(e&1&&(o(0,"div"),g(1,"img",34),l()),e&2){let t=c.$implicit;r(),p("src",t.Img,v)("matTooltip",t.Name)}}function $t(e,c){if(e&1&&(o(0,"tr"),A(1,Et,2,1,"ng-container",2),_(2,At,8,5),o(3,"td"),d(4),l(),o(5,"td")(6,"span"),d(7),l(),o(8,"span",20)(9,"a",21),g(10,"i",22),l()()(),o(11,"td",23)(12,"div",24),F(13,Dt,3,3,"div",null,I),l()(),o(15,"td",23)(16,"div",24),F(17,Bt,2,2,"div",null,I),l()()()),e&2){let t=c.$implicit,i=c.$index,n=s(5);r(),p("ngxPermissionsOnly",R(5,H,n.uploadProductRole)),r(),m(i==0?2:-1),r(2),y(" ",t.Name," "),r(3),y(" ",t.Code," "),r(2),p("href",n.hostName()+"/menu/Products/Catalog/Variants/Info?ID="+(t==null?null:t.ID),v),r(4),T(t==null?null:t.Available),r(4),T(t==null?null:t.NotAvailable)}}function Lt(e,c){if(e&1&&F(0,$t,19,7,"tr",null,I),e&2){let t=c.$implicit;T(t.Variants)}}function Rt(e,c){e&1&&(o(0,"tbody"),F(1,Lt,2,0,null,null,I),l()),e&2&&(r(),T(c))}function Ut(e,c){if(e&1&&(o(0,"div",8)(1,"table",13)(2,"thead",14)(3,"tr"),A(4,Ot,2,0,"ng-container",2),o(5,"th",15),d(6," Product "),l(),o(7,"th",16),d(8,"Variant"),l(),o(9,"th",16),d(10,"SKU"),l(),o(11,"th",17),d(12,"Available In"),l(),o(13,"th",18),d(14,"Not Available In"),l()()(),_(15,Rt,3,0,"tbody"),b(16,"async"),l()()),e&2){let t,i=s(2);r(4),p("ngxPermissionsOnly",R(4,H,i.uploadProductRole)),r(11),m((t=S(16,2,i.data$))?15:-1,t)}}function jt(e,c){e&1&&(o(0,"div",9),g(1,"app-empty-state"),l())}function Wt(e,c){if(e&1){let t=f();o(0,"span",42),x("click",function(){u(t);let n=s(4);return h(n.getRowCount())}),o(1,"i",43),d(2,"?"),l()()}}function Gt(e,c){if(e&1&&(o(0,"span"),d(1),b(2,"number"),l()),e&2){let t=c;r(),it(S(2,1,t==null?null:t.Count))}}function zt(e,c){if(e&1){let t=f();o(0,"a",44),x("click",function(){u(t);let n=s(4);return h(n.onNextPage())}),g(1,"i",45),d(2," Next"),l()}}function Ht(e,c){if(e&1){let t=f();o(0,"a",46),x("click",function(){u(t);let n=s(4);return h(n.onLastPage())}),g(1,"i",47),d(2," Last"),l()}}function Kt(e,c){if(e&1&&(o(0,"div",35)(1,"div",36)(2,"div",37),d(3),b(4,"number"),_(5,Wt,3,0,"span",38),_(6,Gt,3,3,"span"),b(7,"async"),d(8),l()(),o(9,"div",39),_(10,zt,3,0,"a",40),_(11,Ht,3,0,"a",41),l()()),e&2){let t,i=s(),n=s(2);r(3),y(" Showing 1 - ",S(4,6,i==null?null:i.length)," of "),r(2),m(n.paginationService.hideCount?5:-1),r(),m((t=!n.paginationService.hideCount&&S(7,8,n.rowCount$))?6:-1,t),r(2),y(" records ~ ",n.paginationService.footerPageNumber," Page "),r(2),m(n.paginationService.disableNextButton&&!n.paginationService.goToLastPage?10:-1),r(),m(n.paginationService.disableNextButton&&!n.paginationService.goToLastPage?11:-1)}}function qt(e,c){if(e&1&&_(0,Kt,12,10,"div",35),e&2){let t=c;m((t==null?null:t.length)>0?0:-1)}}function Jt(e,c){if(e&1){let t=f();o(0,"mainpanel",1),x("onSubmit",function(n){u(t);let a=s();return h(a.searchProduct(n))}),o(1,"actions"),A(2,Tt,2,1,"ng-container",2),o(3,"button",3),x("click",function(){u(t);let n=s();return h(n.openExportDialog())}),g(4,"i",4),o(5,"span"),d(6,"Export"),l()()(),o(7,"filters")(8,"filter-query-type",5),W("numberFilterComparatorChange",function(n){u(t);let a=s();return L(a.searchFilter().NumberFilterComparator,n)||(a.searchFilter().NumberFilterComparator=n),h(n)})("searchTypeChange",function(n){u(t);let a=s();return L(a.searchFilter().SearchType,n)||(a.searchFilter().SearchType=n),h(n)}),l()(),o(9,"content")(10,"div",6)(11,"div",7),_(12,Ut,17,6,"div",8),b(13,"async"),nt(14,jt,2,0,"div",9),l(),_(15,qt,1,1),b(16,"async"),l()()()}if(e&2){let t,i,n=c,a=s();p("searchBoxPlaceHolder",a.searchPlaceholder()),r(2),p("ngxPermissionsOnly",R(12,H,a.uploadProductRole)),r(6),p("numberFilterComparatorOptions",n==null||n.Options==null?null:n.Options.SearchComparatorTypeOptions),$("numberFilterComparator",a.searchFilter().NumberFilterComparator),p("searchTypeOptions",n==null||n.Options==null?null:n.Options.SearchSKUOnlyOrSKUNameOptions),$("searchType",a.searchFilter().SearchType),r(4),m(((t=S(13,8,a.data$))==null?null:t.length)>0?12:14),r(3),m((i=S(16,10,a.data$))?15:-1,i)}}var Te=(()=>{class e{constructor(){this.http=C(U),this.dialog=C(Ct),this.toastr=C(rt),this.route=C(lt),this.productService=C(ft),this.paginationService=C(wt),this.biggerPictureService=C(St),this.authService=C(dt),this.uploadProductService=C(bt),this.placeholderService=C(yt),this.loaderAPI="product/Load",this.notChannelAPI="product/GetNotInChannelV2",this.searchFilter=P({}),this.hostName=P(""),this.hasSelectionProduct=P(!1),this.selectedProducts=P([]),this.channelOptions=P([]),this.scanProductRole=z.ProductScan,this.uploadProductRole=z.ProductUpload,this.searchPlaceholder=P("Search ...");let t=this.authService;this.channelOptions.set(t.getChannels()),this.hostName.set(this.authService.getDomain())}ngOnInit(){this.initPageLoader(),this.iniData()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe(k(t=>{this.searchFilter.set(t.Filter),this.paginationService.reloadPagination(t.Filter),this.initSearchPlaceholder()}))}initSearchPlaceholder(){let t=this.searchFilter();this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(t.SearchType,t.NumberFilterComparator))}iniData(){this.data$=this.paginationService.data$.pipe(w(t=>(t=t.map(i=>(i.Variants=i.Variants.map(n=>(n.Available=this.productService.sortChannel(n.Available),n.NotAvailable=this.productService.sortChannel(n.NotAvailable),n.Available=this.assignLogoChannel(n.Available),n.NotAvailable=this.assignLogoChannel(n.NotAvailable),n)),i.Channel=i?.Variants[0]?.Available,i)),t)))}assignLogoChannel(t){return t=t.map(i=>(i.Img=N.getChannelLogoByTypeId(i.TypeID),i)),t}searchProduct(t){this.searchFilter.update(i=>E(M({},i),{text:t})),this.paginationService.reloadPagination(this.searchFilter()),this.initSearchPlaceholder()}scanAllProduct(){let t=this.searchFilter(),i=this.productService.findChannelById(t.ChannelID,this.channelOptions());this.productService.scanAll(t.ChannelID,t.ScanFull,t.UpdatedProduct,t.Async).subscribe(n=>{t.Async?this.toastr.success("You will be notified when the scan is completed.","Scan Asynchronous"):(this.productService.successToastrScanAllProduct(n,i,!t.UpdatedProduct),this.initPageLoader())})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter()));t.ChannelID=N.GuidEMpty,this.dialog.open(xt,{data:{filter:t,channelOptions:this.channelOptions()},width:"600px"}).afterClosed().pipe(V(n=>N.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.update(a=>E(M({},a),{ChannelID:n.ChannelID,ScanFull:n.ScanFull,UpdatedProduct:n.UpdatedProduct,Async:n.Async})),this.scanAllProduct()})}getRowCount(){this.paginationService.hideCount=!1;let t=this.searchFilter(),i={text:t.text,NumberFilterComparator:t.NumberFilterComparator,SearchType:t.SearchType};this.rowCount$=this.http.post(G.GetNotInChannelRowCount,i)}onNextPage(){this.paginationService.onNextPage(this.searchFilter())}onLastPage(){let t=this.searchFilter(),i={text:t.text,NumberFilterComparator:t.NumberFilterComparator,SearchType:t.SearchType};this.http.post(G.GetNotInChannelRowCount,i).subscribe({next:n=>{this.searchFilter.update(a=>E(M({},a),{PageNumber:1})),this.paginationService.getAllData(this.searchFilter(),n.Count)}})}onZoomImage(t,i){this.biggerPictureService.openBiggerPicture(t,i)}onSelectProduct(t){this.hasSelectionProduct.set(this.productService.hasSelection(t)),this.selectedProducts.set(this.productService.selectedProduct(t))}uploadMultipleProduct(){this.uploadProductService.setSelectedProduct(this.selectedProducts()),this.route.navigate(["/menu/products/upload"])}ngOnDestroy(){this.paginationService.destroy()}openExportDialog(){let t=this.searchFilter();this.dialog.open(Nt,{data:{title:"Export Not In Channel",pageNumber:t.PageNumber,rowCount:t.RowCount,filterExport:t,getRowCountApi:"product/GetNotInChannelRowCount",exportApi:"product/GetNotInChannelExport"}}).afterClosed().subscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=et({type:e,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"searchBoxPlaceHolder"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[2,"width","10px"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(i,n){if(i&1&&(_(0,Jt,17,14,"mainpanel",0),b(1,"async")),i&2){let a;m((a=S(1,1,n.loader$))?0:-1,a)}},dependencies:[gt,st,ct,vt,ut,pt,_t,mt,ht,Pt,ot,at],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}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return e})();export{Te as NotInChannelComponent};
1
+ import{a as Nt}from"./chunk-CUXN2FOX.js";import"./chunk-4XOXLWWY.js";import{c as yt,d as vt}from"./chunk-T4JTVAQK.js";import"./chunk-MESJR4AI.js";import{e as bt}from"./chunk-RB4PJKZF.js";import"./chunk-FXMJKY2I.js";import{a as St}from"./chunk-S5JNUALT.js";import{a as xt}from"./chunk-ERVQHJB2.js";import"./chunk-JVSOVAA3.js";import"./chunk-BF2QYK3D.js";import"./chunk-TFLTQKQC.js";import"./chunk-CZZ6XOQK.js";import{a as Pt}from"./chunk-KLLGH7UI.js";import{a as ft}from"./chunk-VCBRU23L.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-BKR7YPEW.js";import"./chunk-YZ3S5QD5.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import"./chunk-EHE35Y2Y.js";import{b as gt}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import{c as Ct}from"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-ALU2M2OP.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-QVFZNJGC.js";import"./chunk-IMETJ3FA.js";import"./chunk-JQDMGUB2.js";import"./chunk-27GIACJC.js";import"./chunk-PNL3GTGS.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-VK76JOCL.js";import"./chunk-HRSPRUJL.js";import{b as ht}from"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import{a as z}from"./chunk-ZSUWHVKX.js";import{h as dt}from"./chunk-NVCOALE3.js";import"./chunk-YLGAO33X.js";import"./chunk-QXRG5XYP.js";import{a as G}from"./chunk-OD6Q5ER6.js";import{b as ct,c as st}from"./chunk-GRKPMAMP.js";import{c as N}from"./chunk-NNVT5X6O.js";import{b as pt,h as _t,m as mt,z as ut}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{b as rt,e as U}from"./chunk-KVPTGBX3.js";import{d as lt}from"./chunk-2P7JU6NZ.js";import{v as ot,z as at}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as _,$c as R,E as V,Eb as et,Ha as P,I as q,Kb as A,Mc as d,Nc as it,Oc as y,Qc as $,Rc as L,Sc as W,T as J,V as Z,_ as Q,aa as k,ac as nt,ba as Y,bc as m,d as K,dc as I,e as j,ec as F,fc as T,gc as p,hc as o,ia as X,ic as l,id as b,jc as g,jd as S,kb as v,ma as tt,mb as r,na as C,nc as D,oc as B,qc as f,t as w,va as u,vc as x,wa as h,xc as s}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as M,b as E}from"./chunk-7KVKRA5M.js";var wt=(()=>{class e{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new j(null),this.destroy$=new K,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,i){i==0?this.disableNextButton=!0:this.disableNextButton=!(i<t.RowCount*t.PageNumber)}reloadPagination(t){N.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,i){t.RowCount=i,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new j(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(Q(this.destroy$),V(t=>t!=null),q(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(w(i=>i.Data))),Y(this.pagination$),J((t,i)=>{let[n,a]=t,[O]=i;return a.PageNumber==1?[O,a]:[n.concat(O),a]}),k(([t,i])=>{this.setPageNumberFooter(i),this.setPaginationButtonState(i,t.length)}),w(([t])=>t),Z())}static{this.\u0275fac=function(i){return new(i||e)(tt(U))}}static{this.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var H=e=>[e];function Ft(e,c){if(e&1){let t=f();o(0,"button",11),x("click",function(){u(t);let n=s(3);return h(n.uploadMultipleProduct())}),g(1,"i",12),d(2),l()}if(e&2){let t,i=s(3);r(2),y(" upload (",(t=i.selectedProducts())==null?null:t.length,") ")}}function Tt(e,c){if(e&1&&(D(0),_(1,Ft,3,1,"button",10),B()),e&2){let t=s(2);r(),m(t.hasSelectionProduct()?1:-1)}}function Ot(e,c){e&1&&(D(0),g(1,"th",19),B())}function Mt(e,c){if(e&1){let t=f();o(0,"td",25)(1,"input",26),W("ngModelChange",function(n){u(t);let a=s(3).$implicit;return L(a.selected,n)||(a.selected=n),h(n)}),x("ngModelChange",function(){u(t);let n=s(4),a=s(3);return h(a.onSelectProduct(n))}),l()()}if(e&2){let t=s(3).$implicit;p("rowSpan",t==null?null:t.Variants.length),r(),$("ngModel",t.selected)}}function Et(e,c){if(e&1&&(D(0),_(1,Mt,2,2,"td",25),B()),e&2){let t=s().$index;r(),m(t==0?1:-1)}}function Vt(e,c){if(e&1){let t=f();o(0,"img",33),x("click",function(n){u(t);let a=s(3).$implicit,O=s(4);return h(O.onZoomImage(n,a==null?null:a.ImageUrl))}),l()}if(e&2){let t=s(3).$implicit;p("src",t==null?null:t.ImageUrl,v)}}function kt(e,c){e&1&&g(0,"img",29)}function At(e,c){if(e&1&&(o(0,"td",25)(1,"div",27),_(2,Vt,1,1,"img",28)(3,kt,1,0,"img",29),l()(),o(4,"td",30)(5,"h4",31)(6,"span",32),d(7),l()()()),e&2){let t=s(2).$implicit;p("rowSpan",t==null?null:t.Variants.length),r(2),m(t!=null&&t.ImageUrl?2:3),r(2),p("rowSpan",t==null?null:t.Variants.length),r(2),p("matTooltip",(t==null||t.Name==null?null:t.Name.length)>50?t==null?null:t.Name:""),r(),y(" ",t==null?null:t.Name," ")}}function Dt(e,c){if(e&1&&(o(0,"div")(1,"a",21),g(2,"img",34),l()()),e&2){let t=c.$implicit;r(),p("href",t.URL,v),r(),p("src",t.Img,v)("matTooltip",t.Name)}}function Bt(e,c){if(e&1&&(o(0,"div"),g(1,"img",34),l()),e&2){let t=c.$implicit;r(),p("src",t.Img,v)("matTooltip",t.Name)}}function $t(e,c){if(e&1&&(o(0,"tr"),A(1,Et,2,1,"ng-container",2),_(2,At,8,5),o(3,"td"),d(4),l(),o(5,"td")(6,"span"),d(7),l(),o(8,"span",20)(9,"a",21),g(10,"i",22),l()()(),o(11,"td",23)(12,"div",24),F(13,Dt,3,3,"div",null,I),l()(),o(15,"td",23)(16,"div",24),F(17,Bt,2,2,"div",null,I),l()()()),e&2){let t=c.$implicit,i=c.$index,n=s(5);r(),p("ngxPermissionsOnly",R(5,H,n.uploadProductRole)),r(),m(i==0?2:-1),r(2),y(" ",t.Name," "),r(3),y(" ",t.Code," "),r(2),p("href",n.hostName()+"/menu/Products/Catalog/Variants/Info?ID="+(t==null?null:t.ID),v),r(4),T(t==null?null:t.Available),r(4),T(t==null?null:t.NotAvailable)}}function Lt(e,c){if(e&1&&F(0,$t,19,7,"tr",null,I),e&2){let t=c.$implicit;T(t.Variants)}}function Rt(e,c){e&1&&(o(0,"tbody"),F(1,Lt,2,0,null,null,I),l()),e&2&&(r(),T(c))}function Ut(e,c){if(e&1&&(o(0,"div",8)(1,"table",13)(2,"thead",14)(3,"tr"),A(4,Ot,2,0,"ng-container",2),o(5,"th",15),d(6," Product "),l(),o(7,"th",16),d(8,"Variant"),l(),o(9,"th",16),d(10,"SKU"),l(),o(11,"th",17),d(12,"Available In"),l(),o(13,"th",18),d(14,"Not Available In"),l()()(),_(15,Rt,3,0,"tbody"),b(16,"async"),l()()),e&2){let t,i=s(2);r(4),p("ngxPermissionsOnly",R(4,H,i.uploadProductRole)),r(11),m((t=S(16,2,i.data$))?15:-1,t)}}function jt(e,c){e&1&&(o(0,"div",9),g(1,"app-empty-state"),l())}function Wt(e,c){if(e&1){let t=f();o(0,"span",42),x("click",function(){u(t);let n=s(4);return h(n.getRowCount())}),o(1,"i",43),d(2,"?"),l()()}}function Gt(e,c){if(e&1&&(o(0,"span"),d(1),b(2,"number"),l()),e&2){let t=c;r(),it(S(2,1,t==null?null:t.Count))}}function zt(e,c){if(e&1){let t=f();o(0,"a",44),x("click",function(){u(t);let n=s(4);return h(n.onNextPage())}),g(1,"i",45),d(2," Next"),l()}}function Ht(e,c){if(e&1){let t=f();o(0,"a",46),x("click",function(){u(t);let n=s(4);return h(n.onLastPage())}),g(1,"i",47),d(2," Last"),l()}}function Kt(e,c){if(e&1&&(o(0,"div",35)(1,"div",36)(2,"div",37),d(3),b(4,"number"),_(5,Wt,3,0,"span",38),_(6,Gt,3,3,"span"),b(7,"async"),d(8),l()(),o(9,"div",39),_(10,zt,3,0,"a",40),_(11,Ht,3,0,"a",41),l()()),e&2){let t,i=s(),n=s(2);r(3),y(" Showing 1 - ",S(4,6,i==null?null:i.length)," of "),r(2),m(n.paginationService.hideCount?5:-1),r(),m((t=!n.paginationService.hideCount&&S(7,8,n.rowCount$))?6:-1,t),r(2),y(" records ~ ",n.paginationService.footerPageNumber," Page "),r(2),m(n.paginationService.disableNextButton&&!n.paginationService.goToLastPage?10:-1),r(),m(n.paginationService.disableNextButton&&!n.paginationService.goToLastPage?11:-1)}}function qt(e,c){if(e&1&&_(0,Kt,12,10,"div",35),e&2){let t=c;m((t==null?null:t.length)>0?0:-1)}}function Jt(e,c){if(e&1){let t=f();o(0,"mainpanel",1),x("onSubmit",function(n){u(t);let a=s();return h(a.searchProduct(n))}),o(1,"actions"),A(2,Tt,2,1,"ng-container",2),o(3,"button",3),x("click",function(){u(t);let n=s();return h(n.openExportDialog())}),g(4,"i",4),o(5,"span"),d(6,"Export"),l()()(),o(7,"filters")(8,"filter-query-type",5),W("numberFilterComparatorChange",function(n){u(t);let a=s();return L(a.searchFilter().NumberFilterComparator,n)||(a.searchFilter().NumberFilterComparator=n),h(n)})("searchTypeChange",function(n){u(t);let a=s();return L(a.searchFilter().SearchType,n)||(a.searchFilter().SearchType=n),h(n)}),l()(),o(9,"content")(10,"div",6)(11,"div",7),_(12,Ut,17,6,"div",8),b(13,"async"),nt(14,jt,2,0,"div",9),l(),_(15,qt,1,1),b(16,"async"),l()()()}if(e&2){let t,i,n=c,a=s();p("searchBoxPlaceHolder",a.searchPlaceholder()),r(2),p("ngxPermissionsOnly",R(12,H,a.uploadProductRole)),r(6),p("numberFilterComparatorOptions",n==null||n.Options==null?null:n.Options.SearchComparatorTypeOptions),$("numberFilterComparator",a.searchFilter().NumberFilterComparator),p("searchTypeOptions",n==null||n.Options==null?null:n.Options.SearchSKUOnlyOrSKUNameOptions),$("searchType",a.searchFilter().SearchType),r(4),m(((t=S(13,8,a.data$))==null?null:t.length)>0?12:14),r(3),m((i=S(16,10,a.data$))?15:-1,i)}}var Te=(()=>{class e{constructor(){this.http=C(U),this.dialog=C(Ct),this.toastr=C(rt),this.route=C(lt),this.productService=C(ft),this.paginationService=C(wt),this.biggerPictureService=C(St),this.authService=C(dt),this.uploadProductService=C(bt),this.placeholderService=C(yt),this.loaderAPI="product/Load",this.notChannelAPI="product/GetNotInChannelV2",this.searchFilter=P({}),this.hostName=P(""),this.hasSelectionProduct=P(!1),this.selectedProducts=P([]),this.channelOptions=P([]),this.scanProductRole=z.ProductScan,this.uploadProductRole=z.ProductUpload,this.searchPlaceholder=P("Search ...");let t=this.authService;this.channelOptions.set(t.getChannels()),this.hostName.set(this.authService.getDomain())}ngOnInit(){this.initPageLoader(),this.iniData()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe(k(t=>{this.searchFilter.set(t.Filter),this.paginationService.reloadPagination(t.Filter),this.initSearchPlaceholder()}))}initSearchPlaceholder(){let t=this.searchFilter();this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(t.SearchType,t.NumberFilterComparator))}iniData(){this.data$=this.paginationService.data$.pipe(w(t=>(t=t.map(i=>(i.Variants=i.Variants.map(n=>(n.Available=this.productService.sortChannel(n.Available),n.NotAvailable=this.productService.sortChannel(n.NotAvailable),n.Available=this.assignLogoChannel(n.Available),n.NotAvailable=this.assignLogoChannel(n.NotAvailable),n)),i.Channel=i?.Variants[0]?.Available,i)),t)))}assignLogoChannel(t){return t=t.map(i=>(i.Img=N.getChannelLogoByTypeId(i.TypeID),i)),t}searchProduct(t){this.searchFilter.update(i=>E(M({},i),{text:t})),this.paginationService.reloadPagination(this.searchFilter()),this.initSearchPlaceholder()}scanAllProduct(){let t=this.searchFilter(),i=this.productService.findChannelById(t.ChannelID,this.channelOptions());this.productService.scanAll(t.ChannelID,t.ScanFull,t.UpdatedProduct,t.Async).subscribe(n=>{t.Async?this.toastr.success("You will be notified when the scan is completed.","Scan Asynchronous"):(this.productService.successToastrScanAllProduct(n,i,!t.UpdatedProduct),this.initPageLoader())})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter()));t.ChannelID=N.GuidEMpty,this.dialog.open(xt,{data:{filter:t,channelOptions:this.channelOptions()},width:"600px"}).afterClosed().pipe(V(n=>N.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.update(a=>E(M({},a),{ChannelID:n.ChannelID,ScanFull:n.ScanFull,UpdatedProduct:n.UpdatedProduct,Async:n.Async})),this.scanAllProduct()})}getRowCount(){this.paginationService.hideCount=!1;let t=this.searchFilter(),i={text:t.text,NumberFilterComparator:t.NumberFilterComparator,SearchType:t.SearchType};this.rowCount$=this.http.post(G.GetNotInChannelRowCount,i)}onNextPage(){this.paginationService.onNextPage(this.searchFilter())}onLastPage(){let t=this.searchFilter(),i={text:t.text,NumberFilterComparator:t.NumberFilterComparator,SearchType:t.SearchType};this.http.post(G.GetNotInChannelRowCount,i).subscribe({next:n=>{this.searchFilter.update(a=>E(M({},a),{PageNumber:1})),this.paginationService.getAllData(this.searchFilter(),n.Count)}})}onZoomImage(t,i){this.biggerPictureService.openBiggerPicture(t,i)}onSelectProduct(t){this.hasSelectionProduct.set(this.productService.hasSelection(t)),this.selectedProducts.set(this.productService.selectedProduct(t))}uploadMultipleProduct(){this.uploadProductService.setSelectedProduct(this.selectedProducts()),this.route.navigate(["/menu/products/upload"])}ngOnDestroy(){this.paginationService.destroy()}openExportDialog(){let t=this.searchFilter();this.dialog.open(Nt,{data:{title:"Export Not In Channel",pageNumber:t.PageNumber,rowCount:t.RowCount,filterExport:t,getRowCountApi:"product/GetNotInChannelRowCount",exportApi:"product/GetNotInChannelExport"}}).afterClosed().subscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=et({type:e,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"searchBoxPlaceHolder"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[2,"width","10px"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(i,n){if(i&1&&(_(0,Jt,17,14,"mainpanel",0),b(1,"async")),i&2){let a;m((a=S(1,1,n.loader$))?0:-1,a)}},dependencies:[gt,st,ct,vt,ut,pt,_t,mt,ht,Pt,ot,at],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}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return e})();export{Te as NotInChannelComponent};
@@ -1 +1 @@
1
- import{a as _e,b as ge}from"./chunk-4CSDEEPZ.js";import{a as pe,b as me,c as ce}from"./chunk-PN54DVRP.js";import{a as he}from"./chunk-SYYCFQFM.js";import{a as R}from"./chunk-PPNBNYPT.js";import{a as ue}from"./chunk-ZXFAXYFC.js";import"./chunk-6SII5SLU.js";import"./chunk-RABJYUZ7.js";import{a as se}from"./chunk-VMGFXITT.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import{a as de}from"./chunk-44I4HBA7.js";import"./chunk-S5JNUALT.js";import{a as ae}from"./chunk-KLLGH7UI.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import"./chunk-EHE35Y2Y.js";import{b as le}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import{a as re}from"./chunk-RPUNCPRY.js";import"./chunk-7AXL27HI.js";import"./chunk-GGAT6SSK.js";import"./chunk-5LT2EUGJ.js";import"./chunk-ALU2M2OP.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-QVFZNJGC.js";import"./chunk-IMETJ3FA.js";import"./chunk-JQDMGUB2.js";import"./chunk-27GIACJC.js";import"./chunk-PNL3GTGS.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-VK76JOCL.js";import"./chunk-HRSPRUJL.js";import{b as oe}from"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-I3RG5IHH.js";import"./chunk-UX4IK5KD.js";import"./chunk-QXRG5XYP.js";import"./chunk-XXFM4BVC.js";import"./chunk-GRKPMAMP.js";import{b as K}from"./chunk-NNVT5X6O.js";import{b as Y,c as Z,h as ee,m as te,o as ne,z as ie}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{b as X}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{x as G,z as J}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as C,$c as Q,Bc as I,Cc as D,Dc as L,Eb as F,Ha as b,Lc as A,Mc as a,Nc as y,Oc as v,Qc as z,Rc as B,Sc as H,Tc as W,Uc as $,Vc as O,Zc as j,bc as f,cc as V,ec as N,fc as k,gc as s,hc as t,ic as n,id as T,jc as p,jd as P,kb as E,kd as U,mb as l,na as x,qc as S,rd as q,va as _,vc as u,wa as g,xc as m}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as M,b as w}from"./chunk-7KVKRA5M.js";var Ce=["contextMenu"],fe=r=>({"td-cell-hover":r});function Se(r,h){if(r&1){let e=S();t(0,"button",20),u("click",function(){_(e);let i=m();return g(i.setMultipleFulfillment())}),a(1," Set Fulfillment "),n()}}function ye(r,h){if(r&1&&p(0,"variants-dropdown",38),r&2){let e=m().$implicit;s("variants",e==null?null:e.Variants)}}function ve(r,h){if(r&1&&p(0,"variant-with-image",39),r&2){let e=m().$implicit;s("variant",e==null?null:e.Variants[0])}}function xe(r,h){if(r&1&&(t(0,"span"),a(1),n()),r&2){let e=m().$implicit;l(),v("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function be(r,h){if(r&1){let e=S();t(0,"div",44)(1,"button",45),u("click",function(){_(e);let i=m().$implicit,d=m(2);return g(d.onSetFulfillment(i))}),p(2,"i",46),a(3,"Set Fulfillment "),n(),t(4,"button",47)(5,"span",48),a(6,"Toggle Dropdown"),n()(),t(7,"ul",49)(8,"li")(9,"a",50),u("click",function(){_(e);let i=m().$implicit,d=m(2);return g(d.refreshShippingAndRefNumber(i))}),p(10,"i",51),a(11,"Refresh Shipping Courier "),n()(),t(12,"li")(13,"a",52),p(14,"i",53),a(15,"Set Picklist (Coming Soon!) "),n()()()()}}function Te(r,h){if(r&1){let e=S();t(0,"tr")(1,"td")(2,"input",30),H("ngModelChange",function(i){let d=_(e).$implicit;return B(d.selected,i)||(d.selected=i),g(i)}),u("ngModelChange",function(){_(e);let i=m(2),d=O(0);return g(i.onSelectOrder(d))}),n()(),t(3,"td")(4,"div",31),p(5,"img",32),T(6,"channelImage"),t(7,"div",33)(8,"div"),a(9),n(),t(10,"small",34)(11,"span"),a(12),n()()()()(),t(13,"td")(14,"div",35)(15,"div"),p(16,"order-link",36),n(),t(17,"small"),a(18),T(19,"date"),n(),p(20,"br"),t(21,"small"),p(22,"i",37),a(23),n()()(),t(24,"td"),C(25,ye,1,1,"variants-dropdown",38)(26,ve,1,1,"variant-with-image",39),n(),t(27,"td",40),a(28),T(29,"number"),n(),t(30,"td",41)(31,"div",42)(32,"div",35)(33,"div",43)(34,"span"),a(35),n(),C(36,xe,2,1,"span"),n(),t(37,"small"),a(38),n()()()(),t(39,"td",41),C(40,be,16,0,"div",44),n()()}if(r&2){let e=h.$implicit,o=m(2);l(2),z("ngModel",e.selected),s("disabled",o.selectedChannelType()!=null&&o.selectedChannelType()!=e.MarketType),l(3),s("src",P(6,17,e==null?null:e.MarketType),E)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),y(e.Outlet),l(3),y(e.ChannelName),l(4),s("order",e),l(2),v(" ",U(19,19,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),v(" ",e.Customer," "),l(),A(Q(24,fe,(e.Variants==null?null:e.Variants.length)>1)),l(),f((e.Variants==null?null:e.Variants.length)>1?25:26),l(3),y(P(29,22,e.Amount)),l(7),y(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),f(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?36:-1),l(2),v(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(2),f((e==null?null:e.MarketType)!=o.channelType.WooCommerce?40:-1)}}function Me(r,h){if(r&1){let e=S();t(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),p(4,"th",24),t(5,"th",25),a(6,"Outlet"),n(),t(7,"th",25),a(8,"Number"),n(),t(9,"th"),a(10,"Items"),n(),t(11,"th",26),a(12,"Amount"),n(),t(13,"th",27),a(14,"Shipping"),n(),p(15,"th",28),n()(),t(16,"tbody"),N(17,Te,41,26,"tr",null,V),n()(),t(19,"app-custom-paginator",29),u("next",function(){_(e);let i=m();return g(i.initReadyToShip())})("previous",function(){_(e);let i=m();return g(i.initReadyToShip())}),n()()}if(r&2){let e=m(),o=O(0);l(17),k(o),l(2),s("filter",e.filter())("totaldata",o==null?null:o.length)}}function we(r,h){r&1&&(t(0,"div",18),p(1,"app-empty-state"),n())}var Ye=(()=>{class r{constructor(){this.toastr=x(X),this.orderService=x(R),this.fulfillmentService=x(_e),this.channelType=K,this.selectedOrders=b([]),this.selectedChannelType=q(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.readyToShip=b([]),this.filter=b({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(o=>w(M({},o),{From:e})),this.initReadyToShip()}initReadyToShip(){this.orderService.getReadyToShipOrders(this.filter()).subscribe(e=>{this.readyToShip.set(e),this.selectedOrders.set([])})}onFilterPropertyChange(e,o){this.filter.update(i=>w(M({},i),{[e]:o}))}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(e){let o=e.filter(i=>i.selected);this.selectedOrders.set(o)}onMouseHover(e,o){(!o.LogisticService?.Name||!o.ReferenceNumber)&&this.contextMenuEl.show(e,o)}onSelectContextItem(e){e.item?.id==="refresh"&&this.refreshShippingAndRefNumber(e.data)}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275cmp=F({type:r,selectors:[["app-ready-to-ship"]],viewQuery:function(o,i){if(o&1&&I(Ce,5),o&2){let d;D(d=L())&&(i.contextMenuEl=d.first)}},features:[j([R])],decls:36,vars:11,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],[2,"width","230px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn-group","btn-split-action"],[1,"btn","btn-success","btn-lg","fw-medium",3,"click"],[1,"fa-solid","fa-dolly","me-2"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-success","btn-lg","fw-medium","dropdown-toggle","dropdown-toggle-split"],[1,"visually-hidden"],[1,"dropdown-menu"],["href","javascript:void(0)",1,"dropdown-item",3,"click"],[1,"fa-solid","fa-arrows-rotate","me-2"],["href","javascript:void(0)",1,"dropdown-item","disabled"],[1,"fa-solid","fa-list-check","me-2"]],template:function(o,i){if(o&1&&(W(0),t(1,"mainpanel",1),u("onSubmit",function(){return i.initReadyToShip()})("textChange",function(c){return i.onFilterPropertyChange("Number",c)}),t(2,"actions"),C(3,Se,2,0,"button",2),t(4,"a",3),p(5,"i",4),t(6,"span"),a(7,"Order Fulfillment Display"),n()()(),t(8,"filters")(9,"div")(10,"label",5),a(11,"Channel"),n(),t(12,"app-channel-options-v2",6),u("ngModelChange",function(c){return i.onFilterPropertyChange("ListChannelID",c)}),n()(),t(13,"div",7)(14,"label",5),a(15,"From/To"),n(),t(16,"div",8)(17,"datepicker",9),u("dateChange",function(c){return i.onFilterPropertyChange("From",c)}),n()(),t(18,"div")(19,"datepicker",10),u("dateChange",function(c){return i.onFilterPropertyChange("To",c)}),n()()(),t(20,"div",7)(21,"label",11),a(22,"Page Number"),n(),t(23,"input",12),u("ngModelChange",function(c){return i.onFilterPropertyChange("PageNumber",+c)}),n()(),t(24,"div",7)(25,"label",11),a(26,"Page Size"),n(),t(27,"input",13),u("ngModelChange",function(c){return i.onFilterPropertyChange("PageSize",+c)}),n()()(),t(28,"content")(29,"div",14)(30,"div",15)(31,"div",16),C(32,Me,20,2,"div",17)(33,we,2,0,"div",18),n()()()()(),t(34,"app-context-menu",19,0),u("onSelectItem",function(c){return i.onSelectContextItem(c)}),n()),o&2){let d=$(i.readyToShip());l(),s("text",i.filter().Number),l(2),f(i.selectedOrders().length>0?3:-1),l(9),s("multiple",!0)("ngModel",i.filter().ListChannelID),l(5),s("date",i.filter().From),l(2),s("date",i.filter().To),l(4),s("ngModel",i.filter().PageNumber),l(4),s("ngModel",i.filter().PageSize),l(5),f(d.length>0?32:33),l(2),s("items",i.contextMenuItems)}},dependencies:[le,ae,de,ie,Z,ne,Y,ee,te,me,ce,ue,he,re,oe,ge,se,pe,G,J],styles:['@charset "UTF-8";.actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}.actions-cell[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:1!important;visibility:visible!important}td.actions-cell[_ngcontent-%COMP%]:last-child{text-align:right}.btn-split-action[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{margin-top:3px!important}'],changeDetection:0})}}return r})();export{Ye as ReadyToShipComponent};
1
+ import{a as _e,b as ge}from"./chunk-X3Q4YLO7.js";import{a as pe,b as me,c as ce}from"./chunk-PN54DVRP.js";import{a as he}from"./chunk-E2MNYCXC.js";import{a as R}from"./chunk-WMSEEPXC.js";import{a as ue}from"./chunk-ZXFAXYFC.js";import"./chunk-6SII5SLU.js";import"./chunk-RABJYUZ7.js";import{a as se}from"./chunk-DVOLD4ZD.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import{a as de}from"./chunk-44I4HBA7.js";import"./chunk-S5JNUALT.js";import{a as ae}from"./chunk-KLLGH7UI.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import"./chunk-EHE35Y2Y.js";import{b as le}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import{a as re}from"./chunk-RPUNCPRY.js";import"./chunk-7AXL27HI.js";import"./chunk-GGAT6SSK.js";import"./chunk-5LT2EUGJ.js";import"./chunk-ALU2M2OP.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-QVFZNJGC.js";import"./chunk-IMETJ3FA.js";import"./chunk-JQDMGUB2.js";import"./chunk-27GIACJC.js";import"./chunk-PNL3GTGS.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-VK76JOCL.js";import"./chunk-HRSPRUJL.js";import{b as oe}from"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-NVCOALE3.js";import"./chunk-YLGAO33X.js";import"./chunk-QXRG5XYP.js";import"./chunk-OD6Q5ER6.js";import"./chunk-GRKPMAMP.js";import{b as K}from"./chunk-NNVT5X6O.js";import{b as Y,c as Z,h as ee,m as te,o as ne,z as ie}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{b as X}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{x as G,z as J}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as C,$c as Q,Bc as I,Cc as D,Dc as L,Eb as F,Ha as b,Lc as A,Mc as a,Nc as y,Oc as v,Qc as z,Rc as B,Sc as H,Tc as W,Uc as $,Vc as O,Zc as j,bc as f,cc as V,ec as N,fc as k,gc as s,hc as t,ic as n,id as T,jc as p,jd as P,kb as E,kd as U,mb as l,na as x,qc as S,rd as q,va as _,vc as u,wa as g,xc as m}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as M,b as w}from"./chunk-7KVKRA5M.js";var Ce=["contextMenu"],fe=r=>({"td-cell-hover":r});function Se(r,h){if(r&1){let e=S();t(0,"button",20),u("click",function(){_(e);let i=m();return g(i.setMultipleFulfillment())}),a(1," Set Fulfillment "),n()}}function ye(r,h){if(r&1&&p(0,"variants-dropdown",38),r&2){let e=m().$implicit;s("variants",e==null?null:e.Variants)}}function ve(r,h){if(r&1&&p(0,"variant-with-image",39),r&2){let e=m().$implicit;s("variant",e==null?null:e.Variants[0])}}function xe(r,h){if(r&1&&(t(0,"span"),a(1),n()),r&2){let e=m().$implicit;l(),v("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function be(r,h){if(r&1){let e=S();t(0,"div",44)(1,"button",45),u("click",function(){_(e);let i=m().$implicit,d=m(2);return g(d.onSetFulfillment(i))}),p(2,"i",46),a(3,"Set Fulfillment "),n(),t(4,"button",47)(5,"span",48),a(6,"Toggle Dropdown"),n()(),t(7,"ul",49)(8,"li")(9,"a",50),u("click",function(){_(e);let i=m().$implicit,d=m(2);return g(d.refreshShippingAndRefNumber(i))}),p(10,"i",51),a(11,"Refresh Shipping Courier "),n()(),t(12,"li")(13,"a",52),p(14,"i",53),a(15,"Set Picklist (Coming Soon!) "),n()()()()}}function Te(r,h){if(r&1){let e=S();t(0,"tr")(1,"td")(2,"input",30),H("ngModelChange",function(i){let d=_(e).$implicit;return B(d.selected,i)||(d.selected=i),g(i)}),u("ngModelChange",function(){_(e);let i=m(2),d=O(0);return g(i.onSelectOrder(d))}),n()(),t(3,"td")(4,"div",31),p(5,"img",32),T(6,"channelImage"),t(7,"div",33)(8,"div"),a(9),n(),t(10,"small",34)(11,"span"),a(12),n()()()()(),t(13,"td")(14,"div",35)(15,"div"),p(16,"order-link",36),n(),t(17,"small"),a(18),T(19,"date"),n(),p(20,"br"),t(21,"small"),p(22,"i",37),a(23),n()()(),t(24,"td"),C(25,ye,1,1,"variants-dropdown",38)(26,ve,1,1,"variant-with-image",39),n(),t(27,"td",40),a(28),T(29,"number"),n(),t(30,"td",41)(31,"div",42)(32,"div",35)(33,"div",43)(34,"span"),a(35),n(),C(36,xe,2,1,"span"),n(),t(37,"small"),a(38),n()()()(),t(39,"td",41),C(40,be,16,0,"div",44),n()()}if(r&2){let e=h.$implicit,o=m(2);l(2),z("ngModel",e.selected),s("disabled",o.selectedChannelType()!=null&&o.selectedChannelType()!=e.MarketType),l(3),s("src",P(6,17,e==null?null:e.MarketType),E)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),y(e.Outlet),l(3),y(e.ChannelName),l(4),s("order",e),l(2),v(" ",U(19,19,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),v(" ",e.Customer," "),l(),A(Q(24,fe,(e.Variants==null?null:e.Variants.length)>1)),l(),f((e.Variants==null?null:e.Variants.length)>1?25:26),l(3),y(P(29,22,e.Amount)),l(7),y(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),f(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?36:-1),l(2),v(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(2),f((e==null?null:e.MarketType)!=o.channelType.WooCommerce?40:-1)}}function Me(r,h){if(r&1){let e=S();t(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),p(4,"th",24),t(5,"th",25),a(6,"Outlet"),n(),t(7,"th",25),a(8,"Number"),n(),t(9,"th"),a(10,"Items"),n(),t(11,"th",26),a(12,"Amount"),n(),t(13,"th",27),a(14,"Shipping"),n(),p(15,"th",28),n()(),t(16,"tbody"),N(17,Te,41,26,"tr",null,V),n()(),t(19,"app-custom-paginator",29),u("next",function(){_(e);let i=m();return g(i.initReadyToShip())})("previous",function(){_(e);let i=m();return g(i.initReadyToShip())}),n()()}if(r&2){let e=m(),o=O(0);l(17),k(o),l(2),s("filter",e.filter())("totaldata",o==null?null:o.length)}}function we(r,h){r&1&&(t(0,"div",18),p(1,"app-empty-state"),n())}var Ye=(()=>{class r{constructor(){this.toastr=x(X),this.orderService=x(R),this.fulfillmentService=x(_e),this.channelType=K,this.selectedOrders=b([]),this.selectedChannelType=q(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.readyToShip=b([]),this.filter=b({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(o=>w(M({},o),{From:e})),this.initReadyToShip()}initReadyToShip(){this.orderService.getReadyToShipOrders(this.filter()).subscribe(e=>{this.readyToShip.set(e),this.selectedOrders.set([])})}onFilterPropertyChange(e,o){this.filter.update(i=>w(M({},i),{[e]:o}))}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(e){let o=e.filter(i=>i.selected);this.selectedOrders.set(o)}onMouseHover(e,o){(!o.LogisticService?.Name||!o.ReferenceNumber)&&this.contextMenuEl.show(e,o)}onSelectContextItem(e){e.item?.id==="refresh"&&this.refreshShippingAndRefNumber(e.data)}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275cmp=F({type:r,selectors:[["app-ready-to-ship"]],viewQuery:function(o,i){if(o&1&&I(Ce,5),o&2){let d;D(d=L())&&(i.contextMenuEl=d.first)}},features:[j([R])],decls:36,vars:11,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],[2,"width","230px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn-group","btn-split-action"],[1,"btn","btn-success","btn-lg","fw-medium",3,"click"],[1,"fa-solid","fa-dolly","me-2"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-success","btn-lg","fw-medium","dropdown-toggle","dropdown-toggle-split"],[1,"visually-hidden"],[1,"dropdown-menu"],["href","javascript:void(0)",1,"dropdown-item",3,"click"],[1,"fa-solid","fa-arrows-rotate","me-2"],["href","javascript:void(0)",1,"dropdown-item","disabled"],[1,"fa-solid","fa-list-check","me-2"]],template:function(o,i){if(o&1&&(W(0),t(1,"mainpanel",1),u("onSubmit",function(){return i.initReadyToShip()})("textChange",function(c){return i.onFilterPropertyChange("Number",c)}),t(2,"actions"),C(3,Se,2,0,"button",2),t(4,"a",3),p(5,"i",4),t(6,"span"),a(7,"Order Fulfillment Display"),n()()(),t(8,"filters")(9,"div")(10,"label",5),a(11,"Channel"),n(),t(12,"app-channel-options-v2",6),u("ngModelChange",function(c){return i.onFilterPropertyChange("ListChannelID",c)}),n()(),t(13,"div",7)(14,"label",5),a(15,"From/To"),n(),t(16,"div",8)(17,"datepicker",9),u("dateChange",function(c){return i.onFilterPropertyChange("From",c)}),n()(),t(18,"div")(19,"datepicker",10),u("dateChange",function(c){return i.onFilterPropertyChange("To",c)}),n()()(),t(20,"div",7)(21,"label",11),a(22,"Page Number"),n(),t(23,"input",12),u("ngModelChange",function(c){return i.onFilterPropertyChange("PageNumber",+c)}),n()(),t(24,"div",7)(25,"label",11),a(26,"Page Size"),n(),t(27,"input",13),u("ngModelChange",function(c){return i.onFilterPropertyChange("PageSize",+c)}),n()()(),t(28,"content")(29,"div",14)(30,"div",15)(31,"div",16),C(32,Me,20,2,"div",17)(33,we,2,0,"div",18),n()()()()(),t(34,"app-context-menu",19,0),u("onSelectItem",function(c){return i.onSelectContextItem(c)}),n()),o&2){let d=$(i.readyToShip());l(),s("text",i.filter().Number),l(2),f(i.selectedOrders().length>0?3:-1),l(9),s("multiple",!0)("ngModel",i.filter().ListChannelID),l(5),s("date",i.filter().From),l(2),s("date",i.filter().To),l(4),s("ngModel",i.filter().PageNumber),l(4),s("ngModel",i.filter().PageSize),l(5),f(d.length>0?32:33),l(2),s("items",i.contextMenuItems)}},dependencies:[le,ae,de,ie,Z,ne,Y,ee,te,me,ce,ue,he,re,oe,ge,se,pe,G,J],styles:['@charset "UTF-8";.actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}.actions-cell[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:1!important;visibility:visible!important}td.actions-cell[_ngcontent-%COMP%]:last-child{text-align:right}.btn-split-action[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{margin-top:3px!important}'],changeDetection:0})}}return r})();export{Ye as ReadyToShipComponent};
@@ -1 +1 @@
1
- import{a as le,b as ae,c as me}from"./chunk-PN54DVRP.js";import{a as pe}from"./chunk-SYYCFQFM.js";import{a as T}from"./chunk-PPNBNYPT.js";import{a as de}from"./chunk-ZXFAXYFC.js";import{a as oe}from"./chunk-VMGFXITT.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import{a as re}from"./chunk-44I4HBA7.js";import"./chunk-S5JNUALT.js";import{a as ne}from"./chunk-KLLGH7UI.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import{b as ie}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import{a as te}from"./chunk-RPUNCPRY.js";import"./chunk-7AXL27HI.js";import"./chunk-GGAT6SSK.js";import"./chunk-5LT2EUGJ.js";import"./chunk-ALU2M2OP.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-QVFZNJGC.js";import"./chunk-IMETJ3FA.js";import"./chunk-JQDMGUB2.js";import"./chunk-27GIACJC.js";import"./chunk-PNL3GTGS.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-VK76JOCL.js";import"./chunk-HRSPRUJL.js";import{b as ee}from"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-I3RG5IHH.js";import"./chunk-UX4IK5KD.js";import"./chunk-QXRG5XYP.js";import"./chunk-XXFM4BVC.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import{c as Q,h as X,m as Y,o as Z,z as $}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{v as G,x as J,z as K}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as y,$c as U,Eb as W,Ha as D,Lc as z,Mc as a,Nc as S,Oc as w,Qc as g,Rc as _,Sc as f,Tc as A,Uc as R,V as N,Vc as H,Zc as j,bc as b,cc as I,ec as B,fc as k,gc as u,hc as t,ic as i,id as x,jc as c,jd as E,kb as F,kd as q,mb as l,na as O,qc as V,va as p,vc as M,wa as s,xc as C}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as P,b as L}from"./chunk-7KVKRA5M.js";var se=r=>({"td-cell-hover":r});function ce(r,h){if(r&1&&c(0,"variants-dropdown",31),r&2){let e=C().$implicit;u("variants",e==null?null:e.Variants)}}function ue(r,h){if(r&1&&c(0,"variant-with-image",32),r&2){let e=C().$implicit;u("variant",e==null?null:e.Variants[0])}}function Ce(r,h){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=C().$implicit;l(),w("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ge(r,h){if(r&1&&(t(0,"tr")(1,"td")(2,"div",24),c(3,"img",25),x(4,"channelImage"),t(5,"div",26)(6,"div"),a(7),i(),t(8,"small",27)(9,"span"),a(10),i()()()()(),t(11,"td")(12,"div",28)(13,"div"),c(14,"order-link",29),i(),t(15,"small"),a(16),x(17,"date"),i(),c(18,"br"),t(19,"small"),c(20,"i",30),a(21),i()()(),t(22,"td"),y(23,ce,1,1,"variants-dropdown",31)(24,ue,1,1,"variant-with-image",32),i(),t(25,"td",33),a(26),x(27,"number"),i(),t(28,"td")(29,"div",28)(30,"div",34)(31,"span"),a(32),i(),y(33,Ce,2,1,"span"),i(),t(34,"small"),a(35),i()()()()),r&2){let e=h.$implicit;l(3),u("src",E(4,14,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),S(e.Outlet),l(3),S(e.ChannelName),l(4),u("order",e),l(2),w(" ",q(17,16,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),w(" ",e.Customer," "),l(),z(U(21,se,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?23:24),l(3),S(E(27,19,e.Amount)),l(6),S(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?33:-1),l(2),w(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function _e(r,h){if(r&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),i(),t(6,"th",20),a(7,"Number"),i(),t(8,"th"),a(9,"Items"),i(),t(10,"th",21),a(11,"Amount"),i(),t(12,"th",22),a(13,"Shipping"),i()()(),t(14,"tbody"),B(15,ge,36,23,"tr",null,I),i()(),t(17,"app-custom-paginator",23),M("next",function(){p(e);let n=C();return s(n.initCompletedOrders())})("previous",function(){p(e);let n=C();return s(n.initCompletedOrders())}),i()()}if(r&2){let e=C(),m=H(0);l(15),k(m),l(2),u("filter",e.filter())("totaldata",m==null?null:m.length)}}function fe(r,h){r&1&&(t(0,"div",16),c(1,"app-empty-state"),i())}var ze=(()=>{class r{constructor(){this.orderService=O(T),this.filter=D({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(m=>L(P({},m),{From:e})),this.initCompletedOrders()}initCompletedOrders(){this.completedOrders$=this.orderService.getCompletedOrders(this.filter()).pipe(N(1))}static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-completed"]],features:[j([T])],decls:34,vars:11,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],["rowCountApi","/api/orders/completedcount",3,"next","previous","filter","totaldata"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-end","gap-2"]],template:function(m,n){if(m&1){let d=V();A(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return n.initCompletedOrders()}),f("textChange",function(o){return p(d),_(n.filter().Number,o)||(n.filter().Number=o),s(o)}),t(3,"actions")(4,"a",1),c(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),i(),t(12,"app-channel-options-v2",4),f("ngModelChange",function(o){return p(d),_(n.filter().ListChannelID,o)||(n.filter().ListChannelID=o),s(o)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),f("dateChange",function(o){return p(d),_(n.filter().From,o)||(n.filter().From=o),s(o)}),i()(),t(18,"div")(19,"datepicker",8),f("dateChange",function(o){return p(d),_(n.filter().To,o)||(n.filter().To=o),s(o)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),f("ngModelChange",function(o){return p(d),_(n.filter().PageNumber,o)||(n.filter().PageNumber=o),s(o)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),f("ngModelChange",function(o){return p(d),_(n.filter().PageSize,o)||(n.filter().PageSize=o),s(o)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,_e,18,2,"div",15)(33,fe,2,0,"div",16),i()()()()()}if(m&2){let d=R(E(1,8,n.completedOrders$));l(2),g("text",n.filter().Number),l(10),u("multiple",!0),g("ngModel",n.filter().ListChannelID),l(5),g("date",n.filter().From),l(2),g("date",n.filter().To),l(4),g("ngModel",n.filter().PageNumber),l(4),g("ngModel",n.filter().PageSize),l(5),b((d==null?null:d.length)>0?32:33)}},dependencies:[ie,ne,re,$,Q,Z,X,Y,ae,me,de,te,ee,pe,oe,le,G,J,K],encapsulation:2,changeDetection:0})}}return r})();export{ze as CompletedComponent};
1
+ import{a as le,b as ae,c as me}from"./chunk-PN54DVRP.js";import{a as pe}from"./chunk-E2MNYCXC.js";import{a as T}from"./chunk-WMSEEPXC.js";import{a as de}from"./chunk-ZXFAXYFC.js";import{a as oe}from"./chunk-DVOLD4ZD.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import{a as re}from"./chunk-44I4HBA7.js";import"./chunk-S5JNUALT.js";import{a as ne}from"./chunk-KLLGH7UI.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import{b as ie}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import{a as te}from"./chunk-RPUNCPRY.js";import"./chunk-7AXL27HI.js";import"./chunk-GGAT6SSK.js";import"./chunk-5LT2EUGJ.js";import"./chunk-ALU2M2OP.js";import"./chunk-6IK2SMV2.js";import"./chunk-RP34WI5C.js";import"./chunk-QVFZNJGC.js";import"./chunk-IMETJ3FA.js";import"./chunk-JQDMGUB2.js";import"./chunk-27GIACJC.js";import"./chunk-PNL3GTGS.js";import"./chunk-BHQ7CWDE.js";import"./chunk-DF32ANGX.js";import"./chunk-VZ5IMYAU.js";import"./chunk-ZEX7ZA5M.js";import"./chunk-VK76JOCL.js";import"./chunk-HRSPRUJL.js";import{b as ee}from"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-NVCOALE3.js";import"./chunk-YLGAO33X.js";import"./chunk-QXRG5XYP.js";import"./chunk-OD6Q5ER6.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import{c as Q,h as X,m as Y,o as Z,z as $}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{v as G,x as J,z as K}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as y,$c as U,Eb as W,Ha as D,Lc as z,Mc as a,Nc as S,Oc as w,Qc as g,Rc as _,Sc as f,Tc as A,Uc as R,V as N,Vc as H,Zc as j,bc as b,cc as I,ec as B,fc as k,gc as u,hc as t,ic as i,id as x,jc as c,jd as E,kb as F,kd as q,mb as l,na as O,qc as V,va as p,vc as M,wa as s,xc as C}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import{a as P,b as L}from"./chunk-7KVKRA5M.js";var se=r=>({"td-cell-hover":r});function ce(r,h){if(r&1&&c(0,"variants-dropdown",31),r&2){let e=C().$implicit;u("variants",e==null?null:e.Variants)}}function ue(r,h){if(r&1&&c(0,"variant-with-image",32),r&2){let e=C().$implicit;u("variant",e==null?null:e.Variants[0])}}function Ce(r,h){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=C().$implicit;l(),w("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ge(r,h){if(r&1&&(t(0,"tr")(1,"td")(2,"div",24),c(3,"img",25),x(4,"channelImage"),t(5,"div",26)(6,"div"),a(7),i(),t(8,"small",27)(9,"span"),a(10),i()()()()(),t(11,"td")(12,"div",28)(13,"div"),c(14,"order-link",29),i(),t(15,"small"),a(16),x(17,"date"),i(),c(18,"br"),t(19,"small"),c(20,"i",30),a(21),i()()(),t(22,"td"),y(23,ce,1,1,"variants-dropdown",31)(24,ue,1,1,"variant-with-image",32),i(),t(25,"td",33),a(26),x(27,"number"),i(),t(28,"td")(29,"div",28)(30,"div",34)(31,"span"),a(32),i(),y(33,Ce,2,1,"span"),i(),t(34,"small"),a(35),i()()()()),r&2){let e=h.$implicit;l(3),u("src",E(4,14,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),S(e.Outlet),l(3),S(e.ChannelName),l(4),u("order",e),l(2),w(" ",q(17,16,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),w(" ",e.Customer," "),l(),z(U(21,se,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?23:24),l(3),S(E(27,19,e.Amount)),l(6),S(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?33:-1),l(2),w(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function _e(r,h){if(r&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),i(),t(6,"th",20),a(7,"Number"),i(),t(8,"th"),a(9,"Items"),i(),t(10,"th",21),a(11,"Amount"),i(),t(12,"th",22),a(13,"Shipping"),i()()(),t(14,"tbody"),B(15,ge,36,23,"tr",null,I),i()(),t(17,"app-custom-paginator",23),M("next",function(){p(e);let n=C();return s(n.initCompletedOrders())})("previous",function(){p(e);let n=C();return s(n.initCompletedOrders())}),i()()}if(r&2){let e=C(),m=H(0);l(15),k(m),l(2),u("filter",e.filter())("totaldata",m==null?null:m.length)}}function fe(r,h){r&1&&(t(0,"div",16),c(1,"app-empty-state"),i())}var ze=(()=>{class r{constructor(){this.orderService=O(T),this.filter=D({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(m=>L(P({},m),{From:e})),this.initCompletedOrders()}initCompletedOrders(){this.completedOrders$=this.orderService.getCompletedOrders(this.filter()).pipe(N(1))}static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-completed"]],features:[j([T])],decls:34,vars:11,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],["rowCountApi","/api/orders/completedcount",3,"next","previous","filter","totaldata"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-end","gap-2"]],template:function(m,n){if(m&1){let d=V();A(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return n.initCompletedOrders()}),f("textChange",function(o){return p(d),_(n.filter().Number,o)||(n.filter().Number=o),s(o)}),t(3,"actions")(4,"a",1),c(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),i(),t(12,"app-channel-options-v2",4),f("ngModelChange",function(o){return p(d),_(n.filter().ListChannelID,o)||(n.filter().ListChannelID=o),s(o)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),f("dateChange",function(o){return p(d),_(n.filter().From,o)||(n.filter().From=o),s(o)}),i()(),t(18,"div")(19,"datepicker",8),f("dateChange",function(o){return p(d),_(n.filter().To,o)||(n.filter().To=o),s(o)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),f("ngModelChange",function(o){return p(d),_(n.filter().PageNumber,o)||(n.filter().PageNumber=o),s(o)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),f("ngModelChange",function(o){return p(d),_(n.filter().PageSize,o)||(n.filter().PageSize=o),s(o)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,_e,18,2,"div",15)(33,fe,2,0,"div",16),i()()()()()}if(m&2){let d=R(E(1,8,n.completedOrders$));l(2),g("text",n.filter().Number),l(10),u("multiple",!0),g("ngModel",n.filter().ListChannelID),l(5),g("date",n.filter().From),l(2),g("date",n.filter().To),l(4),g("ngModel",n.filter().PageNumber),l(4),g("ngModel",n.filter().PageSize),l(5),b((d==null?null:d.length)>0?32:33)}},dependencies:[ie,ne,re,$,Q,Z,X,Y,ae,me,de,te,ee,pe,oe,le,G,J,K],encapsulation:2,changeDetection:0})}}return r})();export{ze as CompletedComponent};
@@ -1 +1 @@
1
- import{a as F}from"./chunk-VMGFXITT.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import{e as z}from"./chunk-EHE35Y2Y.js";import{b as j}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-VK76JOCL.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-I3RG5IHH.js";import"./chunk-UX4IK5KD.js";import"./chunk-QXRG5XYP.js";import{a as k}from"./chunk-XXFM4BVC.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import{c as V,h as I,m as R,z as B}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{b as E,e as D}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{v as L,y as T}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as O,Eb as x,Ha as h,Mc as n,Nc as P,Tc as N,Uc as A,V as _,Vc as u,bc as M,gc as m,hc as e,ic as t,id as f,jc as w,jd as C,mb as a,na as g,qc as S,va as b,vc as p,wa as v,xc as y}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import"./chunk-7KVKRA5M.js";function J(i,H){if(i&1&&(e(0,"pre",21),n(1),f(2,"json"),t()),i&2){y();let r=u(25);a(),P(C(2,1,r))}}function $(i,H){i&1&&(e(0,"p",22),n(1," Your data will be shown here once it's available "),t())}var ae=(()=>{class i{constructor(){this.httpService=g(D),this.toastr=g(E),this.selectedChannel=h(null),this.orderNumber=h(null)}fetchLog(){if(!this.selectedChannel()||!this.orderNumber()){this.toastr.warning("Please select a channel and enter an order number","Warning");return}this.orderLog$=this.httpService.post(k.GetOrderApiLog,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(_(1))}copyToClipboard(r){if(!r)return;let d=typeof r=="string"?r:JSON.stringify(r,null,2);navigator.clipboard.writeText(d),this.toastr.success("Copied to clipboard!","Success")}static{this.\u0275fac=function(d){return new(d||i)}}static{this.\u0275cmp=x({type:i,selectors:[["app-order-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Order Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","orderLogText"],[1,"text-center","my-12","text-muted"]],template:function(d,o){if(d&1){let c=S();e(0,"mainpanel",0)(1,"actions")(2,"button",1),p("click",function(){return o.fetchLog()}),w(3,"i",2),n(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),n(12,"Channel"),t(),e(13,"p",8),n(14," View logs related to Order API activities. "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),p("ngModelChange",function(l){return o.selectedChannel.set(l)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),n(20,"Order Number"),t(),e(21,"p",8),n(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),p("ngModelChange",function(l){return o.orderNumber.set(l)}),t()()()()(),N(25),f(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),n(32,"Response"),t(),e(33,"button",17),p("click",function(){b(c);let l=u(25);return v(o.copyToClipboard(l))}),n(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),O(38,J,3,3,"pre",21)(39,$,2,0,"p",22),t()()()()()()()()()}if(d&2){m("hideSearchBox",!0)("hideSearchDropdown",!0),a(16),m("ngModel",o.selectedChannel()),a(8),m("ngModel",o.orderNumber()),a();let c=A(C(26,6,o.orderLog$));a(8),m("disabled",!c),a(5),M(c?38:39)}},dependencies:[j,z,B,V,I,R,F,L,T],styles:["@media(max-width:767.98px){.container-fluid[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.row[_ngcontent-%COMP%]{flex-direction:column!important;margin-left:0!important;margin-right:0!important}.col-7[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}.d-flex[_ngcontent-%COMP%]{flex-direction:column!important;align-items:stretch!important;gap:1rem}.w-75[_ngcontent-%COMP%], .w-100[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important}.card[_ngcontent-%COMP%]{margin-top:1rem!important}.card-header[_ngcontent-%COMP%]{flex-direction:column!important;align-items:flex-start!important;gap:.5rem}.btn[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}input.form-control[_ngcontent-%COMP%]{width:100%;min-width:0}pre#orderLogText[_ngcontent-%COMP%]{font-size:.95rem;word-break:break-all;white-space:pre-wrap}}@media(max-width:400px){.card-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1rem}pre#orderLogText[_ngcontent-%COMP%]{font-size:.85rem}}"],changeDetection:0})}}return i})();export{ae as OrderApiComponent};
1
+ import{a as F}from"./chunk-DVOLD4ZD.js";import"./chunk-VCPL27TZ.js";import"./chunk-MWWC66IC.js";import"./chunk-752YRTLC.js";import"./chunk-PBNIIZI3.js";import"./chunk-5XJEZSY4.js";import"./chunk-IW277O6V.js";import"./chunk-RDMMFHDE.js";import"./chunk-EUPJPCMA.js";import"./chunk-P23WQYF4.js";import"./chunk-S52ABRV5.js";import"./chunk-BVN6SNGQ.js";import"./chunk-R4AQOQYM.js";import"./chunk-OF3KLUMM.js";import"./chunk-F66DGPZP.js";import"./chunk-LGOZQVMY.js";import"./chunk-WM53FF34.js";import{e as z}from"./chunk-EHE35Y2Y.js";import{b as j}from"./chunk-PHOKCO5Q.js";import"./chunk-A7GSUUCG.js";import"./chunk-EJRNWPPD.js";import"./chunk-RPUNCPRY.js";import"./chunk-VK76JOCL.js";import"./chunk-W37YHNVN.js";import"./chunk-CSHGL57O.js";import"./chunk-NVCOALE3.js";import"./chunk-YLGAO33X.js";import"./chunk-QXRG5XYP.js";import{a as k}from"./chunk-OD6Q5ER6.js";import"./chunk-GRKPMAMP.js";import"./chunk-NNVT5X6O.js";import{c as V,h as I,m as R,z as B}from"./chunk-J5MD62BS.js";import"./chunk-OTGSPSYP.js";import"./chunk-CL2QGEN4.js";import{b as E,e as D}from"./chunk-KVPTGBX3.js";import"./chunk-2P7JU6NZ.js";import{v as L,y as T}from"./chunk-ET5KHOIM.js";import"./chunk-ASFPLYOZ.js";import{$b as O,Eb as x,Ha as h,Mc as n,Nc as P,Tc as N,Uc as A,V as _,Vc as u,bc as M,gc as m,hc as e,ic as t,id as f,jc as w,jd as C,mb as a,na as g,qc as S,va as b,vc as p,wa as v,xc as y}from"./chunk-UL2ZUNXQ.js";import"./chunk-WFMAM73Y.js";import"./chunk-7KVKRA5M.js";function J(i,H){if(i&1&&(e(0,"pre",21),n(1),f(2,"json"),t()),i&2){y();let r=u(25);a(),P(C(2,1,r))}}function $(i,H){i&1&&(e(0,"p",22),n(1," Your data will be shown here once it's available "),t())}var ae=(()=>{class i{constructor(){this.httpService=g(D),this.toastr=g(E),this.selectedChannel=h(null),this.orderNumber=h(null)}fetchLog(){if(!this.selectedChannel()||!this.orderNumber()){this.toastr.warning("Please select a channel and enter an order number","Warning");return}this.orderLog$=this.httpService.post(k.GetOrderApiLog,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(_(1))}copyToClipboard(r){if(!r)return;let d=typeof r=="string"?r:JSON.stringify(r,null,2);navigator.clipboard.writeText(d),this.toastr.success("Copied to clipboard!","Success")}static{this.\u0275fac=function(d){return new(d||i)}}static{this.\u0275cmp=x({type:i,selectors:[["app-order-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Order Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","orderLogText"],[1,"text-center","my-12","text-muted"]],template:function(d,o){if(d&1){let c=S();e(0,"mainpanel",0)(1,"actions")(2,"button",1),p("click",function(){return o.fetchLog()}),w(3,"i",2),n(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),n(12,"Channel"),t(),e(13,"p",8),n(14," View logs related to Order API activities. "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),p("ngModelChange",function(l){return o.selectedChannel.set(l)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),n(20,"Order Number"),t(),e(21,"p",8),n(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),p("ngModelChange",function(l){return o.orderNumber.set(l)}),t()()()()(),N(25),f(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),n(32,"Response"),t(),e(33,"button",17),p("click",function(){b(c);let l=u(25);return v(o.copyToClipboard(l))}),n(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),O(38,J,3,3,"pre",21)(39,$,2,0,"p",22),t()()()()()()()()()}if(d&2){m("hideSearchBox",!0)("hideSearchDropdown",!0),a(16),m("ngModel",o.selectedChannel()),a(8),m("ngModel",o.orderNumber()),a();let c=A(C(26,6,o.orderLog$));a(8),m("disabled",!c),a(5),M(c?38:39)}},dependencies:[j,z,B,V,I,R,F,L,T],styles:["@media(max-width:767.98px){.container-fluid[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.row[_ngcontent-%COMP%]{flex-direction:column!important;margin-left:0!important;margin-right:0!important}.col-7[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}.d-flex[_ngcontent-%COMP%]{flex-direction:column!important;align-items:stretch!important;gap:1rem}.w-75[_ngcontent-%COMP%], .w-100[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important}.card[_ngcontent-%COMP%]{margin-top:1rem!important}.card-header[_ngcontent-%COMP%]{flex-direction:column!important;align-items:flex-start!important;gap:.5rem}.btn[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}input.form-control[_ngcontent-%COMP%]{width:100%;min-width:0}pre#orderLogText[_ngcontent-%COMP%]{font-size:.95rem;word-break:break-all;white-space:pre-wrap}}@media(max-width:400px){.card-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1rem}pre#orderLogText[_ngcontent-%COMP%]{font-size:.85rem}}"],changeDetection:0})}}return i})();export{ae as OrderApiComponent};